]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/gtk/gdi_wrap.cpp
Mention that NO_FULL_REPAINT_ON_RESIZE is now the default
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
... / ...
CommitLineData
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.20
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
49
50/***********************************************************************
51 * common.swg for wxPython
52 *
53 * Include only the function prototypes and such from SWIG's common.swg,
54 * but not the runtime functions themselves. This helps keep the
55 * wrapper files clean of unnecessary stuff that is in the libpy.c file
56 * anyway.
57 *
58 ************************************************************************/
59
60#include <string.h>
61
62#if defined(_WIN32) || defined(__WIN32__)
63# if defined(_MSC_VER)
64# if defined(STATIC_LINKED)
65# define SWIGEXPORT(a) a
66# define SWIGIMPORT(a) extern a
67# else
68# define SWIGEXPORT(a) __declspec(dllexport) a
69# define SWIGIMPORT(a) extern a
70# endif
71# else
72# if defined(__BORLANDC__)
73# define SWIGEXPORT(a) a _export
74# define SWIGIMPORT(a) a _export
75# else
76# define SWIGEXPORT(a) a
77# define SWIGIMPORT(a) a
78# endif
79# endif
80#else
81# define SWIGEXPORT(a) a
82# define SWIGIMPORT(a) a
83#endif
84
85#ifdef SWIG_GLOBAL
86#define SWIGRUNTIME(a) SWIGEXPORT(a)
87#else
88#define SWIGRUNTIME(a) static a
89#endif
90
91
92#ifdef __cplusplus
93extern "C" {
94#endif
95
96typedef void *(*swig_converter_func)(void *);
97typedef struct swig_type_info *(*swig_dycast_func)(void **);
98
99typedef struct swig_type_info {
100 const char *name;
101 swig_converter_func converter;
102 const char *str;
103 void *clientdata;
104 swig_dycast_func dcast;
105 struct swig_type_info *next;
106 struct swig_type_info *prev;
107} swig_type_info;
108
109
110SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
111SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
112SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
114SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
116SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
117
118
119#ifdef __cplusplus
120}
121
122#endif
123
124/***********************************************************************
125 * pyrun.swg for wxPython
126 *
127 * Include only the function prototypes and such from SWIG's pyrun.swg,
128 * but not the runtime functions themselves. This helps keep the
129 * wrapper files clean of unnecessary stuff that is in the libpy.c file
130 * anyway.
131 *
132 ************************************************************************/
133
134
135#include "Python.h"
136
137#ifdef __cplusplus
138extern "C" {
139#endif
140
141#define SWIG_PY_INT 1
142#define SWIG_PY_FLOAT 2
143#define SWIG_PY_STRING 3
144#define SWIG_PY_POINTER 4
145#define SWIG_PY_BINARY 5
146
147/* Flags for pointer conversion */
148
149#define SWIG_POINTER_EXCEPTION 0x1
150#define SWIG_POINTER_DISOWN 0x2
151
152/* Exception handling in wrappers */
153#define SWIG_fail goto fail
154
155/* Constant information structure */
156typedef struct swig_const_info {
157 int type;
158 char *name;
159 long lvalue;
160 double dvalue;
161 void *pvalue;
162 swig_type_info **ptype;
163} swig_const_info;
164
165
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_PackData(c, ptr, sz) \
183 SWIG_Python_PackData(c, ptr, sz)
184#define SWIG_UnpackData(c, ptr, sz) \
185 SWIG_Python_UnpackData(c, ptr, sz)
186#define SWIG_NewPackedObj(ptr, sz, type) \
187 SWIG_Python_NewPackedObj(ptr, sz, type)
188#define SWIG_InstallConstants(d, constants) \
189 SWIG_Python_InstallConstants(d, constants)
190
191
192SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
193SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
194SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
195
196SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
197SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
198SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
199SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
200SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
201SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
202SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
203
204
205/* Contract support */
206
207#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
208
209
210#ifdef __cplusplus
211}
212#endif
213
214
215
216/* -------- TYPES TABLE (BEGIN) -------- */
217
218#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
219#define SWIGTYPE_p_wxBrush swig_types[1]
220#define SWIGTYPE_p_wxColour swig_types[2]
221#define SWIGTYPE_p_wxDC swig_types[3]
222#define SWIGTYPE_p_wxMirrorDC swig_types[4]
223#define SWIGTYPE_p_byte swig_types[5]
224#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
225#define SWIGTYPE_p_wxIconLocation swig_types[7]
226#define SWIGTYPE_p_wxImage swig_types[8]
227#define SWIGTYPE_p_wxMetaFileDC swig_types[9]
228#define SWIGTYPE_p_wxMask swig_types[10]
229#define SWIGTYPE_p_wxFont swig_types[11]
230#define SWIGTYPE_p_wxWindow swig_types[12]
231#define SWIGTYPE_p_wxSize swig_types[13]
232#define SWIGTYPE_p_double swig_types[14]
233#define SWIGTYPE_p_wxMemoryDC swig_types[15]
234#define SWIGTYPE_p_wxFontMapper swig_types[16]
235#define SWIGTYPE_p_wxEffects swig_types[17]
236#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
237#define SWIGTYPE_p_wxPalette swig_types[19]
238#define SWIGTYPE_p_wxBitmap swig_types[20]
239#define SWIGTYPE_p_wxObject swig_types[21]
240#define SWIGTYPE_p_wxRegionIterator swig_types[22]
241#define SWIGTYPE_p_wxRect swig_types[23]
242#define SWIGTYPE_p_wxString swig_types[24]
243#define SWIGTYPE_p_wxPrinterDC swig_types[25]
244#define SWIGTYPE_p_wxIconBundle swig_types[26]
245#define SWIGTYPE_p_wxPoint swig_types[27]
246#define SWIGTYPE_p_wxDash swig_types[28]
247#define SWIGTYPE_p_wxScreenDC swig_types[29]
248#define SWIGTYPE_p_wxCursor swig_types[30]
249#define SWIGTYPE_p_wxClientDC swig_types[31]
250#define SWIGTYPE_p_wxBufferedDC swig_types[32]
251#define SWIGTYPE_p_wxImageList swig_types[33]
252#define SWIGTYPE_p_unsigned_char swig_types[34]
253#define SWIGTYPE_p_wxGDIObject swig_types[35]
254#define SWIGTYPE_p_wxLocale swig_types[36]
255#define SWIGTYPE_p_wxIcon swig_types[37]
256#define SWIGTYPE_p_wxRegion swig_types[38]
257#define SWIGTYPE_p_wxLanguageInfo swig_types[39]
258#define SWIGTYPE_p_wxConfigBase swig_types[40]
259#define SWIGTYPE_p_wxWindowDC swig_types[41]
260#define SWIGTYPE_p_wxPrintData swig_types[42]
261#define SWIGTYPE_p_wxBrushList swig_types[43]
262#define SWIGTYPE_p_wxFontList swig_types[44]
263#define SWIGTYPE_p_wxPen swig_types[45]
264#define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
265#define SWIGTYPE_p_wxPaintDC swig_types[47]
266#define SWIGTYPE_p_wxPenList swig_types[48]
267#define SWIGTYPE_p_wxPyPen swig_types[49]
268#define SWIGTYPE_p_int swig_types[50]
269#define SWIGTYPE_p_wxMetaFile swig_types[51]
270#define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
271#define SWIGTYPE_p_wxEncodingConverter swig_types[53]
272#define SWIGTYPE_p_wxColourDatabase swig_types[54]
273static swig_type_info *swig_types[56];
274
275/* -------- TYPES TABLE (END) -------- */
276
277
278/*-----------------------------------------------
279 @(target):= _gdi.so
280 ------------------------------------------------*/
281#define SWIG_init init_gdi
282
283#define SWIG_name "_gdi"
284
285#include "wx/wxPython/wxPython.h"
286#include "wx/wxPython/pyclasses.h"
287
288 DECLARE_DEF_STRING(EmptyString);
289
290PyObject *wxColour_Get(wxColour *self){
291 PyObject* rv = PyTuple_New(3);
292 int red = -1;
293 int green = -1;
294 int blue = -1;
295 if (self->Ok()) {
296 red = self->Red();
297 green = self->Green();
298 blue = self->Blue();
299 }
300 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
301 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
302 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
303 return rv;
304 }
305
306static PyObject* t_output_helper(PyObject* target, PyObject* o) {
307 PyObject* o2;
308 PyObject* o3;
309
310 if (!target) {
311 target = o;
312 } else if (target == Py_None) {
313 Py_DECREF(Py_None);
314 target = o;
315 } else {
316 if (!PyTuple_Check(target)) {
317 o2 = target;
318 target = PyTuple_New(1);
319 PyTuple_SetItem(target, 0, o2);
320 }
321 o3 = PyTuple_New(1);
322 PyTuple_SetItem(o3, 0, o);
323
324 o2 = target;
325 target = PySequence_Concat(o2, o3);
326 Py_DECREF(o2);
327 Py_DECREF(o3);
328 }
329 return target;
330}
331
332PyObject *wxPen_GetDashes(wxPen *self){
333 wxDash* dashes;
334 int count = self->GetDashes(&dashes);
335 wxPyBeginBlockThreads();
336 PyObject* retval = PyList_New(0);
337 for (int x=0; x<count; x++)
338 PyList_Append(retval, PyInt_FromLong(dashes[x]));
339 wxPyEndBlockThreads();
340 return retval;
341 }
342
343wxPyPen::~wxPyPen()
344{
345 if (m_dash)
346 delete [] m_dash;
347}
348
349void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
350{
351 if (m_dash)
352 delete [] m_dash;
353 m_dash = new wxDash[nb_dashes];
354 for (int i=0; i<nb_dashes; i++) {
355 m_dash[i] = dash[i];
356 }
357 wxPen::SetDashes(nb_dashes, m_dash);
358}
359
360
361#include <wx/image.h>
362
363 static char** ConvertListOfStrings(PyObject* listOfStrings) {
364 char** cArray = NULL;
365 int count;
366
367 if (!PyList_Check(listOfStrings)) {
368 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
369 return NULL;
370 }
371 count = PyList_Size(listOfStrings);
372 cArray = new char*[count];
373
374 for(int x=0; x<count; x++) {
375 // TODO: Need some validation and error checking here
376 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
377 }
378 return cArray;
379 }
380
381
382wxBitmap *new_wxBitmap(PyObject *listOfStrings){
383 char** cArray = NULL;
384 wxBitmap* bmp;
385
386 cArray = ConvertListOfStrings(listOfStrings);
387 if (! cArray)
388 return NULL;
389 bmp = new wxBitmap(cArray);
390 delete [] cArray;
391 return bmp;
392 }
393wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
394 char* buf;
395 int length;
396 PyString_AsStringAndSize(bits, &buf, &length);
397 return new wxBitmap(buf, width, height, depth);
398 }
399void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
400 wxMask *mask = new wxMask(*self, colour);
401 self->SetMask(mask);
402 }
403
404#include <wx/iconbndl.h>
405
406wxIcon *new_wxIcon(wxBitmap const &bmp){
407 wxIcon* icon = new wxIcon();
408 icon->CopyFromBitmap(bmp);
409 return icon;
410 }
411wxIcon *new_wxIcon(PyObject *listOfStrings){
412 char** cArray = NULL;
413 wxIcon* icon;
414
415 cArray = ConvertListOfStrings(listOfStrings);
416 if (! cArray)
417 return NULL;
418 icon = new wxIcon(cArray);
419 delete [] cArray;
420 return icon;
421 }
422wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
423
424
425
426 return new wxIconLocation(*filename);
427
428 }
429void wxIconLocation_SetIndex(wxIconLocation *self,int num){
430
431
432
433 // do nothing
434
435 }
436int wxIconLocation_GetIndex(wxIconLocation *self){
437
438
439
440 return -1;
441
442 }
443wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
444
445 wxCHECK_MSG(False, NULL,
446 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
447
448
449
450 }
451wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
452 char* bitsbuf;
453 char* maskbuf = NULL;
454 int length;
455 PyString_AsStringAndSize(bits, &bitsbuf, &length);
456 if (maskBits)
457 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
458 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
459 }
460
461
462void wxRegionIterator_Next(wxRegionIterator *self){
463 (*self) ++;
464 }
465bool wxRegionIterator___nonzero__(wxRegionIterator *self){
466 return self->operator bool();
467 }
468
469#include <wx/fontutil.h>
470#include <wx/fontmap.h>
471#include <wx/fontenum.h>
472
473wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
474 return self->ToString();
475 }
476
477 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
478 static wxNativeEncodingInfo info;
479 if ( wxGetNativeFontEncoding(encoding, &info) )
480 return &info;
481 else
482 return NULL;
483 }
484
485PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
486 wxFontEncoding alt_enc;
487 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
488 return PyInt_FromLong(alt_enc);
489 else {
490 Py_INCREF(Py_None);
491 return Py_None;
492 }
493 }
494wxFont *new_wxFont(wxString const &info){
495 wxNativeFontInfo nfi;
496 nfi.FromString(info);
497 return new wxFont(nfi);
498 }
499wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
500 return wxFont::New(pointSize, family, flags, face, encoding);
501 }
502
503class wxPyFontEnumerator : public wxFontEnumerator {
504public:
505 wxPyFontEnumerator() {}
506 ~wxPyFontEnumerator() {}
507
508 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
509 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
510
511 PYPRIVATE;
512};
513
514IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
515IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
516
517
518PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
519 wxArrayString* arr = self->GetEncodings();
520 return wxArrayString2PyList_helper(*arr);
521 }
522PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
523 wxArrayString* arr = self->GetFacenames();
524 return wxArrayString2PyList_helper(*arr);
525 }
526
527
528
529#include "wx/wxPython/pydrawxxx.h"
530
531wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
532 wxColour col;
533 self->GetPixel(x, y, &col);
534 return col;
535 }
536wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
537 wxColour col;
538 self->GetPixel(pt, &col);
539 return col;
540 }
541wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
542 wxRect rv;
543 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
544 return rv;
545 }
546wxRect wxDC_GetClippingRect(wxDC *self){
547 wxRect rect;
548 self->GetClippingBox(rect);
549 return rect;
550 }
551PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
552 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
553 }
554PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
555 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
556 }
557PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
558 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
559 }
560PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
561 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
562 }
563PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
564 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
565 }
566PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
567 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
568 }
569
570static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
571 *x1 = dc->MinX();
572 *y1 = dc->MinY();
573 *x2 = dc->MaxX();
574 *y2 = dc->MaxY();
575}
576
577
578#include <wx/dcps.h>
579
580
581class wxMetaFile : public wxObject {
582public:
583 wxMetaFile(const wxString&)
584 { PyErr_SetNone(PyExc_NotImplementedError); }
585};
586
587class wxMetaFileDC : public wxClientDC {
588public:
589 wxMetaFileDC(const wxString&, int, int, const wxString&)
590 { PyErr_SetNone(PyExc_NotImplementedError); }
591};
592
593
594
595class wxPrinterDC : public wxClientDC {
596public:
597 wxPrinterDC(const wxPrintData&)
598 { PyErr_SetNone(PyExc_NotImplementedError); }
599
600// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
601// { PyErr_SetNone(PyExc_NotImplementedError); }
602};
603
604
605
606void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
607 self->AddColour(name, wxColour(red, green, blue));
608 }
609
610#include <wx/effects.h>
611
612#ifdef __cplusplus
613extern "C" {
614#endif
615static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
616 PyObject *resultobj;
617 wxGDIObject *result;
618 char *kwnames[] = {
619 NULL
620 };
621
622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
623 {
624 PyThreadState* __tstate = wxPyBeginAllowThreads();
625 result = (wxGDIObject *)new wxGDIObject();
626
627 wxPyEndAllowThreads(__tstate);
628 if (PyErr_Occurred()) SWIG_fail;
629 }
630 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
631 return resultobj;
632 fail:
633 return NULL;
634}
635
636
637static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
638 PyObject *resultobj;
639 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
640 PyObject * obj0 = 0 ;
641 char *kwnames[] = {
642 (char *) "self", NULL
643 };
644
645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
647 {
648 PyThreadState* __tstate = wxPyBeginAllowThreads();
649 delete arg1;
650
651 wxPyEndAllowThreads(__tstate);
652 if (PyErr_Occurred()) SWIG_fail;
653 }
654 Py_INCREF(Py_None); resultobj = Py_None;
655 return resultobj;
656 fail:
657 return NULL;
658}
659
660
661static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
662 PyObject *resultobj;
663 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
664 bool result;
665 PyObject * obj0 = 0 ;
666 char *kwnames[] = {
667 (char *) "self", NULL
668 };
669
670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
672 {
673 PyThreadState* __tstate = wxPyBeginAllowThreads();
674 result = (bool)(arg1)->GetVisible();
675
676 wxPyEndAllowThreads(__tstate);
677 if (PyErr_Occurred()) SWIG_fail;
678 }
679 resultobj = PyInt_FromLong((long)result);
680 return resultobj;
681 fail:
682 return NULL;
683}
684
685
686static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
687 PyObject *resultobj;
688 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
689 bool arg2 ;
690 PyObject * obj0 = 0 ;
691 PyObject * obj1 = 0 ;
692 char *kwnames[] = {
693 (char *) "self",(char *) "visible", NULL
694 };
695
696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
698 arg2 = PyInt_AsLong(obj1) ? true : false;
699 if (PyErr_Occurred()) SWIG_fail;
700 {
701 PyThreadState* __tstate = wxPyBeginAllowThreads();
702 (arg1)->SetVisible(arg2);
703
704 wxPyEndAllowThreads(__tstate);
705 if (PyErr_Occurred()) SWIG_fail;
706 }
707 Py_INCREF(Py_None); resultobj = Py_None;
708 return resultobj;
709 fail:
710 return NULL;
711}
712
713
714static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
715 PyObject *resultobj;
716 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
717 bool result;
718 PyObject * obj0 = 0 ;
719 char *kwnames[] = {
720 (char *) "self", NULL
721 };
722
723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
725 {
726 PyThreadState* __tstate = wxPyBeginAllowThreads();
727 result = (bool)(arg1)->IsNull();
728
729 wxPyEndAllowThreads(__tstate);
730 if (PyErr_Occurred()) SWIG_fail;
731 }
732 resultobj = PyInt_FromLong((long)result);
733 return resultobj;
734 fail:
735 return NULL;
736}
737
738
739static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
740 PyObject *obj;
741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
742 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
743 Py_INCREF(obj);
744 return Py_BuildValue((char *)"");
745}
746static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
747 PyObject *resultobj;
748 unsigned char arg1 = (unsigned char) 0 ;
749 unsigned char arg2 = (unsigned char) 0 ;
750 unsigned char arg3 = (unsigned char) 0 ;
751 wxColour *result;
752 PyObject * obj0 = 0 ;
753 PyObject * obj1 = 0 ;
754 PyObject * obj2 = 0 ;
755 char *kwnames[] = {
756 (char *) "red",(char *) "green",(char *) "blue", NULL
757 };
758
759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
760 if (obj0) {
761 arg1 = (unsigned char) PyInt_AsLong(obj0);
762 if (PyErr_Occurred()) SWIG_fail;
763 }
764 if (obj1) {
765 arg2 = (unsigned char) PyInt_AsLong(obj1);
766 if (PyErr_Occurred()) SWIG_fail;
767 }
768 if (obj2) {
769 arg3 = (unsigned char) PyInt_AsLong(obj2);
770 if (PyErr_Occurred()) SWIG_fail;
771 }
772 {
773 PyThreadState* __tstate = wxPyBeginAllowThreads();
774 result = (wxColour *)new wxColour(arg1,arg2,arg3);
775
776 wxPyEndAllowThreads(__tstate);
777 if (PyErr_Occurred()) SWIG_fail;
778 }
779 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
780 return resultobj;
781 fail:
782 return NULL;
783}
784
785
786static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
787 PyObject *resultobj;
788 wxColour *arg1 = (wxColour *) 0 ;
789 PyObject * obj0 = 0 ;
790 char *kwnames[] = {
791 (char *) "self", NULL
792 };
793
794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
796 {
797 PyThreadState* __tstate = wxPyBeginAllowThreads();
798 delete arg1;
799
800 wxPyEndAllowThreads(__tstate);
801 if (PyErr_Occurred()) SWIG_fail;
802 }
803 Py_INCREF(Py_None); resultobj = Py_None;
804 return resultobj;
805 fail:
806 return NULL;
807}
808
809
810static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
811 PyObject *resultobj;
812 wxString *arg1 = 0 ;
813 wxColour *result;
814 bool temp1 = False ;
815 PyObject * obj0 = 0 ;
816 char *kwnames[] = {
817 (char *) "colorName", NULL
818 };
819
820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
821 {
822 arg1 = wxString_in_helper(obj0);
823 if (arg1 == NULL) SWIG_fail;
824 temp1 = True;
825 }
826 {
827 PyThreadState* __tstate = wxPyBeginAllowThreads();
828 result = (wxColour *)new wxColour((wxString const &)*arg1);
829
830 wxPyEndAllowThreads(__tstate);
831 if (PyErr_Occurred()) SWIG_fail;
832 }
833 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
834 {
835 if (temp1)
836 delete arg1;
837 }
838 return resultobj;
839 fail:
840 {
841 if (temp1)
842 delete arg1;
843 }
844 return NULL;
845}
846
847
848static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
849 PyObject *resultobj;
850 unsigned long arg1 ;
851 wxColour *result;
852 PyObject * obj0 = 0 ;
853 char *kwnames[] = {
854 (char *) "colRGB", NULL
855 };
856
857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
858 arg1 = (unsigned long) PyInt_AsLong(obj0);
859 if (PyErr_Occurred()) SWIG_fail;
860 {
861 PyThreadState* __tstate = wxPyBeginAllowThreads();
862 result = (wxColour *)new wxColour(arg1);
863
864 wxPyEndAllowThreads(__tstate);
865 if (PyErr_Occurred()) SWIG_fail;
866 }
867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
868 return resultobj;
869 fail:
870 return NULL;
871}
872
873
874static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
875 PyObject *resultobj;
876 wxColour *arg1 = (wxColour *) 0 ;
877 unsigned char result;
878 PyObject * obj0 = 0 ;
879 char *kwnames[] = {
880 (char *) "self", NULL
881 };
882
883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
885 {
886 PyThreadState* __tstate = wxPyBeginAllowThreads();
887 result = (unsigned char)(arg1)->Red();
888
889 wxPyEndAllowThreads(__tstate);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 resultobj = PyInt_FromLong((long)result);
893 return resultobj;
894 fail:
895 return NULL;
896}
897
898
899static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
900 PyObject *resultobj;
901 wxColour *arg1 = (wxColour *) 0 ;
902 unsigned char result;
903 PyObject * obj0 = 0 ;
904 char *kwnames[] = {
905 (char *) "self", NULL
906 };
907
908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
910 {
911 PyThreadState* __tstate = wxPyBeginAllowThreads();
912 result = (unsigned char)(arg1)->Green();
913
914 wxPyEndAllowThreads(__tstate);
915 if (PyErr_Occurred()) SWIG_fail;
916 }
917 resultobj = PyInt_FromLong((long)result);
918 return resultobj;
919 fail:
920 return NULL;
921}
922
923
924static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
925 PyObject *resultobj;
926 wxColour *arg1 = (wxColour *) 0 ;
927 unsigned char result;
928 PyObject * obj0 = 0 ;
929 char *kwnames[] = {
930 (char *) "self", NULL
931 };
932
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 result = (unsigned char)(arg1)->Blue();
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) SWIG_fail;
941 }
942 resultobj = PyInt_FromLong((long)result);
943 return resultobj;
944 fail:
945 return NULL;
946}
947
948
949static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
950 PyObject *resultobj;
951 wxColour *arg1 = (wxColour *) 0 ;
952 bool result;
953 PyObject * obj0 = 0 ;
954 char *kwnames[] = {
955 (char *) "self", NULL
956 };
957
958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (bool)(arg1)->Ok();
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 resultobj = PyInt_FromLong((long)result);
968 return resultobj;
969 fail:
970 return NULL;
971}
972
973
974static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
975 PyObject *resultobj;
976 wxColour *arg1 = (wxColour *) 0 ;
977 unsigned char arg2 ;
978 unsigned char arg3 ;
979 unsigned char arg4 ;
980 PyObject * obj0 = 0 ;
981 PyObject * obj1 = 0 ;
982 PyObject * obj2 = 0 ;
983 PyObject * obj3 = 0 ;
984 char *kwnames[] = {
985 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
986 };
987
988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
990 arg2 = (unsigned char) PyInt_AsLong(obj1);
991 if (PyErr_Occurred()) SWIG_fail;
992 arg3 = (unsigned char) PyInt_AsLong(obj2);
993 if (PyErr_Occurred()) SWIG_fail;
994 arg4 = (unsigned char) PyInt_AsLong(obj3);
995 if (PyErr_Occurred()) SWIG_fail;
996 {
997 PyThreadState* __tstate = wxPyBeginAllowThreads();
998 (arg1)->Set(arg2,arg3,arg4);
999
1000 wxPyEndAllowThreads(__tstate);
1001 if (PyErr_Occurred()) SWIG_fail;
1002 }
1003 Py_INCREF(Py_None); resultobj = Py_None;
1004 return resultobj;
1005 fail:
1006 return NULL;
1007}
1008
1009
1010static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) {
1011 PyObject *resultobj;
1012 wxColour *arg1 = (wxColour *) 0 ;
1013 unsigned long arg2 ;
1014 PyObject * obj0 = 0 ;
1015 PyObject * obj1 = 0 ;
1016 char *kwnames[] = {
1017 (char *) "self",(char *) "colRGB", NULL
1018 };
1019
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail;
1021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1022 arg2 = (unsigned long) PyInt_AsLong(obj1);
1023 if (PyErr_Occurred()) SWIG_fail;
1024 {
1025 PyThreadState* __tstate = wxPyBeginAllowThreads();
1026 (arg1)->Set(arg2);
1027
1028 wxPyEndAllowThreads(__tstate);
1029 if (PyErr_Occurred()) SWIG_fail;
1030 }
1031 Py_INCREF(Py_None); resultobj = Py_None;
1032 return resultobj;
1033 fail:
1034 return NULL;
1035}
1036
1037
1038static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject *resultobj;
1040 wxColour *arg1 = (wxColour *) 0 ;
1041 wxColour *arg2 = 0 ;
1042 bool result;
1043 wxColour temp2 ;
1044 PyObject * obj0 = 0 ;
1045 PyObject * obj1 = 0 ;
1046 char *kwnames[] = {
1047 (char *) "self",(char *) "colour", NULL
1048 };
1049
1050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1052 {
1053 arg2 = &temp2;
1054 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1055 }
1056 {
1057 PyThreadState* __tstate = wxPyBeginAllowThreads();
1058 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1059
1060 wxPyEndAllowThreads(__tstate);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 }
1063 resultobj = PyInt_FromLong((long)result);
1064 return resultobj;
1065 fail:
1066 return NULL;
1067}
1068
1069
1070static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1071 PyObject *resultobj;
1072 wxColour *arg1 = (wxColour *) 0 ;
1073 wxColour *arg2 = 0 ;
1074 bool result;
1075 wxColour temp2 ;
1076 PyObject * obj0 = 0 ;
1077 PyObject * obj1 = 0 ;
1078 char *kwnames[] = {
1079 (char *) "self",(char *) "colour", NULL
1080 };
1081
1082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1084 {
1085 arg2 = &temp2;
1086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1087 }
1088 {
1089 PyThreadState* __tstate = wxPyBeginAllowThreads();
1090 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1091
1092 wxPyEndAllowThreads(__tstate);
1093 if (PyErr_Occurred()) SWIG_fail;
1094 }
1095 resultobj = PyInt_FromLong((long)result);
1096 return resultobj;
1097 fail:
1098 return NULL;
1099}
1100
1101
1102static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject *resultobj;
1104 wxColour *arg1 = (wxColour *) 0 ;
1105 PyObject *result;
1106 PyObject * obj0 = 0 ;
1107 char *kwnames[] = {
1108 (char *) "self", NULL
1109 };
1110
1111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1113 {
1114 PyThreadState* __tstate = wxPyBeginAllowThreads();
1115 result = (PyObject *)wxColour_Get(arg1);
1116
1117 wxPyEndAllowThreads(__tstate);
1118 if (PyErr_Occurred()) SWIG_fail;
1119 }
1120 resultobj = result;
1121 return resultobj;
1122 fail:
1123 return NULL;
1124}
1125
1126
1127static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1128 PyObject *obj;
1129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1130 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1131 Py_INCREF(obj);
1132 return Py_BuildValue((char *)"");
1133}
1134static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 int arg1 ;
1137 unsigned char *arg2 = (unsigned char *) 0 ;
1138 unsigned char *arg3 = (unsigned char *) 0 ;
1139 unsigned char *arg4 = (unsigned char *) 0 ;
1140 wxPalette *result;
1141 PyObject * obj1 = 0 ;
1142 PyObject * obj2 = 0 ;
1143 PyObject * obj3 = 0 ;
1144 char *kwnames[] = {
1145 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1146 };
1147
1148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1149 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1150 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1151 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) SWIG_fail;
1158 }
1159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1160 return resultobj;
1161 fail:
1162 return NULL;
1163}
1164
1165
1166static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxPalette *arg1 = (wxPalette *) 0 ;
1169 PyObject * obj0 = 0 ;
1170 char *kwnames[] = {
1171 (char *) "self", NULL
1172 };
1173
1174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1176 {
1177 PyThreadState* __tstate = wxPyBeginAllowThreads();
1178 delete arg1;
1179
1180 wxPyEndAllowThreads(__tstate);
1181 if (PyErr_Occurred()) SWIG_fail;
1182 }
1183 Py_INCREF(Py_None); resultobj = Py_None;
1184 return resultobj;
1185 fail:
1186 return NULL;
1187}
1188
1189
1190static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1191 PyObject *resultobj;
1192 wxPalette *arg1 = (wxPalette *) 0 ;
1193 byte arg2 ;
1194 byte arg3 ;
1195 byte arg4 ;
1196 int result;
1197 PyObject * obj0 = 0 ;
1198 PyObject * obj1 = 0 ;
1199 PyObject * obj2 = 0 ;
1200 PyObject * obj3 = 0 ;
1201 char *kwnames[] = {
1202 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1203 };
1204
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1207 arg2 = (byte) PyInt_AsLong(obj1);
1208 if (PyErr_Occurred()) SWIG_fail;
1209 arg3 = (byte) PyInt_AsLong(obj2);
1210 if (PyErr_Occurred()) SWIG_fail;
1211 arg4 = (byte) PyInt_AsLong(obj3);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 {
1214 PyThreadState* __tstate = wxPyBeginAllowThreads();
1215 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1216
1217 wxPyEndAllowThreads(__tstate);
1218 if (PyErr_Occurred()) SWIG_fail;
1219 }
1220 resultobj = PyInt_FromLong((long)result);
1221 return resultobj;
1222 fail:
1223 return NULL;
1224}
1225
1226
1227static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1228 PyObject *resultobj;
1229 wxPalette *arg1 = (wxPalette *) 0 ;
1230 int arg2 ;
1231 byte *arg3 = (byte *) 0 ;
1232 byte *arg4 = (byte *) 0 ;
1233 byte *arg5 = (byte *) 0 ;
1234 bool result;
1235 byte temp3 ;
1236 byte temp4 ;
1237 byte temp5 ;
1238 PyObject * obj0 = 0 ;
1239 char *kwnames[] = {
1240 (char *) "self",(char *) "pixel", NULL
1241 };
1242
1243 arg3 = &temp3;
1244 arg4 = &temp4;
1245 arg5 = &temp5;
1246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1248 {
1249 PyThreadState* __tstate = wxPyBeginAllowThreads();
1250 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1251
1252 wxPyEndAllowThreads(__tstate);
1253 if (PyErr_Occurred()) SWIG_fail;
1254 }
1255 resultobj = PyInt_FromLong((long)result);
1256 {
1257 PyObject *o = PyInt_FromLong((long) (*arg3));
1258 resultobj = t_output_helper(resultobj,o);
1259 }
1260 {
1261 PyObject *o = PyInt_FromLong((long) (*arg4));
1262 resultobj = t_output_helper(resultobj,o);
1263 }
1264 {
1265 PyObject *o = PyInt_FromLong((long) (*arg5));
1266 resultobj = t_output_helper(resultobj,o);
1267 }
1268 return resultobj;
1269 fail:
1270 return NULL;
1271}
1272
1273
1274static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1275 PyObject *resultobj;
1276 wxPalette *arg1 = (wxPalette *) 0 ;
1277 bool result;
1278 PyObject * obj0 = 0 ;
1279 char *kwnames[] = {
1280 (char *) "self", NULL
1281 };
1282
1283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1285 {
1286 PyThreadState* __tstate = wxPyBeginAllowThreads();
1287 result = (bool)(arg1)->Ok();
1288
1289 wxPyEndAllowThreads(__tstate);
1290 if (PyErr_Occurred()) SWIG_fail;
1291 }
1292 resultobj = PyInt_FromLong((long)result);
1293 return resultobj;
1294 fail:
1295 return NULL;
1296}
1297
1298
1299static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1300 PyObject *obj;
1301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1302 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1303 Py_INCREF(obj);
1304 return Py_BuildValue((char *)"");
1305}
1306static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1307 PyObject *resultobj;
1308 wxColour *arg1 = 0 ;
1309 int arg2 = (int) 1 ;
1310 int arg3 = (int) wxSOLID ;
1311 wxPen *result;
1312 wxColour temp1 ;
1313 PyObject * obj0 = 0 ;
1314 char *kwnames[] = {
1315 (char *) "colour",(char *) "width",(char *) "style", NULL
1316 };
1317
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1319 {
1320 arg1 = &temp1;
1321 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1322 }
1323 {
1324 PyThreadState* __tstate = wxPyBeginAllowThreads();
1325 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1326
1327 wxPyEndAllowThreads(__tstate);
1328 if (PyErr_Occurred()) SWIG_fail;
1329 }
1330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1331 return resultobj;
1332 fail:
1333 return NULL;
1334}
1335
1336
1337static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1338 PyObject *resultobj;
1339 wxPen *arg1 = (wxPen *) 0 ;
1340 PyObject * obj0 = 0 ;
1341 char *kwnames[] = {
1342 (char *) "self", NULL
1343 };
1344
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1347 {
1348 PyThreadState* __tstate = wxPyBeginAllowThreads();
1349 delete arg1;
1350
1351 wxPyEndAllowThreads(__tstate);
1352 if (PyErr_Occurred()) SWIG_fail;
1353 }
1354 Py_INCREF(Py_None); resultobj = Py_None;
1355 return resultobj;
1356 fail:
1357 return NULL;
1358}
1359
1360
1361static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject *resultobj;
1363 wxPen *arg1 = (wxPen *) 0 ;
1364 int result;
1365 PyObject * obj0 = 0 ;
1366 char *kwnames[] = {
1367 (char *) "self", NULL
1368 };
1369
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
1374 result = (int)(arg1)->GetCap();
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
1379 resultobj = PyInt_FromLong((long)result);
1380 return resultobj;
1381 fail:
1382 return NULL;
1383}
1384
1385
1386static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1387 PyObject *resultobj;
1388 wxPen *arg1 = (wxPen *) 0 ;
1389 wxColour result;
1390 PyObject * obj0 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "self", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1397 {
1398 PyThreadState* __tstate = wxPyBeginAllowThreads();
1399 result = (arg1)->GetColour();
1400
1401 wxPyEndAllowThreads(__tstate);
1402 if (PyErr_Occurred()) SWIG_fail;
1403 }
1404 {
1405 wxColour * resultptr;
1406 resultptr = new wxColour((wxColour &) result);
1407 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1408 }
1409 return resultobj;
1410 fail:
1411 return NULL;
1412}
1413
1414
1415static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject *resultobj;
1417 wxPen *arg1 = (wxPen *) 0 ;
1418 int result;
1419 PyObject * obj0 = 0 ;
1420 char *kwnames[] = {
1421 (char *) "self", NULL
1422 };
1423
1424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 result = (int)(arg1)->GetJoin();
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 resultobj = PyInt_FromLong((long)result);
1434 return resultobj;
1435 fail:
1436 return NULL;
1437}
1438
1439
1440static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1441 PyObject *resultobj;
1442 wxPen *arg1 = (wxPen *) 0 ;
1443 int result;
1444 PyObject * obj0 = 0 ;
1445 char *kwnames[] = {
1446 (char *) "self", NULL
1447 };
1448
1449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1451 {
1452 PyThreadState* __tstate = wxPyBeginAllowThreads();
1453 result = (int)(arg1)->GetStyle();
1454
1455 wxPyEndAllowThreads(__tstate);
1456 if (PyErr_Occurred()) SWIG_fail;
1457 }
1458 resultobj = PyInt_FromLong((long)result);
1459 return resultobj;
1460 fail:
1461 return NULL;
1462}
1463
1464
1465static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1466 PyObject *resultobj;
1467 wxPen *arg1 = (wxPen *) 0 ;
1468 int result;
1469 PyObject * obj0 = 0 ;
1470 char *kwnames[] = {
1471 (char *) "self", NULL
1472 };
1473
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1476 {
1477 PyThreadState* __tstate = wxPyBeginAllowThreads();
1478 result = (int)(arg1)->GetWidth();
1479
1480 wxPyEndAllowThreads(__tstate);
1481 if (PyErr_Occurred()) SWIG_fail;
1482 }
1483 resultobj = PyInt_FromLong((long)result);
1484 return resultobj;
1485 fail:
1486 return NULL;
1487}
1488
1489
1490static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1491 PyObject *resultobj;
1492 wxPen *arg1 = (wxPen *) 0 ;
1493 bool result;
1494 PyObject * obj0 = 0 ;
1495 char *kwnames[] = {
1496 (char *) "self", NULL
1497 };
1498
1499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1501 {
1502 PyThreadState* __tstate = wxPyBeginAllowThreads();
1503 result = (bool)(arg1)->Ok();
1504
1505 wxPyEndAllowThreads(__tstate);
1506 if (PyErr_Occurred()) SWIG_fail;
1507 }
1508 resultobj = PyInt_FromLong((long)result);
1509 return resultobj;
1510 fail:
1511 return NULL;
1512}
1513
1514
1515static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1516 PyObject *resultobj;
1517 wxPen *arg1 = (wxPen *) 0 ;
1518 int arg2 ;
1519 PyObject * obj0 = 0 ;
1520 char *kwnames[] = {
1521 (char *) "self",(char *) "cap_style", NULL
1522 };
1523
1524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 (arg1)->SetCap(arg2);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 Py_INCREF(Py_None); resultobj = Py_None;
1534 return resultobj;
1535 fail:
1536 return NULL;
1537}
1538
1539
1540static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1541 PyObject *resultobj;
1542 wxPen *arg1 = (wxPen *) 0 ;
1543 wxColour *arg2 = 0 ;
1544 wxColour temp2 ;
1545 PyObject * obj0 = 0 ;
1546 PyObject * obj1 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self",(char *) "colour", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1553 {
1554 arg2 = &temp2;
1555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1556 }
1557 {
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 (arg1)->SetColour(*arg2);
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) SWIG_fail;
1563 }
1564 Py_INCREF(Py_None); resultobj = Py_None;
1565 return resultobj;
1566 fail:
1567 return NULL;
1568}
1569
1570
1571static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject *resultobj;
1573 wxPen *arg1 = (wxPen *) 0 ;
1574 int arg2 ;
1575 PyObject * obj0 = 0 ;
1576 char *kwnames[] = {
1577 (char *) "self",(char *) "join_style", NULL
1578 };
1579
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1582 {
1583 PyThreadState* __tstate = wxPyBeginAllowThreads();
1584 (arg1)->SetJoin(arg2);
1585
1586 wxPyEndAllowThreads(__tstate);
1587 if (PyErr_Occurred()) SWIG_fail;
1588 }
1589 Py_INCREF(Py_None); resultobj = Py_None;
1590 return resultobj;
1591 fail:
1592 return NULL;
1593}
1594
1595
1596static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1597 PyObject *resultobj;
1598 wxPen *arg1 = (wxPen *) 0 ;
1599 int arg2 ;
1600 PyObject * obj0 = 0 ;
1601 char *kwnames[] = {
1602 (char *) "self",(char *) "style", NULL
1603 };
1604
1605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1607 {
1608 PyThreadState* __tstate = wxPyBeginAllowThreads();
1609 (arg1)->SetStyle(arg2);
1610
1611 wxPyEndAllowThreads(__tstate);
1612 if (PyErr_Occurred()) SWIG_fail;
1613 }
1614 Py_INCREF(Py_None); resultobj = Py_None;
1615 return resultobj;
1616 fail:
1617 return NULL;
1618}
1619
1620
1621static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1622 PyObject *resultobj;
1623 wxPen *arg1 = (wxPen *) 0 ;
1624 int arg2 ;
1625 PyObject * obj0 = 0 ;
1626 char *kwnames[] = {
1627 (char *) "self",(char *) "width", NULL
1628 };
1629
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1632 {
1633 PyThreadState* __tstate = wxPyBeginAllowThreads();
1634 (arg1)->SetWidth(arg2);
1635
1636 wxPyEndAllowThreads(__tstate);
1637 if (PyErr_Occurred()) SWIG_fail;
1638 }
1639 Py_INCREF(Py_None); resultobj = Py_None;
1640 return resultobj;
1641 fail:
1642 return NULL;
1643}
1644
1645
1646static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject *resultobj;
1648 wxPen *arg1 = (wxPen *) 0 ;
1649 int arg2 ;
1650 wxDash *arg3 = (wxDash *) 0 ;
1651 PyObject * obj0 = 0 ;
1652 PyObject * obj1 = 0 ;
1653 char *kwnames[] = {
1654 (char *) "self",(char *) "dashes", NULL
1655 };
1656
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1659 {
1660 arg2 = PyList_Size(obj1);
1661 arg3 = (wxDash*)byte_LIST_helper(obj1);
1662 if (arg3 == NULL) SWIG_fail;
1663 }
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 (arg1)->SetDashes(arg2,arg3);
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 }
1671 Py_INCREF(Py_None); resultobj = Py_None;
1672 {
1673 if (arg3) delete [] arg3;
1674 }
1675 return resultobj;
1676 fail:
1677 {
1678 if (arg3) delete [] arg3;
1679 }
1680 return NULL;
1681}
1682
1683
1684static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1685 PyObject *resultobj;
1686 wxPen *arg1 = (wxPen *) 0 ;
1687 PyObject *result;
1688 PyObject * obj0 = 0 ;
1689 char *kwnames[] = {
1690 (char *) "self", NULL
1691 };
1692
1693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1695 {
1696 PyThreadState* __tstate = wxPyBeginAllowThreads();
1697 result = (PyObject *)wxPen_GetDashes(arg1);
1698
1699 wxPyEndAllowThreads(__tstate);
1700 if (PyErr_Occurred()) SWIG_fail;
1701 }
1702 resultobj = result;
1703 return resultobj;
1704 fail:
1705 return NULL;
1706}
1707
1708
1709static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1710 PyObject *obj;
1711 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1712 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1713 Py_INCREF(obj);
1714 return Py_BuildValue((char *)"");
1715}
1716static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject *resultobj;
1718 wxColour *arg1 = 0 ;
1719 int arg2 = (int) 1 ;
1720 int arg3 = (int) wxSOLID ;
1721 wxPyPen *result;
1722 wxColour temp1 ;
1723 PyObject * obj0 = 0 ;
1724 char *kwnames[] = {
1725 (char *) "colour",(char *) "width",(char *) "style", NULL
1726 };
1727
1728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1729 {
1730 arg1 = &temp1;
1731 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1732 }
1733 {
1734 PyThreadState* __tstate = wxPyBeginAllowThreads();
1735 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1736
1737 wxPyEndAllowThreads(__tstate);
1738 if (PyErr_Occurred()) SWIG_fail;
1739 }
1740 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1741 return resultobj;
1742 fail:
1743 return NULL;
1744}
1745
1746
1747static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxPyPen *arg1 = (wxPyPen *) 0 ;
1750 PyObject * obj0 = 0 ;
1751 char *kwnames[] = {
1752 (char *) "self", NULL
1753 };
1754
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1757 {
1758 PyThreadState* __tstate = wxPyBeginAllowThreads();
1759 delete arg1;
1760
1761 wxPyEndAllowThreads(__tstate);
1762 if (PyErr_Occurred()) SWIG_fail;
1763 }
1764 Py_INCREF(Py_None); resultobj = Py_None;
1765 return resultobj;
1766 fail:
1767 return NULL;
1768}
1769
1770
1771static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1772 PyObject *resultobj;
1773 wxPyPen *arg1 = (wxPyPen *) 0 ;
1774 int arg2 ;
1775 wxDash *arg3 = (wxDash *) 0 ;
1776 PyObject * obj0 = 0 ;
1777 PyObject * obj1 = 0 ;
1778 char *kwnames[] = {
1779 (char *) "self",(char *) "dashes", NULL
1780 };
1781
1782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1784 {
1785 arg2 = PyList_Size(obj1);
1786 arg3 = (wxDash*)byte_LIST_helper(obj1);
1787 if (arg3 == NULL) SWIG_fail;
1788 }
1789 {
1790 PyThreadState* __tstate = wxPyBeginAllowThreads();
1791 (arg1)->SetDashes(arg2,arg3);
1792
1793 wxPyEndAllowThreads(__tstate);
1794 if (PyErr_Occurred()) SWIG_fail;
1795 }
1796 Py_INCREF(Py_None); resultobj = Py_None;
1797 {
1798 if (arg3) delete [] arg3;
1799 }
1800 return resultobj;
1801 fail:
1802 {
1803 if (arg3) delete [] arg3;
1804 }
1805 return NULL;
1806}
1807
1808
1809static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1810 PyObject *obj;
1811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1812 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1813 Py_INCREF(obj);
1814 return Py_BuildValue((char *)"");
1815}
1816static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1817 PyObject *resultobj;
1818 wxColour *arg1 = 0 ;
1819 int arg2 = (int) wxSOLID ;
1820 wxBrush *result;
1821 wxColour temp1 ;
1822 PyObject * obj0 = 0 ;
1823 char *kwnames[] = {
1824 (char *) "colour",(char *) "style", NULL
1825 };
1826
1827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1828 {
1829 arg1 = &temp1;
1830 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1831 }
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1840 return resultobj;
1841 fail:
1842 return NULL;
1843}
1844
1845
1846static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1847 PyObject *resultobj;
1848 wxBrush *arg1 = (wxBrush *) 0 ;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1856 {
1857 PyThreadState* __tstate = wxPyBeginAllowThreads();
1858 delete arg1;
1859
1860 wxPyEndAllowThreads(__tstate);
1861 if (PyErr_Occurred()) SWIG_fail;
1862 }
1863 Py_INCREF(Py_None); resultobj = Py_None;
1864 return resultobj;
1865 fail:
1866 return NULL;
1867}
1868
1869
1870static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1871 PyObject *resultobj;
1872 wxBrush *arg1 = (wxBrush *) 0 ;
1873 wxColour *arg2 = 0 ;
1874 wxColour temp2 ;
1875 PyObject * obj0 = 0 ;
1876 PyObject * obj1 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "self",(char *) "col", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1883 {
1884 arg2 = &temp2;
1885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1886 }
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 (arg1)->SetColour((wxColour const &)*arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) SWIG_fail;
1893 }
1894 Py_INCREF(Py_None); resultobj = Py_None;
1895 return resultobj;
1896 fail:
1897 return NULL;
1898}
1899
1900
1901static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxBrush *arg1 = (wxBrush *) 0 ;
1904 int arg2 ;
1905 PyObject * obj0 = 0 ;
1906 char *kwnames[] = {
1907 (char *) "self",(char *) "style", NULL
1908 };
1909
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1912 {
1913 PyThreadState* __tstate = wxPyBeginAllowThreads();
1914 (arg1)->SetStyle(arg2);
1915
1916 wxPyEndAllowThreads(__tstate);
1917 if (PyErr_Occurred()) SWIG_fail;
1918 }
1919 Py_INCREF(Py_None); resultobj = Py_None;
1920 return resultobj;
1921 fail:
1922 return NULL;
1923}
1924
1925
1926static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1927 PyObject *resultobj;
1928 wxBrush *arg1 = (wxBrush *) 0 ;
1929 wxBitmap *arg2 = 0 ;
1930 PyObject * obj0 = 0 ;
1931 PyObject * obj1 = 0 ;
1932 char *kwnames[] = {
1933 (char *) "self",(char *) "stipple", NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1938 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1939 if (arg2 == NULL) {
1940 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1941 }
1942 {
1943 PyThreadState* __tstate = wxPyBeginAllowThreads();
1944 (arg1)->SetStipple((wxBitmap const &)*arg2);
1945
1946 wxPyEndAllowThreads(__tstate);
1947 if (PyErr_Occurred()) SWIG_fail;
1948 }
1949 Py_INCREF(Py_None); resultobj = Py_None;
1950 return resultobj;
1951 fail:
1952 return NULL;
1953}
1954
1955
1956static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject *resultobj;
1958 wxBrush *arg1 = (wxBrush *) 0 ;
1959 wxColour result;
1960 PyObject * obj0 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "self", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
1966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 result = ((wxBrush const *)arg1)->GetColour();
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) SWIG_fail;
1973 }
1974 {
1975 wxColour * resultptr;
1976 resultptr = new wxColour((wxColour &) result);
1977 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1978 }
1979 return resultobj;
1980 fail:
1981 return NULL;
1982}
1983
1984
1985static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxBrush *arg1 = (wxBrush *) 0 ;
1988 int result;
1989 PyObject * obj0 = 0 ;
1990 char *kwnames[] = {
1991 (char *) "self", NULL
1992 };
1993
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
1995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1996 {
1997 PyThreadState* __tstate = wxPyBeginAllowThreads();
1998 result = (int)((wxBrush const *)arg1)->GetStyle();
1999
2000 wxPyEndAllowThreads(__tstate);
2001 if (PyErr_Occurred()) SWIG_fail;
2002 }
2003 resultobj = PyInt_FromLong((long)result);
2004 return resultobj;
2005 fail:
2006 return NULL;
2007}
2008
2009
2010static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2011 PyObject *resultobj;
2012 wxBrush *arg1 = (wxBrush *) 0 ;
2013 wxBitmap *result;
2014 PyObject * obj0 = 0 ;
2015 char *kwnames[] = {
2016 (char *) "self", NULL
2017 };
2018
2019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2029 return resultobj;
2030 fail:
2031 return NULL;
2032}
2033
2034
2035static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2036 PyObject *resultobj;
2037 wxBrush *arg1 = (wxBrush *) 0 ;
2038 bool result;
2039 PyObject * obj0 = 0 ;
2040 char *kwnames[] = {
2041 (char *) "self", NULL
2042 };
2043
2044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2046 {
2047 PyThreadState* __tstate = wxPyBeginAllowThreads();
2048 result = (bool)(arg1)->Ok();
2049
2050 wxPyEndAllowThreads(__tstate);
2051 if (PyErr_Occurred()) SWIG_fail;
2052 }
2053 resultobj = PyInt_FromLong((long)result);
2054 return resultobj;
2055 fail:
2056 return NULL;
2057}
2058
2059
2060static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2061 PyObject *obj;
2062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2063 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2064 Py_INCREF(obj);
2065 return Py_BuildValue((char *)"");
2066}
2067static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2068 PyObject *resultobj;
2069 wxString *arg1 = 0 ;
2070 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2071 wxBitmap *result;
2072 bool temp1 = False ;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "name",(char *) "type", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2079 {
2080 arg1 = wxString_in_helper(obj0);
2081 if (arg1 == NULL) SWIG_fail;
2082 temp1 = True;
2083 }
2084 {
2085 PyThreadState* __tstate = wxPyBeginAllowThreads();
2086 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2087
2088 wxPyEndAllowThreads(__tstate);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 }
2091 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2092 {
2093 if (temp1)
2094 delete arg1;
2095 }
2096 return resultobj;
2097 fail:
2098 {
2099 if (temp1)
2100 delete arg1;
2101 }
2102 return NULL;
2103}
2104
2105
2106static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2107 PyObject *resultobj;
2108 wxBitmap *arg1 = (wxBitmap *) 0 ;
2109 PyObject * obj0 = 0 ;
2110 char *kwnames[] = {
2111 (char *) "self", NULL
2112 };
2113
2114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2116 {
2117 PyThreadState* __tstate = wxPyBeginAllowThreads();
2118 delete arg1;
2119
2120 wxPyEndAllowThreads(__tstate);
2121 if (PyErr_Occurred()) SWIG_fail;
2122 }
2123 Py_INCREF(Py_None); resultobj = Py_None;
2124 return resultobj;
2125 fail:
2126 return NULL;
2127}
2128
2129
2130static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2131 PyObject *resultobj;
2132 int arg1 ;
2133 int arg2 ;
2134 int arg3 = (int) -1 ;
2135 wxBitmap *result;
2136 char *kwnames[] = {
2137 (char *) "width",(char *) "height",(char *) "depth", NULL
2138 };
2139
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2141 {
2142 PyThreadState* __tstate = wxPyBeginAllowThreads();
2143 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2144
2145 wxPyEndAllowThreads(__tstate);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 }
2148 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2149 return resultobj;
2150 fail:
2151 return NULL;
2152}
2153
2154
2155static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 wxIcon *arg1 = 0 ;
2158 wxBitmap *result;
2159 PyObject * obj0 = 0 ;
2160 char *kwnames[] = {
2161 (char *) "icon", NULL
2162 };
2163
2164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2166 if (arg1 == NULL) {
2167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2168 }
2169 {
2170 PyThreadState* __tstate = wxPyBeginAllowThreads();
2171 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2172
2173 wxPyEndAllowThreads(__tstate);
2174 if (PyErr_Occurred()) SWIG_fail;
2175 }
2176 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2177 return resultobj;
2178 fail:
2179 return NULL;
2180}
2181
2182
2183static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2184 PyObject *resultobj;
2185 wxImage *arg1 = 0 ;
2186 int arg2 = (int) -1 ;
2187 wxBitmap *result;
2188 PyObject * obj0 = 0 ;
2189 char *kwnames[] = {
2190 (char *) "image",(char *) "depth", NULL
2191 };
2192
2193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2195 if (arg1 == NULL) {
2196 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2197 }
2198 {
2199 PyThreadState* __tstate = wxPyBeginAllowThreads();
2200 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2206 return resultobj;
2207 fail:
2208 return NULL;
2209}
2210
2211
2212static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject *resultobj;
2214 PyObject *arg1 = (PyObject *) 0 ;
2215 wxBitmap *result;
2216 PyObject * obj0 = 0 ;
2217 char *kwnames[] = {
2218 (char *) "listOfStrings", NULL
2219 };
2220
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2222 arg1 = obj0;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 result = (wxBitmap *)new_wxBitmap(arg1);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2231 return resultobj;
2232 fail:
2233 return NULL;
2234}
2235
2236
2237static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 PyObject *arg1 = (PyObject *) 0 ;
2240 int arg2 ;
2241 int arg3 ;
2242 int arg4 = (int) 1 ;
2243 wxBitmap *result;
2244 PyObject * obj0 = 0 ;
2245 char *kwnames[] = {
2246 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2247 };
2248
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2250 arg1 = obj0;
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2259 return resultobj;
2260 fail:
2261 return NULL;
2262}
2263
2264
2265static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxBitmap *arg1 = (wxBitmap *) 0 ;
2268 bool result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (bool)(arg1)->Ok();
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = PyInt_FromLong((long)result);
2284 return resultobj;
2285 fail:
2286 return NULL;
2287}
2288
2289
2290static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 wxBitmap *arg1 = (wxBitmap *) 0 ;
2293 int result;
2294 PyObject * obj0 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "self", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (int)(arg1)->GetWidth();
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 resultobj = PyInt_FromLong((long)result);
2309 return resultobj;
2310 fail:
2311 return NULL;
2312}
2313
2314
2315static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2316 PyObject *resultobj;
2317 wxBitmap *arg1 = (wxBitmap *) 0 ;
2318 int result;
2319 PyObject * obj0 = 0 ;
2320 char *kwnames[] = {
2321 (char *) "self", NULL
2322 };
2323
2324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 result = (int)(arg1)->GetHeight();
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 resultobj = PyInt_FromLong((long)result);
2334 return resultobj;
2335 fail:
2336 return NULL;
2337}
2338
2339
2340static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject *resultobj;
2342 wxBitmap *arg1 = (wxBitmap *) 0 ;
2343 int result;
2344 PyObject * obj0 = 0 ;
2345 char *kwnames[] = {
2346 (char *) "self", NULL
2347 };
2348
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2351 {
2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
2353 result = (int)(arg1)->GetDepth();
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 resultobj = PyInt_FromLong((long)result);
2359 return resultobj;
2360 fail:
2361 return NULL;
2362}
2363
2364
2365static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2366 PyObject *resultobj;
2367 wxBitmap *arg1 = (wxBitmap *) 0 ;
2368 SwigValueWrapper< wxImage > result;
2369 PyObject * obj0 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 result = ((wxBitmap const *)arg1)->ConvertToImage();
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 }
2383 {
2384 wxImage * resultptr;
2385 resultptr = new wxImage((wxImage &) result);
2386 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2387 }
2388 return resultobj;
2389 fail:
2390 return NULL;
2391}
2392
2393
2394static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxBitmap *arg1 = (wxBitmap *) 0 ;
2397 wxMask *result;
2398 PyObject * obj0 = 0 ;
2399 char *kwnames[] = {
2400 (char *) "self", NULL
2401 };
2402
2403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2413 return resultobj;
2414 fail:
2415 return NULL;
2416}
2417
2418
2419static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2420 PyObject *resultobj;
2421 wxBitmap *arg1 = (wxBitmap *) 0 ;
2422 wxMask *arg2 = (wxMask *) 0 ;
2423 PyObject * obj0 = 0 ;
2424 PyObject * obj1 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self",(char *) "mask", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 (arg1)->SetMask(arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 Py_INCREF(Py_None); resultobj = Py_None;
2440 return resultobj;
2441 fail:
2442 return NULL;
2443}
2444
2445
2446static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxBitmap *arg1 = (wxBitmap *) 0 ;
2449 wxColour *arg2 = 0 ;
2450 wxColour temp2 ;
2451 PyObject * obj0 = 0 ;
2452 PyObject * obj1 = 0 ;
2453 char *kwnames[] = {
2454 (char *) "self",(char *) "colour", NULL
2455 };
2456
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2459 {
2460 arg2 = &temp2;
2461 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2462 }
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 Py_INCREF(Py_None); resultobj = Py_None;
2471 return resultobj;
2472 fail:
2473 return NULL;
2474}
2475
2476
2477static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 wxBitmap *arg1 = (wxBitmap *) 0 ;
2480 wxRect *arg2 = 0 ;
2481 SwigValueWrapper< wxBitmap > result;
2482 wxRect temp2 ;
2483 PyObject * obj0 = 0 ;
2484 PyObject * obj1 = 0 ;
2485 char *kwnames[] = {
2486 (char *) "self",(char *) "rect", NULL
2487 };
2488
2489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2491 {
2492 arg2 = &temp2;
2493 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2494 }
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) SWIG_fail;
2501 }
2502 {
2503 wxBitmap * resultptr;
2504 resultptr = new wxBitmap((wxBitmap &) result);
2505 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2506 }
2507 return resultobj;
2508 fail:
2509 return NULL;
2510}
2511
2512
2513static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2514 PyObject *resultobj;
2515 wxBitmap *arg1 = (wxBitmap *) 0 ;
2516 wxString *arg2 = 0 ;
2517 int arg3 ;
2518 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2519 bool result;
2520 bool temp2 = False ;
2521 PyObject * obj0 = 0 ;
2522 PyObject * obj1 = 0 ;
2523 PyObject * obj3 = 0 ;
2524 char *kwnames[] = {
2525 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2526 };
2527
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2530 {
2531 arg2 = wxString_in_helper(obj1);
2532 if (arg2 == NULL) SWIG_fail;
2533 temp2 = True;
2534 }
2535 if (obj3) {
2536 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2537 }
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 resultobj = PyInt_FromLong((long)result);
2546 {
2547 if (temp2)
2548 delete arg2;
2549 }
2550 return resultobj;
2551 fail:
2552 {
2553 if (temp2)
2554 delete arg2;
2555 }
2556 return NULL;
2557}
2558
2559
2560static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject *resultobj;
2562 wxBitmap *arg1 = (wxBitmap *) 0 ;
2563 wxString *arg2 = 0 ;
2564 int arg3 ;
2565 bool result;
2566 bool temp2 = False ;
2567 PyObject * obj0 = 0 ;
2568 PyObject * obj1 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self",(char *) "name",(char *) "type", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2575 {
2576 arg2 = wxString_in_helper(obj1);
2577 if (arg2 == NULL) SWIG_fail;
2578 temp2 = True;
2579 }
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 resultobj = PyInt_FromLong((long)result);
2588 {
2589 if (temp2)
2590 delete arg2;
2591 }
2592 return resultobj;
2593 fail:
2594 {
2595 if (temp2)
2596 delete arg2;
2597 }
2598 return NULL;
2599}
2600
2601
2602static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxBitmap *arg1 = (wxBitmap *) 0 ;
2605 wxIcon *arg2 = 0 ;
2606 bool result;
2607 PyObject * obj0 = 0 ;
2608 PyObject * obj1 = 0 ;
2609 char *kwnames[] = {
2610 (char *) "self",(char *) "icon", NULL
2611 };
2612
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2615 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2616 if (arg2 == NULL) {
2617 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2618 }
2619 {
2620 PyThreadState* __tstate = wxPyBeginAllowThreads();
2621 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2622
2623 wxPyEndAllowThreads(__tstate);
2624 if (PyErr_Occurred()) SWIG_fail;
2625 }
2626 resultobj = PyInt_FromLong((long)result);
2627 return resultobj;
2628 fail:
2629 return NULL;
2630}
2631
2632
2633static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2634 PyObject *resultobj;
2635 wxBitmap *arg1 = (wxBitmap *) 0 ;
2636 int arg2 ;
2637 PyObject * obj0 = 0 ;
2638 char *kwnames[] = {
2639 (char *) "self",(char *) "height", NULL
2640 };
2641
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2644 {
2645 PyThreadState* __tstate = wxPyBeginAllowThreads();
2646 (arg1)->SetHeight(arg2);
2647
2648 wxPyEndAllowThreads(__tstate);
2649 if (PyErr_Occurred()) SWIG_fail;
2650 }
2651 Py_INCREF(Py_None); resultobj = Py_None;
2652 return resultobj;
2653 fail:
2654 return NULL;
2655}
2656
2657
2658static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2659 PyObject *resultobj;
2660 wxBitmap *arg1 = (wxBitmap *) 0 ;
2661 int arg2 ;
2662 PyObject * obj0 = 0 ;
2663 char *kwnames[] = {
2664 (char *) "self",(char *) "width", NULL
2665 };
2666
2667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2669 {
2670 PyThreadState* __tstate = wxPyBeginAllowThreads();
2671 (arg1)->SetWidth(arg2);
2672
2673 wxPyEndAllowThreads(__tstate);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 }
2676 Py_INCREF(Py_None); resultobj = Py_None;
2677 return resultobj;
2678 fail:
2679 return NULL;
2680}
2681
2682
2683static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2684 PyObject *resultobj;
2685 wxBitmap *arg1 = (wxBitmap *) 0 ;
2686 int arg2 ;
2687 PyObject * obj0 = 0 ;
2688 char *kwnames[] = {
2689 (char *) "self",(char *) "depth", NULL
2690 };
2691
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2694 {
2695 PyThreadState* __tstate = wxPyBeginAllowThreads();
2696 (arg1)->SetDepth(arg2);
2697
2698 wxPyEndAllowThreads(__tstate);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 }
2701 Py_INCREF(Py_None); resultobj = Py_None;
2702 return resultobj;
2703 fail:
2704 return NULL;
2705}
2706
2707
2708static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2709 PyObject *obj;
2710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2711 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2712 Py_INCREF(obj);
2713 return Py_BuildValue((char *)"");
2714}
2715static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2716 PyObject *resultobj;
2717 wxBitmap *arg1 = 0 ;
2718 wxMask *result;
2719 PyObject * obj0 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "bitmap", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2726 if (arg1 == NULL) {
2727 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2728 }
2729 {
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2732
2733 wxPyEndAllowThreads(__tstate);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 }
2736 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2737 return resultobj;
2738 fail:
2739 return NULL;
2740}
2741
2742
2743static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2744 PyObject *resultobj;
2745 wxBitmap *arg1 = 0 ;
2746 wxColour *arg2 = 0 ;
2747 wxMask *result;
2748 wxColour temp2 ;
2749 PyObject * obj0 = 0 ;
2750 PyObject * obj1 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "bitmap",(char *) "colour", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2757 if (arg1 == NULL) {
2758 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2759 }
2760 {
2761 arg2 = &temp2;
2762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2763 }
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2767
2768 wxPyEndAllowThreads(__tstate);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 }
2771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2772 return resultobj;
2773 fail:
2774 return NULL;
2775}
2776
2777
2778static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2779 PyObject *obj;
2780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2781 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2782 Py_INCREF(obj);
2783 return Py_BuildValue((char *)"");
2784}
2785static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2786 PyObject *resultobj;
2787 wxString *arg1 = 0 ;
2788 long arg2 ;
2789 int arg3 = (int) -1 ;
2790 int arg4 = (int) -1 ;
2791 wxIcon *result;
2792 bool temp1 = False ;
2793 PyObject * obj0 = 0 ;
2794 char *kwnames[] = {
2795 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2796 };
2797
2798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2799 {
2800 arg1 = wxString_in_helper(obj0);
2801 if (arg1 == NULL) SWIG_fail;
2802 temp1 = True;
2803 }
2804 {
2805 PyThreadState* __tstate = wxPyBeginAllowThreads();
2806 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
2807
2808 wxPyEndAllowThreads(__tstate);
2809 if (PyErr_Occurred()) SWIG_fail;
2810 }
2811 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2812 {
2813 if (temp1)
2814 delete arg1;
2815 }
2816 return resultobj;
2817 fail:
2818 {
2819 if (temp1)
2820 delete arg1;
2821 }
2822 return NULL;
2823}
2824
2825
2826static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 wxIcon *arg1 = (wxIcon *) 0 ;
2829 PyObject * obj0 = 0 ;
2830 char *kwnames[] = {
2831 (char *) "self", NULL
2832 };
2833
2834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2836 {
2837 PyThreadState* __tstate = wxPyBeginAllowThreads();
2838 delete arg1;
2839
2840 wxPyEndAllowThreads(__tstate);
2841 if (PyErr_Occurred()) SWIG_fail;
2842 }
2843 Py_INCREF(Py_None); resultobj = Py_None;
2844 return resultobj;
2845 fail:
2846 return NULL;
2847}
2848
2849
2850static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2851 PyObject *resultobj;
2852 wxIcon *result;
2853 char *kwnames[] = {
2854 NULL
2855 };
2856
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (wxIcon *)new wxIcon();
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2866 return resultobj;
2867 fail:
2868 return NULL;
2869}
2870
2871
2872static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 wxIconLocation *arg1 = 0 ;
2875 wxIcon *result;
2876 PyObject * obj0 = 0 ;
2877 char *kwnames[] = {
2878 (char *) "loc", NULL
2879 };
2880
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2883 if (arg1 == NULL) {
2884 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2885 }
2886 {
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
2893 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2894 return resultobj;
2895 fail:
2896 return NULL;
2897}
2898
2899
2900static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 wxBitmap *arg1 = 0 ;
2903 wxIcon *result;
2904 PyObject * obj0 = 0 ;
2905 char *kwnames[] = {
2906 (char *) "bmp", NULL
2907 };
2908
2909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2911 if (arg1 == NULL) {
2912 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2913 }
2914 {
2915 PyThreadState* __tstate = wxPyBeginAllowThreads();
2916 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2917
2918 wxPyEndAllowThreads(__tstate);
2919 if (PyErr_Occurred()) SWIG_fail;
2920 }
2921 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2922 return resultobj;
2923 fail:
2924 return NULL;
2925}
2926
2927
2928static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2929 PyObject *resultobj;
2930 PyObject *arg1 = (PyObject *) 0 ;
2931 wxIcon *result;
2932 PyObject * obj0 = 0 ;
2933 char *kwnames[] = {
2934 (char *) "listOfStrings", NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
2938 arg1 = obj0;
2939 {
2940 PyThreadState* __tstate = wxPyBeginAllowThreads();
2941 result = (wxIcon *)new_wxIcon(arg1);
2942
2943 wxPyEndAllowThreads(__tstate);
2944 if (PyErr_Occurred()) SWIG_fail;
2945 }
2946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2947 return resultobj;
2948 fail:
2949 return NULL;
2950}
2951
2952
2953static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2954 PyObject *resultobj;
2955 wxIcon *arg1 = (wxIcon *) 0 ;
2956 wxString *arg2 = 0 ;
2957 long arg3 ;
2958 bool result;
2959 bool temp2 = False ;
2960 PyObject * obj0 = 0 ;
2961 PyObject * obj1 = 0 ;
2962 char *kwnames[] = {
2963 (char *) "self",(char *) "name",(char *) "flags", NULL
2964 };
2965
2966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2968 {
2969 arg2 = wxString_in_helper(obj1);
2970 if (arg2 == NULL) SWIG_fail;
2971 temp2 = True;
2972 }
2973 {
2974 PyThreadState* __tstate = wxPyBeginAllowThreads();
2975 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
2976
2977 wxPyEndAllowThreads(__tstate);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 }
2980 resultobj = PyInt_FromLong((long)result);
2981 {
2982 if (temp2)
2983 delete arg2;
2984 }
2985 return resultobj;
2986 fail:
2987 {
2988 if (temp2)
2989 delete arg2;
2990 }
2991 return NULL;
2992}
2993
2994
2995static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 wxIcon *arg1 = (wxIcon *) 0 ;
2998 bool result;
2999 PyObject * obj0 = 0 ;
3000 char *kwnames[] = {
3001 (char *) "self", NULL
3002 };
3003
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3006 {
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
3008 result = (bool)(arg1)->Ok();
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) SWIG_fail;
3012 }
3013 resultobj = PyInt_FromLong((long)result);
3014 return resultobj;
3015 fail:
3016 return NULL;
3017}
3018
3019
3020static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3021 PyObject *resultobj;
3022 wxIcon *arg1 = (wxIcon *) 0 ;
3023 int result;
3024 PyObject * obj0 = 0 ;
3025 char *kwnames[] = {
3026 (char *) "self", NULL
3027 };
3028
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = (int)(arg1)->GetWidth();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
3038 resultobj = PyInt_FromLong((long)result);
3039 return resultobj;
3040 fail:
3041 return NULL;
3042}
3043
3044
3045static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3046 PyObject *resultobj;
3047 wxIcon *arg1 = (wxIcon *) 0 ;
3048 int result;
3049 PyObject * obj0 = 0 ;
3050 char *kwnames[] = {
3051 (char *) "self", NULL
3052 };
3053
3054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3056 {
3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
3058 result = (int)(arg1)->GetHeight();
3059
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 resultobj = PyInt_FromLong((long)result);
3064 return resultobj;
3065 fail:
3066 return NULL;
3067}
3068
3069
3070static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3071 PyObject *resultobj;
3072 wxIcon *arg1 = (wxIcon *) 0 ;
3073 int result;
3074 PyObject * obj0 = 0 ;
3075 char *kwnames[] = {
3076 (char *) "self", NULL
3077 };
3078
3079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 result = (int)(arg1)->GetDepth();
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 resultobj = PyInt_FromLong((long)result);
3089 return resultobj;
3090 fail:
3091 return NULL;
3092}
3093
3094
3095static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject *resultobj;
3097 wxIcon *arg1 = (wxIcon *) 0 ;
3098 int arg2 ;
3099 PyObject * obj0 = 0 ;
3100 char *kwnames[] = {
3101 (char *) "self",(char *) "w", NULL
3102 };
3103
3104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3106 {
3107 PyThreadState* __tstate = wxPyBeginAllowThreads();
3108 (arg1)->SetWidth(arg2);
3109
3110 wxPyEndAllowThreads(__tstate);
3111 if (PyErr_Occurred()) SWIG_fail;
3112 }
3113 Py_INCREF(Py_None); resultobj = Py_None;
3114 return resultobj;
3115 fail:
3116 return NULL;
3117}
3118
3119
3120static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3121 PyObject *resultobj;
3122 wxIcon *arg1 = (wxIcon *) 0 ;
3123 int arg2 ;
3124 PyObject * obj0 = 0 ;
3125 char *kwnames[] = {
3126 (char *) "self",(char *) "h", NULL
3127 };
3128
3129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3131 {
3132 PyThreadState* __tstate = wxPyBeginAllowThreads();
3133 (arg1)->SetHeight(arg2);
3134
3135 wxPyEndAllowThreads(__tstate);
3136 if (PyErr_Occurred()) SWIG_fail;
3137 }
3138 Py_INCREF(Py_None); resultobj = Py_None;
3139 return resultobj;
3140 fail:
3141 return NULL;
3142}
3143
3144
3145static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3146 PyObject *resultobj;
3147 wxIcon *arg1 = (wxIcon *) 0 ;
3148 int arg2 ;
3149 PyObject * obj0 = 0 ;
3150 char *kwnames[] = {
3151 (char *) "self",(char *) "d", NULL
3152 };
3153
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3156 {
3157 PyThreadState* __tstate = wxPyBeginAllowThreads();
3158 (arg1)->SetDepth(arg2);
3159
3160 wxPyEndAllowThreads(__tstate);
3161 if (PyErr_Occurred()) SWIG_fail;
3162 }
3163 Py_INCREF(Py_None); resultobj = Py_None;
3164 return resultobj;
3165 fail:
3166 return NULL;
3167}
3168
3169
3170static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3171 PyObject *resultobj;
3172 wxIcon *arg1 = (wxIcon *) 0 ;
3173 wxBitmap *arg2 = 0 ;
3174 PyObject * obj0 = 0 ;
3175 PyObject * obj1 = 0 ;
3176 char *kwnames[] = {
3177 (char *) "self",(char *) "bmp", NULL
3178 };
3179
3180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3182 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3183 if (arg2 == NULL) {
3184 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3185 }
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 Py_INCREF(Py_None); resultobj = Py_None;
3194 return resultobj;
3195 fail:
3196 return NULL;
3197}
3198
3199
3200static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3201 PyObject *obj;
3202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3203 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3204 Py_INCREF(obj);
3205 return Py_BuildValue((char *)"");
3206}
3207static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3208 PyObject *resultobj;
3209 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3210 int arg2 = (int) 0 ;
3211 wxIconLocation *result;
3212 PyObject * obj0 = 0 ;
3213 char *kwnames[] = {
3214 (char *) "filename",(char *) "num", NULL
3215 };
3216
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3218 if (obj0) {
3219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3220 }
3221 {
3222 PyThreadState* __tstate = wxPyBeginAllowThreads();
3223 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3224
3225 wxPyEndAllowThreads(__tstate);
3226 if (PyErr_Occurred()) SWIG_fail;
3227 }
3228 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3229 return resultobj;
3230 fail:
3231 return NULL;
3232}
3233
3234
3235static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3236 PyObject *resultobj;
3237 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3238 PyObject * obj0 = 0 ;
3239 char *kwnames[] = {
3240 (char *) "self", NULL
3241 };
3242
3243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 delete arg1;
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256}
3257
3258
3259static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj;
3261 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3262 bool result;
3263 PyObject * obj0 = 0 ;
3264 char *kwnames[] = {
3265 (char *) "self", NULL
3266 };
3267
3268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3270 {
3271 PyThreadState* __tstate = wxPyBeginAllowThreads();
3272 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3273
3274 wxPyEndAllowThreads(__tstate);
3275 if (PyErr_Occurred()) SWIG_fail;
3276 }
3277 resultobj = PyInt_FromLong((long)result);
3278 return resultobj;
3279 fail:
3280 return NULL;
3281}
3282
3283
3284static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3285 PyObject *resultobj;
3286 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3287 wxString *arg2 = 0 ;
3288 bool temp2 = False ;
3289 PyObject * obj0 = 0 ;
3290 PyObject * obj1 = 0 ;
3291 char *kwnames[] = {
3292 (char *) "self",(char *) "filename", NULL
3293 };
3294
3295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3297 {
3298 arg2 = wxString_in_helper(obj1);
3299 if (arg2 == NULL) SWIG_fail;
3300 temp2 = True;
3301 }
3302 {
3303 PyThreadState* __tstate = wxPyBeginAllowThreads();
3304 (arg1)->SetFileName((wxString const &)*arg2);
3305
3306 wxPyEndAllowThreads(__tstate);
3307 if (PyErr_Occurred()) SWIG_fail;
3308 }
3309 Py_INCREF(Py_None); resultobj = Py_None;
3310 {
3311 if (temp2)
3312 delete arg2;
3313 }
3314 return resultobj;
3315 fail:
3316 {
3317 if (temp2)
3318 delete arg2;
3319 }
3320 return NULL;
3321}
3322
3323
3324static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3325 PyObject *resultobj;
3326 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3327 wxString *result;
3328 PyObject * obj0 = 0 ;
3329 char *kwnames[] = {
3330 (char *) "self", NULL
3331 };
3332
3333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3335 {
3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
3337 {
3338 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3339 result = (wxString *) &_result_ref;
3340 }
3341
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 }
3345 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0);
3346 return resultobj;
3347 fail:
3348 return NULL;
3349}
3350
3351
3352static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3353 PyObject *resultobj;
3354 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3355 int arg2 ;
3356 PyObject * obj0 = 0 ;
3357 char *kwnames[] = {
3358 (char *) "self",(char *) "num", NULL
3359 };
3360
3361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3363 {
3364 PyThreadState* __tstate = wxPyBeginAllowThreads();
3365 wxIconLocation_SetIndex(arg1,arg2);
3366
3367 wxPyEndAllowThreads(__tstate);
3368 if (PyErr_Occurred()) SWIG_fail;
3369 }
3370 Py_INCREF(Py_None); resultobj = Py_None;
3371 return resultobj;
3372 fail:
3373 return NULL;
3374}
3375
3376
3377static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3378 PyObject *resultobj;
3379 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3380 int result;
3381 PyObject * obj0 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3388 {
3389 PyThreadState* __tstate = wxPyBeginAllowThreads();
3390 result = (int)wxIconLocation_GetIndex(arg1);
3391
3392 wxPyEndAllowThreads(__tstate);
3393 if (PyErr_Occurred()) SWIG_fail;
3394 }
3395 resultobj = PyInt_FromLong((long)result);
3396 return resultobj;
3397 fail:
3398 return NULL;
3399}
3400
3401
3402static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3403 PyObject *obj;
3404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3405 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3406 Py_INCREF(obj);
3407 return Py_BuildValue((char *)"");
3408}
3409static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3410 PyObject *resultobj;
3411 wxIconBundle *result;
3412 char *kwnames[] = {
3413 NULL
3414 };
3415
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 result = (wxIconBundle *)new wxIconBundle();
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
3424 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3425 return resultobj;
3426 fail:
3427 return NULL;
3428}
3429
3430
3431static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3432 PyObject *resultobj;
3433 wxString *arg1 = 0 ;
3434 long arg2 ;
3435 wxIconBundle *result;
3436 bool temp1 = False ;
3437 PyObject * obj0 = 0 ;
3438 char *kwnames[] = {
3439 (char *) "file",(char *) "type", NULL
3440 };
3441
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3443 {
3444 arg1 = wxString_in_helper(obj0);
3445 if (arg1 == NULL) SWIG_fail;
3446 temp1 = True;
3447 }
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3456 {
3457 if (temp1)
3458 delete arg1;
3459 }
3460 return resultobj;
3461 fail:
3462 {
3463 if (temp1)
3464 delete arg1;
3465 }
3466 return NULL;
3467}
3468
3469
3470static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxIcon *arg1 = 0 ;
3473 wxIconBundle *result;
3474 PyObject * obj0 = 0 ;
3475 char *kwnames[] = {
3476 (char *) "icon", NULL
3477 };
3478
3479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481 if (arg1 == NULL) {
3482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3483 }
3484 {
3485 PyThreadState* __tstate = wxPyBeginAllowThreads();
3486 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3487
3488 wxPyEndAllowThreads(__tstate);
3489 if (PyErr_Occurred()) SWIG_fail;
3490 }
3491 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3492 return resultobj;
3493 fail:
3494 return NULL;
3495}
3496
3497
3498static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3499 PyObject *resultobj;
3500 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3501 PyObject * obj0 = 0 ;
3502 char *kwnames[] = {
3503 (char *) "self", NULL
3504 };
3505
3506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3508 {
3509 PyThreadState* __tstate = wxPyBeginAllowThreads();
3510 delete arg1;
3511
3512 wxPyEndAllowThreads(__tstate);
3513 if (PyErr_Occurred()) SWIG_fail;
3514 }
3515 Py_INCREF(Py_None); resultobj = Py_None;
3516 return resultobj;
3517 fail:
3518 return NULL;
3519}
3520
3521
3522static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3523 PyObject *resultobj;
3524 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3525 wxIcon *arg2 = 0 ;
3526 PyObject * obj0 = 0 ;
3527 PyObject * obj1 = 0 ;
3528 char *kwnames[] = {
3529 (char *) "self",(char *) "icon", NULL
3530 };
3531
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3534 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3535 if (arg2 == NULL) {
3536 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3537 }
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 (arg1)->AddIcon((wxIcon const &)*arg2);
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 Py_INCREF(Py_None); resultobj = Py_None;
3546 return resultobj;
3547 fail:
3548 return NULL;
3549}
3550
3551
3552static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3553 PyObject *resultobj;
3554 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3555 wxString *arg2 = 0 ;
3556 long arg3 ;
3557 bool temp2 = False ;
3558 PyObject * obj0 = 0 ;
3559 PyObject * obj1 = 0 ;
3560 char *kwnames[] = {
3561 (char *) "self",(char *) "file",(char *) "type", NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3566 {
3567 arg2 = wxString_in_helper(obj1);
3568 if (arg2 == NULL) SWIG_fail;
3569 temp2 = True;
3570 }
3571 {
3572 PyThreadState* __tstate = wxPyBeginAllowThreads();
3573 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3574
3575 wxPyEndAllowThreads(__tstate);
3576 if (PyErr_Occurred()) SWIG_fail;
3577 }
3578 Py_INCREF(Py_None); resultobj = Py_None;
3579 {
3580 if (temp2)
3581 delete arg2;
3582 }
3583 return resultobj;
3584 fail:
3585 {
3586 if (temp2)
3587 delete arg2;
3588 }
3589 return NULL;
3590}
3591
3592
3593static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject *resultobj;
3595 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3596 wxSize *arg2 = 0 ;
3597 wxIcon *result;
3598 wxSize temp2 ;
3599 PyObject * obj0 = 0 ;
3600 PyObject * obj1 = 0 ;
3601 char *kwnames[] = {
3602 (char *) "self",(char *) "size", NULL
3603 };
3604
3605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3607 {
3608 arg2 = &temp2;
3609 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3610 }
3611 {
3612 PyThreadState* __tstate = wxPyBeginAllowThreads();
3613 {
3614 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3615 result = (wxIcon *) &_result_ref;
3616 }
3617
3618 wxPyEndAllowThreads(__tstate);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3622 return resultobj;
3623 fail:
3624 return NULL;
3625}
3626
3627
3628static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3629 PyObject *obj;
3630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3631 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3632 Py_INCREF(obj);
3633 return Py_BuildValue((char *)"");
3634}
3635static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3636 PyObject *resultobj;
3637 wxString *arg1 = (wxString *) 0 ;
3638 long arg2 ;
3639 int arg3 = (int) 0 ;
3640 int arg4 = (int) 0 ;
3641 wxCursor *result;
3642 PyObject * obj0 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3649 {
3650 PyThreadState* __tstate = wxPyBeginAllowThreads();
3651 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) SWIG_fail;
3655 }
3656 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3657 return resultobj;
3658 fail:
3659 return NULL;
3660}
3661
3662
3663static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3664 PyObject *resultobj;
3665 wxCursor *arg1 = (wxCursor *) 0 ;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "self", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 delete arg1;
3676
3677 wxPyEndAllowThreads(__tstate);
3678 if (PyErr_Occurred()) SWIG_fail;
3679 }
3680 Py_INCREF(Py_None); resultobj = Py_None;
3681 return resultobj;
3682 fail:
3683 return NULL;
3684}
3685
3686
3687static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3688 PyObject *resultobj;
3689 int arg1 ;
3690 wxCursor *result;
3691 char *kwnames[] = {
3692 (char *) "id", NULL
3693 };
3694
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (wxCursor *)new wxCursor(arg1);
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707}
3708
3709
3710static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 wxImage *arg1 = 0 ;
3713 wxCursor *result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "image", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3721 if (arg1 == NULL) {
3722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3723 }
3724 {
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3727
3728 wxPyEndAllowThreads(__tstate);
3729 if (PyErr_Occurred()) SWIG_fail;
3730 }
3731 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3732 return resultobj;
3733 fail:
3734 return NULL;
3735}
3736
3737
3738static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3739 PyObject *resultobj;
3740 PyObject *arg1 = (PyObject *) 0 ;
3741 int arg2 ;
3742 int arg3 ;
3743 int arg4 = (int) -1 ;
3744 int arg5 = (int) -1 ;
3745 PyObject *arg6 = (PyObject *) 0 ;
3746 wxCursor *result;
3747 PyObject * obj0 = 0 ;
3748 PyObject * obj5 = 0 ;
3749 char *kwnames[] = {
3750 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3754 arg1 = obj0;
3755 if (obj5) {
3756 arg6 = obj5;
3757 }
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3766 return resultobj;
3767 fail:
3768 return NULL;
3769}
3770
3771
3772static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 wxCursor *arg1 = (wxCursor *) 0 ;
3775 bool result;
3776 PyObject * obj0 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "self", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (bool)(arg1)->Ok();
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = PyInt_FromLong((long)result);
3791 return resultobj;
3792 fail:
3793 return NULL;
3794}
3795
3796
3797static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3798 PyObject *obj;
3799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3800 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3801 Py_INCREF(obj);
3802 return Py_BuildValue((char *)"");
3803}
3804static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 int arg1 = (int) 0 ;
3807 int arg2 = (int) 0 ;
3808 int arg3 = (int) 0 ;
3809 int arg4 = (int) 0 ;
3810 wxRegion *result;
3811 char *kwnames[] = {
3812 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3813 };
3814
3815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3819
3820 wxPyEndAllowThreads(__tstate);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
3823 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3824 return resultobj;
3825 fail:
3826 return NULL;
3827}
3828
3829
3830static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 wxBitmap *arg1 = 0 ;
3833 wxColour const &arg2_defvalue = wxNullColour ;
3834 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3835 int arg3 = (int) 0 ;
3836 wxRegion *result;
3837 wxColour temp2 ;
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj1 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3846 if (arg1 == NULL) {
3847 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3848 }
3849 if (obj1) {
3850 {
3851 arg2 = &temp2;
3852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3853 }
3854 }
3855 {
3856 PyThreadState* __tstate = wxPyBeginAllowThreads();
3857 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3858
3859 wxPyEndAllowThreads(__tstate);
3860 if (PyErr_Occurred()) SWIG_fail;
3861 }
3862 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3863 return resultobj;
3864 fail:
3865 return NULL;
3866}
3867
3868
3869static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3870 PyObject *resultobj;
3871 int arg1 ;
3872 wxPoint *arg2 = (wxPoint *) 0 ;
3873 int arg3 = (int) wxWINDING_RULE ;
3874 wxRegion *result;
3875 PyObject * obj0 = 0 ;
3876 char *kwnames[] = {
3877 (char *) "points",(char *) "fillStyle", NULL
3878 };
3879
3880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3881 {
3882 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3883 if (arg2 == NULL) SWIG_fail;
3884 }
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
3888
3889 wxPyEndAllowThreads(__tstate);
3890 if (PyErr_Occurred()) SWIG_fail;
3891 }
3892 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3893 {
3894 if (arg2) delete [] arg2;
3895 }
3896 return resultobj;
3897 fail:
3898 {
3899 if (arg2) delete [] arg2;
3900 }
3901 return NULL;
3902}
3903
3904
3905static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3906 PyObject *resultobj;
3907 wxRegion *arg1 = (wxRegion *) 0 ;
3908 PyObject * obj0 = 0 ;
3909 char *kwnames[] = {
3910 (char *) "self", NULL
3911 };
3912
3913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 delete arg1;
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 Py_INCREF(Py_None); resultobj = Py_None;
3923 return resultobj;
3924 fail:
3925 return NULL;
3926}
3927
3928
3929static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3930 PyObject *resultobj;
3931 wxRegion *arg1 = (wxRegion *) 0 ;
3932 PyObject * obj0 = 0 ;
3933 char *kwnames[] = {
3934 (char *) "self", NULL
3935 };
3936
3937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
3938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 (arg1)->Clear();
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 Py_INCREF(Py_None); resultobj = Py_None;
3947 return resultobj;
3948 fail:
3949 return NULL;
3950}
3951
3952
3953static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxRegion *arg1 = (wxRegion *) 0 ;
3956 int arg2 ;
3957 int arg3 ;
3958 bool result;
3959 PyObject * obj0 = 0 ;
3960 char *kwnames[] = {
3961 (char *) "self",(char *) "x",(char *) "y", NULL
3962 };
3963
3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
3965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3966 {
3967 PyThreadState* __tstate = wxPyBeginAllowThreads();
3968 result = (bool)(arg1)->Offset(arg2,arg3);
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 resultobj = PyInt_FromLong((long)result);
3974 return resultobj;
3975 fail:
3976 return NULL;
3977}
3978
3979
3980static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
3981 PyObject *resultobj;
3982 wxRegion *arg1 = (wxRegion *) 0 ;
3983 int arg2 ;
3984 int arg3 ;
3985 int result;
3986 PyObject * obj0 = 0 ;
3987 char *kwnames[] = {
3988 (char *) "self",(char *) "x",(char *) "y", NULL
3989 };
3990
3991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
3992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 result = (int)(arg1)->Contains(arg2,arg3);
3996
3997 wxPyEndAllowThreads(__tstate);
3998 if (PyErr_Occurred()) SWIG_fail;
3999 }
4000 resultobj = PyInt_FromLong((long)result);
4001 return resultobj;
4002 fail:
4003 return NULL;
4004}
4005
4006
4007static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4008 PyObject *resultobj;
4009 wxRegion *arg1 = (wxRegion *) 0 ;
4010 wxPoint *arg2 = 0 ;
4011 int result;
4012 wxPoint temp2 ;
4013 PyObject * obj0 = 0 ;
4014 PyObject * obj1 = 0 ;
4015 char *kwnames[] = {
4016 (char *) "self",(char *) "pt", NULL
4017 };
4018
4019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4021 {
4022 arg2 = &temp2;
4023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4024 }
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4028
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = PyInt_FromLong((long)result);
4033 return resultobj;
4034 fail:
4035 return NULL;
4036}
4037
4038
4039static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj;
4041 wxRegion *arg1 = (wxRegion *) 0 ;
4042 wxRect *arg2 = 0 ;
4043 int result;
4044 wxRect temp2 ;
4045 PyObject * obj0 = 0 ;
4046 PyObject * obj1 = 0 ;
4047 char *kwnames[] = {
4048 (char *) "self",(char *) "rect", NULL
4049 };
4050
4051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4053 {
4054 arg2 = &temp2;
4055 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4056 }
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 resultobj = PyInt_FromLong((long)result);
4065 return resultobj;
4066 fail:
4067 return NULL;
4068}
4069
4070
4071static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4072 PyObject *resultobj;
4073 wxRegion *arg1 = (wxRegion *) 0 ;
4074 int arg2 ;
4075 int arg3 ;
4076 int arg4 ;
4077 int arg5 ;
4078 int result;
4079 PyObject * obj0 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4082 };
4083
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = PyInt_FromLong((long)result);
4094 return resultobj;
4095 fail:
4096 return NULL;
4097}
4098
4099
4100static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxRegion *arg1 = (wxRegion *) 0 ;
4103 wxRect result;
4104 PyObject * obj0 = 0 ;
4105 char *kwnames[] = {
4106 (char *) "self", NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4111 {
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 result = (arg1)->GetBox();
4114
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 {
4119 wxRect * resultptr;
4120 resultptr = new wxRect((wxRect &) result);
4121 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4122 }
4123 return resultobj;
4124 fail:
4125 return NULL;
4126}
4127
4128
4129static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj;
4131 wxRegion *arg1 = (wxRegion *) 0 ;
4132 int arg2 ;
4133 int arg3 ;
4134 int arg4 ;
4135 int arg5 ;
4136 bool result;
4137 PyObject * obj0 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 resultobj = PyInt_FromLong((long)result);
4152 return resultobj;
4153 fail:
4154 return NULL;
4155}
4156
4157
4158static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj;
4160 wxRegion *arg1 = (wxRegion *) 0 ;
4161 wxRect *arg2 = 0 ;
4162 bool result;
4163 wxRect temp2 ;
4164 PyObject * obj0 = 0 ;
4165 PyObject * obj1 = 0 ;
4166 char *kwnames[] = {
4167 (char *) "self",(char *) "rect", NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4172 {
4173 arg2 = &temp2;
4174 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4175 }
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 resultobj = PyInt_FromLong((long)result);
4184 return resultobj;
4185 fail:
4186 return NULL;
4187}
4188
4189
4190static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj;
4192 wxRegion *arg1 = (wxRegion *) 0 ;
4193 wxRegion *arg2 = 0 ;
4194 bool result;
4195 PyObject * obj0 = 0 ;
4196 PyObject * obj1 = 0 ;
4197 char *kwnames[] = {
4198 (char *) "self",(char *) "region", NULL
4199 };
4200
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4203 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4204 if (arg2 == NULL) {
4205 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4206 }
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 resultobj = PyInt_FromLong((long)result);
4215 return resultobj;
4216 fail:
4217 return NULL;
4218}
4219
4220
4221static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj;
4223 wxRegion *arg1 = (wxRegion *) 0 ;
4224 bool result;
4225 PyObject * obj0 = 0 ;
4226 char *kwnames[] = {
4227 (char *) "self", NULL
4228 };
4229
4230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 result = (bool)(arg1)->IsEmpty();
4235
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 resultobj = PyInt_FromLong((long)result);
4240 return resultobj;
4241 fail:
4242 return NULL;
4243}
4244
4245
4246static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj;
4248 wxRegion *arg1 = (wxRegion *) 0 ;
4249 int arg2 ;
4250 int arg3 ;
4251 int arg4 ;
4252 int arg5 ;
4253 bool result;
4254 PyObject * obj0 = 0 ;
4255 char *kwnames[] = {
4256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4257 };
4258
4259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4264
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) SWIG_fail;
4267 }
4268 resultobj = PyInt_FromLong((long)result);
4269 return resultobj;
4270 fail:
4271 return NULL;
4272}
4273
4274
4275static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4276 PyObject *resultobj;
4277 wxRegion *arg1 = (wxRegion *) 0 ;
4278 wxRect *arg2 = 0 ;
4279 bool result;
4280 wxRect temp2 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283 char *kwnames[] = {
4284 (char *) "self",(char *) "rect", NULL
4285 };
4286
4287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4289 {
4290 arg2 = &temp2;
4291 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4292 }
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4296
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = PyInt_FromLong((long)result);
4301 return resultobj;
4302 fail:
4303 return NULL;
4304}
4305
4306
4307static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj;
4309 wxRegion *arg1 = (wxRegion *) 0 ;
4310 wxRegion *arg2 = 0 ;
4311 bool result;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "self",(char *) "region", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4321 if (arg2 == NULL) {
4322 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4323 }
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4327
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 }
4331 resultobj = PyInt_FromLong((long)result);
4332 return resultobj;
4333 fail:
4334 return NULL;
4335}
4336
4337
4338static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxRegion *arg1 = (wxRegion *) 0 ;
4341 int arg2 ;
4342 int arg3 ;
4343 int arg4 ;
4344 int arg5 ;
4345 bool result;
4346 PyObject * obj0 = 0 ;
4347 char *kwnames[] = {
4348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4349 };
4350
4351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 resultobj = PyInt_FromLong((long)result);
4361 return resultobj;
4362 fail:
4363 return NULL;
4364}
4365
4366
4367static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 wxRegion *arg1 = (wxRegion *) 0 ;
4370 wxRect *arg2 = 0 ;
4371 bool result;
4372 wxRect temp2 ;
4373 PyObject * obj0 = 0 ;
4374 PyObject * obj1 = 0 ;
4375 char *kwnames[] = {
4376 (char *) "self",(char *) "rect", NULL
4377 };
4378
4379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4381 {
4382 arg2 = &temp2;
4383 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4384 }
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 resultobj = PyInt_FromLong((long)result);
4393 return resultobj;
4394 fail:
4395 return NULL;
4396}
4397
4398
4399static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxRegion *arg1 = (wxRegion *) 0 ;
4402 wxRegion *arg2 = 0 ;
4403 bool result;
4404 PyObject * obj0 = 0 ;
4405 PyObject * obj1 = 0 ;
4406 char *kwnames[] = {
4407 (char *) "self",(char *) "region", NULL
4408 };
4409
4410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4412 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4413 if (arg2 == NULL) {
4414 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4415 }
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = PyInt_FromLong((long)result);
4424 return resultobj;
4425 fail:
4426 return NULL;
4427}
4428
4429
4430static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxRegion *arg1 = (wxRegion *) 0 ;
4433 int arg2 ;
4434 int arg3 ;
4435 int arg4 ;
4436 int arg5 ;
4437 bool result;
4438 PyObject * obj0 = 0 ;
4439 char *kwnames[] = {
4440 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4441 };
4442
4443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4448
4449 wxPyEndAllowThreads(__tstate);
4450 if (PyErr_Occurred()) SWIG_fail;
4451 }
4452 resultobj = PyInt_FromLong((long)result);
4453 return resultobj;
4454 fail:
4455 return NULL;
4456}
4457
4458
4459static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4460 PyObject *resultobj;
4461 wxRegion *arg1 = (wxRegion *) 0 ;
4462 wxRect *arg2 = 0 ;
4463 bool result;
4464 wxRect temp2 ;
4465 PyObject * obj0 = 0 ;
4466 PyObject * obj1 = 0 ;
4467 char *kwnames[] = {
4468 (char *) "self",(char *) "rect", NULL
4469 };
4470
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4473 {
4474 arg2 = &temp2;
4475 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4476 }
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
4479 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4480
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 resultobj = PyInt_FromLong((long)result);
4485 return resultobj;
4486 fail:
4487 return NULL;
4488}
4489
4490
4491static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4492 PyObject *resultobj;
4493 wxRegion *arg1 = (wxRegion *) 0 ;
4494 wxRegion *arg2 = 0 ;
4495 bool result;
4496 PyObject * obj0 = 0 ;
4497 PyObject * obj1 = 0 ;
4498 char *kwnames[] = {
4499 (char *) "self",(char *) "region", NULL
4500 };
4501
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4504 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4505 if (arg2 == NULL) {
4506 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4507 }
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4511
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 resultobj = PyInt_FromLong((long)result);
4516 return resultobj;
4517 fail:
4518 return NULL;
4519}
4520
4521
4522static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxRegion *arg1 = (wxRegion *) 0 ;
4525 SwigValueWrapper< wxBitmap > result;
4526 PyObject * obj0 = 0 ;
4527 char *kwnames[] = {
4528 (char *) "self", NULL
4529 };
4530
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (arg1)->ConvertToBitmap();
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
4540 {
4541 wxBitmap * resultptr;
4542 resultptr = new wxBitmap((wxBitmap &) result);
4543 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4544 }
4545 return resultobj;
4546 fail:
4547 return NULL;
4548}
4549
4550
4551static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4552 PyObject *resultobj;
4553 wxRegion *arg1 = (wxRegion *) 0 ;
4554 wxBitmap *arg2 = 0 ;
4555 wxColour const &arg3_defvalue = wxNullColour ;
4556 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4557 int arg4 = (int) 0 ;
4558 bool result;
4559 wxColour temp3 ;
4560 PyObject * obj0 = 0 ;
4561 PyObject * obj1 = 0 ;
4562 PyObject * obj2 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4569 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4570 if (arg2 == NULL) {
4571 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4572 }
4573 if (obj2) {
4574 {
4575 arg3 = &temp3;
4576 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4577 }
4578 }
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4582
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 resultobj = PyInt_FromLong((long)result);
4587 return resultobj;
4588 fail:
4589 return NULL;
4590}
4591
4592
4593static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4594 PyObject *obj;
4595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4596 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4597 Py_INCREF(obj);
4598 return Py_BuildValue((char *)"");
4599}
4600static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 wxRegion *arg1 = 0 ;
4603 wxRegionIterator *result;
4604 PyObject * obj0 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "region", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4611 if (arg1 == NULL) {
4612 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4613 }
4614 {
4615 PyThreadState* __tstate = wxPyBeginAllowThreads();
4616 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4617
4618 wxPyEndAllowThreads(__tstate);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4622 return resultobj;
4623 fail:
4624 return NULL;
4625}
4626
4627
4628static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj;
4630 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4631 PyObject * obj0 = 0 ;
4632 char *kwnames[] = {
4633 (char *) "self", NULL
4634 };
4635
4636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4638 {
4639 PyThreadState* __tstate = wxPyBeginAllowThreads();
4640 delete arg1;
4641
4642 wxPyEndAllowThreads(__tstate);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 Py_INCREF(Py_None); resultobj = Py_None;
4646 return resultobj;
4647 fail:
4648 return NULL;
4649}
4650
4651
4652static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj;
4654 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4655 int result;
4656 PyObject * obj0 = 0 ;
4657 char *kwnames[] = {
4658 (char *) "self", NULL
4659 };
4660
4661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (int)(arg1)->GetX();
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 resultobj = PyInt_FromLong((long)result);
4671 return resultobj;
4672 fail:
4673 return NULL;
4674}
4675
4676
4677static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4678 PyObject *resultobj;
4679 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4680 int result;
4681 PyObject * obj0 = 0 ;
4682 char *kwnames[] = {
4683 (char *) "self", NULL
4684 };
4685
4686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 result = (int)(arg1)->GetY();
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = PyInt_FromLong((long)result);
4696 return resultobj;
4697 fail:
4698 return NULL;
4699}
4700
4701
4702static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4703 PyObject *resultobj;
4704 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4705 int result;
4706 PyObject * obj0 = 0 ;
4707 char *kwnames[] = {
4708 (char *) "self", NULL
4709 };
4710
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 result = (int)(arg1)->GetW();
4716
4717 wxPyEndAllowThreads(__tstate);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 resultobj = PyInt_FromLong((long)result);
4721 return resultobj;
4722 fail:
4723 return NULL;
4724}
4725
4726
4727static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4728 PyObject *resultobj;
4729 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4730 int result;
4731 PyObject * obj0 = 0 ;
4732 char *kwnames[] = {
4733 (char *) "self", NULL
4734 };
4735
4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (int)(arg1)->GetWidth();
4741
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 resultobj = PyInt_FromLong((long)result);
4746 return resultobj;
4747 fail:
4748 return NULL;
4749}
4750
4751
4752static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj;
4754 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4755 int result;
4756 PyObject * obj0 = 0 ;
4757 char *kwnames[] = {
4758 (char *) "self", NULL
4759 };
4760
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 result = (int)(arg1)->GetH();
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 resultobj = PyInt_FromLong((long)result);
4771 return resultobj;
4772 fail:
4773 return NULL;
4774}
4775
4776
4777static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj;
4779 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4780 int result;
4781 PyObject * obj0 = 0 ;
4782 char *kwnames[] = {
4783 (char *) "self", NULL
4784 };
4785
4786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (int)(arg1)->GetHeight();
4791
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 resultobj = PyInt_FromLong((long)result);
4796 return resultobj;
4797 fail:
4798 return NULL;
4799}
4800
4801
4802static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4803 PyObject *resultobj;
4804 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4805 wxRect result;
4806 PyObject * obj0 = 0 ;
4807 char *kwnames[] = {
4808 (char *) "self", NULL
4809 };
4810
4811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 result = (arg1)->GetRect();
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 {
4821 wxRect * resultptr;
4822 resultptr = new wxRect((wxRect &) result);
4823 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4824 }
4825 return resultobj;
4826 fail:
4827 return NULL;
4828}
4829
4830
4831static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4832 PyObject *resultobj;
4833 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4834 bool result;
4835 PyObject * obj0 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "self", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 result = (bool)(arg1)->HaveRects();
4845
4846 wxPyEndAllowThreads(__tstate);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 }
4849 resultobj = PyInt_FromLong((long)result);
4850 return resultobj;
4851 fail:
4852 return NULL;
4853}
4854
4855
4856static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4857 PyObject *resultobj;
4858 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4859 PyObject * obj0 = 0 ;
4860 char *kwnames[] = {
4861 (char *) "self", NULL
4862 };
4863
4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 (arg1)->Reset();
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 Py_INCREF(Py_None); resultobj = Py_None;
4874 return resultobj;
4875 fail:
4876 return NULL;
4877}
4878
4879
4880static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4883 PyObject * obj0 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 wxRegionIterator_Next(arg1);
4893
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 Py_INCREF(Py_None); resultobj = Py_None;
4898 return resultobj;
4899 fail:
4900 return NULL;
4901}
4902
4903
4904static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj;
4906 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4907 bool result;
4908 PyObject * obj0 = 0 ;
4909 char *kwnames[] = {
4910 (char *) "self", NULL
4911 };
4912
4913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (bool)wxRegionIterator___nonzero__(arg1);
4918
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 resultobj = PyInt_FromLong((long)result);
4923 return resultobj;
4924 fail:
4925 return NULL;
4926}
4927
4928
4929static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4930 PyObject *obj;
4931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4932 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4933 Py_INCREF(obj);
4934 return Py_BuildValue((char *)"");
4935}
4936static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj;
4938 wxNativeFontInfo *result;
4939 char *kwnames[] = {
4940 NULL
4941 };
4942
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (wxNativeFontInfo *)new wxNativeFontInfo();
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
4952 return resultobj;
4953 fail:
4954 return NULL;
4955}
4956
4957
4958static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4959 PyObject *resultobj;
4960 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4961 PyObject * obj0 = 0 ;
4962 char *kwnames[] = {
4963 (char *) "self", NULL
4964 };
4965
4966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
4967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 delete arg1;
4971
4972 wxPyEndAllowThreads(__tstate);
4973 if (PyErr_Occurred()) SWIG_fail;
4974 }
4975 Py_INCREF(Py_None); resultobj = Py_None;
4976 return resultobj;
4977 fail:
4978 return NULL;
4979}
4980
4981
4982static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject *resultobj;
4984 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4985 PyObject * obj0 = 0 ;
4986 char *kwnames[] = {
4987 (char *) "self", NULL
4988 };
4989
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
4991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->Init();
4995
4996 wxPyEndAllowThreads(__tstate);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 }
4999 Py_INCREF(Py_None); resultobj = Py_None;
5000 return resultobj;
5001 fail:
5002 return NULL;
5003}
5004
5005
5006static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5009 wxFont *arg2 = 0 ;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 char *kwnames[] = {
5013 (char *) "self",(char *) "font", NULL
5014 };
5015
5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5018 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5019 if (arg2 == NULL) {
5020 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5021 }
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 (arg1)->InitFromFont((wxFont const &)*arg2);
5025
5026 wxPyEndAllowThreads(__tstate);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 }
5029 Py_INCREF(Py_None); resultobj = Py_None;
5030 return resultobj;
5031 fail:
5032 return NULL;
5033}
5034
5035
5036static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5037 PyObject *resultobj;
5038 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5039 int result;
5040 PyObject * obj0 = 0 ;
5041 char *kwnames[] = {
5042 (char *) "self", NULL
5043 };
5044
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = PyInt_FromLong((long)result);
5055 return resultobj;
5056 fail:
5057 return NULL;
5058}
5059
5060
5061static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5064 int result;
5065 PyObject * obj0 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "self", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5075
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 resultobj = PyInt_FromLong((long)result);
5080 return resultobj;
5081 fail:
5082 return NULL;
5083}
5084
5085
5086static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5087 PyObject *resultobj;
5088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5089 int result;
5090 PyObject * obj0 = 0 ;
5091 char *kwnames[] = {
5092 (char *) "self", NULL
5093 };
5094
5095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5097 {
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5100
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 resultobj = PyInt_FromLong((long)result);
5105 return resultobj;
5106 fail:
5107 return NULL;
5108}
5109
5110
5111static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj;
5113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5114 bool result;
5115 PyObject * obj0 = 0 ;
5116 char *kwnames[] = {
5117 (char *) "self", NULL
5118 };
5119
5120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5125
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) SWIG_fail;
5128 }
5129 resultobj = PyInt_FromLong((long)result);
5130 return resultobj;
5131 fail:
5132 return NULL;
5133}
5134
5135
5136static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5137 PyObject *resultobj;
5138 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5139 wxString result;
5140 PyObject * obj0 = 0 ;
5141 char *kwnames[] = {
5142 (char *) "self", NULL
5143 };
5144
5145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5150
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 {
5155#if wxUSE_UNICODE
5156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5157#else
5158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5159#endif
5160 }
5161 return resultobj;
5162 fail:
5163 return NULL;
5164}
5165
5166
5167static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5168 PyObject *resultobj;
5169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5170 int result;
5171 PyObject * obj0 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5178 {
5179 PyThreadState* __tstate = wxPyBeginAllowThreads();
5180 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5181
5182 wxPyEndAllowThreads(__tstate);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 }
5185 resultobj = PyInt_FromLong((long)result);
5186 return resultobj;
5187 fail:
5188 return NULL;
5189}
5190
5191
5192static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5193 PyObject *resultobj;
5194 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5195 int result;
5196 PyObject * obj0 = 0 ;
5197 char *kwnames[] = {
5198 (char *) "self", NULL
5199 };
5200
5201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5206
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = PyInt_FromLong((long)result);
5211 return resultobj;
5212 fail:
5213 return NULL;
5214}
5215
5216
5217static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj;
5219 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5220 int arg2 ;
5221 PyObject * obj0 = 0 ;
5222 char *kwnames[] = {
5223 (char *) "self",(char *) "pointsize", NULL
5224 };
5225
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5228 {
5229 PyThreadState* __tstate = wxPyBeginAllowThreads();
5230 (arg1)->SetPointSize(arg2);
5231
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 Py_INCREF(Py_None); resultobj = Py_None;
5236 return resultobj;
5237 fail:
5238 return NULL;
5239}
5240
5241
5242static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5243 PyObject *resultobj;
5244 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5245 int arg2 ;
5246 PyObject * obj0 = 0 ;
5247 char *kwnames[] = {
5248 (char *) "self",(char *) "style", NULL
5249 };
5250
5251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 (arg1)->SetStyle((wxFontStyle )arg2);
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 Py_INCREF(Py_None); resultobj = Py_None;
5261 return resultobj;
5262 fail:
5263 return NULL;
5264}
5265
5266
5267static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5268 PyObject *resultobj;
5269 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5270 int arg2 ;
5271 PyObject * obj0 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "self",(char *) "weight", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 (arg1)->SetWeight((wxFontWeight )arg2);
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 Py_INCREF(Py_None); resultobj = Py_None;
5286 return resultobj;
5287 fail:
5288 return NULL;
5289}
5290
5291
5292static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5295 bool arg2 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char *kwnames[] = {
5299 (char *) "self",(char *) "underlined", NULL
5300 };
5301
5302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5304 arg2 = PyInt_AsLong(obj1) ? true : false;
5305 if (PyErr_Occurred()) SWIG_fail;
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 (arg1)->SetUnderlined(arg2);
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 Py_INCREF(Py_None); resultobj = Py_None;
5314 return resultobj;
5315 fail:
5316 return NULL;
5317}
5318
5319
5320static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5323 wxString arg2 ;
5324 PyObject * obj0 = 0 ;
5325 PyObject * obj1 = 0 ;
5326 char *kwnames[] = {
5327 (char *) "self",(char *) "facename", NULL
5328 };
5329
5330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5332 {
5333 wxString* sptr = wxString_in_helper(obj1);
5334 if (sptr == NULL) SWIG_fail;
5335 arg2 = *sptr;
5336 delete sptr;
5337 }
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 (arg1)->SetFaceName(arg2);
5341
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 Py_INCREF(Py_None); resultobj = Py_None;
5346 return resultobj;
5347 fail:
5348 return NULL;
5349}
5350
5351
5352static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5353 PyObject *resultobj;
5354 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5355 int arg2 ;
5356 PyObject * obj0 = 0 ;
5357 char *kwnames[] = {
5358 (char *) "self",(char *) "family", NULL
5359 };
5360
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 (arg1)->SetFamily((wxFontFamily )arg2);
5366
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 Py_INCREF(Py_None); resultobj = Py_None;
5371 return resultobj;
5372 fail:
5373 return NULL;
5374}
5375
5376
5377static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj;
5379 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5380 int arg2 ;
5381 PyObject * obj0 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self",(char *) "encoding", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 (arg1)->SetEncoding((wxFontEncoding )arg2);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 Py_INCREF(Py_None); resultobj = Py_None;
5396 return resultobj;
5397 fail:
5398 return NULL;
5399}
5400
5401
5402static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject *resultobj;
5404 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5405 wxString *arg2 = 0 ;
5406 bool result;
5407 bool temp2 = False ;
5408 PyObject * obj0 = 0 ;
5409 PyObject * obj1 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "self",(char *) "s", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5416 {
5417 arg2 = wxString_in_helper(obj1);
5418 if (arg2 == NULL) SWIG_fail;
5419 temp2 = True;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = PyInt_FromLong((long)result);
5429 {
5430 if (temp2)
5431 delete arg2;
5432 }
5433 return resultobj;
5434 fail:
5435 {
5436 if (temp2)
5437 delete arg2;
5438 }
5439 return NULL;
5440}
5441
5442
5443static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5446 wxString result;
5447 PyObject * obj0 = 0 ;
5448 char *kwnames[] = {
5449 (char *) "self", NULL
5450 };
5451
5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = ((wxNativeFontInfo const *)arg1)->ToString();
5457
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 {
5462#if wxUSE_UNICODE
5463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5464#else
5465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5466#endif
5467 }
5468 return resultobj;
5469 fail:
5470 return NULL;
5471}
5472
5473
5474static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5477 wxString result;
5478 PyObject * obj0 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "self", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = wxNativeFontInfo___str__(arg1);
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493#if wxUSE_UNICODE
5494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5495#else
5496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5497#endif
5498 }
5499 return resultobj;
5500 fail:
5501 return NULL;
5502}
5503
5504
5505static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5506 PyObject *resultobj;
5507 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5508 wxString *arg2 = 0 ;
5509 bool result;
5510 bool temp2 = False ;
5511 PyObject * obj0 = 0 ;
5512 PyObject * obj1 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self",(char *) "s", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5519 {
5520 arg2 = wxString_in_helper(obj1);
5521 if (arg2 == NULL) SWIG_fail;
5522 temp2 = True;
5523 }
5524 {
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5527
5528 wxPyEndAllowThreads(__tstate);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 }
5531 resultobj = PyInt_FromLong((long)result);
5532 {
5533 if (temp2)
5534 delete arg2;
5535 }
5536 return resultobj;
5537 fail:
5538 {
5539 if (temp2)
5540 delete arg2;
5541 }
5542 return NULL;
5543}
5544
5545
5546static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj;
5548 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5549 wxString result;
5550 PyObject * obj0 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 {
5565#if wxUSE_UNICODE
5566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5567#else
5568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5569#endif
5570 }
5571 return resultobj;
5572 fail:
5573 return NULL;
5574}
5575
5576
5577static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5578 PyObject *obj;
5579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5580 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5581 Py_INCREF(obj);
5582 return Py_BuildValue((char *)"");
5583}
5584static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj;
5586 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5587 wxString arg2 ;
5588 PyObject * obj0 = 0 ;
5589 PyObject * obj1 = 0 ;
5590 char *kwnames[] = {
5591 (char *) "self",(char *) "facename", NULL
5592 };
5593
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5596 {
5597 wxString* sptr = wxString_in_helper(obj1);
5598 if (sptr == NULL) SWIG_fail;
5599 arg2 = *sptr;
5600 delete sptr;
5601 }
5602 if (arg1) (arg1)->facename = arg2;
5603
5604 Py_INCREF(Py_None); resultobj = Py_None;
5605 return resultobj;
5606 fail:
5607 return NULL;
5608}
5609
5610
5611static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj;
5613 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5614 wxString result;
5615 PyObject * obj0 = 0 ;
5616 char *kwnames[] = {
5617 (char *) "self", NULL
5618 };
5619
5620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5622 result = ((arg1)->facename);
5623
5624 {
5625#if wxUSE_UNICODE
5626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5627#else
5628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5629#endif
5630 }
5631 return resultobj;
5632 fail:
5633 return NULL;
5634}
5635
5636
5637static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj;
5639 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5640 int arg2 ;
5641 PyObject * obj0 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self",(char *) "encoding", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5648 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5649
5650 Py_INCREF(Py_None); resultobj = Py_None;
5651 return resultobj;
5652 fail:
5653 return NULL;
5654}
5655
5656
5657static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj;
5659 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5660 int result;
5661 PyObject * obj0 = 0 ;
5662 char *kwnames[] = {
5663 (char *) "self", NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5668 result = (int) ((arg1)->encoding);
5669
5670 resultobj = PyInt_FromLong((long)result);
5671 return resultobj;
5672 fail:
5673 return NULL;
5674}
5675
5676
5677static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5678 PyObject *resultobj;
5679 wxNativeEncodingInfo *result;
5680 char *kwnames[] = {
5681 NULL
5682 };
5683
5684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5693 return resultobj;
5694 fail:
5695 return NULL;
5696}
5697
5698
5699static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5700 PyObject *resultobj;
5701 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5702 PyObject * obj0 = 0 ;
5703 char *kwnames[] = {
5704 (char *) "self", NULL
5705 };
5706
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 delete arg1;
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 Py_INCREF(Py_None); resultobj = Py_None;
5717 return resultobj;
5718 fail:
5719 return NULL;
5720}
5721
5722
5723static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5724 PyObject *resultobj;
5725 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5726 wxString *arg2 = 0 ;
5727 bool result;
5728 bool temp2 = False ;
5729 PyObject * obj0 = 0 ;
5730 PyObject * obj1 = 0 ;
5731 char *kwnames[] = {
5732 (char *) "self",(char *) "s", NULL
5733 };
5734
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5737 {
5738 arg2 = wxString_in_helper(obj1);
5739 if (arg2 == NULL) SWIG_fail;
5740 temp2 = True;
5741 }
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5745
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 resultobj = PyInt_FromLong((long)result);
5750 {
5751 if (temp2)
5752 delete arg2;
5753 }
5754 return resultobj;
5755 fail:
5756 {
5757 if (temp2)
5758 delete arg2;
5759 }
5760 return NULL;
5761}
5762
5763
5764static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5765 PyObject *resultobj;
5766 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5767 wxString result;
5768 PyObject * obj0 = 0 ;
5769 char *kwnames[] = {
5770 (char *) "self", NULL
5771 };
5772
5773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
5777 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5778
5779 wxPyEndAllowThreads(__tstate);
5780 if (PyErr_Occurred()) SWIG_fail;
5781 }
5782 {
5783#if wxUSE_UNICODE
5784 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5785#else
5786 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5787#endif
5788 }
5789 return resultobj;
5790 fail:
5791 return NULL;
5792}
5793
5794
5795static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5796 PyObject *obj;
5797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5798 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5799 Py_INCREF(obj);
5800 return Py_BuildValue((char *)"");
5801}
5802static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5803 PyObject *resultobj;
5804 int arg1 ;
5805 wxNativeEncodingInfo *result;
5806 char *kwnames[] = {
5807 (char *) "encoding", NULL
5808 };
5809
5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5814
5815 wxPyEndAllowThreads(__tstate);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 }
5818 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5819 return resultobj;
5820 fail:
5821 return NULL;
5822}
5823
5824
5825static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5826 PyObject *resultobj;
5827 wxNativeEncodingInfo *arg1 = 0 ;
5828 bool result;
5829 PyObject * obj0 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "info", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5836 if (arg1 == NULL) {
5837 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5838 }
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
5846 resultobj = PyInt_FromLong((long)result);
5847 return resultobj;
5848 fail:
5849 return NULL;
5850}
5851
5852
5853static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5854 PyObject *resultobj;
5855 wxFontMapper *result;
5856 char *kwnames[] = {
5857 NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (wxFontMapper *)new wxFontMapper();
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5869 return resultobj;
5870 fail:
5871 return NULL;
5872}
5873
5874
5875static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5878 PyObject * obj0 = 0 ;
5879 char *kwnames[] = {
5880 (char *) "self", NULL
5881 };
5882
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 delete arg1;
5888
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 Py_INCREF(Py_None); resultobj = Py_None;
5893 return resultobj;
5894 fail:
5895 return NULL;
5896}
5897
5898
5899static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5900 PyObject *resultobj;
5901 wxFontMapper *result;
5902 char *kwnames[] = {
5903 NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = (wxFontMapper *)wxFontMapper::Get();
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5915 return resultobj;
5916 fail:
5917 return NULL;
5918}
5919
5920
5921static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject *resultobj;
5923 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5924 wxFontMapper *result;
5925 PyObject * obj0 = 0 ;
5926 char *kwnames[] = {
5927 (char *) "mapper", NULL
5928 };
5929
5930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5935
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5940 return resultobj;
5941 fail:
5942 return NULL;
5943}
5944
5945
5946static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5949 wxString *arg2 = 0 ;
5950 bool arg3 = (bool) True ;
5951 int result;
5952 bool temp2 = False ;
5953 PyObject * obj0 = 0 ;
5954 PyObject * obj1 = 0 ;
5955 PyObject * obj2 = 0 ;
5956 char *kwnames[] = {
5957 (char *) "self",(char *) "charset",(char *) "interactive", NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5962 {
5963 arg2 = wxString_in_helper(obj1);
5964 if (arg2 == NULL) SWIG_fail;
5965 temp2 = True;
5966 }
5967 if (obj2) {
5968 arg3 = PyInt_AsLong(obj2) ? true : false;
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
5974
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 resultobj = PyInt_FromLong((long)result);
5979 {
5980 if (temp2)
5981 delete arg2;
5982 }
5983 return resultobj;
5984 fail:
5985 {
5986 if (temp2)
5987 delete arg2;
5988 }
5989 return NULL;
5990}
5991
5992
5993static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj;
5995 size_t result;
5996 char *kwnames[] = {
5997 NULL
5998 };
5999
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6004
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 resultobj = PyInt_FromLong((long)result);
6009 return resultobj;
6010 fail:
6011 return NULL;
6012}
6013
6014
6015static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6016 PyObject *resultobj;
6017 size_t arg1 ;
6018 int result;
6019 PyObject * obj0 = 0 ;
6020 char *kwnames[] = {
6021 (char *) "n", NULL
6022 };
6023
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6025 arg1 = (size_t) PyInt_AsLong(obj0);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
6029 result = (int)wxFontMapper::GetEncoding(arg1);
6030
6031 wxPyEndAllowThreads(__tstate);
6032 if (PyErr_Occurred()) SWIG_fail;
6033 }
6034 resultobj = PyInt_FromLong((long)result);
6035 return resultobj;
6036 fail:
6037 return NULL;
6038}
6039
6040
6041static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject *resultobj;
6043 int arg1 ;
6044 wxString result;
6045 char *kwnames[] = {
6046 (char *) "encoding", NULL
6047 };
6048
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6050 {
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6053
6054 wxPyEndAllowThreads(__tstate);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 }
6057 {
6058#if wxUSE_UNICODE
6059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6060#else
6061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6062#endif
6063 }
6064 return resultobj;
6065 fail:
6066 return NULL;
6067}
6068
6069
6070static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 int arg1 ;
6073 wxString result;
6074 char *kwnames[] = {
6075 (char *) "encoding", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6079 {
6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
6081 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6082
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 {
6087#if wxUSE_UNICODE
6088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6089#else
6090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6091#endif
6092 }
6093 return resultobj;
6094 fail:
6095 return NULL;
6096}
6097
6098
6099static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj;
6101 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6102 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6103 PyObject * obj0 = 0 ;
6104 PyObject * obj1 = 0 ;
6105 char *kwnames[] = {
6106 (char *) "self",(char *) "config", NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 (arg1)->SetConfig(arg2);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 Py_INCREF(Py_None); resultobj = Py_None;
6120 return resultobj;
6121 fail:
6122 return NULL;
6123}
6124
6125
6126static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject *resultobj;
6128 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6129 wxString *arg2 = 0 ;
6130 bool temp2 = False ;
6131 PyObject * obj0 = 0 ;
6132 PyObject * obj1 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self",(char *) "prefix", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6139 {
6140 arg2 = wxString_in_helper(obj1);
6141 if (arg2 == NULL) SWIG_fail;
6142 temp2 = True;
6143 }
6144 {
6145 PyThreadState* __tstate = wxPyBeginAllowThreads();
6146 (arg1)->SetConfigPath((wxString const &)*arg2);
6147
6148 wxPyEndAllowThreads(__tstate);
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 Py_INCREF(Py_None); resultobj = Py_None;
6152 {
6153 if (temp2)
6154 delete arg2;
6155 }
6156 return resultobj;
6157 fail:
6158 {
6159 if (temp2)
6160 delete arg2;
6161 }
6162 return NULL;
6163}
6164
6165
6166static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6167 PyObject *resultobj;
6168 wxString result;
6169 char *kwnames[] = {
6170 NULL
6171 };
6172
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 result = wxFontMapper::GetDefaultConfigPath();
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 {
6182#if wxUSE_UNICODE
6183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6184#else
6185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6186#endif
6187 }
6188 return resultobj;
6189 fail:
6190 return NULL;
6191}
6192
6193
6194static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6197 int arg2 ;
6198 wxString const &arg3_defvalue = wxPyEmptyString ;
6199 wxString *arg3 = (wxString *) &arg3_defvalue ;
6200 bool arg4 = (bool) True ;
6201 PyObject *result;
6202 bool temp3 = False ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj2 = 0 ;
6205 PyObject * obj3 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6212 if (obj2) {
6213 {
6214 arg3 = wxString_in_helper(obj2);
6215 if (arg3 == NULL) SWIG_fail;
6216 temp3 = True;
6217 }
6218 }
6219 if (obj3) {
6220 arg4 = PyInt_AsLong(obj3) ? true : false;
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 {
6224 PyThreadState* __tstate = wxPyBeginAllowThreads();
6225 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6226
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = result;
6231 {
6232 if (temp3)
6233 delete arg3;
6234 }
6235 return resultobj;
6236 fail:
6237 {
6238 if (temp3)
6239 delete arg3;
6240 }
6241 return NULL;
6242}
6243
6244
6245static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6246 PyObject *resultobj;
6247 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6248 int arg2 ;
6249 wxString const &arg3_defvalue = wxPyEmptyString ;
6250 wxString *arg3 = (wxString *) &arg3_defvalue ;
6251 bool result;
6252 bool temp3 = False ;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj2 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6261 if (obj2) {
6262 {
6263 arg3 = wxString_in_helper(obj2);
6264 if (arg3 == NULL) SWIG_fail;
6265 temp3 = True;
6266 }
6267 }
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6271
6272 wxPyEndAllowThreads(__tstate);
6273 if (PyErr_Occurred()) SWIG_fail;
6274 }
6275 resultobj = PyInt_FromLong((long)result);
6276 {
6277 if (temp3)
6278 delete arg3;
6279 }
6280 return resultobj;
6281 fail:
6282 {
6283 if (temp3)
6284 delete arg3;
6285 }
6286 return NULL;
6287}
6288
6289
6290static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj;
6292 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6293 wxWindow *arg2 = (wxWindow *) 0 ;
6294 PyObject * obj0 = 0 ;
6295 PyObject * obj1 = 0 ;
6296 char *kwnames[] = {
6297 (char *) "self",(char *) "parent", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 (arg1)->SetDialogParent(arg2);
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 Py_INCREF(Py_None); resultobj = Py_None;
6311 return resultobj;
6312 fail:
6313 return NULL;
6314}
6315
6316
6317static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj;
6319 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6320 wxString *arg2 = 0 ;
6321 bool temp2 = False ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char *kwnames[] = {
6325 (char *) "self",(char *) "title", NULL
6326 };
6327
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6330 {
6331 arg2 = wxString_in_helper(obj1);
6332 if (arg2 == NULL) SWIG_fail;
6333 temp2 = True;
6334 }
6335 {
6336 PyThreadState* __tstate = wxPyBeginAllowThreads();
6337 (arg1)->SetDialogTitle((wxString const &)*arg2);
6338
6339 wxPyEndAllowThreads(__tstate);
6340 if (PyErr_Occurred()) SWIG_fail;
6341 }
6342 Py_INCREF(Py_None); resultobj = Py_None;
6343 {
6344 if (temp2)
6345 delete arg2;
6346 }
6347 return resultobj;
6348 fail:
6349 {
6350 if (temp2)
6351 delete arg2;
6352 }
6353 return NULL;
6354}
6355
6356
6357static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6358 PyObject *obj;
6359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6360 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6361 Py_INCREF(obj);
6362 return Py_BuildValue((char *)"");
6363}
6364static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj;
6366 int arg1 ;
6367 int arg2 ;
6368 int arg3 ;
6369 int arg4 ;
6370 bool arg5 = (bool) False ;
6371 wxString const &arg6_defvalue = wxPyEmptyString ;
6372 wxString *arg6 = (wxString *) &arg6_defvalue ;
6373 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6374 wxFont *result;
6375 bool temp6 = False ;
6376 PyObject * obj4 = 0 ;
6377 PyObject * obj5 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6383 if (obj4) {
6384 arg5 = PyInt_AsLong(obj4) ? true : false;
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 if (obj5) {
6388 {
6389 arg6 = wxString_in_helper(obj5);
6390 if (arg6 == NULL) SWIG_fail;
6391 temp6 = True;
6392 }
6393 }
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6397
6398 wxPyEndAllowThreads(__tstate);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 }
6401 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6402 {
6403 if (temp6)
6404 delete arg6;
6405 }
6406 return resultobj;
6407 fail:
6408 {
6409 if (temp6)
6410 delete arg6;
6411 }
6412 return NULL;
6413}
6414
6415
6416static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj;
6418 wxFont *arg1 = (wxFont *) 0 ;
6419 PyObject * obj0 = 0 ;
6420 char *kwnames[] = {
6421 (char *) "self", NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 delete arg1;
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 Py_INCREF(Py_None); resultobj = Py_None;
6434 return resultobj;
6435 fail:
6436 return NULL;
6437}
6438
6439
6440static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxNativeFontInfo *arg1 = 0 ;
6443 wxFont *result;
6444 PyObject * obj0 = 0 ;
6445 char *kwnames[] = {
6446 (char *) "info", NULL
6447 };
6448
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6451 if (arg1 == NULL) {
6452 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6453 }
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6462 return resultobj;
6463 fail:
6464 return NULL;
6465}
6466
6467
6468static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6469 PyObject *resultobj;
6470 wxString *arg1 = 0 ;
6471 wxFont *result;
6472 bool temp1 = False ;
6473 PyObject * obj0 = 0 ;
6474 char *kwnames[] = {
6475 (char *) "info", NULL
6476 };
6477
6478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6479 {
6480 arg1 = wxString_in_helper(obj0);
6481 if (arg1 == NULL) SWIG_fail;
6482 temp1 = True;
6483 }
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6492 {
6493 if (temp1)
6494 delete arg1;
6495 }
6496 return resultobj;
6497 fail:
6498 {
6499 if (temp1)
6500 delete arg1;
6501 }
6502 return NULL;
6503}
6504
6505
6506static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6507 PyObject *resultobj;
6508 int arg1 ;
6509 int arg2 ;
6510 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6511 wxString const &arg4_defvalue = wxPyEmptyString ;
6512 wxString *arg4 = (wxString *) &arg4_defvalue ;
6513 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6514 wxFont *result;
6515 bool temp4 = False ;
6516 PyObject * obj3 = 0 ;
6517 char *kwnames[] = {
6518 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6519 };
6520
6521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6522 if (obj3) {
6523 {
6524 arg4 = wxString_in_helper(obj3);
6525 if (arg4 == NULL) SWIG_fail;
6526 temp4 = True;
6527 }
6528 }
6529 {
6530 PyThreadState* __tstate = wxPyBeginAllowThreads();
6531 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6532
6533 wxPyEndAllowThreads(__tstate);
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6537 {
6538 if (temp4)
6539 delete arg4;
6540 }
6541 return resultobj;
6542 fail:
6543 {
6544 if (temp4)
6545 delete arg4;
6546 }
6547 return NULL;
6548}
6549
6550
6551static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxFont *arg1 = (wxFont *) 0 ;
6554 bool result;
6555 PyObject * obj0 = 0 ;
6556 char *kwnames[] = {
6557 (char *) "self", NULL
6558 };
6559
6560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 result = (bool)((wxFont const *)arg1)->Ok();
6565
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 resultobj = PyInt_FromLong((long)result);
6570 return resultobj;
6571 fail:
6572 return NULL;
6573}
6574
6575
6576static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6577 PyObject *resultobj;
6578 wxFont *arg1 = (wxFont *) 0 ;
6579 wxFont *arg2 = 0 ;
6580 bool result;
6581 PyObject * obj0 = 0 ;
6582 PyObject * obj1 = 0 ;
6583 char *kwnames[] = {
6584 (char *) "self",(char *) "font", NULL
6585 };
6586
6587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6589 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6590 if (arg2 == NULL) {
6591 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6592 }
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6596
6597 wxPyEndAllowThreads(__tstate);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = PyInt_FromLong((long)result);
6601 return resultobj;
6602 fail:
6603 return NULL;
6604}
6605
6606
6607static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj;
6609 wxFont *arg1 = (wxFont *) 0 ;
6610 wxFont *arg2 = 0 ;
6611 bool result;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self",(char *) "font", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6620 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6621 if (arg2 == NULL) {
6622 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6623 }
6624 {
6625 PyThreadState* __tstate = wxPyBeginAllowThreads();
6626 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6627
6628 wxPyEndAllowThreads(__tstate);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = PyInt_FromLong((long)result);
6632 return resultobj;
6633 fail:
6634 return NULL;
6635}
6636
6637
6638static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj;
6640 wxFont *arg1 = (wxFont *) 0 ;
6641 int result;
6642 PyObject * obj0 = 0 ;
6643 char *kwnames[] = {
6644 (char *) "self", NULL
6645 };
6646
6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6649 {
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = (int)((wxFont const *)arg1)->GetPointSize();
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 resultobj = PyInt_FromLong((long)result);
6657 return resultobj;
6658 fail:
6659 return NULL;
6660}
6661
6662
6663static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6664 PyObject *resultobj;
6665 wxFont *arg1 = (wxFont *) 0 ;
6666 int result;
6667 PyObject * obj0 = 0 ;
6668 char *kwnames[] = {
6669 (char *) "self", NULL
6670 };
6671
6672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (int)((wxFont const *)arg1)->GetFamily();
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 resultobj = PyInt_FromLong((long)result);
6682 return resultobj;
6683 fail:
6684 return NULL;
6685}
6686
6687
6688static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxFont *arg1 = (wxFont *) 0 ;
6691 int result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "self", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6699 {
6700 PyThreadState* __tstate = wxPyBeginAllowThreads();
6701 result = (int)((wxFont const *)arg1)->GetStyle();
6702
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = PyInt_FromLong((long)result);
6707 return resultobj;
6708 fail:
6709 return NULL;
6710}
6711
6712
6713static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj;
6715 wxFont *arg1 = (wxFont *) 0 ;
6716 int result;
6717 PyObject * obj0 = 0 ;
6718 char *kwnames[] = {
6719 (char *) "self", NULL
6720 };
6721
6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (int)((wxFont const *)arg1)->GetWeight();
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 resultobj = PyInt_FromLong((long)result);
6732 return resultobj;
6733 fail:
6734 return NULL;
6735}
6736
6737
6738static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj;
6740 wxFont *arg1 = (wxFont *) 0 ;
6741 bool result;
6742 PyObject * obj0 = 0 ;
6743 char *kwnames[] = {
6744 (char *) "self", NULL
6745 };
6746
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6749 {
6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
6751 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6752
6753 wxPyEndAllowThreads(__tstate);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 resultobj = PyInt_FromLong((long)result);
6757 return resultobj;
6758 fail:
6759 return NULL;
6760}
6761
6762
6763static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6764 PyObject *resultobj;
6765 wxFont *arg1 = (wxFont *) 0 ;
6766 wxString result;
6767 PyObject * obj0 = 0 ;
6768 char *kwnames[] = {
6769 (char *) "self", NULL
6770 };
6771
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6774 {
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 result = ((wxFont const *)arg1)->GetFaceName();
6777
6778 wxPyEndAllowThreads(__tstate);
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 {
6782#if wxUSE_UNICODE
6783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6784#else
6785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6786#endif
6787 }
6788 return resultobj;
6789 fail:
6790 return NULL;
6791}
6792
6793
6794static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj;
6796 wxFont *arg1 = (wxFont *) 0 ;
6797 int result;
6798 PyObject * obj0 = 0 ;
6799 char *kwnames[] = {
6800 (char *) "self", NULL
6801 };
6802
6803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6805 {
6806 PyThreadState* __tstate = wxPyBeginAllowThreads();
6807 result = (int)((wxFont const *)arg1)->GetEncoding();
6808
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 resultobj = PyInt_FromLong((long)result);
6813 return resultobj;
6814 fail:
6815 return NULL;
6816}
6817
6818
6819static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj;
6821 wxFont *arg1 = (wxFont *) 0 ;
6822 wxNativeFontInfo *result;
6823 PyObject * obj0 = 0 ;
6824 char *kwnames[] = {
6825 (char *) "self", NULL
6826 };
6827
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6830 {
6831 PyThreadState* __tstate = wxPyBeginAllowThreads();
6832 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6833
6834 wxPyEndAllowThreads(__tstate);
6835 if (PyErr_Occurred()) SWIG_fail;
6836 }
6837 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6838 return resultobj;
6839 fail:
6840 return NULL;
6841}
6842
6843
6844static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 wxFont *arg1 = (wxFont *) 0 ;
6847 bool result;
6848 PyObject * obj0 = 0 ;
6849 char *kwnames[] = {
6850 (char *) "self", NULL
6851 };
6852
6853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6855 {
6856 PyThreadState* __tstate = wxPyBeginAllowThreads();
6857 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6858
6859 wxPyEndAllowThreads(__tstate);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 resultobj = PyInt_FromLong((long)result);
6863 return resultobj;
6864 fail:
6865 return NULL;
6866}
6867
6868
6869static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj;
6871 wxFont *arg1 = (wxFont *) 0 ;
6872 wxString result;
6873 PyObject * obj0 = 0 ;
6874 char *kwnames[] = {
6875 (char *) "self", NULL
6876 };
6877
6878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6883
6884 wxPyEndAllowThreads(__tstate);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 {
6888#if wxUSE_UNICODE
6889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6890#else
6891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6892#endif
6893 }
6894 return resultobj;
6895 fail:
6896 return NULL;
6897}
6898
6899
6900static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj;
6902 wxFont *arg1 = (wxFont *) 0 ;
6903 wxString result;
6904 PyObject * obj0 = 0 ;
6905 char *kwnames[] = {
6906 (char *) "self", NULL
6907 };
6908
6909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6911 {
6912 PyThreadState* __tstate = wxPyBeginAllowThreads();
6913 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6914
6915 wxPyEndAllowThreads(__tstate);
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 {
6919#if wxUSE_UNICODE
6920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6921#else
6922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6923#endif
6924 }
6925 return resultobj;
6926 fail:
6927 return NULL;
6928}
6929
6930
6931static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj;
6933 wxFont *arg1 = (wxFont *) 0 ;
6934 int arg2 ;
6935 PyObject * obj0 = 0 ;
6936 char *kwnames[] = {
6937 (char *) "self",(char *) "pointSize", NULL
6938 };
6939
6940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6942 {
6943 PyThreadState* __tstate = wxPyBeginAllowThreads();
6944 (arg1)->SetPointSize(arg2);
6945
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) SWIG_fail;
6948 }
6949 Py_INCREF(Py_None); resultobj = Py_None;
6950 return resultobj;
6951 fail:
6952 return NULL;
6953}
6954
6955
6956static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6957 PyObject *resultobj;
6958 wxFont *arg1 = (wxFont *) 0 ;
6959 int arg2 ;
6960 PyObject * obj0 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self",(char *) "family", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 (arg1)->SetFamily(arg2);
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 Py_INCREF(Py_None); resultobj = Py_None;
6975 return resultobj;
6976 fail:
6977 return NULL;
6978}
6979
6980
6981static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxFont *arg1 = (wxFont *) 0 ;
6984 int arg2 ;
6985 PyObject * obj0 = 0 ;
6986 char *kwnames[] = {
6987 (char *) "self",(char *) "style", NULL
6988 };
6989
6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
6991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 (arg1)->SetStyle(arg2);
6995
6996 wxPyEndAllowThreads(__tstate);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 Py_INCREF(Py_None); resultobj = Py_None;
7000 return resultobj;
7001 fail:
7002 return NULL;
7003}
7004
7005
7006static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj;
7008 wxFont *arg1 = (wxFont *) 0 ;
7009 int arg2 ;
7010 PyObject * obj0 = 0 ;
7011 char *kwnames[] = {
7012 (char *) "self",(char *) "weight", NULL
7013 };
7014
7015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7017 {
7018 PyThreadState* __tstate = wxPyBeginAllowThreads();
7019 (arg1)->SetWeight(arg2);
7020
7021 wxPyEndAllowThreads(__tstate);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 Py_INCREF(Py_None); resultobj = Py_None;
7025 return resultobj;
7026 fail:
7027 return NULL;
7028}
7029
7030
7031static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7032 PyObject *resultobj;
7033 wxFont *arg1 = (wxFont *) 0 ;
7034 wxString *arg2 = 0 ;
7035 bool temp2 = False ;
7036 PyObject * obj0 = 0 ;
7037 PyObject * obj1 = 0 ;
7038 char *kwnames[] = {
7039 (char *) "self",(char *) "faceName", NULL
7040 };
7041
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7044 {
7045 arg2 = wxString_in_helper(obj1);
7046 if (arg2 == NULL) SWIG_fail;
7047 temp2 = True;
7048 }
7049 {
7050 PyThreadState* __tstate = wxPyBeginAllowThreads();
7051 (arg1)->SetFaceName((wxString const &)*arg2);
7052
7053 wxPyEndAllowThreads(__tstate);
7054 if (PyErr_Occurred()) SWIG_fail;
7055 }
7056 Py_INCREF(Py_None); resultobj = Py_None;
7057 {
7058 if (temp2)
7059 delete arg2;
7060 }
7061 return resultobj;
7062 fail:
7063 {
7064 if (temp2)
7065 delete arg2;
7066 }
7067 return NULL;
7068}
7069
7070
7071static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7072 PyObject *resultobj;
7073 wxFont *arg1 = (wxFont *) 0 ;
7074 bool arg2 ;
7075 PyObject * obj0 = 0 ;
7076 PyObject * obj1 = 0 ;
7077 char *kwnames[] = {
7078 (char *) "self",(char *) "underlined", NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7083 arg2 = PyInt_AsLong(obj1) ? true : false;
7084 if (PyErr_Occurred()) SWIG_fail;
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetUnderlined(arg2);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 Py_INCREF(Py_None); resultobj = Py_None;
7093 return resultobj;
7094 fail:
7095 return NULL;
7096}
7097
7098
7099static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj;
7101 wxFont *arg1 = (wxFont *) 0 ;
7102 int arg2 ;
7103 PyObject * obj0 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "self",(char *) "encoding", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 (arg1)->SetEncoding((wxFontEncoding )arg2);
7113
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 Py_INCREF(Py_None); resultobj = Py_None;
7118 return resultobj;
7119 fail:
7120 return NULL;
7121}
7122
7123
7124static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj;
7126 wxFont *arg1 = (wxFont *) 0 ;
7127 wxNativeFontInfo *arg2 = 0 ;
7128 PyObject * obj0 = 0 ;
7129 PyObject * obj1 = 0 ;
7130 char *kwnames[] = {
7131 (char *) "self",(char *) "info", NULL
7132 };
7133
7134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7136 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7137 if (arg2 == NULL) {
7138 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7139 }
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7143
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 Py_INCREF(Py_None); resultobj = Py_None;
7148 return resultobj;
7149 fail:
7150 return NULL;
7151}
7152
7153
7154static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj;
7156 wxFont *arg1 = (wxFont *) 0 ;
7157 wxString *arg2 = 0 ;
7158 bool temp2 = False ;
7159 PyObject * obj0 = 0 ;
7160 PyObject * obj1 = 0 ;
7161 char *kwnames[] = {
7162 (char *) "self",(char *) "info", NULL
7163 };
7164
7165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7167 {
7168 arg2 = wxString_in_helper(obj1);
7169 if (arg2 == NULL) SWIG_fail;
7170 temp2 = True;
7171 }
7172 {
7173 PyThreadState* __tstate = wxPyBeginAllowThreads();
7174 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7175
7176 wxPyEndAllowThreads(__tstate);
7177 if (PyErr_Occurred()) SWIG_fail;
7178 }
7179 Py_INCREF(Py_None); resultobj = Py_None;
7180 {
7181 if (temp2)
7182 delete arg2;
7183 }
7184 return resultobj;
7185 fail:
7186 {
7187 if (temp2)
7188 delete arg2;
7189 }
7190 return NULL;
7191}
7192
7193
7194static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7195 PyObject *resultobj;
7196 wxFont *arg1 = (wxFont *) 0 ;
7197 wxString *arg2 = 0 ;
7198 bool temp2 = False ;
7199 PyObject * obj0 = 0 ;
7200 PyObject * obj1 = 0 ;
7201 char *kwnames[] = {
7202 (char *) "self",(char *) "info", NULL
7203 };
7204
7205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7207 {
7208 arg2 = wxString_in_helper(obj1);
7209 if (arg2 == NULL) SWIG_fail;
7210 temp2 = True;
7211 }
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7215
7216 wxPyEndAllowThreads(__tstate);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 Py_INCREF(Py_None); resultobj = Py_None;
7220 {
7221 if (temp2)
7222 delete arg2;
7223 }
7224 return resultobj;
7225 fail:
7226 {
7227 if (temp2)
7228 delete arg2;
7229 }
7230 return NULL;
7231}
7232
7233
7234static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxFont *arg1 = (wxFont *) 0 ;
7237 wxString result;
7238 PyObject * obj0 = 0 ;
7239 char *kwnames[] = {
7240 (char *) "self", NULL
7241 };
7242
7243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7245 {
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 result = ((wxFont const *)arg1)->GetFamilyString();
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 {
7253#if wxUSE_UNICODE
7254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7255#else
7256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7257#endif
7258 }
7259 return resultobj;
7260 fail:
7261 return NULL;
7262}
7263
7264
7265static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj;
7267 wxFont *arg1 = (wxFont *) 0 ;
7268 wxString result;
7269 PyObject * obj0 = 0 ;
7270 char *kwnames[] = {
7271 (char *) "self", NULL
7272 };
7273
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 result = ((wxFont const *)arg1)->GetStyleString();
7279
7280 wxPyEndAllowThreads(__tstate);
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 {
7284#if wxUSE_UNICODE
7285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7286#else
7287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7288#endif
7289 }
7290 return resultobj;
7291 fail:
7292 return NULL;
7293}
7294
7295
7296static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj;
7298 wxFont *arg1 = (wxFont *) 0 ;
7299 wxString result;
7300 PyObject * obj0 = 0 ;
7301 char *kwnames[] = {
7302 (char *) "self", NULL
7303 };
7304
7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7307 {
7308 PyThreadState* __tstate = wxPyBeginAllowThreads();
7309 result = ((wxFont const *)arg1)->GetWeightString();
7310
7311 wxPyEndAllowThreads(__tstate);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 {
7315#if wxUSE_UNICODE
7316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7317#else
7318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7319#endif
7320 }
7321 return resultobj;
7322 fail:
7323 return NULL;
7324}
7325
7326
7327static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj;
7329 wxFont *arg1 = (wxFont *) 0 ;
7330 bool arg2 = (bool) True ;
7331 PyObject * obj0 = 0 ;
7332 PyObject * obj1 = 0 ;
7333 char *kwnames[] = {
7334 (char *) "self",(char *) "no", NULL
7335 };
7336
7337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7339 if (obj1) {
7340 arg2 = PyInt_AsLong(obj1) ? true : false;
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 (arg1)->SetNoAntiAliasing(arg2);
7346
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 Py_INCREF(Py_None); resultobj = Py_None;
7351 return resultobj;
7352 fail:
7353 return NULL;
7354}
7355
7356
7357static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj;
7359 wxFont *arg1 = (wxFont *) 0 ;
7360 bool result;
7361 PyObject * obj0 = 0 ;
7362 char *kwnames[] = {
7363 (char *) "self", NULL
7364 };
7365
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (bool)(arg1)->GetNoAntiAliasing();
7371
7372 wxPyEndAllowThreads(__tstate);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 resultobj = PyInt_FromLong((long)result);
7376 return resultobj;
7377 fail:
7378 return NULL;
7379}
7380
7381
7382static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7383 PyObject *resultobj;
7384 int result;
7385 char *kwnames[] = {
7386 NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7390 {
7391 PyThreadState* __tstate = wxPyBeginAllowThreads();
7392 result = (int)wxFont::GetDefaultEncoding();
7393
7394 wxPyEndAllowThreads(__tstate);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = PyInt_FromLong((long)result);
7398 return resultobj;
7399 fail:
7400 return NULL;
7401}
7402
7403
7404static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj;
7406 int arg1 ;
7407 char *kwnames[] = {
7408 (char *) "encoding", NULL
7409 };
7410
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7412 {
7413 PyThreadState* __tstate = wxPyBeginAllowThreads();
7414 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7415
7416 wxPyEndAllowThreads(__tstate);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 Py_INCREF(Py_None); resultobj = Py_None;
7420 return resultobj;
7421 fail:
7422 return NULL;
7423}
7424
7425
7426static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7427 PyObject *obj;
7428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7429 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7430 Py_INCREF(obj);
7431 return Py_BuildValue((char *)"");
7432}
7433static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7434 PyObject *resultobj;
7435 wxPyFontEnumerator *result;
7436 char *kwnames[] = {
7437 NULL
7438 };
7439
7440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7441 {
7442 PyThreadState* __tstate = wxPyBeginAllowThreads();
7443 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7444
7445 wxPyEndAllowThreads(__tstate);
7446 if (PyErr_Occurred()) SWIG_fail;
7447 }
7448 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7449 return resultobj;
7450 fail:
7451 return NULL;
7452}
7453
7454
7455static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7456 PyObject *resultobj;
7457 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7458 PyObject * obj0 = 0 ;
7459 char *kwnames[] = {
7460 (char *) "self", NULL
7461 };
7462
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 delete arg1;
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 Py_INCREF(Py_None); resultobj = Py_None;
7473 return resultobj;
7474 fail:
7475 return NULL;
7476}
7477
7478
7479static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7482 PyObject *arg2 = (PyObject *) 0 ;
7483 PyObject *arg3 = (PyObject *) 0 ;
7484 bool arg4 ;
7485 PyObject * obj0 = 0 ;
7486 PyObject * obj1 = 0 ;
7487 PyObject * obj2 = 0 ;
7488 PyObject * obj3 = 0 ;
7489 char *kwnames[] = {
7490 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7491 };
7492
7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7495 arg2 = obj1;
7496 arg3 = obj2;
7497 arg4 = PyInt_AsLong(obj3) ? true : false;
7498 if (PyErr_Occurred()) SWIG_fail;
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 Py_INCREF(Py_None); resultobj = Py_None;
7507 return resultobj;
7508 fail:
7509 return NULL;
7510}
7511
7512
7513static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj;
7515 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7516 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7517 bool arg3 = (bool) False ;
7518 bool result;
7519 PyObject * obj0 = 0 ;
7520 PyObject * obj2 = 0 ;
7521 char *kwnames[] = {
7522 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7523 };
7524
7525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7527 if (obj2) {
7528 arg3 = PyInt_AsLong(obj2) ? true : false;
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 resultobj = PyInt_FromLong((long)result);
7539 return resultobj;
7540 fail:
7541 return NULL;
7542}
7543
7544
7545static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj;
7547 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7548 wxString const &arg2_defvalue = wxPyEmptyString ;
7549 wxString *arg2 = (wxString *) &arg2_defvalue ;
7550 bool result;
7551 bool temp2 = False ;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj1 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "self",(char *) "facename", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7560 if (obj1) {
7561 {
7562 arg2 = wxString_in_helper(obj1);
7563 if (arg2 == NULL) SWIG_fail;
7564 temp2 = True;
7565 }
7566 }
7567 {
7568 PyThreadState* __tstate = wxPyBeginAllowThreads();
7569 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7570
7571 wxPyEndAllowThreads(__tstate);
7572 if (PyErr_Occurred()) SWIG_fail;
7573 }
7574 resultobj = PyInt_FromLong((long)result);
7575 {
7576 if (temp2)
7577 delete arg2;
7578 }
7579 return resultobj;
7580 fail:
7581 {
7582 if (temp2)
7583 delete arg2;
7584 }
7585 return NULL;
7586}
7587
7588
7589static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7592 PyObject *result;
7593 PyObject * obj0 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "self", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = result;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611}
7612
7613
7614static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7617 PyObject *result;
7618 PyObject * obj0 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "self", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7625 {
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7628
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = result;
7633 return resultobj;
7634 fail:
7635 return NULL;
7636}
7637
7638
7639static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7640 PyObject *obj;
7641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7642 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7643 Py_INCREF(obj);
7644 return Py_BuildValue((char *)"");
7645}
7646static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7647 PyObject *resultobj;
7648 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7649 int arg2 ;
7650 PyObject * obj0 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "self",(char *) "Language", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7657 if (arg1) (arg1)->Language = arg2;
7658
7659 Py_INCREF(Py_None); resultobj = Py_None;
7660 return resultobj;
7661 fail:
7662 return NULL;
7663}
7664
7665
7666static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7667 PyObject *resultobj;
7668 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7669 int result;
7670 PyObject * obj0 = 0 ;
7671 char *kwnames[] = {
7672 (char *) "self", NULL
7673 };
7674
7675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7677 result = (int) ((arg1)->Language);
7678
7679 resultobj = PyInt_FromLong((long)result);
7680 return resultobj;
7681 fail:
7682 return NULL;
7683}
7684
7685
7686static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj;
7688 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7689 wxString arg2 ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 char *kwnames[] = {
7693 (char *) "self",(char *) "CanonicalName", NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7698 {
7699 wxString* sptr = wxString_in_helper(obj1);
7700 if (sptr == NULL) SWIG_fail;
7701 arg2 = *sptr;
7702 delete sptr;
7703 }
7704 if (arg1) (arg1)->CanonicalName = arg2;
7705
7706 Py_INCREF(Py_None); resultobj = Py_None;
7707 return resultobj;
7708 fail:
7709 return NULL;
7710}
7711
7712
7713static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7716 wxString result;
7717 PyObject * obj0 = 0 ;
7718 char *kwnames[] = {
7719 (char *) "self", NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7724 result = ((arg1)->CanonicalName);
7725
7726 {
7727#if wxUSE_UNICODE
7728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7729#else
7730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7731#endif
7732 }
7733 return resultobj;
7734 fail:
7735 return NULL;
7736}
7737
7738
7739static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7742 wxString arg2 ;
7743 PyObject * obj0 = 0 ;
7744 PyObject * obj1 = 0 ;
7745 char *kwnames[] = {
7746 (char *) "self",(char *) "Description", NULL
7747 };
7748
7749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7751 {
7752 wxString* sptr = wxString_in_helper(obj1);
7753 if (sptr == NULL) SWIG_fail;
7754 arg2 = *sptr;
7755 delete sptr;
7756 }
7757 if (arg1) (arg1)->Description = arg2;
7758
7759 Py_INCREF(Py_None); resultobj = Py_None;
7760 return resultobj;
7761 fail:
7762 return NULL;
7763}
7764
7765
7766static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7767 PyObject *resultobj;
7768 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7769 wxString result;
7770 PyObject * obj0 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7777 result = ((arg1)->Description);
7778
7779 {
7780#if wxUSE_UNICODE
7781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7782#else
7783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7784#endif
7785 }
7786 return resultobj;
7787 fail:
7788 return NULL;
7789}
7790
7791
7792static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7793 PyObject *obj;
7794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7795 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7796 Py_INCREF(obj);
7797 return Py_BuildValue((char *)"");
7798}
7799static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj;
7801 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7802 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7803 wxLocale *result;
7804 char *kwnames[] = {
7805 (char *) "language",(char *) "flags", NULL
7806 };
7807
7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 result = (wxLocale *)new wxLocale(arg1,arg2);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7817 return resultobj;
7818 fail:
7819 return NULL;
7820}
7821
7822
7823static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7824 PyObject *resultobj;
7825 wxLocale *arg1 = (wxLocale *) 0 ;
7826 PyObject * obj0 = 0 ;
7827 char *kwnames[] = {
7828 (char *) "self", NULL
7829 };
7830
7831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 delete arg1;
7836
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 Py_INCREF(Py_None); resultobj = Py_None;
7841 return resultobj;
7842 fail:
7843 return NULL;
7844}
7845
7846
7847static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7848 PyObject *resultobj;
7849 wxLocale *arg1 = (wxLocale *) 0 ;
7850 wxString *arg2 = 0 ;
7851 wxString const &arg3_defvalue = wxPyEmptyString ;
7852 wxString *arg3 = (wxString *) &arg3_defvalue ;
7853 wxString const &arg4_defvalue = wxPyEmptyString ;
7854 wxString *arg4 = (wxString *) &arg4_defvalue ;
7855 bool arg5 = (bool) True ;
7856 bool arg6 = (bool) False ;
7857 bool result;
7858 bool temp2 = False ;
7859 bool temp3 = False ;
7860 bool temp4 = False ;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 PyObject * obj2 = 0 ;
7864 PyObject * obj3 = 0 ;
7865 PyObject * obj4 = 0 ;
7866 PyObject * obj5 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7873 {
7874 arg2 = wxString_in_helper(obj1);
7875 if (arg2 == NULL) SWIG_fail;
7876 temp2 = True;
7877 }
7878 if (obj2) {
7879 {
7880 arg3 = wxString_in_helper(obj2);
7881 if (arg3 == NULL) SWIG_fail;
7882 temp3 = True;
7883 }
7884 }
7885 if (obj3) {
7886 {
7887 arg4 = wxString_in_helper(obj3);
7888 if (arg4 == NULL) SWIG_fail;
7889 temp4 = True;
7890 }
7891 }
7892 if (obj4) {
7893 arg5 = PyInt_AsLong(obj4) ? true : false;
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 if (obj5) {
7897 arg6 = PyInt_AsLong(obj5) ? true : false;
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7903
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = PyInt_FromLong((long)result);
7908 {
7909 if (temp2)
7910 delete arg2;
7911 }
7912 {
7913 if (temp3)
7914 delete arg3;
7915 }
7916 {
7917 if (temp4)
7918 delete arg4;
7919 }
7920 return resultobj;
7921 fail:
7922 {
7923 if (temp2)
7924 delete arg2;
7925 }
7926 {
7927 if (temp3)
7928 delete arg3;
7929 }
7930 {
7931 if (temp4)
7932 delete arg4;
7933 }
7934 return NULL;
7935}
7936
7937
7938static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxLocale *arg1 = (wxLocale *) 0 ;
7941 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7942 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7943 bool result;
7944 PyObject * obj0 = 0 ;
7945 char *kwnames[] = {
7946 (char *) "self",(char *) "language",(char *) "flags", NULL
7947 };
7948
7949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
7950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7951 {
7952 PyThreadState* __tstate = wxPyBeginAllowThreads();
7953 result = (bool)(arg1)->Init(arg2,arg3);
7954
7955 wxPyEndAllowThreads(__tstate);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 resultobj = PyInt_FromLong((long)result);
7959 return resultobj;
7960 fail:
7961 return NULL;
7962}
7963
7964
7965static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject *resultobj;
7967 int result;
7968 char *kwnames[] = {
7969 NULL
7970 };
7971
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 result = (int)wxLocale::GetSystemLanguage();
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = PyInt_FromLong((long)result);
7981 return resultobj;
7982 fail:
7983 return NULL;
7984}
7985
7986
7987static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj;
7989 int result;
7990 char *kwnames[] = {
7991 NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (int)wxLocale::GetSystemEncoding();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = PyInt_FromLong((long)result);
8003 return resultobj;
8004 fail:
8005 return NULL;
8006}
8007
8008
8009static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxString result;
8012 char *kwnames[] = {
8013 NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = wxLocale::GetSystemEncodingName();
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 {
8025#if wxUSE_UNICODE
8026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8027#else
8028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8029#endif
8030 }
8031 return resultobj;
8032 fail:
8033 return NULL;
8034}
8035
8036
8037static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxLocale *arg1 = (wxLocale *) 0 ;
8040 bool result;
8041 PyObject * obj0 = 0 ;
8042 char *kwnames[] = {
8043 (char *) "self", NULL
8044 };
8045
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8048 {
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 result = (bool)((wxLocale const *)arg1)->IsOk();
8051
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) SWIG_fail;
8054 }
8055 resultobj = PyInt_FromLong((long)result);
8056 return resultobj;
8057 fail:
8058 return NULL;
8059}
8060
8061
8062static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxLocale *arg1 = (wxLocale *) 0 ;
8065 wxString result;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = ((wxLocale const *)arg1)->GetLocale();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081#if wxUSE_UNICODE
8082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8083#else
8084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8085#endif
8086 }
8087 return resultobj;
8088 fail:
8089 return NULL;
8090}
8091
8092
8093static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8094 PyObject *resultobj;
8095 wxLocale *arg1 = (wxLocale *) 0 ;
8096 int result;
8097 PyObject * obj0 = 0 ;
8098 char *kwnames[] = {
8099 (char *) "self", NULL
8100 };
8101
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (int)((wxLocale const *)arg1)->GetLanguage();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = PyInt_FromLong((long)result);
8112 return resultobj;
8113 fail:
8114 return NULL;
8115}
8116
8117
8118static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 wxLocale *arg1 = (wxLocale *) 0 ;
8121 wxString result;
8122 PyObject * obj0 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "self", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = ((wxLocale const *)arg1)->GetSysName();
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 {
8137#if wxUSE_UNICODE
8138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8139#else
8140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8141#endif
8142 }
8143 return resultobj;
8144 fail:
8145 return NULL;
8146}
8147
8148
8149static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxLocale *arg1 = (wxLocale *) 0 ;
8152 wxString result;
8153 PyObject * obj0 = 0 ;
8154 char *kwnames[] = {
8155 (char *) "self", NULL
8156 };
8157
8158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8160 {
8161 PyThreadState* __tstate = wxPyBeginAllowThreads();
8162 result = ((wxLocale const *)arg1)->GetCanonicalName();
8163
8164 wxPyEndAllowThreads(__tstate);
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 {
8168#if wxUSE_UNICODE
8169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8170#else
8171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8172#endif
8173 }
8174 return resultobj;
8175 fail:
8176 return NULL;
8177}
8178
8179
8180static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj;
8182 wxString *arg1 = 0 ;
8183 bool temp1 = False ;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "prefix", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8190 {
8191 arg1 = wxString_in_helper(obj0);
8192 if (arg1 == NULL) SWIG_fail;
8193 temp1 = True;
8194 }
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 Py_INCREF(Py_None); resultobj = Py_None;
8203 {
8204 if (temp1)
8205 delete arg1;
8206 }
8207 return resultobj;
8208 fail:
8209 {
8210 if (temp1)
8211 delete arg1;
8212 }
8213 return NULL;
8214}
8215
8216
8217static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj;
8219 wxLocale *arg1 = (wxLocale *) 0 ;
8220 wxString *arg2 = 0 ;
8221 bool result;
8222 bool temp2 = False ;
8223 PyObject * obj0 = 0 ;
8224 PyObject * obj1 = 0 ;
8225 char *kwnames[] = {
8226 (char *) "self",(char *) "szDomain", NULL
8227 };
8228
8229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8231 {
8232 arg2 = wxString_in_helper(obj1);
8233 if (arg2 == NULL) SWIG_fail;
8234 temp2 = True;
8235 }
8236 {
8237 PyThreadState* __tstate = wxPyBeginAllowThreads();
8238 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8239
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 resultobj = PyInt_FromLong((long)result);
8244 {
8245 if (temp2)
8246 delete arg2;
8247 }
8248 return resultobj;
8249 fail:
8250 {
8251 if (temp2)
8252 delete arg2;
8253 }
8254 return NULL;
8255}
8256
8257
8258static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxLocale *arg1 = (wxLocale *) 0 ;
8261 wxString *arg2 = 0 ;
8262 bool result;
8263 bool temp2 = False ;
8264 PyObject * obj0 = 0 ;
8265 PyObject * obj1 = 0 ;
8266 char *kwnames[] = {
8267 (char *) "self",(char *) "szDomain", NULL
8268 };
8269
8270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8272 {
8273 arg2 = wxString_in_helper(obj1);
8274 if (arg2 == NULL) SWIG_fail;
8275 temp2 = True;
8276 }
8277 {
8278 PyThreadState* __tstate = wxPyBeginAllowThreads();
8279 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8280
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = PyInt_FromLong((long)result);
8285 {
8286 if (temp2)
8287 delete arg2;
8288 }
8289 return resultobj;
8290 fail:
8291 {
8292 if (temp2)
8293 delete arg2;
8294 }
8295 return NULL;
8296}
8297
8298
8299static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj;
8301 int arg1 ;
8302 wxLanguageInfo *result;
8303 char *kwnames[] = {
8304 (char *) "lang", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8308 {
8309 PyThreadState* __tstate = wxPyBeginAllowThreads();
8310 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8311
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8316 return resultobj;
8317 fail:
8318 return NULL;
8319}
8320
8321
8322static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8323 PyObject *resultobj;
8324 int arg1 ;
8325 wxString result;
8326 char *kwnames[] = {
8327 (char *) "lang", NULL
8328 };
8329
8330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 result = wxLocale::GetLanguageName(arg1);
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 {
8339#if wxUSE_UNICODE
8340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8341#else
8342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8343#endif
8344 }
8345 return resultobj;
8346 fail:
8347 return NULL;
8348}
8349
8350
8351static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj;
8353 wxString *arg1 = 0 ;
8354 wxLanguageInfo *result;
8355 bool temp1 = False ;
8356 PyObject * obj0 = 0 ;
8357 char *kwnames[] = {
8358 (char *) "locale", NULL
8359 };
8360
8361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8362 {
8363 arg1 = wxString_in_helper(obj0);
8364 if (arg1 == NULL) SWIG_fail;
8365 temp1 = True;
8366 }
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8375 {
8376 if (temp1)
8377 delete arg1;
8378 }
8379 return resultobj;
8380 fail:
8381 {
8382 if (temp1)
8383 delete arg1;
8384 }
8385 return NULL;
8386}
8387
8388
8389static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj;
8391 wxLanguageInfo *arg1 = 0 ;
8392 PyObject * obj0 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "info", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8399 if (arg1 == NULL) {
8400 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8401 }
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 Py_INCREF(Py_None); resultobj = Py_None;
8410 return resultobj;
8411 fail:
8412 return NULL;
8413}
8414
8415
8416static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8417 PyObject *resultobj;
8418 wxLocale *arg1 = (wxLocale *) 0 ;
8419 wxString *arg2 = 0 ;
8420 wxString const &arg3_defvalue = wxPyEmptyString ;
8421 wxString *arg3 = (wxString *) &arg3_defvalue ;
8422 wxString result;
8423 bool temp2 = False ;
8424 bool temp3 = False ;
8425 PyObject * obj0 = 0 ;
8426 PyObject * obj1 = 0 ;
8427 PyObject * obj2 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8434 {
8435 arg2 = wxString_in_helper(obj1);
8436 if (arg2 == NULL) SWIG_fail;
8437 temp2 = True;
8438 }
8439 if (obj2) {
8440 {
8441 arg3 = wxString_in_helper(obj2);
8442 if (arg3 == NULL) SWIG_fail;
8443 temp3 = True;
8444 }
8445 }
8446 {
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8449
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 {
8454#if wxUSE_UNICODE
8455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8456#else
8457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8458#endif
8459 }
8460 {
8461 if (temp2)
8462 delete arg2;
8463 }
8464 {
8465 if (temp3)
8466 delete arg3;
8467 }
8468 return resultobj;
8469 fail:
8470 {
8471 if (temp2)
8472 delete arg2;
8473 }
8474 {
8475 if (temp3)
8476 delete arg3;
8477 }
8478 return NULL;
8479}
8480
8481
8482static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxLocale *arg1 = (wxLocale *) 0 ;
8485 wxString *result;
8486 PyObject * obj0 = 0 ;
8487 char *kwnames[] = {
8488 (char *) "self", NULL
8489 };
8490
8491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 {
8496 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8497 result = (wxString *) &_result_ref;
8498 }
8499
8500 wxPyEndAllowThreads(__tstate);
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0);
8504 return resultobj;
8505 fail:
8506 return NULL;
8507}
8508
8509
8510static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8511 PyObject *obj;
8512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8513 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8514 Py_INCREF(obj);
8515 return Py_BuildValue((char *)"");
8516}
8517static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxLocale *result;
8520 char *kwnames[] = {
8521 NULL
8522 };
8523
8524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 result = (wxLocale *)wxGetLocale();
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8533 return resultobj;
8534 fail:
8535 return NULL;
8536}
8537
8538
8539static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8540 PyObject *resultobj;
8541 wxString *arg1 = 0 ;
8542 wxString result;
8543 bool temp1 = False ;
8544 PyObject * obj0 = 0 ;
8545
8546 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8547 {
8548 arg1 = wxString_in_helper(obj0);
8549 if (arg1 == NULL) SWIG_fail;
8550 temp1 = True;
8551 }
8552 {
8553 PyThreadState* __tstate = wxPyBeginAllowThreads();
8554 result = wxGetTranslation((wxString const &)*arg1);
8555
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 }
8559 {
8560#if wxUSE_UNICODE
8561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8562#else
8563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8564#endif
8565 }
8566 {
8567 if (temp1)
8568 delete arg1;
8569 }
8570 return resultobj;
8571 fail:
8572 {
8573 if (temp1)
8574 delete arg1;
8575 }
8576 return NULL;
8577}
8578
8579
8580static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8581 PyObject *resultobj;
8582 wxString *arg1 = 0 ;
8583 wxString *arg2 = 0 ;
8584 size_t arg3 ;
8585 wxString result;
8586 bool temp1 = False ;
8587 bool temp2 = False ;
8588 PyObject * obj0 = 0 ;
8589 PyObject * obj1 = 0 ;
8590 PyObject * obj2 = 0 ;
8591
8592 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8593 {
8594 arg1 = wxString_in_helper(obj0);
8595 if (arg1 == NULL) SWIG_fail;
8596 temp1 = True;
8597 }
8598 {
8599 arg2 = wxString_in_helper(obj1);
8600 if (arg2 == NULL) SWIG_fail;
8601 temp2 = True;
8602 }
8603 arg3 = (size_t) PyInt_AsLong(obj2);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 {
8613#if wxUSE_UNICODE
8614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8615#else
8616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8617#endif
8618 }
8619 {
8620 if (temp1)
8621 delete arg1;
8622 }
8623 {
8624 if (temp2)
8625 delete arg2;
8626 }
8627 return resultobj;
8628 fail:
8629 {
8630 if (temp1)
8631 delete arg1;
8632 }
8633 {
8634 if (temp2)
8635 delete arg2;
8636 }
8637 return NULL;
8638}
8639
8640
8641static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8642 int argc;
8643 PyObject *argv[4];
8644 int ii;
8645
8646 argc = PyObject_Length(args);
8647 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8648 argv[ii] = PyTuple_GetItem(args,ii);
8649 }
8650 if (argc == 1) {
8651 int _v;
8652 {
8653 void *ptr;
8654 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8655 _v = 0;
8656 PyErr_Clear();
8657 } else {
8658 _v = 1;
8659 }
8660 }
8661 if (_v) {
8662 return _wrap_GetTranslation__SWIG_0(self,args);
8663 }
8664 }
8665 if (argc == 3) {
8666 int _v;
8667 {
8668 void *ptr;
8669 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8670 _v = 0;
8671 PyErr_Clear();
8672 } else {
8673 _v = 1;
8674 }
8675 }
8676 if (_v) {
8677 {
8678 void *ptr;
8679 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8680 _v = 0;
8681 PyErr_Clear();
8682 } else {
8683 _v = 1;
8684 }
8685 }
8686 if (_v) {
8687 {
8688 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8689 }
8690 if (_v) {
8691 return _wrap_GetTranslation__SWIG_1(self,args);
8692 }
8693 }
8694 }
8695 }
8696
8697 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8698 return NULL;
8699}
8700
8701
8702static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8703 PyObject *resultobj;
8704 wxEncodingConverter *result;
8705 char *kwnames[] = {
8706 NULL
8707 };
8708
8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8710 {
8711 PyThreadState* __tstate = wxPyBeginAllowThreads();
8712 result = (wxEncodingConverter *)new wxEncodingConverter();
8713
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8718 return resultobj;
8719 fail:
8720 return NULL;
8721}
8722
8723
8724static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj;
8726 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8727 PyObject * obj0 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8734 {
8735 PyThreadState* __tstate = wxPyBeginAllowThreads();
8736 delete arg1;
8737
8738 wxPyEndAllowThreads(__tstate);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 Py_INCREF(Py_None); resultobj = Py_None;
8742 return resultobj;
8743 fail:
8744 return NULL;
8745}
8746
8747
8748static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj;
8750 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8751 int arg2 ;
8752 int arg3 ;
8753 int arg4 = (int) wxCONVERT_STRICT ;
8754 bool result;
8755 PyObject * obj0 = 0 ;
8756 char *kwnames[] = {
8757 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8758 };
8759
8760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8762 {
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8765
8766 wxPyEndAllowThreads(__tstate);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 resultobj = PyInt_FromLong((long)result);
8770 return resultobj;
8771 fail:
8772 return NULL;
8773}
8774
8775
8776static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8777 PyObject *resultobj;
8778 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8779 wxString *arg2 = 0 ;
8780 wxString result;
8781 bool temp2 = False ;
8782 PyObject * obj0 = 0 ;
8783 PyObject * obj1 = 0 ;
8784 char *kwnames[] = {
8785 (char *) "self",(char *) "input", NULL
8786 };
8787
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8790 {
8791 arg2 = wxString_in_helper(obj1);
8792 if (arg2 == NULL) SWIG_fail;
8793 temp2 = True;
8794 }
8795 {
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = (arg1)->Convert((wxString const &)*arg2);
8798
8799 wxPyEndAllowThreads(__tstate);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 {
8803#if wxUSE_UNICODE
8804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8805#else
8806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8807#endif
8808 }
8809 {
8810 if (temp2)
8811 delete arg2;
8812 }
8813 return resultobj;
8814 fail:
8815 {
8816 if (temp2)
8817 delete arg2;
8818 }
8819 return NULL;
8820}
8821
8822
8823static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 int arg1 ;
8826 int arg2 = (int) wxPLATFORM_CURRENT ;
8827 wxFontEncodingArray result;
8828 char *kwnames[] = {
8829 (char *) "enc",(char *) "platform", NULL
8830 };
8831
8832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8833 {
8834 PyThreadState* __tstate = wxPyBeginAllowThreads();
8835 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8836
8837 wxPyEndAllowThreads(__tstate);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 {
8841 resultobj = PyList_New(0);
8842 for (size_t i=0; i < (&result)->GetCount(); i++) {
8843 PyObject* number = PyInt_FromLong((&result)->Item(i));
8844 PyList_Append(resultobj, number);
8845 Py_DECREF(number);
8846 }
8847 }
8848 return resultobj;
8849 fail:
8850 return NULL;
8851}
8852
8853
8854static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8855 PyObject *resultobj;
8856 int arg1 ;
8857 wxFontEncodingArray result;
8858 char *kwnames[] = {
8859 (char *) "enc", NULL
8860 };
8861
8862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8863 {
8864 PyThreadState* __tstate = wxPyBeginAllowThreads();
8865 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8866
8867 wxPyEndAllowThreads(__tstate);
8868 if (PyErr_Occurred()) SWIG_fail;
8869 }
8870 {
8871 resultobj = PyList_New(0);
8872 for (size_t i=0; i < (&result)->GetCount(); i++) {
8873 PyObject* number = PyInt_FromLong((&result)->Item(i));
8874 PyList_Append(resultobj, number);
8875 Py_DECREF(number);
8876 }
8877 }
8878 return resultobj;
8879 fail:
8880 return NULL;
8881}
8882
8883
8884static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj;
8886 int arg1 ;
8887 int arg2 ;
8888 bool result;
8889 char *kwnames[] = {
8890 (char *) "encIn",(char *) "encOut", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 resultobj = PyInt_FromLong((long)result);
8902 return resultobj;
8903 fail:
8904 return NULL;
8905}
8906
8907
8908static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8909 PyObject *obj;
8910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8911 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8912 Py_INCREF(obj);
8913 return Py_BuildValue((char *)"");
8914}
8915static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxDC *arg1 = (wxDC *) 0 ;
8918 PyObject * obj0 = 0 ;
8919 char *kwnames[] = {
8920 (char *) "self", NULL
8921 };
8922
8923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 delete arg1;
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) SWIG_fail;
8931 }
8932 Py_INCREF(Py_None); resultobj = Py_None;
8933 return resultobj;
8934 fail:
8935 return NULL;
8936}
8937
8938
8939static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj;
8941 wxDC *arg1 = (wxDC *) 0 ;
8942 PyObject * obj0 = 0 ;
8943 char *kwnames[] = {
8944 (char *) "self", NULL
8945 };
8946
8947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
8948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8949 {
8950 PyThreadState* __tstate = wxPyBeginAllowThreads();
8951 (arg1)->BeginDrawing();
8952
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 Py_INCREF(Py_None); resultobj = Py_None;
8957 return resultobj;
8958 fail:
8959 return NULL;
8960}
8961
8962
8963static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj;
8965 wxDC *arg1 = (wxDC *) 0 ;
8966 PyObject * obj0 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "self", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
8972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8973 {
8974 PyThreadState* __tstate = wxPyBeginAllowThreads();
8975 (arg1)->EndDrawing();
8976
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 Py_INCREF(Py_None); resultobj = Py_None;
8981 return resultobj;
8982 fail:
8983 return NULL;
8984}
8985
8986
8987static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj;
8989 wxDC *arg1 = (wxDC *) 0 ;
8990 int arg2 ;
8991 int arg3 ;
8992 wxColour *arg4 = 0 ;
8993 int arg5 = (int) wxFLOOD_SURFACE ;
8994 bool result;
8995 wxColour temp4 ;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj3 = 0 ;
8998 char *kwnames[] = {
8999 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9000 };
9001
9002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9004 {
9005 arg4 = &temp4;
9006 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9007 }
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 resultobj = PyInt_FromLong((long)result);
9016 return resultobj;
9017 fail:
9018 return NULL;
9019}
9020
9021
9022static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxDC *arg1 = (wxDC *) 0 ;
9025 wxPoint *arg2 = 0 ;
9026 wxColour *arg3 = 0 ;
9027 int arg4 = (int) wxFLOOD_SURFACE ;
9028 bool result;
9029 wxPoint temp2 ;
9030 wxColour temp3 ;
9031 PyObject * obj0 = 0 ;
9032 PyObject * obj1 = 0 ;
9033 PyObject * obj2 = 0 ;
9034 char *kwnames[] = {
9035 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9036 };
9037
9038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9040 {
9041 arg2 = &temp2;
9042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9043 }
9044 {
9045 arg3 = &temp3;
9046 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9047 }
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9051
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = PyInt_FromLong((long)result);
9056 return resultobj;
9057 fail:
9058 return NULL;
9059}
9060
9061
9062static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj;
9064 wxDC *arg1 = (wxDC *) 0 ;
9065 int arg2 ;
9066 int arg3 ;
9067 wxColour result;
9068 PyObject * obj0 = 0 ;
9069 char *kwnames[] = {
9070 (char *) "self",(char *) "x",(char *) "y", NULL
9071 };
9072
9073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9075 {
9076 PyThreadState* __tstate = wxPyBeginAllowThreads();
9077 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9078
9079 wxPyEndAllowThreads(__tstate);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 }
9082 {
9083 wxColour * resultptr;
9084 resultptr = new wxColour((wxColour &) result);
9085 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9086 }
9087 return resultobj;
9088 fail:
9089 return NULL;
9090}
9091
9092
9093static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxDC *arg1 = (wxDC *) 0 ;
9096 wxPoint *arg2 = 0 ;
9097 wxColour result;
9098 wxPoint temp2 ;
9099 PyObject * obj0 = 0 ;
9100 PyObject * obj1 = 0 ;
9101 char *kwnames[] = {
9102 (char *) "self",(char *) "pt", NULL
9103 };
9104
9105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9107 {
9108 arg2 = &temp2;
9109 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9114
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 {
9119 wxColour * resultptr;
9120 resultptr = new wxColour((wxColour &) result);
9121 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9122 }
9123 return resultobj;
9124 fail:
9125 return NULL;
9126}
9127
9128
9129static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9130 PyObject *resultobj;
9131 wxDC *arg1 = (wxDC *) 0 ;
9132 int arg2 ;
9133 int arg3 ;
9134 int arg4 ;
9135 int arg5 ;
9136 PyObject * obj0 = 0 ;
9137 char *kwnames[] = {
9138 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9139 };
9140
9141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 Py_INCREF(Py_None); resultobj = Py_None;
9151 return resultobj;
9152 fail:
9153 return NULL;
9154}
9155
9156
9157static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxDC *arg1 = (wxDC *) 0 ;
9160 wxPoint *arg2 = 0 ;
9161 wxPoint *arg3 = 0 ;
9162 wxPoint temp2 ;
9163 wxPoint temp3 ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 PyObject * obj2 = 0 ;
9167 char *kwnames[] = {
9168 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9169 };
9170
9171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9173 {
9174 arg2 = &temp2;
9175 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9176 }
9177 {
9178 arg3 = &temp3;
9179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9180 }
9181 {
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9184
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 Py_INCREF(Py_None); resultobj = Py_None;
9189 return resultobj;
9190 fail:
9191 return NULL;
9192}
9193
9194
9195static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj;
9197 wxDC *arg1 = (wxDC *) 0 ;
9198 int arg2 ;
9199 int arg3 ;
9200 PyObject * obj0 = 0 ;
9201 char *kwnames[] = {
9202 (char *) "self",(char *) "x",(char *) "y", NULL
9203 };
9204
9205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 (arg1)->CrossHair(arg2,arg3);
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 Py_INCREF(Py_None); resultobj = Py_None;
9215 return resultobj;
9216 fail:
9217 return NULL;
9218}
9219
9220
9221static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxDC *arg1 = (wxDC *) 0 ;
9224 wxPoint *arg2 = 0 ;
9225 wxPoint temp2 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char *kwnames[] = {
9229 (char *) "self",(char *) "pt", NULL
9230 };
9231
9232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9234 {
9235 arg2 = &temp2;
9236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9237 }
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 (arg1)->CrossHair((wxPoint const &)*arg2);
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 Py_INCREF(Py_None); resultobj = Py_None;
9246 return resultobj;
9247 fail:
9248 return NULL;
9249}
9250
9251
9252static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9253 PyObject *resultobj;
9254 wxDC *arg1 = (wxDC *) 0 ;
9255 int arg2 ;
9256 int arg3 ;
9257 int arg4 ;
9258 int arg5 ;
9259 int arg6 ;
9260 int arg7 ;
9261 PyObject * obj0 = 0 ;
9262 char *kwnames[] = {
9263 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9264 };
9265
9266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9268 {
9269 PyThreadState* __tstate = wxPyBeginAllowThreads();
9270 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9271
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 Py_INCREF(Py_None); resultobj = Py_None;
9276 return resultobj;
9277 fail:
9278 return NULL;
9279}
9280
9281
9282static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9283 PyObject *resultobj;
9284 wxDC *arg1 = (wxDC *) 0 ;
9285 wxPoint *arg2 = 0 ;
9286 wxPoint *arg3 = 0 ;
9287 wxPoint *arg4 = 0 ;
9288 wxPoint temp2 ;
9289 wxPoint temp3 ;
9290 wxPoint temp4 ;
9291 PyObject * obj0 = 0 ;
9292 PyObject * obj1 = 0 ;
9293 PyObject * obj2 = 0 ;
9294 PyObject * obj3 = 0 ;
9295 char *kwnames[] = {
9296 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9297 };
9298
9299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9301 {
9302 arg2 = &temp2;
9303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9304 }
9305 {
9306 arg3 = &temp3;
9307 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9308 }
9309 {
9310 arg4 = &temp4;
9311 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9312 }
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9316
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 Py_INCREF(Py_None); resultobj = Py_None;
9321 return resultobj;
9322 fail:
9323 return NULL;
9324}
9325
9326
9327static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj;
9329 wxDC *arg1 = (wxDC *) 0 ;
9330 int arg2 ;
9331 int arg3 ;
9332 int arg4 ;
9333 int arg5 ;
9334 PyObject * obj0 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 Py_INCREF(Py_None); resultobj = Py_None;
9349 return resultobj;
9350 fail:
9351 return NULL;
9352}
9353
9354
9355static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj;
9357 wxDC *arg1 = (wxDC *) 0 ;
9358 wxRect *arg2 = 0 ;
9359 wxRect temp2 ;
9360 PyObject * obj0 = 0 ;
9361 PyObject * obj1 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self",(char *) "rect", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9368 {
9369 arg2 = &temp2;
9370 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9371 }
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 Py_INCREF(Py_None); resultobj = Py_None;
9380 return resultobj;
9381 fail:
9382 return NULL;
9383}
9384
9385
9386static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj;
9388 wxDC *arg1 = (wxDC *) 0 ;
9389 int arg2 ;
9390 int arg3 ;
9391 int arg4 ;
9392 int arg5 ;
9393 double arg6 ;
9394 double arg7 ;
9395 PyObject * obj0 = 0 ;
9396 char *kwnames[] = {
9397 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9398 };
9399
9400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 Py_INCREF(Py_None); resultobj = Py_None;
9410 return resultobj;
9411 fail:
9412 return NULL;
9413}
9414
9415
9416static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxDC *arg1 = (wxDC *) 0 ;
9419 wxPoint *arg2 = 0 ;
9420 wxSize *arg3 = 0 ;
9421 double arg4 ;
9422 double arg5 ;
9423 wxPoint temp2 ;
9424 wxSize temp3 ;
9425 PyObject * obj0 = 0 ;
9426 PyObject * obj1 = 0 ;
9427 PyObject * obj2 = 0 ;
9428 char *kwnames[] = {
9429 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9430 };
9431
9432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9434 {
9435 arg2 = &temp2;
9436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9437 }
9438 {
9439 arg3 = &temp3;
9440 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9441 }
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9445
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 Py_INCREF(Py_None); resultobj = Py_None;
9450 return resultobj;
9451 fail:
9452 return NULL;
9453}
9454
9455
9456static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9457 PyObject *resultobj;
9458 wxDC *arg1 = (wxDC *) 0 ;
9459 int arg2 ;
9460 int arg3 ;
9461 PyObject * obj0 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self",(char *) "x",(char *) "y", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9468 {
9469 PyThreadState* __tstate = wxPyBeginAllowThreads();
9470 (arg1)->DrawPoint(arg2,arg3);
9471
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 Py_INCREF(Py_None); resultobj = Py_None;
9476 return resultobj;
9477 fail:
9478 return NULL;
9479}
9480
9481
9482static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj;
9484 wxDC *arg1 = (wxDC *) 0 ;
9485 wxPoint *arg2 = 0 ;
9486 wxPoint temp2 ;
9487 PyObject * obj0 = 0 ;
9488 PyObject * obj1 = 0 ;
9489 char *kwnames[] = {
9490 (char *) "self",(char *) "pt", NULL
9491 };
9492
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9495 {
9496 arg2 = &temp2;
9497 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9498 }
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 (arg1)->DrawPoint((wxPoint const &)*arg2);
9502
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 Py_INCREF(Py_None); resultobj = Py_None;
9507 return resultobj;
9508 fail:
9509 return NULL;
9510}
9511
9512
9513static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj;
9515 wxDC *arg1 = (wxDC *) 0 ;
9516 int arg2 ;
9517 int arg3 ;
9518 int arg4 ;
9519 int arg5 ;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9530
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 }
9534 Py_INCREF(Py_None); resultobj = Py_None;
9535 return resultobj;
9536 fail:
9537 return NULL;
9538}
9539
9540
9541static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 wxDC *arg1 = (wxDC *) 0 ;
9544 wxPoint *arg2 = 0 ;
9545 wxSize *arg3 = 0 ;
9546 wxPoint temp2 ;
9547 wxSize temp3 ;
9548 PyObject * obj0 = 0 ;
9549 PyObject * obj1 = 0 ;
9550 PyObject * obj2 = 0 ;
9551 char *kwnames[] = {
9552 (char *) "self",(char *) "pt",(char *) "sz", NULL
9553 };
9554
9555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9557 {
9558 arg2 = &temp2;
9559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9560 }
9561 {
9562 arg3 = &temp3;
9563 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9564 }
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 Py_INCREF(Py_None); resultobj = Py_None;
9573 return resultobj;
9574 fail:
9575 return NULL;
9576}
9577
9578
9579static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj;
9581 wxDC *arg1 = (wxDC *) 0 ;
9582 wxRect *arg2 = 0 ;
9583 wxRect temp2 ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self",(char *) "rect", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9592 {
9593 arg2 = &temp2;
9594 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9595 }
9596 {
9597 PyThreadState* __tstate = wxPyBeginAllowThreads();
9598 (arg1)->DrawRectangle((wxRect const &)*arg2);
9599
9600 wxPyEndAllowThreads(__tstate);
9601 if (PyErr_Occurred()) SWIG_fail;
9602 }
9603 Py_INCREF(Py_None); resultobj = Py_None;
9604 return resultobj;
9605 fail:
9606 return NULL;
9607}
9608
9609
9610static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9611 PyObject *resultobj;
9612 wxDC *arg1 = (wxDC *) 0 ;
9613 int arg2 ;
9614 int arg3 ;
9615 int arg4 ;
9616 int arg5 ;
9617 double arg6 ;
9618 PyObject * obj0 = 0 ;
9619 char *kwnames[] = {
9620 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9628
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 Py_INCREF(Py_None); resultobj = Py_None;
9633 return resultobj;
9634 fail:
9635 return NULL;
9636}
9637
9638
9639static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9640 PyObject *resultobj;
9641 wxDC *arg1 = (wxDC *) 0 ;
9642 wxPoint *arg2 = 0 ;
9643 wxSize *arg3 = 0 ;
9644 double arg4 ;
9645 wxPoint temp2 ;
9646 wxSize temp3 ;
9647 PyObject * obj0 = 0 ;
9648 PyObject * obj1 = 0 ;
9649 PyObject * obj2 = 0 ;
9650 char *kwnames[] = {
9651 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9652 };
9653
9654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9656 {
9657 arg2 = &temp2;
9658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9659 }
9660 {
9661 arg3 = &temp3;
9662 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9663 }
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 Py_INCREF(Py_None); resultobj = Py_None;
9672 return resultobj;
9673 fail:
9674 return NULL;
9675}
9676
9677
9678static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj;
9680 wxDC *arg1 = (wxDC *) 0 ;
9681 wxRect *arg2 = 0 ;
9682 double arg3 ;
9683 wxRect temp2 ;
9684 PyObject * obj0 = 0 ;
9685 PyObject * obj1 = 0 ;
9686 char *kwnames[] = {
9687 (char *) "self",(char *) "r",(char *) "radius", NULL
9688 };
9689
9690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9692 {
9693 arg2 = &temp2;
9694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9695 }
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 Py_INCREF(Py_None); resultobj = Py_None;
9704 return resultobj;
9705 fail:
9706 return NULL;
9707}
9708
9709
9710static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj;
9712 wxDC *arg1 = (wxDC *) 0 ;
9713 int arg2 ;
9714 int arg3 ;
9715 int arg4 ;
9716 PyObject * obj0 = 0 ;
9717 char *kwnames[] = {
9718 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9719 };
9720
9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 (arg1)->DrawCircle(arg2,arg3,arg4);
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 Py_INCREF(Py_None); resultobj = Py_None;
9731 return resultobj;
9732 fail:
9733 return NULL;
9734}
9735
9736
9737static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9738 PyObject *resultobj;
9739 wxDC *arg1 = (wxDC *) 0 ;
9740 wxPoint *arg2 = 0 ;
9741 int arg3 ;
9742 wxPoint temp2 ;
9743 PyObject * obj0 = 0 ;
9744 PyObject * obj1 = 0 ;
9745 char *kwnames[] = {
9746 (char *) "self",(char *) "pt",(char *) "radius", NULL
9747 };
9748
9749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9751 {
9752 arg2 = &temp2;
9753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9754 }
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
9757 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9758
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 Py_INCREF(Py_None); resultobj = Py_None;
9763 return resultobj;
9764 fail:
9765 return NULL;
9766}
9767
9768
9769static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj;
9771 wxDC *arg1 = (wxDC *) 0 ;
9772 int arg2 ;
9773 int arg3 ;
9774 int arg4 ;
9775 int arg5 ;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9786
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 Py_INCREF(Py_None); resultobj = Py_None;
9791 return resultobj;
9792 fail:
9793 return NULL;
9794}
9795
9796
9797static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj;
9799 wxDC *arg1 = (wxDC *) 0 ;
9800 wxPoint *arg2 = 0 ;
9801 wxSize *arg3 = 0 ;
9802 wxPoint temp2 ;
9803 wxSize temp3 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 PyObject * obj2 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self",(char *) "pt",(char *) "sz", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9813 {
9814 arg2 = &temp2;
9815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9816 }
9817 {
9818 arg3 = &temp3;
9819 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9820 }
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9824
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 Py_INCREF(Py_None); resultobj = Py_None;
9829 return resultobj;
9830 fail:
9831 return NULL;
9832}
9833
9834
9835static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxDC *arg1 = (wxDC *) 0 ;
9838 wxRect *arg2 = 0 ;
9839 wxRect temp2 ;
9840 PyObject * obj0 = 0 ;
9841 PyObject * obj1 = 0 ;
9842 char *kwnames[] = {
9843 (char *) "self",(char *) "rect", NULL
9844 };
9845
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9848 {
9849 arg2 = &temp2;
9850 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9851 }
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 (arg1)->DrawEllipse((wxRect const &)*arg2);
9855
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 Py_INCREF(Py_None); resultobj = Py_None;
9860 return resultobj;
9861 fail:
9862 return NULL;
9863}
9864
9865
9866static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj;
9868 wxDC *arg1 = (wxDC *) 0 ;
9869 wxIcon *arg2 = 0 ;
9870 int arg3 ;
9871 int arg4 ;
9872 PyObject * obj0 = 0 ;
9873 PyObject * obj1 = 0 ;
9874 char *kwnames[] = {
9875 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9876 };
9877
9878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9881 if (arg2 == NULL) {
9882 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9883 }
9884 {
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9887
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 Py_INCREF(Py_None); resultobj = Py_None;
9892 return resultobj;
9893 fail:
9894 return NULL;
9895}
9896
9897
9898static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9899 PyObject *resultobj;
9900 wxDC *arg1 = (wxDC *) 0 ;
9901 wxIcon *arg2 = 0 ;
9902 wxPoint *arg3 = 0 ;
9903 wxPoint temp3 ;
9904 PyObject * obj0 = 0 ;
9905 PyObject * obj1 = 0 ;
9906 PyObject * obj2 = 0 ;
9907 char *kwnames[] = {
9908 (char *) "self",(char *) "icon",(char *) "pt", NULL
9909 };
9910
9911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9913 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9914 if (arg2 == NULL) {
9915 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9916 }
9917 {
9918 arg3 = &temp3;
9919 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 Py_INCREF(Py_None); resultobj = Py_None;
9929 return resultobj;
9930 fail:
9931 return NULL;
9932}
9933
9934
9935static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj;
9937 wxDC *arg1 = (wxDC *) 0 ;
9938 wxBitmap *arg2 = 0 ;
9939 int arg3 ;
9940 int arg4 ;
9941 bool arg5 = (bool) False ;
9942 PyObject * obj0 = 0 ;
9943 PyObject * obj1 = 0 ;
9944 PyObject * obj4 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
9950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9952 if (arg2 == NULL) {
9953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9954 }
9955 if (obj4) {
9956 arg5 = PyInt_AsLong(obj4) ? true : false;
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 {
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
9962
9963 wxPyEndAllowThreads(__tstate);
9964 if (PyErr_Occurred()) SWIG_fail;
9965 }
9966 Py_INCREF(Py_None); resultobj = Py_None;
9967 return resultobj;
9968 fail:
9969 return NULL;
9970}
9971
9972
9973static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9974 PyObject *resultobj;
9975 wxDC *arg1 = (wxDC *) 0 ;
9976 wxBitmap *arg2 = 0 ;
9977 wxPoint *arg3 = 0 ;
9978 bool arg4 = (bool) False ;
9979 wxPoint temp3 ;
9980 PyObject * obj0 = 0 ;
9981 PyObject * obj1 = 0 ;
9982 PyObject * obj2 = 0 ;
9983 PyObject * obj3 = 0 ;
9984 char *kwnames[] = {
9985 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
9986 };
9987
9988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9990 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9991 if (arg2 == NULL) {
9992 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9993 }
9994 {
9995 arg3 = &temp3;
9996 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9997 }
9998 if (obj3) {
9999 arg4 = PyInt_AsLong(obj3) ? true : false;
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 {
10003 PyThreadState* __tstate = wxPyBeginAllowThreads();
10004 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10005
10006 wxPyEndAllowThreads(__tstate);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 }
10009 Py_INCREF(Py_None); resultobj = Py_None;
10010 return resultobj;
10011 fail:
10012 return NULL;
10013}
10014
10015
10016static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10017 PyObject *resultobj;
10018 wxDC *arg1 = (wxDC *) 0 ;
10019 wxString *arg2 = 0 ;
10020 int arg3 ;
10021 int arg4 ;
10022 bool temp2 = False ;
10023 PyObject * obj0 = 0 ;
10024 PyObject * obj1 = 0 ;
10025 char *kwnames[] = {
10026 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10027 };
10028
10029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10031 {
10032 arg2 = wxString_in_helper(obj1);
10033 if (arg2 == NULL) SWIG_fail;
10034 temp2 = True;
10035 }
10036 {
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10039
10040 wxPyEndAllowThreads(__tstate);
10041 if (PyErr_Occurred()) SWIG_fail;
10042 }
10043 Py_INCREF(Py_None); resultobj = Py_None;
10044 {
10045 if (temp2)
10046 delete arg2;
10047 }
10048 return resultobj;
10049 fail:
10050 {
10051 if (temp2)
10052 delete arg2;
10053 }
10054 return NULL;
10055}
10056
10057
10058static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxDC *arg1 = (wxDC *) 0 ;
10061 wxString *arg2 = 0 ;
10062 wxPoint *arg3 = 0 ;
10063 bool temp2 = False ;
10064 wxPoint temp3 ;
10065 PyObject * obj0 = 0 ;
10066 PyObject * obj1 = 0 ;
10067 PyObject * obj2 = 0 ;
10068 char *kwnames[] = {
10069 (char *) "self",(char *) "text",(char *) "pt", NULL
10070 };
10071
10072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10074 {
10075 arg2 = wxString_in_helper(obj1);
10076 if (arg2 == NULL) SWIG_fail;
10077 temp2 = True;
10078 }
10079 {
10080 arg3 = &temp3;
10081 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 Py_INCREF(Py_None); resultobj = Py_None;
10091 {
10092 if (temp2)
10093 delete arg2;
10094 }
10095 return resultobj;
10096 fail:
10097 {
10098 if (temp2)
10099 delete arg2;
10100 }
10101 return NULL;
10102}
10103
10104
10105static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj;
10107 wxDC *arg1 = (wxDC *) 0 ;
10108 wxString *arg2 = 0 ;
10109 int arg3 ;
10110 int arg4 ;
10111 double arg5 ;
10112 bool temp2 = False ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10121 {
10122 arg2 = wxString_in_helper(obj1);
10123 if (arg2 == NULL) SWIG_fail;
10124 temp2 = True;
10125 }
10126 {
10127 PyThreadState* __tstate = wxPyBeginAllowThreads();
10128 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10129
10130 wxPyEndAllowThreads(__tstate);
10131 if (PyErr_Occurred()) SWIG_fail;
10132 }
10133 Py_INCREF(Py_None); resultobj = Py_None;
10134 {
10135 if (temp2)
10136 delete arg2;
10137 }
10138 return resultobj;
10139 fail:
10140 {
10141 if (temp2)
10142 delete arg2;
10143 }
10144 return NULL;
10145}
10146
10147
10148static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10149 PyObject *resultobj;
10150 wxDC *arg1 = (wxDC *) 0 ;
10151 wxString *arg2 = 0 ;
10152 wxPoint *arg3 = 0 ;
10153 double arg4 ;
10154 bool temp2 = False ;
10155 wxPoint temp3 ;
10156 PyObject * obj0 = 0 ;
10157 PyObject * obj1 = 0 ;
10158 PyObject * obj2 = 0 ;
10159 char *kwnames[] = {
10160 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10161 };
10162
10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10165 {
10166 arg2 = wxString_in_helper(obj1);
10167 if (arg2 == NULL) SWIG_fail;
10168 temp2 = True;
10169 }
10170 {
10171 arg3 = &temp3;
10172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10173 }
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10177
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 Py_INCREF(Py_None); resultobj = Py_None;
10182 {
10183 if (temp2)
10184 delete arg2;
10185 }
10186 return resultobj;
10187 fail:
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return NULL;
10193}
10194
10195
10196static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj;
10198 wxDC *arg1 = (wxDC *) 0 ;
10199 int arg2 ;
10200 int arg3 ;
10201 int arg4 ;
10202 int arg5 ;
10203 wxDC *arg6 = (wxDC *) 0 ;
10204 int arg7 ;
10205 int arg8 ;
10206 int arg9 = (int) wxCOPY ;
10207 bool arg10 = (bool) False ;
10208 int arg11 = (int) -1 ;
10209 int arg12 = (int) -1 ;
10210 bool result;
10211 PyObject * obj0 = 0 ;
10212 PyObject * obj5 = 0 ;
10213 PyObject * obj9 = 0 ;
10214 char *kwnames[] = {
10215 (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
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10220 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10221 if (obj9) {
10222 arg10 = PyInt_AsLong(obj9) ? true : false;
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10228
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 resultobj = PyInt_FromLong((long)result);
10233 return resultobj;
10234 fail:
10235 return NULL;
10236}
10237
10238
10239static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10240 PyObject *resultobj;
10241 wxDC *arg1 = (wxDC *) 0 ;
10242 wxPoint *arg2 = 0 ;
10243 wxSize *arg3 = 0 ;
10244 wxDC *arg4 = (wxDC *) 0 ;
10245 wxPoint *arg5 = 0 ;
10246 int arg6 = (int) wxCOPY ;
10247 bool arg7 = (bool) False ;
10248 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10249 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10250 bool result;
10251 wxPoint temp2 ;
10252 wxSize temp3 ;
10253 wxPoint temp5 ;
10254 wxPoint temp8 ;
10255 PyObject * obj0 = 0 ;
10256 PyObject * obj1 = 0 ;
10257 PyObject * obj2 = 0 ;
10258 PyObject * obj3 = 0 ;
10259 PyObject * obj4 = 0 ;
10260 PyObject * obj6 = 0 ;
10261 PyObject * obj7 = 0 ;
10262 char *kwnames[] = {
10263 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10264 };
10265
10266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10268 {
10269 arg2 = &temp2;
10270 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10271 }
10272 {
10273 arg3 = &temp3;
10274 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10275 }
10276 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10277 {
10278 arg5 = &temp5;
10279 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10280 }
10281 if (obj6) {
10282 arg7 = PyInt_AsLong(obj6) ? true : false;
10283 if (PyErr_Occurred()) SWIG_fail;
10284 }
10285 if (obj7) {
10286 {
10287 arg8 = &temp8;
10288 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10289 }
10290 }
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 resultobj = PyInt_FromLong((long)result);
10299 return resultobj;
10300 fail:
10301 return NULL;
10302}
10303
10304
10305static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10306 PyObject *resultobj;
10307 wxDC *arg1 = (wxDC *) 0 ;
10308 int arg2 ;
10309 wxPoint *arg3 = (wxPoint *) 0 ;
10310 int arg4 = (int) 0 ;
10311 int arg5 = (int) 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 char *kwnames[] = {
10315 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10316 };
10317
10318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10320 {
10321 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10322 if (arg3 == NULL) SWIG_fail;
10323 }
10324 {
10325 PyThreadState* __tstate = wxPyBeginAllowThreads();
10326 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10327
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 Py_INCREF(Py_None); resultobj = Py_None;
10332 {
10333 if (arg3) delete [] arg3;
10334 }
10335 return resultobj;
10336 fail:
10337 {
10338 if (arg3) delete [] arg3;
10339 }
10340 return NULL;
10341}
10342
10343
10344static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10345 PyObject *resultobj;
10346 wxDC *arg1 = (wxDC *) 0 ;
10347 int arg2 ;
10348 wxPoint *arg3 = (wxPoint *) 0 ;
10349 int arg4 = (int) 0 ;
10350 int arg5 = (int) 0 ;
10351 int arg6 = (int) wxODDEVEN_RULE ;
10352 PyObject * obj0 = 0 ;
10353 PyObject * obj1 = 0 ;
10354 char *kwnames[] = {
10355 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10356 };
10357
10358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10360 {
10361 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10362 if (arg3 == NULL) SWIG_fail;
10363 }
10364 {
10365 PyThreadState* __tstate = wxPyBeginAllowThreads();
10366 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10367
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 Py_INCREF(Py_None); resultobj = Py_None;
10372 {
10373 if (arg3) delete [] arg3;
10374 }
10375 return resultobj;
10376 fail:
10377 {
10378 if (arg3) delete [] arg3;
10379 }
10380 return NULL;
10381}
10382
10383
10384static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxDC *arg1 = (wxDC *) 0 ;
10387 wxString *arg2 = 0 ;
10388 wxRect *arg3 = 0 ;
10389 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10390 int arg5 = (int) -1 ;
10391 bool temp2 = False ;
10392 wxRect temp3 ;
10393 PyObject * obj0 = 0 ;
10394 PyObject * obj1 = 0 ;
10395 PyObject * obj2 = 0 ;
10396 char *kwnames[] = {
10397 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10398 };
10399
10400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10402 {
10403 arg2 = wxString_in_helper(obj1);
10404 if (arg2 == NULL) SWIG_fail;
10405 temp2 = True;
10406 }
10407 {
10408 arg3 = &temp3;
10409 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10410 }
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 Py_INCREF(Py_None); resultobj = Py_None;
10419 {
10420 if (temp2)
10421 delete arg2;
10422 }
10423 return resultobj;
10424 fail:
10425 {
10426 if (temp2)
10427 delete arg2;
10428 }
10429 return NULL;
10430}
10431
10432
10433static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10434 PyObject *resultobj;
10435 wxDC *arg1 = (wxDC *) 0 ;
10436 wxString *arg2 = 0 ;
10437 wxBitmap *arg3 = 0 ;
10438 wxRect *arg4 = 0 ;
10439 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10440 int arg6 = (int) -1 ;
10441 wxRect result;
10442 bool temp2 = False ;
10443 wxRect temp4 ;
10444 PyObject * obj0 = 0 ;
10445 PyObject * obj1 = 0 ;
10446 PyObject * obj2 = 0 ;
10447 PyObject * obj3 = 0 ;
10448 char *kwnames[] = {
10449 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10450 };
10451
10452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10454 {
10455 arg2 = wxString_in_helper(obj1);
10456 if (arg2 == NULL) SWIG_fail;
10457 temp2 = True;
10458 }
10459 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10460 if (arg3 == NULL) {
10461 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10462 }
10463 {
10464 arg4 = &temp4;
10465 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10466 }
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 {
10475 wxRect * resultptr;
10476 resultptr = new wxRect((wxRect &) result);
10477 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10478 }
10479 {
10480 if (temp2)
10481 delete arg2;
10482 }
10483 return resultobj;
10484 fail:
10485 {
10486 if (temp2)
10487 delete arg2;
10488 }
10489 return NULL;
10490}
10491
10492
10493static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj;
10495 wxDC *arg1 = (wxDC *) 0 ;
10496 int arg2 ;
10497 wxPoint *arg3 = (wxPoint *) 0 ;
10498 PyObject * obj0 = 0 ;
10499 PyObject * obj1 = 0 ;
10500 char *kwnames[] = {
10501 (char *) "self",(char *) "points", NULL
10502 };
10503
10504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10506 {
10507 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10508 if (arg3 == NULL) SWIG_fail;
10509 }
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 (arg1)->DrawSpline(arg2,arg3);
10513
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 Py_INCREF(Py_None); resultobj = Py_None;
10518 {
10519 if (arg3) delete [] arg3;
10520 }
10521 return resultobj;
10522 fail:
10523 {
10524 if (arg3) delete [] arg3;
10525 }
10526 return NULL;
10527}
10528
10529
10530static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj;
10532 wxDC *arg1 = (wxDC *) 0 ;
10533 PyObject * obj0 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10540 {
10541 PyThreadState* __tstate = wxPyBeginAllowThreads();
10542 (arg1)->Clear();
10543
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 Py_INCREF(Py_None); resultobj = Py_None;
10548 return resultobj;
10549 fail:
10550 return NULL;
10551}
10552
10553
10554static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj;
10556 wxDC *arg1 = (wxDC *) 0 ;
10557 wxString *arg2 = 0 ;
10558 bool result;
10559 bool temp2 = False ;
10560 PyObject * obj0 = 0 ;
10561 PyObject * obj1 = 0 ;
10562 char *kwnames[] = {
10563 (char *) "self",(char *) "message", NULL
10564 };
10565
10566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10568 {
10569 arg2 = wxString_in_helper(obj1);
10570 if (arg2 == NULL) SWIG_fail;
10571 temp2 = True;
10572 }
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 resultobj = PyInt_FromLong((long)result);
10581 {
10582 if (temp2)
10583 delete arg2;
10584 }
10585 return resultobj;
10586 fail:
10587 {
10588 if (temp2)
10589 delete arg2;
10590 }
10591 return NULL;
10592}
10593
10594
10595static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj;
10597 wxDC *arg1 = (wxDC *) 0 ;
10598 PyObject * obj0 = 0 ;
10599 char *kwnames[] = {
10600 (char *) "self", NULL
10601 };
10602
10603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 (arg1)->EndDoc();
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 Py_INCREF(Py_None); resultobj = Py_None;
10613 return resultobj;
10614 fail:
10615 return NULL;
10616}
10617
10618
10619static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxDC *arg1 = (wxDC *) 0 ;
10622 PyObject * obj0 = 0 ;
10623 char *kwnames[] = {
10624 (char *) "self", NULL
10625 };
10626
10627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->StartPage();
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 Py_INCREF(Py_None); resultobj = Py_None;
10637 return resultobj;
10638 fail:
10639 return NULL;
10640}
10641
10642
10643static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj;
10645 wxDC *arg1 = (wxDC *) 0 ;
10646 PyObject * obj0 = 0 ;
10647 char *kwnames[] = {
10648 (char *) "self", NULL
10649 };
10650
10651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->EndPage();
10656
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 Py_INCREF(Py_None); resultobj = Py_None;
10661 return resultobj;
10662 fail:
10663 return NULL;
10664}
10665
10666
10667static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj;
10669 wxDC *arg1 = (wxDC *) 0 ;
10670 wxFont *arg2 = 0 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 char *kwnames[] = {
10674 (char *) "self",(char *) "font", NULL
10675 };
10676
10677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10679 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10680 if (arg2 == NULL) {
10681 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10682 }
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 (arg1)->SetFont((wxFont const &)*arg2);
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 Py_INCREF(Py_None); resultobj = Py_None;
10691 return resultobj;
10692 fail:
10693 return NULL;
10694}
10695
10696
10697static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj;
10699 wxDC *arg1 = (wxDC *) 0 ;
10700 wxPen *arg2 = 0 ;
10701 PyObject * obj0 = 0 ;
10702 PyObject * obj1 = 0 ;
10703 char *kwnames[] = {
10704 (char *) "self",(char *) "pen", NULL
10705 };
10706
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10709 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10710 if (arg2 == NULL) {
10711 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10712 }
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 (arg1)->SetPen((wxPen const &)*arg2);
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 Py_INCREF(Py_None); resultobj = Py_None;
10721 return resultobj;
10722 fail:
10723 return NULL;
10724}
10725
10726
10727static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj;
10729 wxDC *arg1 = (wxDC *) 0 ;
10730 wxBrush *arg2 = 0 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 char *kwnames[] = {
10734 (char *) "self",(char *) "brush", NULL
10735 };
10736
10737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10739 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10740 if (arg2 == NULL) {
10741 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 (arg1)->SetBrush((wxBrush const &)*arg2);
10746
10747 wxPyEndAllowThreads(__tstate);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 }
10750 Py_INCREF(Py_None); resultobj = Py_None;
10751 return resultobj;
10752 fail:
10753 return NULL;
10754}
10755
10756
10757static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10758 PyObject *resultobj;
10759 wxDC *arg1 = (wxDC *) 0 ;
10760 wxBrush *arg2 = 0 ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 char *kwnames[] = {
10764 (char *) "self",(char *) "brush", NULL
10765 };
10766
10767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10769 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10770 if (arg2 == NULL) {
10771 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10772 }
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 (arg1)->SetBackground((wxBrush const &)*arg2);
10776
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 Py_INCREF(Py_None); resultobj = Py_None;
10781 return resultobj;
10782 fail:
10783 return NULL;
10784}
10785
10786
10787static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj;
10789 wxDC *arg1 = (wxDC *) 0 ;
10790 int arg2 ;
10791 PyObject * obj0 = 0 ;
10792 char *kwnames[] = {
10793 (char *) "self",(char *) "mode", NULL
10794 };
10795
10796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 (arg1)->SetBackgroundMode(arg2);
10801
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 Py_INCREF(Py_None); resultobj = Py_None;
10806 return resultobj;
10807 fail:
10808 return NULL;
10809}
10810
10811
10812static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10813 PyObject *resultobj;
10814 wxDC *arg1 = (wxDC *) 0 ;
10815 wxPalette *arg2 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "self",(char *) "palette", NULL
10820 };
10821
10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10824 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10825 if (arg2 == NULL) {
10826 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10827 }
10828 {
10829 PyThreadState* __tstate = wxPyBeginAllowThreads();
10830 (arg1)->SetPalette((wxPalette const &)*arg2);
10831
10832 wxPyEndAllowThreads(__tstate);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 Py_INCREF(Py_None); resultobj = Py_None;
10836 return resultobj;
10837 fail:
10838 return NULL;
10839}
10840
10841
10842static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10843 PyObject *resultobj;
10844 wxDC *arg1 = (wxDC *) 0 ;
10845 int arg2 ;
10846 int arg3 ;
10847 int arg4 ;
10848 int arg5 ;
10849 PyObject * obj0 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 Py_INCREF(Py_None); resultobj = Py_None;
10864 return resultobj;
10865 fail:
10866 return NULL;
10867}
10868
10869
10870static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj;
10872 wxDC *arg1 = (wxDC *) 0 ;
10873 wxPoint *arg2 = 0 ;
10874 wxSize *arg3 = 0 ;
10875 wxPoint temp2 ;
10876 wxSize temp3 ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 PyObject * obj2 = 0 ;
10880 char *kwnames[] = {
10881 (char *) "self",(char *) "pt",(char *) "sz", NULL
10882 };
10883
10884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10886 {
10887 arg2 = &temp2;
10888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10889 }
10890 {
10891 arg3 = &temp3;
10892 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10893 }
10894 {
10895 PyThreadState* __tstate = wxPyBeginAllowThreads();
10896 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10897
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 Py_INCREF(Py_None); resultobj = Py_None;
10902 return resultobj;
10903 fail:
10904 return NULL;
10905}
10906
10907
10908static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject *resultobj;
10910 wxDC *arg1 = (wxDC *) 0 ;
10911 wxRect *arg2 = 0 ;
10912 wxRect temp2 ;
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
10915 char *kwnames[] = {
10916 (char *) "self",(char *) "rect", NULL
10917 };
10918
10919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10921 {
10922 arg2 = &temp2;
10923 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10924 }
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10928
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 Py_INCREF(Py_None); resultobj = Py_None;
10933 return resultobj;
10934 fail:
10935 return NULL;
10936}
10937
10938
10939static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10940 PyObject *resultobj;
10941 wxDC *arg1 = (wxDC *) 0 ;
10942 wxRegion *arg2 = 0 ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 char *kwnames[] = {
10946 (char *) "self",(char *) "region", NULL
10947 };
10948
10949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
10950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10952 if (arg2 == NULL) {
10953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10954 }
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
10958
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 Py_INCREF(Py_None); resultobj = Py_None;
10963 return resultobj;
10964 fail:
10965 return NULL;
10966}
10967
10968
10969static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj;
10971 wxDC *arg1 = (wxDC *) 0 ;
10972 PyObject * obj0 = 0 ;
10973 char *kwnames[] = {
10974 (char *) "self", NULL
10975 };
10976
10977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
10978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 (arg1)->DestroyClippingRegion();
10982
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 Py_INCREF(Py_None); resultobj = Py_None;
10987 return resultobj;
10988 fail:
10989 return NULL;
10990}
10991
10992
10993static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj;
10995 wxDC *arg1 = (wxDC *) 0 ;
10996 int *arg2 = (int *) 0 ;
10997 int *arg3 = (int *) 0 ;
10998 int *arg4 = (int *) 0 ;
10999 int *arg5 = (int *) 0 ;
11000 int temp2 ;
11001 int temp3 ;
11002 int temp4 ;
11003 int temp5 ;
11004 PyObject * obj0 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self", NULL
11007 };
11008
11009 arg2 = &temp2;
11010 arg3 = &temp3;
11011 arg4 = &temp4;
11012 arg5 = &temp5;
11013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11015 {
11016 PyThreadState* __tstate = wxPyBeginAllowThreads();
11017 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11018
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 Py_INCREF(Py_None); resultobj = Py_None;
11023 {
11024 PyObject *o = PyInt_FromLong((long) (*arg2));
11025 resultobj = t_output_helper(resultobj,o);
11026 }
11027 {
11028 PyObject *o = PyInt_FromLong((long) (*arg3));
11029 resultobj = t_output_helper(resultobj,o);
11030 }
11031 {
11032 PyObject *o = PyInt_FromLong((long) (*arg4));
11033 resultobj = t_output_helper(resultobj,o);
11034 }
11035 {
11036 PyObject *o = PyInt_FromLong((long) (*arg5));
11037 resultobj = t_output_helper(resultobj,o);
11038 }
11039 return resultobj;
11040 fail:
11041 return NULL;
11042}
11043
11044
11045static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11046 PyObject *resultobj;
11047 wxDC *arg1 = (wxDC *) 0 ;
11048 wxRect result;
11049 PyObject * obj0 = 0 ;
11050 char *kwnames[] = {
11051 (char *) "self", NULL
11052 };
11053
11054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = wxDC_GetClippingRect(arg1);
11059
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 }
11063 {
11064 wxRect * resultptr;
11065 resultptr = new wxRect((wxRect &) result);
11066 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11067 }
11068 return resultobj;
11069 fail:
11070 return NULL;
11071}
11072
11073
11074static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11075 PyObject *resultobj;
11076 wxDC *arg1 = (wxDC *) 0 ;
11077 int result;
11078 PyObject * obj0 = 0 ;
11079 char *kwnames[] = {
11080 (char *) "self", NULL
11081 };
11082
11083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (int)((wxDC const *)arg1)->GetCharHeight();
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 resultobj = PyInt_FromLong((long)result);
11093 return resultobj;
11094 fail:
11095 return NULL;
11096}
11097
11098
11099static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj;
11101 wxDC *arg1 = (wxDC *) 0 ;
11102 int result;
11103 PyObject * obj0 = 0 ;
11104 char *kwnames[] = {
11105 (char *) "self", NULL
11106 };
11107
11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (int)((wxDC const *)arg1)->GetCharWidth();
11113
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 resultobj = PyInt_FromLong((long)result);
11118 return resultobj;
11119 fail:
11120 return NULL;
11121}
11122
11123
11124static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject *resultobj;
11126 wxDC *arg1 = (wxDC *) 0 ;
11127 wxString *arg2 = 0 ;
11128 int *arg3 = (int *) 0 ;
11129 int *arg4 = (int *) 0 ;
11130 bool temp2 = False ;
11131 int temp3 ;
11132 int temp4 ;
11133 PyObject * obj0 = 0 ;
11134 PyObject * obj1 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self",(char *) "string", NULL
11137 };
11138
11139 arg3 = &temp3;
11140 arg4 = &temp4;
11141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11143 {
11144 arg2 = wxString_in_helper(obj1);
11145 if (arg2 == NULL) SWIG_fail;
11146 temp2 = True;
11147 }
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 Py_INCREF(Py_None); resultobj = Py_None;
11156 {
11157 PyObject *o = PyInt_FromLong((long) (*arg3));
11158 resultobj = t_output_helper(resultobj,o);
11159 }
11160 {
11161 PyObject *o = PyInt_FromLong((long) (*arg4));
11162 resultobj = t_output_helper(resultobj,o);
11163 }
11164 {
11165 if (temp2)
11166 delete arg2;
11167 }
11168 return resultobj;
11169 fail:
11170 {
11171 if (temp2)
11172 delete arg2;
11173 }
11174 return NULL;
11175}
11176
11177
11178static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11179 PyObject *resultobj;
11180 wxDC *arg1 = (wxDC *) 0 ;
11181 wxString *arg2 = 0 ;
11182 int *arg3 = (int *) 0 ;
11183 int *arg4 = (int *) 0 ;
11184 int *arg5 = (int *) 0 ;
11185 int *arg6 = (int *) 0 ;
11186 wxFont *arg7 = (wxFont *) NULL ;
11187 bool temp2 = False ;
11188 int temp3 ;
11189 int temp4 ;
11190 int temp5 ;
11191 int temp6 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 char *kwnames[] = {
11196 (char *) "self",(char *) "string",(char *) "font", NULL
11197 };
11198
11199 arg3 = &temp3;
11200 arg4 = &temp4;
11201 arg5 = &temp5;
11202 arg6 = &temp6;
11203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11205 {
11206 arg2 = wxString_in_helper(obj1);
11207 if (arg2 == NULL) SWIG_fail;
11208 temp2 = True;
11209 }
11210 if (obj2) {
11211 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11212 }
11213 {
11214 PyThreadState* __tstate = wxPyBeginAllowThreads();
11215 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11216
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 Py_INCREF(Py_None); resultobj = Py_None;
11221 {
11222 PyObject *o = PyInt_FromLong((long) (*arg3));
11223 resultobj = t_output_helper(resultobj,o);
11224 }
11225 {
11226 PyObject *o = PyInt_FromLong((long) (*arg4));
11227 resultobj = t_output_helper(resultobj,o);
11228 }
11229 {
11230 PyObject *o = PyInt_FromLong((long) (*arg5));
11231 resultobj = t_output_helper(resultobj,o);
11232 }
11233 {
11234 PyObject *o = PyInt_FromLong((long) (*arg6));
11235 resultobj = t_output_helper(resultobj,o);
11236 }
11237 {
11238 if (temp2)
11239 delete arg2;
11240 }
11241 return resultobj;
11242 fail:
11243 {
11244 if (temp2)
11245 delete arg2;
11246 }
11247 return NULL;
11248}
11249
11250
11251static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11252 PyObject *resultobj;
11253 wxDC *arg1 = (wxDC *) 0 ;
11254 wxString *arg2 = 0 ;
11255 int *arg3 = (int *) 0 ;
11256 int *arg4 = (int *) 0 ;
11257 int *arg5 = (int *) 0 ;
11258 wxFont *arg6 = (wxFont *) NULL ;
11259 bool temp2 = False ;
11260 int temp3 ;
11261 int temp4 ;
11262 int temp5 ;
11263 PyObject * obj0 = 0 ;
11264 PyObject * obj1 = 0 ;
11265 PyObject * obj2 = 0 ;
11266 char *kwnames[] = {
11267 (char *) "self",(char *) "text",(char *) "font", NULL
11268 };
11269
11270 arg3 = &temp3;
11271 arg4 = &temp4;
11272 arg5 = &temp5;
11273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11275 {
11276 arg2 = wxString_in_helper(obj1);
11277 if (arg2 == NULL) SWIG_fail;
11278 temp2 = True;
11279 }
11280 if (obj2) {
11281 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11282 }
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 Py_INCREF(Py_None); resultobj = Py_None;
11291 {
11292 PyObject *o = PyInt_FromLong((long) (*arg3));
11293 resultobj = t_output_helper(resultobj,o);
11294 }
11295 {
11296 PyObject *o = PyInt_FromLong((long) (*arg4));
11297 resultobj = t_output_helper(resultobj,o);
11298 }
11299 {
11300 PyObject *o = PyInt_FromLong((long) (*arg5));
11301 resultobj = t_output_helper(resultobj,o);
11302 }
11303 {
11304 if (temp2)
11305 delete arg2;
11306 }
11307 return resultobj;
11308 fail:
11309 {
11310 if (temp2)
11311 delete arg2;
11312 }
11313 return NULL;
11314}
11315
11316
11317static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxDC *arg1 = (wxDC *) 0 ;
11320 wxSize result;
11321 PyObject * obj0 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 result = (arg1)->GetSize();
11331
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 {
11336 wxSize * resultptr;
11337 resultptr = new wxSize((wxSize &) result);
11338 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11339 }
11340 return resultobj;
11341 fail:
11342 return NULL;
11343}
11344
11345
11346static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11347 PyObject *resultobj;
11348 wxDC *arg1 = (wxDC *) 0 ;
11349 int *arg2 = (int *) 0 ;
11350 int *arg3 = (int *) 0 ;
11351 int temp2 ;
11352 int temp3 ;
11353 PyObject * obj0 = 0 ;
11354 char *kwnames[] = {
11355 (char *) "self", NULL
11356 };
11357
11358 arg2 = &temp2;
11359 arg3 = &temp3;
11360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 (arg1)->GetSize(arg2,arg3);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 Py_INCREF(Py_None); resultobj = Py_None;
11370 {
11371 PyObject *o = PyInt_FromLong((long) (*arg2));
11372 resultobj = t_output_helper(resultobj,o);
11373 }
11374 {
11375 PyObject *o = PyInt_FromLong((long) (*arg3));
11376 resultobj = t_output_helper(resultobj,o);
11377 }
11378 return resultobj;
11379 fail:
11380 return NULL;
11381}
11382
11383
11384static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11385 PyObject *resultobj;
11386 wxDC *arg1 = (wxDC *) 0 ;
11387 wxSize result;
11388 PyObject * obj0 = 0 ;
11389 char *kwnames[] = {
11390 (char *) "self", NULL
11391 };
11392
11393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11395 {
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 result = ((wxDC const *)arg1)->GetSizeMM();
11398
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 {
11403 wxSize * resultptr;
11404 resultptr = new wxSize((wxSize &) result);
11405 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11406 }
11407 return resultobj;
11408 fail:
11409 return NULL;
11410}
11411
11412
11413static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11414 PyObject *resultobj;
11415 wxDC *arg1 = (wxDC *) 0 ;
11416 int *arg2 = (int *) 0 ;
11417 int *arg3 = (int *) 0 ;
11418 int temp2 ;
11419 int temp3 ;
11420 PyObject * obj0 = 0 ;
11421 char *kwnames[] = {
11422 (char *) "self", NULL
11423 };
11424
11425 arg2 = &temp2;
11426 arg3 = &temp3;
11427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11432
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 Py_INCREF(Py_None); resultobj = Py_None;
11437 {
11438 PyObject *o = PyInt_FromLong((long) (*arg2));
11439 resultobj = t_output_helper(resultobj,o);
11440 }
11441 {
11442 PyObject *o = PyInt_FromLong((long) (*arg3));
11443 resultobj = t_output_helper(resultobj,o);
11444 }
11445 return resultobj;
11446 fail:
11447 return NULL;
11448}
11449
11450
11451static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11452 PyObject *resultobj;
11453 wxDC *arg1 = (wxDC *) 0 ;
11454 int arg2 ;
11455 int result;
11456 PyObject * obj0 = 0 ;
11457 char *kwnames[] = {
11458 (char *) "self",(char *) "x", NULL
11459 };
11460
11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11463 {
11464 PyThreadState* __tstate = wxPyBeginAllowThreads();
11465 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11466
11467 wxPyEndAllowThreads(__tstate);
11468 if (PyErr_Occurred()) SWIG_fail;
11469 }
11470 resultobj = PyInt_FromLong((long)result);
11471 return resultobj;
11472 fail:
11473 return NULL;
11474}
11475
11476
11477static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11478 PyObject *resultobj;
11479 wxDC *arg1 = (wxDC *) 0 ;
11480 int arg2 ;
11481 int result;
11482 PyObject * obj0 = 0 ;
11483 char *kwnames[] = {
11484 (char *) "self",(char *) "y", NULL
11485 };
11486
11487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11489 {
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11492
11493 wxPyEndAllowThreads(__tstate);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 resultobj = PyInt_FromLong((long)result);
11497 return resultobj;
11498 fail:
11499 return NULL;
11500}
11501
11502
11503static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj;
11505 wxDC *arg1 = (wxDC *) 0 ;
11506 int arg2 ;
11507 int result;
11508 PyObject * obj0 = 0 ;
11509 char *kwnames[] = {
11510 (char *) "self",(char *) "x", NULL
11511 };
11512
11513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11518
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 resultobj = PyInt_FromLong((long)result);
11523 return resultobj;
11524 fail:
11525 return NULL;
11526}
11527
11528
11529static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11530 PyObject *resultobj;
11531 wxDC *arg1 = (wxDC *) 0 ;
11532 int arg2 ;
11533 int result;
11534 PyObject * obj0 = 0 ;
11535 char *kwnames[] = {
11536 (char *) "self",(char *) "y", NULL
11537 };
11538
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11541 {
11542 PyThreadState* __tstate = wxPyBeginAllowThreads();
11543 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11544
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 resultobj = PyInt_FromLong((long)result);
11549 return resultobj;
11550 fail:
11551 return NULL;
11552}
11553
11554
11555static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11556 PyObject *resultobj;
11557 wxDC *arg1 = (wxDC *) 0 ;
11558 int arg2 ;
11559 int result;
11560 PyObject * obj0 = 0 ;
11561 char *kwnames[] = {
11562 (char *) "self",(char *) "x", NULL
11563 };
11564
11565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11567 {
11568 PyThreadState* __tstate = wxPyBeginAllowThreads();
11569 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11570
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 resultobj = PyInt_FromLong((long)result);
11575 return resultobj;
11576 fail:
11577 return NULL;
11578}
11579
11580
11581static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11582 PyObject *resultobj;
11583 wxDC *arg1 = (wxDC *) 0 ;
11584 int arg2 ;
11585 int result;
11586 PyObject * obj0 = 0 ;
11587 char *kwnames[] = {
11588 (char *) "self",(char *) "y", NULL
11589 };
11590
11591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11593 {
11594 PyThreadState* __tstate = wxPyBeginAllowThreads();
11595 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11596
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 resultobj = PyInt_FromLong((long)result);
11601 return resultobj;
11602 fail:
11603 return NULL;
11604}
11605
11606
11607static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxDC *arg1 = (wxDC *) 0 ;
11610 int arg2 ;
11611 int result;
11612 PyObject * obj0 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self",(char *) "x", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11622
11623 wxPyEndAllowThreads(__tstate);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 }
11626 resultobj = PyInt_FromLong((long)result);
11627 return resultobj;
11628 fail:
11629 return NULL;
11630}
11631
11632
11633static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxDC *arg1 = (wxDC *) 0 ;
11636 int arg2 ;
11637 int result;
11638 PyObject * obj0 = 0 ;
11639 char *kwnames[] = {
11640 (char *) "self",(char *) "y", NULL
11641 };
11642
11643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11645 {
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11648
11649 wxPyEndAllowThreads(__tstate);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 resultobj = PyInt_FromLong((long)result);
11653 return resultobj;
11654 fail:
11655 return NULL;
11656}
11657
11658
11659static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11660 PyObject *resultobj;
11661 wxDC *arg1 = (wxDC *) 0 ;
11662 bool result;
11663 PyObject * obj0 = 0 ;
11664 char *kwnames[] = {
11665 (char *) "self", NULL
11666 };
11667
11668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11673
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 resultobj = PyInt_FromLong((long)result);
11678 return resultobj;
11679 fail:
11680 return NULL;
11681}
11682
11683
11684static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11685 PyObject *resultobj;
11686 wxDC *arg1 = (wxDC *) 0 ;
11687 bool result;
11688 PyObject * obj0 = 0 ;
11689 char *kwnames[] = {
11690 (char *) "self", NULL
11691 };
11692
11693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11698
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = PyInt_FromLong((long)result);
11703 return resultobj;
11704 fail:
11705 return NULL;
11706}
11707
11708
11709static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11710 PyObject *resultobj;
11711 wxDC *arg1 = (wxDC *) 0 ;
11712 int result;
11713 PyObject * obj0 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "self", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = (int)((wxDC const *)arg1)->GetDepth();
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = PyInt_FromLong((long)result);
11728 return resultobj;
11729 fail:
11730 return NULL;
11731}
11732
11733
11734static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11735 PyObject *resultobj;
11736 wxDC *arg1 = (wxDC *) 0 ;
11737 wxSize result;
11738 PyObject * obj0 = 0 ;
11739 char *kwnames[] = {
11740 (char *) "self", NULL
11741 };
11742
11743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11745 {
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 result = ((wxDC const *)arg1)->GetPPI();
11748
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 {
11753 wxSize * resultptr;
11754 resultptr = new wxSize((wxSize &) result);
11755 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11756 }
11757 return resultobj;
11758 fail:
11759 return NULL;
11760}
11761
11762
11763static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11764 PyObject *resultobj;
11765 wxDC *arg1 = (wxDC *) 0 ;
11766 bool result;
11767 PyObject * obj0 = 0 ;
11768 char *kwnames[] = {
11769 (char *) "self", NULL
11770 };
11771
11772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 result = (bool)((wxDC const *)arg1)->Ok();
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 resultobj = PyInt_FromLong((long)result);
11782 return resultobj;
11783 fail:
11784 return NULL;
11785}
11786
11787
11788static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxDC *arg1 = (wxDC *) 0 ;
11791 int result;
11792 PyObject * obj0 = 0 ;
11793 char *kwnames[] = {
11794 (char *) "self", NULL
11795 };
11796
11797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11799 {
11800 PyThreadState* __tstate = wxPyBeginAllowThreads();
11801 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11802
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 resultobj = PyInt_FromLong((long)result);
11807 return resultobj;
11808 fail:
11809 return NULL;
11810}
11811
11812
11813static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj;
11815 wxDC *arg1 = (wxDC *) 0 ;
11816 wxBrush *result;
11817 PyObject * obj0 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "self", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 {
11827 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11828 result = (wxBrush *) &_result_ref;
11829 }
11830
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11835 return resultobj;
11836 fail:
11837 return NULL;
11838}
11839
11840
11841static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj;
11843 wxDC *arg1 = (wxDC *) 0 ;
11844 wxBrush *result;
11845 PyObject * obj0 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "self", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11852 {
11853 PyThreadState* __tstate = wxPyBeginAllowThreads();
11854 {
11855 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11856 result = (wxBrush *) &_result_ref;
11857 }
11858
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11863 return resultobj;
11864 fail:
11865 return NULL;
11866}
11867
11868
11869static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj;
11871 wxDC *arg1 = (wxDC *) 0 ;
11872 wxFont *result;
11873 PyObject * obj0 = 0 ;
11874 char *kwnames[] = {
11875 (char *) "self", NULL
11876 };
11877
11878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 {
11883 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11884 result = (wxFont *) &_result_ref;
11885 }
11886
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11891 return resultobj;
11892 fail:
11893 return NULL;
11894}
11895
11896
11897static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj;
11899 wxDC *arg1 = (wxDC *) 0 ;
11900 wxPen *result;
11901 PyObject * obj0 = 0 ;
11902 char *kwnames[] = {
11903 (char *) "self", NULL
11904 };
11905
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11908 {
11909 PyThreadState* __tstate = wxPyBeginAllowThreads();
11910 {
11911 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11912 result = (wxPen *) &_result_ref;
11913 }
11914
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11919 return resultobj;
11920 fail:
11921 return NULL;
11922}
11923
11924
11925static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11926 PyObject *resultobj;
11927 wxDC *arg1 = (wxDC *) 0 ;
11928 wxColour *result;
11929 PyObject * obj0 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 {
11939 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11940 result = (wxColour *) &_result_ref;
11941 }
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11947 return resultobj;
11948 fail:
11949 return NULL;
11950}
11951
11952
11953static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxDC *arg1 = (wxDC *) 0 ;
11956 wxColour *result;
11957 PyObject * obj0 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 {
11967 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
11968 result = (wxColour *) &_result_ref;
11969 }
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11975 return resultobj;
11976 fail:
11977 return NULL;
11978}
11979
11980
11981static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj;
11983 wxDC *arg1 = (wxDC *) 0 ;
11984 wxColour *arg2 = 0 ;
11985 wxColour temp2 ;
11986 PyObject * obj0 = 0 ;
11987 PyObject * obj1 = 0 ;
11988 char *kwnames[] = {
11989 (char *) "self",(char *) "colour", NULL
11990 };
11991
11992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
11993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11994 {
11995 arg2 = &temp2;
11996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11997 }
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 (arg1)->SetTextForeground((wxColour const &)*arg2);
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 Py_INCREF(Py_None); resultobj = Py_None;
12006 return resultobj;
12007 fail:
12008 return NULL;
12009}
12010
12011
12012static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject *resultobj;
12014 wxDC *arg1 = (wxDC *) 0 ;
12015 wxColour *arg2 = 0 ;
12016 wxColour temp2 ;
12017 PyObject * obj0 = 0 ;
12018 PyObject * obj1 = 0 ;
12019 char *kwnames[] = {
12020 (char *) "self",(char *) "colour", NULL
12021 };
12022
12023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12025 {
12026 arg2 = &temp2;
12027 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12028 }
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 (arg1)->SetTextBackground((wxColour const &)*arg2);
12032
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 Py_INCREF(Py_None); resultobj = Py_None;
12037 return resultobj;
12038 fail:
12039 return NULL;
12040}
12041
12042
12043static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj;
12045 wxDC *arg1 = (wxDC *) 0 ;
12046 int result;
12047 PyObject * obj0 = 0 ;
12048 char *kwnames[] = {
12049 (char *) "self", NULL
12050 };
12051
12052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 result = (int)((wxDC const *)arg1)->GetMapMode();
12057
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 resultobj = PyInt_FromLong((long)result);
12062 return resultobj;
12063 fail:
12064 return NULL;
12065}
12066
12067
12068static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxDC *arg1 = (wxDC *) 0 ;
12071 int arg2 ;
12072 PyObject * obj0 = 0 ;
12073 char *kwnames[] = {
12074 (char *) "self",(char *) "mode", NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetMapMode(arg2);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090}
12091
12092
12093static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 double *arg2 = (double *) 0 ;
12097 double *arg3 = (double *) 0 ;
12098 double temp2 ;
12099 double temp3 ;
12100 PyObject * obj0 = 0 ;
12101 char *kwnames[] = {
12102 (char *) "self", NULL
12103 };
12104
12105 arg2 = &temp2;
12106 arg3 = &temp3;
12107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12112
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 Py_INCREF(Py_None); resultobj = Py_None;
12117 {
12118 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12119 resultobj = t_output_helper(resultobj,o);
12120 }
12121 {
12122 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12123 resultobj = t_output_helper(resultobj,o);
12124 }
12125 return resultobj;
12126 fail:
12127 return NULL;
12128}
12129
12130
12131static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj;
12133 wxDC *arg1 = (wxDC *) 0 ;
12134 double arg2 ;
12135 double arg3 ;
12136 PyObject * obj0 = 0 ;
12137 char *kwnames[] = {
12138 (char *) "self",(char *) "x",(char *) "y", NULL
12139 };
12140
12141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->SetUserScale(arg2,arg3);
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 Py_INCREF(Py_None); resultobj = Py_None;
12151 return resultobj;
12152 fail:
12153 return NULL;
12154}
12155
12156
12157static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxDC *arg1 = (wxDC *) 0 ;
12160 double *arg2 = (double *) 0 ;
12161 double *arg3 = (double *) 0 ;
12162 double temp2 ;
12163 double temp3 ;
12164 PyObject * obj0 = 0 ;
12165 char *kwnames[] = {
12166 (char *) "self", NULL
12167 };
12168
12169 arg2 = &temp2;
12170 arg3 = &temp3;
12171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 (arg1)->GetLogicalScale(arg2,arg3);
12176
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 Py_INCREF(Py_None); resultobj = Py_None;
12181 {
12182 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12183 resultobj = t_output_helper(resultobj,o);
12184 }
12185 {
12186 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12187 resultobj = t_output_helper(resultobj,o);
12188 }
12189 return resultobj;
12190 fail:
12191 return NULL;
12192}
12193
12194
12195static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12196 PyObject *resultobj;
12197 wxDC *arg1 = (wxDC *) 0 ;
12198 double arg2 ;
12199 double arg3 ;
12200 PyObject * obj0 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self",(char *) "x",(char *) "y", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 (arg1)->SetLogicalScale(arg2,arg3);
12210
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 Py_INCREF(Py_None); resultobj = Py_None;
12215 return resultobj;
12216 fail:
12217 return NULL;
12218}
12219
12220
12221static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12222 PyObject *resultobj;
12223 wxDC *arg1 = (wxDC *) 0 ;
12224 wxPoint result;
12225 PyObject * obj0 = 0 ;
12226 char *kwnames[] = {
12227 (char *) "self", NULL
12228 };
12229
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12235
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
12239 {
12240 wxPoint * resultptr;
12241 resultptr = new wxPoint((wxPoint &) result);
12242 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12243 }
12244 return resultobj;
12245 fail:
12246 return NULL;
12247}
12248
12249
12250static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12251 PyObject *resultobj;
12252 wxDC *arg1 = (wxDC *) 0 ;
12253 int *arg2 = (int *) 0 ;
12254 int *arg3 = (int *) 0 ;
12255 int temp2 ;
12256 int temp3 ;
12257 PyObject * obj0 = 0 ;
12258 char *kwnames[] = {
12259 (char *) "self", NULL
12260 };
12261
12262 arg2 = &temp2;
12263 arg3 = &temp3;
12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12266 {
12267 PyThreadState* __tstate = wxPyBeginAllowThreads();
12268 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12269
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 Py_INCREF(Py_None); resultobj = Py_None;
12274 {
12275 PyObject *o = PyInt_FromLong((long) (*arg2));
12276 resultobj = t_output_helper(resultobj,o);
12277 }
12278 {
12279 PyObject *o = PyInt_FromLong((long) (*arg3));
12280 resultobj = t_output_helper(resultobj,o);
12281 }
12282 return resultobj;
12283 fail:
12284 return NULL;
12285}
12286
12287
12288static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12289 PyObject *resultobj;
12290 wxDC *arg1 = (wxDC *) 0 ;
12291 int arg2 ;
12292 int arg3 ;
12293 PyObject * obj0 = 0 ;
12294 char *kwnames[] = {
12295 (char *) "self",(char *) "x",(char *) "y", NULL
12296 };
12297
12298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->SetLogicalOrigin(arg2,arg3);
12303
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 Py_INCREF(Py_None); resultobj = Py_None;
12308 return resultobj;
12309 fail:
12310 return NULL;
12311}
12312
12313
12314static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj;
12316 wxDC *arg1 = (wxDC *) 0 ;
12317 wxPoint result;
12318 PyObject * obj0 = 0 ;
12319 char *kwnames[] = {
12320 (char *) "self", NULL
12321 };
12322
12323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 {
12333 wxPoint * resultptr;
12334 resultptr = new wxPoint((wxPoint &) result);
12335 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12336 }
12337 return resultobj;
12338 fail:
12339 return NULL;
12340}
12341
12342
12343static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12344 PyObject *resultobj;
12345 wxDC *arg1 = (wxDC *) 0 ;
12346 int *arg2 = (int *) 0 ;
12347 int *arg3 = (int *) 0 ;
12348 int temp2 ;
12349 int temp3 ;
12350 PyObject * obj0 = 0 ;
12351 char *kwnames[] = {
12352 (char *) "self", NULL
12353 };
12354
12355 arg2 = &temp2;
12356 arg3 = &temp3;
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 Py_INCREF(Py_None); resultobj = Py_None;
12367 {
12368 PyObject *o = PyInt_FromLong((long) (*arg2));
12369 resultobj = t_output_helper(resultobj,o);
12370 }
12371 {
12372 PyObject *o = PyInt_FromLong((long) (*arg3));
12373 resultobj = t_output_helper(resultobj,o);
12374 }
12375 return resultobj;
12376 fail:
12377 return NULL;
12378}
12379
12380
12381static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12382 PyObject *resultobj;
12383 wxDC *arg1 = (wxDC *) 0 ;
12384 int arg2 ;
12385 int arg3 ;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "self",(char *) "x",(char *) "y", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 (arg1)->SetDeviceOrigin(arg2,arg3);
12396
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 Py_INCREF(Py_None); resultobj = Py_None;
12401 return resultobj;
12402 fail:
12403 return NULL;
12404}
12405
12406
12407static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj;
12409 wxDC *arg1 = (wxDC *) 0 ;
12410 bool arg2 ;
12411 bool arg3 ;
12412 PyObject * obj0 = 0 ;
12413 PyObject * obj1 = 0 ;
12414 PyObject * obj2 = 0 ;
12415 char *kwnames[] = {
12416 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12417 };
12418
12419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12421 arg2 = PyInt_AsLong(obj1) ? true : false;
12422 if (PyErr_Occurred()) SWIG_fail;
12423 arg3 = PyInt_AsLong(obj2) ? true : false;
12424 if (PyErr_Occurred()) SWIG_fail;
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->SetAxisOrientation(arg2,arg3);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 Py_INCREF(Py_None); resultobj = Py_None;
12433 return resultobj;
12434 fail:
12435 return NULL;
12436}
12437
12438
12439static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxDC *arg1 = (wxDC *) 0 ;
12442 int result;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12453
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 resultobj = PyInt_FromLong((long)result);
12458 return resultobj;
12459 fail:
12460 return NULL;
12461}
12462
12463
12464static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12465 PyObject *resultobj;
12466 wxDC *arg1 = (wxDC *) 0 ;
12467 int arg2 ;
12468 PyObject * obj0 = 0 ;
12469 char *kwnames[] = {
12470 (char *) "self",(char *) "function", NULL
12471 };
12472
12473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetLogicalFunction(arg2);
12478
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 Py_INCREF(Py_None); resultobj = Py_None;
12483 return resultobj;
12484 fail:
12485 return NULL;
12486}
12487
12488
12489static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj;
12491 wxDC *arg1 = (wxDC *) 0 ;
12492 bool arg2 ;
12493 PyObject * obj0 = 0 ;
12494 PyObject * obj1 = 0 ;
12495 char *kwnames[] = {
12496 (char *) "self",(char *) "opt", NULL
12497 };
12498
12499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12501 arg2 = PyInt_AsLong(obj1) ? true : false;
12502 if (PyErr_Occurred()) SWIG_fail;
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 (arg1)->SetOptimization(arg2);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 Py_INCREF(Py_None); resultobj = Py_None;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514}
12515
12516
12517static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxDC *arg1 = (wxDC *) 0 ;
12520 bool result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 result = (bool)(arg1)->GetOptimization();
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 resultobj = PyInt_FromLong((long)result);
12536 return resultobj;
12537 fail:
12538 return NULL;
12539}
12540
12541
12542static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12543 PyObject *resultobj;
12544 wxDC *arg1 = (wxDC *) 0 ;
12545 int arg2 ;
12546 int arg3 ;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "self",(char *) "x",(char *) "y", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12554 {
12555 PyThreadState* __tstate = wxPyBeginAllowThreads();
12556 (arg1)->CalcBoundingBox(arg2,arg3);
12557
12558 wxPyEndAllowThreads(__tstate);
12559 if (PyErr_Occurred()) SWIG_fail;
12560 }
12561 Py_INCREF(Py_None); resultobj = Py_None;
12562 return resultobj;
12563 fail:
12564 return NULL;
12565}
12566
12567
12568static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12569 PyObject *resultobj;
12570 wxDC *arg1 = (wxDC *) 0 ;
12571 PyObject * obj0 = 0 ;
12572 char *kwnames[] = {
12573 (char *) "self", NULL
12574 };
12575
12576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12578 {
12579 PyThreadState* __tstate = wxPyBeginAllowThreads();
12580 (arg1)->ResetBoundingBox();
12581
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 Py_INCREF(Py_None); resultobj = Py_None;
12586 return resultobj;
12587 fail:
12588 return NULL;
12589}
12590
12591
12592static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12593 PyObject *resultobj;
12594 wxDC *arg1 = (wxDC *) 0 ;
12595 int result;
12596 PyObject * obj0 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self", NULL
12599 };
12600
12601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 result = (int)((wxDC const *)arg1)->MinX();
12606
12607 wxPyEndAllowThreads(__tstate);
12608 if (PyErr_Occurred()) SWIG_fail;
12609 }
12610 resultobj = PyInt_FromLong((long)result);
12611 return resultobj;
12612 fail:
12613 return NULL;
12614}
12615
12616
12617static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12618 PyObject *resultobj;
12619 wxDC *arg1 = (wxDC *) 0 ;
12620 int result;
12621 PyObject * obj0 = 0 ;
12622 char *kwnames[] = {
12623 (char *) "self", NULL
12624 };
12625
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (int)((wxDC const *)arg1)->MaxX();
12631
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = PyInt_FromLong((long)result);
12636 return resultobj;
12637 fail:
12638 return NULL;
12639}
12640
12641
12642static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj;
12644 wxDC *arg1 = (wxDC *) 0 ;
12645 int result;
12646 PyObject * obj0 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = (int)((wxDC const *)arg1)->MinY();
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 resultobj = PyInt_FromLong((long)result);
12661 return resultobj;
12662 fail:
12663 return NULL;
12664}
12665
12666
12667static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj;
12669 wxDC *arg1 = (wxDC *) 0 ;
12670 int result;
12671 PyObject * obj0 = 0 ;
12672 char *kwnames[] = {
12673 (char *) "self", NULL
12674 };
12675
12676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12678 {
12679 PyThreadState* __tstate = wxPyBeginAllowThreads();
12680 result = (int)((wxDC const *)arg1)->MaxY();
12681
12682 wxPyEndAllowThreads(__tstate);
12683 if (PyErr_Occurred()) SWIG_fail;
12684 }
12685 resultobj = PyInt_FromLong((long)result);
12686 return resultobj;
12687 fail:
12688 return NULL;
12689}
12690
12691
12692static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12693 PyObject *resultobj;
12694 wxDC *arg1 = (wxDC *) 0 ;
12695 int *arg2 = (int *) 0 ;
12696 int *arg3 = (int *) 0 ;
12697 int *arg4 = (int *) 0 ;
12698 int *arg5 = (int *) 0 ;
12699 int temp2 ;
12700 int temp3 ;
12701 int temp4 ;
12702 int temp5 ;
12703 PyObject * obj0 = 0 ;
12704 char *kwnames[] = {
12705 (char *) "self", NULL
12706 };
12707
12708 arg2 = &temp2;
12709 arg3 = &temp3;
12710 arg4 = &temp4;
12711 arg5 = &temp5;
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 Py_INCREF(Py_None); resultobj = Py_None;
12722 {
12723 PyObject *o = PyInt_FromLong((long) (*arg2));
12724 resultobj = t_output_helper(resultobj,o);
12725 }
12726 {
12727 PyObject *o = PyInt_FromLong((long) (*arg3));
12728 resultobj = t_output_helper(resultobj,o);
12729 }
12730 {
12731 PyObject *o = PyInt_FromLong((long) (*arg4));
12732 resultobj = t_output_helper(resultobj,o);
12733 }
12734 {
12735 PyObject *o = PyInt_FromLong((long) (*arg5));
12736 resultobj = t_output_helper(resultobj,o);
12737 }
12738 return resultobj;
12739 fail:
12740 return NULL;
12741}
12742
12743
12744static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 PyObject *arg2 = (PyObject *) 0 ;
12748 PyObject *arg3 = (PyObject *) 0 ;
12749 PyObject *arg4 = (PyObject *) 0 ;
12750 PyObject *result;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 PyObject * obj2 = 0 ;
12754 PyObject * obj3 = 0 ;
12755 char *kwnames[] = {
12756 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12757 };
12758
12759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12761 arg2 = obj1;
12762 arg3 = obj2;
12763 arg4 = obj3;
12764 {
12765 PyThreadState* __tstate = wxPyBeginAllowThreads();
12766 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12767
12768 wxPyEndAllowThreads(__tstate);
12769 if (PyErr_Occurred()) SWIG_fail;
12770 }
12771 resultobj = result;
12772 return resultobj;
12773 fail:
12774 return NULL;
12775}
12776
12777
12778static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12779 PyObject *resultobj;
12780 wxDC *arg1 = (wxDC *) 0 ;
12781 PyObject *arg2 = (PyObject *) 0 ;
12782 PyObject *arg3 = (PyObject *) 0 ;
12783 PyObject *arg4 = (PyObject *) 0 ;
12784 PyObject *result;
12785 PyObject * obj0 = 0 ;
12786 PyObject * obj1 = 0 ;
12787 PyObject * obj2 = 0 ;
12788 PyObject * obj3 = 0 ;
12789 char *kwnames[] = {
12790 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12791 };
12792
12793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12795 arg2 = obj1;
12796 arg3 = obj2;
12797 arg4 = obj3;
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = result;
12806 return resultobj;
12807 fail:
12808 return NULL;
12809}
12810
12811
12812static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxDC *arg1 = (wxDC *) 0 ;
12815 PyObject *arg2 = (PyObject *) 0 ;
12816 PyObject *arg3 = (PyObject *) 0 ;
12817 PyObject *arg4 = (PyObject *) 0 ;
12818 PyObject *result;
12819 PyObject * obj0 = 0 ;
12820 PyObject * obj1 = 0 ;
12821 PyObject * obj2 = 0 ;
12822 PyObject * obj3 = 0 ;
12823 char *kwnames[] = {
12824 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12825 };
12826
12827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12829 arg2 = obj1;
12830 arg3 = obj2;
12831 arg4 = obj3;
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12835
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 resultobj = result;
12840 return resultobj;
12841 fail:
12842 return NULL;
12843}
12844
12845
12846static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12847 PyObject *resultobj;
12848 wxDC *arg1 = (wxDC *) 0 ;
12849 PyObject *arg2 = (PyObject *) 0 ;
12850 PyObject *arg3 = (PyObject *) 0 ;
12851 PyObject *arg4 = (PyObject *) 0 ;
12852 PyObject *result;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 PyObject * obj2 = 0 ;
12856 PyObject * obj3 = 0 ;
12857 char *kwnames[] = {
12858 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12859 };
12860
12861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12863 arg2 = obj1;
12864 arg3 = obj2;
12865 arg4 = obj3;
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12869
12870 wxPyEndAllowThreads(__tstate);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
12873 resultobj = result;
12874 return resultobj;
12875 fail:
12876 return NULL;
12877}
12878
12879
12880static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj;
12882 wxDC *arg1 = (wxDC *) 0 ;
12883 PyObject *arg2 = (PyObject *) 0 ;
12884 PyObject *arg3 = (PyObject *) 0 ;
12885 PyObject *arg4 = (PyObject *) 0 ;
12886 PyObject *result;
12887 PyObject * obj0 = 0 ;
12888 PyObject * obj1 = 0 ;
12889 PyObject * obj2 = 0 ;
12890 PyObject * obj3 = 0 ;
12891 char *kwnames[] = {
12892 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12893 };
12894
12895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12897 arg2 = obj1;
12898 arg3 = obj2;
12899 arg4 = obj3;
12900 {
12901 PyThreadState* __tstate = wxPyBeginAllowThreads();
12902 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12903
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 resultobj = result;
12908 return resultobj;
12909 fail:
12910 return NULL;
12911}
12912
12913
12914static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj;
12916 wxDC *arg1 = (wxDC *) 0 ;
12917 PyObject *arg2 = (PyObject *) 0 ;
12918 PyObject *arg3 = (PyObject *) 0 ;
12919 PyObject *arg4 = (PyObject *) 0 ;
12920 PyObject *arg5 = (PyObject *) 0 ;
12921 PyObject *result;
12922 PyObject * obj0 = 0 ;
12923 PyObject * obj1 = 0 ;
12924 PyObject * obj2 = 0 ;
12925 PyObject * obj3 = 0 ;
12926 PyObject * obj4 = 0 ;
12927 char *kwnames[] = {
12928 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12929 };
12930
12931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12933 arg2 = obj1;
12934 arg3 = obj2;
12935 arg4 = obj3;
12936 arg5 = obj4;
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = result;
12945 return resultobj;
12946 fail:
12947 return NULL;
12948}
12949
12950
12951static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
12952 PyObject *obj;
12953 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12954 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
12955 Py_INCREF(obj);
12956 return Py_BuildValue((char *)"");
12957}
12958static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12959 PyObject *resultobj;
12960 wxMemoryDC *result;
12961 char *kwnames[] = {
12962 NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
12966 {
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 result = (wxMemoryDC *)new wxMemoryDC();
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12974 return resultobj;
12975 fail:
12976 return NULL;
12977}
12978
12979
12980static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj;
12982 wxDC *arg1 = (wxDC *) 0 ;
12983 wxMemoryDC *result;
12984 PyObject * obj0 = 0 ;
12985 char *kwnames[] = {
12986 (char *) "oldDC", NULL
12987 };
12988
12989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
12990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (wxMemoryDC *)new wxMemoryDC(arg1);
12994
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12999 return resultobj;
13000 fail:
13001 return NULL;
13002}
13003
13004
13005static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj;
13007 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13008 wxBitmap *arg2 = 0 ;
13009 PyObject * obj0 = 0 ;
13010 PyObject * obj1 = 0 ;
13011 char *kwnames[] = {
13012 (char *) "self",(char *) "bitmap", NULL
13013 };
13014
13015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13017 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13018 if (arg2 == NULL) {
13019 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13020 }
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 (arg1)->SelectObject((wxBitmap const &)*arg2);
13024
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 Py_INCREF(Py_None); resultobj = Py_None;
13029 return resultobj;
13030 fail:
13031 return NULL;
13032}
13033
13034
13035static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13036 PyObject *obj;
13037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13038 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13039 Py_INCREF(obj);
13040 return Py_BuildValue((char *)"");
13041}
13042static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxDC *arg1 = (wxDC *) 0 ;
13045 wxBitmap *arg2 = 0 ;
13046 wxBufferedDC *result;
13047 PyObject * obj0 = 0 ;
13048 PyObject * obj1 = 0 ;
13049 char *kwnames[] = {
13050 (char *) "dc",(char *) "buffer", NULL
13051 };
13052
13053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13055 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13056 if (arg2 == NULL) {
13057 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13062
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13067 return resultobj;
13068 fail:
13069 return NULL;
13070}
13071
13072
13073static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj;
13075 wxDC *arg1 = (wxDC *) 0 ;
13076 wxSize *arg2 = 0 ;
13077 wxBufferedDC *result;
13078 wxSize temp2 ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 char *kwnames[] = {
13082 (char *) "dc",(char *) "area", NULL
13083 };
13084
13085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13087 {
13088 arg2 = &temp2;
13089 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13090 }
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13094
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13099 return resultobj;
13100 fail:
13101 return NULL;
13102}
13103
13104
13105static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj;
13107 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13108 PyObject * obj0 = 0 ;
13109 char *kwnames[] = {
13110 (char *) "self", NULL
13111 };
13112
13113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->UnMask();
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126}
13127
13128
13129static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13130 PyObject *obj;
13131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13132 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13133 Py_INCREF(obj);
13134 return Py_BuildValue((char *)"");
13135}
13136static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13137 PyObject *resultobj;
13138 wxWindow *arg1 = (wxWindow *) 0 ;
13139 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13140 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13141 wxBufferedPaintDC *result;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "window",(char *) "buffer", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13150 if (obj1) {
13151 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13152 if (arg2 == NULL) {
13153 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13154 }
13155 }
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
13158 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13159
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13164 return resultobj;
13165 fail:
13166 return NULL;
13167}
13168
13169
13170static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13171 PyObject *obj;
13172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13173 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13174 Py_INCREF(obj);
13175 return Py_BuildValue((char *)"");
13176}
13177static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13178 PyObject *resultobj;
13179 wxScreenDC *result;
13180 char *kwnames[] = {
13181 NULL
13182 };
13183
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 result = (wxScreenDC *)new wxScreenDC();
13188
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13193 return resultobj;
13194 fail:
13195 return NULL;
13196}
13197
13198
13199static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13200 PyObject *resultobj;
13201 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13202 wxWindow *arg2 = (wxWindow *) 0 ;
13203 bool result;
13204 PyObject * obj0 = 0 ;
13205 PyObject * obj1 = 0 ;
13206 char *kwnames[] = {
13207 (char *) "self",(char *) "window", NULL
13208 };
13209
13210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13212 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13213 {
13214 PyThreadState* __tstate = wxPyBeginAllowThreads();
13215 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13216
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = PyInt_FromLong((long)result);
13221 return resultobj;
13222 fail:
13223 return NULL;
13224}
13225
13226
13227static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj;
13229 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13230 wxRect *arg2 = (wxRect *) NULL ;
13231 bool result;
13232 PyObject * obj0 = 0 ;
13233 PyObject * obj1 = 0 ;
13234 char *kwnames[] = {
13235 (char *) "self",(char *) "rect", NULL
13236 };
13237
13238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13240 if (obj1) {
13241 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13242 }
13243 {
13244 PyThreadState* __tstate = wxPyBeginAllowThreads();
13245 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13246
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 resultobj = PyInt_FromLong((long)result);
13251 return resultobj;
13252 fail:
13253 return NULL;
13254}
13255
13256
13257static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj;
13259 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13260 bool result;
13261 PyObject * obj0 = 0 ;
13262 char *kwnames[] = {
13263 (char *) "self", NULL
13264 };
13265
13266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 result = (bool)(arg1)->EndDrawingOnTop();
13271
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 resultobj = PyInt_FromLong((long)result);
13276 return resultobj;
13277 fail:
13278 return NULL;
13279}
13280
13281
13282static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13283 PyObject *obj;
13284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13285 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13286 Py_INCREF(obj);
13287 return Py_BuildValue((char *)"");
13288}
13289static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13290 PyObject *resultobj;
13291 wxWindow *arg1 = (wxWindow *) 0 ;
13292 wxClientDC *result;
13293 PyObject * obj0 = 0 ;
13294 char *kwnames[] = {
13295 (char *) "win", NULL
13296 };
13297
13298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 result = (wxClientDC *)new wxClientDC(arg1);
13303
13304 wxPyEndAllowThreads(__tstate);
13305 if (PyErr_Occurred()) SWIG_fail;
13306 }
13307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13308 return resultobj;
13309 fail:
13310 return NULL;
13311}
13312
13313
13314static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13315 PyObject *obj;
13316 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13317 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13318 Py_INCREF(obj);
13319 return Py_BuildValue((char *)"");
13320}
13321static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj;
13323 wxWindow *arg1 = (wxWindow *) 0 ;
13324 wxPaintDC *result;
13325 PyObject * obj0 = 0 ;
13326 char *kwnames[] = {
13327 (char *) "win", NULL
13328 };
13329
13330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 result = (wxPaintDC *)new wxPaintDC(arg1);
13335
13336 wxPyEndAllowThreads(__tstate);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 }
13339 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13340 return resultobj;
13341 fail:
13342 return NULL;
13343}
13344
13345
13346static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13347 PyObject *obj;
13348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13349 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13350 Py_INCREF(obj);
13351 return Py_BuildValue((char *)"");
13352}
13353static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj;
13355 wxWindow *arg1 = (wxWindow *) 0 ;
13356 wxWindowDC *result;
13357 PyObject * obj0 = 0 ;
13358 char *kwnames[] = {
13359 (char *) "win", NULL
13360 };
13361
13362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = (wxWindowDC *)new wxWindowDC(arg1);
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13372 return resultobj;
13373 fail:
13374 return NULL;
13375}
13376
13377
13378static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13379 PyObject *obj;
13380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13381 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13382 Py_INCREF(obj);
13383 return Py_BuildValue((char *)"");
13384}
13385static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxDC *arg1 = 0 ;
13388 bool arg2 ;
13389 wxMirrorDC *result;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "dc",(char *) "mirror", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13398 if (arg1 == NULL) {
13399 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13400 }
13401 arg2 = PyInt_AsLong(obj1) ? true : false;
13402 if (PyErr_Occurred()) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13406
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13411 return resultobj;
13412 fail:
13413 return NULL;
13414}
13415
13416
13417static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13418 PyObject *obj;
13419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13420 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13421 Py_INCREF(obj);
13422 return Py_BuildValue((char *)"");
13423}
13424static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13425 PyObject *resultobj;
13426 wxPrintData *arg1 = 0 ;
13427 wxPostScriptDC *result;
13428 PyObject * obj0 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "printData", NULL
13431 };
13432
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13435 if (arg1 == NULL) {
13436 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13437 }
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13446 return resultobj;
13447 fail:
13448 return NULL;
13449}
13450
13451
13452static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj;
13454 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13455 wxPrintData *result;
13456 PyObject * obj0 = 0 ;
13457 char *kwnames[] = {
13458 (char *) "self", NULL
13459 };
13460
13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 {
13466 wxPrintData &_result_ref = (arg1)->GetPrintData();
13467 result = (wxPrintData *) &_result_ref;
13468 }
13469
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13474 return resultobj;
13475 fail:
13476 return NULL;
13477}
13478
13479
13480static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj;
13482 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13483 wxPrintData *arg2 = 0 ;
13484 PyObject * obj0 = 0 ;
13485 PyObject * obj1 = 0 ;
13486 char *kwnames[] = {
13487 (char *) "self",(char *) "data", NULL
13488 };
13489
13490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13492 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13493 if (arg2 == NULL) {
13494 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13495 }
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 Py_INCREF(Py_None); resultobj = Py_None;
13504 return resultobj;
13505 fail:
13506 return NULL;
13507}
13508
13509
13510static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13511 PyObject *resultobj;
13512 int arg1 ;
13513 char *kwnames[] = {
13514 (char *) "ppi", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 wxPostScriptDC::SetResolution(arg1);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 Py_INCREF(Py_None); resultobj = Py_None;
13526 return resultobj;
13527 fail:
13528 return NULL;
13529}
13530
13531
13532static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 int result;
13535 char *kwnames[] = {
13536 NULL
13537 };
13538
13539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (int)wxPostScriptDC::GetResolution();
13543
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 resultobj = PyInt_FromLong((long)result);
13548 return resultobj;
13549 fail:
13550 return NULL;
13551}
13552
13553
13554static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13555 PyObject *obj;
13556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13557 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13558 Py_INCREF(obj);
13559 return Py_BuildValue((char *)"");
13560}
13561static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj;
13563 wxString const &arg1_defvalue = wxPyEmptyString ;
13564 wxString *arg1 = (wxString *) &arg1_defvalue ;
13565 wxMetaFile *result;
13566 bool temp1 = False ;
13567 PyObject * obj0 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "filename", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13573 if (obj0) {
13574 {
13575 arg1 = wxString_in_helper(obj0);
13576 if (arg1 == NULL) SWIG_fail;
13577 temp1 = True;
13578 }
13579 }
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13583
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13588 {
13589 if (temp1)
13590 delete arg1;
13591 }
13592 return resultobj;
13593 fail:
13594 {
13595 if (temp1)
13596 delete arg1;
13597 }
13598 return NULL;
13599}
13600
13601
13602static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13603 PyObject *obj;
13604 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13605 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13606 Py_INCREF(obj);
13607 return Py_BuildValue((char *)"");
13608}
13609static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13610 PyObject *resultobj;
13611 wxString const &arg1_defvalue = wxPyEmptyString ;
13612 wxString *arg1 = (wxString *) &arg1_defvalue ;
13613 int arg2 = (int) 0 ;
13614 int arg3 = (int) 0 ;
13615 wxString const &arg4_defvalue = wxPyEmptyString ;
13616 wxString *arg4 = (wxString *) &arg4_defvalue ;
13617 wxMetaFileDC *result;
13618 bool temp1 = False ;
13619 bool temp4 = False ;
13620 PyObject * obj0 = 0 ;
13621 PyObject * obj3 = 0 ;
13622 char *kwnames[] = {
13623 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13624 };
13625
13626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13627 if (obj0) {
13628 {
13629 arg1 = wxString_in_helper(obj0);
13630 if (arg1 == NULL) SWIG_fail;
13631 temp1 = True;
13632 }
13633 }
13634 if (obj3) {
13635 {
13636 arg4 = wxString_in_helper(obj3);
13637 if (arg4 == NULL) SWIG_fail;
13638 temp4 = True;
13639 }
13640 }
13641 {
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13644
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13649 {
13650 if (temp1)
13651 delete arg1;
13652 }
13653 {
13654 if (temp4)
13655 delete arg4;
13656 }
13657 return resultobj;
13658 fail:
13659 {
13660 if (temp1)
13661 delete arg1;
13662 }
13663 {
13664 if (temp4)
13665 delete arg4;
13666 }
13667 return NULL;
13668}
13669
13670
13671static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13672 PyObject *obj;
13673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13674 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13675 Py_INCREF(obj);
13676 return Py_BuildValue((char *)"");
13677}
13678static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxPrintData *arg1 = 0 ;
13681 wxPrinterDC *result;
13682 PyObject * obj0 = 0 ;
13683 char *kwnames[] = {
13684 (char *) "printData", NULL
13685 };
13686
13687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13689 if (arg1 == NULL) {
13690 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13691 }
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13695
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13700 return resultobj;
13701 fail:
13702 return NULL;
13703}
13704
13705
13706static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13707 PyObject *obj;
13708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13709 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13710 Py_INCREF(obj);
13711 return Py_BuildValue((char *)"");
13712}
13713static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj;
13715 int arg1 ;
13716 int arg2 ;
13717 int arg3 = (int) True ;
13718 int arg4 = (int) 1 ;
13719 wxImageList *result;
13720 char *kwnames[] = {
13721 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13725 {
13726 PyThreadState* __tstate = wxPyBeginAllowThreads();
13727 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13728
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 {
13733 resultobj = wxPyMake_wxObject(result);
13734 }
13735 return resultobj;
13736 fail:
13737 return NULL;
13738}
13739
13740
13741static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13742 PyObject *resultobj;
13743 wxImageList *arg1 = (wxImageList *) 0 ;
13744 PyObject * obj0 = 0 ;
13745 char *kwnames[] = {
13746 (char *) "self", NULL
13747 };
13748
13749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13751 {
13752 PyThreadState* __tstate = wxPyBeginAllowThreads();
13753 delete arg1;
13754
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 Py_INCREF(Py_None); resultobj = Py_None;
13759 return resultobj;
13760 fail:
13761 return NULL;
13762}
13763
13764
13765static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13766 PyObject *resultobj;
13767 wxImageList *arg1 = (wxImageList *) 0 ;
13768 wxBitmap *arg2 = 0 ;
13769 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13770 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13771 int result;
13772 PyObject * obj0 = 0 ;
13773 PyObject * obj1 = 0 ;
13774 PyObject * obj2 = 0 ;
13775 char *kwnames[] = {
13776 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13777 };
13778
13779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13781 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13782 if (arg2 == NULL) {
13783 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13784 }
13785 if (obj2) {
13786 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13787 if (arg3 == NULL) {
13788 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13789 }
13790 }
13791 {
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13794
13795 wxPyEndAllowThreads(__tstate);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 }
13798 resultobj = PyInt_FromLong((long)result);
13799 return resultobj;
13800 fail:
13801 return NULL;
13802}
13803
13804
13805static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13806 PyObject *resultobj;
13807 wxImageList *arg1 = (wxImageList *) 0 ;
13808 wxBitmap *arg2 = 0 ;
13809 wxColour *arg3 = 0 ;
13810 int result;
13811 wxColour temp3 ;
13812 PyObject * obj0 = 0 ;
13813 PyObject * obj1 = 0 ;
13814 PyObject * obj2 = 0 ;
13815 char *kwnames[] = {
13816 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13817 };
13818
13819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13821 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13822 if (arg2 == NULL) {
13823 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13824 }
13825 {
13826 arg3 = &temp3;
13827 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13828 }
13829 {
13830 PyThreadState* __tstate = wxPyBeginAllowThreads();
13831 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13832
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = PyInt_FromLong((long)result);
13837 return resultobj;
13838 fail:
13839 return NULL;
13840}
13841
13842
13843static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj;
13845 wxImageList *arg1 = (wxImageList *) 0 ;
13846 wxIcon *arg2 = 0 ;
13847 int result;
13848 PyObject * obj0 = 0 ;
13849 PyObject * obj1 = 0 ;
13850 char *kwnames[] = {
13851 (char *) "self",(char *) "icon", NULL
13852 };
13853
13854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13856 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13857 if (arg2 == NULL) {
13858 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13859 }
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13863
13864 wxPyEndAllowThreads(__tstate);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 }
13867 resultobj = PyInt_FromLong((long)result);
13868 return resultobj;
13869 fail:
13870 return NULL;
13871}
13872
13873
13874static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13875 PyObject *resultobj;
13876 wxImageList *arg1 = (wxImageList *) 0 ;
13877 int arg2 ;
13878 wxBitmap *arg3 = 0 ;
13879 bool result;
13880 PyObject * obj0 = 0 ;
13881 PyObject * obj2 = 0 ;
13882 char *kwnames[] = {
13883 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13884 };
13885
13886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13888 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13889 if (arg3 == NULL) {
13890 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13891 }
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13895
13896 wxPyEndAllowThreads(__tstate);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 resultobj = PyInt_FromLong((long)result);
13900 return resultobj;
13901 fail:
13902 return NULL;
13903}
13904
13905
13906static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj;
13908 wxImageList *arg1 = (wxImageList *) 0 ;
13909 int arg2 ;
13910 wxDC *arg3 = 0 ;
13911 int arg4 ;
13912 int arg5 ;
13913 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
13914 bool arg7 = (bool) (bool)False ;
13915 bool result;
13916 PyObject * obj0 = 0 ;
13917 PyObject * obj2 = 0 ;
13918 PyObject * obj6 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13925 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13926 if (arg3 == NULL) {
13927 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13928 }
13929 if (obj6) {
13930 arg7 = PyInt_AsLong(obj6) ? true : false;
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 resultobj = PyInt_FromLong((long)result);
13941 return resultobj;
13942 fail:
13943 return NULL;
13944}
13945
13946
13947static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxImageList *arg1 = (wxImageList *) 0 ;
13950 int result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "self", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (int)(arg1)->GetImageCount();
13961
13962 wxPyEndAllowThreads(__tstate);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 resultobj = PyInt_FromLong((long)result);
13966 return resultobj;
13967 fail:
13968 return NULL;
13969}
13970
13971
13972static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
13973 PyObject *resultobj;
13974 wxImageList *arg1 = (wxImageList *) 0 ;
13975 int arg2 ;
13976 bool result;
13977 PyObject * obj0 = 0 ;
13978 char *kwnames[] = {
13979 (char *) "self",(char *) "index", NULL
13980 };
13981
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (bool)(arg1)->Remove(arg2);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = PyInt_FromLong((long)result);
13992 return resultobj;
13993 fail:
13994 return NULL;
13995}
13996
13997
13998static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxImageList *arg1 = (wxImageList *) 0 ;
14001 bool result;
14002 PyObject * obj0 = 0 ;
14003 char *kwnames[] = {
14004 (char *) "self", NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14009 {
14010 PyThreadState* __tstate = wxPyBeginAllowThreads();
14011 result = (bool)(arg1)->RemoveAll();
14012
14013 wxPyEndAllowThreads(__tstate);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 resultobj = PyInt_FromLong((long)result);
14017 return resultobj;
14018 fail:
14019 return NULL;
14020}
14021
14022
14023static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxImageList *arg1 = (wxImageList *) 0 ;
14026 int arg2 ;
14027 int *arg3 = 0 ;
14028 int *arg4 = 0 ;
14029 int temp3 ;
14030 int temp4 ;
14031 PyObject * obj0 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self",(char *) "index", NULL
14034 };
14035
14036 arg3 = &temp3;
14037 arg4 = &temp4;
14038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 (arg1)->GetSize(arg2,*arg3,*arg4);
14043
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 Py_INCREF(Py_None); resultobj = Py_None;
14048 {
14049 PyObject *o = PyInt_FromLong((long) (*arg3));
14050 resultobj = t_output_helper(resultobj,o);
14051 }
14052 {
14053 PyObject *o = PyInt_FromLong((long) (*arg4));
14054 resultobj = t_output_helper(resultobj,o);
14055 }
14056 return resultobj;
14057 fail:
14058 return NULL;
14059}
14060
14061
14062static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14063 PyObject *obj;
14064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14065 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14066 Py_INCREF(obj);
14067 return Py_BuildValue((char *)"");
14068}
14069static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj;
14071 wxPenList *arg1 = (wxPenList *) 0 ;
14072 wxPen *arg2 = (wxPen *) 0 ;
14073 PyObject * obj0 = 0 ;
14074 PyObject * obj1 = 0 ;
14075 char *kwnames[] = {
14076 (char *) "self",(char *) "pen", NULL
14077 };
14078
14079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14081 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14082 {
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 (arg1)->AddPen(arg2);
14085
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 Py_INCREF(Py_None); resultobj = Py_None;
14090 return resultobj;
14091 fail:
14092 return NULL;
14093}
14094
14095
14096static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj;
14098 wxPenList *arg1 = (wxPenList *) 0 ;
14099 wxColour *arg2 = 0 ;
14100 int arg3 ;
14101 int arg4 ;
14102 wxPen *result;
14103 wxColour temp2 ;
14104 PyObject * obj0 = 0 ;
14105 PyObject * obj1 = 0 ;
14106 char *kwnames[] = {
14107 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14108 };
14109
14110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14112 {
14113 arg2 = &temp2;
14114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14115 }
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14119
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14124 return resultobj;
14125 fail:
14126 return NULL;
14127}
14128
14129
14130static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14131 PyObject *resultobj;
14132 wxPenList *arg1 = (wxPenList *) 0 ;
14133 wxPen *arg2 = (wxPen *) 0 ;
14134 PyObject * obj0 = 0 ;
14135 PyObject * obj1 = 0 ;
14136 char *kwnames[] = {
14137 (char *) "self",(char *) "pen", NULL
14138 };
14139
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14142 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14143 {
14144 PyThreadState* __tstate = wxPyBeginAllowThreads();
14145 (arg1)->RemovePen(arg2);
14146
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 Py_INCREF(Py_None); resultobj = Py_None;
14151 return resultobj;
14152 fail:
14153 return NULL;
14154}
14155
14156
14157static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14158 PyObject *resultobj;
14159 wxPenList *arg1 = (wxPenList *) 0 ;
14160 int result;
14161 PyObject * obj0 = 0 ;
14162 char *kwnames[] = {
14163 (char *) "self", NULL
14164 };
14165
14166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14168 {
14169 PyThreadState* __tstate = wxPyBeginAllowThreads();
14170 result = (int)(arg1)->GetCount();
14171
14172 wxPyEndAllowThreads(__tstate);
14173 if (PyErr_Occurred()) SWIG_fail;
14174 }
14175 resultobj = PyInt_FromLong((long)result);
14176 return resultobj;
14177 fail:
14178 return NULL;
14179}
14180
14181
14182static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14183 PyObject *obj;
14184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14185 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14186 Py_INCREF(obj);
14187 return Py_BuildValue((char *)"");
14188}
14189static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14190 PyObject *resultobj;
14191 wxBrushList *arg1 = (wxBrushList *) 0 ;
14192 wxBrush *arg2 = (wxBrush *) 0 ;
14193 PyObject * obj0 = 0 ;
14194 PyObject * obj1 = 0 ;
14195 char *kwnames[] = {
14196 (char *) "self",(char *) "brush", NULL
14197 };
14198
14199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14201 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14202 {
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 (arg1)->AddBrush(arg2);
14205
14206 wxPyEndAllowThreads(__tstate);
14207 if (PyErr_Occurred()) SWIG_fail;
14208 }
14209 Py_INCREF(Py_None); resultobj = Py_None;
14210 return resultobj;
14211 fail:
14212 return NULL;
14213}
14214
14215
14216static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14217 PyObject *resultobj;
14218 wxBrushList *arg1 = (wxBrushList *) 0 ;
14219 wxColour *arg2 = 0 ;
14220 int arg3 ;
14221 wxBrush *result;
14222 wxColour temp2 ;
14223 PyObject * obj0 = 0 ;
14224 PyObject * obj1 = 0 ;
14225 char *kwnames[] = {
14226 (char *) "self",(char *) "colour",(char *) "style", NULL
14227 };
14228
14229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14231 {
14232 arg2 = &temp2;
14233 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14234 }
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14238
14239 wxPyEndAllowThreads(__tstate);
14240 if (PyErr_Occurred()) SWIG_fail;
14241 }
14242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14243 return resultobj;
14244 fail:
14245 return NULL;
14246}
14247
14248
14249static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 wxBrushList *arg1 = (wxBrushList *) 0 ;
14252 wxBrush *arg2 = (wxBrush *) 0 ;
14253 PyObject * obj0 = 0 ;
14254 PyObject * obj1 = 0 ;
14255 char *kwnames[] = {
14256 (char *) "self",(char *) "brush", NULL
14257 };
14258
14259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14261 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 (arg1)->RemoveBrush(arg2);
14265
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 Py_INCREF(Py_None); resultobj = Py_None;
14270 return resultobj;
14271 fail:
14272 return NULL;
14273}
14274
14275
14276static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14277 PyObject *resultobj;
14278 wxBrushList *arg1 = (wxBrushList *) 0 ;
14279 int result;
14280 PyObject * obj0 = 0 ;
14281 char *kwnames[] = {
14282 (char *) "self", NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (int)(arg1)->GetCount();
14290
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 resultobj = PyInt_FromLong((long)result);
14295 return resultobj;
14296 fail:
14297 return NULL;
14298}
14299
14300
14301static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14302 PyObject *obj;
14303 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14304 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14305 Py_INCREF(obj);
14306 return Py_BuildValue((char *)"");
14307}
14308static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14309 PyObject *resultobj;
14310 wxColourDatabase *result;
14311 char *kwnames[] = {
14312 NULL
14313 };
14314
14315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (wxColourDatabase *)new wxColourDatabase();
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14324 return resultobj;
14325 fail:
14326 return NULL;
14327}
14328
14329
14330static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj;
14332 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14333 PyObject * obj0 = 0 ;
14334 char *kwnames[] = {
14335 (char *) "self", NULL
14336 };
14337
14338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 delete arg1;
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 Py_INCREF(Py_None); resultobj = Py_None;
14348 return resultobj;
14349 fail:
14350 return NULL;
14351}
14352
14353
14354static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14357 wxString *arg2 = 0 ;
14358 wxColour result;
14359 bool temp2 = False ;
14360 PyObject * obj0 = 0 ;
14361 PyObject * obj1 = 0 ;
14362 char *kwnames[] = {
14363 (char *) "self",(char *) "name", NULL
14364 };
14365
14366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14368 {
14369 arg2 = wxString_in_helper(obj1);
14370 if (arg2 == NULL) SWIG_fail;
14371 temp2 = True;
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14376
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 {
14381 wxColour * resultptr;
14382 resultptr = new wxColour((wxColour &) result);
14383 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14384 }
14385 {
14386 if (temp2)
14387 delete arg2;
14388 }
14389 return resultobj;
14390 fail:
14391 {
14392 if (temp2)
14393 delete arg2;
14394 }
14395 return NULL;
14396}
14397
14398
14399static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj;
14401 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14402 wxColour *arg2 = 0 ;
14403 wxString result;
14404 wxColour temp2 ;
14405 PyObject * obj0 = 0 ;
14406 PyObject * obj1 = 0 ;
14407 char *kwnames[] = {
14408 (char *) "self",(char *) "colour", NULL
14409 };
14410
14411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14413 {
14414 arg2 = &temp2;
14415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14416 }
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14420
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 {
14425#if wxUSE_UNICODE
14426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14427#else
14428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14429#endif
14430 }
14431 return resultobj;
14432 fail:
14433 return NULL;
14434}
14435
14436
14437static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14438 PyObject *resultobj;
14439 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14440 wxString *arg2 = 0 ;
14441 wxColour *arg3 = 0 ;
14442 bool temp2 = False ;
14443 wxColour temp3 ;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 PyObject * obj2 = 0 ;
14447 char *kwnames[] = {
14448 (char *) "self",(char *) "name",(char *) "colour", NULL
14449 };
14450
14451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14453 {
14454 arg2 = wxString_in_helper(obj1);
14455 if (arg2 == NULL) SWIG_fail;
14456 temp2 = True;
14457 }
14458 {
14459 arg3 = &temp3;
14460 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14461 }
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 Py_INCREF(Py_None); resultobj = Py_None;
14470 {
14471 if (temp2)
14472 delete arg2;
14473 }
14474 return resultobj;
14475 fail:
14476 {
14477 if (temp2)
14478 delete arg2;
14479 }
14480 return NULL;
14481}
14482
14483
14484static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14485 PyObject *resultobj;
14486 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14487 wxString *arg2 = 0 ;
14488 int arg3 ;
14489 int arg4 ;
14490 int arg5 ;
14491 bool temp2 = False ;
14492 PyObject * obj0 = 0 ;
14493 PyObject * obj1 = 0 ;
14494 char *kwnames[] = {
14495 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14496 };
14497
14498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14500 {
14501 arg2 = wxString_in_helper(obj1);
14502 if (arg2 == NULL) SWIG_fail;
14503 temp2 = True;
14504 }
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14508
14509 wxPyEndAllowThreads(__tstate);
14510 if (PyErr_Occurred()) SWIG_fail;
14511 }
14512 Py_INCREF(Py_None); resultobj = Py_None;
14513 {
14514 if (temp2)
14515 delete arg2;
14516 }
14517 return resultobj;
14518 fail:
14519 {
14520 if (temp2)
14521 delete arg2;
14522 }
14523 return NULL;
14524}
14525
14526
14527static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14528 PyObject *obj;
14529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14530 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14531 Py_INCREF(obj);
14532 return Py_BuildValue((char *)"");
14533}
14534static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj;
14536 wxFontList *arg1 = (wxFontList *) 0 ;
14537 wxFont *arg2 = (wxFont *) 0 ;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self",(char *) "font", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14546 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 (arg1)->AddFont(arg2);
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 Py_INCREF(Py_None); resultobj = Py_None;
14555 return resultobj;
14556 fail:
14557 return NULL;
14558}
14559
14560
14561static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxFontList *arg1 = (wxFontList *) 0 ;
14564 int arg2 ;
14565 int arg3 ;
14566 int arg4 ;
14567 int arg5 ;
14568 bool arg6 = (bool) False ;
14569 wxString const &arg7_defvalue = wxPyEmptyString ;
14570 wxString *arg7 = (wxString *) &arg7_defvalue ;
14571 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14572 wxFont *result;
14573 bool temp7 = False ;
14574 PyObject * obj0 = 0 ;
14575 PyObject * obj5 = 0 ;
14576 PyObject * obj6 = 0 ;
14577 char *kwnames[] = {
14578 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14579 };
14580
14581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14583 if (obj5) {
14584 arg6 = PyInt_AsLong(obj5) ? true : false;
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 if (obj6) {
14588 {
14589 arg7 = wxString_in_helper(obj6);
14590 if (arg7 == NULL) SWIG_fail;
14591 temp7 = True;
14592 }
14593 }
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14597
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14602 {
14603 if (temp7)
14604 delete arg7;
14605 }
14606 return resultobj;
14607 fail:
14608 {
14609 if (temp7)
14610 delete arg7;
14611 }
14612 return NULL;
14613}
14614
14615
14616static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxFontList *arg1 = (wxFontList *) 0 ;
14619 wxFont *arg2 = (wxFont *) 0 ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 char *kwnames[] = {
14623 (char *) "self",(char *) "font", NULL
14624 };
14625
14626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14628 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14629 {
14630 PyThreadState* __tstate = wxPyBeginAllowThreads();
14631 (arg1)->RemoveFont(arg2);
14632
14633 wxPyEndAllowThreads(__tstate);
14634 if (PyErr_Occurred()) SWIG_fail;
14635 }
14636 Py_INCREF(Py_None); resultobj = Py_None;
14637 return resultobj;
14638 fail:
14639 return NULL;
14640}
14641
14642
14643static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14644 PyObject *resultobj;
14645 wxFontList *arg1 = (wxFontList *) 0 ;
14646 int result;
14647 PyObject * obj0 = 0 ;
14648 char *kwnames[] = {
14649 (char *) "self", NULL
14650 };
14651
14652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 result = (int)(arg1)->GetCount();
14657
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 resultobj = PyInt_FromLong((long)result);
14662 return resultobj;
14663 fail:
14664 return NULL;
14665}
14666
14667
14668static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14669 PyObject *obj;
14670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14671 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14672 Py_INCREF(obj);
14673 return Py_BuildValue((char *)"");
14674}
14675static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14676 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14677 return 1;
14678}
14679
14680
14681static PyObject *_wrap_NORMAL_FONT_get() {
14682 PyObject *pyobj;
14683
14684 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14685 return pyobj;
14686}
14687
14688
14689static int _wrap_SMALL_FONT_set(PyObject *_val) {
14690 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14691 return 1;
14692}
14693
14694
14695static PyObject *_wrap_SMALL_FONT_get() {
14696 PyObject *pyobj;
14697
14698 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14699 return pyobj;
14700}
14701
14702
14703static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14704 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14705 return 1;
14706}
14707
14708
14709static PyObject *_wrap_ITALIC_FONT_get() {
14710 PyObject *pyobj;
14711
14712 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14713 return pyobj;
14714}
14715
14716
14717static int _wrap_SWISS_FONT_set(PyObject *_val) {
14718 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14719 return 1;
14720}
14721
14722
14723static PyObject *_wrap_SWISS_FONT_get() {
14724 PyObject *pyobj;
14725
14726 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14727 return pyobj;
14728}
14729
14730
14731static int _wrap_RED_PEN_set(PyObject *_val) {
14732 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14733 return 1;
14734}
14735
14736
14737static PyObject *_wrap_RED_PEN_get() {
14738 PyObject *pyobj;
14739
14740 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14741 return pyobj;
14742}
14743
14744
14745static int _wrap_CYAN_PEN_set(PyObject *_val) {
14746 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14747 return 1;
14748}
14749
14750
14751static PyObject *_wrap_CYAN_PEN_get() {
14752 PyObject *pyobj;
14753
14754 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14755 return pyobj;
14756}
14757
14758
14759static int _wrap_GREEN_PEN_set(PyObject *_val) {
14760 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14761 return 1;
14762}
14763
14764
14765static PyObject *_wrap_GREEN_PEN_get() {
14766 PyObject *pyobj;
14767
14768 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14769 return pyobj;
14770}
14771
14772
14773static int _wrap_BLACK_PEN_set(PyObject *_val) {
14774 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14775 return 1;
14776}
14777
14778
14779static PyObject *_wrap_BLACK_PEN_get() {
14780 PyObject *pyobj;
14781
14782 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14783 return pyobj;
14784}
14785
14786
14787static int _wrap_WHITE_PEN_set(PyObject *_val) {
14788 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14789 return 1;
14790}
14791
14792
14793static PyObject *_wrap_WHITE_PEN_get() {
14794 PyObject *pyobj;
14795
14796 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14797 return pyobj;
14798}
14799
14800
14801static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14802 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14803 return 1;
14804}
14805
14806
14807static PyObject *_wrap_TRANSPARENT_PEN_get() {
14808 PyObject *pyobj;
14809
14810 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14811 return pyobj;
14812}
14813
14814
14815static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14816 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14817 return 1;
14818}
14819
14820
14821static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14822 PyObject *pyobj;
14823
14824 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14825 return pyobj;
14826}
14827
14828
14829static int _wrap_GREY_PEN_set(PyObject *_val) {
14830 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14831 return 1;
14832}
14833
14834
14835static PyObject *_wrap_GREY_PEN_get() {
14836 PyObject *pyobj;
14837
14838 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14839 return pyobj;
14840}
14841
14842
14843static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14844 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14845 return 1;
14846}
14847
14848
14849static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14850 PyObject *pyobj;
14851
14852 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14853 return pyobj;
14854}
14855
14856
14857static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14858 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14859 return 1;
14860}
14861
14862
14863static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14864 PyObject *pyobj;
14865
14866 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14867 return pyobj;
14868}
14869
14870
14871static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14872 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14873 return 1;
14874}
14875
14876
14877static PyObject *_wrap_BLUE_BRUSH_get() {
14878 PyObject *pyobj;
14879
14880 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14881 return pyobj;
14882}
14883
14884
14885static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14886 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14887 return 1;
14888}
14889
14890
14891static PyObject *_wrap_GREEN_BRUSH_get() {
14892 PyObject *pyobj;
14893
14894 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14895 return pyobj;
14896}
14897
14898
14899static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14900 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14901 return 1;
14902}
14903
14904
14905static PyObject *_wrap_WHITE_BRUSH_get() {
14906 PyObject *pyobj;
14907
14908 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14909 return pyobj;
14910}
14911
14912
14913static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14914 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14915 return 1;
14916}
14917
14918
14919static PyObject *_wrap_BLACK_BRUSH_get() {
14920 PyObject *pyobj;
14921
14922 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14923 return pyobj;
14924}
14925
14926
14927static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14928 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14929 return 1;
14930}
14931
14932
14933static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14934 PyObject *pyobj;
14935
14936 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14937 return pyobj;
14938}
14939
14940
14941static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14942 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14943 return 1;
14944}
14945
14946
14947static PyObject *_wrap_CYAN_BRUSH_get() {
14948 PyObject *pyobj;
14949
14950 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14951 return pyobj;
14952}
14953
14954
14955static int _wrap_RED_BRUSH_set(PyObject *_val) {
14956 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
14957 return 1;
14958}
14959
14960
14961static PyObject *_wrap_RED_BRUSH_get() {
14962 PyObject *pyobj;
14963
14964 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
14965 return pyobj;
14966}
14967
14968
14969static int _wrap_GREY_BRUSH_set(PyObject *_val) {
14970 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
14971 return 1;
14972}
14973
14974
14975static PyObject *_wrap_GREY_BRUSH_get() {
14976 PyObject *pyobj;
14977
14978 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14979 return pyobj;
14980}
14981
14982
14983static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
14984 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
14985 return 1;
14986}
14987
14988
14989static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
14990 PyObject *pyobj;
14991
14992 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14993 return pyobj;
14994}
14995
14996
14997static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
14998 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
14999 return 1;
15000}
15001
15002
15003static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15004 PyObject *pyobj;
15005
15006 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15007 return pyobj;
15008}
15009
15010
15011static int _wrap_BLACK_set(PyObject *_val) {
15012 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15013 return 1;
15014}
15015
15016
15017static PyObject *_wrap_BLACK_get() {
15018 PyObject *pyobj;
15019
15020 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15021 return pyobj;
15022}
15023
15024
15025static int _wrap_WHITE_set(PyObject *_val) {
15026 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15027 return 1;
15028}
15029
15030
15031static PyObject *_wrap_WHITE_get() {
15032 PyObject *pyobj;
15033
15034 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15035 return pyobj;
15036}
15037
15038
15039static int _wrap_RED_set(PyObject *_val) {
15040 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15041 return 1;
15042}
15043
15044
15045static PyObject *_wrap_RED_get() {
15046 PyObject *pyobj;
15047
15048 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15049 return pyobj;
15050}
15051
15052
15053static int _wrap_BLUE_set(PyObject *_val) {
15054 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15055 return 1;
15056}
15057
15058
15059static PyObject *_wrap_BLUE_get() {
15060 PyObject *pyobj;
15061
15062 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15063 return pyobj;
15064}
15065
15066
15067static int _wrap_GREEN_set(PyObject *_val) {
15068 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15069 return 1;
15070}
15071
15072
15073static PyObject *_wrap_GREEN_get() {
15074 PyObject *pyobj;
15075
15076 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15077 return pyobj;
15078}
15079
15080
15081static int _wrap_CYAN_set(PyObject *_val) {
15082 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15083 return 1;
15084}
15085
15086
15087static PyObject *_wrap_CYAN_get() {
15088 PyObject *pyobj;
15089
15090 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15091 return pyobj;
15092}
15093
15094
15095static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15096 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15097 return 1;
15098}
15099
15100
15101static PyObject *_wrap_LIGHT_GREY_get() {
15102 PyObject *pyobj;
15103
15104 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15105 return pyobj;
15106}
15107
15108
15109static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15110 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15111 return 1;
15112}
15113
15114
15115static PyObject *_wrap_STANDARD_CURSOR_get() {
15116 PyObject *pyobj;
15117
15118 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15119 return pyobj;
15120}
15121
15122
15123static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15124 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15125 return 1;
15126}
15127
15128
15129static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15130 PyObject *pyobj;
15131
15132 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15133 return pyobj;
15134}
15135
15136
15137static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15138 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15139 return 1;
15140}
15141
15142
15143static PyObject *_wrap_CROSS_CURSOR_get() {
15144 PyObject *pyobj;
15145
15146 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15147 return pyobj;
15148}
15149
15150
15151static int _wrap_NullBitmap_set(PyObject *_val) {
15152 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15153 return 1;
15154}
15155
15156
15157static PyObject *_wrap_NullBitmap_get() {
15158 PyObject *pyobj;
15159
15160 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15161 return pyobj;
15162}
15163
15164
15165static int _wrap_NullIcon_set(PyObject *_val) {
15166 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15167 return 1;
15168}
15169
15170
15171static PyObject *_wrap_NullIcon_get() {
15172 PyObject *pyobj;
15173
15174 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15175 return pyobj;
15176}
15177
15178
15179static int _wrap_NullCursor_set(PyObject *_val) {
15180 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15181 return 1;
15182}
15183
15184
15185static PyObject *_wrap_NullCursor_get() {
15186 PyObject *pyobj;
15187
15188 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15189 return pyobj;
15190}
15191
15192
15193static int _wrap_NullPen_set(PyObject *_val) {
15194 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15195 return 1;
15196}
15197
15198
15199static PyObject *_wrap_NullPen_get() {
15200 PyObject *pyobj;
15201
15202 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15203 return pyobj;
15204}
15205
15206
15207static int _wrap_NullBrush_set(PyObject *_val) {
15208 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15209 return 1;
15210}
15211
15212
15213static PyObject *_wrap_NullBrush_get() {
15214 PyObject *pyobj;
15215
15216 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15217 return pyobj;
15218}
15219
15220
15221static int _wrap_NullPalette_set(PyObject *_val) {
15222 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15223 return 1;
15224}
15225
15226
15227static PyObject *_wrap_NullPalette_get() {
15228 PyObject *pyobj;
15229
15230 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15231 return pyobj;
15232}
15233
15234
15235static int _wrap_NullFont_set(PyObject *_val) {
15236 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15237 return 1;
15238}
15239
15240
15241static PyObject *_wrap_NullFont_get() {
15242 PyObject *pyobj;
15243
15244 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15245 return pyobj;
15246}
15247
15248
15249static int _wrap_NullColour_set(PyObject *_val) {
15250 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15251 return 1;
15252}
15253
15254
15255static PyObject *_wrap_NullColour_get() {
15256 PyObject *pyobj;
15257
15258 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15259 return pyobj;
15260}
15261
15262
15263static int _wrap_TheFontList_set(PyObject *_val) {
15264 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15265 return 1;
15266}
15267
15268
15269static PyObject *_wrap_TheFontList_get() {
15270 PyObject *pyobj;
15271
15272 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15273 return pyobj;
15274}
15275
15276
15277static int _wrap_ThePenList_set(PyObject *_val) {
15278 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15279 return 1;
15280}
15281
15282
15283static PyObject *_wrap_ThePenList_get() {
15284 PyObject *pyobj;
15285
15286 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15287 return pyobj;
15288}
15289
15290
15291static int _wrap_TheBrushList_set(PyObject *_val) {
15292 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15293 return 1;
15294}
15295
15296
15297static PyObject *_wrap_TheBrushList_get() {
15298 PyObject *pyobj;
15299
15300 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15301 return pyobj;
15302}
15303
15304
15305static int _wrap_TheColourDatabase_set(PyObject *_val) {
15306 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15307 return 1;
15308}
15309
15310
15311static PyObject *_wrap_TheColourDatabase_get() {
15312 PyObject *pyobj;
15313
15314 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15315 return pyobj;
15316}
15317
15318
15319static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15320 PyObject *resultobj;
15321 wxEffects *result;
15322 char *kwnames[] = {
15323 NULL
15324 };
15325
15326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = (wxEffects *)new wxEffects();
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15335 return resultobj;
15336 fail:
15337 return NULL;
15338}
15339
15340
15341static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxEffects *arg1 = (wxEffects *) 0 ;
15344 wxColour result;
15345 PyObject * obj0 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 result = ((wxEffects const *)arg1)->GetHighlightColour();
15355
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 {
15360 wxColour * resultptr;
15361 resultptr = new wxColour((wxColour &) result);
15362 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15363 }
15364 return resultobj;
15365 fail:
15366 return NULL;
15367}
15368
15369
15370static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj;
15372 wxEffects *arg1 = (wxEffects *) 0 ;
15373 wxColour result;
15374 PyObject * obj0 = 0 ;
15375 char *kwnames[] = {
15376 (char *) "self", NULL
15377 };
15378
15379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15381 {
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = ((wxEffects const *)arg1)->GetLightShadow();
15384
15385 wxPyEndAllowThreads(__tstate);
15386 if (PyErr_Occurred()) SWIG_fail;
15387 }
15388 {
15389 wxColour * resultptr;
15390 resultptr = new wxColour((wxColour &) result);
15391 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15392 }
15393 return resultobj;
15394 fail:
15395 return NULL;
15396}
15397
15398
15399static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15400 PyObject *resultobj;
15401 wxEffects *arg1 = (wxEffects *) 0 ;
15402 wxColour result;
15403 PyObject * obj0 = 0 ;
15404 char *kwnames[] = {
15405 (char *) "self", NULL
15406 };
15407
15408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = ((wxEffects const *)arg1)->GetFaceColour();
15413
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 {
15418 wxColour * resultptr;
15419 resultptr = new wxColour((wxColour &) result);
15420 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15421 }
15422 return resultobj;
15423 fail:
15424 return NULL;
15425}
15426
15427
15428static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15429 PyObject *resultobj;
15430 wxEffects *arg1 = (wxEffects *) 0 ;
15431 wxColour result;
15432 PyObject * obj0 = 0 ;
15433 char *kwnames[] = {
15434 (char *) "self", NULL
15435 };
15436
15437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15439 {
15440 PyThreadState* __tstate = wxPyBeginAllowThreads();
15441 result = ((wxEffects const *)arg1)->GetMediumShadow();
15442
15443 wxPyEndAllowThreads(__tstate);
15444 if (PyErr_Occurred()) SWIG_fail;
15445 }
15446 {
15447 wxColour * resultptr;
15448 resultptr = new wxColour((wxColour &) result);
15449 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15450 }
15451 return resultobj;
15452 fail:
15453 return NULL;
15454}
15455
15456
15457static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15458 PyObject *resultobj;
15459 wxEffects *arg1 = (wxEffects *) 0 ;
15460 wxColour result;
15461 PyObject * obj0 = 0 ;
15462 char *kwnames[] = {
15463 (char *) "self", NULL
15464 };
15465
15466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15468 {
15469 PyThreadState* __tstate = wxPyBeginAllowThreads();
15470 result = ((wxEffects const *)arg1)->GetDarkShadow();
15471
15472 wxPyEndAllowThreads(__tstate);
15473 if (PyErr_Occurred()) SWIG_fail;
15474 }
15475 {
15476 wxColour * resultptr;
15477 resultptr = new wxColour((wxColour &) result);
15478 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15479 }
15480 return resultobj;
15481 fail:
15482 return NULL;
15483}
15484
15485
15486static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15487 PyObject *resultobj;
15488 wxEffects *arg1 = (wxEffects *) 0 ;
15489 wxColour *arg2 = 0 ;
15490 wxColour temp2 ;
15491 PyObject * obj0 = 0 ;
15492 PyObject * obj1 = 0 ;
15493 char *kwnames[] = {
15494 (char *) "self",(char *) "c", NULL
15495 };
15496
15497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15499 {
15500 arg2 = &temp2;
15501 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15502 }
15503 {
15504 PyThreadState* __tstate = wxPyBeginAllowThreads();
15505 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15506
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 Py_INCREF(Py_None); resultobj = Py_None;
15511 return resultobj;
15512 fail:
15513 return NULL;
15514}
15515
15516
15517static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15518 PyObject *resultobj;
15519 wxEffects *arg1 = (wxEffects *) 0 ;
15520 wxColour *arg2 = 0 ;
15521 wxColour temp2 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self",(char *) "c", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15530 {
15531 arg2 = &temp2;
15532 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15533 }
15534 {
15535 PyThreadState* __tstate = wxPyBeginAllowThreads();
15536 (arg1)->SetLightShadow((wxColour const &)*arg2);
15537
15538 wxPyEndAllowThreads(__tstate);
15539 if (PyErr_Occurred()) SWIG_fail;
15540 }
15541 Py_INCREF(Py_None); resultobj = Py_None;
15542 return resultobj;
15543 fail:
15544 return NULL;
15545}
15546
15547
15548static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15549 PyObject *resultobj;
15550 wxEffects *arg1 = (wxEffects *) 0 ;
15551 wxColour *arg2 = 0 ;
15552 wxColour temp2 ;
15553 PyObject * obj0 = 0 ;
15554 PyObject * obj1 = 0 ;
15555 char *kwnames[] = {
15556 (char *) "self",(char *) "c", NULL
15557 };
15558
15559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15561 {
15562 arg2 = &temp2;
15563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15564 }
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 (arg1)->SetFaceColour((wxColour const &)*arg2);
15568
15569 wxPyEndAllowThreads(__tstate);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 Py_INCREF(Py_None); resultobj = Py_None;
15573 return resultobj;
15574 fail:
15575 return NULL;
15576}
15577
15578
15579static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxEffects *arg1 = (wxEffects *) 0 ;
15582 wxColour *arg2 = 0 ;
15583 wxColour temp2 ;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 char *kwnames[] = {
15587 (char *) "self",(char *) "c", NULL
15588 };
15589
15590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15592 {
15593 arg2 = &temp2;
15594 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15595 }
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15599
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
15603 Py_INCREF(Py_None); resultobj = Py_None;
15604 return resultobj;
15605 fail:
15606 return NULL;
15607}
15608
15609
15610static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15611 PyObject *resultobj;
15612 wxEffects *arg1 = (wxEffects *) 0 ;
15613 wxColour *arg2 = 0 ;
15614 wxColour temp2 ;
15615 PyObject * obj0 = 0 ;
15616 PyObject * obj1 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "self",(char *) "c", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15623 {
15624 arg2 = &temp2;
15625 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15626 }
15627 {
15628 PyThreadState* __tstate = wxPyBeginAllowThreads();
15629 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15630
15631 wxPyEndAllowThreads(__tstate);
15632 if (PyErr_Occurred()) SWIG_fail;
15633 }
15634 Py_INCREF(Py_None); resultobj = Py_None;
15635 return resultobj;
15636 fail:
15637 return NULL;
15638}
15639
15640
15641static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15642 PyObject *resultobj;
15643 wxEffects *arg1 = (wxEffects *) 0 ;
15644 wxColour *arg2 = 0 ;
15645 wxColour *arg3 = 0 ;
15646 wxColour *arg4 = 0 ;
15647 wxColour *arg5 = 0 ;
15648 wxColour *arg6 = 0 ;
15649 wxColour temp2 ;
15650 wxColour temp3 ;
15651 wxColour temp4 ;
15652 wxColour temp5 ;
15653 wxColour temp6 ;
15654 PyObject * obj0 = 0 ;
15655 PyObject * obj1 = 0 ;
15656 PyObject * obj2 = 0 ;
15657 PyObject * obj3 = 0 ;
15658 PyObject * obj4 = 0 ;
15659 PyObject * obj5 = 0 ;
15660 char *kwnames[] = {
15661 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15662 };
15663
15664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15666 {
15667 arg2 = &temp2;
15668 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15669 }
15670 {
15671 arg3 = &temp3;
15672 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15673 }
15674 {
15675 arg4 = &temp4;
15676 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15677 }
15678 {
15679 arg5 = &temp5;
15680 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15681 }
15682 {
15683 arg6 = &temp6;
15684 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15685 }
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15689
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 Py_INCREF(Py_None); resultobj = Py_None;
15694 return resultobj;
15695 fail:
15696 return NULL;
15697}
15698
15699
15700static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15701 PyObject *resultobj;
15702 wxEffects *arg1 = (wxEffects *) 0 ;
15703 wxDC *arg2 = 0 ;
15704 wxRect *arg3 = 0 ;
15705 int arg4 = (int) 1 ;
15706 wxRect temp3 ;
15707 PyObject * obj0 = 0 ;
15708 PyObject * obj1 = 0 ;
15709 PyObject * obj2 = 0 ;
15710 char *kwnames[] = {
15711 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15712 };
15713
15714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15716 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15717 if (arg2 == NULL) {
15718 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15719 }
15720 {
15721 arg3 = &temp3;
15722 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15723 }
15724 {
15725 PyThreadState* __tstate = wxPyBeginAllowThreads();
15726 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15727
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 Py_INCREF(Py_None); resultobj = Py_None;
15732 return resultobj;
15733 fail:
15734 return NULL;
15735}
15736
15737
15738static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15739 PyObject *resultobj;
15740 wxEffects *arg1 = (wxEffects *) 0 ;
15741 wxRect *arg2 = 0 ;
15742 wxDC *arg3 = 0 ;
15743 wxBitmap *arg4 = 0 ;
15744 bool result;
15745 wxRect temp2 ;
15746 PyObject * obj0 = 0 ;
15747 PyObject * obj1 = 0 ;
15748 PyObject * obj2 = 0 ;
15749 PyObject * obj3 = 0 ;
15750 char *kwnames[] = {
15751 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15752 };
15753
15754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15756 {
15757 arg2 = &temp2;
15758 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15759 }
15760 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15761 if (arg3 == NULL) {
15762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15763 }
15764 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15765 if (arg4 == NULL) {
15766 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15767 }
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15771
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 resultobj = PyInt_FromLong((long)result);
15776 return resultobj;
15777 fail:
15778 return NULL;
15779}
15780
15781
15782static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15783 PyObject *obj;
15784 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15785 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15786 Py_INCREF(obj);
15787 return Py_BuildValue((char *)"");
15788}
15789static PyMethodDef SwigMethods[] = {
15790 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15791 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15792 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15793 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15794 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15795 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15796 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15797 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15798 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15799 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15800 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15801 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15802 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15803 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15804 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15805 { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS },
15806 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15807 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15808 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15809 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15810 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15811 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15814 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15815 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15816 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15817 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15821 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15822 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15823 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15824 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15825 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15826 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15827 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15828 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15829 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15830 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15831 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15832 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15833 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15834 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15835 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15836 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15837 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15838 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15839 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15840 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15841 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15842 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15843 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15844 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15845 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15846 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15851 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15852 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15854 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15855 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15858 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15867 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15869 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15872 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15877 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15888 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15893 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15896 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15904 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15911 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
15938 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
15952 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
15969 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
15976 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
15985 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16004 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16041 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16048 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16049 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16056 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16078 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16080 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16085 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16088 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16099 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16150 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16213 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16217 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16221 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16223 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16228 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16230 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16232 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16234 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16236 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16242 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16244 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16246 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16248 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16260 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16265 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16270 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16277 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16282 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16297 { NULL, NULL }
16298};
16299
16300
16301/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16302
16303static void *_p_wxControlTo_p_wxWindow(void *x) {
16304 return (void *)((wxWindow *) ((wxControl *) x));
16305}
16306static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16307 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16308}
16309static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16310 return (void *)((wxWindow *) ((wxMenuBar *) x));
16311}
16312static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16313 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16314}
16315static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16316 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16317}
16318static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16319 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16320}
16321static void *_p_wxPenTo_p_wxObject(void *x) {
16322 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16323}
16324static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16325 return (void *)((wxObject *) ((wxRegionIterator *) x));
16326}
16327static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16328 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16329}
16330static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16331 return (void *)((wxObject *) ((wxSizerItem *) x));
16332}
16333static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16334 return (void *)((wxObject *) ((wxColourDatabase *) x));
16335}
16336static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16337 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16338}
16339static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16340 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16341}
16342static void *_p_wxIconTo_p_wxObject(void *x) {
16343 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16344}
16345static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16346 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16347}
16348static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16349 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16350}
16351static void *_p_wxSizerTo_p_wxObject(void *x) {
16352 return (void *)((wxObject *) ((wxSizer *) x));
16353}
16354static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16355 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16356}
16357static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16359}
16360static void *_p_wxPenListTo_p_wxObject(void *x) {
16361 return (void *)((wxObject *) ((wxPenList *) x));
16362}
16363static void *_p_wxEventTo_p_wxObject(void *x) {
16364 return (void *)((wxObject *) ((wxEvent *) x));
16365}
16366static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16367 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16368}
16369static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16370 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16371}
16372static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16373 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16374}
16375static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16376 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16377}
16378static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16379 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16380}
16381static void *_p_wxDCTo_p_wxObject(void *x) {
16382 return (void *)((wxObject *) ((wxDC *) x));
16383}
16384static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16385 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16386}
16387static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16388 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16389}
16390static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16391 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16392}
16393static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16394 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16395}
16396static void *_p_wxControlTo_p_wxObject(void *x) {
16397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16398}
16399static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16400 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16401}
16402static void *_p_wxClientDCTo_p_wxObject(void *x) {
16403 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16404}
16405static void *_p_wxFSFileTo_p_wxObject(void *x) {
16406 return (void *)((wxObject *) ((wxFSFile *) x));
16407}
16408static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16409 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16410}
16411static void *_p_wxRegionTo_p_wxObject(void *x) {
16412 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16413}
16414static void *_p_wxPySizerTo_p_wxObject(void *x) {
16415 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16416}
16417static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16418 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16419}
16420static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16421 return (void *)((wxObject *) ((wxGDIObject *) x));
16422}
16423static void *_p_wxEffectsTo_p_wxObject(void *x) {
16424 return (void *)((wxObject *) ((wxEffects *) x));
16425}
16426static void *_p_wxPyEventTo_p_wxObject(void *x) {
16427 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16428}
16429static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16431}
16432static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16433 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16434}
16435static void *_p_wxShowEventTo_p_wxObject(void *x) {
16436 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16437}
16438static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16439 return (void *)((wxObject *) ((wxMenuItem *) x));
16440}
16441static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16442 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16443}
16444static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16445 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16446}
16447static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16448 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16449}
16450static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16451 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16452}
16453static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16454 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16455}
16456static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16457 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16458}
16459static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16460 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16461}
16462static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16463 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16464}
16465static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16466 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16467}
16468static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16469 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16470}
16471static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16472 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16473}
16474static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16475 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16476}
16477static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16478 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16479}
16480static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16481 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16482}
16483static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16484 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16485}
16486static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16487 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16488}
16489static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16490 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16491}
16492static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16493 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16494}
16495static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16496 return (void *)((wxObject *) ((wxImageHandler *) x));
16497}
16498static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16499 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16500}
16501static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16502 return (void *)((wxObject *) ((wxEvtHandler *) x));
16503}
16504static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16505 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16506}
16507static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16508 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16509}
16510static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16511 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16512}
16513static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16514 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16515}
16516static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16517 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16518}
16519static void *_p_wxImageTo_p_wxObject(void *x) {
16520 return (void *)((wxObject *) ((wxImage *) x));
16521}
16522static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16523 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16524}
16525static void *_p_wxPaletteTo_p_wxObject(void *x) {
16526 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16527}
16528static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16529 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16530}
16531static void *_p_wxImageListTo_p_wxObject(void *x) {
16532 return (void *)((wxObject *) ((wxImageList *) x));
16533}
16534static void *_p_wxCursorTo_p_wxObject(void *x) {
16535 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16536}
16537static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16538 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16539}
16540static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16541 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16542}
16543static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16545}
16546static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16547 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16548}
16549static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16550 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16551}
16552static void *_p_wxWindowTo_p_wxObject(void *x) {
16553 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16554}
16555static void *_p_wxMenuTo_p_wxObject(void *x) {
16556 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16557}
16558static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16560}
16561static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16562 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16563}
16564static void *_p_wxBrushListTo_p_wxObject(void *x) {
16565 return (void *)((wxObject *) ((wxBrushList *) x));
16566}
16567static void *_p_wxPyPenTo_p_wxObject(void *x) {
16568 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16569}
16570static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16571 return (void *)((wxObject *) ((wxFileSystem *) x));
16572}
16573static void *_p_wxBitmapTo_p_wxObject(void *x) {
16574 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16575}
16576static void *_p_wxMaskTo_p_wxObject(void *x) {
16577 return (void *)((wxObject *) ((wxMask *) x));
16578}
16579static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16581}
16582static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16583 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16584}
16585static void *_p_wxPyAppTo_p_wxObject(void *x) {
16586 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16587}
16588static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16589 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16590}
16591static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16592 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16593}
16594static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16595 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16596}
16597static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16598 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16599}
16600static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16601 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16602}
16603static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16604 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16605}
16606static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16607 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16608}
16609static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16610 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16611}
16612static void *_p_wxFontTo_p_wxObject(void *x) {
16613 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16614}
16615static void *_p_wxBrushTo_p_wxObject(void *x) {
16616 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16617}
16618static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16619 return (void *)((wxObject *) ((wxMetaFile *) x));
16620}
16621static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16623}
16624static void *_p_wxColourTo_p_wxObject(void *x) {
16625 return (void *)((wxObject *) ((wxColour *) x));
16626}
16627static void *_p_wxFontListTo_p_wxObject(void *x) {
16628 return (void *)((wxObject *) ((wxFontList *) x));
16629}
16630static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16631 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16632}
16633static void *_p_wxValidatorTo_p_wxObject(void *x) {
16634 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16635}
16636static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16637 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16638}
16639static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16640 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16641}
16642static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16643 return (void *)((wxDC *) ((wxScreenDC *) x));
16644}
16645static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16646 return (void *)((wxDC *) ((wxMirrorDC *) x));
16647}
16648static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16649 return (void *)((wxDC *) ((wxMemoryDC *) x));
16650}
16651static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16652 return (void *)((wxDC *) ((wxWindowDC *) x));
16653}
16654static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16655 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16656}
16657static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16658 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16659}
16660static void *_p_wxClientDCTo_p_wxDC(void *x) {
16661 return (void *)((wxDC *) ((wxClientDC *) x));
16662}
16663static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16664 return (void *)((wxDC *) ((wxPaintDC *) x));
16665}
16666static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16667 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16668}
16669static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16670 return (void *)((wxDC *) ((wxPrinterDC *) x));
16671}
16672static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16673 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16674}
16675static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16676 return (void *)((wxGDIObject *) ((wxIcon *) x));
16677}
16678static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16679 return (void *)((wxGDIObject *) ((wxPalette *) x));
16680}
16681static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16682 return (void *)((wxGDIObject *) ((wxPen *) x));
16683}
16684static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16685 return (void *)((wxGDIObject *) ((wxFont *) x));
16686}
16687static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16688 return (void *)((wxGDIObject *) ((wxCursor *) x));
16689}
16690static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16691 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16692}
16693static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16694 return (void *)((wxGDIObject *) ((wxRegion *) x));
16695}
16696static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16697 return (void *)((wxGDIObject *) ((wxBrush *) x));
16698}
16699static void *_p_wxPyPenTo_p_wxPen(void *x) {
16700 return (void *)((wxPen *) ((wxPyPen *) x));
16701}
16702static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
16703static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16704static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16705static 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}};
16706static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16707static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16708static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16709static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16710static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16711static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16712static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16713static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16714static 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}};
16715static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16716static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16717static 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}};
16718static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
16719static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16720static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16721static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16722static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
16723static 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}};
16724static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16725static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16726static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16727static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16728static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16729static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16730static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16731static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16732static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16733static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
16734static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16735static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16736static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16737static 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}};
16738static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16739static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16740static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16741static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16742static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16743static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16744static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16745static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16746static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16747static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16748static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16749static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16750static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
16751static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
16752static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16753static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16754static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16755static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16756static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16757
16758static swig_type_info *swig_types_initial[] = {
16759_swigt__p_wxPostScriptDC,
16760_swigt__p_wxBrush,
16761_swigt__p_wxColour,
16762_swigt__p_wxDC,
16763_swigt__p_wxMirrorDC,
16764_swigt__p_byte,
16765_swigt__p_wxPyFontEnumerator,
16766_swigt__p_wxIconLocation,
16767_swigt__p_wxImage,
16768_swigt__p_wxMetaFileDC,
16769_swigt__p_wxMask,
16770_swigt__p_wxFont,
16771_swigt__p_wxWindow,
16772_swigt__p_wxSize,
16773_swigt__p_double,
16774_swigt__p_wxMemoryDC,
16775_swigt__p_wxFontMapper,
16776_swigt__p_wxEffects,
16777_swigt__p_wxNativeEncodingInfo,
16778_swigt__p_wxPalette,
16779_swigt__p_wxBitmap,
16780_swigt__p_wxObject,
16781_swigt__p_wxRegionIterator,
16782_swigt__p_wxRect,
16783_swigt__p_wxString,
16784_swigt__p_wxPrinterDC,
16785_swigt__p_wxIconBundle,
16786_swigt__p_wxPoint,
16787_swigt__p_wxDash,
16788_swigt__p_wxScreenDC,
16789_swigt__p_wxCursor,
16790_swigt__p_wxClientDC,
16791_swigt__p_wxBufferedDC,
16792_swigt__p_wxImageList,
16793_swigt__p_unsigned_char,
16794_swigt__p_wxGDIObject,
16795_swigt__p_wxLocale,
16796_swigt__p_wxIcon,
16797_swigt__p_wxRegion,
16798_swigt__p_wxLanguageInfo,
16799_swigt__p_wxConfigBase,
16800_swigt__p_wxWindowDC,
16801_swigt__p_wxPrintData,
16802_swigt__p_wxBrushList,
16803_swigt__p_wxFontList,
16804_swigt__p_wxPen,
16805_swigt__p_wxBufferedPaintDC,
16806_swigt__p_wxPaintDC,
16807_swigt__p_wxPenList,
16808_swigt__p_wxPyPen,
16809_swigt__p_int,
16810_swigt__p_wxMetaFile,
16811_swigt__p_wxNativeFontInfo,
16812_swigt__p_wxEncodingConverter,
16813_swigt__p_wxColourDatabase,
168140
16815};
16816
16817
16818/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16819
16820static swig_const_info swig_const_table[] = {
16821{ SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16822{ SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16823{ SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16824{ SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16825{ SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16826{ SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16827{ SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16828{ SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16829{ SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16830{ SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16831{ SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16832{ SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16833{ SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16834{ SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16835{ SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16836{ SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16837{ SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16838{ SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16839{ SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16840{ SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16841{ SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16842{ SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16843{ SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16844{ SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16845{ SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16846{ SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16847{ SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16848{ SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16849{ SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16850{ SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16851{ SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16852{ SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16853{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16854{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16855{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16856{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16857{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16858{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16859{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16860{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16861{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16862{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16863{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16864{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16865{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16866{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16867{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16868{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16869{ SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16870{ SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16871{ SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16872{ SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16873{ SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16874{ SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16875{ SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16876{ SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16877{ SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16878{ SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16879{ SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16880{ SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16881{ SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16882{ SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16883{ SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16884{ SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16885{ SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16886{ SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16887{ SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16888{ SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16889{ SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16890{ SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16891{ SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16892{ SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16893{ SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16894{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16895{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16896{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16897{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16898{ SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16899{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16900{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16901{ SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16902{ SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16903{ SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16904{ SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16905{ SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16906{ SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16907{ SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16908{ SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16909{ SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16910{ SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16911{ SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16912{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16913{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16914{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16915{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16916{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16917{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16918{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16919{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16920{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16921{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16922{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16923{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16924{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16925{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16926{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16927{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
16928{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
16929{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
16930{ SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
16931{ SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
16932{ SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
16933{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
16934{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
16935{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
16936{ SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
16937{ SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
16938{ SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
16939{ SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
16940{ SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
16941{ SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
16942{ SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
16943{ SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
16944{ SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
16945{ SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
16946{ SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
16947{ SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
16948{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
16949{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
16950{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
16951{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
16952{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
16953{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
16954{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
16955{ SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
16956{ SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
16957{ SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
16958{ SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
16959{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
16960{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
16961{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
16962{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
16963{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
16964{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
16965{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
16966{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
16967{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
16968{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
16969{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
16970{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
16971{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
16972{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
16973{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
16974{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
16975{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
16976{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
16977{ SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
16978{ SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
16979{ SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
16980{ SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
16981{ SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
16982{ SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
16983{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
16984{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
16985{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
16986{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
16987{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
16988{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
16989{ SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
16990{ SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
16991{ SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
16992{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
16993{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
16994{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
16995{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
16996{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
16997{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
16998{ SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
16999{ SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17000{ SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17001{ SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17002{ SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17003{ SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17004{ SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17005{ SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17006{ SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17007{ SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17008{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17009{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17010{ SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17011{ SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17012{ SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17013{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17014{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17015{ SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17016{ SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17017{ SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17018{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17019{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17020{ SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17021{ SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17022{ SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17023{ SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17024{ SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17025{ SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17026{ SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17027{ SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17028{ SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17029{ SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17030{ SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17031{ SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17032{ SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17033{ SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17034{ SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17035{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17036{ SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17037{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17038{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17039{ SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17040{ SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17041{ SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17042{ SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17043{ SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17044{ SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17045{ SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17046{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17047{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17048{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17049{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17050{ SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17051{ SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17052{ SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17053{ SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17054{ SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17055{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17056{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17057{ SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17058{ SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17059{ SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17060{ SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17061{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17062{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17063{ SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17064{ SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17065{ SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17066{ SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17067{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17068{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17069{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17070{ SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17071{ SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17072{ SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17073{ SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17074{ SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17075{ SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17076{ SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17077{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17078{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17079{ SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17080{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17081{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17082{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17083{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17084{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17085{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17086{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17087{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17088{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17089{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17090{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17091{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17092{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17093{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17094{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17095{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17096{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17097{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17098{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17099{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17100{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17101{ SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17102{ SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17103{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17104{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17105{ SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17106{ SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17107{ SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17108{ SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17109{ SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17110{ SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17111{ SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17112{ SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17113{ SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17114{ SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17115{ SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17116{ SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17117{ SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17118{ SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17119{ SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17120{ SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17121{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17122{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17123{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17124{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17125{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17126{ SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17127{ SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17128{ SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17129{ SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17130{ SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17131{ SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17132{ SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17133{ SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17134{ SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17135{ SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17136{ SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17137{ SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17138{ SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17139{ SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17140{ SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17141{ SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17142{ SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17143{ SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17144{ SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17145{ SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17146{ SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17147{ SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17148{ SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17149{ SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17150{ SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17151{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17152{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17153{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17154{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17155{ SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17156{ SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17157{ SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17158{0}};
17159
17160#ifdef __cplusplus
17161}
17162#endif
17163
17164#ifdef __cplusplus
17165extern "C"
17166#endif
17167SWIGEXPORT(void) SWIG_init(void) {
17168 static PyObject *SWIG_globals = 0;
17169 static int typeinit = 0;
17170 PyObject *m, *d;
17171 int i;
17172 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17173 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17174 d = PyModule_GetDict(m);
17175
17176 if (!typeinit) {
17177 for (i = 0; swig_types_initial[i]; i++) {
17178 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17179 }
17180 typeinit = 1;
17181 }
17182 SWIG_InstallConstants(d,swig_const_table);
17183
17184
17185 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17186
17187 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17188 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17189 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17190 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17191 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17192 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17193 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17194 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17195 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17196 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17197 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17198 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17199 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17200 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17201 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17202 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17203 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17204 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17205 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17206 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17207 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17208 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17209 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17210 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17211 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17212 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17213 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17214 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17215 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17216 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17217 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17218 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17219 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17220 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17221 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17222 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17223 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17224 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17225 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17226 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17227 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17228 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17229 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17230 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17231 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17232 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17233 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17234
17235 // Work around a chicken/egg problem in drawlist.cpp
17236 wxPyDrawList_SetAPIPtr();
17237
17238}
17239