]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/msw/gdi_wrap.cpp
Added some more docstrings, and also a few little tweaks along the way.
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
... / ...
CommitLineData
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/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137#include "Python.h"
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198/* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201/* basic types */
202/*
203 utilities
204*/
205SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221/* Contract support */
222
223#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225#ifdef __cplusplus
226}
227#endif
228
229
230
231/* -------- TYPES TABLE (BEGIN) -------- */
232
233#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234#define SWIGTYPE_p_wxBrush swig_types[1]
235#define SWIGTYPE_p_wxColour swig_types[2]
236#define SWIGTYPE_p_wxDC swig_types[3]
237#define SWIGTYPE_p_wxMirrorDC swig_types[4]
238#define SWIGTYPE_p_byte swig_types[5]
239#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240#define SWIGTYPE_p_char swig_types[7]
241#define SWIGTYPE_p_wxIconLocation swig_types[8]
242#define SWIGTYPE_p_wxImage swig_types[9]
243#define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244#define SWIGTYPE_p_wxMask swig_types[11]
245#define SWIGTYPE_p_wxFont swig_types[12]
246#define SWIGTYPE_p_wxWindow swig_types[13]
247#define SWIGTYPE_p_wxSize swig_types[14]
248#define SWIGTYPE_p_double swig_types[15]
249#define SWIGTYPE_p_wxMemoryDC swig_types[16]
250#define SWIGTYPE_p_wxFontMapper swig_types[17]
251#define SWIGTYPE_p_wxEffects swig_types[18]
252#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253#define SWIGTYPE_p_wxPalette swig_types[20]
254#define SWIGTYPE_p_wxBitmap swig_types[21]
255#define SWIGTYPE_p_wxObject swig_types[22]
256#define SWIGTYPE_p_wxRegionIterator swig_types[23]
257#define SWIGTYPE_p_wxRect swig_types[24]
258#define SWIGTYPE_p_wxString swig_types[25]
259#define SWIGTYPE_p_wxPrinterDC swig_types[26]
260#define SWIGTYPE_p_wxIconBundle swig_types[27]
261#define SWIGTYPE_p_wxPoint swig_types[28]
262#define SWIGTYPE_p_wxDash swig_types[29]
263#define SWIGTYPE_p_wxScreenDC swig_types[30]
264#define SWIGTYPE_p_wxCursor swig_types[31]
265#define SWIGTYPE_p_wxClientDC swig_types[32]
266#define SWIGTYPE_p_wxBufferedDC swig_types[33]
267#define SWIGTYPE_p_wxImageList swig_types[34]
268#define SWIGTYPE_p_unsigned_char swig_types[35]
269#define SWIGTYPE_p_wxGDIObject swig_types[36]
270#define SWIGTYPE_p_wxIcon swig_types[37]
271#define SWIGTYPE_p_wxLocale swig_types[38]
272#define SWIGTYPE_p_wxRegion swig_types[39]
273#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274#define SWIGTYPE_p_wxConfigBase swig_types[41]
275#define SWIGTYPE_p_wxWindowDC swig_types[42]
276#define SWIGTYPE_p_wxPrintData swig_types[43]
277#define SWIGTYPE_p_wxBrushList swig_types[44]
278#define SWIGTYPE_p_wxFontList swig_types[45]
279#define SWIGTYPE_p_wxPen swig_types[46]
280#define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281#define SWIGTYPE_p_wxPaintDC swig_types[48]
282#define SWIGTYPE_p_wxPenList swig_types[49]
283#define SWIGTYPE_p_wxPyPen swig_types[50]
284#define SWIGTYPE_p_int swig_types[51]
285#define SWIGTYPE_p_wxMetaFile swig_types[52]
286#define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287#define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288#define SWIGTYPE_p_wxColourDatabase swig_types[55]
289static swig_type_info *swig_types[57];
290
291/* -------- TYPES TABLE (END) -------- */
292
293
294/*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297#define SWIG_init init_gdi
298
299#define SWIG_name "_gdi"
300
301#include <limits.h>
302#include <float.h>
303#include <string.h>
304
305#ifndef SWIGSTATIC
306#ifdef __cplusplus
307#define SWIGSTATIC(a) static inline a
308#else
309#define SWIGSTATIC(a) static a
310#endif
311#endif
312
313#ifndef numeric_cast
314#ifdef __cplusplus
315#ifdef HAVE_NUMERIC_CAST
316#define numeric_cast(type,a) numeric_cast<type>(a)
317#else
318#define numeric_cast(type,a) static_cast<type>(a)
319#endif
320#else
321#define numeric_cast(type,a) (type)(a)
322#endif
323#endif
324
325
326
327#define SWIG_PyObj_FromSignedChar PyInt_FromLong
328#define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329#define SWIG_PyObj_FromShort PyInt_FromLong
330#define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331#define SWIG_PyObj_FromInt PyInt_FromLong
332#define SWIG_PyObj_FromLong PyInt_FromLong
333#define SWIG_PyObj_FromFloat PyFloat_FromDouble
334#define SWIG_PyObj_FromDouble PyFloat_FromDouble
335#define SWIG_PyObj_FromFloat PyFloat_FromDouble
336#define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339#include "wx/wxPython/wxPython.h"
340#include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345SWIGSTATIC(bool)
346SWIG_PyObj_AsBool(PyObject *obj)
347{
348 return PyObject_IsTrue(obj) ? true : false;
349}
350
351
352SWIGSTATIC(unsigned char)
353SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354{
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357}
358
359PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375SWIGSTATIC(int)
376SWIG_PyObj_AsInt(PyObject *obj)
377{
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380}
381
382
383static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407}
408
409PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420wxPyPen::~wxPyPen()
421{
422 if (m_dash)
423 delete [] m_dash;
424}
425
426void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427{
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435}
436
437
438#include <wx/image.h>
439
440 static char** ConvertListOfStrings(PyObject* listOfStrings) {
441 char** cArray = NULL;
442 int count;
443
444 if (!PyList_Check(listOfStrings)) {
445 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
446 return NULL;
447 }
448 count = PyList_Size(listOfStrings);
449 cArray = new char*[count];
450
451 for(int x=0; x<count; x++) {
452 // TODO: Need some validation and error checking here
453 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
454 }
455 return cArray;
456 }
457
458
459wxBitmap *new_wxBitmap(PyObject *listOfStrings){
460 char** cArray = NULL;
461 wxBitmap* bmp;
462
463 cArray = ConvertListOfStrings(listOfStrings);
464 if (! cArray)
465 return NULL;
466 bmp = new wxBitmap(cArray);
467 delete [] cArray;
468 return bmp;
469 }
470wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
471 char* buf;
472 int length;
473 PyString_AsStringAndSize(bits, &buf, &length);
474 return new wxBitmap(buf, width, height, depth);
475 }
476
477SWIGSTATIC(long)
478SWIG_PyObj_AsLong(PyObject * obj)
479{
480 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
481}
482
483void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
484 wxMask *mask = new wxMask(*self, colour);
485 self->SetMask(mask);
486 }
487wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
488 if ( !colour.Ok() )
489 return new wxMask(bitmap, *wxBLACK);
490 else
491 return new wxMask(bitmap, colour);
492 }
493
494#include <wx/iconbndl.h>
495
496wxIcon *new_wxIcon(wxBitmap const &bmp){
497 wxIcon* icon = new wxIcon();
498 icon->CopyFromBitmap(bmp);
499 return icon;
500 }
501wxIcon *new_wxIcon(PyObject *listOfStrings){
502 char** cArray = NULL;
503 wxIcon* icon;
504
505 cArray = ConvertListOfStrings(listOfStrings);
506 if (! cArray)
507 return NULL;
508 icon = new wxIcon(cArray);
509 delete [] cArray;
510 return icon;
511 }
512wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
513
514 return new wxIconLocation(*filename, num);
515
516
517
518 }
519void wxIconLocation_SetIndex(wxIconLocation *self,int num){
520
521 self->SetIndex(num);
522
523
524
525 }
526int wxIconLocation_GetIndex(wxIconLocation *self){
527
528 return self->GetIndex();
529
530
531
532 }
533wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
534
535
536
537
538 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
539
540 }
541wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
542 char* bitsbuf;
543 char* maskbuf = NULL;
544 int length;
545 PyString_AsStringAndSize(bits, &bitsbuf, &length);
546 if (maskBits)
547 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
548 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
549 }
550
551
552void wxRegionIterator_Next(wxRegionIterator *self){
553 (*self) ++;
554 }
555bool wxRegionIterator___nonzero__(wxRegionIterator *self){
556 return self->operator bool();
557 }
558
559#include <wx/fontutil.h>
560#include <wx/fontmap.h>
561#include <wx/fontenum.h>
562
563wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
564 return self->ToString();
565 }
566
567 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
568 { wxPyRaiseNotImplemented(); return NULL; }
569
570 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
571 { wxPyRaiseNotImplemented(); return False; }
572
573
574SWIGSTATIC(PyObject* )
575SWIG_PyObj_FromUnsignedLong(unsigned long value)
576{
577 return (value > (unsigned long)(LONG_MAX)) ?
578 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
579}
580
581PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
582 wxFontEncoding alt_enc;
583 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
584 return PyInt_FromLong(alt_enc);
585 else {
586 Py_INCREF(Py_None);
587 return Py_None;
588 }
589 }
590wxFont *new_wxFont(wxString const &info){
591 wxNativeFontInfo nfi;
592 nfi.FromString(info);
593 return new wxFont(nfi);
594 }
595wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
596 return wxFont::New(pointSize, family, flags, face, encoding);
597 }
598
599class wxPyFontEnumerator : public wxFontEnumerator {
600public:
601 wxPyFontEnumerator() {}
602 ~wxPyFontEnumerator() {}
603
604 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
605 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
606
607 PYPRIVATE;
608};
609
610IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
611IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
612
613
614PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
615 wxArrayString* arr = self->GetEncodings();
616 return wxArrayString2PyList_helper(*arr);
617 }
618PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
619 wxArrayString* arr = self->GetFacenames();
620 return wxArrayString2PyList_helper(*arr);
621 }
622
623
624
625#include "wx/wxPython/pydrawxxx.h"
626
627wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
628 wxColour col;
629 self->GetPixel(x, y, &col);
630 return col;
631 }
632wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
633 wxColour col;
634 self->GetPixel(pt, &col);
635 return col;
636 }
637
638SWIGSTATIC(double)
639SWIG_PyObj_AsDouble(PyObject *obj)
640{
641 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
642#if HAVE_LONG_LONG
643 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
644#else
645 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
646#endif
647 if (PyErr_Occurred()) {
648 PyErr_Clear();
649 PyErr_SetString(PyExc_TypeError, "a double is expected");
650 }
651}
652
653wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
654 wxRect rv;
655 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
656 return rv;
657 }
658wxRect wxDC_GetClippingRect(wxDC *self){
659 wxRect rect;
660 self->GetClippingBox(rect);
661 return rect;
662 }
663wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
664 wxArrayInt widths;
665 self->GetPartialTextExtents(text, widths);
666 return widths;
667 }
668PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
669 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
670 }
671PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
672 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
673 }
674PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
675 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
676 }
677PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
678 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
679 }
680PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
681 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
682 }
683PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
684 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
685 }
686
687static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
688 *x1 = dc->MinX();
689 *y1 = dc->MinY();
690 *x2 = dc->MaxX();
691 *y2 = dc->MaxY();
692}
693
694
695#include <wx/dcps.h>
696
697
698#include <wx/metafile.h>
699
700
701
702void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
703 self->AddColour(name, wxColour(red, green, blue));
704 }
705
706#include <wx/effects.h>
707
708#ifdef __cplusplus
709extern "C" {
710#endif
711static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
712 PyObject *resultobj;
713 wxGDIObject *result;
714 char *kwnames[] = {
715 NULL
716 };
717
718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
719 {
720 PyThreadState* __tstate = wxPyBeginAllowThreads();
721 result = (wxGDIObject *)new wxGDIObject();
722
723 wxPyEndAllowThreads(__tstate);
724 if (PyErr_Occurred()) SWIG_fail;
725 }
726 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
727 return resultobj;
728 fail:
729 return NULL;
730}
731
732
733static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
734 PyObject *resultobj;
735 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
736 PyObject * obj0 = 0 ;
737 char *kwnames[] = {
738 (char *) "self", NULL
739 };
740
741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
743 {
744 PyThreadState* __tstate = wxPyBeginAllowThreads();
745 delete arg1;
746
747 wxPyEndAllowThreads(__tstate);
748 if (PyErr_Occurred()) SWIG_fail;
749 }
750 Py_INCREF(Py_None); resultobj = Py_None;
751 return resultobj;
752 fail:
753 return NULL;
754}
755
756
757static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
758 PyObject *resultobj;
759 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
760 bool result;
761 PyObject * obj0 = 0 ;
762 char *kwnames[] = {
763 (char *) "self", NULL
764 };
765
766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
768 {
769 PyThreadState* __tstate = wxPyBeginAllowThreads();
770 result = (bool)(arg1)->GetVisible();
771
772 wxPyEndAllowThreads(__tstate);
773 if (PyErr_Occurred()) SWIG_fail;
774 }
775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
776 return resultobj;
777 fail:
778 return NULL;
779}
780
781
782static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
783 PyObject *resultobj;
784 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
785 bool arg2 ;
786 PyObject * obj0 = 0 ;
787 PyObject * obj1 = 0 ;
788 char *kwnames[] = {
789 (char *) "self",(char *) "visible", NULL
790 };
791
792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
794 {
795 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
796 if (PyErr_Occurred()) SWIG_fail;
797 }
798 {
799 PyThreadState* __tstate = wxPyBeginAllowThreads();
800 (arg1)->SetVisible(arg2);
801
802 wxPyEndAllowThreads(__tstate);
803 if (PyErr_Occurred()) SWIG_fail;
804 }
805 Py_INCREF(Py_None); resultobj = Py_None;
806 return resultobj;
807 fail:
808 return NULL;
809}
810
811
812static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
813 PyObject *resultobj;
814 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
815 bool result;
816 PyObject * obj0 = 0 ;
817 char *kwnames[] = {
818 (char *) "self", NULL
819 };
820
821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
823 {
824 PyThreadState* __tstate = wxPyBeginAllowThreads();
825 result = (bool)(arg1)->IsNull();
826
827 wxPyEndAllowThreads(__tstate);
828 if (PyErr_Occurred()) SWIG_fail;
829 }
830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
831 return resultobj;
832 fail:
833 return NULL;
834}
835
836
837static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
838 PyObject *obj;
839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
840 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
841 Py_INCREF(obj);
842 return Py_BuildValue((char *)"");
843}
844static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
845 PyObject *resultobj;
846 unsigned char arg1 = (unsigned char) 0 ;
847 unsigned char arg2 = (unsigned char) 0 ;
848 unsigned char arg3 = (unsigned char) 0 ;
849 wxColour *result;
850 PyObject * obj0 = 0 ;
851 PyObject * obj1 = 0 ;
852 PyObject * obj2 = 0 ;
853 char *kwnames[] = {
854 (char *) "red",(char *) "green",(char *) "blue", NULL
855 };
856
857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
858 if (obj0) {
859 {
860 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
861 if (PyErr_Occurred()) SWIG_fail;
862 }
863 }
864 if (obj1) {
865 {
866 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
867 if (PyErr_Occurred()) SWIG_fail;
868 }
869 }
870 if (obj2) {
871 {
872 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
873 if (PyErr_Occurred()) SWIG_fail;
874 }
875 }
876 {
877 PyThreadState* __tstate = wxPyBeginAllowThreads();
878 result = (wxColour *)new wxColour(arg1,arg2,arg3);
879
880 wxPyEndAllowThreads(__tstate);
881 if (PyErr_Occurred()) SWIG_fail;
882 }
883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
884 return resultobj;
885 fail:
886 return NULL;
887}
888
889
890static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
891 PyObject *resultobj;
892 wxColour *arg1 = (wxColour *) 0 ;
893 PyObject * obj0 = 0 ;
894 char *kwnames[] = {
895 (char *) "self", NULL
896 };
897
898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
900 {
901 PyThreadState* __tstate = wxPyBeginAllowThreads();
902 delete arg1;
903
904 wxPyEndAllowThreads(__tstate);
905 if (PyErr_Occurred()) SWIG_fail;
906 }
907 Py_INCREF(Py_None); resultobj = Py_None;
908 return resultobj;
909 fail:
910 return NULL;
911}
912
913
914static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
915 PyObject *resultobj;
916 wxString *arg1 = 0 ;
917 wxColour *result;
918 bool temp1 = False ;
919 PyObject * obj0 = 0 ;
920 char *kwnames[] = {
921 (char *) "colorName", NULL
922 };
923
924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
925 {
926 arg1 = wxString_in_helper(obj0);
927 if (arg1 == NULL) SWIG_fail;
928 temp1 = True;
929 }
930 {
931 PyThreadState* __tstate = wxPyBeginAllowThreads();
932 result = (wxColour *)new wxColour((wxString const &)*arg1);
933
934 wxPyEndAllowThreads(__tstate);
935 if (PyErr_Occurred()) SWIG_fail;
936 }
937 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
938 {
939 if (temp1)
940 delete arg1;
941 }
942 return resultobj;
943 fail:
944 {
945 if (temp1)
946 delete arg1;
947 }
948 return NULL;
949}
950
951
952static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
953 PyObject *resultobj;
954 unsigned long arg1 ;
955 wxColour *result;
956 PyObject * obj0 = 0 ;
957 char *kwnames[] = {
958 (char *) "colRGB", NULL
959 };
960
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
962 {
963 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
964 if (PyErr_Occurred()) SWIG_fail;
965 }
966 {
967 PyThreadState* __tstate = wxPyBeginAllowThreads();
968 result = (wxColour *)new wxColour(arg1);
969
970 wxPyEndAllowThreads(__tstate);
971 if (PyErr_Occurred()) SWIG_fail;
972 }
973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
974 return resultobj;
975 fail:
976 return NULL;
977}
978
979
980static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
981 PyObject *resultobj;
982 wxColour *arg1 = (wxColour *) 0 ;
983 unsigned char result;
984 PyObject * obj0 = 0 ;
985 char *kwnames[] = {
986 (char *) "self", NULL
987 };
988
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 result = (unsigned char)(arg1)->Red();
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
999 return resultobj;
1000 fail:
1001 return NULL;
1002}
1003
1004
1005static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 wxColour *arg1 = (wxColour *) 0 ;
1008 unsigned char result;
1009 PyObject * obj0 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1016 {
1017 PyThreadState* __tstate = wxPyBeginAllowThreads();
1018 result = (unsigned char)(arg1)->Green();
1019
1020 wxPyEndAllowThreads(__tstate);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1024 return resultobj;
1025 fail:
1026 return NULL;
1027}
1028
1029
1030static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject *resultobj;
1032 wxColour *arg1 = (wxColour *) 0 ;
1033 unsigned char result;
1034 PyObject * obj0 = 0 ;
1035 char *kwnames[] = {
1036 (char *) "self", NULL
1037 };
1038
1039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1041 {
1042 PyThreadState* __tstate = wxPyBeginAllowThreads();
1043 result = (unsigned char)(arg1)->Blue();
1044
1045 wxPyEndAllowThreads(__tstate);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052}
1053
1054
1055static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1056 PyObject *resultobj;
1057 wxColour *arg1 = (wxColour *) 0 ;
1058 bool result;
1059 PyObject * obj0 = 0 ;
1060 char *kwnames[] = {
1061 (char *) "self", NULL
1062 };
1063
1064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 result = (bool)(arg1)->Ok();
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1074 return resultobj;
1075 fail:
1076 return NULL;
1077}
1078
1079
1080static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 wxColour *arg1 = (wxColour *) 0 ;
1083 unsigned char arg2 ;
1084 unsigned char arg3 ;
1085 unsigned char arg4 ;
1086 PyObject * obj0 = 0 ;
1087 PyObject * obj1 = 0 ;
1088 PyObject * obj2 = 0 ;
1089 PyObject * obj3 = 0 ;
1090 char *kwnames[] = {
1091 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1092 };
1093
1094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1096 {
1097 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1098 if (PyErr_Occurred()) SWIG_fail;
1099 }
1100 {
1101 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1102 if (PyErr_Occurred()) SWIG_fail;
1103 }
1104 {
1105 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1106 if (PyErr_Occurred()) SWIG_fail;
1107 }
1108 {
1109 PyThreadState* __tstate = wxPyBeginAllowThreads();
1110 (arg1)->Set(arg2,arg3,arg4);
1111
1112 wxPyEndAllowThreads(__tstate);
1113 if (PyErr_Occurred()) SWIG_fail;
1114 }
1115 Py_INCREF(Py_None); resultobj = Py_None;
1116 return resultobj;
1117 fail:
1118 return NULL;
1119}
1120
1121
1122static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1123 PyObject *resultobj;
1124 wxColour *arg1 = (wxColour *) 0 ;
1125 unsigned long arg2 ;
1126 PyObject * obj0 = 0 ;
1127 PyObject * obj1 = 0 ;
1128 char *kwnames[] = {
1129 (char *) "self",(char *) "colRGB", NULL
1130 };
1131
1132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1134 {
1135 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 {
1139 PyThreadState* __tstate = wxPyBeginAllowThreads();
1140 (arg1)->Set(arg2);
1141
1142 wxPyEndAllowThreads(__tstate);
1143 if (PyErr_Occurred()) SWIG_fail;
1144 }
1145 Py_INCREF(Py_None); resultobj = Py_None;
1146 return resultobj;
1147 fail:
1148 return NULL;
1149}
1150
1151
1152static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1153 PyObject *resultobj;
1154 wxColour *arg1 = (wxColour *) 0 ;
1155 wxColour *arg2 = 0 ;
1156 bool result;
1157 wxColour temp2 ;
1158 PyObject * obj0 = 0 ;
1159 PyObject * obj1 = 0 ;
1160 char *kwnames[] = {
1161 (char *) "self",(char *) "colour", NULL
1162 };
1163
1164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1166 {
1167 arg2 = &temp2;
1168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1169 }
1170 {
1171 PyThreadState* __tstate = wxPyBeginAllowThreads();
1172 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1173
1174 wxPyEndAllowThreads(__tstate);
1175 if (PyErr_Occurred()) SWIG_fail;
1176 }
1177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1178 return resultobj;
1179 fail:
1180 return NULL;
1181}
1182
1183
1184static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1185 PyObject *resultobj;
1186 wxColour *arg1 = (wxColour *) 0 ;
1187 wxColour *arg2 = 0 ;
1188 bool result;
1189 wxColour temp2 ;
1190 PyObject * obj0 = 0 ;
1191 PyObject * obj1 = 0 ;
1192 char *kwnames[] = {
1193 (char *) "self",(char *) "colour", NULL
1194 };
1195
1196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1198 {
1199 arg2 = &temp2;
1200 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1201 }
1202 {
1203 PyThreadState* __tstate = wxPyBeginAllowThreads();
1204 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1205
1206 wxPyEndAllowThreads(__tstate);
1207 if (PyErr_Occurred()) SWIG_fail;
1208 }
1209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1210 return resultobj;
1211 fail:
1212 return NULL;
1213}
1214
1215
1216static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject *resultobj;
1218 wxColour *arg1 = (wxColour *) 0 ;
1219 wxString *arg2 = 0 ;
1220 bool temp2 = False ;
1221 PyObject * obj0 = 0 ;
1222 PyObject * obj1 = 0 ;
1223 char *kwnames[] = {
1224 (char *) "self",(char *) "colourName", NULL
1225 };
1226
1227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1229 {
1230 arg2 = wxString_in_helper(obj1);
1231 if (arg2 == NULL) SWIG_fail;
1232 temp2 = True;
1233 }
1234 {
1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
1236 (arg1)->InitFromName((wxString const &)*arg2);
1237
1238 wxPyEndAllowThreads(__tstate);
1239 if (PyErr_Occurred()) SWIG_fail;
1240 }
1241 Py_INCREF(Py_None); resultobj = Py_None;
1242 {
1243 if (temp2)
1244 delete arg2;
1245 }
1246 return resultobj;
1247 fail:
1248 {
1249 if (temp2)
1250 delete arg2;
1251 }
1252 return NULL;
1253}
1254
1255
1256static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1257 PyObject *resultobj;
1258 wxColour *arg1 = (wxColour *) 0 ;
1259 PyObject *result;
1260 PyObject * obj0 = 0 ;
1261 char *kwnames[] = {
1262 (char *) "self", NULL
1263 };
1264
1265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1267 {
1268 PyThreadState* __tstate = wxPyBeginAllowThreads();
1269 result = (PyObject *)wxColour_Get(arg1);
1270
1271 wxPyEndAllowThreads(__tstate);
1272 if (PyErr_Occurred()) SWIG_fail;
1273 }
1274 resultobj = result;
1275 return resultobj;
1276 fail:
1277 return NULL;
1278}
1279
1280
1281static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1282 PyObject *obj;
1283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1284 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1285 Py_INCREF(obj);
1286 return Py_BuildValue((char *)"");
1287}
1288static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1289 PyObject *resultobj;
1290 int arg1 ;
1291 unsigned char *arg2 = (unsigned char *) 0 ;
1292 unsigned char *arg3 = (unsigned char *) 0 ;
1293 unsigned char *arg4 = (unsigned char *) 0 ;
1294 wxPalette *result;
1295 PyObject * obj0 = 0 ;
1296 PyObject * obj1 = 0 ;
1297 PyObject * obj2 = 0 ;
1298 PyObject * obj3 = 0 ;
1299 char *kwnames[] = {
1300 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1301 };
1302
1303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1304 {
1305 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1306 if (PyErr_Occurred()) SWIG_fail;
1307 }
1308 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1309 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1310 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1311 {
1312 PyThreadState* __tstate = wxPyBeginAllowThreads();
1313 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1314
1315 wxPyEndAllowThreads(__tstate);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 }
1318 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1319 return resultobj;
1320 fail:
1321 return NULL;
1322}
1323
1324
1325static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject *resultobj;
1327 wxPalette *arg1 = (wxPalette *) 0 ;
1328 PyObject * obj0 = 0 ;
1329 char *kwnames[] = {
1330 (char *) "self", NULL
1331 };
1332
1333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1335 {
1336 PyThreadState* __tstate = wxPyBeginAllowThreads();
1337 delete arg1;
1338
1339 wxPyEndAllowThreads(__tstate);
1340 if (PyErr_Occurred()) SWIG_fail;
1341 }
1342 Py_INCREF(Py_None); resultobj = Py_None;
1343 return resultobj;
1344 fail:
1345 return NULL;
1346}
1347
1348
1349static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1350 PyObject *resultobj;
1351 wxPalette *arg1 = (wxPalette *) 0 ;
1352 byte arg2 ;
1353 byte arg3 ;
1354 byte arg4 ;
1355 int result;
1356 PyObject * obj0 = 0 ;
1357 PyObject * obj1 = 0 ;
1358 PyObject * obj2 = 0 ;
1359 PyObject * obj3 = 0 ;
1360 char *kwnames[] = {
1361 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1362 };
1363
1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1366 {
1367 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1368 if (PyErr_Occurred()) SWIG_fail;
1369 }
1370 {
1371 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 {
1375 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1376 if (PyErr_Occurred()) SWIG_fail;
1377 }
1378 {
1379 PyThreadState* __tstate = wxPyBeginAllowThreads();
1380 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1381
1382 wxPyEndAllowThreads(__tstate);
1383 if (PyErr_Occurred()) SWIG_fail;
1384 }
1385 resultobj = SWIG_PyObj_FromInt((int)result);
1386 return resultobj;
1387 fail:
1388 return NULL;
1389}
1390
1391
1392static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1393 PyObject *resultobj;
1394 wxPalette *arg1 = (wxPalette *) 0 ;
1395 int arg2 ;
1396 byte *arg3 = (byte *) 0 ;
1397 byte *arg4 = (byte *) 0 ;
1398 byte *arg5 = (byte *) 0 ;
1399 bool result;
1400 byte temp3 ;
1401 byte temp4 ;
1402 byte temp5 ;
1403 PyObject * obj0 = 0 ;
1404 PyObject * obj1 = 0 ;
1405 char *kwnames[] = {
1406 (char *) "self",(char *) "pixel", NULL
1407 };
1408
1409 arg3 = &temp3;
1410 arg4 = &temp4;
1411 arg5 = &temp5;
1412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1414 {
1415 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1416 if (PyErr_Occurred()) SWIG_fail;
1417 }
1418 {
1419 PyThreadState* __tstate = wxPyBeginAllowThreads();
1420 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1421
1422 wxPyEndAllowThreads(__tstate);
1423 if (PyErr_Occurred()) SWIG_fail;
1424 }
1425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1426 {
1427 PyObject *o = PyInt_FromLong((long) (*arg3));
1428 resultobj = t_output_helper(resultobj,o);
1429 }
1430 {
1431 PyObject *o = PyInt_FromLong((long) (*arg4));
1432 resultobj = t_output_helper(resultobj,o);
1433 }
1434 {
1435 PyObject *o = PyInt_FromLong((long) (*arg5));
1436 resultobj = t_output_helper(resultobj,o);
1437 }
1438 return resultobj;
1439 fail:
1440 return NULL;
1441}
1442
1443
1444static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1445 PyObject *resultobj;
1446 wxPalette *arg1 = (wxPalette *) 0 ;
1447 bool result;
1448 PyObject * obj0 = 0 ;
1449 char *kwnames[] = {
1450 (char *) "self", NULL
1451 };
1452
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1455 {
1456 PyThreadState* __tstate = wxPyBeginAllowThreads();
1457 result = (bool)(arg1)->Ok();
1458
1459 wxPyEndAllowThreads(__tstate);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 }
1462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1463 return resultobj;
1464 fail:
1465 return NULL;
1466}
1467
1468
1469static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1470 PyObject *obj;
1471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1472 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1473 Py_INCREF(obj);
1474 return Py_BuildValue((char *)"");
1475}
1476static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1477 PyObject *resultobj;
1478 wxColour *arg1 = 0 ;
1479 int arg2 = (int) 1 ;
1480 int arg3 = (int) wxSOLID ;
1481 wxPen *result;
1482 wxColour temp1 ;
1483 PyObject * obj0 = 0 ;
1484 PyObject * obj1 = 0 ;
1485 PyObject * obj2 = 0 ;
1486 char *kwnames[] = {
1487 (char *) "colour",(char *) "width",(char *) "style", NULL
1488 };
1489
1490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1491 {
1492 arg1 = &temp1;
1493 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1494 }
1495 if (obj1) {
1496 {
1497 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1498 if (PyErr_Occurred()) SWIG_fail;
1499 }
1500 }
1501 if (obj2) {
1502 {
1503 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1504 if (PyErr_Occurred()) SWIG_fail;
1505 }
1506 }
1507 {
1508 PyThreadState* __tstate = wxPyBeginAllowThreads();
1509 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1510
1511 wxPyEndAllowThreads(__tstate);
1512 if (PyErr_Occurred()) SWIG_fail;
1513 }
1514 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1515 return resultobj;
1516 fail:
1517 return NULL;
1518}
1519
1520
1521static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1522 PyObject *resultobj;
1523 wxPen *arg1 = (wxPen *) 0 ;
1524 PyObject * obj0 = 0 ;
1525 char *kwnames[] = {
1526 (char *) "self", NULL
1527 };
1528
1529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1531 {
1532 PyThreadState* __tstate = wxPyBeginAllowThreads();
1533 delete arg1;
1534
1535 wxPyEndAllowThreads(__tstate);
1536 if (PyErr_Occurred()) SWIG_fail;
1537 }
1538 Py_INCREF(Py_None); resultobj = Py_None;
1539 return resultobj;
1540 fail:
1541 return NULL;
1542}
1543
1544
1545static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1546 PyObject *resultobj;
1547 wxPen *arg1 = (wxPen *) 0 ;
1548 int result;
1549 PyObject * obj0 = 0 ;
1550 char *kwnames[] = {
1551 (char *) "self", NULL
1552 };
1553
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1556 {
1557 PyThreadState* __tstate = wxPyBeginAllowThreads();
1558 result = (int)(arg1)->GetCap();
1559
1560 wxPyEndAllowThreads(__tstate);
1561 if (PyErr_Occurred()) SWIG_fail;
1562 }
1563 resultobj = SWIG_PyObj_FromInt((int)result);
1564 return resultobj;
1565 fail:
1566 return NULL;
1567}
1568
1569
1570static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject *resultobj;
1572 wxPen *arg1 = (wxPen *) 0 ;
1573 wxColour result;
1574 PyObject * obj0 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 result = (arg1)->GetColour();
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 }
1588 {
1589 wxColour * resultptr;
1590 resultptr = new wxColour((wxColour &) result);
1591 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1592 }
1593 return resultobj;
1594 fail:
1595 return NULL;
1596}
1597
1598
1599static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxPen *arg1 = (wxPen *) 0 ;
1602 int result;
1603 PyObject * obj0 = 0 ;
1604 char *kwnames[] = {
1605 (char *) "self", NULL
1606 };
1607
1608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 result = (int)(arg1)->GetJoin();
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 }
1617 resultobj = SWIG_PyObj_FromInt((int)result);
1618 return resultobj;
1619 fail:
1620 return NULL;
1621}
1622
1623
1624static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1625 PyObject *resultobj;
1626 wxPen *arg1 = (wxPen *) 0 ;
1627 int result;
1628 PyObject * obj0 = 0 ;
1629 char *kwnames[] = {
1630 (char *) "self", NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 result = (int)(arg1)->GetStyle();
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 resultobj = SWIG_PyObj_FromInt((int)result);
1643 return resultobj;
1644 fail:
1645 return NULL;
1646}
1647
1648
1649static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxPen *arg1 = (wxPen *) 0 ;
1652 int result;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 result = (int)(arg1)->GetWidth();
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 resultobj = SWIG_PyObj_FromInt((int)result);
1668 return resultobj;
1669 fail:
1670 return NULL;
1671}
1672
1673
1674static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxPen *arg1 = (wxPen *) 0 ;
1677 bool result;
1678 PyObject * obj0 = 0 ;
1679 char *kwnames[] = {
1680 (char *) "self", NULL
1681 };
1682
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1685 {
1686 PyThreadState* __tstate = wxPyBeginAllowThreads();
1687 result = (bool)(arg1)->Ok();
1688
1689 wxPyEndAllowThreads(__tstate);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 }
1692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1693 return resultobj;
1694 fail:
1695 return NULL;
1696}
1697
1698
1699static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject *resultobj;
1701 wxPen *arg1 = (wxPen *) 0 ;
1702 int arg2 ;
1703 PyObject * obj0 = 0 ;
1704 PyObject * obj1 = 0 ;
1705 char *kwnames[] = {
1706 (char *) "self",(char *) "cap_style", NULL
1707 };
1708
1709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1711 {
1712 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 {
1716 PyThreadState* __tstate = wxPyBeginAllowThreads();
1717 (arg1)->SetCap(arg2);
1718
1719 wxPyEndAllowThreads(__tstate);
1720 if (PyErr_Occurred()) SWIG_fail;
1721 }
1722 Py_INCREF(Py_None); resultobj = Py_None;
1723 return resultobj;
1724 fail:
1725 return NULL;
1726}
1727
1728
1729static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1730 PyObject *resultobj;
1731 wxPen *arg1 = (wxPen *) 0 ;
1732 wxColour *arg2 = 0 ;
1733 wxColour temp2 ;
1734 PyObject * obj0 = 0 ;
1735 PyObject * obj1 = 0 ;
1736 char *kwnames[] = {
1737 (char *) "self",(char *) "colour", NULL
1738 };
1739
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1742 {
1743 arg2 = &temp2;
1744 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1745 }
1746 {
1747 PyThreadState* __tstate = wxPyBeginAllowThreads();
1748 (arg1)->SetColour(*arg2);
1749
1750 wxPyEndAllowThreads(__tstate);
1751 if (PyErr_Occurred()) SWIG_fail;
1752 }
1753 Py_INCREF(Py_None); resultobj = Py_None;
1754 return resultobj;
1755 fail:
1756 return NULL;
1757}
1758
1759
1760static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 wxPen *arg1 = (wxPen *) 0 ;
1763 int arg2 ;
1764 PyObject * obj0 = 0 ;
1765 PyObject * obj1 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "self",(char *) "join_style", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1772 {
1773 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 }
1776 {
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 (arg1)->SetJoin(arg2);
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 Py_INCREF(Py_None); resultobj = Py_None;
1784 return resultobj;
1785 fail:
1786 return NULL;
1787}
1788
1789
1790static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1791 PyObject *resultobj;
1792 wxPen *arg1 = (wxPen *) 0 ;
1793 int arg2 ;
1794 PyObject * obj0 = 0 ;
1795 PyObject * obj1 = 0 ;
1796 char *kwnames[] = {
1797 (char *) "self",(char *) "style", NULL
1798 };
1799
1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1802 {
1803 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 (arg1)->SetStyle(arg2);
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 Py_INCREF(Py_None); resultobj = Py_None;
1814 return resultobj;
1815 fail:
1816 return NULL;
1817}
1818
1819
1820static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxPen *arg1 = (wxPen *) 0 ;
1823 int arg2 ;
1824 PyObject * obj0 = 0 ;
1825 PyObject * obj1 = 0 ;
1826 char *kwnames[] = {
1827 (char *) "self",(char *) "width", NULL
1828 };
1829
1830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1832 {
1833 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1834 if (PyErr_Occurred()) SWIG_fail;
1835 }
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 (arg1)->SetWidth(arg2);
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) SWIG_fail;
1842 }
1843 Py_INCREF(Py_None); resultobj = Py_None;
1844 return resultobj;
1845 fail:
1846 return NULL;
1847}
1848
1849
1850static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxPen *arg1 = (wxPen *) 0 ;
1853 int arg2 ;
1854 wxDash *arg3 = (wxDash *) 0 ;
1855 PyObject * obj0 = 0 ;
1856 PyObject * obj1 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self",(char *) "dashes", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1863 {
1864 arg2 = PyList_Size(obj1);
1865 arg3 = (wxDash*)byte_LIST_helper(obj1);
1866 if (arg3 == NULL) SWIG_fail;
1867 }
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 (arg1)->SetDashes(arg2,arg3);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 Py_INCREF(Py_None); resultobj = Py_None;
1876 {
1877 if (arg3) delete [] arg3;
1878 }
1879 return resultobj;
1880 fail:
1881 {
1882 if (arg3) delete [] arg3;
1883 }
1884 return NULL;
1885}
1886
1887
1888static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1889 PyObject *resultobj;
1890 wxPen *arg1 = (wxPen *) 0 ;
1891 PyObject *result;
1892 PyObject * obj0 = 0 ;
1893 char *kwnames[] = {
1894 (char *) "self", NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1899 {
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 result = (PyObject *)wxPen_GetDashes(arg1);
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 resultobj = result;
1907 return resultobj;
1908 fail:
1909 return NULL;
1910}
1911
1912
1913static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxPen *arg1 = (wxPen *) 0 ;
1916 wxPen *arg2 = 0 ;
1917 bool result;
1918 PyObject * obj0 = 0 ;
1919 PyObject * obj1 = 0 ;
1920 char *kwnames[] = {
1921 (char *) "self",(char *) "pen", NULL
1922 };
1923
1924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
1925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1926 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1927 if (arg2 == NULL) {
1928 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1929 }
1930 {
1931 PyThreadState* __tstate = wxPyBeginAllowThreads();
1932 result = (bool)(arg1)->operator ==((wxPen const &)*arg2);
1933
1934 wxPyEndAllowThreads(__tstate);
1935 if (PyErr_Occurred()) SWIG_fail;
1936 }
1937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1938 return resultobj;
1939 fail:
1940 return NULL;
1941}
1942
1943
1944static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1945 PyObject *resultobj;
1946 wxPen *arg1 = (wxPen *) 0 ;
1947 int result;
1948 PyObject * obj0 = 0 ;
1949 char *kwnames[] = {
1950 (char *) "self", NULL
1951 };
1952
1953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1955 {
1956 PyThreadState* __tstate = wxPyBeginAllowThreads();
1957 result = (int)((wxPen const *)arg1)->GetDashCount();
1958
1959 wxPyEndAllowThreads(__tstate);
1960 if (PyErr_Occurred()) SWIG_fail;
1961 }
1962 resultobj = SWIG_PyObj_FromInt((int)result);
1963 return resultobj;
1964 fail:
1965 return NULL;
1966}
1967
1968
1969static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1970 PyObject *resultobj;
1971 wxPen *arg1 = (wxPen *) 0 ;
1972 wxBitmap *result;
1973 PyObject * obj0 = 0 ;
1974 char *kwnames[] = {
1975 (char *) "self", NULL
1976 };
1977
1978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
1979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 result = (wxBitmap *)(arg1)->GetStipple();
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
1988 return resultobj;
1989 fail:
1990 return NULL;
1991}
1992
1993
1994static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject *resultobj;
1996 wxPen *arg1 = (wxPen *) 0 ;
1997 wxBitmap *arg2 = 0 ;
1998 PyObject * obj0 = 0 ;
1999 PyObject * obj1 = 0 ;
2000 char *kwnames[] = {
2001 (char *) "self",(char *) "stipple", NULL
2002 };
2003
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2006 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2007 if (arg2 == NULL) {
2008 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2009 }
2010 {
2011 PyThreadState* __tstate = wxPyBeginAllowThreads();
2012 (arg1)->SetStipple(*arg2);
2013
2014 wxPyEndAllowThreads(__tstate);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 Py_INCREF(Py_None); resultobj = Py_None;
2018 return resultobj;
2019 fail:
2020 return NULL;
2021}
2022
2023
2024static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2025 PyObject *obj;
2026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2027 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2028 Py_INCREF(obj);
2029 return Py_BuildValue((char *)"");
2030}
2031static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj;
2033 wxColour *arg1 = 0 ;
2034 int arg2 = (int) 1 ;
2035 int arg3 = (int) wxSOLID ;
2036 wxPyPen *result;
2037 wxColour temp1 ;
2038 PyObject * obj0 = 0 ;
2039 PyObject * obj1 = 0 ;
2040 PyObject * obj2 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "colour",(char *) "width",(char *) "style", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2046 {
2047 arg1 = &temp1;
2048 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2049 }
2050 if (obj1) {
2051 {
2052 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 }
2056 if (obj2) {
2057 {
2058 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 }
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) SWIG_fail;
2068 }
2069 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2070 return resultobj;
2071 fail:
2072 return NULL;
2073}
2074
2075
2076static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2077 PyObject *resultobj;
2078 wxPyPen *arg1 = (wxPyPen *) 0 ;
2079 PyObject * obj0 = 0 ;
2080 char *kwnames[] = {
2081 (char *) "self", NULL
2082 };
2083
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 delete arg1;
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 Py_INCREF(Py_None); resultobj = Py_None;
2094 return resultobj;
2095 fail:
2096 return NULL;
2097}
2098
2099
2100static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject *resultobj;
2102 wxPyPen *arg1 = (wxPyPen *) 0 ;
2103 int arg2 ;
2104 wxDash *arg3 = (wxDash *) 0 ;
2105 PyObject * obj0 = 0 ;
2106 PyObject * obj1 = 0 ;
2107 char *kwnames[] = {
2108 (char *) "self",(char *) "dashes", NULL
2109 };
2110
2111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2113 {
2114 arg2 = PyList_Size(obj1);
2115 arg3 = (wxDash*)byte_LIST_helper(obj1);
2116 if (arg3 == NULL) SWIG_fail;
2117 }
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 (arg1)->SetDashes(arg2,arg3);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 {
2127 if (arg3) delete [] arg3;
2128 }
2129 return resultobj;
2130 fail:
2131 {
2132 if (arg3) delete [] arg3;
2133 }
2134 return NULL;
2135}
2136
2137
2138static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2139 PyObject *obj;
2140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2141 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2142 Py_INCREF(obj);
2143 return Py_BuildValue((char *)"");
2144}
2145static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxColour *arg1 = 0 ;
2148 int arg2 = (int) wxSOLID ;
2149 wxBrush *result;
2150 wxColour temp1 ;
2151 PyObject * obj0 = 0 ;
2152 PyObject * obj1 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "colour",(char *) "style", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2158 {
2159 arg1 = &temp1;
2160 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2161 }
2162 if (obj1) {
2163 {
2164 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 }
2168 {
2169 PyThreadState* __tstate = wxPyBeginAllowThreads();
2170 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2171
2172 wxPyEndAllowThreads(__tstate);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2176 return resultobj;
2177 fail:
2178 return NULL;
2179}
2180
2181
2182static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2183 PyObject *resultobj;
2184 wxBrush *arg1 = (wxBrush *) 0 ;
2185 PyObject * obj0 = 0 ;
2186 char *kwnames[] = {
2187 (char *) "self", NULL
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2192 {
2193 PyThreadState* __tstate = wxPyBeginAllowThreads();
2194 delete arg1;
2195
2196 wxPyEndAllowThreads(__tstate);
2197 if (PyErr_Occurred()) SWIG_fail;
2198 }
2199 Py_INCREF(Py_None); resultobj = Py_None;
2200 return resultobj;
2201 fail:
2202 return NULL;
2203}
2204
2205
2206static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2207 PyObject *resultobj;
2208 wxBrush *arg1 = (wxBrush *) 0 ;
2209 wxColour *arg2 = 0 ;
2210 wxColour temp2 ;
2211 PyObject * obj0 = 0 ;
2212 PyObject * obj1 = 0 ;
2213 char *kwnames[] = {
2214 (char *) "self",(char *) "col", NULL
2215 };
2216
2217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2219 {
2220 arg2 = &temp2;
2221 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2222 }
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 (arg1)->SetColour((wxColour const &)*arg2);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 Py_INCREF(Py_None); resultobj = Py_None;
2231 return resultobj;
2232 fail:
2233 return NULL;
2234}
2235
2236
2237static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxBrush *arg1 = (wxBrush *) 0 ;
2240 int arg2 ;
2241 PyObject * obj0 = 0 ;
2242 PyObject * obj1 = 0 ;
2243 char *kwnames[] = {
2244 (char *) "self",(char *) "style", NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2249 {
2250 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2251 if (PyErr_Occurred()) SWIG_fail;
2252 }
2253 {
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 (arg1)->SetStyle(arg2);
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) SWIG_fail;
2259 }
2260 Py_INCREF(Py_None); resultobj = Py_None;
2261 return resultobj;
2262 fail:
2263 return NULL;
2264}
2265
2266
2267static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2268 PyObject *resultobj;
2269 wxBrush *arg1 = (wxBrush *) 0 ;
2270 wxBitmap *arg2 = 0 ;
2271 PyObject * obj0 = 0 ;
2272 PyObject * obj1 = 0 ;
2273 char *kwnames[] = {
2274 (char *) "self",(char *) "stipple", NULL
2275 };
2276
2277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2279 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2280 if (arg2 == NULL) {
2281 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2282 }
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 (arg1)->SetStipple((wxBitmap const &)*arg2);
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 Py_INCREF(Py_None); resultobj = Py_None;
2291 return resultobj;
2292 fail:
2293 return NULL;
2294}
2295
2296
2297static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2298 PyObject *resultobj;
2299 wxBrush *arg1 = (wxBrush *) 0 ;
2300 wxColour result;
2301 PyObject * obj0 = 0 ;
2302 char *kwnames[] = {
2303 (char *) "self", NULL
2304 };
2305
2306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2308 {
2309 PyThreadState* __tstate = wxPyBeginAllowThreads();
2310 result = ((wxBrush const *)arg1)->GetColour();
2311
2312 wxPyEndAllowThreads(__tstate);
2313 if (PyErr_Occurred()) SWIG_fail;
2314 }
2315 {
2316 wxColour * resultptr;
2317 resultptr = new wxColour((wxColour &) result);
2318 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323}
2324
2325
2326static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 wxBrush *arg1 = (wxBrush *) 0 ;
2329 int result;
2330 PyObject * obj0 = 0 ;
2331 char *kwnames[] = {
2332 (char *) "self", NULL
2333 };
2334
2335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2337 {
2338 PyThreadState* __tstate = wxPyBeginAllowThreads();
2339 result = (int)((wxBrush const *)arg1)->GetStyle();
2340
2341 wxPyEndAllowThreads(__tstate);
2342 if (PyErr_Occurred()) SWIG_fail;
2343 }
2344 resultobj = SWIG_PyObj_FromInt((int)result);
2345 return resultobj;
2346 fail:
2347 return NULL;
2348}
2349
2350
2351static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2352 PyObject *resultobj;
2353 wxBrush *arg1 = (wxBrush *) 0 ;
2354 wxBitmap *result;
2355 PyObject * obj0 = 0 ;
2356 char *kwnames[] = {
2357 (char *) "self", NULL
2358 };
2359
2360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2362 {
2363 PyThreadState* __tstate = wxPyBeginAllowThreads();
2364 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2365
2366 wxPyEndAllowThreads(__tstate);
2367 if (PyErr_Occurred()) SWIG_fail;
2368 }
2369 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2370 return resultobj;
2371 fail:
2372 return NULL;
2373}
2374
2375
2376static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject *resultobj;
2378 wxBrush *arg1 = (wxBrush *) 0 ;
2379 bool result;
2380 PyObject * obj0 = 0 ;
2381 char *kwnames[] = {
2382 (char *) "self", NULL
2383 };
2384
2385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2387 {
2388 PyThreadState* __tstate = wxPyBeginAllowThreads();
2389 result = (bool)(arg1)->Ok();
2390
2391 wxPyEndAllowThreads(__tstate);
2392 if (PyErr_Occurred()) SWIG_fail;
2393 }
2394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2395 return resultobj;
2396 fail:
2397 return NULL;
2398}
2399
2400
2401static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2402 PyObject *obj;
2403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2404 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2405 Py_INCREF(obj);
2406 return Py_BuildValue((char *)"");
2407}
2408static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2409 PyObject *resultobj;
2410 wxString *arg1 = 0 ;
2411 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2412 wxBitmap *result;
2413 bool temp1 = False ;
2414 PyObject * obj0 = 0 ;
2415 PyObject * obj1 = 0 ;
2416 char *kwnames[] = {
2417 (char *) "name",(char *) "type", NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2421 {
2422 arg1 = wxString_in_helper(obj0);
2423 if (arg1 == NULL) SWIG_fail;
2424 temp1 = True;
2425 }
2426 if (obj1) {
2427 {
2428 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2429 if (PyErr_Occurred()) SWIG_fail;
2430 }
2431 }
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2440 {
2441 if (temp1)
2442 delete arg1;
2443 }
2444 return resultobj;
2445 fail:
2446 {
2447 if (temp1)
2448 delete arg1;
2449 }
2450 return NULL;
2451}
2452
2453
2454static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject *resultobj;
2456 wxBitmap *arg1 = (wxBitmap *) 0 ;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "self", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 delete arg1;
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 Py_INCREF(Py_None); resultobj = Py_None;
2472 return resultobj;
2473 fail:
2474 return NULL;
2475}
2476
2477
2478static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 int arg1 ;
2481 int arg2 ;
2482 int arg3 = (int) -1 ;
2483 wxBitmap *result;
2484 PyObject * obj0 = 0 ;
2485 PyObject * obj1 = 0 ;
2486 PyObject * obj2 = 0 ;
2487 char *kwnames[] = {
2488 (char *) "width",(char *) "height",(char *) "depth", NULL
2489 };
2490
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2492 {
2493 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2494 if (PyErr_Occurred()) SWIG_fail;
2495 }
2496 {
2497 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2498 if (PyErr_Occurred()) SWIG_fail;
2499 }
2500 if (obj2) {
2501 {
2502 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 }
2506 {
2507 PyThreadState* __tstate = wxPyBeginAllowThreads();
2508 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2509
2510 wxPyEndAllowThreads(__tstate);
2511 if (PyErr_Occurred()) SWIG_fail;
2512 }
2513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2514 return resultobj;
2515 fail:
2516 return NULL;
2517}
2518
2519
2520static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2521 PyObject *resultobj;
2522 wxIcon *arg1 = 0 ;
2523 wxBitmap *result;
2524 PyObject * obj0 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "icon", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2531 if (arg1 == NULL) {
2532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2533 }
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 }
2541 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2542 return resultobj;
2543 fail:
2544 return NULL;
2545}
2546
2547
2548static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2549 PyObject *resultobj;
2550 wxImage *arg1 = 0 ;
2551 int arg2 = (int) -1 ;
2552 wxBitmap *result;
2553 PyObject * obj0 = 0 ;
2554 PyObject * obj1 = 0 ;
2555 char *kwnames[] = {
2556 (char *) "image",(char *) "depth", NULL
2557 };
2558
2559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2561 if (arg1 == NULL) {
2562 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2563 }
2564 if (obj1) {
2565 {
2566 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2578 return resultobj;
2579 fail:
2580 return NULL;
2581}
2582
2583
2584static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj;
2586 PyObject *arg1 = (PyObject *) 0 ;
2587 wxBitmap *result;
2588 PyObject * obj0 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "listOfStrings", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2594 arg1 = obj0;
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 result = (wxBitmap *)new_wxBitmap(arg1);
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2603 return resultobj;
2604 fail:
2605 return NULL;
2606}
2607
2608
2609static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2610 PyObject *resultobj;
2611 PyObject *arg1 = (PyObject *) 0 ;
2612 int arg2 ;
2613 int arg3 ;
2614 int arg4 = (int) 1 ;
2615 wxBitmap *result;
2616 PyObject * obj0 = 0 ;
2617 PyObject * obj1 = 0 ;
2618 PyObject * obj2 = 0 ;
2619 PyObject * obj3 = 0 ;
2620 char *kwnames[] = {
2621 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2622 };
2623
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2625 arg1 = obj0;
2626 {
2627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 {
2631 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 if (obj3) {
2635 {
2636 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 }
2640 {
2641 PyThreadState* __tstate = wxPyBeginAllowThreads();
2642 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2643
2644 wxPyEndAllowThreads(__tstate);
2645 if (PyErr_Occurred()) SWIG_fail;
2646 }
2647 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2648 return resultobj;
2649 fail:
2650 return NULL;
2651}
2652
2653
2654static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2655 PyObject *resultobj;
2656 wxBitmap *arg1 = (wxBitmap *) 0 ;
2657 wxPalette *arg2 = 0 ;
2658 PyObject * obj0 = 0 ;
2659 PyObject * obj1 = 0 ;
2660 char *kwnames[] = {
2661 (char *) "self",(char *) "palette", NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2666 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2667 if (arg2 == NULL) {
2668 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2669 }
2670 {
2671 PyThreadState* __tstate = wxPyBeginAllowThreads();
2672 (arg1)->SetPalette(*arg2);
2673
2674 wxPyEndAllowThreads(__tstate);
2675 if (PyErr_Occurred()) SWIG_fail;
2676 }
2677 Py_INCREF(Py_None); resultobj = Py_None;
2678 return resultobj;
2679 fail:
2680 return NULL;
2681}
2682
2683
2684static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject *resultobj;
2686 wxBitmap *arg1 = (wxBitmap *) 0 ;
2687 long result;
2688 PyObject * obj0 = 0 ;
2689 char *kwnames[] = {
2690 (char *) "self", NULL
2691 };
2692
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2695 {
2696 PyThreadState* __tstate = wxPyBeginAllowThreads();
2697 result = (long)(arg1)->GetHandle();
2698
2699 wxPyEndAllowThreads(__tstate);
2700 if (PyErr_Occurred()) SWIG_fail;
2701 }
2702 resultobj = SWIG_PyObj_FromLong((long)result);
2703 return resultobj;
2704 fail:
2705 return NULL;
2706}
2707
2708
2709static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxBitmap *arg1 = (wxBitmap *) 0 ;
2712 long arg2 ;
2713 PyObject * obj0 = 0 ;
2714 PyObject * obj1 = 0 ;
2715 char *kwnames[] = {
2716 (char *) "self",(char *) "handle", NULL
2717 };
2718
2719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2721 {
2722 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 {
2726 PyThreadState* __tstate = wxPyBeginAllowThreads();
2727 (arg1)->SetHandle(arg2);
2728
2729 wxPyEndAllowThreads(__tstate);
2730 if (PyErr_Occurred()) SWIG_fail;
2731 }
2732 Py_INCREF(Py_None); resultobj = Py_None;
2733 return resultobj;
2734 fail:
2735 return NULL;
2736}
2737
2738
2739static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2740 PyObject *resultobj;
2741 wxBitmap *arg1 = (wxBitmap *) 0 ;
2742 bool result;
2743 PyObject * obj0 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "self", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 result = (bool)(arg1)->Ok();
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2758 return resultobj;
2759 fail:
2760 return NULL;
2761}
2762
2763
2764static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2765 PyObject *resultobj;
2766 wxBitmap *arg1 = (wxBitmap *) 0 ;
2767 int result;
2768 PyObject * obj0 = 0 ;
2769 char *kwnames[] = {
2770 (char *) "self", NULL
2771 };
2772
2773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2775 {
2776 PyThreadState* __tstate = wxPyBeginAllowThreads();
2777 result = (int)(arg1)->GetWidth();
2778
2779 wxPyEndAllowThreads(__tstate);
2780 if (PyErr_Occurred()) SWIG_fail;
2781 }
2782 resultobj = SWIG_PyObj_FromInt((int)result);
2783 return resultobj;
2784 fail:
2785 return NULL;
2786}
2787
2788
2789static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2790 PyObject *resultobj;
2791 wxBitmap *arg1 = (wxBitmap *) 0 ;
2792 int result;
2793 PyObject * obj0 = 0 ;
2794 char *kwnames[] = {
2795 (char *) "self", NULL
2796 };
2797
2798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2800 {
2801 PyThreadState* __tstate = wxPyBeginAllowThreads();
2802 result = (int)(arg1)->GetHeight();
2803
2804 wxPyEndAllowThreads(__tstate);
2805 if (PyErr_Occurred()) SWIG_fail;
2806 }
2807 resultobj = SWIG_PyObj_FromInt((int)result);
2808 return resultobj;
2809 fail:
2810 return NULL;
2811}
2812
2813
2814static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2815 PyObject *resultobj;
2816 wxBitmap *arg1 = (wxBitmap *) 0 ;
2817 int result;
2818 PyObject * obj0 = 0 ;
2819 char *kwnames[] = {
2820 (char *) "self", NULL
2821 };
2822
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2825 {
2826 PyThreadState* __tstate = wxPyBeginAllowThreads();
2827 result = (int)(arg1)->GetDepth();
2828
2829 wxPyEndAllowThreads(__tstate);
2830 if (PyErr_Occurred()) SWIG_fail;
2831 }
2832 resultobj = SWIG_PyObj_FromInt((int)result);
2833 return resultobj;
2834 fail:
2835 return NULL;
2836}
2837
2838
2839static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 wxBitmap *arg1 = (wxBitmap *) 0 ;
2842 SwigValueWrapper< wxImage > result;
2843 PyObject * obj0 = 0 ;
2844 char *kwnames[] = {
2845 (char *) "self", NULL
2846 };
2847
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = ((wxBitmap const *)arg1)->ConvertToImage();
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858 wxImage * resultptr;
2859 resultptr = new wxImage((wxImage &) result);
2860 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2861 }
2862 return resultobj;
2863 fail:
2864 return NULL;
2865}
2866
2867
2868static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2869 PyObject *resultobj;
2870 wxBitmap *arg1 = (wxBitmap *) 0 ;
2871 wxMask *result;
2872 PyObject * obj0 = 0 ;
2873 char *kwnames[] = {
2874 (char *) "self", NULL
2875 };
2876
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2879 {
2880 PyThreadState* __tstate = wxPyBeginAllowThreads();
2881 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2882
2883 wxPyEndAllowThreads(__tstate);
2884 if (PyErr_Occurred()) SWIG_fail;
2885 }
2886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2887 return resultobj;
2888 fail:
2889 return NULL;
2890}
2891
2892
2893static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2894 PyObject *resultobj;
2895 wxBitmap *arg1 = (wxBitmap *) 0 ;
2896 wxMask *arg2 = (wxMask *) 0 ;
2897 PyObject * obj0 = 0 ;
2898 PyObject * obj1 = 0 ;
2899 char *kwnames[] = {
2900 (char *) "self",(char *) "mask", NULL
2901 };
2902
2903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2905 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2906 {
2907 PyThreadState* __tstate = wxPyBeginAllowThreads();
2908 (arg1)->SetMask(arg2);
2909
2910 wxPyEndAllowThreads(__tstate);
2911 if (PyErr_Occurred()) SWIG_fail;
2912 }
2913 Py_INCREF(Py_None); resultobj = Py_None;
2914 return resultobj;
2915 fail:
2916 return NULL;
2917}
2918
2919
2920static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2921 PyObject *resultobj;
2922 wxBitmap *arg1 = (wxBitmap *) 0 ;
2923 wxColour *arg2 = 0 ;
2924 wxColour temp2 ;
2925 PyObject * obj0 = 0 ;
2926 PyObject * obj1 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "self",(char *) "colour", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2933 {
2934 arg2 = &temp2;
2935 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 Py_INCREF(Py_None); resultobj = Py_None;
2945 return resultobj;
2946 fail:
2947 return NULL;
2948}
2949
2950
2951static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2952 PyObject *resultobj;
2953 wxBitmap *arg1 = (wxBitmap *) 0 ;
2954 wxRect *arg2 = 0 ;
2955 SwigValueWrapper< wxBitmap > result;
2956 wxRect temp2 ;
2957 PyObject * obj0 = 0 ;
2958 PyObject * obj1 = 0 ;
2959 char *kwnames[] = {
2960 (char *) "self",(char *) "rect", NULL
2961 };
2962
2963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2965 {
2966 arg2 = &temp2;
2967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2968 }
2969 {
2970 PyThreadState* __tstate = wxPyBeginAllowThreads();
2971 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2972
2973 wxPyEndAllowThreads(__tstate);
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 {
2977 wxBitmap * resultptr;
2978 resultptr = new wxBitmap((wxBitmap &) result);
2979 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2980 }
2981 return resultobj;
2982 fail:
2983 return NULL;
2984}
2985
2986
2987static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj;
2989 wxBitmap *arg1 = (wxBitmap *) 0 ;
2990 wxString *arg2 = 0 ;
2991 int arg3 ;
2992 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2993 bool result;
2994 bool temp2 = False ;
2995 PyObject * obj0 = 0 ;
2996 PyObject * obj1 = 0 ;
2997 PyObject * obj2 = 0 ;
2998 PyObject * obj3 = 0 ;
2999 char *kwnames[] = {
3000 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3001 };
3002
3003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3005 {
3006 arg2 = wxString_in_helper(obj1);
3007 if (arg2 == NULL) SWIG_fail;
3008 temp2 = True;
3009 }
3010 {
3011 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3012 if (PyErr_Occurred()) SWIG_fail;
3013 }
3014 if (obj3) {
3015 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3025 {
3026 if (temp2)
3027 delete arg2;
3028 }
3029 return resultobj;
3030 fail:
3031 {
3032 if (temp2)
3033 delete arg2;
3034 }
3035 return NULL;
3036}
3037
3038
3039static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj;
3041 wxBitmap *arg1 = (wxBitmap *) 0 ;
3042 wxString *arg2 = 0 ;
3043 int arg3 ;
3044 bool result;
3045 bool temp2 = False ;
3046 PyObject * obj0 = 0 ;
3047 PyObject * obj1 = 0 ;
3048 PyObject * obj2 = 0 ;
3049 char *kwnames[] = {
3050 (char *) "self",(char *) "name",(char *) "type", NULL
3051 };
3052
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3055 {
3056 arg2 = wxString_in_helper(obj1);
3057 if (arg2 == NULL) SWIG_fail;
3058 temp2 = True;
3059 }
3060 {
3061 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3062 if (PyErr_Occurred()) SWIG_fail;
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) SWIG_fail;
3070 }
3071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3072 {
3073 if (temp2)
3074 delete arg2;
3075 }
3076 return resultobj;
3077 fail:
3078 {
3079 if (temp2)
3080 delete arg2;
3081 }
3082 return NULL;
3083}
3084
3085
3086static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3087 PyObject *resultobj;
3088 wxBitmap *arg1 = (wxBitmap *) 0 ;
3089 wxIcon *arg2 = 0 ;
3090 bool result;
3091 PyObject * obj0 = 0 ;
3092 PyObject * obj1 = 0 ;
3093 char *kwnames[] = {
3094 (char *) "self",(char *) "icon", NULL
3095 };
3096
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3099 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3100 if (arg2 == NULL) {
3101 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3102 }
3103 {
3104 PyThreadState* __tstate = wxPyBeginAllowThreads();
3105 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3106
3107 wxPyEndAllowThreads(__tstate);
3108 if (PyErr_Occurred()) SWIG_fail;
3109 }
3110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3111 return resultobj;
3112 fail:
3113 return NULL;
3114}
3115
3116
3117static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3118 PyObject *resultobj;
3119 wxBitmap *arg1 = (wxBitmap *) 0 ;
3120 int arg2 ;
3121 PyObject * obj0 = 0 ;
3122 PyObject * obj1 = 0 ;
3123 char *kwnames[] = {
3124 (char *) "self",(char *) "height", NULL
3125 };
3126
3127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3129 {
3130 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3131 if (PyErr_Occurred()) SWIG_fail;
3132 }
3133 {
3134 PyThreadState* __tstate = wxPyBeginAllowThreads();
3135 (arg1)->SetHeight(arg2);
3136
3137 wxPyEndAllowThreads(__tstate);
3138 if (PyErr_Occurred()) SWIG_fail;
3139 }
3140 Py_INCREF(Py_None); resultobj = Py_None;
3141 return resultobj;
3142 fail:
3143 return NULL;
3144}
3145
3146
3147static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3148 PyObject *resultobj;
3149 wxBitmap *arg1 = (wxBitmap *) 0 ;
3150 int arg2 ;
3151 PyObject * obj0 = 0 ;
3152 PyObject * obj1 = 0 ;
3153 char *kwnames[] = {
3154 (char *) "self",(char *) "width", NULL
3155 };
3156
3157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3159 {
3160 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3161 if (PyErr_Occurred()) SWIG_fail;
3162 }
3163 {
3164 PyThreadState* __tstate = wxPyBeginAllowThreads();
3165 (arg1)->SetWidth(arg2);
3166
3167 wxPyEndAllowThreads(__tstate);
3168 if (PyErr_Occurred()) SWIG_fail;
3169 }
3170 Py_INCREF(Py_None); resultobj = Py_None;
3171 return resultobj;
3172 fail:
3173 return NULL;
3174}
3175
3176
3177static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3178 PyObject *resultobj;
3179 wxBitmap *arg1 = (wxBitmap *) 0 ;
3180 int arg2 ;
3181 PyObject * obj0 = 0 ;
3182 PyObject * obj1 = 0 ;
3183 char *kwnames[] = {
3184 (char *) "self",(char *) "depth", NULL
3185 };
3186
3187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3189 {
3190 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 {
3194 PyThreadState* __tstate = wxPyBeginAllowThreads();
3195 (arg1)->SetDepth(arg2);
3196
3197 wxPyEndAllowThreads(__tstate);
3198 if (PyErr_Occurred()) SWIG_fail;
3199 }
3200 Py_INCREF(Py_None); resultobj = Py_None;
3201 return resultobj;
3202 fail:
3203 return NULL;
3204}
3205
3206
3207static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3208 PyObject *resultobj;
3209 wxBitmap *arg1 = (wxBitmap *) 0 ;
3210 wxCursor *arg2 = 0 ;
3211 bool result;
3212 PyObject * obj0 = 0 ;
3213 PyObject * obj1 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "self",(char *) "cursor", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3220 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3221 if (arg2 == NULL) {
3222 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3223 }
3224 {
3225 PyThreadState* __tstate = wxPyBeginAllowThreads();
3226 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3227
3228 wxPyEndAllowThreads(__tstate);
3229 if (PyErr_Occurred()) SWIG_fail;
3230 }
3231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3232 return resultobj;
3233 fail:
3234 return NULL;
3235}
3236
3237
3238static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3239 PyObject *resultobj;
3240 wxBitmap *arg1 = (wxBitmap *) 0 ;
3241 int result;
3242 PyObject * obj0 = 0 ;
3243 char *kwnames[] = {
3244 (char *) "self", NULL
3245 };
3246
3247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3249 {
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = (int)(arg1)->GetQuality();
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 resultobj = SWIG_PyObj_FromInt((int)result);
3257 return resultobj;
3258 fail:
3259 return NULL;
3260}
3261
3262
3263static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject *resultobj;
3265 wxBitmap *arg1 = (wxBitmap *) 0 ;
3266 int arg2 ;
3267 PyObject * obj0 = 0 ;
3268 PyObject * obj1 = 0 ;
3269 char *kwnames[] = {
3270 (char *) "self",(char *) "q", NULL
3271 };
3272
3273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3275 {
3276 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3277 if (PyErr_Occurred()) SWIG_fail;
3278 }
3279 {
3280 PyThreadState* __tstate = wxPyBeginAllowThreads();
3281 (arg1)->SetQuality(arg2);
3282
3283 wxPyEndAllowThreads(__tstate);
3284 if (PyErr_Occurred()) SWIG_fail;
3285 }
3286 Py_INCREF(Py_None); resultobj = Py_None;
3287 return resultobj;
3288 fail:
3289 return NULL;
3290}
3291
3292
3293static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3294 PyObject *obj;
3295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3296 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3297 Py_INCREF(obj);
3298 return Py_BuildValue((char *)"");
3299}
3300static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxBitmap *arg1 = 0 ;
3303 wxColour const &arg2_defvalue = wxNullColour ;
3304 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3305 wxMask *result;
3306 wxColour temp2 ;
3307 PyObject * obj0 = 0 ;
3308 PyObject * obj1 = 0 ;
3309 char *kwnames[] = {
3310 (char *) "bitmap",(char *) "colour", NULL
3311 };
3312
3313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3315 if (arg1 == NULL) {
3316 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3317 }
3318 if (obj1) {
3319 {
3320 arg2 = &temp2;
3321 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3322 }
3323 }
3324 {
3325 PyThreadState* __tstate = wxPyBeginAllowThreads();
3326 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3327
3328 wxPyEndAllowThreads(__tstate);
3329 if (PyErr_Occurred()) SWIG_fail;
3330 }
3331 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3332 return resultobj;
3333 fail:
3334 return NULL;
3335}
3336
3337
3338static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3339 PyObject *obj;
3340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3341 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3342 Py_INCREF(obj);
3343 return Py_BuildValue((char *)"");
3344}
3345static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3346 PyObject *resultobj;
3347 wxString *arg1 = 0 ;
3348 int arg2 ;
3349 int arg3 = (int) -1 ;
3350 int arg4 = (int) -1 ;
3351 wxIcon *result;
3352 bool temp1 = False ;
3353 PyObject * obj0 = 0 ;
3354 PyObject * obj1 = 0 ;
3355 PyObject * obj2 = 0 ;
3356 PyObject * obj3 = 0 ;
3357 char *kwnames[] = {
3358 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3359 };
3360
3361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3362 {
3363 arg1 = wxString_in_helper(obj0);
3364 if (arg1 == NULL) SWIG_fail;
3365 temp1 = True;
3366 }
3367 {
3368 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 if (obj2) {
3372 {
3373 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3374 if (PyErr_Occurred()) SWIG_fail;
3375 }
3376 }
3377 if (obj3) {
3378 {
3379 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 }
3383 {
3384 PyThreadState* __tstate = wxPyBeginAllowThreads();
3385 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3386
3387 wxPyEndAllowThreads(__tstate);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 }
3390 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3391 {
3392 if (temp1)
3393 delete arg1;
3394 }
3395 return resultobj;
3396 fail:
3397 {
3398 if (temp1)
3399 delete arg1;
3400 }
3401 return NULL;
3402}
3403
3404
3405static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3406 PyObject *resultobj;
3407 wxIcon *arg1 = (wxIcon *) 0 ;
3408 PyObject * obj0 = 0 ;
3409 char *kwnames[] = {
3410 (char *) "self", NULL
3411 };
3412
3413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415 {
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 delete arg1;
3418
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 Py_INCREF(Py_None); resultobj = Py_None;
3423 return resultobj;
3424 fail:
3425 return NULL;
3426}
3427
3428
3429static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3430 PyObject *resultobj;
3431 wxIcon *result;
3432 char *kwnames[] = {
3433 NULL
3434 };
3435
3436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3437 {
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 result = (wxIcon *)new wxIcon();
3440
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3445 return resultobj;
3446 fail:
3447 return NULL;
3448}
3449
3450
3451static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxIconLocation *arg1 = 0 ;
3454 wxIcon *result;
3455 PyObject * obj0 = 0 ;
3456 char *kwnames[] = {
3457 (char *) "loc", NULL
3458 };
3459
3460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3462 if (arg1 == NULL) {
3463 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3464 }
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3473 return resultobj;
3474 fail:
3475 return NULL;
3476}
3477
3478
3479static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3480 PyObject *resultobj;
3481 wxBitmap *arg1 = 0 ;
3482 wxIcon *result;
3483 PyObject * obj0 = 0 ;
3484 char *kwnames[] = {
3485 (char *) "bmp", NULL
3486 };
3487
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3490 if (arg1 == NULL) {
3491 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3492 }
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3501 return resultobj;
3502 fail:
3503 return NULL;
3504}
3505
3506
3507static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3508 PyObject *resultobj;
3509 PyObject *arg1 = (PyObject *) 0 ;
3510 wxIcon *result;
3511 PyObject * obj0 = 0 ;
3512 char *kwnames[] = {
3513 (char *) "listOfStrings", NULL
3514 };
3515
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3517 arg1 = obj0;
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
3520 result = (wxIcon *)new_wxIcon(arg1);
3521
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3526 return resultobj;
3527 fail:
3528 return NULL;
3529}
3530
3531
3532static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj;
3534 wxIcon *arg1 = (wxIcon *) 0 ;
3535 wxString *arg2 = 0 ;
3536 int arg3 ;
3537 bool result;
3538 bool temp2 = False ;
3539 PyObject * obj0 = 0 ;
3540 PyObject * obj1 = 0 ;
3541 PyObject * obj2 = 0 ;
3542 char *kwnames[] = {
3543 (char *) "self",(char *) "name",(char *) "type", NULL
3544 };
3545
3546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3548 {
3549 arg2 = wxString_in_helper(obj1);
3550 if (arg2 == NULL) SWIG_fail;
3551 temp2 = True;
3552 }
3553 {
3554 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3565 {
3566 if (temp2)
3567 delete arg2;
3568 }
3569 return resultobj;
3570 fail:
3571 {
3572 if (temp2)
3573 delete arg2;
3574 }
3575 return NULL;
3576}
3577
3578
3579static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxIcon *arg1 = (wxIcon *) 0 ;
3582 long result;
3583 PyObject * obj0 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "self", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3590 {
3591 PyThreadState* __tstate = wxPyBeginAllowThreads();
3592 result = (long)(arg1)->GetHandle();
3593
3594 wxPyEndAllowThreads(__tstate);
3595 if (PyErr_Occurred()) SWIG_fail;
3596 }
3597 resultobj = SWIG_PyObj_FromLong((long)result);
3598 return resultobj;
3599 fail:
3600 return NULL;
3601}
3602
3603
3604static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3605 PyObject *resultobj;
3606 wxIcon *arg1 = (wxIcon *) 0 ;
3607 long arg2 ;
3608 PyObject * obj0 = 0 ;
3609 PyObject * obj1 = 0 ;
3610 char *kwnames[] = {
3611 (char *) "self",(char *) "handle", NULL
3612 };
3613
3614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3616 {
3617 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3618 if (PyErr_Occurred()) SWIG_fail;
3619 }
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 (arg1)->SetHandle(arg2);
3623
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 Py_INCREF(Py_None); resultobj = Py_None;
3628 return resultobj;
3629 fail:
3630 return NULL;
3631}
3632
3633
3634static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject *resultobj;
3636 wxIcon *arg1 = (wxIcon *) 0 ;
3637 bool result;
3638 PyObject * obj0 = 0 ;
3639 char *kwnames[] = {
3640 (char *) "self", NULL
3641 };
3642
3643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3645 {
3646 PyThreadState* __tstate = wxPyBeginAllowThreads();
3647 result = (bool)(arg1)->Ok();
3648
3649 wxPyEndAllowThreads(__tstate);
3650 if (PyErr_Occurred()) SWIG_fail;
3651 }
3652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3653 return resultobj;
3654 fail:
3655 return NULL;
3656}
3657
3658
3659static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3660 PyObject *resultobj;
3661 wxIcon *arg1 = (wxIcon *) 0 ;
3662 int result;
3663 PyObject * obj0 = 0 ;
3664 char *kwnames[] = {
3665 (char *) "self", NULL
3666 };
3667
3668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 result = (int)(arg1)->GetWidth();
3673
3674 wxPyEndAllowThreads(__tstate);
3675 if (PyErr_Occurred()) SWIG_fail;
3676 }
3677 resultobj = SWIG_PyObj_FromInt((int)result);
3678 return resultobj;
3679 fail:
3680 return NULL;
3681}
3682
3683
3684static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3685 PyObject *resultobj;
3686 wxIcon *arg1 = (wxIcon *) 0 ;
3687 int result;
3688 PyObject * obj0 = 0 ;
3689 char *kwnames[] = {
3690 (char *) "self", NULL
3691 };
3692
3693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 result = (int)(arg1)->GetHeight();
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_PyObj_FromInt((int)result);
3703 return resultobj;
3704 fail:
3705 return NULL;
3706}
3707
3708
3709static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3710 PyObject *resultobj;
3711 wxIcon *arg1 = (wxIcon *) 0 ;
3712 int result;
3713 PyObject * obj0 = 0 ;
3714 char *kwnames[] = {
3715 (char *) "self", NULL
3716 };
3717
3718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 result = (int)(arg1)->GetDepth();
3723
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 resultobj = SWIG_PyObj_FromInt((int)result);
3728 return resultobj;
3729 fail:
3730 return NULL;
3731}
3732
3733
3734static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3735 PyObject *resultobj;
3736 wxIcon *arg1 = (wxIcon *) 0 ;
3737 int arg2 ;
3738 PyObject * obj0 = 0 ;
3739 PyObject * obj1 = 0 ;
3740 char *kwnames[] = {
3741 (char *) "self",(char *) "w", NULL
3742 };
3743
3744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3746 {
3747 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 {
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 (arg1)->SetWidth(arg2);
3753
3754 wxPyEndAllowThreads(__tstate);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 Py_INCREF(Py_None); resultobj = Py_None;
3758 return resultobj;
3759 fail:
3760 return NULL;
3761}
3762
3763
3764static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj;
3766 wxIcon *arg1 = (wxIcon *) 0 ;
3767 int arg2 ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 char *kwnames[] = {
3771 (char *) "self",(char *) "h", NULL
3772 };
3773
3774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3776 {
3777 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 {
3781 PyThreadState* __tstate = wxPyBeginAllowThreads();
3782 (arg1)->SetHeight(arg2);
3783
3784 wxPyEndAllowThreads(__tstate);
3785 if (PyErr_Occurred()) SWIG_fail;
3786 }
3787 Py_INCREF(Py_None); resultobj = Py_None;
3788 return resultobj;
3789 fail:
3790 return NULL;
3791}
3792
3793
3794static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj;
3796 wxIcon *arg1 = (wxIcon *) 0 ;
3797 int arg2 ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 char *kwnames[] = {
3801 (char *) "self",(char *) "d", NULL
3802 };
3803
3804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3806 {
3807 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3808 if (PyErr_Occurred()) SWIG_fail;
3809 }
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 (arg1)->SetDepth(arg2);
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) SWIG_fail;
3816 }
3817 Py_INCREF(Py_None); resultobj = Py_None;
3818 return resultobj;
3819 fail:
3820 return NULL;
3821}
3822
3823
3824static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 wxIcon *arg1 = (wxIcon *) 0 ;
3827 wxSize *arg2 = 0 ;
3828 wxSize temp2 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 char *kwnames[] = {
3832 (char *) "self",(char *) "size", NULL
3833 };
3834
3835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
3836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3837 {
3838 arg2 = &temp2;
3839 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3840 }
3841 {
3842 PyThreadState* __tstate = wxPyBeginAllowThreads();
3843 (arg1)->SetSize((wxSize const &)*arg2);
3844
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
3848 Py_INCREF(Py_None); resultobj = Py_None;
3849 return resultobj;
3850 fail:
3851 return NULL;
3852}
3853
3854
3855static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj;
3857 wxIcon *arg1 = (wxIcon *) 0 ;
3858 wxBitmap *arg2 = 0 ;
3859 PyObject * obj0 = 0 ;
3860 PyObject * obj1 = 0 ;
3861 char *kwnames[] = {
3862 (char *) "self",(char *) "bmp", NULL
3863 };
3864
3865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3867 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3868 if (arg2 == NULL) {
3869 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3870 }
3871 {
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 Py_INCREF(Py_None); resultobj = Py_None;
3879 return resultobj;
3880 fail:
3881 return NULL;
3882}
3883
3884
3885static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3886 PyObject *obj;
3887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3888 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3889 Py_INCREF(obj);
3890 return Py_BuildValue((char *)"");
3891}
3892static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3893 PyObject *resultobj;
3894 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3895 int arg2 = (int) 0 ;
3896 wxIconLocation *result;
3897 bool temp1 = False ;
3898 PyObject * obj0 = 0 ;
3899 PyObject * obj1 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "filename",(char *) "num", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3905 if (obj0) {
3906 {
3907 arg1 = wxString_in_helper(obj0);
3908 if (arg1 == NULL) SWIG_fail;
3909 temp1 = True;
3910 }
3911 }
3912 if (obj1) {
3913 {
3914 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 }
3918 {
3919 PyThreadState* __tstate = wxPyBeginAllowThreads();
3920 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3921
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3926 {
3927 if (temp1)
3928 delete arg1;
3929 }
3930 return resultobj;
3931 fail:
3932 {
3933 if (temp1)
3934 delete arg1;
3935 }
3936 return NULL;
3937}
3938
3939
3940static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "self", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 delete arg1;
3953
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 Py_INCREF(Py_None); resultobj = Py_None;
3958 return resultobj;
3959 fail:
3960 return NULL;
3961}
3962
3963
3964static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj;
3966 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3967 bool result;
3968 PyObject * obj0 = 0 ;
3969 char *kwnames[] = {
3970 (char *) "self", NULL
3971 };
3972
3973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3978
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 }
3982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3983 return resultobj;
3984 fail:
3985 return NULL;
3986}
3987
3988
3989static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3990 PyObject *resultobj;
3991 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3992 wxString *arg2 = 0 ;
3993 bool temp2 = False ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self",(char *) "filename", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4002 {
4003 arg2 = wxString_in_helper(obj1);
4004 if (arg2 == NULL) SWIG_fail;
4005 temp2 = True;
4006 }
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 (arg1)->SetFileName((wxString const &)*arg2);
4010
4011 wxPyEndAllowThreads(__tstate);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 Py_INCREF(Py_None); resultobj = Py_None;
4015 {
4016 if (temp2)
4017 delete arg2;
4018 }
4019 return resultobj;
4020 fail:
4021 {
4022 if (temp2)
4023 delete arg2;
4024 }
4025 return NULL;
4026}
4027
4028
4029static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4030 PyObject *resultobj;
4031 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4032 wxString *result;
4033 PyObject * obj0 = 0 ;
4034 char *kwnames[] = {
4035 (char *) "self", NULL
4036 };
4037
4038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 {
4043 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4044 result = (wxString *) &_result_ref;
4045 }
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051#if wxUSE_UNICODE
4052 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4053#else
4054 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4055#endif
4056 }
4057 return resultobj;
4058 fail:
4059 return NULL;
4060}
4061
4062
4063static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4064 PyObject *resultobj;
4065 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4066 int arg2 ;
4067 PyObject * obj0 = 0 ;
4068 PyObject * obj1 = 0 ;
4069 char *kwnames[] = {
4070 (char *) "self",(char *) "num", NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4075 {
4076 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 wxIconLocation_SetIndex(arg1,arg2);
4082
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 Py_INCREF(Py_None); resultobj = Py_None;
4087 return resultobj;
4088 fail:
4089 return NULL;
4090}
4091
4092
4093static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj;
4095 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4096 int result;
4097 PyObject * obj0 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 result = (int)wxIconLocation_GetIndex(arg1);
4107
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 resultobj = SWIG_PyObj_FromInt((int)result);
4112 return resultobj;
4113 fail:
4114 return NULL;
4115}
4116
4117
4118static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4119 PyObject *obj;
4120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4121 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4122 Py_INCREF(obj);
4123 return Py_BuildValue((char *)"");
4124}
4125static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4126 PyObject *resultobj;
4127 wxIconBundle *result;
4128 char *kwnames[] = {
4129 NULL
4130 };
4131
4132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (wxIconBundle *)new wxIconBundle();
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4141 return resultobj;
4142 fail:
4143 return NULL;
4144}
4145
4146
4147static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4148 PyObject *resultobj;
4149 wxString *arg1 = 0 ;
4150 long arg2 ;
4151 wxIconBundle *result;
4152 bool temp1 = False ;
4153 PyObject * obj0 = 0 ;
4154 PyObject * obj1 = 0 ;
4155 char *kwnames[] = {
4156 (char *) "file",(char *) "type", NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4160 {
4161 arg1 = wxString_in_helper(obj0);
4162 if (arg1 == NULL) SWIG_fail;
4163 temp1 = True;
4164 }
4165 {
4166 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4177 {
4178 if (temp1)
4179 delete arg1;
4180 }
4181 return resultobj;
4182 fail:
4183 {
4184 if (temp1)
4185 delete arg1;
4186 }
4187 return NULL;
4188}
4189
4190
4191static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxIcon *arg1 = 0 ;
4194 wxIconBundle *result;
4195 PyObject * obj0 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "icon", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4202 if (arg1 == NULL) {
4203 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4204 }
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4208
4209 wxPyEndAllowThreads(__tstate);
4210 if (PyErr_Occurred()) SWIG_fail;
4211 }
4212 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4213 return resultobj;
4214 fail:
4215 return NULL;
4216}
4217
4218
4219static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject *resultobj;
4221 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4222 PyObject * obj0 = 0 ;
4223 char *kwnames[] = {
4224 (char *) "self", NULL
4225 };
4226
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4229 {
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 delete arg1;
4232
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 Py_INCREF(Py_None); resultobj = Py_None;
4237 return resultobj;
4238 fail:
4239 return NULL;
4240}
4241
4242
4243static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj;
4245 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4246 wxIcon *arg2 = 0 ;
4247 PyObject * obj0 = 0 ;
4248 PyObject * obj1 = 0 ;
4249 char *kwnames[] = {
4250 (char *) "self",(char *) "icon", NULL
4251 };
4252
4253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4255 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4256 if (arg2 == NULL) {
4257 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4258 }
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 (arg1)->AddIcon((wxIcon const &)*arg2);
4262
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 Py_INCREF(Py_None); resultobj = Py_None;
4267 return resultobj;
4268 fail:
4269 return NULL;
4270}
4271
4272
4273static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj;
4275 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4276 wxString *arg2 = 0 ;
4277 long arg3 ;
4278 bool temp2 = False ;
4279 PyObject * obj0 = 0 ;
4280 PyObject * obj1 = 0 ;
4281 PyObject * obj2 = 0 ;
4282 char *kwnames[] = {
4283 (char *) "self",(char *) "file",(char *) "type", NULL
4284 };
4285
4286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4288 {
4289 arg2 = wxString_in_helper(obj1);
4290 if (arg2 == NULL) SWIG_fail;
4291 temp2 = True;
4292 }
4293 {
4294 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 Py_INCREF(Py_None); resultobj = Py_None;
4305 {
4306 if (temp2)
4307 delete arg2;
4308 }
4309 return resultobj;
4310 fail:
4311 {
4312 if (temp2)
4313 delete arg2;
4314 }
4315 return NULL;
4316}
4317
4318
4319static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj;
4321 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4322 wxSize *arg2 = 0 ;
4323 wxIcon *result;
4324 wxSize temp2 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327 char *kwnames[] = {
4328 (char *) "self",(char *) "size", NULL
4329 };
4330
4331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4333 {
4334 arg2 = &temp2;
4335 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4336 }
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 {
4340 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4341 result = (wxIcon *) &_result_ref;
4342 }
4343
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4348 return resultobj;
4349 fail:
4350 return NULL;
4351}
4352
4353
4354static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4355 PyObject *obj;
4356 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4357 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4358 Py_INCREF(obj);
4359 return Py_BuildValue((char *)"");
4360}
4361static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4362 PyObject *resultobj;
4363 wxString *arg1 = (wxString *) 0 ;
4364 long arg2 ;
4365 int arg3 = (int) 0 ;
4366 int arg4 = (int) 0 ;
4367 wxCursor *result;
4368 bool temp1 = False ;
4369 PyObject * obj0 = 0 ;
4370 PyObject * obj1 = 0 ;
4371 PyObject * obj2 = 0 ;
4372 PyObject * obj3 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4378 {
4379 arg1 = wxString_in_helper(obj0);
4380 if (arg1 == NULL) SWIG_fail;
4381 temp1 = True;
4382 }
4383 {
4384 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 if (obj2) {
4388 {
4389 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 }
4393 if (obj3) {
4394 {
4395 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 }
4399 {
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4402
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4407 {
4408 if (temp1)
4409 delete arg1;
4410 }
4411 return resultobj;
4412 fail:
4413 {
4414 if (temp1)
4415 delete arg1;
4416 }
4417 return NULL;
4418}
4419
4420
4421static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4422 PyObject *resultobj;
4423 wxCursor *arg1 = (wxCursor *) 0 ;
4424 PyObject * obj0 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "self", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 delete arg1;
4434
4435 wxPyEndAllowThreads(__tstate);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 Py_INCREF(Py_None); resultobj = Py_None;
4439 return resultobj;
4440 fail:
4441 return NULL;
4442}
4443
4444
4445static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj;
4447 int arg1 ;
4448 wxCursor *result;
4449 PyObject * obj0 = 0 ;
4450 char *kwnames[] = {
4451 (char *) "id", NULL
4452 };
4453
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4455 {
4456 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 result = (wxCursor *)new wxCursor(arg1);
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4467 return resultobj;
4468 fail:
4469 return NULL;
4470}
4471
4472
4473static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj;
4475 wxImage *arg1 = 0 ;
4476 wxCursor *result;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "image", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4484 if (arg1 == NULL) {
4485 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4486 }
4487 {
4488 PyThreadState* __tstate = wxPyBeginAllowThreads();
4489 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4490
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 }
4494 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4495 return resultobj;
4496 fail:
4497 return NULL;
4498}
4499
4500
4501static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj;
4503 PyObject *arg1 = (PyObject *) 0 ;
4504 int arg2 ;
4505 int arg3 ;
4506 int arg4 = (int) -1 ;
4507 int arg5 = (int) -1 ;
4508 PyObject *arg6 = (PyObject *) 0 ;
4509 wxCursor *result;
4510 PyObject * obj0 = 0 ;
4511 PyObject * obj1 = 0 ;
4512 PyObject * obj2 = 0 ;
4513 PyObject * obj3 = 0 ;
4514 PyObject * obj4 = 0 ;
4515 PyObject * obj5 = 0 ;
4516 char *kwnames[] = {
4517 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4521 arg1 = obj0;
4522 {
4523 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 {
4527 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 if (obj3) {
4531 {
4532 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 }
4536 if (obj4) {
4537 {
4538 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 }
4542 if (obj5) {
4543 arg6 = obj5;
4544 }
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4548
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4553 return resultobj;
4554 fail:
4555 return NULL;
4556}
4557
4558
4559static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj;
4561 wxCursor *arg1 = (wxCursor *) 0 ;
4562 long result;
4563 PyObject * obj0 = 0 ;
4564 char *kwnames[] = {
4565 (char *) "self", NULL
4566 };
4567
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 result = (long)(arg1)->GetHandle();
4573
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 }
4577 resultobj = SWIG_PyObj_FromLong((long)result);
4578 return resultobj;
4579 fail:
4580 return NULL;
4581}
4582
4583
4584static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4585 PyObject *resultobj;
4586 wxCursor *arg1 = (wxCursor *) 0 ;
4587 long arg2 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 char *kwnames[] = {
4591 (char *) "self",(char *) "handle", NULL
4592 };
4593
4594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4596 {
4597 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 (arg1)->SetHandle(arg2);
4603
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 Py_INCREF(Py_None); resultobj = Py_None;
4608 return resultobj;
4609 fail:
4610 return NULL;
4611}
4612
4613
4614static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4615 PyObject *resultobj;
4616 wxCursor *arg1 = (wxCursor *) 0 ;
4617 bool result;
4618 PyObject * obj0 = 0 ;
4619 char *kwnames[] = {
4620 (char *) "self", NULL
4621 };
4622
4623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 result = (bool)(arg1)->Ok();
4628
4629 wxPyEndAllowThreads(__tstate);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4633 return resultobj;
4634 fail:
4635 return NULL;
4636}
4637
4638
4639static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj;
4641 wxCursor *arg1 = (wxCursor *) 0 ;
4642 int result;
4643 PyObject * obj0 = 0 ;
4644 char *kwnames[] = {
4645 (char *) "self", NULL
4646 };
4647
4648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4650 {
4651 PyThreadState* __tstate = wxPyBeginAllowThreads();
4652 result = (int)(arg1)->GetWidth();
4653
4654 wxPyEndAllowThreads(__tstate);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 resultobj = SWIG_PyObj_FromInt((int)result);
4658 return resultobj;
4659 fail:
4660 return NULL;
4661}
4662
4663
4664static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4665 PyObject *resultobj;
4666 wxCursor *arg1 = (wxCursor *) 0 ;
4667 int result;
4668 PyObject * obj0 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "self", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 result = (int)(arg1)->GetHeight();
4678
4679 wxPyEndAllowThreads(__tstate);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 resultobj = SWIG_PyObj_FromInt((int)result);
4683 return resultobj;
4684 fail:
4685 return NULL;
4686}
4687
4688
4689static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4690 PyObject *resultobj;
4691 wxCursor *arg1 = (wxCursor *) 0 ;
4692 int result;
4693 PyObject * obj0 = 0 ;
4694 char *kwnames[] = {
4695 (char *) "self", NULL
4696 };
4697
4698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (int)(arg1)->GetDepth();
4703
4704 wxPyEndAllowThreads(__tstate);
4705 if (PyErr_Occurred()) SWIG_fail;
4706 }
4707 resultobj = SWIG_PyObj_FromInt((int)result);
4708 return resultobj;
4709 fail:
4710 return NULL;
4711}
4712
4713
4714static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4715 PyObject *resultobj;
4716 wxCursor *arg1 = (wxCursor *) 0 ;
4717 int arg2 ;
4718 PyObject * obj0 = 0 ;
4719 PyObject * obj1 = 0 ;
4720 char *kwnames[] = {
4721 (char *) "self",(char *) "w", NULL
4722 };
4723
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4726 {
4727 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4728 if (PyErr_Occurred()) SWIG_fail;
4729 }
4730 {
4731 PyThreadState* __tstate = wxPyBeginAllowThreads();
4732 (arg1)->SetWidth(arg2);
4733
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 Py_INCREF(Py_None); resultobj = Py_None;
4738 return resultobj;
4739 fail:
4740 return NULL;
4741}
4742
4743
4744static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxCursor *arg1 = (wxCursor *) 0 ;
4747 int arg2 ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "self",(char *) "h", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4756 {
4757 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 (arg1)->SetHeight(arg2);
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 Py_INCREF(Py_None); resultobj = Py_None;
4768 return resultobj;
4769 fail:
4770 return NULL;
4771}
4772
4773
4774static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxCursor *arg1 = (wxCursor *) 0 ;
4777 int arg2 ;
4778 PyObject * obj0 = 0 ;
4779 PyObject * obj1 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self",(char *) "d", NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4786 {
4787 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 {
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 (arg1)->SetDepth(arg2);
4793
4794 wxPyEndAllowThreads(__tstate);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 }
4797 Py_INCREF(Py_None); resultobj = Py_None;
4798 return resultobj;
4799 fail:
4800 return NULL;
4801}
4802
4803
4804static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 wxCursor *arg1 = (wxCursor *) 0 ;
4807 wxSize *arg2 = 0 ;
4808 wxSize temp2 ;
4809 PyObject * obj0 = 0 ;
4810 PyObject * obj1 = 0 ;
4811 char *kwnames[] = {
4812 (char *) "self",(char *) "size", NULL
4813 };
4814
4815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4817 {
4818 arg2 = &temp2;
4819 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4820 }
4821 {
4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
4823 (arg1)->SetSize((wxSize const &)*arg2);
4824
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 Py_INCREF(Py_None); resultobj = Py_None;
4829 return resultobj;
4830 fail:
4831 return NULL;
4832}
4833
4834
4835static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4836 PyObject *obj;
4837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4838 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4839 Py_INCREF(obj);
4840 return Py_BuildValue((char *)"");
4841}
4842static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 int arg1 = (int) 0 ;
4845 int arg2 = (int) 0 ;
4846 int arg3 = (int) 0 ;
4847 int arg4 = (int) 0 ;
4848 wxRegion *result;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 PyObject * obj2 = 0 ;
4852 PyObject * obj3 = 0 ;
4853 char *kwnames[] = {
4854 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4855 };
4856
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4858 if (obj0) {
4859 {
4860 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 }
4864 if (obj1) {
4865 {
4866 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 }
4870 if (obj2) {
4871 {
4872 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 }
4876 if (obj3) {
4877 {
4878 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 }
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4885
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4890 return resultobj;
4891 fail:
4892 return NULL;
4893}
4894
4895
4896static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj;
4898 wxBitmap *arg1 = 0 ;
4899 wxColour const &arg2_defvalue = wxNullColour ;
4900 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4901 int arg3 = (int) 0 ;
4902 wxRegion *result;
4903 wxColour temp2 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 PyObject * obj2 = 0 ;
4907 char *kwnames[] = {
4908 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4909 };
4910
4911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4913 if (arg1 == NULL) {
4914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4915 }
4916 if (obj1) {
4917 {
4918 arg2 = &temp2;
4919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4920 }
4921 }
4922 if (obj2) {
4923 {
4924 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 }
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4936 return resultobj;
4937 fail:
4938 return NULL;
4939}
4940
4941
4942static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4943 PyObject *resultobj;
4944 int arg1 ;
4945 wxPoint *arg2 = (wxPoint *) 0 ;
4946 int arg3 = (int) wxWINDING_RULE ;
4947 wxRegion *result;
4948 PyObject * obj0 = 0 ;
4949 PyObject * obj1 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "points",(char *) "fillStyle", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4955 {
4956 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4957 if (arg2 == NULL) SWIG_fail;
4958 }
4959 if (obj1) {
4960 {
4961 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 }
4965 {
4966 PyThreadState* __tstate = wxPyBeginAllowThreads();
4967 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4968
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4973 {
4974 if (arg2) delete [] arg2;
4975 }
4976 return resultobj;
4977 fail:
4978 {
4979 if (arg2) delete [] arg2;
4980 }
4981 return NULL;
4982}
4983
4984
4985static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4986 PyObject *resultobj;
4987 wxRegion *arg1 = (wxRegion *) 0 ;
4988 PyObject * obj0 = 0 ;
4989 char *kwnames[] = {
4990 (char *) "self", NULL
4991 };
4992
4993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4995 {
4996 PyThreadState* __tstate = wxPyBeginAllowThreads();
4997 delete arg1;
4998
4999 wxPyEndAllowThreads(__tstate);
5000 if (PyErr_Occurred()) SWIG_fail;
5001 }
5002 Py_INCREF(Py_None); resultobj = Py_None;
5003 return resultobj;
5004 fail:
5005 return NULL;
5006}
5007
5008
5009static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxRegion *arg1 = (wxRegion *) 0 ;
5012 PyObject * obj0 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 (arg1)->Clear();
5022
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 Py_INCREF(Py_None); resultobj = Py_None;
5027 return resultobj;
5028 fail:
5029 return NULL;
5030}
5031
5032
5033static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj;
5035 wxRegion *arg1 = (wxRegion *) 0 ;
5036 int arg2 ;
5037 int arg3 ;
5038 bool result;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 PyObject * obj2 = 0 ;
5042 char *kwnames[] = {
5043 (char *) "self",(char *) "x",(char *) "y", NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5048 {
5049 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 {
5053 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5054 if (PyErr_Occurred()) SWIG_fail;
5055 }
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 result = (bool)(arg1)->Offset(arg2,arg3);
5059
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5064 return resultobj;
5065 fail:
5066 return NULL;
5067}
5068
5069
5070static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 wxRegion *arg1 = (wxRegion *) 0 ;
5073 int arg2 ;
5074 int arg3 ;
5075 int result;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 PyObject * obj2 = 0 ;
5079 char *kwnames[] = {
5080 (char *) "self",(char *) "x",(char *) "y", NULL
5081 };
5082
5083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5085 {
5086 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 {
5090 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 result = (int)(arg1)->Contains(arg2,arg3);
5096
5097 wxPyEndAllowThreads(__tstate);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 }
5100 resultobj = SWIG_PyObj_FromInt((int)result);
5101 return resultobj;
5102 fail:
5103 return NULL;
5104}
5105
5106
5107static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5108 PyObject *resultobj;
5109 wxRegion *arg1 = (wxRegion *) 0 ;
5110 wxPoint *arg2 = 0 ;
5111 int result;
5112 wxPoint temp2 ;
5113 PyObject * obj0 = 0 ;
5114 PyObject * obj1 = 0 ;
5115 char *kwnames[] = {
5116 (char *) "self",(char *) "pt", NULL
5117 };
5118
5119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5121 {
5122 arg2 = &temp2;
5123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5124 }
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_PyObj_FromInt((int)result);
5133 return resultobj;
5134 fail:
5135 return NULL;
5136}
5137
5138
5139static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj;
5141 wxRegion *arg1 = (wxRegion *) 0 ;
5142 wxRect *arg2 = 0 ;
5143 int result;
5144 wxRect temp2 ;
5145 PyObject * obj0 = 0 ;
5146 PyObject * obj1 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "self",(char *) "rect", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5153 {
5154 arg2 = &temp2;
5155 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5156 }
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5160
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_PyObj_FromInt((int)result);
5165 return resultobj;
5166 fail:
5167 return NULL;
5168}
5169
5170
5171static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5172 PyObject *resultobj;
5173 wxRegion *arg1 = (wxRegion *) 0 ;
5174 int arg2 ;
5175 int arg3 ;
5176 int arg4 ;
5177 int arg5 ;
5178 int result;
5179 PyObject * obj0 = 0 ;
5180 PyObject * obj1 = 0 ;
5181 PyObject * obj2 = 0 ;
5182 PyObject * obj3 = 0 ;
5183 PyObject * obj4 = 0 ;
5184 char *kwnames[] = {
5185 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5186 };
5187
5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5190 {
5191 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 {
5195 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 {
5199 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 {
5203 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 resultobj = SWIG_PyObj_FromInt((int)result);
5214 return resultobj;
5215 fail:
5216 return NULL;
5217}
5218
5219
5220static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5221 PyObject *resultobj;
5222 wxRegion *arg1 = (wxRegion *) 0 ;
5223 wxRect result;
5224 PyObject * obj0 = 0 ;
5225 char *kwnames[] = {
5226 (char *) "self", NULL
5227 };
5228
5229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (arg1)->GetBox();
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 {
5239 wxRect * resultptr;
5240 resultptr = new wxRect((wxRect &) result);
5241 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5242 }
5243 return resultobj;
5244 fail:
5245 return NULL;
5246}
5247
5248
5249static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5250 PyObject *resultobj;
5251 wxRegion *arg1 = (wxRegion *) 0 ;
5252 int arg2 ;
5253 int arg3 ;
5254 int arg4 ;
5255 int arg5 ;
5256 bool result;
5257 PyObject * obj0 = 0 ;
5258 PyObject * obj1 = 0 ;
5259 PyObject * obj2 = 0 ;
5260 PyObject * obj3 = 0 ;
5261 PyObject * obj4 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5268 {
5269 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 {
5273 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 {
5277 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 }
5280 {
5281 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5292 return resultobj;
5293 fail:
5294 return NULL;
5295}
5296
5297
5298static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxRegion *arg1 = (wxRegion *) 0 ;
5301 wxRect *arg2 = 0 ;
5302 bool result;
5303 wxRect temp2 ;
5304 PyObject * obj0 = 0 ;
5305 PyObject * obj1 = 0 ;
5306 char *kwnames[] = {
5307 (char *) "self",(char *) "rect", NULL
5308 };
5309
5310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5312 {
5313 arg2 = &temp2;
5314 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5315 }
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5324 return resultobj;
5325 fail:
5326 return NULL;
5327}
5328
5329
5330static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5331 PyObject *resultobj;
5332 wxRegion *arg1 = (wxRegion *) 0 ;
5333 wxRegion *arg2 = 0 ;
5334 bool result;
5335 PyObject * obj0 = 0 ;
5336 PyObject * obj1 = 0 ;
5337 char *kwnames[] = {
5338 (char *) "self",(char *) "region", NULL
5339 };
5340
5341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5343 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5344 if (arg2 == NULL) {
5345 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5346 }
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5355 return resultobj;
5356 fail:
5357 return NULL;
5358}
5359
5360
5361static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxRegion *arg1 = (wxRegion *) 0 ;
5364 bool result;
5365 PyObject * obj0 = 0 ;
5366 char *kwnames[] = {
5367 (char *) "self", NULL
5368 };
5369
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 result = (bool)(arg1)->IsEmpty();
5375
5376 wxPyEndAllowThreads(__tstate);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5380 return resultobj;
5381 fail:
5382 return NULL;
5383}
5384
5385
5386static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj;
5388 wxRegion *arg1 = (wxRegion *) 0 ;
5389 int arg2 ;
5390 int arg3 ;
5391 int arg4 ;
5392 int arg5 ;
5393 bool result;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 PyObject * obj2 = 0 ;
5397 PyObject * obj3 = 0 ;
5398 PyObject * obj4 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5405 {
5406 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 {
5410 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
5414 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 {
5418 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5429 return resultobj;
5430 fail:
5431 return NULL;
5432}
5433
5434
5435static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj;
5437 wxRegion *arg1 = (wxRegion *) 0 ;
5438 wxRect *arg2 = 0 ;
5439 bool result;
5440 wxRect temp2 ;
5441 PyObject * obj0 = 0 ;
5442 PyObject * obj1 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "rect", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5449 {
5450 arg2 = &temp2;
5451 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5452 }
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5461 return resultobj;
5462 fail:
5463 return NULL;
5464}
5465
5466
5467static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject *resultobj;
5469 wxRegion *arg1 = (wxRegion *) 0 ;
5470 wxRegion *arg2 = 0 ;
5471 bool result;
5472 PyObject * obj0 = 0 ;
5473 PyObject * obj1 = 0 ;
5474 char *kwnames[] = {
5475 (char *) "self",(char *) "region", NULL
5476 };
5477
5478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5480 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5481 if (arg2 == NULL) {
5482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5483 }
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5487
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5492 return resultobj;
5493 fail:
5494 return NULL;
5495}
5496
5497
5498static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5499 PyObject *resultobj;
5500 wxRegion *arg1 = (wxRegion *) 0 ;
5501 int arg2 ;
5502 int arg3 ;
5503 int arg4 ;
5504 int arg5 ;
5505 bool result;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 PyObject * obj2 = 0 ;
5509 PyObject * obj3 = 0 ;
5510 PyObject * obj4 = 0 ;
5511 char *kwnames[] = {
5512 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5513 };
5514
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5517 {
5518 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 {
5522 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 {
5526 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 {
5530 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 }
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5541 return resultobj;
5542 fail:
5543 return NULL;
5544}
5545
5546
5547static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxRegion *arg1 = (wxRegion *) 0 ;
5550 wxRect *arg2 = 0 ;
5551 bool result;
5552 wxRect temp2 ;
5553 PyObject * obj0 = 0 ;
5554 PyObject * obj1 = 0 ;
5555 char *kwnames[] = {
5556 (char *) "self",(char *) "rect", NULL
5557 };
5558
5559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5561 {
5562 arg2 = &temp2;
5563 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5564 }
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5573 return resultobj;
5574 fail:
5575 return NULL;
5576}
5577
5578
5579static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxRegion *arg1 = (wxRegion *) 0 ;
5582 wxRegion *arg2 = 0 ;
5583 bool result;
5584 PyObject * obj0 = 0 ;
5585 PyObject * obj1 = 0 ;
5586 char *kwnames[] = {
5587 (char *) "self",(char *) "region", NULL
5588 };
5589
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5592 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5593 if (arg2 == NULL) {
5594 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5595 }
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5599
5600 wxPyEndAllowThreads(__tstate);
5601 if (PyErr_Occurred()) SWIG_fail;
5602 }
5603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5604 return resultobj;
5605 fail:
5606 return NULL;
5607}
5608
5609
5610static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5611 PyObject *resultobj;
5612 wxRegion *arg1 = (wxRegion *) 0 ;
5613 int arg2 ;
5614 int arg3 ;
5615 int arg4 ;
5616 int arg5 ;
5617 bool result;
5618 PyObject * obj0 = 0 ;
5619 PyObject * obj1 = 0 ;
5620 PyObject * obj2 = 0 ;
5621 PyObject * obj3 = 0 ;
5622 PyObject * obj4 = 0 ;
5623 char *kwnames[] = {
5624 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5625 };
5626
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5629 {
5630 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 {
5642 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5648
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5653 return resultobj;
5654 fail:
5655 return NULL;
5656}
5657
5658
5659static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj;
5661 wxRegion *arg1 = (wxRegion *) 0 ;
5662 wxRect *arg2 = 0 ;
5663 bool result;
5664 wxRect temp2 ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char *kwnames[] = {
5668 (char *) "self",(char *) "rect", NULL
5669 };
5670
5671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5673 {
5674 arg2 = &temp2;
5675 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5676 }
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5685 return resultobj;
5686 fail:
5687 return NULL;
5688}
5689
5690
5691static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5692 PyObject *resultobj;
5693 wxRegion *arg1 = (wxRegion *) 0 ;
5694 wxRegion *arg2 = 0 ;
5695 bool result;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self",(char *) "region", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5704 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5705 if (arg2 == NULL) {
5706 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5707 }
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5711
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5716 return resultobj;
5717 fail:
5718 return NULL;
5719}
5720
5721
5722static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj;
5724 wxRegion *arg1 = (wxRegion *) 0 ;
5725 SwigValueWrapper< wxBitmap > result;
5726 PyObject * obj0 = 0 ;
5727 char *kwnames[] = {
5728 (char *) "self", NULL
5729 };
5730
5731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5733 {
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (arg1)->ConvertToBitmap();
5736
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 {
5741 wxBitmap * resultptr;
5742 resultptr = new wxBitmap((wxBitmap &) result);
5743 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5744 }
5745 return resultobj;
5746 fail:
5747 return NULL;
5748}
5749
5750
5751static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5752 PyObject *resultobj;
5753 wxRegion *arg1 = (wxRegion *) 0 ;
5754 wxBitmap *arg2 = 0 ;
5755 wxColour const &arg3_defvalue = wxNullColour ;
5756 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5757 int arg4 = (int) 0 ;
5758 bool result;
5759 wxColour temp3 ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 PyObject * obj2 = 0 ;
5763 PyObject * obj3 = 0 ;
5764 char *kwnames[] = {
5765 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5766 };
5767
5768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5770 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5771 if (arg2 == NULL) {
5772 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5773 }
5774 if (obj2) {
5775 {
5776 arg3 = &temp3;
5777 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5778 }
5779 }
5780 if (obj3) {
5781 {
5782 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 }
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5789
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5794 return resultobj;
5795 fail:
5796 return NULL;
5797}
5798
5799
5800static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5801 PyObject *obj;
5802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5803 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5804 Py_INCREF(obj);
5805 return Py_BuildValue((char *)"");
5806}
5807static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxRegion *arg1 = 0 ;
5810 wxRegionIterator *result;
5811 PyObject * obj0 = 0 ;
5812 char *kwnames[] = {
5813 (char *) "region", NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5818 if (arg1 == NULL) {
5819 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5820 }
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832}
5833
5834
5835static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5838 PyObject * obj0 = 0 ;
5839 char *kwnames[] = {
5840 (char *) "self", NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5845 {
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 delete arg1;
5848
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 Py_INCREF(Py_None); resultobj = Py_None;
5853 return resultobj;
5854 fail:
5855 return NULL;
5856}
5857
5858
5859static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5860 PyObject *resultobj;
5861 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5862 int result;
5863 PyObject * obj0 = 0 ;
5864 char *kwnames[] = {
5865 (char *) "self", NULL
5866 };
5867
5868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 result = (int)(arg1)->GetX();
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 resultobj = SWIG_PyObj_FromInt((int)result);
5878 return resultobj;
5879 fail:
5880 return NULL;
5881}
5882
5883
5884static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj;
5886 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5887 int result;
5888 PyObject * obj0 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 result = (int)(arg1)->GetY();
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 resultobj = SWIG_PyObj_FromInt((int)result);
5903 return resultobj;
5904 fail:
5905 return NULL;
5906}
5907
5908
5909static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj;
5911 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5912 int result;
5913 PyObject * obj0 = 0 ;
5914 char *kwnames[] = {
5915 (char *) "self", NULL
5916 };
5917
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5920 {
5921 PyThreadState* __tstate = wxPyBeginAllowThreads();
5922 result = (int)(arg1)->GetW();
5923
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 resultobj = SWIG_PyObj_FromInt((int)result);
5928 return resultobj;
5929 fail:
5930 return NULL;
5931}
5932
5933
5934static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5935 PyObject *resultobj;
5936 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5937 int result;
5938 PyObject * obj0 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 result = (int)(arg1)->GetWidth();
5948
5949 wxPyEndAllowThreads(__tstate);
5950 if (PyErr_Occurred()) SWIG_fail;
5951 }
5952 resultobj = SWIG_PyObj_FromInt((int)result);
5953 return resultobj;
5954 fail:
5955 return NULL;
5956}
5957
5958
5959static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5960 PyObject *resultobj;
5961 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5962 int result;
5963 PyObject * obj0 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (int)(arg1)->GetH();
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_PyObj_FromInt((int)result);
5978 return resultobj;
5979 fail:
5980 return NULL;
5981}
5982
5983
5984static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5987 int result;
5988 PyObject * obj0 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "self", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 result = (int)(arg1)->GetHeight();
5998
5999 wxPyEndAllowThreads(__tstate);
6000 if (PyErr_Occurred()) SWIG_fail;
6001 }
6002 resultobj = SWIG_PyObj_FromInt((int)result);
6003 return resultobj;
6004 fail:
6005 return NULL;
6006}
6007
6008
6009static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject *resultobj;
6011 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6012 wxRect result;
6013 PyObject * obj0 = 0 ;
6014 char *kwnames[] = {
6015 (char *) "self", NULL
6016 };
6017
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (arg1)->GetRect();
6023
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 }
6027 {
6028 wxRect * resultptr;
6029 resultptr = new wxRect((wxRect &) result);
6030 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
6031 }
6032 return resultobj;
6033 fail:
6034 return NULL;
6035}
6036
6037
6038static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6039 PyObject *resultobj;
6040 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6041 bool result;
6042 PyObject * obj0 = 0 ;
6043 char *kwnames[] = {
6044 (char *) "self", NULL
6045 };
6046
6047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (bool)(arg1)->HaveRects();
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6057 return resultobj;
6058 fail:
6059 return NULL;
6060}
6061
6062
6063static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj;
6065 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6066 PyObject * obj0 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 (arg1)->Reset();
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 Py_INCREF(Py_None); resultobj = Py_None;
6081 return resultobj;
6082 fail:
6083 return NULL;
6084}
6085
6086
6087static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj;
6089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6090 PyObject * obj0 = 0 ;
6091 char *kwnames[] = {
6092 (char *) "self", NULL
6093 };
6094
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 wxRegionIterator_Next(arg1);
6100
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 Py_INCREF(Py_None); resultobj = Py_None;
6105 return resultobj;
6106 fail:
6107 return NULL;
6108}
6109
6110
6111static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6114 bool result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6122 {
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 result = (bool)wxRegionIterator___nonzero__(arg1);
6125
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6130 return resultobj;
6131 fail:
6132 return NULL;
6133}
6134
6135
6136static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6137 PyObject *obj;
6138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6139 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6140 Py_INCREF(obj);
6141 return Py_BuildValue((char *)"");
6142}
6143static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6144 PyObject *resultobj;
6145 wxNativeFontInfo *result;
6146 char *kwnames[] = {
6147 NULL
6148 };
6149
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6151 {
6152 PyThreadState* __tstate = wxPyBeginAllowThreads();
6153 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6154
6155 wxPyEndAllowThreads(__tstate);
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
6159 return resultobj;
6160 fail:
6161 return NULL;
6162}
6163
6164
6165static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6166 PyObject *resultobj;
6167 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6168 PyObject * obj0 = 0 ;
6169 char *kwnames[] = {
6170 (char *) "self", NULL
6171 };
6172
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 delete arg1;
6178
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 Py_INCREF(Py_None); resultobj = Py_None;
6183 return resultobj;
6184 fail:
6185 return NULL;
6186}
6187
6188
6189static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject *resultobj;
6191 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6192 PyObject * obj0 = 0 ;
6193 char *kwnames[] = {
6194 (char *) "self", NULL
6195 };
6196
6197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 (arg1)->Init();
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 Py_INCREF(Py_None); resultobj = Py_None;
6207 return resultobj;
6208 fail:
6209 return NULL;
6210}
6211
6212
6213static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj;
6215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6216 wxFont *arg2 = 0 ;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219 char *kwnames[] = {
6220 (char *) "self",(char *) "font", NULL
6221 };
6222
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6225 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6226 if (arg2 == NULL) {
6227 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6228 }
6229 {
6230 PyThreadState* __tstate = wxPyBeginAllowThreads();
6231 (arg1)->InitFromFont((wxFont const &)*arg2);
6232
6233 wxPyEndAllowThreads(__tstate);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 Py_INCREF(Py_None); resultobj = Py_None;
6237 return resultobj;
6238 fail:
6239 return NULL;
6240}
6241
6242
6243static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6244 PyObject *resultobj;
6245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6246 int result;
6247 PyObject * obj0 = 0 ;
6248 char *kwnames[] = {
6249 (char *) "self", NULL
6250 };
6251
6252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6257
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_PyObj_FromInt((int)result);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265}
6266
6267
6268static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj;
6270 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6271 int result;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 resultobj = SWIG_PyObj_FromInt((int)result);
6287 return resultobj;
6288 fail:
6289 return NULL;
6290}
6291
6292
6293static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6296 int result;
6297 PyObject * obj0 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6304 {
6305 PyThreadState* __tstate = wxPyBeginAllowThreads();
6306 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6307
6308 wxPyEndAllowThreads(__tstate);
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 resultobj = SWIG_PyObj_FromInt((int)result);
6312 return resultobj;
6313 fail:
6314 return NULL;
6315}
6316
6317
6318static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj;
6320 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6321 bool result;
6322 PyObject * obj0 = 0 ;
6323 char *kwnames[] = {
6324 (char *) "self", NULL
6325 };
6326
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6337 return resultobj;
6338 fail:
6339 return NULL;
6340}
6341
6342
6343static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6344 PyObject *resultobj;
6345 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6346 wxString result;
6347 PyObject * obj0 = 0 ;
6348 char *kwnames[] = {
6349 (char *) "self", NULL
6350 };
6351
6352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6354 {
6355 PyThreadState* __tstate = wxPyBeginAllowThreads();
6356 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6357
6358 wxPyEndAllowThreads(__tstate);
6359 if (PyErr_Occurred()) SWIG_fail;
6360 }
6361 {
6362#if wxUSE_UNICODE
6363 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6364#else
6365 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6366#endif
6367 }
6368 return resultobj;
6369 fail:
6370 return NULL;
6371}
6372
6373
6374static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6377 int result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "self", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = SWIG_PyObj_FromInt((int)result);
6393 return resultobj;
6394 fail:
6395 return NULL;
6396}
6397
6398
6399static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj;
6401 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6402 int result;
6403 PyObject * obj0 = 0 ;
6404 char *kwnames[] = {
6405 (char *) "self", NULL
6406 };
6407
6408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6413
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 resultobj = SWIG_PyObj_FromInt((int)result);
6418 return resultobj;
6419 fail:
6420 return NULL;
6421}
6422
6423
6424static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6425 PyObject *resultobj;
6426 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6427 int arg2 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char *kwnames[] = {
6431 (char *) "self",(char *) "pointsize", NULL
6432 };
6433
6434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6436 {
6437 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 (arg1)->SetPointSize(arg2);
6443
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 Py_INCREF(Py_None); resultobj = Py_None;
6448 return resultobj;
6449 fail:
6450 return NULL;
6451}
6452
6453
6454static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject *resultobj;
6456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6457 int arg2 ;
6458 PyObject * obj0 = 0 ;
6459 PyObject * obj1 = 0 ;
6460 char *kwnames[] = {
6461 (char *) "self",(char *) "style", NULL
6462 };
6463
6464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6466 {
6467 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 (arg1)->SetStyle((wxFontStyle )arg2);
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 Py_INCREF(Py_None); resultobj = Py_None;
6478 return resultobj;
6479 fail:
6480 return NULL;
6481}
6482
6483
6484static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6485 PyObject *resultobj;
6486 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6487 int arg2 ;
6488 PyObject * obj0 = 0 ;
6489 PyObject * obj1 = 0 ;
6490 char *kwnames[] = {
6491 (char *) "self",(char *) "weight", NULL
6492 };
6493
6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6496 {
6497 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 {
6501 PyThreadState* __tstate = wxPyBeginAllowThreads();
6502 (arg1)->SetWeight((wxFontWeight )arg2);
6503
6504 wxPyEndAllowThreads(__tstate);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 Py_INCREF(Py_None); resultobj = Py_None;
6508 return resultobj;
6509 fail:
6510 return NULL;
6511}
6512
6513
6514static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6515 PyObject *resultobj;
6516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6517 bool arg2 ;
6518 PyObject * obj0 = 0 ;
6519 PyObject * obj1 = 0 ;
6520 char *kwnames[] = {
6521 (char *) "self",(char *) "underlined", NULL
6522 };
6523
6524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6526 {
6527 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 (arg1)->SetUnderlined(arg2);
6533
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 Py_INCREF(Py_None); resultobj = Py_None;
6538 return resultobj;
6539 fail:
6540 return NULL;
6541}
6542
6543
6544static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6545 PyObject *resultobj;
6546 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6547 wxString arg2 ;
6548 PyObject * obj0 = 0 ;
6549 PyObject * obj1 = 0 ;
6550 char *kwnames[] = {
6551 (char *) "self",(char *) "facename", NULL
6552 };
6553
6554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6556 {
6557 wxString* sptr = wxString_in_helper(obj1);
6558 if (sptr == NULL) SWIG_fail;
6559 arg2 = *sptr;
6560 delete sptr;
6561 }
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 (arg1)->SetFaceName(arg2);
6565
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 Py_INCREF(Py_None); resultobj = Py_None;
6570 return resultobj;
6571 fail:
6572 return NULL;
6573}
6574
6575
6576static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6577 PyObject *resultobj;
6578 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6579 int arg2 ;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self",(char *) "family", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6588 {
6589 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 (arg1)->SetFamily((wxFontFamily )arg2);
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 Py_INCREF(Py_None); resultobj = Py_None;
6600 return resultobj;
6601 fail:
6602 return NULL;
6603}
6604
6605
6606static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6609 int arg2 ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 char *kwnames[] = {
6613 (char *) "self",(char *) "encoding", NULL
6614 };
6615
6616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6618 {
6619 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 (arg1)->SetEncoding((wxFontEncoding )arg2);
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 Py_INCREF(Py_None); resultobj = Py_None;
6630 return resultobj;
6631 fail:
6632 return NULL;
6633}
6634
6635
6636static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6637 PyObject *resultobj;
6638 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6639 wxString *arg2 = 0 ;
6640 bool result;
6641 bool temp2 = False ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self",(char *) "s", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6650 {
6651 arg2 = wxString_in_helper(obj1);
6652 if (arg2 == NULL) SWIG_fail;
6653 temp2 = True;
6654 }
6655 {
6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
6657 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6658
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6663 {
6664 if (temp2)
6665 delete arg2;
6666 }
6667 return resultobj;
6668 fail:
6669 {
6670 if (temp2)
6671 delete arg2;
6672 }
6673 return NULL;
6674}
6675
6676
6677static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6680 wxString result;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = ((wxNativeFontInfo const *)arg1)->ToString();
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696#if wxUSE_UNICODE
6697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6698#else
6699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6700#endif
6701 }
6702 return resultobj;
6703 fail:
6704 return NULL;
6705}
6706
6707
6708static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj;
6710 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6711 wxString result;
6712 PyObject * obj0 = 0 ;
6713 char *kwnames[] = {
6714 (char *) "self", NULL
6715 };
6716
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 result = wxNativeFontInfo___str__(arg1);
6722
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727#if wxUSE_UNICODE
6728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6729#else
6730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6731#endif
6732 }
6733 return resultobj;
6734 fail:
6735 return NULL;
6736}
6737
6738
6739static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj;
6741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6742 wxString *arg2 = 0 ;
6743 bool result;
6744 bool temp2 = False ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 char *kwnames[] = {
6748 (char *) "self",(char *) "s", NULL
6749 };
6750
6751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6753 {
6754 arg2 = wxString_in_helper(obj1);
6755 if (arg2 == NULL) SWIG_fail;
6756 temp2 = True;
6757 }
6758 {
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6761
6762 wxPyEndAllowThreads(__tstate);
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6766 {
6767 if (temp2)
6768 delete arg2;
6769 }
6770 return resultobj;
6771 fail:
6772 {
6773 if (temp2)
6774 delete arg2;
6775 }
6776 return NULL;
6777}
6778
6779
6780static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6781 PyObject *resultobj;
6782 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6783 wxString result;
6784 PyObject * obj0 = 0 ;
6785 char *kwnames[] = {
6786 (char *) "self", NULL
6787 };
6788
6789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 {
6799#if wxUSE_UNICODE
6800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6801#else
6802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6803#endif
6804 }
6805 return resultobj;
6806 fail:
6807 return NULL;
6808}
6809
6810
6811static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6812 PyObject *obj;
6813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6814 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6815 Py_INCREF(obj);
6816 return Py_BuildValue((char *)"");
6817}
6818static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject *resultobj;
6820 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6821 wxString *arg2 = (wxString *) 0 ;
6822 bool temp2 = False ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 char *kwnames[] = {
6826 (char *) "self",(char *) "facename", NULL
6827 };
6828
6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6831 {
6832 arg2 = wxString_in_helper(obj1);
6833 if (arg2 == NULL) SWIG_fail;
6834 temp2 = True;
6835 }
6836 if (arg1) (arg1)->facename = *arg2;
6837
6838 Py_INCREF(Py_None); resultobj = Py_None;
6839 {
6840 if (temp2)
6841 delete arg2;
6842 }
6843 return resultobj;
6844 fail:
6845 {
6846 if (temp2)
6847 delete arg2;
6848 }
6849 return NULL;
6850}
6851
6852
6853static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj;
6855 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6856 wxString *result;
6857 PyObject * obj0 = 0 ;
6858 char *kwnames[] = {
6859 (char *) "self", NULL
6860 };
6861
6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6864 result = (wxString *)& ((arg1)->facename);
6865
6866 {
6867#if wxUSE_UNICODE
6868 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6869#else
6870 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6871#endif
6872 }
6873 return resultobj;
6874 fail:
6875 return NULL;
6876}
6877
6878
6879static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6880 PyObject *resultobj;
6881 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6882 int arg2 ;
6883 PyObject * obj0 = 0 ;
6884 PyObject * obj1 = 0 ;
6885 char *kwnames[] = {
6886 (char *) "self",(char *) "encoding", NULL
6887 };
6888
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6891 {
6892 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6896
6897 Py_INCREF(Py_None); resultobj = Py_None;
6898 return resultobj;
6899 fail:
6900 return NULL;
6901}
6902
6903
6904static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6907 int result;
6908 PyObject * obj0 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "self", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6915 result = (int) ((arg1)->encoding);
6916
6917 resultobj = SWIG_PyObj_FromInt((int)result);
6918 return resultobj;
6919 fail:
6920 return NULL;
6921}
6922
6923
6924static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6925 PyObject *resultobj;
6926 wxNativeEncodingInfo *result;
6927 char *kwnames[] = {
6928 NULL
6929 };
6930
6931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6932 {
6933 PyThreadState* __tstate = wxPyBeginAllowThreads();
6934 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6935
6936 wxPyEndAllowThreads(__tstate);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6940 return resultobj;
6941 fail:
6942 return NULL;
6943}
6944
6945
6946static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6947 PyObject *resultobj;
6948 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6949 PyObject * obj0 = 0 ;
6950 char *kwnames[] = {
6951 (char *) "self", NULL
6952 };
6953
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 delete arg1;
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 Py_INCREF(Py_None); resultobj = Py_None;
6964 return resultobj;
6965 fail:
6966 return NULL;
6967}
6968
6969
6970static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6971 PyObject *resultobj;
6972 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6973 wxString *arg2 = 0 ;
6974 bool result;
6975 bool temp2 = False ;
6976 PyObject * obj0 = 0 ;
6977 PyObject * obj1 = 0 ;
6978 char *kwnames[] = {
6979 (char *) "self",(char *) "s", NULL
6980 };
6981
6982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6984 {
6985 arg2 = wxString_in_helper(obj1);
6986 if (arg2 == NULL) SWIG_fail;
6987 temp2 = True;
6988 }
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6997 {
6998 if (temp2)
6999 delete arg2;
7000 }
7001 return resultobj;
7002 fail:
7003 {
7004 if (temp2)
7005 delete arg2;
7006 }
7007 return NULL;
7008}
7009
7010
7011static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7012 PyObject *resultobj;
7013 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7014 wxString result;
7015 PyObject * obj0 = 0 ;
7016 char *kwnames[] = {
7017 (char *) "self", NULL
7018 };
7019
7020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7022 {
7023 PyThreadState* __tstate = wxPyBeginAllowThreads();
7024 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7025
7026 wxPyEndAllowThreads(__tstate);
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 {
7030#if wxUSE_UNICODE
7031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7032#else
7033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7034#endif
7035 }
7036 return resultobj;
7037 fail:
7038 return NULL;
7039}
7040
7041
7042static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7043 PyObject *obj;
7044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7045 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7046 Py_INCREF(obj);
7047 return Py_BuildValue((char *)"");
7048}
7049static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 int arg1 ;
7052 wxNativeEncodingInfo *result;
7053 PyObject * obj0 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "encoding", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7059 {
7060 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
7071 return resultobj;
7072 fail:
7073 return NULL;
7074}
7075
7076
7077static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 wxNativeEncodingInfo *arg1 = 0 ;
7080 bool result;
7081 PyObject * obj0 = 0 ;
7082 char *kwnames[] = {
7083 (char *) "info", NULL
7084 };
7085
7086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7088 if (arg1 == NULL) {
7089 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7090 }
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7099 return resultobj;
7100 fail:
7101 return NULL;
7102}
7103
7104
7105static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7106 PyObject *resultobj;
7107 wxFontMapper *result;
7108 char *kwnames[] = {
7109 NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (wxFontMapper *)new wxFontMapper();
7116
7117 wxPyEndAllowThreads(__tstate);
7118 if (PyErr_Occurred()) SWIG_fail;
7119 }
7120 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
7121 return resultobj;
7122 fail:
7123 return NULL;
7124}
7125
7126
7127static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj;
7129 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7130 PyObject * obj0 = 0 ;
7131 char *kwnames[] = {
7132 (char *) "self", NULL
7133 };
7134
7135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7137 {
7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
7139 delete arg1;
7140
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 Py_INCREF(Py_None); resultobj = Py_None;
7145 return resultobj;
7146 fail:
7147 return NULL;
7148}
7149
7150
7151static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj;
7153 wxFontMapper *result;
7154 char *kwnames[] = {
7155 NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7159 {
7160 PyThreadState* __tstate = wxPyBeginAllowThreads();
7161 result = (wxFontMapper *)wxFontMapper::Get();
7162
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7167 return resultobj;
7168 fail:
7169 return NULL;
7170}
7171
7172
7173static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7174 PyObject *resultobj;
7175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7176 wxFontMapper *result;
7177 PyObject * obj0 = 0 ;
7178 char *kwnames[] = {
7179 (char *) "mapper", NULL
7180 };
7181
7182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7192 return resultobj;
7193 fail:
7194 return NULL;
7195}
7196
7197
7198static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7201 wxString *arg2 = 0 ;
7202 bool arg3 = (bool) True ;
7203 int result;
7204 bool temp2 = False ;
7205 PyObject * obj0 = 0 ;
7206 PyObject * obj1 = 0 ;
7207 PyObject * obj2 = 0 ;
7208 char *kwnames[] = {
7209 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7210 };
7211
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7214 {
7215 arg2 = wxString_in_helper(obj1);
7216 if (arg2 == NULL) SWIG_fail;
7217 temp2 = True;
7218 }
7219 if (obj2) {
7220 {
7221 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 }
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7228
7229 wxPyEndAllowThreads(__tstate);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 resultobj = SWIG_PyObj_FromInt((int)result);
7233 {
7234 if (temp2)
7235 delete arg2;
7236 }
7237 return resultobj;
7238 fail:
7239 {
7240 if (temp2)
7241 delete arg2;
7242 }
7243 return NULL;
7244}
7245
7246
7247static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7248 PyObject *resultobj;
7249 size_t result;
7250 char *kwnames[] = {
7251 NULL
7252 };
7253
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
7263 return resultobj;
7264 fail:
7265 return NULL;
7266}
7267
7268
7269static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj;
7271 size_t arg1 ;
7272 int result;
7273 PyObject * obj0 = 0 ;
7274 char *kwnames[] = {
7275 (char *) "n", NULL
7276 };
7277
7278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7279 {
7280 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (int)wxFontMapper::GetEncoding(arg1);
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_PyObj_FromInt((int)result);
7291 return resultobj;
7292 fail:
7293 return NULL;
7294}
7295
7296
7297static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 int arg1 ;
7300 wxString result;
7301 PyObject * obj0 = 0 ;
7302 char *kwnames[] = {
7303 (char *) "encoding", NULL
7304 };
7305
7306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7307 {
7308 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7309 if (PyErr_Occurred()) SWIG_fail;
7310 }
7311 {
7312 PyThreadState* __tstate = wxPyBeginAllowThreads();
7313 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7314
7315 wxPyEndAllowThreads(__tstate);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 {
7319#if wxUSE_UNICODE
7320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7321#else
7322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7323#endif
7324 }
7325 return resultobj;
7326 fail:
7327 return NULL;
7328}
7329
7330
7331static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj;
7333 int arg1 ;
7334 wxString result;
7335 PyObject * obj0 = 0 ;
7336 char *kwnames[] = {
7337 (char *) "encoding", NULL
7338 };
7339
7340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7341 {
7342 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 {
7353#if wxUSE_UNICODE
7354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7355#else
7356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7357#endif
7358 }
7359 return resultobj;
7360 fail:
7361 return NULL;
7362}
7363
7364
7365static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject *resultobj;
7367 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7368 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7369 PyObject * obj0 = 0 ;
7370 PyObject * obj1 = 0 ;
7371 char *kwnames[] = {
7372 (char *) "self",(char *) "config", NULL
7373 };
7374
7375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7377 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 (arg1)->SetConfig(arg2);
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 Py_INCREF(Py_None); resultobj = Py_None;
7386 return resultobj;
7387 fail:
7388 return NULL;
7389}
7390
7391
7392static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj;
7394 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7395 wxString *arg2 = 0 ;
7396 bool temp2 = False ;
7397 PyObject * obj0 = 0 ;
7398 PyObject * obj1 = 0 ;
7399 char *kwnames[] = {
7400 (char *) "self",(char *) "prefix", NULL
7401 };
7402
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7405 {
7406 arg2 = wxString_in_helper(obj1);
7407 if (arg2 == NULL) SWIG_fail;
7408 temp2 = True;
7409 }
7410 {
7411 PyThreadState* __tstate = wxPyBeginAllowThreads();
7412 (arg1)->SetConfigPath((wxString const &)*arg2);
7413
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 Py_INCREF(Py_None); resultobj = Py_None;
7418 {
7419 if (temp2)
7420 delete arg2;
7421 }
7422 return resultobj;
7423 fail:
7424 {
7425 if (temp2)
7426 delete arg2;
7427 }
7428 return NULL;
7429}
7430
7431
7432static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 wxString result;
7435 char *kwnames[] = {
7436 NULL
7437 };
7438
7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
7442 result = wxFontMapper::GetDefaultConfigPath();
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 {
7448#if wxUSE_UNICODE
7449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7450#else
7451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7452#endif
7453 }
7454 return resultobj;
7455 fail:
7456 return NULL;
7457}
7458
7459
7460static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7463 int arg2 ;
7464 wxString const &arg3_defvalue = wxPyEmptyString ;
7465 wxString *arg3 = (wxString *) &arg3_defvalue ;
7466 bool arg4 = (bool) True ;
7467 PyObject *result;
7468 bool temp3 = False ;
7469 PyObject * obj0 = 0 ;
7470 PyObject * obj1 = 0 ;
7471 PyObject * obj2 = 0 ;
7472 PyObject * obj3 = 0 ;
7473 char *kwnames[] = {
7474 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7475 };
7476
7477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7479 {
7480 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 if (obj2) {
7484 {
7485 arg3 = wxString_in_helper(obj2);
7486 if (arg3 == NULL) SWIG_fail;
7487 temp3 = True;
7488 }
7489 }
7490 if (obj3) {
7491 {
7492 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 }
7496 {
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7499
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = result;
7504 {
7505 if (temp3)
7506 delete arg3;
7507 }
7508 return resultobj;
7509 fail:
7510 {
7511 if (temp3)
7512 delete arg3;
7513 }
7514 return NULL;
7515}
7516
7517
7518static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7519 PyObject *resultobj;
7520 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7521 int arg2 ;
7522 wxString const &arg3_defvalue = wxPyEmptyString ;
7523 wxString *arg3 = (wxString *) &arg3_defvalue ;
7524 bool result;
7525 bool temp3 = False ;
7526 PyObject * obj0 = 0 ;
7527 PyObject * obj1 = 0 ;
7528 PyObject * obj2 = 0 ;
7529 char *kwnames[] = {
7530 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7531 };
7532
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7535 {
7536 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 if (obj2) {
7540 {
7541 arg3 = wxString_in_helper(obj2);
7542 if (arg3 == NULL) SWIG_fail;
7543 temp3 = True;
7544 }
7545 }
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7554 {
7555 if (temp3)
7556 delete arg3;
7557 }
7558 return resultobj;
7559 fail:
7560 {
7561 if (temp3)
7562 delete arg3;
7563 }
7564 return NULL;
7565}
7566
7567
7568static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj;
7570 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7571 wxWindow *arg2 = (wxWindow *) 0 ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 char *kwnames[] = {
7575 (char *) "self",(char *) "parent", NULL
7576 };
7577
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7580 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 (arg1)->SetDialogParent(arg2);
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 Py_INCREF(Py_None); resultobj = Py_None;
7589 return resultobj;
7590 fail:
7591 return NULL;
7592}
7593
7594
7595static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7598 wxString *arg2 = 0 ;
7599 bool temp2 = False ;
7600 PyObject * obj0 = 0 ;
7601 PyObject * obj1 = 0 ;
7602 char *kwnames[] = {
7603 (char *) "self",(char *) "title", NULL
7604 };
7605
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7608 {
7609 arg2 = wxString_in_helper(obj1);
7610 if (arg2 == NULL) SWIG_fail;
7611 temp2 = True;
7612 }
7613 {
7614 PyThreadState* __tstate = wxPyBeginAllowThreads();
7615 (arg1)->SetDialogTitle((wxString const &)*arg2);
7616
7617 wxPyEndAllowThreads(__tstate);
7618 if (PyErr_Occurred()) SWIG_fail;
7619 }
7620 Py_INCREF(Py_None); resultobj = Py_None;
7621 {
7622 if (temp2)
7623 delete arg2;
7624 }
7625 return resultobj;
7626 fail:
7627 {
7628 if (temp2)
7629 delete arg2;
7630 }
7631 return NULL;
7632}
7633
7634
7635static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7636 PyObject *obj;
7637 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7638 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7639 Py_INCREF(obj);
7640 return Py_BuildValue((char *)"");
7641}
7642static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj;
7644 int arg1 ;
7645 int arg2 ;
7646 int arg3 ;
7647 int arg4 ;
7648 bool arg5 = (bool) False ;
7649 wxString const &arg6_defvalue = wxPyEmptyString ;
7650 wxString *arg6 = (wxString *) &arg6_defvalue ;
7651 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7652 wxFont *result;
7653 bool temp6 = False ;
7654 PyObject * obj0 = 0 ;
7655 PyObject * obj1 = 0 ;
7656 PyObject * obj2 = 0 ;
7657 PyObject * obj3 = 0 ;
7658 PyObject * obj4 = 0 ;
7659 PyObject * obj5 = 0 ;
7660 PyObject * obj6 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7666 {
7667 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 {
7671 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 {
7675 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 {
7679 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 if (obj4) {
7683 {
7684 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 }
7688 if (obj5) {
7689 {
7690 arg6 = wxString_in_helper(obj5);
7691 if (arg6 == NULL) SWIG_fail;
7692 temp6 = True;
7693 }
7694 }
7695 if (obj6) {
7696 {
7697 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 }
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7704
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7709 {
7710 if (temp6)
7711 delete arg6;
7712 }
7713 return resultobj;
7714 fail:
7715 {
7716 if (temp6)
7717 delete arg6;
7718 }
7719 return NULL;
7720}
7721
7722
7723static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj;
7725 wxFont *arg1 = (wxFont *) 0 ;
7726 PyObject * obj0 = 0 ;
7727 char *kwnames[] = {
7728 (char *) "self", NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 delete arg1;
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 Py_INCREF(Py_None); resultobj = Py_None;
7741 return resultobj;
7742 fail:
7743 return NULL;
7744}
7745
7746
7747static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj;
7749 wxNativeFontInfo *arg1 = 0 ;
7750 wxFont *result;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "info", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7758 if (arg1 == NULL) {
7759 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7760 }
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7769 return resultobj;
7770 fail:
7771 return NULL;
7772}
7773
7774
7775static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject *resultobj;
7777 wxString *arg1 = 0 ;
7778 wxFont *result;
7779 bool temp1 = False ;
7780 PyObject * obj0 = 0 ;
7781 char *kwnames[] = {
7782 (char *) "info", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7786 {
7787 arg1 = wxString_in_helper(obj0);
7788 if (arg1 == NULL) SWIG_fail;
7789 temp1 = True;
7790 }
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7799 {
7800 if (temp1)
7801 delete arg1;
7802 }
7803 return resultobj;
7804 fail:
7805 {
7806 if (temp1)
7807 delete arg1;
7808 }
7809 return NULL;
7810}
7811
7812
7813static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 int arg1 ;
7816 int arg2 ;
7817 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7818 wxString const &arg4_defvalue = wxPyEmptyString ;
7819 wxString *arg4 = (wxString *) &arg4_defvalue ;
7820 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7821 wxFont *result;
7822 bool temp4 = False ;
7823 PyObject * obj0 = 0 ;
7824 PyObject * obj1 = 0 ;
7825 PyObject * obj2 = 0 ;
7826 PyObject * obj3 = 0 ;
7827 PyObject * obj4 = 0 ;
7828 char *kwnames[] = {
7829 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7830 };
7831
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7833 {
7834 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 {
7838 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 if (obj2) {
7842 {
7843 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 }
7847 if (obj3) {
7848 {
7849 arg4 = wxString_in_helper(obj3);
7850 if (arg4 == NULL) SWIG_fail;
7851 temp4 = True;
7852 }
7853 }
7854 if (obj4) {
7855 {
7856 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 }
7860 {
7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
7862 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7863
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7868 {
7869 if (temp4)
7870 delete arg4;
7871 }
7872 return resultobj;
7873 fail:
7874 {
7875 if (temp4)
7876 delete arg4;
7877 }
7878 return NULL;
7879}
7880
7881
7882static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject *resultobj;
7884 wxFont *arg1 = (wxFont *) 0 ;
7885 bool result;
7886 PyObject * obj0 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "self", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7893 {
7894 PyThreadState* __tstate = wxPyBeginAllowThreads();
7895 result = (bool)((wxFont const *)arg1)->Ok();
7896
7897 wxPyEndAllowThreads(__tstate);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7901 return resultobj;
7902 fail:
7903 return NULL;
7904}
7905
7906
7907static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7908 PyObject *resultobj;
7909 wxFont *arg1 = (wxFont *) 0 ;
7910 wxFont *arg2 = 0 ;
7911 bool result;
7912 PyObject * obj0 = 0 ;
7913 PyObject * obj1 = 0 ;
7914 char *kwnames[] = {
7915 (char *) "self",(char *) "font", NULL
7916 };
7917
7918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7920 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7921 if (arg2 == NULL) {
7922 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7923 }
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7932 return resultobj;
7933 fail:
7934 return NULL;
7935}
7936
7937
7938static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxFont *arg1 = (wxFont *) 0 ;
7941 wxFont *arg2 = 0 ;
7942 bool result;
7943 PyObject * obj0 = 0 ;
7944 PyObject * obj1 = 0 ;
7945 char *kwnames[] = {
7946 (char *) "self",(char *) "font", NULL
7947 };
7948
7949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7952 if (arg2 == NULL) {
7953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7954 }
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7963 return resultobj;
7964 fail:
7965 return NULL;
7966}
7967
7968
7969static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj;
7971 wxFont *arg1 = (wxFont *) 0 ;
7972 int result;
7973 PyObject * obj0 = 0 ;
7974 char *kwnames[] = {
7975 (char *) "self", NULL
7976 };
7977
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 result = (int)((wxFont const *)arg1)->GetPointSize();
7983
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_PyObj_FromInt((int)result);
7988 return resultobj;
7989 fail:
7990 return NULL;
7991}
7992
7993
7994static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxFont *arg1 = (wxFont *) 0 ;
7997 int result;
7998 PyObject * obj0 = 0 ;
7999 char *kwnames[] = {
8000 (char *) "self", NULL
8001 };
8002
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 result = (int)((wxFont const *)arg1)->GetFamily();
8008
8009 wxPyEndAllowThreads(__tstate);
8010 if (PyErr_Occurred()) SWIG_fail;
8011 }
8012 resultobj = SWIG_PyObj_FromInt((int)result);
8013 return resultobj;
8014 fail:
8015 return NULL;
8016}
8017
8018
8019static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8020 PyObject *resultobj;
8021 wxFont *arg1 = (wxFont *) 0 ;
8022 int result;
8023 PyObject * obj0 = 0 ;
8024 char *kwnames[] = {
8025 (char *) "self", NULL
8026 };
8027
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8030 {
8031 PyThreadState* __tstate = wxPyBeginAllowThreads();
8032 result = (int)((wxFont const *)arg1)->GetStyle();
8033
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 resultobj = SWIG_PyObj_FromInt((int)result);
8038 return resultobj;
8039 fail:
8040 return NULL;
8041}
8042
8043
8044static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8045 PyObject *resultobj;
8046 wxFont *arg1 = (wxFont *) 0 ;
8047 int result;
8048 PyObject * obj0 = 0 ;
8049 char *kwnames[] = {
8050 (char *) "self", NULL
8051 };
8052
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8055 {
8056 PyThreadState* __tstate = wxPyBeginAllowThreads();
8057 result = (int)((wxFont const *)arg1)->GetWeight();
8058
8059 wxPyEndAllowThreads(__tstate);
8060 if (PyErr_Occurred()) SWIG_fail;
8061 }
8062 resultobj = SWIG_PyObj_FromInt((int)result);
8063 return resultobj;
8064 fail:
8065 return NULL;
8066}
8067
8068
8069static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8070 PyObject *resultobj;
8071 wxFont *arg1 = (wxFont *) 0 ;
8072 bool result;
8073 PyObject * obj0 = 0 ;
8074 char *kwnames[] = {
8075 (char *) "self", NULL
8076 };
8077
8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8080 {
8081 PyThreadState* __tstate = wxPyBeginAllowThreads();
8082 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8083
8084 wxPyEndAllowThreads(__tstate);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8088 return resultobj;
8089 fail:
8090 return NULL;
8091}
8092
8093
8094static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8095 PyObject *resultobj;
8096 wxFont *arg1 = (wxFont *) 0 ;
8097 wxString result;
8098 PyObject * obj0 = 0 ;
8099 char *kwnames[] = {
8100 (char *) "self", NULL
8101 };
8102
8103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8105 {
8106 PyThreadState* __tstate = wxPyBeginAllowThreads();
8107 result = ((wxFont const *)arg1)->GetFaceName();
8108
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 {
8113#if wxUSE_UNICODE
8114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8115#else
8116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8117#endif
8118 }
8119 return resultobj;
8120 fail:
8121 return NULL;
8122}
8123
8124
8125static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj;
8127 wxFont *arg1 = (wxFont *) 0 ;
8128 int result;
8129 PyObject * obj0 = 0 ;
8130 char *kwnames[] = {
8131 (char *) "self", NULL
8132 };
8133
8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 result = (int)((wxFont const *)arg1)->GetEncoding();
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_PyObj_FromInt((int)result);
8144 return resultobj;
8145 fail:
8146 return NULL;
8147}
8148
8149
8150static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 wxFont *arg1 = (wxFont *) 0 ;
8153 wxNativeFontInfo *result;
8154 PyObject * obj0 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "self", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8164
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
8169 return resultobj;
8170 fail:
8171 return NULL;
8172}
8173
8174
8175static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8176 PyObject *resultobj;
8177 wxFont *arg1 = (wxFont *) 0 ;
8178 bool result;
8179 PyObject * obj0 = 0 ;
8180 char *kwnames[] = {
8181 (char *) "self", NULL
8182 };
8183
8184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8186 {
8187 PyThreadState* __tstate = wxPyBeginAllowThreads();
8188 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8189
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8194 return resultobj;
8195 fail:
8196 return NULL;
8197}
8198
8199
8200static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj;
8202 wxFont *arg1 = (wxFont *) 0 ;
8203 wxString result;
8204 PyObject * obj0 = 0 ;
8205 char *kwnames[] = {
8206 (char *) "self", NULL
8207 };
8208
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 {
8219#if wxUSE_UNICODE
8220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8221#else
8222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8223#endif
8224 }
8225 return resultobj;
8226 fail:
8227 return NULL;
8228}
8229
8230
8231static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8232 PyObject *resultobj;
8233 wxFont *arg1 = (wxFont *) 0 ;
8234 wxString result;
8235 PyObject * obj0 = 0 ;
8236 char *kwnames[] = {
8237 (char *) "self", NULL
8238 };
8239
8240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8242 {
8243 PyThreadState* __tstate = wxPyBeginAllowThreads();
8244 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8245
8246 wxPyEndAllowThreads(__tstate);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 {
8250#if wxUSE_UNICODE
8251 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8252#else
8253 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8254#endif
8255 }
8256 return resultobj;
8257 fail:
8258 return NULL;
8259}
8260
8261
8262static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8263 PyObject *resultobj;
8264 wxFont *arg1 = (wxFont *) 0 ;
8265 int arg2 ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 char *kwnames[] = {
8269 (char *) "self",(char *) "pointSize", NULL
8270 };
8271
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8274 {
8275 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 (arg1)->SetPointSize(arg2);
8281
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 Py_INCREF(Py_None); resultobj = Py_None;
8286 return resultobj;
8287 fail:
8288 return NULL;
8289}
8290
8291
8292static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8293 PyObject *resultobj;
8294 wxFont *arg1 = (wxFont *) 0 ;
8295 int arg2 ;
8296 PyObject * obj0 = 0 ;
8297 PyObject * obj1 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "self",(char *) "family", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8304 {
8305 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 {
8309 PyThreadState* __tstate = wxPyBeginAllowThreads();
8310 (arg1)->SetFamily(arg2);
8311
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 Py_INCREF(Py_None); resultobj = Py_None;
8316 return resultobj;
8317 fail:
8318 return NULL;
8319}
8320
8321
8322static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8323 PyObject *resultobj;
8324 wxFont *arg1 = (wxFont *) 0 ;
8325 int arg2 ;
8326 PyObject * obj0 = 0 ;
8327 PyObject * obj1 = 0 ;
8328 char *kwnames[] = {
8329 (char *) "self",(char *) "style", NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8334 {
8335 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 (arg1)->SetStyle(arg2);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 Py_INCREF(Py_None); resultobj = Py_None;
8346 return resultobj;
8347 fail:
8348 return NULL;
8349}
8350
8351
8352static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8353 PyObject *resultobj;
8354 wxFont *arg1 = (wxFont *) 0 ;
8355 int arg2 ;
8356 PyObject * obj0 = 0 ;
8357 PyObject * obj1 = 0 ;
8358 char *kwnames[] = {
8359 (char *) "self",(char *) "weight", NULL
8360 };
8361
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8364 {
8365 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 (arg1)->SetWeight(arg2);
8371
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 Py_INCREF(Py_None); resultobj = Py_None;
8376 return resultobj;
8377 fail:
8378 return NULL;
8379}
8380
8381
8382static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8383 PyObject *resultobj;
8384 wxFont *arg1 = (wxFont *) 0 ;
8385 wxString *arg2 = 0 ;
8386 bool temp2 = False ;
8387 PyObject * obj0 = 0 ;
8388 PyObject * obj1 = 0 ;
8389 char *kwnames[] = {
8390 (char *) "self",(char *) "faceName", NULL
8391 };
8392
8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8395 {
8396 arg2 = wxString_in_helper(obj1);
8397 if (arg2 == NULL) SWIG_fail;
8398 temp2 = True;
8399 }
8400 {
8401 PyThreadState* __tstate = wxPyBeginAllowThreads();
8402 (arg1)->SetFaceName((wxString const &)*arg2);
8403
8404 wxPyEndAllowThreads(__tstate);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 Py_INCREF(Py_None); resultobj = Py_None;
8408 {
8409 if (temp2)
8410 delete arg2;
8411 }
8412 return resultobj;
8413 fail:
8414 {
8415 if (temp2)
8416 delete arg2;
8417 }
8418 return NULL;
8419}
8420
8421
8422static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxFont *arg1 = (wxFont *) 0 ;
8425 bool arg2 ;
8426 PyObject * obj0 = 0 ;
8427 PyObject * obj1 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self",(char *) "underlined", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8434 {
8435 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 (arg1)->SetUnderlined(arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 return resultobj;
8447 fail:
8448 return NULL;
8449}
8450
8451
8452static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxFont *arg1 = (wxFont *) 0 ;
8455 int arg2 ;
8456 PyObject * obj0 = 0 ;
8457 PyObject * obj1 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "self",(char *) "encoding", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8464 {
8465 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 (arg1)->SetEncoding((wxFontEncoding )arg2);
8471
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 Py_INCREF(Py_None); resultobj = Py_None;
8476 return resultobj;
8477 fail:
8478 return NULL;
8479}
8480
8481
8482static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxFont *arg1 = (wxFont *) 0 ;
8485 wxNativeFontInfo *arg2 = 0 ;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "self",(char *) "info", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8494 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8495 if (arg2 == NULL) {
8496 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8497 }
8498 {
8499 PyThreadState* __tstate = wxPyBeginAllowThreads();
8500 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8501
8502 wxPyEndAllowThreads(__tstate);
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 Py_INCREF(Py_None); resultobj = Py_None;
8506 return resultobj;
8507 fail:
8508 return NULL;
8509}
8510
8511
8512static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8513 PyObject *resultobj;
8514 wxFont *arg1 = (wxFont *) 0 ;
8515 wxString *arg2 = 0 ;
8516 bool temp2 = False ;
8517 PyObject * obj0 = 0 ;
8518 PyObject * obj1 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self",(char *) "info", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8525 {
8526 arg2 = wxString_in_helper(obj1);
8527 if (arg2 == NULL) SWIG_fail;
8528 temp2 = True;
8529 }
8530 {
8531 PyThreadState* __tstate = wxPyBeginAllowThreads();
8532 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8533
8534 wxPyEndAllowThreads(__tstate);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 Py_INCREF(Py_None); resultobj = Py_None;
8538 {
8539 if (temp2)
8540 delete arg2;
8541 }
8542 return resultobj;
8543 fail:
8544 {
8545 if (temp2)
8546 delete arg2;
8547 }
8548 return NULL;
8549}
8550
8551
8552static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8553 PyObject *resultobj;
8554 wxFont *arg1 = (wxFont *) 0 ;
8555 wxString *arg2 = 0 ;
8556 bool temp2 = False ;
8557 PyObject * obj0 = 0 ;
8558 PyObject * obj1 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "self",(char *) "info", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8565 {
8566 arg2 = wxString_in_helper(obj1);
8567 if (arg2 == NULL) SWIG_fail;
8568 temp2 = True;
8569 }
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8573
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 Py_INCREF(Py_None); resultobj = Py_None;
8578 {
8579 if (temp2)
8580 delete arg2;
8581 }
8582 return resultobj;
8583 fail:
8584 {
8585 if (temp2)
8586 delete arg2;
8587 }
8588 return NULL;
8589}
8590
8591
8592static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj;
8594 wxFont *arg1 = (wxFont *) 0 ;
8595 wxString result;
8596 PyObject * obj0 = 0 ;
8597 char *kwnames[] = {
8598 (char *) "self", NULL
8599 };
8600
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 result = ((wxFont const *)arg1)->GetFamilyString();
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 {
8611#if wxUSE_UNICODE
8612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8613#else
8614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8615#endif
8616 }
8617 return resultobj;
8618 fail:
8619 return NULL;
8620}
8621
8622
8623static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj;
8625 wxFont *arg1 = (wxFont *) 0 ;
8626 wxString result;
8627 PyObject * obj0 = 0 ;
8628 char *kwnames[] = {
8629 (char *) "self", NULL
8630 };
8631
8632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 result = ((wxFont const *)arg1)->GetStyleString();
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 {
8642#if wxUSE_UNICODE
8643 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8644#else
8645 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8646#endif
8647 }
8648 return resultobj;
8649 fail:
8650 return NULL;
8651}
8652
8653
8654static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj;
8656 wxFont *arg1 = (wxFont *) 0 ;
8657 wxString result;
8658 PyObject * obj0 = 0 ;
8659 char *kwnames[] = {
8660 (char *) "self", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
8667 result = ((wxFont const *)arg1)->GetWeightString();
8668
8669 wxPyEndAllowThreads(__tstate);
8670 if (PyErr_Occurred()) SWIG_fail;
8671 }
8672 {
8673#if wxUSE_UNICODE
8674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8675#else
8676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8677#endif
8678 }
8679 return resultobj;
8680 fail:
8681 return NULL;
8682}
8683
8684
8685static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8686 PyObject *resultobj;
8687 wxFont *arg1 = (wxFont *) 0 ;
8688 bool arg2 = (bool) True ;
8689 PyObject * obj0 = 0 ;
8690 PyObject * obj1 = 0 ;
8691 char *kwnames[] = {
8692 (char *) "self",(char *) "no", NULL
8693 };
8694
8695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8697 if (obj1) {
8698 {
8699 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 }
8703 {
8704 PyThreadState* __tstate = wxPyBeginAllowThreads();
8705 (arg1)->SetNoAntiAliasing(arg2);
8706
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 Py_INCREF(Py_None); resultobj = Py_None;
8711 return resultobj;
8712 fail:
8713 return NULL;
8714}
8715
8716
8717static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj;
8719 wxFont *arg1 = (wxFont *) 0 ;
8720 bool result;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8728 {
8729 PyThreadState* __tstate = wxPyBeginAllowThreads();
8730 result = (bool)(arg1)->GetNoAntiAliasing();
8731
8732 wxPyEndAllowThreads(__tstate);
8733 if (PyErr_Occurred()) SWIG_fail;
8734 }
8735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8736 return resultobj;
8737 fail:
8738 return NULL;
8739}
8740
8741
8742static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8743 PyObject *resultobj;
8744 int result;
8745 char *kwnames[] = {
8746 NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8750 {
8751 PyThreadState* __tstate = wxPyBeginAllowThreads();
8752 result = (int)wxFont::GetDefaultEncoding();
8753
8754 wxPyEndAllowThreads(__tstate);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 resultobj = SWIG_PyObj_FromInt((int)result);
8758 return resultobj;
8759 fail:
8760 return NULL;
8761}
8762
8763
8764static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj;
8766 int arg1 ;
8767 PyObject * obj0 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "encoding", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8773 {
8774 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 Py_INCREF(Py_None); resultobj = Py_None;
8785 return resultobj;
8786 fail:
8787 return NULL;
8788}
8789
8790
8791static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8792 PyObject *obj;
8793 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8794 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8795 Py_INCREF(obj);
8796 return Py_BuildValue((char *)"");
8797}
8798static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxPyFontEnumerator *result;
8801 char *kwnames[] = {
8802 NULL
8803 };
8804
8805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8814 return resultobj;
8815 fail:
8816 return NULL;
8817}
8818
8819
8820static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj;
8822 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8823 PyObject * obj0 = 0 ;
8824 char *kwnames[] = {
8825 (char *) "self", NULL
8826 };
8827
8828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 delete arg1;
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 Py_INCREF(Py_None); resultobj = Py_None;
8838 return resultobj;
8839 fail:
8840 return NULL;
8841}
8842
8843
8844static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8847 PyObject *arg2 = (PyObject *) 0 ;
8848 PyObject *arg3 = (PyObject *) 0 ;
8849 bool arg4 ;
8850 PyObject * obj0 = 0 ;
8851 PyObject * obj1 = 0 ;
8852 PyObject * obj2 = 0 ;
8853 PyObject * obj3 = 0 ;
8854 char *kwnames[] = {
8855 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8856 };
8857
8858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8860 arg2 = obj1;
8861 arg3 = obj2;
8862 {
8863 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8869
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 Py_INCREF(Py_None); resultobj = Py_None;
8874 return resultobj;
8875 fail:
8876 return NULL;
8877}
8878
8879
8880static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj;
8882 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8883 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8884 bool arg3 = (bool) False ;
8885 bool result;
8886 PyObject * obj0 = 0 ;
8887 PyObject * obj1 = 0 ;
8888 PyObject * obj2 = 0 ;
8889 char *kwnames[] = {
8890 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8895 if (obj1) {
8896 {
8897 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 }
8901 if (obj2) {
8902 {
8903 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 }
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8910
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8915 return resultobj;
8916 fail:
8917 return NULL;
8918}
8919
8920
8921static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8924 wxString const &arg2_defvalue = wxPyEmptyString ;
8925 wxString *arg2 = (wxString *) &arg2_defvalue ;
8926 bool result;
8927 bool temp2 = False ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char *kwnames[] = {
8931 (char *) "self",(char *) "facename", NULL
8932 };
8933
8934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8936 if (obj1) {
8937 {
8938 arg2 = wxString_in_helper(obj1);
8939 if (arg2 == NULL) SWIG_fail;
8940 temp2 = True;
8941 }
8942 }
8943 {
8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
8945 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8946
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8951 {
8952 if (temp2)
8953 delete arg2;
8954 }
8955 return resultobj;
8956 fail:
8957 {
8958 if (temp2)
8959 delete arg2;
8960 }
8961 return NULL;
8962}
8963
8964
8965static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj;
8967 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8968 PyObject *result;
8969 PyObject * obj0 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 resultobj = result;
8984 return resultobj;
8985 fail:
8986 return NULL;
8987}
8988
8989
8990static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj;
8992 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8993 PyObject *result;
8994 PyObject * obj0 = 0 ;
8995 char *kwnames[] = {
8996 (char *) "self", NULL
8997 };
8998
8999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9001 {
9002 PyThreadState* __tstate = wxPyBeginAllowThreads();
9003 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9004
9005 wxPyEndAllowThreads(__tstate);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 resultobj = result;
9009 return resultobj;
9010 fail:
9011 return NULL;
9012}
9013
9014
9015static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9016 PyObject *obj;
9017 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9018 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9019 Py_INCREF(obj);
9020 return Py_BuildValue((char *)"");
9021}
9022static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9025 int arg2 ;
9026 PyObject * obj0 = 0 ;
9027 PyObject * obj1 = 0 ;
9028 char *kwnames[] = {
9029 (char *) "self",(char *) "Language", NULL
9030 };
9031
9032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9034 {
9035 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 if (arg1) (arg1)->Language = arg2;
9039
9040 Py_INCREF(Py_None); resultobj = Py_None;
9041 return resultobj;
9042 fail:
9043 return NULL;
9044}
9045
9046
9047static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj;
9049 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9050 int result;
9051 PyObject * obj0 = 0 ;
9052 char *kwnames[] = {
9053 (char *) "self", NULL
9054 };
9055
9056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9058 result = (int) ((arg1)->Language);
9059
9060 resultobj = SWIG_PyObj_FromInt((int)result);
9061 return resultobj;
9062 fail:
9063 return NULL;
9064}
9065
9066
9067static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9068 PyObject *resultobj;
9069 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9070 wxString *arg2 = (wxString *) 0 ;
9071 bool temp2 = False ;
9072 PyObject * obj0 = 0 ;
9073 PyObject * obj1 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "self",(char *) "CanonicalName", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9080 {
9081 arg2 = wxString_in_helper(obj1);
9082 if (arg2 == NULL) SWIG_fail;
9083 temp2 = True;
9084 }
9085 if (arg1) (arg1)->CanonicalName = *arg2;
9086
9087 Py_INCREF(Py_None); resultobj = Py_None;
9088 {
9089 if (temp2)
9090 delete arg2;
9091 }
9092 return resultobj;
9093 fail:
9094 {
9095 if (temp2)
9096 delete arg2;
9097 }
9098 return NULL;
9099}
9100
9101
9102static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9105 wxString *result;
9106 PyObject * obj0 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9113 result = (wxString *)& ((arg1)->CanonicalName);
9114
9115 {
9116#if wxUSE_UNICODE
9117 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9118#else
9119 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9120#endif
9121 }
9122 return resultobj;
9123 fail:
9124 return NULL;
9125}
9126
9127
9128static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj;
9130 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9131 wxString *arg2 = (wxString *) 0 ;
9132 bool temp2 = False ;
9133 PyObject * obj0 = 0 ;
9134 PyObject * obj1 = 0 ;
9135 char *kwnames[] = {
9136 (char *) "self",(char *) "Description", NULL
9137 };
9138
9139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9141 {
9142 arg2 = wxString_in_helper(obj1);
9143 if (arg2 == NULL) SWIG_fail;
9144 temp2 = True;
9145 }
9146 if (arg1) (arg1)->Description = *arg2;
9147
9148 Py_INCREF(Py_None); resultobj = Py_None;
9149 {
9150 if (temp2)
9151 delete arg2;
9152 }
9153 return resultobj;
9154 fail:
9155 {
9156 if (temp2)
9157 delete arg2;
9158 }
9159 return NULL;
9160}
9161
9162
9163static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9166 wxString *result;
9167 PyObject * obj0 = 0 ;
9168 char *kwnames[] = {
9169 (char *) "self", NULL
9170 };
9171
9172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9174 result = (wxString *)& ((arg1)->Description);
9175
9176 {
9177#if wxUSE_UNICODE
9178 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9179#else
9180 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9181#endif
9182 }
9183 return resultobj;
9184 fail:
9185 return NULL;
9186}
9187
9188
9189static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9190 PyObject *obj;
9191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9192 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9193 Py_INCREF(obj);
9194 return Py_BuildValue((char *)"");
9195}
9196static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj;
9198 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9199 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9200 wxLocale *result;
9201 PyObject * obj0 = 0 ;
9202 PyObject * obj1 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "language",(char *) "flags", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9208 if (obj0) {
9209 {
9210 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 }
9214 if (obj1) {
9215 {
9216 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 }
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (wxLocale *)new wxLocale(arg1,arg2);
9223
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
9228 return resultobj;
9229 fail:
9230 return NULL;
9231}
9232
9233
9234static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj;
9236 wxLocale *arg1 = (wxLocale *) 0 ;
9237 PyObject * obj0 = 0 ;
9238 char *kwnames[] = {
9239 (char *) "self", NULL
9240 };
9241
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 delete arg1;
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 Py_INCREF(Py_None); resultobj = Py_None;
9252 return resultobj;
9253 fail:
9254 return NULL;
9255}
9256
9257
9258static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxLocale *arg1 = (wxLocale *) 0 ;
9261 wxString *arg2 = 0 ;
9262 wxString const &arg3_defvalue = wxPyEmptyString ;
9263 wxString *arg3 = (wxString *) &arg3_defvalue ;
9264 wxString const &arg4_defvalue = wxPyEmptyString ;
9265 wxString *arg4 = (wxString *) &arg4_defvalue ;
9266 bool arg5 = (bool) True ;
9267 bool arg6 = (bool) False ;
9268 bool result;
9269 bool temp2 = False ;
9270 bool temp3 = False ;
9271 bool temp4 = False ;
9272 PyObject * obj0 = 0 ;
9273 PyObject * obj1 = 0 ;
9274 PyObject * obj2 = 0 ;
9275 PyObject * obj3 = 0 ;
9276 PyObject * obj4 = 0 ;
9277 PyObject * obj5 = 0 ;
9278 char *kwnames[] = {
9279 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9280 };
9281
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9284 {
9285 arg2 = wxString_in_helper(obj1);
9286 if (arg2 == NULL) SWIG_fail;
9287 temp2 = True;
9288 }
9289 if (obj2) {
9290 {
9291 arg3 = wxString_in_helper(obj2);
9292 if (arg3 == NULL) SWIG_fail;
9293 temp3 = True;
9294 }
9295 }
9296 if (obj3) {
9297 {
9298 arg4 = wxString_in_helper(obj3);
9299 if (arg4 == NULL) SWIG_fail;
9300 temp4 = True;
9301 }
9302 }
9303 if (obj4) {
9304 {
9305 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 }
9309 if (obj5) {
9310 {
9311 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 }
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 {
9324 if (temp2)
9325 delete arg2;
9326 }
9327 {
9328 if (temp3)
9329 delete arg3;
9330 }
9331 {
9332 if (temp4)
9333 delete arg4;
9334 }
9335 return resultobj;
9336 fail:
9337 {
9338 if (temp2)
9339 delete arg2;
9340 }
9341 {
9342 if (temp3)
9343 delete arg3;
9344 }
9345 {
9346 if (temp4)
9347 delete arg4;
9348 }
9349 return NULL;
9350}
9351
9352
9353static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxLocale *arg1 = (wxLocale *) 0 ;
9356 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9357 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9358 bool result;
9359 PyObject * obj0 = 0 ;
9360 PyObject * obj1 = 0 ;
9361 PyObject * obj2 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self",(char *) "language",(char *) "flags", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9368 if (obj1) {
9369 {
9370 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 }
9374 if (obj2) {
9375 {
9376 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 }
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (bool)(arg1)->Init(arg2,arg3);
9383
9384 wxPyEndAllowThreads(__tstate);
9385 if (PyErr_Occurred()) SWIG_fail;
9386 }
9387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9388 return resultobj;
9389 fail:
9390 return NULL;
9391}
9392
9393
9394static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9395 PyObject *resultobj;
9396 int result;
9397 char *kwnames[] = {
9398 NULL
9399 };
9400
9401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 result = (int)wxLocale::GetSystemLanguage();
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_PyObj_FromInt((int)result);
9410 return resultobj;
9411 fail:
9412 return NULL;
9413}
9414
9415
9416static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 int result;
9419 char *kwnames[] = {
9420 NULL
9421 };
9422
9423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 result = (int)wxLocale::GetSystemEncoding();
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_PyObj_FromInt((int)result);
9432 return resultobj;
9433 fail:
9434 return NULL;
9435}
9436
9437
9438static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxString result;
9441 char *kwnames[] = {
9442 NULL
9443 };
9444
9445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9446 {
9447 PyThreadState* __tstate = wxPyBeginAllowThreads();
9448 result = wxLocale::GetSystemEncodingName();
9449
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 {
9454#if wxUSE_UNICODE
9455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9456#else
9457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9458#endif
9459 }
9460 return resultobj;
9461 fail:
9462 return NULL;
9463}
9464
9465
9466static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 wxLocale *arg1 = (wxLocale *) 0 ;
9469 bool result;
9470 PyObject * obj0 = 0 ;
9471 char *kwnames[] = {
9472 (char *) "self", NULL
9473 };
9474
9475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = (bool)((wxLocale const *)arg1)->IsOk();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9485 return resultobj;
9486 fail:
9487 return NULL;
9488}
9489
9490
9491static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj;
9493 wxLocale *arg1 = (wxLocale *) 0 ;
9494 wxString result;
9495 PyObject * obj0 = 0 ;
9496 char *kwnames[] = {
9497 (char *) "self", NULL
9498 };
9499
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = ((wxLocale const *)arg1)->GetLocale();
9505
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 {
9510#if wxUSE_UNICODE
9511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9512#else
9513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9514#endif
9515 }
9516 return resultobj;
9517 fail:
9518 return NULL;
9519}
9520
9521
9522static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9523 PyObject *resultobj;
9524 wxLocale *arg1 = (wxLocale *) 0 ;
9525 int result;
9526 PyObject * obj0 = 0 ;
9527 char *kwnames[] = {
9528 (char *) "self", NULL
9529 };
9530
9531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (int)((wxLocale const *)arg1)->GetLanguage();
9536
9537 wxPyEndAllowThreads(__tstate);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
9540 resultobj = SWIG_PyObj_FromInt((int)result);
9541 return resultobj;
9542 fail:
9543 return NULL;
9544}
9545
9546
9547static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxLocale *arg1 = (wxLocale *) 0 ;
9550 wxString result;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 result = ((wxLocale const *)arg1)->GetSysName();
9561
9562 wxPyEndAllowThreads(__tstate);
9563 if (PyErr_Occurred()) SWIG_fail;
9564 }
9565 {
9566#if wxUSE_UNICODE
9567 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9568#else
9569 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9570#endif
9571 }
9572 return resultobj;
9573 fail:
9574 return NULL;
9575}
9576
9577
9578static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9579 PyObject *resultobj;
9580 wxLocale *arg1 = (wxLocale *) 0 ;
9581 wxString result;
9582 PyObject * obj0 = 0 ;
9583 char *kwnames[] = {
9584 (char *) "self", NULL
9585 };
9586
9587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 result = ((wxLocale const *)arg1)->GetCanonicalName();
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 {
9597#if wxUSE_UNICODE
9598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9599#else
9600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9601#endif
9602 }
9603 return resultobj;
9604 fail:
9605 return NULL;
9606}
9607
9608
9609static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj;
9611 wxString *arg1 = 0 ;
9612 bool temp1 = False ;
9613 PyObject * obj0 = 0 ;
9614 char *kwnames[] = {
9615 (char *) "prefix", NULL
9616 };
9617
9618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9619 {
9620 arg1 = wxString_in_helper(obj0);
9621 if (arg1 == NULL) SWIG_fail;
9622 temp1 = True;
9623 }
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 Py_INCREF(Py_None); resultobj = Py_None;
9632 {
9633 if (temp1)
9634 delete arg1;
9635 }
9636 return resultobj;
9637 fail:
9638 {
9639 if (temp1)
9640 delete arg1;
9641 }
9642 return NULL;
9643}
9644
9645
9646static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxLocale *arg1 = (wxLocale *) 0 ;
9649 wxString *arg2 = 0 ;
9650 bool result;
9651 bool temp2 = False ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char *kwnames[] = {
9655 (char *) "self",(char *) "szDomain", NULL
9656 };
9657
9658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9660 {
9661 arg2 = wxString_in_helper(obj1);
9662 if (arg2 == NULL) SWIG_fail;
9663 temp2 = True;
9664 }
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9673 {
9674 if (temp2)
9675 delete arg2;
9676 }
9677 return resultobj;
9678 fail:
9679 {
9680 if (temp2)
9681 delete arg2;
9682 }
9683 return NULL;
9684}
9685
9686
9687static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj;
9689 wxLocale *arg1 = (wxLocale *) 0 ;
9690 wxString *arg2 = 0 ;
9691 bool result;
9692 bool temp2 = False ;
9693 PyObject * obj0 = 0 ;
9694 PyObject * obj1 = 0 ;
9695 char *kwnames[] = {
9696 (char *) "self",(char *) "szDomain", NULL
9697 };
9698
9699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9701 {
9702 arg2 = wxString_in_helper(obj1);
9703 if (arg2 == NULL) SWIG_fail;
9704 temp2 = True;
9705 }
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9709
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 return resultobj;
9719 fail:
9720 {
9721 if (temp2)
9722 delete arg2;
9723 }
9724 return NULL;
9725}
9726
9727
9728static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9729 PyObject *resultobj;
9730 int arg1 ;
9731 wxLanguageInfo *result;
9732 PyObject * obj0 = 0 ;
9733 char *kwnames[] = {
9734 (char *) "lang", NULL
9735 };
9736
9737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9738 {
9739 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9745
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9750 return resultobj;
9751 fail:
9752 return NULL;
9753}
9754
9755
9756static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj;
9758 int arg1 ;
9759 wxString result;
9760 PyObject * obj0 = 0 ;
9761 char *kwnames[] = {
9762 (char *) "lang", NULL
9763 };
9764
9765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9766 {
9767 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 {
9771 PyThreadState* __tstate = wxPyBeginAllowThreads();
9772 result = wxLocale::GetLanguageName(arg1);
9773
9774 wxPyEndAllowThreads(__tstate);
9775 if (PyErr_Occurred()) SWIG_fail;
9776 }
9777 {
9778#if wxUSE_UNICODE
9779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9780#else
9781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9782#endif
9783 }
9784 return resultobj;
9785 fail:
9786 return NULL;
9787}
9788
9789
9790static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxString *arg1 = 0 ;
9793 wxLanguageInfo *result;
9794 bool temp1 = False ;
9795 PyObject * obj0 = 0 ;
9796 char *kwnames[] = {
9797 (char *) "locale", NULL
9798 };
9799
9800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9801 {
9802 arg1 = wxString_in_helper(obj0);
9803 if (arg1 == NULL) SWIG_fail;
9804 temp1 = True;
9805 }
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9809
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9814 {
9815 if (temp1)
9816 delete arg1;
9817 }
9818 return resultobj;
9819 fail:
9820 {
9821 if (temp1)
9822 delete arg1;
9823 }
9824 return NULL;
9825}
9826
9827
9828static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxLanguageInfo *arg1 = 0 ;
9831 PyObject * obj0 = 0 ;
9832 char *kwnames[] = {
9833 (char *) "info", NULL
9834 };
9835
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9838 if (arg1 == NULL) {
9839 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9840 }
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 Py_INCREF(Py_None); resultobj = Py_None;
9849 return resultobj;
9850 fail:
9851 return NULL;
9852}
9853
9854
9855static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj;
9857 wxLocale *arg1 = (wxLocale *) 0 ;
9858 wxString *arg2 = 0 ;
9859 wxString const &arg3_defvalue = wxPyEmptyString ;
9860 wxString *arg3 = (wxString *) &arg3_defvalue ;
9861 wxString result;
9862 bool temp2 = False ;
9863 bool temp3 = False ;
9864 PyObject * obj0 = 0 ;
9865 PyObject * obj1 = 0 ;
9866 PyObject * obj2 = 0 ;
9867 char *kwnames[] = {
9868 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9869 };
9870
9871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9873 {
9874 arg2 = wxString_in_helper(obj1);
9875 if (arg2 == NULL) SWIG_fail;
9876 temp2 = True;
9877 }
9878 if (obj2) {
9879 {
9880 arg3 = wxString_in_helper(obj2);
9881 if (arg3 == NULL) SWIG_fail;
9882 temp3 = True;
9883 }
9884 }
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9888
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 {
9893#if wxUSE_UNICODE
9894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9895#else
9896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9897#endif
9898 }
9899 {
9900 if (temp2)
9901 delete arg2;
9902 }
9903 {
9904 if (temp3)
9905 delete arg3;
9906 }
9907 return resultobj;
9908 fail:
9909 {
9910 if (temp2)
9911 delete arg2;
9912 }
9913 {
9914 if (temp3)
9915 delete arg3;
9916 }
9917 return NULL;
9918}
9919
9920
9921static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 wxLocale *arg1 = (wxLocale *) 0 ;
9924 wxString *result;
9925 PyObject * obj0 = 0 ;
9926 char *kwnames[] = {
9927 (char *) "self", NULL
9928 };
9929
9930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9932 {
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 {
9935 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9936 result = (wxString *) &_result_ref;
9937 }
9938
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 {
9943#if wxUSE_UNICODE
9944 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9945#else
9946 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9947#endif
9948 }
9949 return resultobj;
9950 fail:
9951 return NULL;
9952}
9953
9954
9955static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9956 PyObject *obj;
9957 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9958 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9959 Py_INCREF(obj);
9960 return Py_BuildValue((char *)"");
9961}
9962static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj;
9964 wxLocale *result;
9965 char *kwnames[] = {
9966 NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (wxLocale *)wxGetLocale();
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9978 return resultobj;
9979 fail:
9980 return NULL;
9981}
9982
9983
9984static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9985 PyObject *resultobj;
9986 wxString *arg1 = 0 ;
9987 wxString result;
9988 bool temp1 = False ;
9989 PyObject * obj0 = 0 ;
9990
9991 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9992 {
9993 arg1 = wxString_in_helper(obj0);
9994 if (arg1 == NULL) SWIG_fail;
9995 temp1 = True;
9996 }
9997 {
9998 PyThreadState* __tstate = wxPyBeginAllowThreads();
9999 result = wxGetTranslation((wxString const &)*arg1);
10000
10001 wxPyEndAllowThreads(__tstate);
10002 if (PyErr_Occurred()) SWIG_fail;
10003 }
10004 {
10005#if wxUSE_UNICODE
10006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10007#else
10008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10009#endif
10010 }
10011 {
10012 if (temp1)
10013 delete arg1;
10014 }
10015 return resultobj;
10016 fail:
10017 {
10018 if (temp1)
10019 delete arg1;
10020 }
10021 return NULL;
10022}
10023
10024
10025static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10026 PyObject *resultobj;
10027 wxString *arg1 = 0 ;
10028 wxString *arg2 = 0 ;
10029 size_t arg3 ;
10030 wxString result;
10031 bool temp1 = False ;
10032 bool temp2 = False ;
10033 PyObject * obj0 = 0 ;
10034 PyObject * obj1 = 0 ;
10035 PyObject * obj2 = 0 ;
10036
10037 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10038 {
10039 arg1 = wxString_in_helper(obj0);
10040 if (arg1 == NULL) SWIG_fail;
10041 temp1 = True;
10042 }
10043 {
10044 arg2 = wxString_in_helper(obj1);
10045 if (arg2 == NULL) SWIG_fail;
10046 temp2 = True;
10047 }
10048 {
10049 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
10050 if (PyErr_Occurred()) SWIG_fail;
10051 }
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10055
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 {
10060#if wxUSE_UNICODE
10061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10062#else
10063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10064#endif
10065 }
10066 {
10067 if (temp1)
10068 delete arg1;
10069 }
10070 {
10071 if (temp2)
10072 delete arg2;
10073 }
10074 return resultobj;
10075 fail:
10076 {
10077 if (temp1)
10078 delete arg1;
10079 }
10080 {
10081 if (temp2)
10082 delete arg2;
10083 }
10084 return NULL;
10085}
10086
10087
10088static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10089 int argc;
10090 PyObject *argv[4];
10091 int ii;
10092
10093 argc = PyObject_Length(args);
10094 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10095 argv[ii] = PyTuple_GetItem(args,ii);
10096 }
10097 if (argc == 1) {
10098 int _v;
10099 {
10100 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10101 }
10102 if (_v) {
10103 return _wrap_GetTranslation__SWIG_0(self,args);
10104 }
10105 }
10106 if (argc == 3) {
10107 int _v;
10108 {
10109 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10110 }
10111 if (_v) {
10112 {
10113 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10114 }
10115 if (_v) {
10116 {
10117 SWIG_PyObj_AsUnsignedLong(argv[2]);
10118 if (PyErr_Occurred()) {
10119 _v = 0;
10120 PyErr_Clear();
10121 } else {
10122 _v = 1;
10123 }
10124 }
10125 if (_v) {
10126 return _wrap_GetTranslation__SWIG_1(self,args);
10127 }
10128 }
10129 }
10130 }
10131
10132 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10133 return NULL;
10134}
10135
10136
10137static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10138 PyObject *resultobj;
10139 wxEncodingConverter *result;
10140 char *kwnames[] = {
10141 NULL
10142 };
10143
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (wxEncodingConverter *)new wxEncodingConverter();
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
10153 return resultobj;
10154 fail:
10155 return NULL;
10156}
10157
10158
10159static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10160 PyObject *resultobj;
10161 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10162 PyObject * obj0 = 0 ;
10163 char *kwnames[] = {
10164 (char *) "self", NULL
10165 };
10166
10167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 delete arg1;
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 Py_INCREF(Py_None); resultobj = Py_None;
10177 return resultobj;
10178 fail:
10179 return NULL;
10180}
10181
10182
10183static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj;
10185 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10186 int arg2 ;
10187 int arg3 ;
10188 int arg4 = (int) wxCONVERT_STRICT ;
10189 bool result;
10190 PyObject * obj0 = 0 ;
10191 PyObject * obj1 = 0 ;
10192 PyObject * obj2 = 0 ;
10193 PyObject * obj3 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10200 {
10201 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 {
10205 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 if (obj3) {
10209 {
10210 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 }
10214 {
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10217
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10222 return resultobj;
10223 fail:
10224 return NULL;
10225}
10226
10227
10228static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj;
10230 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10231 wxString *arg2 = 0 ;
10232 wxString result;
10233 bool temp2 = False ;
10234 PyObject * obj0 = 0 ;
10235 PyObject * obj1 = 0 ;
10236 char *kwnames[] = {
10237 (char *) "self",(char *) "input", NULL
10238 };
10239
10240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10242 {
10243 arg2 = wxString_in_helper(obj1);
10244 if (arg2 == NULL) SWIG_fail;
10245 temp2 = True;
10246 }
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (arg1)->Convert((wxString const &)*arg2);
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 {
10255#if wxUSE_UNICODE
10256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10257#else
10258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10259#endif
10260 }
10261 {
10262 if (temp2)
10263 delete arg2;
10264 }
10265 return resultobj;
10266 fail:
10267 {
10268 if (temp2)
10269 delete arg2;
10270 }
10271 return NULL;
10272}
10273
10274
10275static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj;
10277 int arg1 ;
10278 int arg2 = (int) wxPLATFORM_CURRENT ;
10279 wxFontEncodingArray result;
10280 PyObject * obj0 = 0 ;
10281 PyObject * obj1 = 0 ;
10282 char *kwnames[] = {
10283 (char *) "enc",(char *) "platform", NULL
10284 };
10285
10286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10287 {
10288 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 if (obj1) {
10292 {
10293 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 }
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10300
10301 wxPyEndAllowThreads(__tstate);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 {
10305 resultobj = PyList_New(0);
10306 for (size_t i=0; i < (&result)->GetCount(); i++) {
10307 PyObject* number = PyInt_FromLong((&result)->Item(i));
10308 PyList_Append(resultobj, number);
10309 Py_DECREF(number);
10310 }
10311 }
10312 return resultobj;
10313 fail:
10314 return NULL;
10315}
10316
10317
10318static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10319 PyObject *resultobj;
10320 int arg1 ;
10321 wxFontEncodingArray result;
10322 PyObject * obj0 = 0 ;
10323 char *kwnames[] = {
10324 (char *) "enc", NULL
10325 };
10326
10327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10328 {
10329 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10335
10336 wxPyEndAllowThreads(__tstate);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
10339 {
10340 resultobj = PyList_New(0);
10341 for (size_t i=0; i < (&result)->GetCount(); i++) {
10342 PyObject* number = PyInt_FromLong((&result)->Item(i));
10343 PyList_Append(resultobj, number);
10344 Py_DECREF(number);
10345 }
10346 }
10347 return resultobj;
10348 fail:
10349 return NULL;
10350}
10351
10352
10353static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10354 PyObject *resultobj;
10355 int arg1 ;
10356 int arg2 ;
10357 bool result;
10358 PyObject * obj0 = 0 ;
10359 PyObject * obj1 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "encIn",(char *) "encOut", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10365 {
10366 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 {
10370 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10376
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 }
10380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10381 return resultobj;
10382 fail:
10383 return NULL;
10384}
10385
10386
10387static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10388 PyObject *obj;
10389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10390 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10391 Py_INCREF(obj);
10392 return Py_BuildValue((char *)"");
10393}
10394static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 wxDC *arg1 = (wxDC *) 0 ;
10397 PyObject * obj0 = 0 ;
10398 char *kwnames[] = {
10399 (char *) "self", NULL
10400 };
10401
10402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 delete arg1;
10407
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 Py_INCREF(Py_None); resultobj = Py_None;
10412 return resultobj;
10413 fail:
10414 return NULL;
10415}
10416
10417
10418static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj;
10420 wxDC *arg1 = (wxDC *) 0 ;
10421 PyObject * obj0 = 0 ;
10422 char *kwnames[] = {
10423 (char *) "self", NULL
10424 };
10425
10426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 (arg1)->BeginDrawing();
10431
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 Py_INCREF(Py_None); resultobj = Py_None;
10436 return resultobj;
10437 fail:
10438 return NULL;
10439}
10440
10441
10442static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj;
10444 wxDC *arg1 = (wxDC *) 0 ;
10445 PyObject * obj0 = 0 ;
10446 char *kwnames[] = {
10447 (char *) "self", NULL
10448 };
10449
10450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 (arg1)->EndDrawing();
10455
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 Py_INCREF(Py_None); resultobj = Py_None;
10460 return resultobj;
10461 fail:
10462 return NULL;
10463}
10464
10465
10466static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj;
10468 wxDC *arg1 = (wxDC *) 0 ;
10469 int arg2 ;
10470 int arg3 ;
10471 wxColour *arg4 = 0 ;
10472 int arg5 = (int) wxFLOOD_SURFACE ;
10473 bool result;
10474 wxColour temp4 ;
10475 PyObject * obj0 = 0 ;
10476 PyObject * obj1 = 0 ;
10477 PyObject * obj2 = 0 ;
10478 PyObject * obj3 = 0 ;
10479 PyObject * obj4 = 0 ;
10480 char *kwnames[] = {
10481 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10482 };
10483
10484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10486 {
10487 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 {
10491 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10492 if (PyErr_Occurred()) SWIG_fail;
10493 }
10494 {
10495 arg4 = &temp4;
10496 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10497 }
10498 if (obj4) {
10499 {
10500 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 }
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10512 return resultobj;
10513 fail:
10514 return NULL;
10515}
10516
10517
10518static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxDC *arg1 = (wxDC *) 0 ;
10521 wxPoint *arg2 = 0 ;
10522 wxColour *arg3 = 0 ;
10523 int arg4 = (int) wxFLOOD_SURFACE ;
10524 bool result;
10525 wxPoint temp2 ;
10526 wxColour temp3 ;
10527 PyObject * obj0 = 0 ;
10528 PyObject * obj1 = 0 ;
10529 PyObject * obj2 = 0 ;
10530 PyObject * obj3 = 0 ;
10531 char *kwnames[] = {
10532 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10533 };
10534
10535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10537 {
10538 arg2 = &temp2;
10539 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10540 }
10541 {
10542 arg3 = &temp3;
10543 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10544 }
10545 if (obj3) {
10546 {
10547 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 }
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10554
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10559 return resultobj;
10560 fail:
10561 return NULL;
10562}
10563
10564
10565static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj;
10567 wxDC *arg1 = (wxDC *) 0 ;
10568 int arg2 ;
10569 int arg3 ;
10570 wxColour result;
10571 PyObject * obj0 = 0 ;
10572 PyObject * obj1 = 0 ;
10573 PyObject * obj2 = 0 ;
10574 char *kwnames[] = {
10575 (char *) "self",(char *) "x",(char *) "y", NULL
10576 };
10577
10578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10580 {
10581 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 {
10585 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 {
10596 wxColour * resultptr;
10597 resultptr = new wxColour((wxColour &) result);
10598 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10599 }
10600 return resultobj;
10601 fail:
10602 return NULL;
10603}
10604
10605
10606static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj;
10608 wxDC *arg1 = (wxDC *) 0 ;
10609 wxPoint *arg2 = 0 ;
10610 wxColour result;
10611 wxPoint temp2 ;
10612 PyObject * obj0 = 0 ;
10613 PyObject * obj1 = 0 ;
10614 char *kwnames[] = {
10615 (char *) "self",(char *) "pt", NULL
10616 };
10617
10618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10620 {
10621 arg2 = &temp2;
10622 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10623 }
10624 {
10625 PyThreadState* __tstate = wxPyBeginAllowThreads();
10626 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10627
10628 wxPyEndAllowThreads(__tstate);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
10631 {
10632 wxColour * resultptr;
10633 resultptr = new wxColour((wxColour &) result);
10634 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10635 }
10636 return resultobj;
10637 fail:
10638 return NULL;
10639}
10640
10641
10642static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj;
10644 wxDC *arg1 = (wxDC *) 0 ;
10645 int arg2 ;
10646 int arg3 ;
10647 int arg4 ;
10648 int arg5 ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 PyObject * obj2 = 0 ;
10652 PyObject * obj3 = 0 ;
10653 PyObject * obj4 = 0 ;
10654 char *kwnames[] = {
10655 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10656 };
10657
10658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10660 {
10661 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 {
10665 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 {
10669 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 {
10673 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10674 if (PyErr_Occurred()) SWIG_fail;
10675 }
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10679
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 Py_INCREF(Py_None); resultobj = Py_None;
10684 return resultobj;
10685 fail:
10686 return NULL;
10687}
10688
10689
10690static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj;
10692 wxDC *arg1 = (wxDC *) 0 ;
10693 wxPoint *arg2 = 0 ;
10694 wxPoint *arg3 = 0 ;
10695 wxPoint temp2 ;
10696 wxPoint temp3 ;
10697 PyObject * obj0 = 0 ;
10698 PyObject * obj1 = 0 ;
10699 PyObject * obj2 = 0 ;
10700 char *kwnames[] = {
10701 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10702 };
10703
10704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10706 {
10707 arg2 = &temp2;
10708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10709 }
10710 {
10711 arg3 = &temp3;
10712 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10713 }
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10717
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 Py_INCREF(Py_None); resultobj = Py_None;
10722 return resultobj;
10723 fail:
10724 return NULL;
10725}
10726
10727
10728static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj;
10730 wxDC *arg1 = (wxDC *) 0 ;
10731 int arg2 ;
10732 int arg3 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 PyObject * obj2 = 0 ;
10736 char *kwnames[] = {
10737 (char *) "self",(char *) "x",(char *) "y", NULL
10738 };
10739
10740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10742 {
10743 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 {
10747 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 (arg1)->CrossHair(arg2,arg3);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 Py_INCREF(Py_None); resultobj = Py_None;
10758 return resultobj;
10759 fail:
10760 return NULL;
10761}
10762
10763
10764static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj;
10766 wxDC *arg1 = (wxDC *) 0 ;
10767 wxPoint *arg2 = 0 ;
10768 wxPoint temp2 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 char *kwnames[] = {
10772 (char *) "self",(char *) "pt", NULL
10773 };
10774
10775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10777 {
10778 arg2 = &temp2;
10779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10780 }
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 (arg1)->CrossHair((wxPoint const &)*arg2);
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 Py_INCREF(Py_None); resultobj = Py_None;
10789 return resultobj;
10790 fail:
10791 return NULL;
10792}
10793
10794
10795static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10796 PyObject *resultobj;
10797 wxDC *arg1 = (wxDC *) 0 ;
10798 int arg2 ;
10799 int arg3 ;
10800 int arg4 ;
10801 int arg5 ;
10802 int arg6 ;
10803 int arg7 ;
10804 PyObject * obj0 = 0 ;
10805 PyObject * obj1 = 0 ;
10806 PyObject * obj2 = 0 ;
10807 PyObject * obj3 = 0 ;
10808 PyObject * obj4 = 0 ;
10809 PyObject * obj5 = 0 ;
10810 PyObject * obj6 = 0 ;
10811 char *kwnames[] = {
10812 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10813 };
10814
10815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10817 {
10818 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 {
10822 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 {
10826 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
10829 {
10830 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
10833 {
10834 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 {
10838 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10844
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 Py_INCREF(Py_None); resultobj = Py_None;
10849 return resultobj;
10850 fail:
10851 return NULL;
10852}
10853
10854
10855static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 wxDC *arg1 = (wxDC *) 0 ;
10858 wxPoint *arg2 = 0 ;
10859 wxPoint *arg3 = 0 ;
10860 wxPoint *arg4 = 0 ;
10861 wxPoint temp2 ;
10862 wxPoint temp3 ;
10863 wxPoint temp4 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 PyObject * obj3 = 0 ;
10868 char *kwnames[] = {
10869 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10870 };
10871
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10874 {
10875 arg2 = &temp2;
10876 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10877 }
10878 {
10879 arg3 = &temp3;
10880 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10881 }
10882 {
10883 arg4 = &temp4;
10884 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10885 }
10886 {
10887 PyThreadState* __tstate = wxPyBeginAllowThreads();
10888 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10889
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 Py_INCREF(Py_None); resultobj = Py_None;
10894 return resultobj;
10895 fail:
10896 return NULL;
10897}
10898
10899
10900static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10901 PyObject *resultobj;
10902 wxDC *arg1 = (wxDC *) 0 ;
10903 int arg2 ;
10904 int arg3 ;
10905 int arg4 ;
10906 int arg5 ;
10907 PyObject * obj0 = 0 ;
10908 PyObject * obj1 = 0 ;
10909 PyObject * obj2 = 0 ;
10910 PyObject * obj3 = 0 ;
10911 PyObject * obj4 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10918 {
10919 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 {
10923 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 {
10927 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 {
10931 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10937
10938 wxPyEndAllowThreads(__tstate);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 Py_INCREF(Py_None); resultobj = Py_None;
10942 return resultobj;
10943 fail:
10944 return NULL;
10945}
10946
10947
10948static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj;
10950 wxDC *arg1 = (wxDC *) 0 ;
10951 wxRect *arg2 = 0 ;
10952 wxRect temp2 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char *kwnames[] = {
10956 (char *) "self",(char *) "rect", NULL
10957 };
10958
10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10961 {
10962 arg2 = &temp2;
10963 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10964 }
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10968
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 Py_INCREF(Py_None); resultobj = Py_None;
10973 return resultobj;
10974 fail:
10975 return NULL;
10976}
10977
10978
10979static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj;
10981 wxDC *arg1 = (wxDC *) 0 ;
10982 int arg2 ;
10983 int arg3 ;
10984 int arg4 ;
10985 int arg5 ;
10986 double arg6 ;
10987 double arg7 ;
10988 PyObject * obj0 = 0 ;
10989 PyObject * obj1 = 0 ;
10990 PyObject * obj2 = 0 ;
10991 PyObject * obj3 = 0 ;
10992 PyObject * obj4 = 0 ;
10993 PyObject * obj5 = 0 ;
10994 PyObject * obj6 = 0 ;
10995 char *kwnames[] = {
10996 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10997 };
10998
10999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11001 {
11002 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 {
11018 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 {
11022 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 Py_INCREF(Py_None); resultobj = Py_None;
11033 return resultobj;
11034 fail:
11035 return NULL;
11036}
11037
11038
11039static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj;
11041 wxDC *arg1 = (wxDC *) 0 ;
11042 wxPoint *arg2 = 0 ;
11043 wxSize *arg3 = 0 ;
11044 double arg4 ;
11045 double arg5 ;
11046 wxPoint temp2 ;
11047 wxSize temp3 ;
11048 PyObject * obj0 = 0 ;
11049 PyObject * obj1 = 0 ;
11050 PyObject * obj2 = 0 ;
11051 PyObject * obj3 = 0 ;
11052 PyObject * obj4 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11059 {
11060 arg2 = &temp2;
11061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11062 }
11063 {
11064 arg3 = &temp3;
11065 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11066 }
11067 {
11068 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 {
11072 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11078
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 Py_INCREF(Py_None); resultobj = Py_None;
11083 return resultobj;
11084 fail:
11085 return NULL;
11086}
11087
11088
11089static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11090 PyObject *resultobj;
11091 wxDC *arg1 = (wxDC *) 0 ;
11092 int arg2 ;
11093 int arg3 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 PyObject * obj2 = 0 ;
11097 char *kwnames[] = {
11098 (char *) "self",(char *) "x",(char *) "y", NULL
11099 };
11100
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11103 {
11104 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 (arg1)->DrawPoint(arg2,arg3);
11114
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 Py_INCREF(Py_None); resultobj = Py_None;
11119 return resultobj;
11120 fail:
11121 return NULL;
11122}
11123
11124
11125static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj;
11127 wxDC *arg1 = (wxDC *) 0 ;
11128 wxPoint *arg2 = 0 ;
11129 wxPoint temp2 ;
11130 PyObject * obj0 = 0 ;
11131 PyObject * obj1 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self",(char *) "pt", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11138 {
11139 arg2 = &temp2;
11140 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11141 }
11142 {
11143 PyThreadState* __tstate = wxPyBeginAllowThreads();
11144 (arg1)->DrawPoint((wxPoint const &)*arg2);
11145
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 Py_INCREF(Py_None); resultobj = Py_None;
11150 return resultobj;
11151 fail:
11152 return NULL;
11153}
11154
11155
11156static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11157 PyObject *resultobj;
11158 wxDC *arg1 = (wxDC *) 0 ;
11159 int arg2 ;
11160 int arg3 ;
11161 int arg4 ;
11162 int arg5 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 PyObject * obj2 = 0 ;
11166 PyObject * obj3 = 0 ;
11167 PyObject * obj4 = 0 ;
11168 char *kwnames[] = {
11169 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11170 };
11171
11172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11174 {
11175 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 {
11179 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11180 if (PyErr_Occurred()) SWIG_fail;
11181 }
11182 {
11183 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11193
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 Py_INCREF(Py_None); resultobj = Py_None;
11198 return resultobj;
11199 fail:
11200 return NULL;
11201}
11202
11203
11204static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11205 PyObject *resultobj;
11206 wxDC *arg1 = (wxDC *) 0 ;
11207 wxPoint *arg2 = 0 ;
11208 wxSize *arg3 = 0 ;
11209 wxPoint temp2 ;
11210 wxSize temp3 ;
11211 PyObject * obj0 = 0 ;
11212 PyObject * obj1 = 0 ;
11213 PyObject * obj2 = 0 ;
11214 char *kwnames[] = {
11215 (char *) "self",(char *) "pt",(char *) "sz", NULL
11216 };
11217
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11220 {
11221 arg2 = &temp2;
11222 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11223 }
11224 {
11225 arg3 = &temp3;
11226 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11227 }
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11231
11232 wxPyEndAllowThreads(__tstate);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 }
11235 Py_INCREF(Py_None); resultobj = Py_None;
11236 return resultobj;
11237 fail:
11238 return NULL;
11239}
11240
11241
11242static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11243 PyObject *resultobj;
11244 wxDC *arg1 = (wxDC *) 0 ;
11245 wxRect *arg2 = 0 ;
11246 wxRect temp2 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 char *kwnames[] = {
11250 (char *) "self",(char *) "rect", NULL
11251 };
11252
11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11255 {
11256 arg2 = &temp2;
11257 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 (arg1)->DrawRectangle((wxRect const &)*arg2);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 Py_INCREF(Py_None); resultobj = Py_None;
11267 return resultobj;
11268 fail:
11269 return NULL;
11270}
11271
11272
11273static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxDC *arg1 = (wxDC *) 0 ;
11276 int arg2 ;
11277 int arg3 ;
11278 int arg4 ;
11279 int arg5 ;
11280 double arg6 ;
11281 PyObject * obj0 = 0 ;
11282 PyObject * obj1 = 0 ;
11283 PyObject * obj2 = 0 ;
11284 PyObject * obj3 = 0 ;
11285 PyObject * obj4 = 0 ;
11286 PyObject * obj5 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11289 };
11290
11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11293 {
11294 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 {
11298 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 {
11302 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 }
11305 {
11306 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 }
11309 {
11310 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11316
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 Py_INCREF(Py_None); resultobj = Py_None;
11321 return resultobj;
11322 fail:
11323 return NULL;
11324}
11325
11326
11327static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11328 PyObject *resultobj;
11329 wxDC *arg1 = (wxDC *) 0 ;
11330 wxPoint *arg2 = 0 ;
11331 wxSize *arg3 = 0 ;
11332 double arg4 ;
11333 wxPoint temp2 ;
11334 wxSize temp3 ;
11335 PyObject * obj0 = 0 ;
11336 PyObject * obj1 = 0 ;
11337 PyObject * obj2 = 0 ;
11338 PyObject * obj3 = 0 ;
11339 char *kwnames[] = {
11340 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11341 };
11342
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11345 {
11346 arg2 = &temp2;
11347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11348 }
11349 {
11350 arg3 = &temp3;
11351 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11352 }
11353 {
11354 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 Py_INCREF(Py_None); resultobj = Py_None;
11365 return resultobj;
11366 fail:
11367 return NULL;
11368}
11369
11370
11371static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11372 PyObject *resultobj;
11373 wxDC *arg1 = (wxDC *) 0 ;
11374 wxRect *arg2 = 0 ;
11375 double arg3 ;
11376 wxRect temp2 ;
11377 PyObject * obj0 = 0 ;
11378 PyObject * obj1 = 0 ;
11379 PyObject * obj2 = 0 ;
11380 char *kwnames[] = {
11381 (char *) "self",(char *) "r",(char *) "radius", NULL
11382 };
11383
11384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11386 {
11387 arg2 = &temp2;
11388 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11389 }
11390 {
11391 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
11392 if (PyErr_Occurred()) SWIG_fail;
11393 }
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 Py_INCREF(Py_None); resultobj = Py_None;
11402 return resultobj;
11403 fail:
11404 return NULL;
11405}
11406
11407
11408static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj;
11410 wxDC *arg1 = (wxDC *) 0 ;
11411 int arg2 ;
11412 int arg3 ;
11413 int arg4 ;
11414 PyObject * obj0 = 0 ;
11415 PyObject * obj1 = 0 ;
11416 PyObject * obj2 = 0 ;
11417 PyObject * obj3 = 0 ;
11418 char *kwnames[] = {
11419 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11420 };
11421
11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11424 {
11425 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 {
11429 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 {
11433 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->DrawCircle(arg2,arg3,arg4);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447}
11448
11449
11450static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxDC *arg1 = (wxDC *) 0 ;
11453 wxPoint *arg2 = 0 ;
11454 int arg3 ;
11455 wxPoint temp2 ;
11456 PyObject * obj0 = 0 ;
11457 PyObject * obj1 = 0 ;
11458 PyObject * obj2 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self",(char *) "pt",(char *) "radius", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11465 {
11466 arg2 = &temp2;
11467 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11468 }
11469 {
11470 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11476
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 Py_INCREF(Py_None); resultobj = Py_None;
11481 return resultobj;
11482 fail:
11483 return NULL;
11484}
11485
11486
11487static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11488 PyObject *resultobj;
11489 wxDC *arg1 = (wxDC *) 0 ;
11490 int arg2 ;
11491 int arg3 ;
11492 int arg4 ;
11493 int arg5 ;
11494 PyObject * obj0 = 0 ;
11495 PyObject * obj1 = 0 ;
11496 PyObject * obj2 = 0 ;
11497 PyObject * obj3 = 0 ;
11498 PyObject * obj4 = 0 ;
11499 char *kwnames[] = {
11500 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11501 };
11502
11503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11505 {
11506 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 {
11510 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 {
11514 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 {
11518 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11524
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 Py_INCREF(Py_None); resultobj = Py_None;
11529 return resultobj;
11530 fail:
11531 return NULL;
11532}
11533
11534
11535static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11536 PyObject *resultobj;
11537 wxDC *arg1 = (wxDC *) 0 ;
11538 wxPoint *arg2 = 0 ;
11539 wxSize *arg3 = 0 ;
11540 wxPoint temp2 ;
11541 wxSize temp3 ;
11542 PyObject * obj0 = 0 ;
11543 PyObject * obj1 = 0 ;
11544 PyObject * obj2 = 0 ;
11545 char *kwnames[] = {
11546 (char *) "self",(char *) "pt",(char *) "sz", NULL
11547 };
11548
11549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11551 {
11552 arg2 = &temp2;
11553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11554 }
11555 {
11556 arg3 = &temp3;
11557 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11558 }
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11562
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 Py_INCREF(Py_None); resultobj = Py_None;
11567 return resultobj;
11568 fail:
11569 return NULL;
11570}
11571
11572
11573static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj;
11575 wxDC *arg1 = (wxDC *) 0 ;
11576 wxRect *arg2 = 0 ;
11577 wxRect temp2 ;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 char *kwnames[] = {
11581 (char *) "self",(char *) "rect", NULL
11582 };
11583
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11586 {
11587 arg2 = &temp2;
11588 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 (arg1)->DrawEllipse((wxRect const &)*arg2);
11593
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) SWIG_fail;
11596 }
11597 Py_INCREF(Py_None); resultobj = Py_None;
11598 return resultobj;
11599 fail:
11600 return NULL;
11601}
11602
11603
11604static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11605 PyObject *resultobj;
11606 wxDC *arg1 = (wxDC *) 0 ;
11607 wxIcon *arg2 = 0 ;
11608 int arg3 ;
11609 int arg4 ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 PyObject * obj3 = 0 ;
11614 char *kwnames[] = {
11615 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11616 };
11617
11618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11620 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11621 if (arg2 == NULL) {
11622 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11623 }
11624 {
11625 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 {
11629 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11635
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 Py_INCREF(Py_None); resultobj = Py_None;
11640 return resultobj;
11641 fail:
11642 return NULL;
11643}
11644
11645
11646static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11647 PyObject *resultobj;
11648 wxDC *arg1 = (wxDC *) 0 ;
11649 wxIcon *arg2 = 0 ;
11650 wxPoint *arg3 = 0 ;
11651 wxPoint temp3 ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "self",(char *) "icon",(char *) "pt", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11662 if (arg2 == NULL) {
11663 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11664 }
11665 {
11666 arg3 = &temp3;
11667 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11668 }
11669 {
11670 PyThreadState* __tstate = wxPyBeginAllowThreads();
11671 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11672
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 Py_INCREF(Py_None); resultobj = Py_None;
11677 return resultobj;
11678 fail:
11679 return NULL;
11680}
11681
11682
11683static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11684 PyObject *resultobj;
11685 wxDC *arg1 = (wxDC *) 0 ;
11686 wxBitmap *arg2 = 0 ;
11687 int arg3 ;
11688 int arg4 ;
11689 bool arg5 = (bool) False ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 PyObject * obj2 = 0 ;
11693 PyObject * obj3 = 0 ;
11694 PyObject * obj4 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11702 if (arg2 == NULL) {
11703 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11704 }
11705 {
11706 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 {
11710 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 if (obj4) {
11714 {
11715 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 }
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11722
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 Py_INCREF(Py_None); resultobj = Py_None;
11727 return resultobj;
11728 fail:
11729 return NULL;
11730}
11731
11732
11733static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11734 PyObject *resultobj;
11735 wxDC *arg1 = (wxDC *) 0 ;
11736 wxBitmap *arg2 = 0 ;
11737 wxPoint *arg3 = 0 ;
11738 bool arg4 = (bool) False ;
11739 wxPoint temp3 ;
11740 PyObject * obj0 = 0 ;
11741 PyObject * obj1 = 0 ;
11742 PyObject * obj2 = 0 ;
11743 PyObject * obj3 = 0 ;
11744 char *kwnames[] = {
11745 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11746 };
11747
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11750 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11751 if (arg2 == NULL) {
11752 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11753 }
11754 {
11755 arg3 = &temp3;
11756 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11757 }
11758 if (obj3) {
11759 {
11760 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 }
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11767
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 Py_INCREF(Py_None); resultobj = Py_None;
11772 return resultobj;
11773 fail:
11774 return NULL;
11775}
11776
11777
11778static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11779 PyObject *resultobj;
11780 wxDC *arg1 = (wxDC *) 0 ;
11781 wxString *arg2 = 0 ;
11782 int arg3 ;
11783 int arg4 ;
11784 bool temp2 = False ;
11785 PyObject * obj0 = 0 ;
11786 PyObject * obj1 = 0 ;
11787 PyObject * obj2 = 0 ;
11788 PyObject * obj3 = 0 ;
11789 char *kwnames[] = {
11790 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11791 };
11792
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11795 {
11796 arg2 = wxString_in_helper(obj1);
11797 if (arg2 == NULL) SWIG_fail;
11798 temp2 = True;
11799 }
11800 {
11801 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 {
11805 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11811
11812 wxPyEndAllowThreads(__tstate);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 }
11815 Py_INCREF(Py_None); resultobj = Py_None;
11816 {
11817 if (temp2)
11818 delete arg2;
11819 }
11820 return resultobj;
11821 fail:
11822 {
11823 if (temp2)
11824 delete arg2;
11825 }
11826 return NULL;
11827}
11828
11829
11830static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxDC *arg1 = (wxDC *) 0 ;
11833 wxString *arg2 = 0 ;
11834 wxPoint *arg3 = 0 ;
11835 bool temp2 = False ;
11836 wxPoint temp3 ;
11837 PyObject * obj0 = 0 ;
11838 PyObject * obj1 = 0 ;
11839 PyObject * obj2 = 0 ;
11840 char *kwnames[] = {
11841 (char *) "self",(char *) "text",(char *) "pt", NULL
11842 };
11843
11844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11846 {
11847 arg2 = wxString_in_helper(obj1);
11848 if (arg2 == NULL) SWIG_fail;
11849 temp2 = True;
11850 }
11851 {
11852 arg3 = &temp3;
11853 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11854 }
11855 {
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11858
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 Py_INCREF(Py_None); resultobj = Py_None;
11863 {
11864 if (temp2)
11865 delete arg2;
11866 }
11867 return resultobj;
11868 fail:
11869 {
11870 if (temp2)
11871 delete arg2;
11872 }
11873 return NULL;
11874}
11875
11876
11877static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11878 PyObject *resultobj;
11879 wxDC *arg1 = (wxDC *) 0 ;
11880 wxString *arg2 = 0 ;
11881 int arg3 ;
11882 int arg4 ;
11883 double arg5 ;
11884 bool temp2 = False ;
11885 PyObject * obj0 = 0 ;
11886 PyObject * obj1 = 0 ;
11887 PyObject * obj2 = 0 ;
11888 PyObject * obj3 = 0 ;
11889 PyObject * obj4 = 0 ;
11890 char *kwnames[] = {
11891 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11892 };
11893
11894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11896 {
11897 arg2 = wxString_in_helper(obj1);
11898 if (arg2 == NULL) SWIG_fail;
11899 temp2 = True;
11900 }
11901 {
11902 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11916
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 Py_INCREF(Py_None); resultobj = Py_None;
11921 {
11922 if (temp2)
11923 delete arg2;
11924 }
11925 return resultobj;
11926 fail:
11927 {
11928 if (temp2)
11929 delete arg2;
11930 }
11931 return NULL;
11932}
11933
11934
11935static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj;
11937 wxDC *arg1 = (wxDC *) 0 ;
11938 wxString *arg2 = 0 ;
11939 wxPoint *arg3 = 0 ;
11940 double arg4 ;
11941 bool temp2 = False ;
11942 wxPoint temp3 ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 PyObject * obj2 = 0 ;
11946 PyObject * obj3 = 0 ;
11947 char *kwnames[] = {
11948 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11949 };
11950
11951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11953 {
11954 arg2 = wxString_in_helper(obj1);
11955 if (arg2 == NULL) SWIG_fail;
11956 temp2 = True;
11957 }
11958 {
11959 arg3 = &temp3;
11960 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11961 }
11962 {
11963 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11969
11970 wxPyEndAllowThreads(__tstate);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 Py_INCREF(Py_None); resultobj = Py_None;
11974 {
11975 if (temp2)
11976 delete arg2;
11977 }
11978 return resultobj;
11979 fail:
11980 {
11981 if (temp2)
11982 delete arg2;
11983 }
11984 return NULL;
11985}
11986
11987
11988static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj;
11990 wxDC *arg1 = (wxDC *) 0 ;
11991 int arg2 ;
11992 int arg3 ;
11993 int arg4 ;
11994 int arg5 ;
11995 wxDC *arg6 = (wxDC *) 0 ;
11996 int arg7 ;
11997 int arg8 ;
11998 int arg9 = (int) wxCOPY ;
11999 bool arg10 = (bool) False ;
12000 int arg11 = (int) -1 ;
12001 int arg12 = (int) -1 ;
12002 bool result;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 PyObject * obj2 = 0 ;
12006 PyObject * obj3 = 0 ;
12007 PyObject * obj4 = 0 ;
12008 PyObject * obj5 = 0 ;
12009 PyObject * obj6 = 0 ;
12010 PyObject * obj7 = 0 ;
12011 PyObject * obj8 = 0 ;
12012 PyObject * obj9 = 0 ;
12013 PyObject * obj10 = 0 ;
12014 PyObject * obj11 = 0 ;
12015 char *kwnames[] = {
12016 (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
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12021 {
12022 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 {
12030 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 {
12034 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12038 {
12039 arg7 = (int) SWIG_PyObj_AsInt(obj6);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 {
12043 arg8 = (int) SWIG_PyObj_AsInt(obj7);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 if (obj8) {
12047 {
12048 arg9 = (int) SWIG_PyObj_AsInt(obj8);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 }
12052 if (obj9) {
12053 {
12054 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 }
12058 if (obj10) {
12059 {
12060 arg11 = (int) SWIG_PyObj_AsInt(obj10);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 }
12064 if (obj11) {
12065 {
12066 arg12 = (int) SWIG_PyObj_AsInt(obj11);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 }
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12073
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12078 return resultobj;
12079 fail:
12080 return NULL;
12081}
12082
12083
12084static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12085 PyObject *resultobj;
12086 wxDC *arg1 = (wxDC *) 0 ;
12087 wxPoint *arg2 = 0 ;
12088 wxSize *arg3 = 0 ;
12089 wxDC *arg4 = (wxDC *) 0 ;
12090 wxPoint *arg5 = 0 ;
12091 int arg6 = (int) wxCOPY ;
12092 bool arg7 = (bool) False ;
12093 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12094 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12095 bool result;
12096 wxPoint temp2 ;
12097 wxSize temp3 ;
12098 wxPoint temp5 ;
12099 wxPoint temp8 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 PyObject * obj2 = 0 ;
12103 PyObject * obj3 = 0 ;
12104 PyObject * obj4 = 0 ;
12105 PyObject * obj5 = 0 ;
12106 PyObject * obj6 = 0 ;
12107 PyObject * obj7 = 0 ;
12108 char *kwnames[] = {
12109 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12110 };
12111
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12114 {
12115 arg2 = &temp2;
12116 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12117 }
12118 {
12119 arg3 = &temp3;
12120 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12121 }
12122 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12123 {
12124 arg5 = &temp5;
12125 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12126 }
12127 if (obj5) {
12128 {
12129 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 }
12133 if (obj6) {
12134 {
12135 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 }
12139 if (obj7) {
12140 {
12141 arg8 = &temp8;
12142 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12143 }
12144 }
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12148
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12153 return resultobj;
12154 fail:
12155 return NULL;
12156}
12157
12158
12159static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12160 PyObject *resultobj;
12161 wxDC *arg1 = (wxDC *) 0 ;
12162 int arg2 ;
12163 wxPoint *arg3 = (wxPoint *) 0 ;
12164 int arg4 = (int) 0 ;
12165 int arg5 = (int) 0 ;
12166 PyObject * obj0 = 0 ;
12167 PyObject * obj1 = 0 ;
12168 PyObject * obj2 = 0 ;
12169 PyObject * obj3 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,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 {
12182 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 }
12186 if (obj3) {
12187 {
12188 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
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_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12213 PyObject *resultobj;
12214 wxDC *arg1 = (wxDC *) 0 ;
12215 int arg2 ;
12216 wxPoint *arg3 = (wxPoint *) 0 ;
12217 int arg4 = (int) 0 ;
12218 int arg5 = (int) 0 ;
12219 int arg6 = (int) wxODDEVEN_RULE ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 PyObject * obj2 = 0 ;
12223 PyObject * obj3 = 0 ;
12224 PyObject * obj4 = 0 ;
12225 char *kwnames[] = {
12226 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12227 };
12228
12229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12231 {
12232 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12233 if (arg3 == NULL) SWIG_fail;
12234 }
12235 if (obj2) {
12236 {
12237 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 }
12240 }
12241 if (obj3) {
12242 {
12243 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 }
12247 if (obj4) {
12248 {
12249 arg6 = (int) SWIG_PyObj_AsInt(obj4);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 }
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12256
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 Py_INCREF(Py_None); resultobj = Py_None;
12261 {
12262 if (arg3) delete [] arg3;
12263 }
12264 return resultobj;
12265 fail:
12266 {
12267 if (arg3) delete [] arg3;
12268 }
12269 return NULL;
12270}
12271
12272
12273static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj;
12275 wxDC *arg1 = (wxDC *) 0 ;
12276 wxString *arg2 = 0 ;
12277 wxRect *arg3 = 0 ;
12278 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12279 int arg5 = (int) -1 ;
12280 bool temp2 = False ;
12281 wxRect temp3 ;
12282 PyObject * obj0 = 0 ;
12283 PyObject * obj1 = 0 ;
12284 PyObject * obj2 = 0 ;
12285 PyObject * obj3 = 0 ;
12286 PyObject * obj4 = 0 ;
12287 char *kwnames[] = {
12288 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12289 };
12290
12291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12293 {
12294 arg2 = wxString_in_helper(obj1);
12295 if (arg2 == NULL) SWIG_fail;
12296 temp2 = True;
12297 }
12298 {
12299 arg3 = &temp3;
12300 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12301 }
12302 if (obj3) {
12303 {
12304 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 }
12308 if (obj4) {
12309 {
12310 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 }
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12317
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 Py_INCREF(Py_None); resultobj = Py_None;
12322 {
12323 if (temp2)
12324 delete arg2;
12325 }
12326 return resultobj;
12327 fail:
12328 {
12329 if (temp2)
12330 delete arg2;
12331 }
12332 return NULL;
12333}
12334
12335
12336static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12337 PyObject *resultobj;
12338 wxDC *arg1 = (wxDC *) 0 ;
12339 wxString *arg2 = 0 ;
12340 wxBitmap *arg3 = 0 ;
12341 wxRect *arg4 = 0 ;
12342 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12343 int arg6 = (int) -1 ;
12344 wxRect result;
12345 bool temp2 = False ;
12346 wxRect temp4 ;
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 PyObject * obj2 = 0 ;
12350 PyObject * obj3 = 0 ;
12351 PyObject * obj4 = 0 ;
12352 PyObject * obj5 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12359 {
12360 arg2 = wxString_in_helper(obj1);
12361 if (arg2 == NULL) SWIG_fail;
12362 temp2 = True;
12363 }
12364 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12365 if (arg3 == NULL) {
12366 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12367 }
12368 {
12369 arg4 = &temp4;
12370 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12371 }
12372 if (obj4) {
12373 {
12374 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 }
12378 if (obj5) {
12379 {
12380 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 }
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12387
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 {
12392 wxRect * resultptr;
12393 resultptr = new wxRect((wxRect &) result);
12394 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12395 }
12396 {
12397 if (temp2)
12398 delete arg2;
12399 }
12400 return resultobj;
12401 fail:
12402 {
12403 if (temp2)
12404 delete arg2;
12405 }
12406 return NULL;
12407}
12408
12409
12410static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj;
12412 wxDC *arg1 = (wxDC *) 0 ;
12413 int arg2 ;
12414 wxPoint *arg3 = (wxPoint *) 0 ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 char *kwnames[] = {
12418 (char *) "self",(char *) "points", NULL
12419 };
12420
12421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12423 {
12424 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12425 if (arg3 == NULL) SWIG_fail;
12426 }
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->DrawSpline(arg2,arg3);
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 Py_INCREF(Py_None); resultobj = Py_None;
12435 {
12436 if (arg3) delete [] arg3;
12437 }
12438 return resultobj;
12439 fail:
12440 {
12441 if (arg3) delete [] arg3;
12442 }
12443 return NULL;
12444}
12445
12446
12447static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxDC *arg1 = (wxDC *) 0 ;
12450 PyObject * obj0 = 0 ;
12451 char *kwnames[] = {
12452 (char *) "self", NULL
12453 };
12454
12455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 (arg1)->Clear();
12460
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 Py_INCREF(Py_None); resultobj = Py_None;
12465 return resultobj;
12466 fail:
12467 return NULL;
12468}
12469
12470
12471static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj;
12473 wxDC *arg1 = (wxDC *) 0 ;
12474 wxString *arg2 = 0 ;
12475 bool result;
12476 bool temp2 = False ;
12477 PyObject * obj0 = 0 ;
12478 PyObject * obj1 = 0 ;
12479 char *kwnames[] = {
12480 (char *) "self",(char *) "message", NULL
12481 };
12482
12483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12485 {
12486 arg2 = wxString_in_helper(obj1);
12487 if (arg2 == NULL) SWIG_fail;
12488 temp2 = True;
12489 }
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12498 {
12499 if (temp2)
12500 delete arg2;
12501 }
12502 return resultobj;
12503 fail:
12504 {
12505 if (temp2)
12506 delete arg2;
12507 }
12508 return NULL;
12509}
12510
12511
12512static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12513 PyObject *resultobj;
12514 wxDC *arg1 = (wxDC *) 0 ;
12515 PyObject * obj0 = 0 ;
12516 char *kwnames[] = {
12517 (char *) "self", NULL
12518 };
12519
12520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12522 {
12523 PyThreadState* __tstate = wxPyBeginAllowThreads();
12524 (arg1)->EndDoc();
12525
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 Py_INCREF(Py_None); resultobj = Py_None;
12530 return resultobj;
12531 fail:
12532 return NULL;
12533}
12534
12535
12536static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12537 PyObject *resultobj;
12538 wxDC *arg1 = (wxDC *) 0 ;
12539 PyObject * obj0 = 0 ;
12540 char *kwnames[] = {
12541 (char *) "self", NULL
12542 };
12543
12544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->StartPage();
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557}
12558
12559
12560static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxDC *arg1 = (wxDC *) 0 ;
12563 PyObject * obj0 = 0 ;
12564 char *kwnames[] = {
12565 (char *) "self", NULL
12566 };
12567
12568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 (arg1)->EndPage();
12573
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 Py_INCREF(Py_None); resultobj = Py_None;
12578 return resultobj;
12579 fail:
12580 return NULL;
12581}
12582
12583
12584static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12585 PyObject *resultobj;
12586 wxDC *arg1 = (wxDC *) 0 ;
12587 wxFont *arg2 = 0 ;
12588 PyObject * obj0 = 0 ;
12589 PyObject * obj1 = 0 ;
12590 char *kwnames[] = {
12591 (char *) "self",(char *) "font", NULL
12592 };
12593
12594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12596 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12597 if (arg2 == NULL) {
12598 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12599 }
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 (arg1)->SetFont((wxFont const &)*arg2);
12603
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 Py_INCREF(Py_None); resultobj = Py_None;
12608 return resultobj;
12609 fail:
12610 return NULL;
12611}
12612
12613
12614static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj;
12616 wxDC *arg1 = (wxDC *) 0 ;
12617 wxPen *arg2 = 0 ;
12618 PyObject * obj0 = 0 ;
12619 PyObject * obj1 = 0 ;
12620 char *kwnames[] = {
12621 (char *) "self",(char *) "pen", NULL
12622 };
12623
12624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12626 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12627 if (arg2 == NULL) {
12628 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12629 }
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 (arg1)->SetPen((wxPen const &)*arg2);
12633
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 Py_INCREF(Py_None); resultobj = Py_None;
12638 return resultobj;
12639 fail:
12640 return NULL;
12641}
12642
12643
12644static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj;
12646 wxDC *arg1 = (wxDC *) 0 ;
12647 wxBrush *arg2 = 0 ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 char *kwnames[] = {
12651 (char *) "self",(char *) "brush", NULL
12652 };
12653
12654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12656 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12657 if (arg2 == NULL) {
12658 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12659 }
12660 {
12661 PyThreadState* __tstate = wxPyBeginAllowThreads();
12662 (arg1)->SetBrush((wxBrush const &)*arg2);
12663
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 Py_INCREF(Py_None); resultobj = Py_None;
12668 return resultobj;
12669 fail:
12670 return NULL;
12671}
12672
12673
12674static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12675 PyObject *resultobj;
12676 wxDC *arg1 = (wxDC *) 0 ;
12677 wxBrush *arg2 = 0 ;
12678 PyObject * obj0 = 0 ;
12679 PyObject * obj1 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "self",(char *) "brush", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12687 if (arg2 == NULL) {
12688 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12689 }
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 (arg1)->SetBackground((wxBrush const &)*arg2);
12693
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 Py_INCREF(Py_None); resultobj = Py_None;
12698 return resultobj;
12699 fail:
12700 return NULL;
12701}
12702
12703
12704static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12705 PyObject *resultobj;
12706 wxDC *arg1 = (wxDC *) 0 ;
12707 int arg2 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char *kwnames[] = {
12711 (char *) "self",(char *) "mode", NULL
12712 };
12713
12714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12716 {
12717 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetBackgroundMode(arg2);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 return resultobj;
12729 fail:
12730 return NULL;
12731}
12732
12733
12734static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 wxDC *arg1 = (wxDC *) 0 ;
12737 wxPalette *arg2 = 0 ;
12738 PyObject * obj0 = 0 ;
12739 PyObject * obj1 = 0 ;
12740 char *kwnames[] = {
12741 (char *) "self",(char *) "palette", NULL
12742 };
12743
12744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12747 if (arg2 == NULL) {
12748 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12749 }
12750 {
12751 PyThreadState* __tstate = wxPyBeginAllowThreads();
12752 (arg1)->SetPalette((wxPalette const &)*arg2);
12753
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 Py_INCREF(Py_None); resultobj = Py_None;
12758 return resultobj;
12759 fail:
12760 return NULL;
12761}
12762
12763
12764static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj;
12766 wxDC *arg1 = (wxDC *) 0 ;
12767 int arg2 ;
12768 int arg3 ;
12769 int arg4 ;
12770 int arg5 ;
12771 PyObject * obj0 = 0 ;
12772 PyObject * obj1 = 0 ;
12773 PyObject * obj2 = 0 ;
12774 PyObject * obj3 = 0 ;
12775 PyObject * obj4 = 0 ;
12776 char *kwnames[] = {
12777 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12778 };
12779
12780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12782 {
12783 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12784 if (PyErr_Occurred()) SWIG_fail;
12785 }
12786 {
12787 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 {
12791 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 Py_INCREF(Py_None); resultobj = Py_None;
12806 return resultobj;
12807 fail:
12808 return NULL;
12809}
12810
12811
12812static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxDC *arg1 = (wxDC *) 0 ;
12815 wxPoint *arg2 = 0 ;
12816 wxSize *arg3 = 0 ;
12817 wxPoint temp2 ;
12818 wxSize temp3 ;
12819 PyObject * obj0 = 0 ;
12820 PyObject * obj1 = 0 ;
12821 PyObject * obj2 = 0 ;
12822 char *kwnames[] = {
12823 (char *) "self",(char *) "pt",(char *) "sz", NULL
12824 };
12825
12826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12828 {
12829 arg2 = &temp2;
12830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12831 }
12832 {
12833 arg3 = &temp3;
12834 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12835 }
12836 {
12837 PyThreadState* __tstate = wxPyBeginAllowThreads();
12838 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12839
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 Py_INCREF(Py_None); resultobj = Py_None;
12844 return resultobj;
12845 fail:
12846 return NULL;
12847}
12848
12849
12850static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12851 PyObject *resultobj;
12852 wxDC *arg1 = (wxDC *) 0 ;
12853 wxRect *arg2 = 0 ;
12854 wxRect temp2 ;
12855 PyObject * obj0 = 0 ;
12856 PyObject * obj1 = 0 ;
12857 char *kwnames[] = {
12858 (char *) "self",(char *) "rect", NULL
12859 };
12860
12861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12863 {
12864 arg2 = &temp2;
12865 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12866 }
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 Py_INCREF(Py_None); resultobj = Py_None;
12875 return resultobj;
12876 fail:
12877 return NULL;
12878}
12879
12880
12881static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12882 PyObject *resultobj;
12883 wxDC *arg1 = (wxDC *) 0 ;
12884 wxRegion *arg2 = 0 ;
12885 PyObject * obj0 = 0 ;
12886 PyObject * obj1 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self",(char *) "region", NULL
12889 };
12890
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12893 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12894 if (arg2 == NULL) {
12895 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12896 }
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12900
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 Py_INCREF(Py_None); resultobj = Py_None;
12905 return resultobj;
12906 fail:
12907 return NULL;
12908}
12909
12910
12911static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj;
12913 wxDC *arg1 = (wxDC *) 0 ;
12914 PyObject * obj0 = 0 ;
12915 char *kwnames[] = {
12916 (char *) "self", NULL
12917 };
12918
12919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 (arg1)->DestroyClippingRegion();
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 Py_INCREF(Py_None); resultobj = Py_None;
12929 return resultobj;
12930 fail:
12931 return NULL;
12932}
12933
12934
12935static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxDC *arg1 = (wxDC *) 0 ;
12938 int *arg2 = (int *) 0 ;
12939 int *arg3 = (int *) 0 ;
12940 int *arg4 = (int *) 0 ;
12941 int *arg5 = (int *) 0 ;
12942 int temp2 ;
12943 int temp3 ;
12944 int temp4 ;
12945 int temp5 ;
12946 PyObject * obj0 = 0 ;
12947 char *kwnames[] = {
12948 (char *) "self", NULL
12949 };
12950
12951 arg2 = &temp2;
12952 arg3 = &temp3;
12953 arg4 = &temp4;
12954 arg5 = &temp5;
12955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12957 {
12958 PyThreadState* __tstate = wxPyBeginAllowThreads();
12959 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12960
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 Py_INCREF(Py_None); resultobj = Py_None;
12965 {
12966 PyObject *o = PyInt_FromLong((long) (*arg2));
12967 resultobj = t_output_helper(resultobj,o);
12968 }
12969 {
12970 PyObject *o = PyInt_FromLong((long) (*arg3));
12971 resultobj = t_output_helper(resultobj,o);
12972 }
12973 {
12974 PyObject *o = PyInt_FromLong((long) (*arg4));
12975 resultobj = t_output_helper(resultobj,o);
12976 }
12977 {
12978 PyObject *o = PyInt_FromLong((long) (*arg5));
12979 resultobj = t_output_helper(resultobj,o);
12980 }
12981 return resultobj;
12982 fail:
12983 return NULL;
12984}
12985
12986
12987static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxDC *arg1 = (wxDC *) 0 ;
12990 wxRect result;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "self", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 result = wxDC_GetClippingRect(arg1);
13001
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 {
13006 wxRect * resultptr;
13007 resultptr = new wxRect((wxRect &) result);
13008 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
13009 }
13010 return resultobj;
13011 fail:
13012 return NULL;
13013}
13014
13015
13016static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxDC *arg1 = (wxDC *) 0 ;
13019 int result;
13020 PyObject * obj0 = 0 ;
13021 char *kwnames[] = {
13022 (char *) "self", NULL
13023 };
13024
13025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (int)((wxDC const *)arg1)->GetCharHeight();
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_PyObj_FromInt((int)result);
13035 return resultobj;
13036 fail:
13037 return NULL;
13038}
13039
13040
13041static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj;
13043 wxDC *arg1 = (wxDC *) 0 ;
13044 int result;
13045 PyObject * obj0 = 0 ;
13046 char *kwnames[] = {
13047 (char *) "self", NULL
13048 };
13049
13050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 result = (int)((wxDC const *)arg1)->GetCharWidth();
13055
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 resultobj = SWIG_PyObj_FromInt((int)result);
13060 return resultobj;
13061 fail:
13062 return NULL;
13063}
13064
13065
13066static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj;
13068 wxDC *arg1 = (wxDC *) 0 ;
13069 wxString *arg2 = 0 ;
13070 int *arg3 = (int *) 0 ;
13071 int *arg4 = (int *) 0 ;
13072 bool temp2 = False ;
13073 int temp3 ;
13074 int temp4 ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 char *kwnames[] = {
13078 (char *) "self",(char *) "string", NULL
13079 };
13080
13081 arg3 = &temp3;
13082 arg4 = &temp4;
13083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13085 {
13086 arg2 = wxString_in_helper(obj1);
13087 if (arg2 == NULL) SWIG_fail;
13088 temp2 = True;
13089 }
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 Py_INCREF(Py_None); resultobj = Py_None;
13098 {
13099 PyObject *o = PyInt_FromLong((long) (*arg3));
13100 resultobj = t_output_helper(resultobj,o);
13101 }
13102 {
13103 PyObject *o = PyInt_FromLong((long) (*arg4));
13104 resultobj = t_output_helper(resultobj,o);
13105 }
13106 {
13107 if (temp2)
13108 delete arg2;
13109 }
13110 return resultobj;
13111 fail:
13112 {
13113 if (temp2)
13114 delete arg2;
13115 }
13116 return NULL;
13117}
13118
13119
13120static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13121 PyObject *resultobj;
13122 wxDC *arg1 = (wxDC *) 0 ;
13123 wxString *arg2 = 0 ;
13124 int *arg3 = (int *) 0 ;
13125 int *arg4 = (int *) 0 ;
13126 int *arg5 = (int *) 0 ;
13127 int *arg6 = (int *) 0 ;
13128 wxFont *arg7 = (wxFont *) NULL ;
13129 bool temp2 = False ;
13130 int temp3 ;
13131 int temp4 ;
13132 int temp5 ;
13133 int temp6 ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 PyObject * obj2 = 0 ;
13137 char *kwnames[] = {
13138 (char *) "self",(char *) "string",(char *) "font", NULL
13139 };
13140
13141 arg3 = &temp3;
13142 arg4 = &temp4;
13143 arg5 = &temp5;
13144 arg6 = &temp6;
13145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13147 {
13148 arg2 = wxString_in_helper(obj1);
13149 if (arg2 == NULL) SWIG_fail;
13150 temp2 = True;
13151 }
13152 if (obj2) {
13153 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13154 }
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 Py_INCREF(Py_None); resultobj = Py_None;
13163 {
13164 PyObject *o = PyInt_FromLong((long) (*arg3));
13165 resultobj = t_output_helper(resultobj,o);
13166 }
13167 {
13168 PyObject *o = PyInt_FromLong((long) (*arg4));
13169 resultobj = t_output_helper(resultobj,o);
13170 }
13171 {
13172 PyObject *o = PyInt_FromLong((long) (*arg5));
13173 resultobj = t_output_helper(resultobj,o);
13174 }
13175 {
13176 PyObject *o = PyInt_FromLong((long) (*arg6));
13177 resultobj = t_output_helper(resultobj,o);
13178 }
13179 {
13180 if (temp2)
13181 delete arg2;
13182 }
13183 return resultobj;
13184 fail:
13185 {
13186 if (temp2)
13187 delete arg2;
13188 }
13189 return NULL;
13190}
13191
13192
13193static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj;
13195 wxDC *arg1 = (wxDC *) 0 ;
13196 wxString *arg2 = 0 ;
13197 int *arg3 = (int *) 0 ;
13198 int *arg4 = (int *) 0 ;
13199 int *arg5 = (int *) 0 ;
13200 wxFont *arg6 = (wxFont *) NULL ;
13201 bool temp2 = False ;
13202 int temp3 ;
13203 int temp4 ;
13204 int temp5 ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 PyObject * obj2 = 0 ;
13208 char *kwnames[] = {
13209 (char *) "self",(char *) "text",(char *) "font", NULL
13210 };
13211
13212 arg3 = &temp3;
13213 arg4 = &temp4;
13214 arg5 = &temp5;
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13217 {
13218 arg2 = wxString_in_helper(obj1);
13219 if (arg2 == NULL) SWIG_fail;
13220 temp2 = True;
13221 }
13222 if (obj2) {
13223 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13228
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 Py_INCREF(Py_None); resultobj = Py_None;
13233 {
13234 PyObject *o = PyInt_FromLong((long) (*arg3));
13235 resultobj = t_output_helper(resultobj,o);
13236 }
13237 {
13238 PyObject *o = PyInt_FromLong((long) (*arg4));
13239 resultobj = t_output_helper(resultobj,o);
13240 }
13241 {
13242 PyObject *o = PyInt_FromLong((long) (*arg5));
13243 resultobj = t_output_helper(resultobj,o);
13244 }
13245 {
13246 if (temp2)
13247 delete arg2;
13248 }
13249 return resultobj;
13250 fail:
13251 {
13252 if (temp2)
13253 delete arg2;
13254 }
13255 return NULL;
13256}
13257
13258
13259static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13260 PyObject *resultobj;
13261 wxDC *arg1 = (wxDC *) 0 ;
13262 wxString *arg2 = 0 ;
13263 wxArrayInt result;
13264 bool temp2 = False ;
13265 PyObject * obj0 = 0 ;
13266 PyObject * obj1 = 0 ;
13267 char *kwnames[] = {
13268 (char *) "self",(char *) "text", NULL
13269 };
13270
13271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13273 {
13274 arg2 = wxString_in_helper(obj1);
13275 if (arg2 == NULL) SWIG_fail;
13276 temp2 = True;
13277 }
13278 {
13279 PyThreadState* __tstate = wxPyBeginAllowThreads();
13280 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13281
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 {
13286 resultobj = PyList_New(0);
13287 size_t idx;
13288 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13289 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13290 PyList_Append(resultobj, val);
13291 Py_DECREF(val);
13292 }
13293 }
13294 {
13295 if (temp2)
13296 delete arg2;
13297 }
13298 return resultobj;
13299 fail:
13300 {
13301 if (temp2)
13302 delete arg2;
13303 }
13304 return NULL;
13305}
13306
13307
13308static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxDC *arg1 = (wxDC *) 0 ;
13311 wxSize result;
13312 PyObject * obj0 = 0 ;
13313 char *kwnames[] = {
13314 (char *) "self", NULL
13315 };
13316
13317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (arg1)->GetSize();
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 wxSize * resultptr;
13328 resultptr = new wxSize((wxSize &) result);
13329 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13330 }
13331 return resultobj;
13332 fail:
13333 return NULL;
13334}
13335
13336
13337static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj;
13339 wxDC *arg1 = (wxDC *) 0 ;
13340 int *arg2 = (int *) 0 ;
13341 int *arg3 = (int *) 0 ;
13342 int temp2 ;
13343 int temp3 ;
13344 PyObject * obj0 = 0 ;
13345 char *kwnames[] = {
13346 (char *) "self", NULL
13347 };
13348
13349 arg2 = &temp2;
13350 arg3 = &temp3;
13351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 (arg1)->GetSize(arg2,arg3);
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 Py_INCREF(Py_None); resultobj = Py_None;
13361 {
13362 PyObject *o = PyInt_FromLong((long) (*arg2));
13363 resultobj = t_output_helper(resultobj,o);
13364 }
13365 {
13366 PyObject *o = PyInt_FromLong((long) (*arg3));
13367 resultobj = t_output_helper(resultobj,o);
13368 }
13369 return resultobj;
13370 fail:
13371 return NULL;
13372}
13373
13374
13375static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj;
13377 wxDC *arg1 = (wxDC *) 0 ;
13378 wxSize result;
13379 PyObject * obj0 = 0 ;
13380 char *kwnames[] = {
13381 (char *) "self", NULL
13382 };
13383
13384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = ((wxDC const *)arg1)->GetSizeMM();
13389
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 {
13394 wxSize * resultptr;
13395 resultptr = new wxSize((wxSize &) result);
13396 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13397 }
13398 return resultobj;
13399 fail:
13400 return NULL;
13401}
13402
13403
13404static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13405 PyObject *resultobj;
13406 wxDC *arg1 = (wxDC *) 0 ;
13407 int *arg2 = (int *) 0 ;
13408 int *arg3 = (int *) 0 ;
13409 int temp2 ;
13410 int temp3 ;
13411 PyObject * obj0 = 0 ;
13412 char *kwnames[] = {
13413 (char *) "self", NULL
13414 };
13415
13416 arg2 = &temp2;
13417 arg3 = &temp3;
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 Py_INCREF(Py_None); resultobj = Py_None;
13428 {
13429 PyObject *o = PyInt_FromLong((long) (*arg2));
13430 resultobj = t_output_helper(resultobj,o);
13431 }
13432 {
13433 PyObject *o = PyInt_FromLong((long) (*arg3));
13434 resultobj = t_output_helper(resultobj,o);
13435 }
13436 return resultobj;
13437 fail:
13438 return NULL;
13439}
13440
13441
13442static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxDC *arg1 = (wxDC *) 0 ;
13445 int arg2 ;
13446 int result;
13447 PyObject * obj0 = 0 ;
13448 PyObject * obj1 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self",(char *) "x", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13455 {
13456 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_PyObj_FromInt((int)result);
13467 return resultobj;
13468 fail:
13469 return NULL;
13470}
13471
13472
13473static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 wxDC *arg1 = (wxDC *) 0 ;
13476 int arg2 ;
13477 int result;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self",(char *) "y", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13486 {
13487 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 resultobj = SWIG_PyObj_FromInt((int)result);
13498 return resultobj;
13499 fail:
13500 return NULL;
13501}
13502
13503
13504static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj;
13506 wxDC *arg1 = (wxDC *) 0 ;
13507 int arg2 ;
13508 int result;
13509 PyObject * obj0 = 0 ;
13510 PyObject * obj1 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self",(char *) "x", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13517 {
13518 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 PyThreadState* __tstate = wxPyBeginAllowThreads();
13523 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13524
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 resultobj = SWIG_PyObj_FromInt((int)result);
13529 return resultobj;
13530 fail:
13531 return NULL;
13532}
13533
13534
13535static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13536 PyObject *resultobj;
13537 wxDC *arg1 = (wxDC *) 0 ;
13538 int arg2 ;
13539 int result;
13540 PyObject * obj0 = 0 ;
13541 PyObject * obj1 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self",(char *) "y", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13548 {
13549 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13555
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 resultobj = SWIG_PyObj_FromInt((int)result);
13560 return resultobj;
13561 fail:
13562 return NULL;
13563}
13564
13565
13566static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj;
13568 wxDC *arg1 = (wxDC *) 0 ;
13569 int arg2 ;
13570 int result;
13571 PyObject * obj0 = 0 ;
13572 PyObject * obj1 = 0 ;
13573 char *kwnames[] = {
13574 (char *) "self",(char *) "x", NULL
13575 };
13576
13577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13579 {
13580 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 {
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13586
13587 wxPyEndAllowThreads(__tstate);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 resultobj = SWIG_PyObj_FromInt((int)result);
13591 return resultobj;
13592 fail:
13593 return NULL;
13594}
13595
13596
13597static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13598 PyObject *resultobj;
13599 wxDC *arg1 = (wxDC *) 0 ;
13600 int arg2 ;
13601 int result;
13602 PyObject * obj0 = 0 ;
13603 PyObject * obj1 = 0 ;
13604 char *kwnames[] = {
13605 (char *) "self",(char *) "y", NULL
13606 };
13607
13608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13610 {
13611 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13617
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 resultobj = SWIG_PyObj_FromInt((int)result);
13622 return resultobj;
13623 fail:
13624 return NULL;
13625}
13626
13627
13628static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj;
13630 wxDC *arg1 = (wxDC *) 0 ;
13631 int arg2 ;
13632 int result;
13633 PyObject * obj0 = 0 ;
13634 PyObject * obj1 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self",(char *) "x", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13641 {
13642 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 {
13646 PyThreadState* __tstate = wxPyBeginAllowThreads();
13647 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13648
13649 wxPyEndAllowThreads(__tstate);
13650 if (PyErr_Occurred()) SWIG_fail;
13651 }
13652 resultobj = SWIG_PyObj_FromInt((int)result);
13653 return resultobj;
13654 fail:
13655 return NULL;
13656}
13657
13658
13659static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj;
13661 wxDC *arg1 = (wxDC *) 0 ;
13662 int arg2 ;
13663 int result;
13664 PyObject * obj0 = 0 ;
13665 PyObject * obj1 = 0 ;
13666 char *kwnames[] = {
13667 (char *) "self",(char *) "y", NULL
13668 };
13669
13670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13672 {
13673 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13674 if (PyErr_Occurred()) SWIG_fail;
13675 }
13676 {
13677 PyThreadState* __tstate = wxPyBeginAllowThreads();
13678 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13679
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 resultobj = SWIG_PyObj_FromInt((int)result);
13684 return resultobj;
13685 fail:
13686 return NULL;
13687}
13688
13689
13690static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13691 PyObject *resultobj;
13692 wxDC *arg1 = (wxDC *) 0 ;
13693 bool result;
13694 PyObject * obj0 = 0 ;
13695 char *kwnames[] = {
13696 (char *) "self", NULL
13697 };
13698
13699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13704
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13709 return resultobj;
13710 fail:
13711 return NULL;
13712}
13713
13714
13715static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj;
13717 wxDC *arg1 = (wxDC *) 0 ;
13718 bool result;
13719 PyObject * obj0 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "self", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13729
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13734 return resultobj;
13735 fail:
13736 return NULL;
13737}
13738
13739
13740static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13741 PyObject *resultobj;
13742 wxDC *arg1 = (wxDC *) 0 ;
13743 int result;
13744 PyObject * obj0 = 0 ;
13745 char *kwnames[] = {
13746 (char *) "self", NULL
13747 };
13748
13749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 result = (int)((wxDC const *)arg1)->GetDepth();
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 resultobj = SWIG_PyObj_FromInt((int)result);
13759 return resultobj;
13760 fail:
13761 return NULL;
13762}
13763
13764
13765static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13766 PyObject *resultobj;
13767 wxDC *arg1 = (wxDC *) 0 ;
13768 wxSize result;
13769 PyObject * obj0 = 0 ;
13770 char *kwnames[] = {
13771 (char *) "self", NULL
13772 };
13773
13774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13776 {
13777 PyThreadState* __tstate = wxPyBeginAllowThreads();
13778 result = ((wxDC const *)arg1)->GetPPI();
13779
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 {
13784 wxSize * resultptr;
13785 resultptr = new wxSize((wxSize &) result);
13786 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791}
13792
13793
13794static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj;
13796 wxDC *arg1 = (wxDC *) 0 ;
13797 bool result;
13798 PyObject * obj0 = 0 ;
13799 char *kwnames[] = {
13800 (char *) "self", NULL
13801 };
13802
13803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 result = (bool)((wxDC const *)arg1)->Ok();
13808
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13813 return resultobj;
13814 fail:
13815 return NULL;
13816}
13817
13818
13819static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13820 PyObject *resultobj;
13821 wxDC *arg1 = (wxDC *) 0 ;
13822 int result;
13823 PyObject * obj0 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13830 {
13831 PyThreadState* __tstate = wxPyBeginAllowThreads();
13832 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13833
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 resultobj = SWIG_PyObj_FromInt((int)result);
13838 return resultobj;
13839 fail:
13840 return NULL;
13841}
13842
13843
13844static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj;
13846 wxDC *arg1 = (wxDC *) 0 ;
13847 wxBrush *result;
13848 PyObject * obj0 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self", NULL
13851 };
13852
13853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13855 {
13856 PyThreadState* __tstate = wxPyBeginAllowThreads();
13857 {
13858 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13859 result = (wxBrush *) &_result_ref;
13860 }
13861
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13866 return resultobj;
13867 fail:
13868 return NULL;
13869}
13870
13871
13872static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj;
13874 wxDC *arg1 = (wxDC *) 0 ;
13875 wxBrush *result;
13876 PyObject * obj0 = 0 ;
13877 char *kwnames[] = {
13878 (char *) "self", NULL
13879 };
13880
13881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 {
13886 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13887 result = (wxBrush *) &_result_ref;
13888 }
13889
13890 wxPyEndAllowThreads(__tstate);
13891 if (PyErr_Occurred()) SWIG_fail;
13892 }
13893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13894 return resultobj;
13895 fail:
13896 return NULL;
13897}
13898
13899
13900static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13901 PyObject *resultobj;
13902 wxDC *arg1 = (wxDC *) 0 ;
13903 wxFont *result;
13904 PyObject * obj0 = 0 ;
13905 char *kwnames[] = {
13906 (char *) "self", NULL
13907 };
13908
13909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13911 {
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 {
13914 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13915 result = (wxFont *) &_result_ref;
13916 }
13917
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13922 return resultobj;
13923 fail:
13924 return NULL;
13925}
13926
13927
13928static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13929 PyObject *resultobj;
13930 wxDC *arg1 = (wxDC *) 0 ;
13931 wxPen *result;
13932 PyObject * obj0 = 0 ;
13933 char *kwnames[] = {
13934 (char *) "self", NULL
13935 };
13936
13937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13939 {
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 {
13942 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13943 result = (wxPen *) &_result_ref;
13944 }
13945
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13950 return resultobj;
13951 fail:
13952 return NULL;
13953}
13954
13955
13956static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13957 PyObject *resultobj;
13958 wxDC *arg1 = (wxDC *) 0 ;
13959 wxColour *result;
13960 PyObject * obj0 = 0 ;
13961 char *kwnames[] = {
13962 (char *) "self", NULL
13963 };
13964
13965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13967 {
13968 PyThreadState* __tstate = wxPyBeginAllowThreads();
13969 {
13970 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13971 result = (wxColour *) &_result_ref;
13972 }
13973
13974 wxPyEndAllowThreads(__tstate);
13975 if (PyErr_Occurred()) SWIG_fail;
13976 }
13977 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13978 return resultobj;
13979 fail:
13980 return NULL;
13981}
13982
13983
13984static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13985 PyObject *resultobj;
13986 wxDC *arg1 = (wxDC *) 0 ;
13987 wxColour *result;
13988 PyObject * obj0 = 0 ;
13989 char *kwnames[] = {
13990 (char *) "self", NULL
13991 };
13992
13993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13995 {
13996 PyThreadState* __tstate = wxPyBeginAllowThreads();
13997 {
13998 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13999 result = (wxColour *) &_result_ref;
14000 }
14001
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
14006 return resultobj;
14007 fail:
14008 return NULL;
14009}
14010
14011
14012static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14013 PyObject *resultobj;
14014 wxDC *arg1 = (wxDC *) 0 ;
14015 wxColour *arg2 = 0 ;
14016 wxColour temp2 ;
14017 PyObject * obj0 = 0 ;
14018 PyObject * obj1 = 0 ;
14019 char *kwnames[] = {
14020 (char *) "self",(char *) "colour", NULL
14021 };
14022
14023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14025 {
14026 arg2 = &temp2;
14027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14028 }
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 (arg1)->SetTextForeground((wxColour const &)*arg2);
14032
14033 wxPyEndAllowThreads(__tstate);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 Py_INCREF(Py_None); resultobj = Py_None;
14037 return resultobj;
14038 fail:
14039 return NULL;
14040}
14041
14042
14043static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxDC *arg1 = (wxDC *) 0 ;
14046 wxColour *arg2 = 0 ;
14047 wxColour temp2 ;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 char *kwnames[] = {
14051 (char *) "self",(char *) "colour", NULL
14052 };
14053
14054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14056 {
14057 arg2 = &temp2;
14058 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14059 }
14060 {
14061 PyThreadState* __tstate = wxPyBeginAllowThreads();
14062 (arg1)->SetTextBackground((wxColour const &)*arg2);
14063
14064 wxPyEndAllowThreads(__tstate);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 }
14067 Py_INCREF(Py_None); resultobj = Py_None;
14068 return resultobj;
14069 fail:
14070 return NULL;
14071}
14072
14073
14074static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14075 PyObject *resultobj;
14076 wxDC *arg1 = (wxDC *) 0 ;
14077 int result;
14078 PyObject * obj0 = 0 ;
14079 char *kwnames[] = {
14080 (char *) "self", NULL
14081 };
14082
14083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (int)((wxDC const *)arg1)->GetMapMode();
14088
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
14092 resultobj = SWIG_PyObj_FromInt((int)result);
14093 return resultobj;
14094 fail:
14095 return NULL;
14096}
14097
14098
14099static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj;
14101 wxDC *arg1 = (wxDC *) 0 ;
14102 int arg2 ;
14103 PyObject * obj0 = 0 ;
14104 PyObject * obj1 = 0 ;
14105 char *kwnames[] = {
14106 (char *) "self",(char *) "mode", NULL
14107 };
14108
14109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14111 {
14112 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 (arg1)->SetMapMode(arg2);
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 Py_INCREF(Py_None); resultobj = Py_None;
14123 return resultobj;
14124 fail:
14125 return NULL;
14126}
14127
14128
14129static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14130 PyObject *resultobj;
14131 wxDC *arg1 = (wxDC *) 0 ;
14132 double *arg2 = (double *) 0 ;
14133 double *arg3 = (double *) 0 ;
14134 double temp2 ;
14135 double temp3 ;
14136 PyObject * obj0 = 0 ;
14137 char *kwnames[] = {
14138 (char *) "self", NULL
14139 };
14140
14141 arg2 = &temp2;
14142 arg3 = &temp3;
14143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14148
14149 wxPyEndAllowThreads(__tstate);
14150 if (PyErr_Occurred()) SWIG_fail;
14151 }
14152 Py_INCREF(Py_None); resultobj = Py_None;
14153 {
14154 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14155 resultobj = t_output_helper(resultobj,o);
14156 }
14157 {
14158 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14159 resultobj = t_output_helper(resultobj,o);
14160 }
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
14167static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxDC *arg1 = (wxDC *) 0 ;
14170 double arg2 ;
14171 double arg3 ;
14172 PyObject * obj0 = 0 ;
14173 PyObject * obj1 = 0 ;
14174 PyObject * obj2 = 0 ;
14175 char *kwnames[] = {
14176 (char *) "self",(char *) "x",(char *) "y", NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14181 {
14182 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 {
14186 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 (arg1)->SetUserScale(arg2,arg3);
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 Py_INCREF(Py_None); resultobj = Py_None;
14197 return resultobj;
14198 fail:
14199 return NULL;
14200}
14201
14202
14203static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14204 PyObject *resultobj;
14205 wxDC *arg1 = (wxDC *) 0 ;
14206 double *arg2 = (double *) 0 ;
14207 double *arg3 = (double *) 0 ;
14208 double temp2 ;
14209 double temp3 ;
14210 PyObject * obj0 = 0 ;
14211 char *kwnames[] = {
14212 (char *) "self", NULL
14213 };
14214
14215 arg2 = &temp2;
14216 arg3 = &temp3;
14217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14219 {
14220 PyThreadState* __tstate = wxPyBeginAllowThreads();
14221 (arg1)->GetLogicalScale(arg2,arg3);
14222
14223 wxPyEndAllowThreads(__tstate);
14224 if (PyErr_Occurred()) SWIG_fail;
14225 }
14226 Py_INCREF(Py_None); resultobj = Py_None;
14227 {
14228 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14229 resultobj = t_output_helper(resultobj,o);
14230 }
14231 {
14232 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14233 resultobj = t_output_helper(resultobj,o);
14234 }
14235 return resultobj;
14236 fail:
14237 return NULL;
14238}
14239
14240
14241static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14242 PyObject *resultobj;
14243 wxDC *arg1 = (wxDC *) 0 ;
14244 double arg2 ;
14245 double arg3 ;
14246 PyObject * obj0 = 0 ;
14247 PyObject * obj1 = 0 ;
14248 PyObject * obj2 = 0 ;
14249 char *kwnames[] = {
14250 (char *) "self",(char *) "x",(char *) "y", NULL
14251 };
14252
14253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14255 {
14256 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 {
14260 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 (arg1)->SetLogicalScale(arg2,arg3);
14266
14267 wxPyEndAllowThreads(__tstate);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 Py_INCREF(Py_None); resultobj = Py_None;
14271 return resultobj;
14272 fail:
14273 return NULL;
14274}
14275
14276
14277static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14278 PyObject *resultobj;
14279 wxDC *arg1 = (wxDC *) 0 ;
14280 wxPoint result;
14281 PyObject * obj0 = 0 ;
14282 char *kwnames[] = {
14283 (char *) "self", NULL
14284 };
14285
14286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14291
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 wxPoint * resultptr;
14297 resultptr = new wxPoint((wxPoint &) result);
14298 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14299 }
14300 return resultobj;
14301 fail:
14302 return NULL;
14303}
14304
14305
14306static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14307 PyObject *resultobj;
14308 wxDC *arg1 = (wxDC *) 0 ;
14309 int *arg2 = (int *) 0 ;
14310 int *arg3 = (int *) 0 ;
14311 int temp2 ;
14312 int temp3 ;
14313 PyObject * obj0 = 0 ;
14314 char *kwnames[] = {
14315 (char *) "self", NULL
14316 };
14317
14318 arg2 = &temp2;
14319 arg3 = &temp3;
14320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14325
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 Py_INCREF(Py_None); resultobj = Py_None;
14330 {
14331 PyObject *o = PyInt_FromLong((long) (*arg2));
14332 resultobj = t_output_helper(resultobj,o);
14333 }
14334 {
14335 PyObject *o = PyInt_FromLong((long) (*arg3));
14336 resultobj = t_output_helper(resultobj,o);
14337 }
14338 return resultobj;
14339 fail:
14340 return NULL;
14341}
14342
14343
14344static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14345 PyObject *resultobj;
14346 wxDC *arg1 = (wxDC *) 0 ;
14347 int arg2 ;
14348 int arg3 ;
14349 PyObject * obj0 = 0 ;
14350 PyObject * obj1 = 0 ;
14351 PyObject * obj2 = 0 ;
14352 char *kwnames[] = {
14353 (char *) "self",(char *) "x",(char *) "y", NULL
14354 };
14355
14356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14358 {
14359 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 {
14363 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 (arg1)->SetLogicalOrigin(arg2,arg3);
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 Py_INCREF(Py_None); resultobj = Py_None;
14374 return resultobj;
14375 fail:
14376 return NULL;
14377}
14378
14379
14380static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14381 PyObject *resultobj;
14382 wxDC *arg1 = (wxDC *) 0 ;
14383 wxPoint result;
14384 PyObject * obj0 = 0 ;
14385 char *kwnames[] = {
14386 (char *) "self", NULL
14387 };
14388
14389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 {
14399 wxPoint * resultptr;
14400 resultptr = new wxPoint((wxPoint &) result);
14401 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14402 }
14403 return resultobj;
14404 fail:
14405 return NULL;
14406}
14407
14408
14409static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14410 PyObject *resultobj;
14411 wxDC *arg1 = (wxDC *) 0 ;
14412 int *arg2 = (int *) 0 ;
14413 int *arg3 = (int *) 0 ;
14414 int temp2 ;
14415 int temp3 ;
14416 PyObject * obj0 = 0 ;
14417 char *kwnames[] = {
14418 (char *) "self", NULL
14419 };
14420
14421 arg2 = &temp2;
14422 arg3 = &temp3;
14423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14425 {
14426 PyThreadState* __tstate = wxPyBeginAllowThreads();
14427 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14428
14429 wxPyEndAllowThreads(__tstate);
14430 if (PyErr_Occurred()) SWIG_fail;
14431 }
14432 Py_INCREF(Py_None); resultobj = Py_None;
14433 {
14434 PyObject *o = PyInt_FromLong((long) (*arg2));
14435 resultobj = t_output_helper(resultobj,o);
14436 }
14437 {
14438 PyObject *o = PyInt_FromLong((long) (*arg3));
14439 resultobj = t_output_helper(resultobj,o);
14440 }
14441 return resultobj;
14442 fail:
14443 return NULL;
14444}
14445
14446
14447static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxDC *arg1 = (wxDC *) 0 ;
14450 int arg2 ;
14451 int arg3 ;
14452 PyObject * obj0 = 0 ;
14453 PyObject * obj1 = 0 ;
14454 PyObject * obj2 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self",(char *) "x",(char *) "y", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14461 {
14462 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 {
14466 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 (arg1)->SetDeviceOrigin(arg2,arg3);
14472
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 Py_INCREF(Py_None); resultobj = Py_None;
14477 return resultobj;
14478 fail:
14479 return NULL;
14480}
14481
14482
14483static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14484 PyObject *resultobj;
14485 wxDC *arg1 = (wxDC *) 0 ;
14486 bool arg2 ;
14487 bool arg3 ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 PyObject * obj2 = 0 ;
14491 char *kwnames[] = {
14492 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14493 };
14494
14495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14497 {
14498 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 {
14502 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 (arg1)->SetAxisOrientation(arg2,arg3);
14508
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 Py_INCREF(Py_None); resultobj = Py_None;
14513 return resultobj;
14514 fail:
14515 return NULL;
14516}
14517
14518
14519static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14520 PyObject *resultobj;
14521 wxDC *arg1 = (wxDC *) 0 ;
14522 int result;
14523 PyObject * obj0 = 0 ;
14524 char *kwnames[] = {
14525 (char *) "self", NULL
14526 };
14527
14528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14530 {
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14533
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 resultobj = SWIG_PyObj_FromInt((int)result);
14538 return resultobj;
14539 fail:
14540 return NULL;
14541}
14542
14543
14544static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14545 PyObject *resultobj;
14546 wxDC *arg1 = (wxDC *) 0 ;
14547 int arg2 ;
14548 PyObject * obj0 = 0 ;
14549 PyObject * obj1 = 0 ;
14550 char *kwnames[] = {
14551 (char *) "self",(char *) "function", NULL
14552 };
14553
14554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14556 {
14557 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 (arg1)->SetLogicalFunction(arg2);
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
14574static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj;
14576 wxDC *arg1 = (wxDC *) 0 ;
14577 bool arg2 ;
14578 PyObject * obj0 = 0 ;
14579 PyObject * obj1 = 0 ;
14580 char *kwnames[] = {
14581 (char *) "self",(char *) "opt", NULL
14582 };
14583
14584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14586 {
14587 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 {
14591 PyThreadState* __tstate = wxPyBeginAllowThreads();
14592 (arg1)->SetOptimization(arg2);
14593
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 Py_INCREF(Py_None); resultobj = Py_None;
14598 return resultobj;
14599 fail:
14600 return NULL;
14601}
14602
14603
14604static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14605 PyObject *resultobj;
14606 wxDC *arg1 = (wxDC *) 0 ;
14607 bool result;
14608 PyObject * obj0 = 0 ;
14609 char *kwnames[] = {
14610 (char *) "self", NULL
14611 };
14612
14613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (bool)(arg1)->GetOptimization();
14618
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14623 return resultobj;
14624 fail:
14625 return NULL;
14626}
14627
14628
14629static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14630 PyObject *resultobj;
14631 wxDC *arg1 = (wxDC *) 0 ;
14632 int arg2 ;
14633 int arg3 ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 PyObject * obj2 = 0 ;
14637 char *kwnames[] = {
14638 (char *) "self",(char *) "x",(char *) "y", NULL
14639 };
14640
14641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14643 {
14644 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 {
14648 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 (arg1)->CalcBoundingBox(arg2,arg3);
14654
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 Py_INCREF(Py_None); resultobj = Py_None;
14659 return resultobj;
14660 fail:
14661 return NULL;
14662}
14663
14664
14665static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj;
14667 wxDC *arg1 = (wxDC *) 0 ;
14668 PyObject * obj0 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 (arg1)->ResetBoundingBox();
14678
14679 wxPyEndAllowThreads(__tstate);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 }
14682 Py_INCREF(Py_None); resultobj = Py_None;
14683 return resultobj;
14684 fail:
14685 return NULL;
14686}
14687
14688
14689static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14690 PyObject *resultobj;
14691 wxDC *arg1 = (wxDC *) 0 ;
14692 int result;
14693 PyObject * obj0 = 0 ;
14694 char *kwnames[] = {
14695 (char *) "self", NULL
14696 };
14697
14698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = (int)((wxDC const *)arg1)->MinX();
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_PyObj_FromInt((int)result);
14708 return resultobj;
14709 fail:
14710 return NULL;
14711}
14712
14713
14714static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 int result;
14718 PyObject * obj0 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = (int)((wxDC const *)arg1)->MaxX();
14728
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = SWIG_PyObj_FromInt((int)result);
14733 return resultobj;
14734 fail:
14735 return NULL;
14736}
14737
14738
14739static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxDC *arg1 = (wxDC *) 0 ;
14742 int result;
14743 PyObject * obj0 = 0 ;
14744 char *kwnames[] = {
14745 (char *) "self", NULL
14746 };
14747
14748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14750 {
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (int)((wxDC const *)arg1)->MinY();
14753
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 resultobj = SWIG_PyObj_FromInt((int)result);
14758 return resultobj;
14759 fail:
14760 return NULL;
14761}
14762
14763
14764static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj;
14766 wxDC *arg1 = (wxDC *) 0 ;
14767 int result;
14768 PyObject * obj0 = 0 ;
14769 char *kwnames[] = {
14770 (char *) "self", NULL
14771 };
14772
14773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = (int)((wxDC const *)arg1)->MaxY();
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_PyObj_FromInt((int)result);
14783 return resultobj;
14784 fail:
14785 return NULL;
14786}
14787
14788
14789static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxDC *arg1 = (wxDC *) 0 ;
14792 int *arg2 = (int *) 0 ;
14793 int *arg3 = (int *) 0 ;
14794 int *arg4 = (int *) 0 ;
14795 int *arg5 = (int *) 0 ;
14796 int temp2 ;
14797 int temp3 ;
14798 int temp4 ;
14799 int temp5 ;
14800 PyObject * obj0 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "self", NULL
14803 };
14804
14805 arg2 = &temp2;
14806 arg3 = &temp3;
14807 arg4 = &temp4;
14808 arg5 = &temp5;
14809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14811 {
14812 PyThreadState* __tstate = wxPyBeginAllowThreads();
14813 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14814
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 Py_INCREF(Py_None); resultobj = Py_None;
14819 {
14820 PyObject *o = PyInt_FromLong((long) (*arg2));
14821 resultobj = t_output_helper(resultobj,o);
14822 }
14823 {
14824 PyObject *o = PyInt_FromLong((long) (*arg3));
14825 resultobj = t_output_helper(resultobj,o);
14826 }
14827 {
14828 PyObject *o = PyInt_FromLong((long) (*arg4));
14829 resultobj = t_output_helper(resultobj,o);
14830 }
14831 {
14832 PyObject *o = PyInt_FromLong((long) (*arg5));
14833 resultobj = t_output_helper(resultobj,o);
14834 }
14835 return resultobj;
14836 fail:
14837 return NULL;
14838}
14839
14840
14841static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxDC *arg1 = (wxDC *) 0 ;
14844 PyObject *arg2 = (PyObject *) 0 ;
14845 PyObject *arg3 = (PyObject *) 0 ;
14846 PyObject *arg4 = (PyObject *) 0 ;
14847 PyObject *result;
14848 PyObject * obj0 = 0 ;
14849 PyObject * obj1 = 0 ;
14850 PyObject * obj2 = 0 ;
14851 PyObject * obj3 = 0 ;
14852 char *kwnames[] = {
14853 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14854 };
14855
14856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14858 arg2 = obj1;
14859 arg3 = obj2;
14860 arg4 = obj3;
14861 {
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14864
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 resultobj = result;
14869 return resultobj;
14870 fail:
14871 return NULL;
14872}
14873
14874
14875static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj;
14877 wxDC *arg1 = (wxDC *) 0 ;
14878 PyObject *arg2 = (PyObject *) 0 ;
14879 PyObject *arg3 = (PyObject *) 0 ;
14880 PyObject *arg4 = (PyObject *) 0 ;
14881 PyObject *result;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 PyObject * obj2 = 0 ;
14885 PyObject * obj3 = 0 ;
14886 char *kwnames[] = {
14887 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14888 };
14889
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14892 arg2 = obj1;
14893 arg3 = obj2;
14894 arg4 = obj3;
14895 {
14896 PyThreadState* __tstate = wxPyBeginAllowThreads();
14897 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14898
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 resultobj = result;
14903 return resultobj;
14904 fail:
14905 return NULL;
14906}
14907
14908
14909static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14910 PyObject *resultobj;
14911 wxDC *arg1 = (wxDC *) 0 ;
14912 PyObject *arg2 = (PyObject *) 0 ;
14913 PyObject *arg3 = (PyObject *) 0 ;
14914 PyObject *arg4 = (PyObject *) 0 ;
14915 PyObject *result;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 PyObject * obj2 = 0 ;
14919 PyObject * obj3 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14926 arg2 = obj1;
14927 arg3 = obj2;
14928 arg4 = obj3;
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = result;
14937 return resultobj;
14938 fail:
14939 return NULL;
14940}
14941
14942
14943static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj;
14945 wxDC *arg1 = (wxDC *) 0 ;
14946 PyObject *arg2 = (PyObject *) 0 ;
14947 PyObject *arg3 = (PyObject *) 0 ;
14948 PyObject *arg4 = (PyObject *) 0 ;
14949 PyObject *result;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 PyObject * obj2 = 0 ;
14953 PyObject * obj3 = 0 ;
14954 char *kwnames[] = {
14955 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14956 };
14957
14958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14960 arg2 = obj1;
14961 arg3 = obj2;
14962 arg4 = obj3;
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14966
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = result;
14971 return resultobj;
14972 fail:
14973 return NULL;
14974}
14975
14976
14977static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj;
14979 wxDC *arg1 = (wxDC *) 0 ;
14980 PyObject *arg2 = (PyObject *) 0 ;
14981 PyObject *arg3 = (PyObject *) 0 ;
14982 PyObject *arg4 = (PyObject *) 0 ;
14983 PyObject *result;
14984 PyObject * obj0 = 0 ;
14985 PyObject * obj1 = 0 ;
14986 PyObject * obj2 = 0 ;
14987 PyObject * obj3 = 0 ;
14988 char *kwnames[] = {
14989 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14990 };
14991
14992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14994 arg2 = obj1;
14995 arg3 = obj2;
14996 arg4 = obj3;
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = result;
15005 return resultobj;
15006 fail:
15007 return NULL;
15008}
15009
15010
15011static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj;
15013 wxDC *arg1 = (wxDC *) 0 ;
15014 PyObject *arg2 = (PyObject *) 0 ;
15015 PyObject *arg3 = (PyObject *) 0 ;
15016 PyObject *arg4 = (PyObject *) 0 ;
15017 PyObject *arg5 = (PyObject *) 0 ;
15018 PyObject *result;
15019 PyObject * obj0 = 0 ;
15020 PyObject * obj1 = 0 ;
15021 PyObject * obj2 = 0 ;
15022 PyObject * obj3 = 0 ;
15023 PyObject * obj4 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15030 arg2 = obj1;
15031 arg3 = obj2;
15032 arg4 = obj3;
15033 arg5 = obj4;
15034 {
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15037
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 resultobj = result;
15042 return resultobj;
15043 fail:
15044 return NULL;
15045}
15046
15047
15048static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15049 PyObject *obj;
15050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15051 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15052 Py_INCREF(obj);
15053 return Py_BuildValue((char *)"");
15054}
15055static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15056 PyObject *resultobj;
15057 wxMemoryDC *result;
15058 char *kwnames[] = {
15059 NULL
15060 };
15061
15062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15063 {
15064 PyThreadState* __tstate = wxPyBeginAllowThreads();
15065 result = (wxMemoryDC *)new wxMemoryDC();
15066
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15071 return resultobj;
15072 fail:
15073 return NULL;
15074}
15075
15076
15077static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15078 PyObject *resultobj;
15079 wxDC *arg1 = (wxDC *) 0 ;
15080 wxMemoryDC *result;
15081 PyObject * obj0 = 0 ;
15082 char *kwnames[] = {
15083 (char *) "oldDC", NULL
15084 };
15085
15086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15088 {
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15096 return resultobj;
15097 fail:
15098 return NULL;
15099}
15100
15101
15102static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj;
15104 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15105 wxBitmap *arg2 = 0 ;
15106 PyObject * obj0 = 0 ;
15107 PyObject * obj1 = 0 ;
15108 char *kwnames[] = {
15109 (char *) "self",(char *) "bitmap", NULL
15110 };
15111
15112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15114 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15115 if (arg2 == NULL) {
15116 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15117 }
15118 {
15119 PyThreadState* __tstate = wxPyBeginAllowThreads();
15120 (arg1)->SelectObject((wxBitmap const &)*arg2);
15121
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
15125 Py_INCREF(Py_None); resultobj = Py_None;
15126 return resultobj;
15127 fail:
15128 return NULL;
15129}
15130
15131
15132static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15133 PyObject *obj;
15134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15135 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15136 Py_INCREF(obj);
15137 return Py_BuildValue((char *)"");
15138}
15139static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15140 PyObject *resultobj;
15141 wxDC *arg1 = (wxDC *) 0 ;
15142 wxBitmap *arg2 = 0 ;
15143 wxBufferedDC *result;
15144 PyObject * obj0 = 0 ;
15145 PyObject * obj1 = 0 ;
15146
15147 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15149 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15150 if (arg2 == NULL) {
15151 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15152 }
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15156
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15161 return resultobj;
15162 fail:
15163 return NULL;
15164}
15165
15166
15167static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15168 PyObject *resultobj;
15169 wxDC *arg1 = (wxDC *) 0 ;
15170 wxSize *arg2 = 0 ;
15171 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
15172 wxBufferedDC *result;
15173 wxSize temp2 ;
15174 PyObject * obj0 = 0 ;
15175 PyObject * obj1 = 0 ;
15176 PyObject * obj2 = 0 ;
15177
15178 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
15179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15180 {
15181 arg2 = &temp2;
15182 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15183 }
15184 if (obj2) {
15185 {
15186 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 }
15190 {
15191 PyThreadState* __tstate = wxPyBeginAllowThreads();
15192 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
15193
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15198 return resultobj;
15199 fail:
15200 return NULL;
15201}
15202
15203
15204static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15205 int argc;
15206 PyObject *argv[4];
15207 int ii;
15208
15209 argc = PyObject_Length(args);
15210 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
15211 argv[ii] = PyTuple_GetItem(args,ii);
15212 }
15213 if (argc == 2) {
15214 int _v;
15215 {
15216 void *ptr;
15217 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15218 _v = 0;
15219 PyErr_Clear();
15220 } else {
15221 _v = 1;
15222 }
15223 }
15224 if (_v) {
15225 {
15226 void *ptr;
15227 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15228 _v = 0;
15229 PyErr_Clear();
15230 } else {
15231 _v = 1;
15232 }
15233 }
15234 if (_v) {
15235 return _wrap_new_BufferedDC__SWIG_0(self,args);
15236 }
15237 }
15238 }
15239 if ((argc >= 2) && (argc <= 3)) {
15240 int _v;
15241 {
15242 void *ptr;
15243 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15244 _v = 0;
15245 PyErr_Clear();
15246 } else {
15247 _v = 1;
15248 }
15249 }
15250 if (_v) {
15251 {
15252 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15253 }
15254 if (_v) {
15255 if (argc <= 2) {
15256 return _wrap_new_BufferedDC__SWIG_1(self,args);
15257 }
15258 {
15259 SWIG_PyObj_AsInt(argv[2]);
15260 if (PyErr_Occurred()) {
15261 _v = 0;
15262 PyErr_Clear();
15263 } else {
15264 _v = 1;
15265 }
15266 }
15267 if (_v) {
15268 return _wrap_new_BufferedDC__SWIG_1(self,args);
15269 }
15270 }
15271 }
15272 }
15273
15274 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15275 return NULL;
15276}
15277
15278
15279static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15280 PyObject *resultobj;
15281 wxDC *arg1 = (wxDC *) 0 ;
15282 wxSize *arg2 = 0 ;
15283 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
15284 wxBufferedDC *result;
15285 wxSize temp2 ;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289
15290 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail;
15291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15292 {
15293 arg2 = &temp2;
15294 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15295 }
15296 if (obj2) {
15297 {
15298 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 }
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15310 return resultobj;
15311 fail:
15312 return NULL;
15313}
15314
15315
15316static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15317 PyObject *resultobj;
15318 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15319 PyObject * obj0 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "self", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 (arg1)->UnMask();
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 Py_INCREF(Py_None); resultobj = Py_None;
15334 return resultobj;
15335 fail:
15336 return NULL;
15337}
15338
15339
15340static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15341 PyObject *obj;
15342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15343 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15344 Py_INCREF(obj);
15345 return Py_BuildValue((char *)"");
15346}
15347static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) {
15348 PyObject *resultobj;
15349 wxWindow *arg1 = (wxWindow *) 0 ;
15350 wxBitmap *arg2 = 0 ;
15351 wxBufferedPaintDC *result;
15352 PyObject * obj0 = 0 ;
15353 PyObject * obj1 = 0 ;
15354
15355 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15357 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15358 if (arg2 == NULL) {
15359 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15360 }
15361 {
15362 PyThreadState* __tstate = wxPyBeginAllowThreads();
15363 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15364
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15369 return resultobj;
15370 fail:
15371 return NULL;
15372}
15373
15374
15375static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) {
15376 PyObject *resultobj;
15377 wxWindow *arg1 = (wxWindow *) 0 ;
15378 int arg2 = (int) wxBUFFER_DC_DEFAULT ;
15379 wxBufferedPaintDC *result;
15380 PyObject * obj0 = 0 ;
15381 PyObject * obj1 = 0 ;
15382
15383 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
15384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15385 if (obj1) {
15386 {
15387 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 }
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2);
15394
15395 wxPyEndAllowThreads(__tstate);
15396 if (PyErr_Occurred()) SWIG_fail;
15397 }
15398 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15399 return resultobj;
15400 fail:
15401 return NULL;
15402}
15403
15404
15405static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) {
15406 int argc;
15407 PyObject *argv[3];
15408 int ii;
15409
15410 argc = PyObject_Length(args);
15411 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15412 argv[ii] = PyTuple_GetItem(args,ii);
15413 }
15414 if ((argc >= 1) && (argc <= 2)) {
15415 int _v;
15416 {
15417 void *ptr;
15418 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
15419 _v = 0;
15420 PyErr_Clear();
15421 } else {
15422 _v = 1;
15423 }
15424 }
15425 if (_v) {
15426 if (argc <= 1) {
15427 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
15428 }
15429 {
15430 SWIG_PyObj_AsInt(argv[1]);
15431 if (PyErr_Occurred()) {
15432 _v = 0;
15433 PyErr_Clear();
15434 } else {
15435 _v = 1;
15436 }
15437 }
15438 if (_v) {
15439 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
15440 }
15441 }
15442 }
15443 if (argc == 2) {
15444 int _v;
15445 {
15446 void *ptr;
15447 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
15448 _v = 0;
15449 PyErr_Clear();
15450 } else {
15451 _v = 1;
15452 }
15453 }
15454 if (_v) {
15455 {
15456 void *ptr;
15457 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15458 _v = 0;
15459 PyErr_Clear();
15460 } else {
15461 _v = 1;
15462 }
15463 }
15464 if (_v) {
15465 return _wrap_new_BufferedPaintDC__SWIG_0(self,args);
15466 }
15467 }
15468 }
15469
15470 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'");
15471 return NULL;
15472}
15473
15474
15475static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15476 PyObject *obj;
15477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15478 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15479 Py_INCREF(obj);
15480 return Py_BuildValue((char *)"");
15481}
15482static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15483 PyObject *resultobj;
15484 wxScreenDC *result;
15485 char *kwnames[] = {
15486 NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 result = (wxScreenDC *)new wxScreenDC();
15493
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
15498 return resultobj;
15499 fail:
15500 return NULL;
15501}
15502
15503
15504static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj;
15506 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15507 wxWindow *arg2 = (wxWindow *) 0 ;
15508 bool result;
15509 PyObject * obj0 = 0 ;
15510 PyObject * obj1 = 0 ;
15511 char *kwnames[] = {
15512 (char *) "self",(char *) "window", NULL
15513 };
15514
15515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15517 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15521
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
15525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15526 return resultobj;
15527 fail:
15528 return NULL;
15529}
15530
15531
15532static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15535 wxRect *arg2 = (wxRect *) NULL ;
15536 bool result;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 char *kwnames[] = {
15540 (char *) "self",(char *) "rect", NULL
15541 };
15542
15543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15545 if (obj1) {
15546 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15547 }
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15551
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15556 return resultobj;
15557 fail:
15558 return NULL;
15559}
15560
15561
15562static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj;
15564 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15565 bool result;
15566 PyObject * obj0 = 0 ;
15567 char *kwnames[] = {
15568 (char *) "self", NULL
15569 };
15570
15571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 result = (bool)(arg1)->EndDrawingOnTop();
15576
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15581 return resultobj;
15582 fail:
15583 return NULL;
15584}
15585
15586
15587static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15588 PyObject *obj;
15589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15590 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15591 Py_INCREF(obj);
15592 return Py_BuildValue((char *)"");
15593}
15594static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15595 PyObject *resultobj;
15596 wxWindow *arg1 = (wxWindow *) 0 ;
15597 wxClientDC *result;
15598 PyObject * obj0 = 0 ;
15599 char *kwnames[] = {
15600 (char *) "win", NULL
15601 };
15602
15603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 result = (wxClientDC *)new wxClientDC(arg1);
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15613 return resultobj;
15614 fail:
15615 return NULL;
15616}
15617
15618
15619static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15620 PyObject *obj;
15621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15622 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15623 Py_INCREF(obj);
15624 return Py_BuildValue((char *)"");
15625}
15626static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj;
15628 wxWindow *arg1 = (wxWindow *) 0 ;
15629 wxPaintDC *result;
15630 PyObject * obj0 = 0 ;
15631 char *kwnames[] = {
15632 (char *) "win", NULL
15633 };
15634
15635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (wxPaintDC *)new wxPaintDC(arg1);
15640
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15645 return resultobj;
15646 fail:
15647 return NULL;
15648}
15649
15650
15651static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15652 PyObject *obj;
15653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15654 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15655 Py_INCREF(obj);
15656 return Py_BuildValue((char *)"");
15657}
15658static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj;
15660 wxWindow *arg1 = (wxWindow *) 0 ;
15661 wxWindowDC *result;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "win", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15669 {
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 result = (wxWindowDC *)new wxWindowDC(arg1);
15672
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15677 return resultobj;
15678 fail:
15679 return NULL;
15680}
15681
15682
15683static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15684 PyObject *obj;
15685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15686 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15687 Py_INCREF(obj);
15688 return Py_BuildValue((char *)"");
15689}
15690static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15691 PyObject *resultobj;
15692 wxDC *arg1 = 0 ;
15693 bool arg2 ;
15694 wxMirrorDC *result;
15695 PyObject * obj0 = 0 ;
15696 PyObject * obj1 = 0 ;
15697 char *kwnames[] = {
15698 (char *) "dc",(char *) "mirror", NULL
15699 };
15700
15701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15703 if (arg1 == NULL) {
15704 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15705 }
15706 {
15707 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15713
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15718 return resultobj;
15719 fail:
15720 return NULL;
15721}
15722
15723
15724static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15725 PyObject *obj;
15726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15727 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15728 Py_INCREF(obj);
15729 return Py_BuildValue((char *)"");
15730}
15731static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj;
15733 wxPrintData *arg1 = 0 ;
15734 wxPostScriptDC *result;
15735 PyObject * obj0 = 0 ;
15736 char *kwnames[] = {
15737 (char *) "printData", NULL
15738 };
15739
15740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15742 if (arg1 == NULL) {
15743 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15744 }
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15753 return resultobj;
15754 fail:
15755 return NULL;
15756}
15757
15758
15759static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj;
15761 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15762 wxPrintData *result;
15763 PyObject * obj0 = 0 ;
15764 char *kwnames[] = {
15765 (char *) "self", NULL
15766 };
15767
15768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15770 {
15771 PyThreadState* __tstate = wxPyBeginAllowThreads();
15772 {
15773 wxPrintData &_result_ref = (arg1)->GetPrintData();
15774 result = (wxPrintData *) &_result_ref;
15775 }
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15781 return resultobj;
15782 fail:
15783 return NULL;
15784}
15785
15786
15787static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15788 PyObject *resultobj;
15789 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15790 wxPrintData *arg2 = 0 ;
15791 PyObject * obj0 = 0 ;
15792 PyObject * obj1 = 0 ;
15793 char *kwnames[] = {
15794 (char *) "self",(char *) "data", NULL
15795 };
15796
15797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15799 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15800 if (arg2 == NULL) {
15801 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15802 }
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15806
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 Py_INCREF(Py_None); resultobj = Py_None;
15811 return resultobj;
15812 fail:
15813 return NULL;
15814}
15815
15816
15817static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15818 PyObject *resultobj;
15819 int arg1 ;
15820 PyObject * obj0 = 0 ;
15821 char *kwnames[] = {
15822 (char *) "ppi", NULL
15823 };
15824
15825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15826 {
15827 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 wxPostScriptDC::SetResolution(arg1);
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 Py_INCREF(Py_None); resultobj = Py_None;
15838 return resultobj;
15839 fail:
15840 return NULL;
15841}
15842
15843
15844static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj;
15846 int result;
15847 char *kwnames[] = {
15848 NULL
15849 };
15850
15851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (int)wxPostScriptDC::GetResolution();
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 resultobj = SWIG_PyObj_FromInt((int)result);
15860 return resultobj;
15861 fail:
15862 return NULL;
15863}
15864
15865
15866static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15867 PyObject *obj;
15868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15869 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15870 Py_INCREF(obj);
15871 return Py_BuildValue((char *)"");
15872}
15873static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15874 PyObject *resultobj;
15875 wxString const &arg1_defvalue = wxPyEmptyString ;
15876 wxString *arg1 = (wxString *) &arg1_defvalue ;
15877 wxMetaFile *result;
15878 bool temp1 = False ;
15879 PyObject * obj0 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "filename", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15885 if (obj0) {
15886 {
15887 arg1 = wxString_in_helper(obj0);
15888 if (arg1 == NULL) SWIG_fail;
15889 temp1 = True;
15890 }
15891 }
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15900 {
15901 if (temp1)
15902 delete arg1;
15903 }
15904 return resultobj;
15905 fail:
15906 {
15907 if (temp1)
15908 delete arg1;
15909 }
15910 return NULL;
15911}
15912
15913
15914static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15917 PyObject * obj0 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 delete arg1;
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 Py_INCREF(Py_None); resultobj = Py_None;
15932 return resultobj;
15933 fail:
15934 return NULL;
15935}
15936
15937
15938static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15939 PyObject *resultobj;
15940 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15941 bool result;
15942 PyObject * obj0 = 0 ;
15943 char *kwnames[] = {
15944 (char *) "self", NULL
15945 };
15946
15947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15949 {
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = (bool)(arg1)->Ok();
15952
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15957 return resultobj;
15958 fail:
15959 return NULL;
15960}
15961
15962
15963static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj;
15965 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15966 int arg2 = (int) 0 ;
15967 int arg3 = (int) 0 ;
15968 bool result;
15969 PyObject * obj0 = 0 ;
15970 PyObject * obj1 = 0 ;
15971 PyObject * obj2 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self",(char *) "width",(char *) "height", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15978 if (obj1) {
15979 {
15980 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15981 if (PyErr_Occurred()) SWIG_fail;
15982 }
15983 }
15984 if (obj2) {
15985 {
15986 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 }
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15998 return resultobj;
15999 fail:
16000 return NULL;
16001}
16002
16003
16004static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj;
16006 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16007 wxSize result;
16008 PyObject * obj0 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (arg1)->GetSize();
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 wxSize * resultptr;
16024 resultptr = new wxSize((wxSize &) result);
16025 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
16026 }
16027 return resultobj;
16028 fail:
16029 return NULL;
16030}
16031
16032
16033static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16034 PyObject *resultobj;
16035 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16036 int result;
16037 PyObject * obj0 = 0 ;
16038 char *kwnames[] = {
16039 (char *) "self", NULL
16040 };
16041
16042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16044 {
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 result = (int)(arg1)->GetWidth();
16047
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 resultobj = SWIG_PyObj_FromInt((int)result);
16052 return resultobj;
16053 fail:
16054 return NULL;
16055}
16056
16057
16058static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj;
16060 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16061 int result;
16062 PyObject * obj0 = 0 ;
16063 char *kwnames[] = {
16064 (char *) "self", NULL
16065 };
16066
16067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
16071 result = (int)(arg1)->GetHeight();
16072
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 resultobj = SWIG_PyObj_FromInt((int)result);
16077 return resultobj;
16078 fail:
16079 return NULL;
16080}
16081
16082
16083static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16084 PyObject *resultobj;
16085 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16086 wxString *result;
16087 PyObject * obj0 = 0 ;
16088 char *kwnames[] = {
16089 (char *) "self", NULL
16090 };
16091
16092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 {
16097 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16098 result = (wxString *) &_result_ref;
16099 }
16100
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 {
16105#if wxUSE_UNICODE
16106 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16107#else
16108 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16109#endif
16110 }
16111 return resultobj;
16112 fail:
16113 return NULL;
16114}
16115
16116
16117static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16118 PyObject *obj;
16119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16120 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16121 Py_INCREF(obj);
16122 return Py_BuildValue((char *)"");
16123}
16124static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16125 PyObject *resultobj;
16126 wxString const &arg1_defvalue = wxPyEmptyString ;
16127 wxString *arg1 = (wxString *) &arg1_defvalue ;
16128 int arg2 = (int) 0 ;
16129 int arg3 = (int) 0 ;
16130 wxString const &arg4_defvalue = wxPyEmptyString ;
16131 wxString *arg4 = (wxString *) &arg4_defvalue ;
16132 wxMetaFileDC *result;
16133 bool temp1 = False ;
16134 bool temp4 = False ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16139 char *kwnames[] = {
16140 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16141 };
16142
16143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16144 if (obj0) {
16145 {
16146 arg1 = wxString_in_helper(obj0);
16147 if (arg1 == NULL) SWIG_fail;
16148 temp1 = True;
16149 }
16150 }
16151 if (obj1) {
16152 {
16153 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 }
16157 if (obj2) {
16158 {
16159 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 }
16163 if (obj3) {
16164 {
16165 arg4 = wxString_in_helper(obj3);
16166 if (arg4 == NULL) SWIG_fail;
16167 temp4 = True;
16168 }
16169 }
16170 {
16171 PyThreadState* __tstate = wxPyBeginAllowThreads();
16172 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16173
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
16178 {
16179 if (temp1)
16180 delete arg1;
16181 }
16182 {
16183 if (temp4)
16184 delete arg4;
16185 }
16186 return resultobj;
16187 fail:
16188 {
16189 if (temp1)
16190 delete arg1;
16191 }
16192 {
16193 if (temp4)
16194 delete arg4;
16195 }
16196 return NULL;
16197}
16198
16199
16200static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16201 PyObject *resultobj;
16202 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16203 wxMetaFile *result;
16204 PyObject * obj0 = 0 ;
16205 char *kwnames[] = {
16206 (char *) "self", NULL
16207 };
16208
16209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = (wxMetaFile *)(arg1)->Close();
16214
16215 wxPyEndAllowThreads(__tstate);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
16219 return resultobj;
16220 fail:
16221 return NULL;
16222}
16223
16224
16225static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16226 PyObject *obj;
16227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16228 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16229 Py_INCREF(obj);
16230 return Py_BuildValue((char *)"");
16231}
16232static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj;
16234 wxPrintData *arg1 = 0 ;
16235 wxPrinterDC *result;
16236 PyObject * obj0 = 0 ;
16237 char *kwnames[] = {
16238 (char *) "printData", NULL
16239 };
16240
16241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16243 if (arg1 == NULL) {
16244 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
16254 return resultobj;
16255 fail:
16256 return NULL;
16257}
16258
16259
16260static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16261 PyObject *obj;
16262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16263 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16264 Py_INCREF(obj);
16265 return Py_BuildValue((char *)"");
16266}
16267static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16268 PyObject *resultobj;
16269 int arg1 ;
16270 int arg2 ;
16271 int arg3 = (int) True ;
16272 int arg4 = (int) 1 ;
16273 wxImageList *result;
16274 PyObject * obj0 = 0 ;
16275 PyObject * obj1 = 0 ;
16276 PyObject * obj2 = 0 ;
16277 PyObject * obj3 = 0 ;
16278 char *kwnames[] = {
16279 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16280 };
16281
16282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16283 {
16284 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16285 if (PyErr_Occurred()) SWIG_fail;
16286 }
16287 {
16288 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 if (obj2) {
16292 {
16293 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 }
16297 if (obj3) {
16298 {
16299 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 }
16303 {
16304 PyThreadState* __tstate = wxPyBeginAllowThreads();
16305 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16306
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 {
16311 resultobj = wxPyMake_wxObject(result);
16312 }
16313 return resultobj;
16314 fail:
16315 return NULL;
16316}
16317
16318
16319static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj;
16321 wxImageList *arg1 = (wxImageList *) 0 ;
16322 PyObject * obj0 = 0 ;
16323 char *kwnames[] = {
16324 (char *) "self", NULL
16325 };
16326
16327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 delete arg1;
16332
16333 wxPyEndAllowThreads(__tstate);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 Py_INCREF(Py_None); resultobj = Py_None;
16337 return resultobj;
16338 fail:
16339 return NULL;
16340}
16341
16342
16343static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16344 PyObject *resultobj;
16345 wxImageList *arg1 = (wxImageList *) 0 ;
16346 wxBitmap *arg2 = 0 ;
16347 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16348 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16349 int result;
16350 PyObject * obj0 = 0 ;
16351 PyObject * obj1 = 0 ;
16352 PyObject * obj2 = 0 ;
16353 char *kwnames[] = {
16354 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16355 };
16356
16357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16359 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16360 if (arg2 == NULL) {
16361 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16362 }
16363 if (obj2) {
16364 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16365 if (arg3 == NULL) {
16366 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16367 }
16368 }
16369 {
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16372
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 resultobj = SWIG_PyObj_FromInt((int)result);
16377 return resultobj;
16378 fail:
16379 return NULL;
16380}
16381
16382
16383static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16384 PyObject *resultobj;
16385 wxImageList *arg1 = (wxImageList *) 0 ;
16386 wxBitmap *arg2 = 0 ;
16387 wxColour *arg3 = 0 ;
16388 int result;
16389 wxColour temp3 ;
16390 PyObject * obj0 = 0 ;
16391 PyObject * obj1 = 0 ;
16392 PyObject * obj2 = 0 ;
16393 char *kwnames[] = {
16394 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16395 };
16396
16397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16399 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16400 if (arg2 == NULL) {
16401 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16402 }
16403 {
16404 arg3 = &temp3;
16405 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16406 }
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16410
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 resultobj = SWIG_PyObj_FromInt((int)result);
16415 return resultobj;
16416 fail:
16417 return NULL;
16418}
16419
16420
16421static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16422 PyObject *resultobj;
16423 wxImageList *arg1 = (wxImageList *) 0 ;
16424 wxIcon *arg2 = 0 ;
16425 int result;
16426 PyObject * obj0 = 0 ;
16427 PyObject * obj1 = 0 ;
16428 char *kwnames[] = {
16429 (char *) "self",(char *) "icon", NULL
16430 };
16431
16432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16434 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16435 if (arg2 == NULL) {
16436 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16437 }
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16441
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 resultobj = SWIG_PyObj_FromInt((int)result);
16446 return resultobj;
16447 fail:
16448 return NULL;
16449}
16450
16451
16452static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16453 PyObject *resultobj;
16454 wxImageList *arg1 = (wxImageList *) 0 ;
16455 int arg2 ;
16456 wxBitmap *arg3 = 0 ;
16457 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16458 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16459 bool result;
16460 PyObject * obj0 = 0 ;
16461 PyObject * obj1 = 0 ;
16462 PyObject * obj2 = 0 ;
16463 PyObject * obj3 = 0 ;
16464 char *kwnames[] = {
16465 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16466 };
16467
16468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16470 {
16471 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16475 if (arg3 == NULL) {
16476 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16477 }
16478 if (obj3) {
16479 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16480 if (arg4 == NULL) {
16481 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16482 }
16483 }
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16487
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16492 return resultobj;
16493 fail:
16494 return NULL;
16495}
16496
16497
16498static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16499 PyObject *resultobj;
16500 wxImageList *arg1 = (wxImageList *) 0 ;
16501 int arg2 ;
16502 wxDC *arg3 = 0 ;
16503 int arg4 ;
16504 int arg5 ;
16505 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16506 bool arg7 = (bool) (bool)False ;
16507 bool result;
16508 PyObject * obj0 = 0 ;
16509 PyObject * obj1 = 0 ;
16510 PyObject * obj2 = 0 ;
16511 PyObject * obj3 = 0 ;
16512 PyObject * obj4 = 0 ;
16513 PyObject * obj5 = 0 ;
16514 PyObject * obj6 = 0 ;
16515 char *kwnames[] = {
16516 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16517 };
16518
16519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16521 {
16522 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16526 if (arg3 == NULL) {
16527 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16528 }
16529 {
16530 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 {
16534 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16535 if (PyErr_Occurred()) SWIG_fail;
16536 }
16537 if (obj5) {
16538 {
16539 arg6 = (int) SWIG_PyObj_AsInt(obj5);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 }
16543 if (obj6) {
16544 {
16545 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
16546 if (PyErr_Occurred()) SWIG_fail;
16547 }
16548 }
16549 {
16550 PyThreadState* __tstate = wxPyBeginAllowThreads();
16551 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16552
16553 wxPyEndAllowThreads(__tstate);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16557 return resultobj;
16558 fail:
16559 return NULL;
16560}
16561
16562
16563static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxImageList *arg1 = (wxImageList *) 0 ;
16566 int result;
16567 PyObject * obj0 = 0 ;
16568 char *kwnames[] = {
16569 (char *) "self", NULL
16570 };
16571
16572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16574 {
16575 PyThreadState* __tstate = wxPyBeginAllowThreads();
16576 result = (int)(arg1)->GetImageCount();
16577
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_PyObj_FromInt((int)result);
16582 return resultobj;
16583 fail:
16584 return NULL;
16585}
16586
16587
16588static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj;
16590 wxImageList *arg1 = (wxImageList *) 0 ;
16591 int arg2 ;
16592 bool result;
16593 PyObject * obj0 = 0 ;
16594 PyObject * obj1 = 0 ;
16595 char *kwnames[] = {
16596 (char *) "self",(char *) "index", NULL
16597 };
16598
16599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16601 {
16602 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16603 if (PyErr_Occurred()) SWIG_fail;
16604 }
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = (bool)(arg1)->Remove(arg2);
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16613 return resultobj;
16614 fail:
16615 return NULL;
16616}
16617
16618
16619static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16620 PyObject *resultobj;
16621 wxImageList *arg1 = (wxImageList *) 0 ;
16622 bool result;
16623 PyObject * obj0 = 0 ;
16624 char *kwnames[] = {
16625 (char *) "self", NULL
16626 };
16627
16628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 result = (bool)(arg1)->RemoveAll();
16633
16634 wxPyEndAllowThreads(__tstate);
16635 if (PyErr_Occurred()) SWIG_fail;
16636 }
16637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16638 return resultobj;
16639 fail:
16640 return NULL;
16641}
16642
16643
16644static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj;
16646 wxImageList *arg1 = (wxImageList *) 0 ;
16647 int arg2 ;
16648 int *arg3 = 0 ;
16649 int *arg4 = 0 ;
16650 int temp3 ;
16651 int temp4 ;
16652 PyObject * obj0 = 0 ;
16653 PyObject * obj1 = 0 ;
16654 char *kwnames[] = {
16655 (char *) "self",(char *) "index", NULL
16656 };
16657
16658 arg3 = &temp3;
16659 arg4 = &temp4;
16660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16662 {
16663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16664 if (PyErr_Occurred()) SWIG_fail;
16665 }
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
16668 (arg1)->GetSize(arg2,*arg3,*arg4);
16669
16670 wxPyEndAllowThreads(__tstate);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 Py_INCREF(Py_None); resultobj = Py_None;
16674 {
16675 PyObject *o = PyInt_FromLong((long) (*arg3));
16676 resultobj = t_output_helper(resultobj,o);
16677 }
16678 {
16679 PyObject *o = PyInt_FromLong((long) (*arg4));
16680 resultobj = t_output_helper(resultobj,o);
16681 }
16682 return resultobj;
16683 fail:
16684 return NULL;
16685}
16686
16687
16688static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16689 PyObject *obj;
16690 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16691 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16692 Py_INCREF(obj);
16693 return Py_BuildValue((char *)"");
16694}
16695static int _wrap_NORMAL_FONT_set(PyObject *) {
16696 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16697 return 1;
16698}
16699
16700
16701static PyObject *_wrap_NORMAL_FONT_get() {
16702 PyObject *pyobj;
16703
16704 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
16705 return pyobj;
16706}
16707
16708
16709static int _wrap_SMALL_FONT_set(PyObject *) {
16710 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16711 return 1;
16712}
16713
16714
16715static PyObject *_wrap_SMALL_FONT_get() {
16716 PyObject *pyobj;
16717
16718 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
16719 return pyobj;
16720}
16721
16722
16723static int _wrap_ITALIC_FONT_set(PyObject *) {
16724 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16725 return 1;
16726}
16727
16728
16729static PyObject *_wrap_ITALIC_FONT_get() {
16730 PyObject *pyobj;
16731
16732 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
16733 return pyobj;
16734}
16735
16736
16737static int _wrap_SWISS_FONT_set(PyObject *) {
16738 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16739 return 1;
16740}
16741
16742
16743static PyObject *_wrap_SWISS_FONT_get() {
16744 PyObject *pyobj;
16745
16746 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
16747 return pyobj;
16748}
16749
16750
16751static int _wrap_RED_PEN_set(PyObject *) {
16752 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16753 return 1;
16754}
16755
16756
16757static PyObject *_wrap_RED_PEN_get() {
16758 PyObject *pyobj;
16759
16760 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
16761 return pyobj;
16762}
16763
16764
16765static int _wrap_CYAN_PEN_set(PyObject *) {
16766 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16767 return 1;
16768}
16769
16770
16771static PyObject *_wrap_CYAN_PEN_get() {
16772 PyObject *pyobj;
16773
16774 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
16775 return pyobj;
16776}
16777
16778
16779static int _wrap_GREEN_PEN_set(PyObject *) {
16780 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16781 return 1;
16782}
16783
16784
16785static PyObject *_wrap_GREEN_PEN_get() {
16786 PyObject *pyobj;
16787
16788 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16789 return pyobj;
16790}
16791
16792
16793static int _wrap_BLACK_PEN_set(PyObject *) {
16794 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16795 return 1;
16796}
16797
16798
16799static PyObject *_wrap_BLACK_PEN_get() {
16800 PyObject *pyobj;
16801
16802 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16803 return pyobj;
16804}
16805
16806
16807static int _wrap_WHITE_PEN_set(PyObject *) {
16808 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16809 return 1;
16810}
16811
16812
16813static PyObject *_wrap_WHITE_PEN_get() {
16814 PyObject *pyobj;
16815
16816 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16817 return pyobj;
16818}
16819
16820
16821static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16822 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16823 return 1;
16824}
16825
16826
16827static PyObject *_wrap_TRANSPARENT_PEN_get() {
16828 PyObject *pyobj;
16829
16830 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16831 return pyobj;
16832}
16833
16834
16835static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16836 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16837 return 1;
16838}
16839
16840
16841static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16842 PyObject *pyobj;
16843
16844 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16845 return pyobj;
16846}
16847
16848
16849static int _wrap_GREY_PEN_set(PyObject *) {
16850 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16851 return 1;
16852}
16853
16854
16855static PyObject *_wrap_GREY_PEN_get() {
16856 PyObject *pyobj;
16857
16858 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16859 return pyobj;
16860}
16861
16862
16863static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16864 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16865 return 1;
16866}
16867
16868
16869static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16870 PyObject *pyobj;
16871
16872 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16873 return pyobj;
16874}
16875
16876
16877static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16878 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16879 return 1;
16880}
16881
16882
16883static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16884 PyObject *pyobj;
16885
16886 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16887 return pyobj;
16888}
16889
16890
16891static int _wrap_BLUE_BRUSH_set(PyObject *) {
16892 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16893 return 1;
16894}
16895
16896
16897static PyObject *_wrap_BLUE_BRUSH_get() {
16898 PyObject *pyobj;
16899
16900 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16901 return pyobj;
16902}
16903
16904
16905static int _wrap_GREEN_BRUSH_set(PyObject *) {
16906 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16907 return 1;
16908}
16909
16910
16911static PyObject *_wrap_GREEN_BRUSH_get() {
16912 PyObject *pyobj;
16913
16914 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16915 return pyobj;
16916}
16917
16918
16919static int _wrap_WHITE_BRUSH_set(PyObject *) {
16920 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16921 return 1;
16922}
16923
16924
16925static PyObject *_wrap_WHITE_BRUSH_get() {
16926 PyObject *pyobj;
16927
16928 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16929 return pyobj;
16930}
16931
16932
16933static int _wrap_BLACK_BRUSH_set(PyObject *) {
16934 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16935 return 1;
16936}
16937
16938
16939static PyObject *_wrap_BLACK_BRUSH_get() {
16940 PyObject *pyobj;
16941
16942 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16943 return pyobj;
16944}
16945
16946
16947static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16948 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16949 return 1;
16950}
16951
16952
16953static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16954 PyObject *pyobj;
16955
16956 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16957 return pyobj;
16958}
16959
16960
16961static int _wrap_CYAN_BRUSH_set(PyObject *) {
16962 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16963 return 1;
16964}
16965
16966
16967static PyObject *_wrap_CYAN_BRUSH_get() {
16968 PyObject *pyobj;
16969
16970 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16971 return pyobj;
16972}
16973
16974
16975static int _wrap_RED_BRUSH_set(PyObject *) {
16976 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16977 return 1;
16978}
16979
16980
16981static PyObject *_wrap_RED_BRUSH_get() {
16982 PyObject *pyobj;
16983
16984 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16985 return pyobj;
16986}
16987
16988
16989static int _wrap_GREY_BRUSH_set(PyObject *) {
16990 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16991 return 1;
16992}
16993
16994
16995static PyObject *_wrap_GREY_BRUSH_get() {
16996 PyObject *pyobj;
16997
16998 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16999 return pyobj;
17000}
17001
17002
17003static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
17004 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17005 return 1;
17006}
17007
17008
17009static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17010 PyObject *pyobj;
17011
17012 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
17013 return pyobj;
17014}
17015
17016
17017static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
17018 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17019 return 1;
17020}
17021
17022
17023static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17024 PyObject *pyobj;
17025
17026 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
17027 return pyobj;
17028}
17029
17030
17031static int _wrap_BLACK_set(PyObject *) {
17032 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17033 return 1;
17034}
17035
17036
17037static PyObject *_wrap_BLACK_get() {
17038 PyObject *pyobj;
17039
17040 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
17041 return pyobj;
17042}
17043
17044
17045static int _wrap_WHITE_set(PyObject *) {
17046 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17047 return 1;
17048}
17049
17050
17051static PyObject *_wrap_WHITE_get() {
17052 PyObject *pyobj;
17053
17054 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
17055 return pyobj;
17056}
17057
17058
17059static int _wrap_RED_set(PyObject *) {
17060 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17061 return 1;
17062}
17063
17064
17065static PyObject *_wrap_RED_get() {
17066 PyObject *pyobj;
17067
17068 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
17069 return pyobj;
17070}
17071
17072
17073static int _wrap_BLUE_set(PyObject *) {
17074 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17075 return 1;
17076}
17077
17078
17079static PyObject *_wrap_BLUE_get() {
17080 PyObject *pyobj;
17081
17082 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
17083 return pyobj;
17084}
17085
17086
17087static int _wrap_GREEN_set(PyObject *) {
17088 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17089 return 1;
17090}
17091
17092
17093static PyObject *_wrap_GREEN_get() {
17094 PyObject *pyobj;
17095
17096 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
17097 return pyobj;
17098}
17099
17100
17101static int _wrap_CYAN_set(PyObject *) {
17102 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17103 return 1;
17104}
17105
17106
17107static PyObject *_wrap_CYAN_get() {
17108 PyObject *pyobj;
17109
17110 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
17111 return pyobj;
17112}
17113
17114
17115static int _wrap_LIGHT_GREY_set(PyObject *) {
17116 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17117 return 1;
17118}
17119
17120
17121static PyObject *_wrap_LIGHT_GREY_get() {
17122 PyObject *pyobj;
17123
17124 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
17125 return pyobj;
17126}
17127
17128
17129static int _wrap_STANDARD_CURSOR_set(PyObject *) {
17130 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17131 return 1;
17132}
17133
17134
17135static PyObject *_wrap_STANDARD_CURSOR_get() {
17136 PyObject *pyobj;
17137
17138 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
17139 return pyobj;
17140}
17141
17142
17143static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
17144 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17145 return 1;
17146}
17147
17148
17149static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17150 PyObject *pyobj;
17151
17152 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
17153 return pyobj;
17154}
17155
17156
17157static int _wrap_CROSS_CURSOR_set(PyObject *) {
17158 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17159 return 1;
17160}
17161
17162
17163static PyObject *_wrap_CROSS_CURSOR_get() {
17164 PyObject *pyobj;
17165
17166 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
17167 return pyobj;
17168}
17169
17170
17171static int _wrap_NullBitmap_set(PyObject *) {
17172 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17173 return 1;
17174}
17175
17176
17177static PyObject *_wrap_NullBitmap_get() {
17178 PyObject *pyobj;
17179
17180 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
17181 return pyobj;
17182}
17183
17184
17185static int _wrap_NullIcon_set(PyObject *) {
17186 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17187 return 1;
17188}
17189
17190
17191static PyObject *_wrap_NullIcon_get() {
17192 PyObject *pyobj;
17193
17194 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
17195 return pyobj;
17196}
17197
17198
17199static int _wrap_NullCursor_set(PyObject *) {
17200 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17201 return 1;
17202}
17203
17204
17205static PyObject *_wrap_NullCursor_get() {
17206 PyObject *pyobj;
17207
17208 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
17209 return pyobj;
17210}
17211
17212
17213static int _wrap_NullPen_set(PyObject *) {
17214 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17215 return 1;
17216}
17217
17218
17219static PyObject *_wrap_NullPen_get() {
17220 PyObject *pyobj;
17221
17222 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
17223 return pyobj;
17224}
17225
17226
17227static int _wrap_NullBrush_set(PyObject *) {
17228 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17229 return 1;
17230}
17231
17232
17233static PyObject *_wrap_NullBrush_get() {
17234 PyObject *pyobj;
17235
17236 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
17237 return pyobj;
17238}
17239
17240
17241static int _wrap_NullPalette_set(PyObject *) {
17242 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17243 return 1;
17244}
17245
17246
17247static PyObject *_wrap_NullPalette_get() {
17248 PyObject *pyobj;
17249
17250 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
17251 return pyobj;
17252}
17253
17254
17255static int _wrap_NullFont_set(PyObject *) {
17256 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17257 return 1;
17258}
17259
17260
17261static PyObject *_wrap_NullFont_get() {
17262 PyObject *pyobj;
17263
17264 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
17265 return pyobj;
17266}
17267
17268
17269static int _wrap_NullColour_set(PyObject *) {
17270 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17271 return 1;
17272}
17273
17274
17275static PyObject *_wrap_NullColour_get() {
17276 PyObject *pyobj;
17277
17278 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
17279 return pyobj;
17280}
17281
17282
17283static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17284 PyObject *resultobj;
17285 wxPenList *arg1 = (wxPenList *) 0 ;
17286 wxPen *arg2 = (wxPen *) 0 ;
17287 PyObject * obj0 = 0 ;
17288 PyObject * obj1 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self",(char *) "pen", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17295 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 (arg1)->AddPen(arg2);
17299
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 Py_INCREF(Py_None); resultobj = Py_None;
17304 return resultobj;
17305 fail:
17306 return NULL;
17307}
17308
17309
17310static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17311 PyObject *resultobj;
17312 wxPenList *arg1 = (wxPenList *) 0 ;
17313 wxColour *arg2 = 0 ;
17314 int arg3 ;
17315 int arg4 ;
17316 wxPen *result;
17317 wxColour temp2 ;
17318 PyObject * obj0 = 0 ;
17319 PyObject * obj1 = 0 ;
17320 PyObject * obj2 = 0 ;
17321 PyObject * obj3 = 0 ;
17322 char *kwnames[] = {
17323 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17324 };
17325
17326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17328 {
17329 arg2 = &temp2;
17330 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17331 }
17332 {
17333 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 }
17340 {
17341 PyThreadState* __tstate = wxPyBeginAllowThreads();
17342 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17343
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
17348 return resultobj;
17349 fail:
17350 return NULL;
17351}
17352
17353
17354static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj;
17356 wxPenList *arg1 = (wxPenList *) 0 ;
17357 wxPen *arg2 = (wxPen *) 0 ;
17358 PyObject * obj0 = 0 ;
17359 PyObject * obj1 = 0 ;
17360 char *kwnames[] = {
17361 (char *) "self",(char *) "pen", NULL
17362 };
17363
17364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17366 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 (arg1)->RemovePen(arg2);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 Py_INCREF(Py_None); resultobj = Py_None;
17375 return resultobj;
17376 fail:
17377 return NULL;
17378}
17379
17380
17381static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj;
17383 wxPenList *arg1 = (wxPenList *) 0 ;
17384 int result;
17385 PyObject * obj0 = 0 ;
17386 char *kwnames[] = {
17387 (char *) "self", NULL
17388 };
17389
17390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17392 {
17393 PyThreadState* __tstate = wxPyBeginAllowThreads();
17394 result = (int)(arg1)->GetCount();
17395
17396 wxPyEndAllowThreads(__tstate);
17397 if (PyErr_Occurred()) SWIG_fail;
17398 }
17399 resultobj = SWIG_PyObj_FromInt((int)result);
17400 return resultobj;
17401 fail:
17402 return NULL;
17403}
17404
17405
17406static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17407 PyObject *obj;
17408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17409 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17410 Py_INCREF(obj);
17411 return Py_BuildValue((char *)"");
17412}
17413static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj;
17415 wxBrushList *arg1 = (wxBrushList *) 0 ;
17416 wxBrush *arg2 = (wxBrush *) 0 ;
17417 PyObject * obj0 = 0 ;
17418 PyObject * obj1 = 0 ;
17419 char *kwnames[] = {
17420 (char *) "self",(char *) "brush", NULL
17421 };
17422
17423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17425 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17426 {
17427 PyThreadState* __tstate = wxPyBeginAllowThreads();
17428 (arg1)->AddBrush(arg2);
17429
17430 wxPyEndAllowThreads(__tstate);
17431 if (PyErr_Occurred()) SWIG_fail;
17432 }
17433 Py_INCREF(Py_None); resultobj = Py_None;
17434 return resultobj;
17435 fail:
17436 return NULL;
17437}
17438
17439
17440static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj;
17442 wxBrushList *arg1 = (wxBrushList *) 0 ;
17443 wxColour *arg2 = 0 ;
17444 int arg3 ;
17445 wxBrush *result;
17446 wxColour temp2 ;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 PyObject * obj2 = 0 ;
17450 char *kwnames[] = {
17451 (char *) "self",(char *) "colour",(char *) "style", NULL
17452 };
17453
17454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17456 {
17457 arg2 = &temp2;
17458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17459 }
17460 {
17461 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 {
17465 PyThreadState* __tstate = wxPyBeginAllowThreads();
17466 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17467
17468 wxPyEndAllowThreads(__tstate);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 }
17471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
17472 return resultobj;
17473 fail:
17474 return NULL;
17475}
17476
17477
17478static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj;
17480 wxBrushList *arg1 = (wxBrushList *) 0 ;
17481 wxBrush *arg2 = (wxBrush *) 0 ;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 char *kwnames[] = {
17485 (char *) "self",(char *) "brush", NULL
17486 };
17487
17488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17491 {
17492 PyThreadState* __tstate = wxPyBeginAllowThreads();
17493 (arg1)->RemoveBrush(arg2);
17494
17495 wxPyEndAllowThreads(__tstate);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 }
17498 Py_INCREF(Py_None); resultobj = Py_None;
17499 return resultobj;
17500 fail:
17501 return NULL;
17502}
17503
17504
17505static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17506 PyObject *resultobj;
17507 wxBrushList *arg1 = (wxBrushList *) 0 ;
17508 int result;
17509 PyObject * obj0 = 0 ;
17510 char *kwnames[] = {
17511 (char *) "self", NULL
17512 };
17513
17514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17516 {
17517 PyThreadState* __tstate = wxPyBeginAllowThreads();
17518 result = (int)(arg1)->GetCount();
17519
17520 wxPyEndAllowThreads(__tstate);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 }
17523 resultobj = SWIG_PyObj_FromInt((int)result);
17524 return resultobj;
17525 fail:
17526 return NULL;
17527}
17528
17529
17530static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17531 PyObject *obj;
17532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17533 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17534 Py_INCREF(obj);
17535 return Py_BuildValue((char *)"");
17536}
17537static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj;
17539 wxColourDatabase *result;
17540 char *kwnames[] = {
17541 NULL
17542 };
17543
17544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 result = (wxColourDatabase *)new wxColourDatabase();
17548
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
17553 return resultobj;
17554 fail:
17555 return NULL;
17556}
17557
17558
17559static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj;
17561 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17562 PyObject * obj0 = 0 ;
17563 char *kwnames[] = {
17564 (char *) "self", NULL
17565 };
17566
17567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 delete arg1;
17572
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 Py_INCREF(Py_None); resultobj = Py_None;
17577 return resultobj;
17578 fail:
17579 return NULL;
17580}
17581
17582
17583static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj;
17585 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17586 wxString *arg2 = 0 ;
17587 wxColour result;
17588 bool temp2 = False ;
17589 PyObject * obj0 = 0 ;
17590 PyObject * obj1 = 0 ;
17591 char *kwnames[] = {
17592 (char *) "self",(char *) "name", NULL
17593 };
17594
17595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17597 {
17598 arg2 = wxString_in_helper(obj1);
17599 if (arg2 == NULL) SWIG_fail;
17600 temp2 = True;
17601 }
17602 {
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17605
17606 wxPyEndAllowThreads(__tstate);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 }
17609 {
17610 wxColour * resultptr;
17611 resultptr = new wxColour((wxColour &) result);
17612 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17613 }
17614 {
17615 if (temp2)
17616 delete arg2;
17617 }
17618 return resultobj;
17619 fail:
17620 {
17621 if (temp2)
17622 delete arg2;
17623 }
17624 return NULL;
17625}
17626
17627
17628static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17629 PyObject *resultobj;
17630 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17631 wxColour *arg2 = 0 ;
17632 wxString result;
17633 wxColour temp2 ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 char *kwnames[] = {
17637 (char *) "self",(char *) "colour", NULL
17638 };
17639
17640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17642 {
17643 arg2 = &temp2;
17644 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17645 }
17646 {
17647 PyThreadState* __tstate = wxPyBeginAllowThreads();
17648 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17649
17650 wxPyEndAllowThreads(__tstate);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 }
17653 {
17654#if wxUSE_UNICODE
17655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17656#else
17657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17658#endif
17659 }
17660 return resultobj;
17661 fail:
17662 return NULL;
17663}
17664
17665
17666static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17667 PyObject *resultobj;
17668 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17669 wxString *arg2 = 0 ;
17670 wxColour *arg3 = 0 ;
17671 bool temp2 = False ;
17672 wxColour temp3 ;
17673 PyObject * obj0 = 0 ;
17674 PyObject * obj1 = 0 ;
17675 PyObject * obj2 = 0 ;
17676 char *kwnames[] = {
17677 (char *) "self",(char *) "name",(char *) "colour", NULL
17678 };
17679
17680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17682 {
17683 arg2 = wxString_in_helper(obj1);
17684 if (arg2 == NULL) SWIG_fail;
17685 temp2 = True;
17686 }
17687 {
17688 arg3 = &temp3;
17689 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17690 }
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17694
17695 wxPyEndAllowThreads(__tstate);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 Py_INCREF(Py_None); resultobj = Py_None;
17699 {
17700 if (temp2)
17701 delete arg2;
17702 }
17703 return resultobj;
17704 fail:
17705 {
17706 if (temp2)
17707 delete arg2;
17708 }
17709 return NULL;
17710}
17711
17712
17713static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17714 PyObject *resultobj;
17715 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17716 wxString *arg2 = 0 ;
17717 int arg3 ;
17718 int arg4 ;
17719 int arg5 ;
17720 bool temp2 = False ;
17721 PyObject * obj0 = 0 ;
17722 PyObject * obj1 = 0 ;
17723 PyObject * obj2 = 0 ;
17724 PyObject * obj3 = 0 ;
17725 PyObject * obj4 = 0 ;
17726 char *kwnames[] = {
17727 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17728 };
17729
17730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17732 {
17733 arg2 = wxString_in_helper(obj1);
17734 if (arg2 == NULL) SWIG_fail;
17735 temp2 = True;
17736 }
17737 {
17738 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 {
17742 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 {
17746 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17747 if (PyErr_Occurred()) SWIG_fail;
17748 }
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17752
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 Py_INCREF(Py_None); resultobj = Py_None;
17757 {
17758 if (temp2)
17759 delete arg2;
17760 }
17761 return resultobj;
17762 fail:
17763 {
17764 if (temp2)
17765 delete arg2;
17766 }
17767 return NULL;
17768}
17769
17770
17771static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17772 PyObject *obj;
17773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17774 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17775 Py_INCREF(obj);
17776 return Py_BuildValue((char *)"");
17777}
17778static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj;
17780 wxFontList *arg1 = (wxFontList *) 0 ;
17781 wxFont *arg2 = (wxFont *) 0 ;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 char *kwnames[] = {
17785 (char *) "self",(char *) "font", NULL
17786 };
17787
17788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17790 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 (arg1)->AddFont(arg2);
17794
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 Py_INCREF(Py_None); resultobj = Py_None;
17799 return resultobj;
17800 fail:
17801 return NULL;
17802}
17803
17804
17805static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj;
17807 wxFontList *arg1 = (wxFontList *) 0 ;
17808 int arg2 ;
17809 int arg3 ;
17810 int arg4 ;
17811 int arg5 ;
17812 bool arg6 = (bool) False ;
17813 wxString const &arg7_defvalue = wxPyEmptyString ;
17814 wxString *arg7 = (wxString *) &arg7_defvalue ;
17815 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17816 wxFont *result;
17817 bool temp7 = False ;
17818 PyObject * obj0 = 0 ;
17819 PyObject * obj1 = 0 ;
17820 PyObject * obj2 = 0 ;
17821 PyObject * obj3 = 0 ;
17822 PyObject * obj4 = 0 ;
17823 PyObject * obj5 = 0 ;
17824 PyObject * obj6 = 0 ;
17825 PyObject * obj7 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17832 {
17833 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 {
17837 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 {
17841 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17842 if (PyErr_Occurred()) SWIG_fail;
17843 }
17844 {
17845 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 if (obj5) {
17849 {
17850 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 }
17854 if (obj6) {
17855 {
17856 arg7 = wxString_in_helper(obj6);
17857 if (arg7 == NULL) SWIG_fail;
17858 temp7 = True;
17859 }
17860 }
17861 if (obj7) {
17862 {
17863 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 }
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
17869 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17870
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17875 {
17876 if (temp7)
17877 delete arg7;
17878 }
17879 return resultobj;
17880 fail:
17881 {
17882 if (temp7)
17883 delete arg7;
17884 }
17885 return NULL;
17886}
17887
17888
17889static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17890 PyObject *resultobj;
17891 wxFontList *arg1 = (wxFontList *) 0 ;
17892 wxFont *arg2 = (wxFont *) 0 ;
17893 PyObject * obj0 = 0 ;
17894 PyObject * obj1 = 0 ;
17895 char *kwnames[] = {
17896 (char *) "self",(char *) "font", NULL
17897 };
17898
17899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17901 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17902 {
17903 PyThreadState* __tstate = wxPyBeginAllowThreads();
17904 (arg1)->RemoveFont(arg2);
17905
17906 wxPyEndAllowThreads(__tstate);
17907 if (PyErr_Occurred()) SWIG_fail;
17908 }
17909 Py_INCREF(Py_None); resultobj = Py_None;
17910 return resultobj;
17911 fail:
17912 return NULL;
17913}
17914
17915
17916static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17917 PyObject *resultobj;
17918 wxFontList *arg1 = (wxFontList *) 0 ;
17919 int result;
17920 PyObject * obj0 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = (int)(arg1)->GetCount();
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 resultobj = SWIG_PyObj_FromInt((int)result);
17935 return resultobj;
17936 fail:
17937 return NULL;
17938}
17939
17940
17941static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17942 PyObject *obj;
17943 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17944 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17945 Py_INCREF(obj);
17946 return Py_BuildValue((char *)"");
17947}
17948static int _wrap_TheFontList_set(PyObject *) {
17949 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17950 return 1;
17951}
17952
17953
17954static PyObject *_wrap_TheFontList_get() {
17955 PyObject *pyobj;
17956
17957 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17958 return pyobj;
17959}
17960
17961
17962static int _wrap_ThePenList_set(PyObject *) {
17963 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17964 return 1;
17965}
17966
17967
17968static PyObject *_wrap_ThePenList_get() {
17969 PyObject *pyobj;
17970
17971 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17972 return pyobj;
17973}
17974
17975
17976static int _wrap_TheBrushList_set(PyObject *) {
17977 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17978 return 1;
17979}
17980
17981
17982static PyObject *_wrap_TheBrushList_get() {
17983 PyObject *pyobj;
17984
17985 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17986 return pyobj;
17987}
17988
17989
17990static int _wrap_TheColourDatabase_set(PyObject *) {
17991 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17992 return 1;
17993}
17994
17995
17996static PyObject *_wrap_TheColourDatabase_get() {
17997 PyObject *pyobj;
17998
17999 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
18000 return pyobj;
18001}
18002
18003
18004static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj;
18006 wxEffects *result;
18007 char *kwnames[] = {
18008 NULL
18009 };
18010
18011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = (wxEffects *)new wxEffects();
18015
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
18020 return resultobj;
18021 fail:
18022 return NULL;
18023}
18024
18025
18026static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj;
18028 wxEffects *arg1 = (wxEffects *) 0 ;
18029 wxColour result;
18030 PyObject * obj0 = 0 ;
18031 char *kwnames[] = {
18032 (char *) "self", NULL
18033 };
18034
18035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = ((wxEffects const *)arg1)->GetHighlightColour();
18040
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 {
18045 wxColour * resultptr;
18046 resultptr = new wxColour((wxColour &) result);
18047 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18048 }
18049 return resultobj;
18050 fail:
18051 return NULL;
18052}
18053
18054
18055static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18056 PyObject *resultobj;
18057 wxEffects *arg1 = (wxEffects *) 0 ;
18058 wxColour result;
18059 PyObject * obj0 = 0 ;
18060 char *kwnames[] = {
18061 (char *) "self", NULL
18062 };
18063
18064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = ((wxEffects const *)arg1)->GetLightShadow();
18069
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 {
18074 wxColour * resultptr;
18075 resultptr = new wxColour((wxColour &) result);
18076 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18077 }
18078 return resultobj;
18079 fail:
18080 return NULL;
18081}
18082
18083
18084static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18085 PyObject *resultobj;
18086 wxEffects *arg1 = (wxEffects *) 0 ;
18087 wxColour result;
18088 PyObject * obj0 = 0 ;
18089 char *kwnames[] = {
18090 (char *) "self", NULL
18091 };
18092
18093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18095 {
18096 PyThreadState* __tstate = wxPyBeginAllowThreads();
18097 result = ((wxEffects const *)arg1)->GetFaceColour();
18098
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 {
18103 wxColour * resultptr;
18104 resultptr = new wxColour((wxColour &) result);
18105 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18106 }
18107 return resultobj;
18108 fail:
18109 return NULL;
18110}
18111
18112
18113static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18114 PyObject *resultobj;
18115 wxEffects *arg1 = (wxEffects *) 0 ;
18116 wxColour result;
18117 PyObject * obj0 = 0 ;
18118 char *kwnames[] = {
18119 (char *) "self", NULL
18120 };
18121
18122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 result = ((wxEffects const *)arg1)->GetMediumShadow();
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 {
18132 wxColour * resultptr;
18133 resultptr = new wxColour((wxColour &) result);
18134 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18135 }
18136 return resultobj;
18137 fail:
18138 return NULL;
18139}
18140
18141
18142static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj;
18144 wxEffects *arg1 = (wxEffects *) 0 ;
18145 wxColour result;
18146 PyObject * obj0 = 0 ;
18147 char *kwnames[] = {
18148 (char *) "self", NULL
18149 };
18150
18151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18153 {
18154 PyThreadState* __tstate = wxPyBeginAllowThreads();
18155 result = ((wxEffects const *)arg1)->GetDarkShadow();
18156
18157 wxPyEndAllowThreads(__tstate);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 }
18160 {
18161 wxColour * resultptr;
18162 resultptr = new wxColour((wxColour &) result);
18163 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
18164 }
18165 return resultobj;
18166 fail:
18167 return NULL;
18168}
18169
18170
18171static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 wxEffects *arg1 = (wxEffects *) 0 ;
18174 wxColour *arg2 = 0 ;
18175 wxColour temp2 ;
18176 PyObject * obj0 = 0 ;
18177 PyObject * obj1 = 0 ;
18178 char *kwnames[] = {
18179 (char *) "self",(char *) "c", NULL
18180 };
18181
18182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18184 {
18185 arg2 = &temp2;
18186 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18187 }
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18191
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 Py_INCREF(Py_None); resultobj = Py_None;
18196 return resultobj;
18197 fail:
18198 return NULL;
18199}
18200
18201
18202static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj;
18204 wxEffects *arg1 = (wxEffects *) 0 ;
18205 wxColour *arg2 = 0 ;
18206 wxColour temp2 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "self",(char *) "c", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18215 {
18216 arg2 = &temp2;
18217 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18218 }
18219 {
18220 PyThreadState* __tstate = wxPyBeginAllowThreads();
18221 (arg1)->SetLightShadow((wxColour const &)*arg2);
18222
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 Py_INCREF(Py_None); resultobj = Py_None;
18227 return resultobj;
18228 fail:
18229 return NULL;
18230}
18231
18232
18233static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj;
18235 wxEffects *arg1 = (wxEffects *) 0 ;
18236 wxColour *arg2 = 0 ;
18237 wxColour temp2 ;
18238 PyObject * obj0 = 0 ;
18239 PyObject * obj1 = 0 ;
18240 char *kwnames[] = {
18241 (char *) "self",(char *) "c", NULL
18242 };
18243
18244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18246 {
18247 arg2 = &temp2;
18248 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18249 }
18250 {
18251 PyThreadState* __tstate = wxPyBeginAllowThreads();
18252 (arg1)->SetFaceColour((wxColour const &)*arg2);
18253
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 Py_INCREF(Py_None); resultobj = Py_None;
18258 return resultobj;
18259 fail:
18260 return NULL;
18261}
18262
18263
18264static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18265 PyObject *resultobj;
18266 wxEffects *arg1 = (wxEffects *) 0 ;
18267 wxColour *arg2 = 0 ;
18268 wxColour temp2 ;
18269 PyObject * obj0 = 0 ;
18270 PyObject * obj1 = 0 ;
18271 char *kwnames[] = {
18272 (char *) "self",(char *) "c", NULL
18273 };
18274
18275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18277 {
18278 arg2 = &temp2;
18279 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18280 }
18281 {
18282 PyThreadState* __tstate = wxPyBeginAllowThreads();
18283 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18284
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 Py_INCREF(Py_None); resultobj = Py_None;
18289 return resultobj;
18290 fail:
18291 return NULL;
18292}
18293
18294
18295static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18296 PyObject *resultobj;
18297 wxEffects *arg1 = (wxEffects *) 0 ;
18298 wxColour *arg2 = 0 ;
18299 wxColour temp2 ;
18300 PyObject * obj0 = 0 ;
18301 PyObject * obj1 = 0 ;
18302 char *kwnames[] = {
18303 (char *) "self",(char *) "c", NULL
18304 };
18305
18306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18308 {
18309 arg2 = &temp2;
18310 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18311 }
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18315
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 Py_INCREF(Py_None); resultobj = Py_None;
18320 return resultobj;
18321 fail:
18322 return NULL;
18323}
18324
18325
18326static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 wxEffects *arg1 = (wxEffects *) 0 ;
18329 wxColour *arg2 = 0 ;
18330 wxColour *arg3 = 0 ;
18331 wxColour *arg4 = 0 ;
18332 wxColour *arg5 = 0 ;
18333 wxColour *arg6 = 0 ;
18334 wxColour temp2 ;
18335 wxColour temp3 ;
18336 wxColour temp4 ;
18337 wxColour temp5 ;
18338 wxColour temp6 ;
18339 PyObject * obj0 = 0 ;
18340 PyObject * obj1 = 0 ;
18341 PyObject * obj2 = 0 ;
18342 PyObject * obj3 = 0 ;
18343 PyObject * obj4 = 0 ;
18344 PyObject * obj5 = 0 ;
18345 char *kwnames[] = {
18346 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18347 };
18348
18349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18351 {
18352 arg2 = &temp2;
18353 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18354 }
18355 {
18356 arg3 = &temp3;
18357 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18358 }
18359 {
18360 arg4 = &temp4;
18361 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18362 }
18363 {
18364 arg5 = &temp5;
18365 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18366 }
18367 {
18368 arg6 = &temp6;
18369 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18370 }
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18374
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 Py_INCREF(Py_None); resultobj = Py_None;
18379 return resultobj;
18380 fail:
18381 return NULL;
18382}
18383
18384
18385static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj;
18387 wxEffects *arg1 = (wxEffects *) 0 ;
18388 wxDC *arg2 = 0 ;
18389 wxRect *arg3 = 0 ;
18390 int arg4 = (int) 1 ;
18391 wxRect temp3 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 PyObject * obj3 = 0 ;
18396 char *kwnames[] = {
18397 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18398 };
18399
18400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18402 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18403 if (arg2 == NULL) {
18404 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18405 }
18406 {
18407 arg3 = &temp3;
18408 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18409 }
18410 if (obj3) {
18411 {
18412 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 }
18415 }
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18419
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 Py_INCREF(Py_None); resultobj = Py_None;
18424 return resultobj;
18425 fail:
18426 return NULL;
18427}
18428
18429
18430static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj;
18432 wxEffects *arg1 = (wxEffects *) 0 ;
18433 wxRect *arg2 = 0 ;
18434 wxDC *arg3 = 0 ;
18435 wxBitmap *arg4 = 0 ;
18436 bool result;
18437 wxRect temp2 ;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 PyObject * obj2 = 0 ;
18441 PyObject * obj3 = 0 ;
18442 char *kwnames[] = {
18443 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18444 };
18445
18446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18448 {
18449 arg2 = &temp2;
18450 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18451 }
18452 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18453 if (arg3 == NULL) {
18454 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18455 }
18456 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18457 if (arg4 == NULL) {
18458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18459 }
18460 {
18461 PyThreadState* __tstate = wxPyBeginAllowThreads();
18462 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18463
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18468 return resultobj;
18469 fail:
18470 return NULL;
18471}
18472
18473
18474static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18475 PyObject *obj;
18476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18477 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18478 Py_INCREF(obj);
18479 return Py_BuildValue((char *)"");
18480}
18481static PyMethodDef SwigMethods[] = {
18482 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18488 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18503 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18509 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18529 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18533 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18543 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18572 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18574 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18593 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18601 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18609 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18625 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18652 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18666 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18690 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18699 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18718 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18755 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18763 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18770 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18792 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18794 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18802 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18851 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18892 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18919 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18920 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18921 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18922 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18923 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18924 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18925 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18926 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18927 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18928 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18929 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18930 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18931 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18932 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18933 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18934 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18935 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18936 { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS },
18937 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18938 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18939 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18940 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18941 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18942 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18943 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18944 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18945 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18946 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18947 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18948 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18949 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18950 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18951 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18952 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18953 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18954 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18955 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18956 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18957 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18958 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18959 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18960 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18961 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18962 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18963 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18964 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
18965 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18966 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18967 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18968 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18969 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18970 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18971 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18972 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18973 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18974 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18975 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18976 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18977 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18978 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18979 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18980 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18981 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18982 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18983 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18984 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18985 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18986 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18987 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18988 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18989 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18990 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18991 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18992 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18993 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18994 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18995 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18996 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18997 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18998 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18999 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19000 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19001 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19002 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19003 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19004 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19005 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19006 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19012 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19020 { NULL, NULL }
19021};
19022
19023
19024/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19025
19026static void *_p_wxControlTo_p_wxWindow(void *x) {
19027 return (void *)((wxWindow *) ((wxControl *) x));
19028}
19029static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19030 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19031}
19032static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19033 return (void *)((wxWindow *) ((wxMenuBar *) x));
19034}
19035static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19036 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19037}
19038static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19039 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19040}
19041static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19042 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19043}
19044static void *_p_wxPenTo_p_wxObject(void *x) {
19045 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19046}
19047static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19048 return (void *)((wxObject *) ((wxRegionIterator *) x));
19049}
19050static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19051 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19052}
19053static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19054 return (void *)((wxObject *) ((wxSizerItem *) x));
19055}
19056static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19057 return (void *)((wxObject *) ((wxColourDatabase *) x));
19058}
19059static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19061}
19062static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19063 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19064}
19065static void *_p_wxIconTo_p_wxObject(void *x) {
19066 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19067}
19068static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19069 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19070}
19071static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19072 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19073}
19074static void *_p_wxSizerTo_p_wxObject(void *x) {
19075 return (void *)((wxObject *) ((wxSizer *) x));
19076}
19077static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19078 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19079}
19080static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19081 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19082}
19083static void *_p_wxPenListTo_p_wxObject(void *x) {
19084 return (void *)((wxObject *) ((wxPenList *) x));
19085}
19086static void *_p_wxEventTo_p_wxObject(void *x) {
19087 return (void *)((wxObject *) ((wxEvent *) x));
19088}
19089static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19090 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19091}
19092static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19093 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19094}
19095static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19096 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19097}
19098static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19099 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19100}
19101static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19102 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19103}
19104static void *_p_wxDCTo_p_wxObject(void *x) {
19105 return (void *)((wxObject *) ((wxDC *) x));
19106}
19107static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19108 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19109}
19110static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19111 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19112}
19113static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19114 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19115}
19116static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19117 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19118}
19119static void *_p_wxControlTo_p_wxObject(void *x) {
19120 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19121}
19122static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19123 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19124}
19125static void *_p_wxClientDCTo_p_wxObject(void *x) {
19126 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19127}
19128static void *_p_wxFSFileTo_p_wxObject(void *x) {
19129 return (void *)((wxObject *) ((wxFSFile *) x));
19130}
19131static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19132 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19133}
19134static void *_p_wxRegionTo_p_wxObject(void *x) {
19135 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19136}
19137static void *_p_wxPySizerTo_p_wxObject(void *x) {
19138 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19139}
19140static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19141 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19142}
19143static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19144 return (void *)((wxObject *) ((wxGDIObject *) x));
19145}
19146static void *_p_wxEffectsTo_p_wxObject(void *x) {
19147 return (void *)((wxObject *) ((wxEffects *) x));
19148}
19149static void *_p_wxPyEventTo_p_wxObject(void *x) {
19150 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19151}
19152static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19153 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19154}
19155static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19156 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19157}
19158static void *_p_wxShowEventTo_p_wxObject(void *x) {
19159 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19160}
19161static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19162 return (void *)((wxObject *) ((wxMenuItem *) x));
19163}
19164static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19165 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19166}
19167static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19168 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19169}
19170static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19171 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19172}
19173static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19174 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19175}
19176static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19177 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19178}
19179static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19180 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19181}
19182static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19183 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19184}
19185static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19186 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19187}
19188static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19189 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19190}
19191static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19192 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19193}
19194static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19195 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19196}
19197static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19198 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19199}
19200static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19201 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19202}
19203static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19204 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19205}
19206static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19207 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19208}
19209static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19210 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19211}
19212static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19213 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19214}
19215static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19216 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19217}
19218static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19219 return (void *)((wxObject *) ((wxImageHandler *) x));
19220}
19221static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19222 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19223}
19224static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19225 return (void *)((wxObject *) ((wxEvtHandler *) x));
19226}
19227static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19228 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19229}
19230static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19231 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19232}
19233static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19234 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19235}
19236static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19237 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19238}
19239static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19240 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19241}
19242static void *_p_wxImageTo_p_wxObject(void *x) {
19243 return (void *)((wxObject *) ((wxImage *) x));
19244}
19245static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19246 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19247}
19248static void *_p_wxPaletteTo_p_wxObject(void *x) {
19249 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19250}
19251static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19252 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19253}
19254static void *_p_wxImageListTo_p_wxObject(void *x) {
19255 return (void *)((wxObject *) ((wxImageList *) x));
19256}
19257static void *_p_wxCursorTo_p_wxObject(void *x) {
19258 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19259}
19260static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19261 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19262}
19263static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19264 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19265}
19266static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19267 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19268}
19269static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19270 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19271}
19272static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19273 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19274}
19275static void *_p_wxWindowTo_p_wxObject(void *x) {
19276 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19277}
19278static void *_p_wxMenuTo_p_wxObject(void *x) {
19279 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19280}
19281static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19282 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19283}
19284static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19285 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19286}
19287static void *_p_wxBrushListTo_p_wxObject(void *x) {
19288 return (void *)((wxObject *) ((wxBrushList *) x));
19289}
19290static void *_p_wxPyPenTo_p_wxObject(void *x) {
19291 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19292}
19293static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19294 return (void *)((wxObject *) ((wxFileSystem *) x));
19295}
19296static void *_p_wxBitmapTo_p_wxObject(void *x) {
19297 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19298}
19299static void *_p_wxMaskTo_p_wxObject(void *x) {
19300 return (void *)((wxObject *) ((wxMask *) x));
19301}
19302static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19303 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19304}
19305static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19306 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19307}
19308static void *_p_wxPyAppTo_p_wxObject(void *x) {
19309 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19310}
19311static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19312 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19313}
19314static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19315 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19316}
19317static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19318 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19319}
19320static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19322}
19323static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19324 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19325}
19326static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19327 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19328}
19329static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19330 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19331}
19332static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19333 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19334}
19335static void *_p_wxFontTo_p_wxObject(void *x) {
19336 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19337}
19338static void *_p_wxBrushTo_p_wxObject(void *x) {
19339 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19340}
19341static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19342 return (void *)((wxObject *) ((wxMetaFile *) x));
19343}
19344static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19346}
19347static void *_p_wxColourTo_p_wxObject(void *x) {
19348 return (void *)((wxObject *) ((wxColour *) x));
19349}
19350static void *_p_wxFontListTo_p_wxObject(void *x) {
19351 return (void *)((wxObject *) ((wxFontList *) x));
19352}
19353static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19354 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19355}
19356static void *_p_wxValidatorTo_p_wxObject(void *x) {
19357 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19358}
19359static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19360 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19361}
19362static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19363 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19364}
19365static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19366 return (void *)((wxDC *) ((wxScreenDC *) x));
19367}
19368static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19369 return (void *)((wxDC *) ((wxMirrorDC *) x));
19370}
19371static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19372 return (void *)((wxDC *) ((wxMemoryDC *) x));
19373}
19374static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19375 return (void *)((wxDC *) ((wxWindowDC *) x));
19376}
19377static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19378 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19379}
19380static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19381 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19382}
19383static void *_p_wxClientDCTo_p_wxDC(void *x) {
19384 return (void *)((wxDC *) ((wxClientDC *) x));
19385}
19386static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19387 return (void *)((wxDC *) ((wxPaintDC *) x));
19388}
19389static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19390 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19391}
19392static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19393 return (void *)((wxDC *) ((wxPrinterDC *) x));
19394}
19395static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19396 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19397}
19398static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19399 return (void *)((wxGDIObject *) ((wxIcon *) x));
19400}
19401static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19402 return (void *)((wxGDIObject *) ((wxPalette *) x));
19403}
19404static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19405 return (void *)((wxGDIObject *) ((wxPen *) x));
19406}
19407static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19408 return (void *)((wxGDIObject *) ((wxFont *) x));
19409}
19410static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19411 return (void *)((wxGDIObject *) ((wxCursor *) x));
19412}
19413static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19414 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19415}
19416static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19417 return (void *)((wxGDIObject *) ((wxRegion *) x));
19418}
19419static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19420 return (void *)((wxGDIObject *) ((wxBrush *) x));
19421}
19422static void *_p_wxPyPenTo_p_wxPen(void *x) {
19423 return (void *)((wxPen *) ((wxPyPen *) x));
19424}
19425static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
19426static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
19427static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
19428static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC},{"_p_wxDC"},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC},{0}};
19429static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
19430static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19431static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
19432static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
19433static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
19434static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
19435static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
19436static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
19437static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
19438static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
19439static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
19440static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
19441static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC},{"_p_wxMemoryDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC},{0}};
19442static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
19443static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
19444static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
19445static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
19446static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
19447static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
19448static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
19449static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
19450static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
19451static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
19452static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
19453static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
19454static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
19455static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
19456static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
19457static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
19458static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
19459static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
19460static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19461static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject},{"_p_wxGDIObject"},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject},{0}};
19462static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
19463static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
19464static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
19465static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
19466static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
19467static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
19468static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
19469static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
19470static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
19471static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
19472static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
19473static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
19474static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
19475static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
19476static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
19477static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
19478static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
19479static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
19480static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
19481
19482static swig_type_info *swig_types_initial[] = {
19483_swigt__p_wxPostScriptDC,
19484_swigt__p_wxBrush,
19485_swigt__p_wxColour,
19486_swigt__p_wxDC,
19487_swigt__p_wxMirrorDC,
19488_swigt__p_byte,
19489_swigt__p_wxPyFontEnumerator,
19490_swigt__p_char,
19491_swigt__p_wxIconLocation,
19492_swigt__p_wxImage,
19493_swigt__p_wxMetaFileDC,
19494_swigt__p_wxMask,
19495_swigt__p_wxFont,
19496_swigt__p_wxWindow,
19497_swigt__p_wxSize,
19498_swigt__p_double,
19499_swigt__p_wxMemoryDC,
19500_swigt__p_wxFontMapper,
19501_swigt__p_wxEffects,
19502_swigt__p_wxNativeEncodingInfo,
19503_swigt__p_wxPalette,
19504_swigt__p_wxBitmap,
19505_swigt__p_wxObject,
19506_swigt__p_wxRegionIterator,
19507_swigt__p_wxRect,
19508_swigt__p_wxString,
19509_swigt__p_wxPrinterDC,
19510_swigt__p_wxIconBundle,
19511_swigt__p_wxPoint,
19512_swigt__p_wxDash,
19513_swigt__p_wxScreenDC,
19514_swigt__p_wxCursor,
19515_swigt__p_wxClientDC,
19516_swigt__p_wxBufferedDC,
19517_swigt__p_wxImageList,
19518_swigt__p_unsigned_char,
19519_swigt__p_wxGDIObject,
19520_swigt__p_wxIcon,
19521_swigt__p_wxLocale,
19522_swigt__p_wxRegion,
19523_swigt__p_wxLanguageInfo,
19524_swigt__p_wxConfigBase,
19525_swigt__p_wxWindowDC,
19526_swigt__p_wxPrintData,
19527_swigt__p_wxBrushList,
19528_swigt__p_wxFontList,
19529_swigt__p_wxPen,
19530_swigt__p_wxBufferedPaintDC,
19531_swigt__p_wxPaintDC,
19532_swigt__p_wxPenList,
19533_swigt__p_wxPyPen,
19534_swigt__p_int,
19535_swigt__p_wxMetaFile,
19536_swigt__p_wxNativeFontInfo,
19537_swigt__p_wxEncodingConverter,
19538_swigt__p_wxColourDatabase,
195390
19540};
19541
19542
19543/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19544
19545static swig_const_info swig_const_table[] = {
19546{0}};
19547
19548#ifdef __cplusplus
19549}
19550#endif
19551
19552#ifdef __cplusplus
19553extern "C"
19554#endif
19555SWIGEXPORT(void) SWIG_init(void) {
19556 static PyObject *SWIG_globals = 0;
19557 static int typeinit = 0;
19558 PyObject *m, *d;
19559 int i;
19560 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19561 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19562 d = PyModule_GetDict(m);
19563
19564 if (!typeinit) {
19565 for (i = 0; swig_types_initial[i]; i++) {
19566 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19567 }
19568 typeinit = 1;
19569 }
19570 SWIG_InstallConstants(d,swig_const_table);
19571
19572 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
19573 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
19574 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
19575 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
19576 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
19577 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
19578 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
19579 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
19580 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
19581 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
19582 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
19583 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
19584 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
19585 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
19586 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
19587 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
19588 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
19589 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
19590 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
19591 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
19592 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
19593 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
19594 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
19595 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
19596 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
19597 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
19598 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19599 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
19600 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19601 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
19602 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
19603 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
19604 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
19605 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
19606 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
19607 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
19608 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
19609 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
19610 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
19611 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
19612 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
19613 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
19614 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
19615 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
19616 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
19617 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
19618 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
19619 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19620 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
19621 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19622 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
19623 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
19624 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
19625 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
19626 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
19627 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
19628 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
19629 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
19630 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
19631 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
19632 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
19633 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
19634 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
19635 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
19636 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
19637 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
19638 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
19639 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
19640 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
19641 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
19642 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
19643 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
19644 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
19645 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
19646 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
19647 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
19648 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
19649 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
19650 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
19651 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19652 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
19653 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
19654 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
19655 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
19656 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19657 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19658 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19659 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
19660 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
19661 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
19662 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
19663 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
19664 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
19665 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19666 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
19667 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
19668 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
19669 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
19670 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19671 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19672 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
19673 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19674 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
19675 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19676 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19677 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19678 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19679 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
19680 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
19681 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
19682 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
19683 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
19684 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
19685 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
19686 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
19687 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
19688 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19689 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
19690 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
19691 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
19692 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
19693 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
19694 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
19695 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
19696 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
19697 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19698
19699 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19700
19701 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
19702 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
19703 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19704 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
19705 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
19706 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
19707 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
19708 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
19709 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19710 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19711 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19712 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19713 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19714 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19715 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19716 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19717 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19718 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19719 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19720 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19721 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19722 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19723 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19724 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19725 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19726 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
19727 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
19728 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
19729 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
19730 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19731 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19732 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
19733 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
19734 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
19735 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
19736 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
19737 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
19738 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
19739 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
19740 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
19741 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
19742 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
19743 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
19744 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
19745 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19746 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19747 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19748 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19749 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19750 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19751 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
19752 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
19753 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
19754 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
19755 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
19756 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19757 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
19758 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19759 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
19760 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19761 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19762 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19763 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19764 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19765 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19766 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19767 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19768 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19769 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19770 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19771 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19772 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19773 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
19774 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
19775 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
19776 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
19777 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
19778 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
19779 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
19780 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19781 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19782 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19783 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19784 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19785 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
19786 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
19787 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
19788 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
19789 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19790 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19791 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19792 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19793 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19794 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
19795 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
19796 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
19797 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
19798 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
19799 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
19800 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
19801 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
19802 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
19803 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
19804 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19805 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19806 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19807 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19808 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19809 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19810 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19811 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19812 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19813 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19814 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19815 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19816 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19817 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19818 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19819 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19820 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19821 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19822 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19823 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19824 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19825 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19826 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19827 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19828 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19829 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19830 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19831 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19832 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19833 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19834 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19835 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19836 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19837 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19838 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19839 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19840 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19841 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19842 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19843 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19844 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19845 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19846 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19847 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19848 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19849 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19850 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19851 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19852 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19853 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19854 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19855 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19856 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19857 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19858 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19859 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19860 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19861 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19862 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19863 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19864 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19865 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19866 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19867 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19868 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19869 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19870 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19871 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19872 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19873 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19874 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19875 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19876 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19877 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19878 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19879 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19880 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19881 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19882 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19883 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19884 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19885 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19886 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19887 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19888 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19889 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19890 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19891 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19892 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19893 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19894 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19895 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19896 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19897 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19898 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19899 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19900 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19901 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19902 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19903 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19904 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19905 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19906 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19907 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19908 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19909 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19910 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19911 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19912 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19913 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19914 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19915 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19916 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19917 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19918 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19919 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19920 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19921 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19922 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19923 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19924 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19925 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19926 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19927 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19928 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19929 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19930 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19931 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19932 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19933 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19934 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19935 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19936 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19937 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19938 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19939 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19940 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19941 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19942 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19943 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19944 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19945 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19946 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19947 PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG));
19948 PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG));
19949 PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT));
19950 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19951 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19952 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19953 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19954 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19955 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19956 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19957 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19958 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19959 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19960 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19961 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19962 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19963 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19964 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19965 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19966 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19967 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19968 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19969 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19970 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19971 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19972 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19973 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19974 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19975 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19976 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19977 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19978 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19979 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19980 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19981 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19982 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19983 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19984 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19985 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19986 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19987 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19988 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19989 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19990 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19991 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19992 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19993 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19994 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19995 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19996 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19997 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19998 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19999 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20000 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20001 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20002 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20003 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20004
20005 // Work around a chicken/egg problem in drawlist.cpp
20006 wxPyDrawList_SetAPIPtr();
20007
20008}
20009