]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi_wrap.cpp
Little changes to match recent changes in wxWindows
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
CommitLineData
d14a1e28
RD
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
cc6dd355
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
d14a1e28
RD
50
51/***********************************************************************
52 * common.swg for wxPython
53 *
54 * Include only the function prototypes and such from SWIG's common.swg,
55 * but not the runtime functions themselves. This helps keep the
56 * wrapper files clean of unnecessary stuff that is in the libpy.c file
57 * anyway.
58 *
59 ************************************************************************/
60
61#include <string.h>
62
cc6dd355
RD
63#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
64# if defined(_MSC_VER) || defined(__GNUC__)
65# if defined(STATIC_LINKED)
66# define SWIGEXPORT(a) a
67# define SWIGIMPORT(a) extern a
68# else
69# define SWIGEXPORT(a) __declspec(dllexport) a
70# define SWIGIMPORT(a) extern a
71# endif
72# else
73# if defined(__BORLANDC__)
74# define SWIGEXPORT(a) a _export
75# define SWIGIMPORT(a) a _export
76# else
77# define SWIGEXPORT(a) a
78# define SWIGIMPORT(a) a
79# endif
80# endif
d14a1e28 81#else
cc6dd355
RD
82# define SWIGEXPORT(a) a
83# define SWIGIMPORT(a) a
d14a1e28
RD
84#endif
85
86#ifdef SWIG_GLOBAL
cc6dd355 87# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 88#else
cc6dd355 89# define SWIGRUNTIME(a) static a
d14a1e28
RD
90#endif
91
d14a1e28
RD
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 {
cc6dd355 100 const char *name;
d14a1e28
RD
101 swig_converter_func converter;
102 const char *str;
cc6dd355 103 void *clientdata;
d14a1e28
RD
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 *);
cc6dd355
RD
117SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
118SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
119
120
121#ifdef __cplusplus
122}
9d1d5697 123
d14a1e28
RD
124#endif
125
cc6dd355 126
d14a1e28
RD
127/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
d14a1e28
RD
137#include "Python.h"
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
d14a1e28
RD
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)
d14a1e28
RD
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187
cc6dd355
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198
199/* Contract support */
200
9d1d5697 201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 202
d14a1e28
RD
203#ifdef __cplusplus
204}
205#endif
206
207
208
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
e811c8ce
RD
212#define SWIGTYPE_p_wxBrush swig_types[1]
213#define SWIGTYPE_p_wxColour swig_types[2]
214#define SWIGTYPE_p_wxDC swig_types[3]
215#define SWIGTYPE_p_wxMirrorDC swig_types[4]
216#define SWIGTYPE_p_byte swig_types[5]
217#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
218#define SWIGTYPE_p_wxIconLocation swig_types[7]
219#define SWIGTYPE_p_wxImage swig_types[8]
220#define SWIGTYPE_p_wxMetaFileDC swig_types[9]
221#define SWIGTYPE_p_wxMask swig_types[10]
222#define SWIGTYPE_p_wxFont swig_types[11]
223#define SWIGTYPE_p_wxWindow swig_types[12]
224#define SWIGTYPE_p_wxSize swig_types[13]
225#define SWIGTYPE_p_double swig_types[14]
226#define SWIGTYPE_p_wxMemoryDC swig_types[15]
227#define SWIGTYPE_p_wxFontMapper swig_types[16]
228#define SWIGTYPE_p_wxEffects swig_types[17]
229#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
230#define SWIGTYPE_p_wxPalette swig_types[19]
231#define SWIGTYPE_p_wxBitmap swig_types[20]
232#define SWIGTYPE_p_wxObject swig_types[21]
233#define SWIGTYPE_p_wxRegionIterator swig_types[22]
234#define SWIGTYPE_p_wxRect swig_types[23]
235#define SWIGTYPE_p_wxString swig_types[24]
236#define SWIGTYPE_p_wxPrinterDC swig_types[25]
237#define SWIGTYPE_p_wxIconBundle swig_types[26]
238#define SWIGTYPE_p_wxPoint swig_types[27]
239#define SWIGTYPE_p_wxDash swig_types[28]
240#define SWIGTYPE_p_wxScreenDC swig_types[29]
241#define SWIGTYPE_p_wxCursor swig_types[30]
242#define SWIGTYPE_p_wxClientDC swig_types[31]
243#define SWIGTYPE_p_wxBufferedDC swig_types[32]
244#define SWIGTYPE_p_wxImageList swig_types[33]
245#define SWIGTYPE_p_unsigned_char swig_types[34]
246#define SWIGTYPE_p_wxGDIObject swig_types[35]
247#define SWIGTYPE_p_wxLocale swig_types[36]
248#define SWIGTYPE_p_wxIcon swig_types[37]
249#define SWIGTYPE_p_wxRegion swig_types[38]
250#define SWIGTYPE_p_wxLanguageInfo swig_types[39]
251#define SWIGTYPE_p_wxConfigBase swig_types[40]
252#define SWIGTYPE_p_wxWindowDC swig_types[41]
253#define SWIGTYPE_p_wxPrintData swig_types[42]
254#define SWIGTYPE_p_wxBrushList swig_types[43]
255#define SWIGTYPE_p_wxFontList swig_types[44]
256#define SWIGTYPE_p_wxPen swig_types[45]
257#define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
258#define SWIGTYPE_p_wxPaintDC swig_types[47]
259#define SWIGTYPE_p_wxPenList swig_types[48]
260#define SWIGTYPE_p_wxPyPen swig_types[49]
261#define SWIGTYPE_p_int swig_types[50]
262#define SWIGTYPE_p_wxMetaFile swig_types[51]
263#define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
264#define SWIGTYPE_p_wxEncodingConverter swig_types[53]
265#define SWIGTYPE_p_wxColourDatabase swig_types[54]
266static swig_type_info *swig_types[56];
d14a1e28
RD
267
268/* -------- TYPES TABLE (END) -------- */
269
270
271/*-----------------------------------------------
272 @(target):= _gdi.so
273 ------------------------------------------------*/
274#define SWIG_init init_gdi
275
276#define SWIG_name "_gdi"
277
278#include "wx/wxPython/wxPython.h"
279#include "wx/wxPython/pyclasses.h"
280
281 DECLARE_DEF_STRING(EmptyString);
282
283PyObject *wxColour_Get(wxColour *self){
284 PyObject* rv = PyTuple_New(3);
285 int red = -1;
286 int green = -1;
287 int blue = -1;
288 if (self->Ok()) {
289 red = self->Red();
290 green = self->Green();
291 blue = self->Blue();
292 }
293 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
294 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
295 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
296 return rv;
297 }
298
299static PyObject* t_output_helper(PyObject* target, PyObject* o) {
300 PyObject* o2;
301 PyObject* o3;
302
303 if (!target) {
304 target = o;
305 } else if (target == Py_None) {
306 Py_DECREF(Py_None);
307 target = o;
308 } else {
309 if (!PyTuple_Check(target)) {
310 o2 = target;
311 target = PyTuple_New(1);
312 PyTuple_SetItem(target, 0, o2);
313 }
314 o3 = PyTuple_New(1);
315 PyTuple_SetItem(o3, 0, o);
316
317 o2 = target;
318 target = PySequence_Concat(o2, o3);
319 Py_DECREF(o2);
320 Py_DECREF(o3);
321 }
322 return target;
323}
324
325PyObject *wxPen_GetDashes(wxPen *self){
326 wxDash* dashes;
327 int count = self->GetDashes(&dashes);
328 wxPyBeginBlockThreads();
329 PyObject* retval = PyList_New(0);
330 for (int x=0; x<count; x++)
331 PyList_Append(retval, PyInt_FromLong(dashes[x]));
332 wxPyEndBlockThreads();
333 return retval;
334 }
335
336wxPyPen::~wxPyPen()
337{
338 if (m_dash)
339 delete [] m_dash;
340}
341
342void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
343{
344 if (m_dash)
345 delete [] m_dash;
346 m_dash = new wxDash[nb_dashes];
347 for (int i=0; i<nb_dashes; i++) {
348 m_dash[i] = dash[i];
349 }
350 wxPen::SetDashes(nb_dashes, m_dash);
351}
352
353
354#include <wx/image.h>
355
356 static char** ConvertListOfStrings(PyObject* listOfStrings) {
357 char** cArray = NULL;
358 int count;
359
360 if (!PyList_Check(listOfStrings)) {
361 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
362 return NULL;
363 }
364 count = PyList_Size(listOfStrings);
365 cArray = new char*[count];
366
367 for(int x=0; x<count; x++) {
368 // TODO: Need some validation and error checking here
369 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
370 }
371 return cArray;
372 }
373
374
375wxBitmap *new_wxBitmap(PyObject *listOfStrings){
376 char** cArray = NULL;
377 wxBitmap* bmp;
378
379 cArray = ConvertListOfStrings(listOfStrings);
380 if (! cArray)
381 return NULL;
382 bmp = new wxBitmap(cArray);
383 delete [] cArray;
384 return bmp;
385 }
386wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
387 char* buf;
388 int length;
389 PyString_AsStringAndSize(bits, &buf, &length);
390 return new wxBitmap(buf, width, height, depth);
391 }
392void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
393 wxMask *mask = new wxMask(*self, colour);
394 self->SetMask(mask);
395 }
396
397#include <wx/iconbndl.h>
398
399wxIcon *new_wxIcon(wxBitmap const &bmp){
400 wxIcon* icon = new wxIcon();
401 icon->CopyFromBitmap(bmp);
402 return icon;
403 }
404wxIcon *new_wxIcon(PyObject *listOfStrings){
405 char** cArray = NULL;
406 wxIcon* icon;
407
408 cArray = ConvertListOfStrings(listOfStrings);
409 if (! cArray)
410 return NULL;
411 icon = new wxIcon(cArray);
412 delete [] cArray;
413 return icon;
414 }
415wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
416
417
418
419 return new wxIconLocation(*filename);
420
421 }
422void wxIconLocation_SetIndex(wxIconLocation *self,int num){
423
424
425
426 // do nothing
427
428 }
429int wxIconLocation_GetIndex(wxIconLocation *self){
430
431
432
433 return -1;
434
435 }
436wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
437
e811c8ce 438 wxCHECK_MSG(False, NULL,
d14a1e28
RD
439 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
440
441
442
443 }
444wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
445 char* bitsbuf;
446 char* maskbuf = NULL;
447 int length;
448 PyString_AsStringAndSize(bits, &bitsbuf, &length);
449 if (maskBits)
450 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
451 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
452 }
453
454
455void wxRegionIterator_Next(wxRegionIterator *self){
456 (*self) ++;
457 }
458bool wxRegionIterator___nonzero__(wxRegionIterator *self){
459 return self->operator bool();
460 }
461
462#include <wx/fontutil.h>
463#include <wx/fontmap.h>
464#include <wx/fontenum.h>
465
466wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
467 return self->ToString();
468 }
469
470 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
471 static wxNativeEncodingInfo info;
472 if ( wxGetNativeFontEncoding(encoding, &info) )
473 return &info;
474 else
475 return NULL;
476 }
477
478PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
479 wxFontEncoding alt_enc;
480 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
481 return PyInt_FromLong(alt_enc);
482 else {
483 Py_INCREF(Py_None);
484 return Py_None;
485 }
486 }
487wxFont *new_wxFont(wxString const &info){
488 wxNativeFontInfo nfi;
489 nfi.FromString(info);
490 return new wxFont(nfi);
491 }
492wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
493 return wxFont::New(pointSize, family, flags, face, encoding);
494 }
495
496class wxPyFontEnumerator : public wxFontEnumerator {
497public:
498 wxPyFontEnumerator() {}
499 ~wxPyFontEnumerator() {}
500
501 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
502 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
503
504 PYPRIVATE;
505};
506
507IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
508IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
509
510
511PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
512 wxArrayString* arr = self->GetEncodings();
513 return wxArrayString2PyList_helper(*arr);
514 }
515PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
516 wxArrayString* arr = self->GetFacenames();
517 return wxArrayString2PyList_helper(*arr);
518 }
519
520
521
522#include "wx/wxPython/pydrawxxx.h"
523
e811c8ce 524wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
d14a1e28
RD
525 wxColour col;
526 self->GetPixel(x, y, &col);
527 return col;
528 }
529wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
530 wxColour col;
531 self->GetPixel(pt, &col);
532 return col;
533 }
534wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
535 wxRect rv;
536 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
537 return rv;
538 }
539wxRect wxDC_GetClippingRect(wxDC *self){
540 wxRect rect;
541 self->GetClippingBox(rect);
542 return rect;
543 }
544PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
545 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
546 }
547PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
548 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
549 }
550PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
551 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
552 }
553PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
554 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
555 }
556PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
557 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
558 }
559PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
560 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
561 }
562
563static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
564 *x1 = dc->MinX();
565 *y1 = dc->MinY();
566 *x2 = dc->MaxX();
567 *y2 = dc->MaxY();
568}
569
570
571#include <wx/dcps.h>
572
573
574class wxMetaFile : public wxObject {
575public:
576 wxMetaFile(const wxString&)
577 { PyErr_SetNone(PyExc_NotImplementedError); }
578};
579
580class wxMetaFileDC : public wxClientDC {
581public:
582 wxMetaFileDC(const wxString&, int, int, const wxString&)
583 { PyErr_SetNone(PyExc_NotImplementedError); }
584};
585
586
587
588class wxPrinterDC : public wxClientDC {
589public:
590 wxPrinterDC(const wxPrintData&)
591 { PyErr_SetNone(PyExc_NotImplementedError); }
592
593// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
594// { PyErr_SetNone(PyExc_NotImplementedError); }
595};
596
597
598
599void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
600 self->AddColour(name, wxColour(red, green, blue));
601 }
602
d14a1e28
RD
603#include <wx/effects.h>
604
605#ifdef __cplusplus
606extern "C" {
607#endif
608static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject *resultobj;
610 wxGDIObject *result;
611 char *kwnames[] = {
612 NULL
613 };
614
615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
616 {
617 PyThreadState* __tstate = wxPyBeginAllowThreads();
618 result = (wxGDIObject *)new wxGDIObject();
619
620 wxPyEndAllowThreads(__tstate);
621 if (PyErr_Occurred()) SWIG_fail;
622 }
623 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
624 return resultobj;
625 fail:
626 return NULL;
627}
628
629
630static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
631 PyObject *resultobj;
632 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
633 PyObject * obj0 = 0 ;
634 char *kwnames[] = {
635 (char *) "self", NULL
636 };
637
638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
640 {
641 PyThreadState* __tstate = wxPyBeginAllowThreads();
642 delete arg1;
643
644 wxPyEndAllowThreads(__tstate);
645 if (PyErr_Occurred()) SWIG_fail;
646 }
647 Py_INCREF(Py_None); resultobj = Py_None;
648 return resultobj;
649 fail:
650 return NULL;
651}
652
653
654static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
655 PyObject *resultobj;
656 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
657 bool result;
658 PyObject * obj0 = 0 ;
659 char *kwnames[] = {
660 (char *) "self", NULL
661 };
662
663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
665 {
666 PyThreadState* __tstate = wxPyBeginAllowThreads();
667 result = (bool)(arg1)->GetVisible();
668
669 wxPyEndAllowThreads(__tstate);
670 if (PyErr_Occurred()) SWIG_fail;
671 }
672 resultobj = PyInt_FromLong((long)result);
673 return resultobj;
674 fail:
675 return NULL;
676}
677
678
679static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
680 PyObject *resultobj;
681 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
682 bool arg2 ;
683 PyObject * obj0 = 0 ;
684 PyObject * obj1 = 0 ;
685 char *kwnames[] = {
686 (char *) "self",(char *) "visible", NULL
687 };
688
689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
691 arg2 = PyInt_AsLong(obj1) ? true : false;
692 if (PyErr_Occurred()) SWIG_fail;
693 {
694 PyThreadState* __tstate = wxPyBeginAllowThreads();
695 (arg1)->SetVisible(arg2);
696
697 wxPyEndAllowThreads(__tstate);
698 if (PyErr_Occurred()) SWIG_fail;
699 }
700 Py_INCREF(Py_None); resultobj = Py_None;
701 return resultobj;
702 fail:
703 return NULL;
704}
705
706
707static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
708 PyObject *resultobj;
709 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
710 bool result;
711 PyObject * obj0 = 0 ;
712 char *kwnames[] = {
713 (char *) "self", NULL
714 };
715
716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
718 {
719 PyThreadState* __tstate = wxPyBeginAllowThreads();
720 result = (bool)(arg1)->IsNull();
721
722 wxPyEndAllowThreads(__tstate);
723 if (PyErr_Occurred()) SWIG_fail;
724 }
725 resultobj = PyInt_FromLong((long)result);
726 return resultobj;
727 fail:
728 return NULL;
729}
730
731
732static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
733 PyObject *obj;
734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
735 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
736 Py_INCREF(obj);
737 return Py_BuildValue((char *)"");
738}
739static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
740 PyObject *resultobj;
741 unsigned char arg1 = (unsigned char) 0 ;
742 unsigned char arg2 = (unsigned char) 0 ;
743 unsigned char arg3 = (unsigned char) 0 ;
744 wxColour *result;
745 PyObject * obj0 = 0 ;
746 PyObject * obj1 = 0 ;
747 PyObject * obj2 = 0 ;
748 char *kwnames[] = {
749 (char *) "red",(char *) "green",(char *) "blue", NULL
750 };
751
752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
753 if (obj0) {
754 arg1 = (unsigned char) PyInt_AsLong(obj0);
755 if (PyErr_Occurred()) SWIG_fail;
756 }
757 if (obj1) {
758 arg2 = (unsigned char) PyInt_AsLong(obj1);
759 if (PyErr_Occurred()) SWIG_fail;
760 }
761 if (obj2) {
762 arg3 = (unsigned char) PyInt_AsLong(obj2);
763 if (PyErr_Occurred()) SWIG_fail;
764 }
765 {
766 PyThreadState* __tstate = wxPyBeginAllowThreads();
767 result = (wxColour *)new wxColour(arg1,arg2,arg3);
768
769 wxPyEndAllowThreads(__tstate);
770 if (PyErr_Occurred()) SWIG_fail;
771 }
772 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
773 return resultobj;
774 fail:
775 return NULL;
776}
777
778
779static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
780 PyObject *resultobj;
781 wxColour *arg1 = (wxColour *) 0 ;
782 PyObject * obj0 = 0 ;
783 char *kwnames[] = {
784 (char *) "self", NULL
785 };
786
787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
789 {
790 PyThreadState* __tstate = wxPyBeginAllowThreads();
791 delete arg1;
792
793 wxPyEndAllowThreads(__tstate);
794 if (PyErr_Occurred()) SWIG_fail;
795 }
796 Py_INCREF(Py_None); resultobj = Py_None;
797 return resultobj;
798 fail:
799 return NULL;
800}
801
802
803static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
804 PyObject *resultobj;
805 wxString *arg1 = 0 ;
806 wxColour *result;
e811c8ce 807 bool temp1 = False ;
d14a1e28
RD
808 PyObject * obj0 = 0 ;
809 char *kwnames[] = {
810 (char *) "colorName", NULL
811 };
812
813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
814 {
815 arg1 = wxString_in_helper(obj0);
816 if (arg1 == NULL) SWIG_fail;
e811c8ce 817 temp1 = True;
d14a1e28
RD
818 }
819 {
820 PyThreadState* __tstate = wxPyBeginAllowThreads();
821 result = (wxColour *)new wxColour((wxString const &)*arg1);
822
823 wxPyEndAllowThreads(__tstate);
824 if (PyErr_Occurred()) SWIG_fail;
825 }
826 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
827 {
828 if (temp1)
829 delete arg1;
830 }
831 return resultobj;
832 fail:
833 {
834 if (temp1)
835 delete arg1;
836 }
837 return NULL;
838}
839
840
841static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
842 PyObject *resultobj;
843 unsigned long arg1 ;
844 wxColour *result;
845 PyObject * obj0 = 0 ;
846 char *kwnames[] = {
847 (char *) "colRGB", NULL
848 };
849
850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
851 arg1 = (unsigned long) PyInt_AsLong(obj0);
852 if (PyErr_Occurred()) SWIG_fail;
853 {
854 PyThreadState* __tstate = wxPyBeginAllowThreads();
855 result = (wxColour *)new wxColour(arg1);
856
857 wxPyEndAllowThreads(__tstate);
858 if (PyErr_Occurred()) SWIG_fail;
859 }
860 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
861 return resultobj;
862 fail:
863 return NULL;
864}
865
866
867static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
868 PyObject *resultobj;
869 wxColour *arg1 = (wxColour *) 0 ;
870 unsigned char result;
871 PyObject * obj0 = 0 ;
872 char *kwnames[] = {
873 (char *) "self", NULL
874 };
875
876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
878 {
879 PyThreadState* __tstate = wxPyBeginAllowThreads();
880 result = (unsigned char)(arg1)->Red();
881
882 wxPyEndAllowThreads(__tstate);
883 if (PyErr_Occurred()) SWIG_fail;
884 }
885 resultobj = PyInt_FromLong((long)result);
886 return resultobj;
887 fail:
888 return NULL;
889}
890
891
892static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
893 PyObject *resultobj;
894 wxColour *arg1 = (wxColour *) 0 ;
895 unsigned char result;
896 PyObject * obj0 = 0 ;
897 char *kwnames[] = {
898 (char *) "self", NULL
899 };
900
901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
903 {
904 PyThreadState* __tstate = wxPyBeginAllowThreads();
905 result = (unsigned char)(arg1)->Green();
906
907 wxPyEndAllowThreads(__tstate);
908 if (PyErr_Occurred()) SWIG_fail;
909 }
910 resultobj = PyInt_FromLong((long)result);
911 return resultobj;
912 fail:
913 return NULL;
914}
915
916
917static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
918 PyObject *resultobj;
919 wxColour *arg1 = (wxColour *) 0 ;
920 unsigned char result;
921 PyObject * obj0 = 0 ;
922 char *kwnames[] = {
923 (char *) "self", NULL
924 };
925
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
928 {
929 PyThreadState* __tstate = wxPyBeginAllowThreads();
930 result = (unsigned char)(arg1)->Blue();
931
932 wxPyEndAllowThreads(__tstate);
933 if (PyErr_Occurred()) SWIG_fail;
934 }
935 resultobj = PyInt_FromLong((long)result);
936 return resultobj;
937 fail:
938 return NULL;
939}
940
941
942static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
943 PyObject *resultobj;
944 wxColour *arg1 = (wxColour *) 0 ;
945 bool result;
946 PyObject * obj0 = 0 ;
947 char *kwnames[] = {
948 (char *) "self", NULL
949 };
950
951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
953 {
954 PyThreadState* __tstate = wxPyBeginAllowThreads();
955 result = (bool)(arg1)->Ok();
956
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) SWIG_fail;
959 }
960 resultobj = PyInt_FromLong((long)result);
961 return resultobj;
962 fail:
963 return NULL;
964}
965
966
967static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
968 PyObject *resultobj;
969 wxColour *arg1 = (wxColour *) 0 ;
970 unsigned char arg2 ;
971 unsigned char arg3 ;
972 unsigned char arg4 ;
973 PyObject * obj0 = 0 ;
974 PyObject * obj1 = 0 ;
975 PyObject * obj2 = 0 ;
976 PyObject * obj3 = 0 ;
977 char *kwnames[] = {
978 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
979 };
980
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
983 arg2 = (unsigned char) PyInt_AsLong(obj1);
984 if (PyErr_Occurred()) SWIG_fail;
985 arg3 = (unsigned char) PyInt_AsLong(obj2);
986 if (PyErr_Occurred()) SWIG_fail;
987 arg4 = (unsigned char) PyInt_AsLong(obj3);
988 if (PyErr_Occurred()) SWIG_fail;
989 {
990 PyThreadState* __tstate = wxPyBeginAllowThreads();
991 (arg1)->Set(arg2,arg3,arg4);
992
993 wxPyEndAllowThreads(__tstate);
994 if (PyErr_Occurred()) SWIG_fail;
995 }
996 Py_INCREF(Py_None); resultobj = Py_None;
997 return resultobj;
998 fail:
999 return NULL;
1000}
1001
1002
1003static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) {
1004 PyObject *resultobj;
1005 wxColour *arg1 = (wxColour *) 0 ;
1006 unsigned long arg2 ;
1007 PyObject * obj0 = 0 ;
1008 PyObject * obj1 = 0 ;
1009 char *kwnames[] = {
1010 (char *) "self",(char *) "colRGB", NULL
1011 };
1012
1013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail;
1014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1015 arg2 = (unsigned long) PyInt_AsLong(obj1);
1016 if (PyErr_Occurred()) SWIG_fail;
1017 {
1018 PyThreadState* __tstate = wxPyBeginAllowThreads();
1019 (arg1)->Set(arg2);
1020
1021 wxPyEndAllowThreads(__tstate);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 Py_INCREF(Py_None); resultobj = Py_None;
1025 return resultobj;
1026 fail:
1027 return NULL;
1028}
1029
1030
1031static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1032 PyObject *resultobj;
1033 wxColour *arg1 = (wxColour *) 0 ;
1034 wxColour *arg2 = 0 ;
1035 bool result;
1036 wxColour temp2 ;
1037 PyObject * obj0 = 0 ;
1038 PyObject * obj1 = 0 ;
1039 char *kwnames[] = {
1040 (char *) "self",(char *) "colour", NULL
1041 };
1042
1043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1045 {
1046 arg2 = &temp2;
1047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1048 }
1049 {
1050 PyThreadState* __tstate = wxPyBeginAllowThreads();
1051 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1052
1053 wxPyEndAllowThreads(__tstate);
1054 if (PyErr_Occurred()) SWIG_fail;
1055 }
1056 resultobj = PyInt_FromLong((long)result);
1057 return resultobj;
1058 fail:
1059 return NULL;
1060}
1061
1062
1063static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1064 PyObject *resultobj;
1065 wxColour *arg1 = (wxColour *) 0 ;
1066 wxColour *arg2 = 0 ;
1067 bool result;
1068 wxColour temp2 ;
1069 PyObject * obj0 = 0 ;
1070 PyObject * obj1 = 0 ;
1071 char *kwnames[] = {
1072 (char *) "self",(char *) "colour", NULL
1073 };
1074
1075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1077 {
1078 arg2 = &temp2;
1079 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1080 }
1081 {
1082 PyThreadState* __tstate = wxPyBeginAllowThreads();
1083 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1084
1085 wxPyEndAllowThreads(__tstate);
1086 if (PyErr_Occurred()) SWIG_fail;
1087 }
1088 resultobj = PyInt_FromLong((long)result);
1089 return resultobj;
1090 fail:
1091 return NULL;
1092}
1093
1094
1095static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1096 PyObject *resultobj;
1097 wxColour *arg1 = (wxColour *) 0 ;
1098 PyObject *result;
1099 PyObject * obj0 = 0 ;
1100 char *kwnames[] = {
1101 (char *) "self", NULL
1102 };
1103
1104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 result = (PyObject *)wxColour_Get(arg1);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 resultobj = result;
1114 return resultobj;
1115 fail:
1116 return NULL;
1117}
1118
1119
1120static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1121 PyObject *obj;
1122 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1123 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1124 Py_INCREF(obj);
1125 return Py_BuildValue((char *)"");
1126}
1127static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1128 PyObject *resultobj;
1129 int arg1 ;
1130 unsigned char *arg2 = (unsigned char *) 0 ;
1131 unsigned char *arg3 = (unsigned char *) 0 ;
1132 unsigned char *arg4 = (unsigned char *) 0 ;
1133 wxPalette *result;
1134 PyObject * obj1 = 0 ;
1135 PyObject * obj2 = 0 ;
1136 PyObject * obj3 = 0 ;
1137 char *kwnames[] = {
1138 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1139 };
1140
1141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1142 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1143 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1144 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1145 {
1146 PyThreadState* __tstate = wxPyBeginAllowThreads();
1147 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1148
1149 wxPyEndAllowThreads(__tstate);
1150 if (PyErr_Occurred()) SWIG_fail;
1151 }
1152 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1153 return resultobj;
1154 fail:
1155 return NULL;
1156}
1157
1158
1159static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1160 PyObject *resultobj;
1161 wxPalette *arg1 = (wxPalette *) 0 ;
1162 PyObject * obj0 = 0 ;
1163 char *kwnames[] = {
1164 (char *) "self", NULL
1165 };
1166
1167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1169 {
1170 PyThreadState* __tstate = wxPyBeginAllowThreads();
1171 delete arg1;
1172
1173 wxPyEndAllowThreads(__tstate);
1174 if (PyErr_Occurred()) SWIG_fail;
1175 }
1176 Py_INCREF(Py_None); resultobj = Py_None;
1177 return resultobj;
1178 fail:
1179 return NULL;
1180}
1181
1182
1183static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1184 PyObject *resultobj;
1185 wxPalette *arg1 = (wxPalette *) 0 ;
1186 byte arg2 ;
1187 byte arg3 ;
1188 byte arg4 ;
1189 int result;
1190 PyObject * obj0 = 0 ;
1191 PyObject * obj1 = 0 ;
1192 PyObject * obj2 = 0 ;
1193 PyObject * obj3 = 0 ;
1194 char *kwnames[] = {
1195 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1196 };
1197
1198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1200 arg2 = (byte) PyInt_AsLong(obj1);
1201 if (PyErr_Occurred()) SWIG_fail;
1202 arg3 = (byte) PyInt_AsLong(obj2);
1203 if (PyErr_Occurred()) SWIG_fail;
1204 arg4 = (byte) PyInt_AsLong(obj3);
1205 if (PyErr_Occurred()) SWIG_fail;
1206 {
1207 PyThreadState* __tstate = wxPyBeginAllowThreads();
1208 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1209
1210 wxPyEndAllowThreads(__tstate);
1211 if (PyErr_Occurred()) SWIG_fail;
1212 }
1213 resultobj = PyInt_FromLong((long)result);
1214 return resultobj;
1215 fail:
1216 return NULL;
1217}
1218
1219
1220static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1221 PyObject *resultobj;
1222 wxPalette *arg1 = (wxPalette *) 0 ;
1223 int arg2 ;
1224 byte *arg3 = (byte *) 0 ;
1225 byte *arg4 = (byte *) 0 ;
1226 byte *arg5 = (byte *) 0 ;
1227 bool result;
1228 byte temp3 ;
1229 byte temp4 ;
1230 byte temp5 ;
1231 PyObject * obj0 = 0 ;
1232 char *kwnames[] = {
1233 (char *) "self",(char *) "pixel", NULL
1234 };
1235
1236 arg3 = &temp3;
1237 arg4 = &temp4;
1238 arg5 = &temp5;
1239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 resultobj = PyInt_FromLong((long)result);
1249 {
1250 PyObject *o = PyInt_FromLong((long) (*arg3));
1251 resultobj = t_output_helper(resultobj,o);
1252 }
1253 {
1254 PyObject *o = PyInt_FromLong((long) (*arg4));
1255 resultobj = t_output_helper(resultobj,o);
1256 }
1257 {
1258 PyObject *o = PyInt_FromLong((long) (*arg5));
1259 resultobj = t_output_helper(resultobj,o);
1260 }
1261 return resultobj;
1262 fail:
1263 return NULL;
1264}
1265
1266
1267static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1268 PyObject *resultobj;
1269 wxPalette *arg1 = (wxPalette *) 0 ;
1270 bool result;
1271 PyObject * obj0 = 0 ;
1272 char *kwnames[] = {
1273 (char *) "self", NULL
1274 };
1275
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1278 {
1279 PyThreadState* __tstate = wxPyBeginAllowThreads();
1280 result = (bool)(arg1)->Ok();
1281
1282 wxPyEndAllowThreads(__tstate);
1283 if (PyErr_Occurred()) SWIG_fail;
1284 }
1285 resultobj = PyInt_FromLong((long)result);
1286 return resultobj;
1287 fail:
1288 return NULL;
1289}
1290
1291
1292static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1293 PyObject *obj;
1294 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1295 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1296 Py_INCREF(obj);
1297 return Py_BuildValue((char *)"");
1298}
1299static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject *resultobj;
1301 wxColour *arg1 = 0 ;
1302 int arg2 = (int) 1 ;
1303 int arg3 = (int) wxSOLID ;
1304 wxPen *result;
1305 wxColour temp1 ;
1306 PyObject * obj0 = 0 ;
1307 char *kwnames[] = {
1308 (char *) "colour",(char *) "width",(char *) "style", NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1312 {
1313 arg1 = &temp1;
1314 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1315 }
1316 {
1317 PyThreadState* __tstate = wxPyBeginAllowThreads();
1318 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1319
1320 wxPyEndAllowThreads(__tstate);
1321 if (PyErr_Occurred()) SWIG_fail;
1322 }
1323 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1324 return resultobj;
1325 fail:
1326 return NULL;
1327}
1328
1329
1330static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1331 PyObject *resultobj;
1332 wxPen *arg1 = (wxPen *) 0 ;
1333 PyObject * obj0 = 0 ;
1334 char *kwnames[] = {
1335 (char *) "self", NULL
1336 };
1337
1338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1340 {
1341 PyThreadState* __tstate = wxPyBeginAllowThreads();
1342 delete arg1;
1343
1344 wxPyEndAllowThreads(__tstate);
1345 if (PyErr_Occurred()) SWIG_fail;
1346 }
1347 Py_INCREF(Py_None); resultobj = Py_None;
1348 return resultobj;
1349 fail:
1350 return NULL;
1351}
1352
1353
1354static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1355 PyObject *resultobj;
1356 wxPen *arg1 = (wxPen *) 0 ;
1357 int result;
1358 PyObject * obj0 = 0 ;
1359 char *kwnames[] = {
1360 (char *) "self", NULL
1361 };
1362
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1365 {
1366 PyThreadState* __tstate = wxPyBeginAllowThreads();
1367 result = (int)(arg1)->GetCap();
1368
1369 wxPyEndAllowThreads(__tstate);
1370 if (PyErr_Occurred()) SWIG_fail;
1371 }
1372 resultobj = PyInt_FromLong((long)result);
1373 return resultobj;
1374 fail:
1375 return NULL;
1376}
1377
1378
1379static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1380 PyObject *resultobj;
1381 wxPen *arg1 = (wxPen *) 0 ;
1382 wxColour result;
1383 PyObject * obj0 = 0 ;
1384 char *kwnames[] = {
1385 (char *) "self", NULL
1386 };
1387
1388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1390 {
1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
1392 result = (arg1)->GetColour();
1393
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 {
1398 wxColour * resultptr;
1399 resultptr = new wxColour((wxColour &) result);
1400 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1401 }
1402 return resultobj;
1403 fail:
1404 return NULL;
1405}
1406
1407
1408static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject *resultobj;
1410 wxPen *arg1 = (wxPen *) 0 ;
1411 int result;
1412 PyObject * obj0 = 0 ;
1413 char *kwnames[] = {
1414 (char *) "self", NULL
1415 };
1416
1417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 result = (int)(arg1)->GetJoin();
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 resultobj = PyInt_FromLong((long)result);
1427 return resultobj;
1428 fail:
1429 return NULL;
1430}
1431
1432
1433static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1434 PyObject *resultobj;
1435 wxPen *arg1 = (wxPen *) 0 ;
1436 int result;
1437 PyObject * obj0 = 0 ;
1438 char *kwnames[] = {
1439 (char *) "self", NULL
1440 };
1441
1442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 result = (int)(arg1)->GetStyle();
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) SWIG_fail;
1450 }
1451 resultobj = PyInt_FromLong((long)result);
1452 return resultobj;
1453 fail:
1454 return NULL;
1455}
1456
1457
1458static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject *resultobj;
1460 wxPen *arg1 = (wxPen *) 0 ;
1461 int result;
1462 PyObject * obj0 = 0 ;
1463 char *kwnames[] = {
1464 (char *) "self", NULL
1465 };
1466
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1469 {
1470 PyThreadState* __tstate = wxPyBeginAllowThreads();
1471 result = (int)(arg1)->GetWidth();
1472
1473 wxPyEndAllowThreads(__tstate);
1474 if (PyErr_Occurred()) SWIG_fail;
1475 }
1476 resultobj = PyInt_FromLong((long)result);
1477 return resultobj;
1478 fail:
1479 return NULL;
1480}
1481
1482
1483static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1484 PyObject *resultobj;
1485 wxPen *arg1 = (wxPen *) 0 ;
1486 bool result;
1487 PyObject * obj0 = 0 ;
1488 char *kwnames[] = {
1489 (char *) "self", NULL
1490 };
1491
1492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1494 {
1495 PyThreadState* __tstate = wxPyBeginAllowThreads();
1496 result = (bool)(arg1)->Ok();
1497
1498 wxPyEndAllowThreads(__tstate);
1499 if (PyErr_Occurred()) SWIG_fail;
1500 }
1501 resultobj = PyInt_FromLong((long)result);
1502 return resultobj;
1503 fail:
1504 return NULL;
1505}
1506
1507
1508static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1509 PyObject *resultobj;
1510 wxPen *arg1 = (wxPen *) 0 ;
1511 int arg2 ;
1512 PyObject * obj0 = 0 ;
1513 char *kwnames[] = {
1514 (char *) "self",(char *) "cap_style", NULL
1515 };
1516
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1519 {
1520 PyThreadState* __tstate = wxPyBeginAllowThreads();
1521 (arg1)->SetCap(arg2);
1522
1523 wxPyEndAllowThreads(__tstate);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 Py_INCREF(Py_None); resultobj = Py_None;
1527 return resultobj;
1528 fail:
1529 return NULL;
1530}
1531
1532
1533static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1534 PyObject *resultobj;
1535 wxPen *arg1 = (wxPen *) 0 ;
1536 wxColour *arg2 = 0 ;
1537 wxColour temp2 ;
1538 PyObject * obj0 = 0 ;
1539 PyObject * obj1 = 0 ;
1540 char *kwnames[] = {
1541 (char *) "self",(char *) "colour", NULL
1542 };
1543
1544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1546 {
1547 arg2 = &temp2;
1548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1549 }
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
1552 (arg1)->SetColour(*arg2);
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) SWIG_fail;
1556 }
1557 Py_INCREF(Py_None); resultobj = Py_None;
1558 return resultobj;
1559 fail:
1560 return NULL;
1561}
1562
1563
1564static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1565 PyObject *resultobj;
1566 wxPen *arg1 = (wxPen *) 0 ;
1567 int arg2 ;
1568 PyObject * obj0 = 0 ;
1569 char *kwnames[] = {
1570 (char *) "self",(char *) "join_style", NULL
1571 };
1572
1573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1575 {
1576 PyThreadState* __tstate = wxPyBeginAllowThreads();
1577 (arg1)->SetJoin(arg2);
1578
1579 wxPyEndAllowThreads(__tstate);
1580 if (PyErr_Occurred()) SWIG_fail;
1581 }
1582 Py_INCREF(Py_None); resultobj = Py_None;
1583 return resultobj;
1584 fail:
1585 return NULL;
1586}
1587
1588
1589static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1590 PyObject *resultobj;
1591 wxPen *arg1 = (wxPen *) 0 ;
1592 int arg2 ;
1593 PyObject * obj0 = 0 ;
1594 char *kwnames[] = {
1595 (char *) "self",(char *) "style", NULL
1596 };
1597
1598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1600 {
1601 PyThreadState* __tstate = wxPyBeginAllowThreads();
1602 (arg1)->SetStyle(arg2);
1603
1604 wxPyEndAllowThreads(__tstate);
1605 if (PyErr_Occurred()) SWIG_fail;
1606 }
1607 Py_INCREF(Py_None); resultobj = Py_None;
1608 return resultobj;
1609 fail:
1610 return NULL;
1611}
1612
1613
1614static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxPen *arg1 = (wxPen *) 0 ;
1617 int arg2 ;
1618 PyObject * obj0 = 0 ;
1619 char *kwnames[] = {
1620 (char *) "self",(char *) "width", NULL
1621 };
1622
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1625 {
1626 PyThreadState* __tstate = wxPyBeginAllowThreads();
1627 (arg1)->SetWidth(arg2);
1628
1629 wxPyEndAllowThreads(__tstate);
1630 if (PyErr_Occurred()) SWIG_fail;
1631 }
1632 Py_INCREF(Py_None); resultobj = Py_None;
1633 return resultobj;
1634 fail:
1635 return NULL;
1636}
1637
1638
1639static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1640 PyObject *resultobj;
1641 wxPen *arg1 = (wxPen *) 0 ;
1642 int arg2 ;
1643 wxDash *arg3 = (wxDash *) 0 ;
1644 PyObject * obj0 = 0 ;
1645 PyObject * obj1 = 0 ;
1646 char *kwnames[] = {
1647 (char *) "self",(char *) "dashes", NULL
1648 };
1649
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1652 {
1653 arg2 = PyList_Size(obj1);
1654 arg3 = (wxDash*)byte_LIST_helper(obj1);
1655 if (arg3 == NULL) SWIG_fail;
1656 }
1657 {
1658 PyThreadState* __tstate = wxPyBeginAllowThreads();
1659 (arg1)->SetDashes(arg2,arg3);
1660
1661 wxPyEndAllowThreads(__tstate);
1662 if (PyErr_Occurred()) SWIG_fail;
1663 }
1664 Py_INCREF(Py_None); resultobj = Py_None;
1665 {
1666 if (arg3) delete [] arg3;
1667 }
1668 return resultobj;
1669 fail:
1670 {
1671 if (arg3) delete [] arg3;
1672 }
1673 return NULL;
1674}
1675
1676
1677static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1678 PyObject *resultobj;
1679 wxPen *arg1 = (wxPen *) 0 ;
1680 PyObject *result;
1681 PyObject * obj0 = 0 ;
1682 char *kwnames[] = {
1683 (char *) "self", NULL
1684 };
1685
1686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1688 {
1689 PyThreadState* __tstate = wxPyBeginAllowThreads();
1690 result = (PyObject *)wxPen_GetDashes(arg1);
1691
1692 wxPyEndAllowThreads(__tstate);
1693 if (PyErr_Occurred()) SWIG_fail;
1694 }
1695 resultobj = result;
1696 return resultobj;
1697 fail:
1698 return NULL;
1699}
1700
1701
1702static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1703 PyObject *obj;
1704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1705 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1706 Py_INCREF(obj);
1707 return Py_BuildValue((char *)"");
1708}
1709static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1710 PyObject *resultobj;
1711 wxColour *arg1 = 0 ;
1712 int arg2 = (int) 1 ;
1713 int arg3 = (int) wxSOLID ;
1714 wxPyPen *result;
1715 wxColour temp1 ;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "colour",(char *) "width",(char *) "style", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1722 {
1723 arg1 = &temp1;
1724 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1725 }
1726 {
1727 PyThreadState* __tstate = wxPyBeginAllowThreads();
1728 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1729
1730 wxPyEndAllowThreads(__tstate);
1731 if (PyErr_Occurred()) SWIG_fail;
1732 }
1733 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1734 return resultobj;
1735 fail:
1736 return NULL;
1737}
1738
1739
1740static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1741 PyObject *resultobj;
1742 wxPyPen *arg1 = (wxPyPen *) 0 ;
1743 PyObject * obj0 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "self", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1750 {
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 delete arg1;
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 Py_INCREF(Py_None); resultobj = Py_None;
1758 return resultobj;
1759 fail:
1760 return NULL;
1761}
1762
1763
1764static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxPyPen *arg1 = (wxPyPen *) 0 ;
1767 int arg2 ;
1768 wxDash *arg3 = (wxDash *) 0 ;
1769 PyObject * obj0 = 0 ;
1770 PyObject * obj1 = 0 ;
1771 char *kwnames[] = {
1772 (char *) "self",(char *) "dashes", NULL
1773 };
1774
1775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1777 {
1778 arg2 = PyList_Size(obj1);
1779 arg3 = (wxDash*)byte_LIST_helper(obj1);
1780 if (arg3 == NULL) SWIG_fail;
1781 }
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 (arg1)->SetDashes(arg2,arg3);
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 }
1789 Py_INCREF(Py_None); resultobj = Py_None;
1790 {
1791 if (arg3) delete [] arg3;
1792 }
1793 return resultobj;
1794 fail:
1795 {
1796 if (arg3) delete [] arg3;
1797 }
1798 return NULL;
1799}
1800
1801
1802static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1803 PyObject *obj;
1804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1805 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1806 Py_INCREF(obj);
1807 return Py_BuildValue((char *)"");
1808}
1809static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject *resultobj;
1811 wxColour *arg1 = 0 ;
1812 int arg2 = (int) wxSOLID ;
1813 wxBrush *result;
1814 wxColour temp1 ;
1815 PyObject * obj0 = 0 ;
1816 char *kwnames[] = {
1817 (char *) "colour",(char *) "style", NULL
1818 };
1819
1820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1821 {
1822 arg1 = &temp1;
1823 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1824 }
1825 {
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) SWIG_fail;
1831 }
1832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1833 return resultobj;
1834 fail:
1835 return NULL;
1836}
1837
1838
1839static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject *resultobj;
1841 wxBrush *arg1 = (wxBrush *) 0 ;
1842 PyObject * obj0 = 0 ;
1843 char *kwnames[] = {
1844 (char *) "self", NULL
1845 };
1846
1847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1849 {
1850 PyThreadState* __tstate = wxPyBeginAllowThreads();
1851 delete arg1;
1852
1853 wxPyEndAllowThreads(__tstate);
1854 if (PyErr_Occurred()) SWIG_fail;
1855 }
1856 Py_INCREF(Py_None); resultobj = Py_None;
1857 return resultobj;
1858 fail:
1859 return NULL;
1860}
1861
1862
1863static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1864 PyObject *resultobj;
1865 wxBrush *arg1 = (wxBrush *) 0 ;
1866 wxColour *arg2 = 0 ;
1867 wxColour temp2 ;
1868 PyObject * obj0 = 0 ;
1869 PyObject * obj1 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self",(char *) "col", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1876 {
1877 arg2 = &temp2;
1878 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1879 }
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 (arg1)->SetColour((wxColour const &)*arg2);
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 Py_INCREF(Py_None); resultobj = Py_None;
1888 return resultobj;
1889 fail:
1890 return NULL;
1891}
1892
1893
1894static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject *resultobj;
1896 wxBrush *arg1 = (wxBrush *) 0 ;
1897 int arg2 ;
1898 PyObject * obj0 = 0 ;
1899 char *kwnames[] = {
1900 (char *) "self",(char *) "style", NULL
1901 };
1902
1903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1905 {
1906 PyThreadState* __tstate = wxPyBeginAllowThreads();
1907 (arg1)->SetStyle(arg2);
1908
1909 wxPyEndAllowThreads(__tstate);
1910 if (PyErr_Occurred()) SWIG_fail;
1911 }
1912 Py_INCREF(Py_None); resultobj = Py_None;
1913 return resultobj;
1914 fail:
1915 return NULL;
1916}
1917
1918
1919static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject *resultobj;
1921 wxBrush *arg1 = (wxBrush *) 0 ;
1922 wxBitmap *arg2 = 0 ;
1923 PyObject * obj0 = 0 ;
1924 PyObject * obj1 = 0 ;
1925 char *kwnames[] = {
1926 (char *) "self",(char *) "stipple", NULL
1927 };
1928
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1931 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1932 if (arg2 == NULL) {
1933 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1934 }
1935 {
1936 PyThreadState* __tstate = wxPyBeginAllowThreads();
1937 (arg1)->SetStipple((wxBitmap const &)*arg2);
1938
1939 wxPyEndAllowThreads(__tstate);
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 Py_INCREF(Py_None); resultobj = Py_None;
1943 return resultobj;
1944 fail:
1945 return NULL;
1946}
1947
1948
1949static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1950 PyObject *resultobj;
1951 wxBrush *arg1 = (wxBrush *) 0 ;
1952 wxColour result;
1953 PyObject * obj0 = 0 ;
1954 char *kwnames[] = {
1955 (char *) "self", NULL
1956 };
1957
1958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
1959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1960 {
1961 PyThreadState* __tstate = wxPyBeginAllowThreads();
1962 result = ((wxBrush const *)arg1)->GetColour();
1963
1964 wxPyEndAllowThreads(__tstate);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 {
1968 wxColour * resultptr;
1969 resultptr = new wxColour((wxColour &) result);
1970 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1971 }
1972 return resultobj;
1973 fail:
1974 return NULL;
1975}
1976
1977
1978static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject *resultobj;
1980 wxBrush *arg1 = (wxBrush *) 0 ;
1981 int result;
1982 PyObject * obj0 = 0 ;
1983 char *kwnames[] = {
1984 (char *) "self", NULL
1985 };
1986
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
1988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 result = (int)((wxBrush const *)arg1)->GetStyle();
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 resultobj = PyInt_FromLong((long)result);
1997 return resultobj;
1998 fail:
1999 return NULL;
2000}
2001
2002
2003static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2004 PyObject *resultobj;
2005 wxBrush *arg1 = (wxBrush *) 0 ;
2006 wxBitmap *result;
2007 PyObject * obj0 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2014 {
2015 PyThreadState* __tstate = wxPyBeginAllowThreads();
2016 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2017
2018 wxPyEndAllowThreads(__tstate);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 }
2021 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2022 return resultobj;
2023 fail:
2024 return NULL;
2025}
2026
2027
2028static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2029 PyObject *resultobj;
2030 wxBrush *arg1 = (wxBrush *) 0 ;
2031 bool result;
2032 PyObject * obj0 = 0 ;
2033 char *kwnames[] = {
2034 (char *) "self", NULL
2035 };
2036
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2039 {
2040 PyThreadState* __tstate = wxPyBeginAllowThreads();
2041 result = (bool)(arg1)->Ok();
2042
2043 wxPyEndAllowThreads(__tstate);
2044 if (PyErr_Occurred()) SWIG_fail;
2045 }
2046 resultobj = PyInt_FromLong((long)result);
2047 return resultobj;
2048 fail:
2049 return NULL;
2050}
2051
2052
2053static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2054 PyObject *obj;
2055 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2056 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2057 Py_INCREF(obj);
2058 return Py_BuildValue((char *)"");
2059}
2060static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 wxString *arg1 = 0 ;
2063 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2064 wxBitmap *result;
e811c8ce 2065 bool temp1 = False ;
d14a1e28
RD
2066 PyObject * obj0 = 0 ;
2067 char *kwnames[] = {
2068 (char *) "name",(char *) "type", NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2072 {
2073 arg1 = wxString_in_helper(obj0);
2074 if (arg1 == NULL) SWIG_fail;
e811c8ce 2075 temp1 = True;
d14a1e28
RD
2076 }
2077 {
2078 PyThreadState* __tstate = wxPyBeginAllowThreads();
2079 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2080
2081 wxPyEndAllowThreads(__tstate);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 }
2084 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2085 {
2086 if (temp1)
2087 delete arg1;
2088 }
2089 return resultobj;
2090 fail:
2091 {
2092 if (temp1)
2093 delete arg1;
2094 }
2095 return NULL;
2096}
2097
2098
2099static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2100 PyObject *resultobj;
2101 wxBitmap *arg1 = (wxBitmap *) 0 ;
2102 PyObject * obj0 = 0 ;
2103 char *kwnames[] = {
2104 (char *) "self", NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2109 {
2110 PyThreadState* __tstate = wxPyBeginAllowThreads();
2111 delete arg1;
2112
2113 wxPyEndAllowThreads(__tstate);
2114 if (PyErr_Occurred()) SWIG_fail;
2115 }
2116 Py_INCREF(Py_None); resultobj = Py_None;
2117 return resultobj;
2118 fail:
2119 return NULL;
2120}
2121
2122
2123static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2124 PyObject *resultobj;
2125 int arg1 ;
2126 int arg2 ;
2127 int arg3 = (int) -1 ;
2128 wxBitmap *result;
2129 char *kwnames[] = {
2130 (char *) "width",(char *) "height",(char *) "depth", NULL
2131 };
2132
2133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2134 {
2135 PyThreadState* __tstate = wxPyBeginAllowThreads();
2136 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2137
2138 wxPyEndAllowThreads(__tstate);
2139 if (PyErr_Occurred()) SWIG_fail;
2140 }
2141 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2142 return resultobj;
2143 fail:
2144 return NULL;
2145}
2146
2147
2148static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject *resultobj;
2150 wxIcon *arg1 = 0 ;
2151 wxBitmap *result;
2152 PyObject * obj0 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "icon", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2159 if (arg1 == NULL) {
2160 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2170 return resultobj;
2171 fail:
2172 return NULL;
2173}
2174
2175
2176static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2177 PyObject *resultobj;
2178 wxImage *arg1 = 0 ;
2179 int arg2 = (int) -1 ;
2180 wxBitmap *result;
2181 PyObject * obj0 = 0 ;
2182 char *kwnames[] = {
2183 (char *) "image",(char *) "depth", NULL
2184 };
2185
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2188 if (arg1 == NULL) {
2189 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2199 return resultobj;
2200 fail:
2201 return NULL;
2202}
2203
2204
2205static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2206 PyObject *resultobj;
2207 PyObject *arg1 = (PyObject *) 0 ;
2208 wxBitmap *result;
2209 PyObject * obj0 = 0 ;
2210 char *kwnames[] = {
2211 (char *) "listOfStrings", NULL
2212 };
2213
2214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2215 arg1 = obj0;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (wxBitmap *)new_wxBitmap(arg1);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2224 return resultobj;
2225 fail:
2226 return NULL;
2227}
2228
2229
2230static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2231 PyObject *resultobj;
2232 PyObject *arg1 = (PyObject *) 0 ;
2233 int arg2 ;
2234 int arg3 ;
2235 int arg4 = (int) 1 ;
2236 wxBitmap *result;
2237 PyObject * obj0 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2240 };
2241
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2243 arg1 = obj0;
2244 {
2245 PyThreadState* __tstate = wxPyBeginAllowThreads();
2246 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2247
2248 wxPyEndAllowThreads(__tstate);
2249 if (PyErr_Occurred()) SWIG_fail;
2250 }
2251 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2252 return resultobj;
2253 fail:
2254 return NULL;
2255}
2256
2257
2258static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2259 PyObject *resultobj;
2260 wxBitmap *arg1 = (wxBitmap *) 0 ;
2261 bool result;
2262 PyObject * obj0 = 0 ;
2263 char *kwnames[] = {
2264 (char *) "self", NULL
2265 };
2266
2267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2269 {
2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
2271 result = (bool)(arg1)->Ok();
2272
2273 wxPyEndAllowThreads(__tstate);
2274 if (PyErr_Occurred()) SWIG_fail;
2275 }
2276 resultobj = PyInt_FromLong((long)result);
2277 return resultobj;
2278 fail:
2279 return NULL;
2280}
2281
2282
2283static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject *resultobj;
2285 wxBitmap *arg1 = (wxBitmap *) 0 ;
2286 int result;
2287 PyObject * obj0 = 0 ;
2288 char *kwnames[] = {
2289 (char *) "self", NULL
2290 };
2291
2292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2294 {
2295 PyThreadState* __tstate = wxPyBeginAllowThreads();
2296 result = (int)(arg1)->GetWidth();
2297
2298 wxPyEndAllowThreads(__tstate);
2299 if (PyErr_Occurred()) SWIG_fail;
2300 }
2301 resultobj = PyInt_FromLong((long)result);
2302 return resultobj;
2303 fail:
2304 return NULL;
2305}
2306
2307
2308static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2309 PyObject *resultobj;
2310 wxBitmap *arg1 = (wxBitmap *) 0 ;
2311 int result;
2312 PyObject * obj0 = 0 ;
2313 char *kwnames[] = {
2314 (char *) "self", NULL
2315 };
2316
2317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 result = (int)(arg1)->GetHeight();
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 resultobj = PyInt_FromLong((long)result);
2327 return resultobj;
2328 fail:
2329 return NULL;
2330}
2331
2332
2333static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 wxBitmap *arg1 = (wxBitmap *) 0 ;
2336 int result;
2337 PyObject * obj0 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "self", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2344 {
2345 PyThreadState* __tstate = wxPyBeginAllowThreads();
2346 result = (int)(arg1)->GetDepth();
2347
2348 wxPyEndAllowThreads(__tstate);
2349 if (PyErr_Occurred()) SWIG_fail;
2350 }
2351 resultobj = PyInt_FromLong((long)result);
2352 return resultobj;
2353 fail:
2354 return NULL;
2355}
2356
2357
2358static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxBitmap *arg1 = (wxBitmap *) 0 ;
2361 SwigValueWrapper< wxImage > result;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2369 {
2370 PyThreadState* __tstate = wxPyBeginAllowThreads();
2371 result = ((wxBitmap const *)arg1)->ConvertToImage();
2372
2373 wxPyEndAllowThreads(__tstate);
2374 if (PyErr_Occurred()) SWIG_fail;
2375 }
2376 {
2377 wxImage * resultptr;
2378 resultptr = new wxImage((wxImage &) result);
2379 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2380 }
2381 return resultobj;
2382 fail:
2383 return NULL;
2384}
2385
2386
2387static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject *resultobj;
2389 wxBitmap *arg1 = (wxBitmap *) 0 ;
2390 wxMask *result;
2391 PyObject * obj0 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "self", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2398 {
2399 PyThreadState* __tstate = wxPyBeginAllowThreads();
2400 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2401
2402 wxPyEndAllowThreads(__tstate);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2406 return resultobj;
2407 fail:
2408 return NULL;
2409}
2410
2411
2412static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2413 PyObject *resultobj;
2414 wxBitmap *arg1 = (wxBitmap *) 0 ;
2415 wxMask *arg2 = (wxMask *) 0 ;
2416 PyObject * obj0 = 0 ;
2417 PyObject * obj1 = 0 ;
2418 char *kwnames[] = {
2419 (char *) "self",(char *) "mask", NULL
2420 };
2421
2422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2424 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2425 {
2426 PyThreadState* __tstate = wxPyBeginAllowThreads();
2427 (arg1)->SetMask(arg2);
2428
2429 wxPyEndAllowThreads(__tstate);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 Py_INCREF(Py_None); resultobj = Py_None;
2433 return resultobj;
2434 fail:
2435 return NULL;
2436}
2437
2438
2439static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2440 PyObject *resultobj;
2441 wxBitmap *arg1 = (wxBitmap *) 0 ;
2442 wxColour *arg2 = 0 ;
2443 wxColour temp2 ;
2444 PyObject * obj0 = 0 ;
2445 PyObject * obj1 = 0 ;
2446 char *kwnames[] = {
2447 (char *) "self",(char *) "colour", NULL
2448 };
2449
2450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2452 {
2453 arg2 = &temp2;
2454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2455 }
2456 {
2457 PyThreadState* __tstate = wxPyBeginAllowThreads();
2458 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2459
2460 wxPyEndAllowThreads(__tstate);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 Py_INCREF(Py_None); resultobj = Py_None;
2464 return resultobj;
2465 fail:
2466 return NULL;
2467}
2468
2469
2470static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2471 PyObject *resultobj;
2472 wxBitmap *arg1 = (wxBitmap *) 0 ;
2473 wxRect *arg2 = 0 ;
2474 SwigValueWrapper< wxBitmap > result;
2475 wxRect temp2 ;
2476 PyObject * obj0 = 0 ;
2477 PyObject * obj1 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "self",(char *) "rect", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2484 {
2485 arg2 = &temp2;
2486 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2487 }
2488 {
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 {
2496 wxBitmap * resultptr;
2497 resultptr = new wxBitmap((wxBitmap &) result);
2498 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2499 }
2500 return resultobj;
2501 fail:
2502 return NULL;
2503}
2504
2505
2506static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 wxBitmap *arg1 = (wxBitmap *) 0 ;
2509 wxString *arg2 = 0 ;
2510 int arg3 ;
2511 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2512 bool result;
e811c8ce 2513 bool temp2 = False ;
d14a1e28
RD
2514 PyObject * obj0 = 0 ;
2515 PyObject * obj1 = 0 ;
2516 PyObject * obj3 = 0 ;
2517 char *kwnames[] = {
2518 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2519 };
2520
2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2523 {
2524 arg2 = wxString_in_helper(obj1);
2525 if (arg2 == NULL) SWIG_fail;
e811c8ce 2526 temp2 = True;
d14a1e28
RD
2527 }
2528 if (obj3) {
2529 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2530 }
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 resultobj = PyInt_FromLong((long)result);
2539 {
2540 if (temp2)
2541 delete arg2;
2542 }
2543 return resultobj;
2544 fail:
2545 {
2546 if (temp2)
2547 delete arg2;
2548 }
2549 return NULL;
2550}
2551
2552
2553static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject *resultobj;
2555 wxBitmap *arg1 = (wxBitmap *) 0 ;
2556 wxString *arg2 = 0 ;
2557 int arg3 ;
2558 bool result;
e811c8ce 2559 bool temp2 = False ;
d14a1e28
RD
2560 PyObject * obj0 = 0 ;
2561 PyObject * obj1 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "self",(char *) "name",(char *) "type", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2568 {
2569 arg2 = wxString_in_helper(obj1);
2570 if (arg2 == NULL) SWIG_fail;
e811c8ce 2571 temp2 = True;
d14a1e28
RD
2572 }
2573 {
2574 PyThreadState* __tstate = wxPyBeginAllowThreads();
2575 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2576
2577 wxPyEndAllowThreads(__tstate);
2578 if (PyErr_Occurred()) SWIG_fail;
2579 }
2580 resultobj = PyInt_FromLong((long)result);
2581 {
2582 if (temp2)
2583 delete arg2;
2584 }
2585 return resultobj;
2586 fail:
2587 {
2588 if (temp2)
2589 delete arg2;
2590 }
2591 return NULL;
2592}
2593
2594
2595static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxBitmap *arg1 = (wxBitmap *) 0 ;
2598 wxIcon *arg2 = 0 ;
2599 bool result;
2600 PyObject * obj0 = 0 ;
2601 PyObject * obj1 = 0 ;
2602 char *kwnames[] = {
2603 (char *) "self",(char *) "icon", NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2608 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2609 if (arg2 == NULL) {
2610 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2611 }
2612 {
2613 PyThreadState* __tstate = wxPyBeginAllowThreads();
2614 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2615
2616 wxPyEndAllowThreads(__tstate);
2617 if (PyErr_Occurred()) SWIG_fail;
2618 }
2619 resultobj = PyInt_FromLong((long)result);
2620 return resultobj;
2621 fail:
2622 return NULL;
2623}
2624
2625
2626static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2627 PyObject *resultobj;
2628 wxBitmap *arg1 = (wxBitmap *) 0 ;
2629 int arg2 ;
2630 PyObject * obj0 = 0 ;
2631 char *kwnames[] = {
2632 (char *) "self",(char *) "height", NULL
2633 };
2634
2635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 (arg1)->SetHeight(arg2);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 Py_INCREF(Py_None); resultobj = Py_None;
2645 return resultobj;
2646 fail:
2647 return NULL;
2648}
2649
2650
2651static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2652 PyObject *resultobj;
2653 wxBitmap *arg1 = (wxBitmap *) 0 ;
2654 int arg2 ;
2655 PyObject * obj0 = 0 ;
2656 char *kwnames[] = {
2657 (char *) "self",(char *) "width", NULL
2658 };
2659
2660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 (arg1)->SetWidth(arg2);
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 Py_INCREF(Py_None); resultobj = Py_None;
2670 return resultobj;
2671 fail:
2672 return NULL;
2673}
2674
2675
2676static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 wxBitmap *arg1 = (wxBitmap *) 0 ;
2679 int arg2 ;
2680 PyObject * obj0 = 0 ;
2681 char *kwnames[] = {
2682 (char *) "self",(char *) "depth", NULL
2683 };
2684
2685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2687 {
2688 PyThreadState* __tstate = wxPyBeginAllowThreads();
2689 (arg1)->SetDepth(arg2);
2690
2691 wxPyEndAllowThreads(__tstate);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 }
2694 Py_INCREF(Py_None); resultobj = Py_None;
2695 return resultobj;
2696 fail:
2697 return NULL;
2698}
2699
2700
2701static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2702 PyObject *obj;
2703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2704 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2705 Py_INCREF(obj);
2706 return Py_BuildValue((char *)"");
2707}
2708static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2709 PyObject *resultobj;
2710 wxBitmap *arg1 = 0 ;
2711 wxMask *result;
2712 PyObject * obj0 = 0 ;
2713 char *kwnames[] = {
2714 (char *) "bitmap", NULL
2715 };
2716
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2719 if (arg1 == NULL) {
2720 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2721 }
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) SWIG_fail;
2728 }
2729 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2730 return resultobj;
2731 fail:
2732 return NULL;
2733}
2734
2735
2736static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2737 PyObject *resultobj;
2738 wxBitmap *arg1 = 0 ;
2739 wxColour *arg2 = 0 ;
2740 wxMask *result;
2741 wxColour temp2 ;
2742 PyObject * obj0 = 0 ;
2743 PyObject * obj1 = 0 ;
2744 char *kwnames[] = {
2745 (char *) "bitmap",(char *) "colour", NULL
2746 };
2747
2748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2750 if (arg1 == NULL) {
2751 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2752 }
2753 {
2754 arg2 = &temp2;
2755 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2756 }
2757 {
2758 PyThreadState* __tstate = wxPyBeginAllowThreads();
2759 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2760
2761 wxPyEndAllowThreads(__tstate);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2765 return resultobj;
2766 fail:
2767 return NULL;
2768}
2769
2770
2771static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2772 PyObject *obj;
2773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2774 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2775 Py_INCREF(obj);
2776 return Py_BuildValue((char *)"");
2777}
2778static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2779 PyObject *resultobj;
2780 wxString *arg1 = 0 ;
2781 long arg2 ;
2782 int arg3 = (int) -1 ;
2783 int arg4 = (int) -1 ;
2784 wxIcon *result;
e811c8ce 2785 bool temp1 = False ;
d14a1e28
RD
2786 PyObject * obj0 = 0 ;
2787 char *kwnames[] = {
2788 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2789 };
2790
2791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2792 {
2793 arg1 = wxString_in_helper(obj0);
2794 if (arg1 == NULL) SWIG_fail;
e811c8ce 2795 temp1 = True;
d14a1e28
RD
2796 }
2797 {
2798 PyThreadState* __tstate = wxPyBeginAllowThreads();
2799 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
2800
2801 wxPyEndAllowThreads(__tstate);
2802 if (PyErr_Occurred()) SWIG_fail;
2803 }
2804 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2805 {
2806 if (temp1)
2807 delete arg1;
2808 }
2809 return resultobj;
2810 fail:
2811 {
2812 if (temp1)
2813 delete arg1;
2814 }
2815 return NULL;
2816}
2817
2818
2819static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2820 PyObject *resultobj;
2821 wxIcon *arg1 = (wxIcon *) 0 ;
2822 PyObject * obj0 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "self", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2829 {
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
2831 delete arg1;
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) SWIG_fail;
2835 }
2836 Py_INCREF(Py_None); resultobj = Py_None;
2837 return resultobj;
2838 fail:
2839 return NULL;
2840}
2841
2842
2843static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject *resultobj;
2845 wxIcon *result;
2846 char *kwnames[] = {
2847 NULL
2848 };
2849
2850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2851 {
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
2853 result = (wxIcon *)new wxIcon();
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2859 return resultobj;
2860 fail:
2861 return NULL;
2862}
2863
2864
2865static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2866 PyObject *resultobj;
2867 wxIconLocation *arg1 = 0 ;
2868 wxIcon *result;
2869 PyObject * obj0 = 0 ;
2870 char *kwnames[] = {
2871 (char *) "loc", NULL
2872 };
2873
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2876 if (arg1 == NULL) {
2877 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2878 }
2879 {
2880 PyThreadState* __tstate = wxPyBeginAllowThreads();
2881 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2882
2883 wxPyEndAllowThreads(__tstate);
2884 if (PyErr_Occurred()) SWIG_fail;
2885 }
2886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2887 return resultobj;
2888 fail:
2889 return NULL;
2890}
2891
2892
2893static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2894 PyObject *resultobj;
2895 wxBitmap *arg1 = 0 ;
2896 wxIcon *result;
2897 PyObject * obj0 = 0 ;
2898 char *kwnames[] = {
2899 (char *) "bmp", NULL
2900 };
2901
2902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2904 if (arg1 == NULL) {
2905 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2906 }
2907 {
2908 PyThreadState* __tstate = wxPyBeginAllowThreads();
2909 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2910
2911 wxPyEndAllowThreads(__tstate);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 }
2914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2915 return resultobj;
2916 fail:
2917 return NULL;
2918}
2919
2920
2921static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject *resultobj;
2923 PyObject *arg1 = (PyObject *) 0 ;
2924 wxIcon *result;
2925 PyObject * obj0 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "listOfStrings", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
2931 arg1 = obj0;
2932 {
2933 PyThreadState* __tstate = wxPyBeginAllowThreads();
2934 result = (wxIcon *)new_wxIcon(arg1);
2935
2936 wxPyEndAllowThreads(__tstate);
2937 if (PyErr_Occurred()) SWIG_fail;
2938 }
2939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2940 return resultobj;
2941 fail:
2942 return NULL;
2943}
2944
2945
2946static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2947 PyObject *resultobj;
2948 wxIcon *arg1 = (wxIcon *) 0 ;
2949 wxString *arg2 = 0 ;
2950 long arg3 ;
2951 bool result;
e811c8ce 2952 bool temp2 = False ;
d14a1e28
RD
2953 PyObject * obj0 = 0 ;
2954 PyObject * obj1 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "self",(char *) "name",(char *) "flags", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2961 {
2962 arg2 = wxString_in_helper(obj1);
2963 if (arg2 == NULL) SWIG_fail;
e811c8ce 2964 temp2 = True;
d14a1e28
RD
2965 }
2966 {
2967 PyThreadState* __tstate = wxPyBeginAllowThreads();
2968 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
2969
2970 wxPyEndAllowThreads(__tstate);
2971 if (PyErr_Occurred()) SWIG_fail;
2972 }
2973 resultobj = PyInt_FromLong((long)result);
2974 {
2975 if (temp2)
2976 delete arg2;
2977 }
2978 return resultobj;
2979 fail:
2980 {
2981 if (temp2)
2982 delete arg2;
2983 }
2984 return NULL;
2985}
2986
2987
2988static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2989 PyObject *resultobj;
2990 wxIcon *arg1 = (wxIcon *) 0 ;
2991 bool result;
2992 PyObject * obj0 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "self", NULL
2995 };
2996
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
2998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 result = (bool)(arg1)->Ok();
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 resultobj = PyInt_FromLong((long)result);
3007 return resultobj;
3008 fail:
3009 return NULL;
3010}
3011
3012
3013static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj;
3015 wxIcon *arg1 = (wxIcon *) 0 ;
3016 int result;
3017 PyObject * obj0 = 0 ;
3018 char *kwnames[] = {
3019 (char *) "self", NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3024 {
3025 PyThreadState* __tstate = wxPyBeginAllowThreads();
3026 result = (int)(arg1)->GetWidth();
3027
3028 wxPyEndAllowThreads(__tstate);
3029 if (PyErr_Occurred()) SWIG_fail;
3030 }
3031 resultobj = PyInt_FromLong((long)result);
3032 return resultobj;
3033 fail:
3034 return NULL;
3035}
3036
3037
3038static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3039 PyObject *resultobj;
3040 wxIcon *arg1 = (wxIcon *) 0 ;
3041 int result;
3042 PyObject * obj0 = 0 ;
3043 char *kwnames[] = {
3044 (char *) "self", NULL
3045 };
3046
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3049 {
3050 PyThreadState* __tstate = wxPyBeginAllowThreads();
3051 result = (int)(arg1)->GetHeight();
3052
3053 wxPyEndAllowThreads(__tstate);
3054 if (PyErr_Occurred()) SWIG_fail;
3055 }
3056 resultobj = PyInt_FromLong((long)result);
3057 return resultobj;
3058 fail:
3059 return NULL;
3060}
3061
3062
3063static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject *resultobj;
3065 wxIcon *arg1 = (wxIcon *) 0 ;
3066 int result;
3067 PyObject * obj0 = 0 ;
3068 char *kwnames[] = {
3069 (char *) "self", NULL
3070 };
3071
3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3074 {
3075 PyThreadState* __tstate = wxPyBeginAllowThreads();
3076 result = (int)(arg1)->GetDepth();
3077
3078 wxPyEndAllowThreads(__tstate);
3079 if (PyErr_Occurred()) SWIG_fail;
3080 }
3081 resultobj = PyInt_FromLong((long)result);
3082 return resultobj;
3083 fail:
3084 return NULL;
3085}
3086
3087
3088static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3089 PyObject *resultobj;
3090 wxIcon *arg1 = (wxIcon *) 0 ;
3091 int arg2 ;
3092 PyObject * obj0 = 0 ;
3093 char *kwnames[] = {
3094 (char *) "self",(char *) "w", NULL
3095 };
3096
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3099 {
3100 PyThreadState* __tstate = wxPyBeginAllowThreads();
3101 (arg1)->SetWidth(arg2);
3102
3103 wxPyEndAllowThreads(__tstate);
3104 if (PyErr_Occurred()) SWIG_fail;
3105 }
3106 Py_INCREF(Py_None); resultobj = Py_None;
3107 return resultobj;
3108 fail:
3109 return NULL;
3110}
3111
3112
3113static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3114 PyObject *resultobj;
3115 wxIcon *arg1 = (wxIcon *) 0 ;
3116 int arg2 ;
3117 PyObject * obj0 = 0 ;
3118 char *kwnames[] = {
3119 (char *) "self",(char *) "h", NULL
3120 };
3121
3122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3124 {
3125 PyThreadState* __tstate = wxPyBeginAllowThreads();
3126 (arg1)->SetHeight(arg2);
3127
3128 wxPyEndAllowThreads(__tstate);
3129 if (PyErr_Occurred()) SWIG_fail;
3130 }
3131 Py_INCREF(Py_None); resultobj = Py_None;
3132 return resultobj;
3133 fail:
3134 return NULL;
3135}
3136
3137
3138static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxIcon *arg1 = (wxIcon *) 0 ;
3141 int arg2 ;
3142 PyObject * obj0 = 0 ;
3143 char *kwnames[] = {
3144 (char *) "self",(char *) "d", NULL
3145 };
3146
3147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 (arg1)->SetDepth(arg2);
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 Py_INCREF(Py_None); resultobj = Py_None;
3157 return resultobj;
3158 fail:
3159 return NULL;
3160}
3161
3162
3163static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3164 PyObject *resultobj;
3165 wxIcon *arg1 = (wxIcon *) 0 ;
3166 wxBitmap *arg2 = 0 ;
3167 PyObject * obj0 = 0 ;
3168 PyObject * obj1 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "self",(char *) "bmp", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3175 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3176 if (arg2 == NULL) {
3177 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3178 }
3179 {
3180 PyThreadState* __tstate = wxPyBeginAllowThreads();
3181 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3182
3183 wxPyEndAllowThreads(__tstate);
3184 if (PyErr_Occurred()) SWIG_fail;
3185 }
3186 Py_INCREF(Py_None); resultobj = Py_None;
3187 return resultobj;
3188 fail:
3189 return NULL;
3190}
3191
3192
3193static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3194 PyObject *obj;
3195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3196 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3197 Py_INCREF(obj);
3198 return Py_BuildValue((char *)"");
3199}
3200static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject *resultobj;
3202 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3203 int arg2 = (int) 0 ;
3204 wxIconLocation *result;
3205 PyObject * obj0 = 0 ;
3206 char *kwnames[] = {
3207 (char *) "filename",(char *) "num", NULL
3208 };
3209
3210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3211 if (obj0) {
3212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3213 }
3214 {
3215 PyThreadState* __tstate = wxPyBeginAllowThreads();
3216 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3217
3218 wxPyEndAllowThreads(__tstate);
3219 if (PyErr_Occurred()) SWIG_fail;
3220 }
3221 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3222 return resultobj;
3223 fail:
3224 return NULL;
3225}
3226
3227
3228static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3229 PyObject *resultobj;
3230 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3231 PyObject * obj0 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "self", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 delete arg1;
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 Py_INCREF(Py_None); resultobj = Py_None;
3246 return resultobj;
3247 fail:
3248 return NULL;
3249}
3250
3251
3252static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3253 PyObject *resultobj;
3254 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3255 bool result;
3256 PyObject * obj0 = 0 ;
3257 char *kwnames[] = {
3258 (char *) "self", NULL
3259 };
3260
3261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3263 {
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3266
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 resultobj = PyInt_FromLong((long)result);
3271 return resultobj;
3272 fail:
3273 return NULL;
3274}
3275
3276
3277static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3278 PyObject *resultobj;
3279 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3280 wxString *arg2 = 0 ;
e811c8ce 3281 bool temp2 = False ;
d14a1e28
RD
3282 PyObject * obj0 = 0 ;
3283 PyObject * obj1 = 0 ;
3284 char *kwnames[] = {
3285 (char *) "self",(char *) "filename", NULL
3286 };
3287
3288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3290 {
3291 arg2 = wxString_in_helper(obj1);
3292 if (arg2 == NULL) SWIG_fail;
e811c8ce 3293 temp2 = True;
d14a1e28
RD
3294 }
3295 {
3296 PyThreadState* __tstate = wxPyBeginAllowThreads();
3297 (arg1)->SetFileName((wxString const &)*arg2);
3298
3299 wxPyEndAllowThreads(__tstate);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 Py_INCREF(Py_None); resultobj = Py_None;
3303 {
3304 if (temp2)
3305 delete arg2;
3306 }
3307 return resultobj;
3308 fail:
3309 {
3310 if (temp2)
3311 delete arg2;
3312 }
3313 return NULL;
3314}
3315
3316
3317static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3318 PyObject *resultobj;
3319 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3320 wxString *result;
3321 PyObject * obj0 = 0 ;
3322 char *kwnames[] = {
3323 (char *) "self", NULL
3324 };
3325
3326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3328 {
3329 PyThreadState* __tstate = wxPyBeginAllowThreads();
3330 {
3331 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3332 result = (wxString *) &_result_ref;
3333 }
3334
3335 wxPyEndAllowThreads(__tstate);
3336 if (PyErr_Occurred()) SWIG_fail;
3337 }
cc6dd355
RD
3338 {
3339#if wxUSE_UNICODE
3340 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3341#else
3342 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3343#endif
3344 }
d14a1e28
RD
3345 return resultobj;
3346 fail:
3347 return NULL;
3348}
3349
3350
3351static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3352 PyObject *resultobj;
3353 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3354 int arg2 ;
3355 PyObject * obj0 = 0 ;
3356 char *kwnames[] = {
3357 (char *) "self",(char *) "num", NULL
3358 };
3359
3360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3362 {
3363 PyThreadState* __tstate = wxPyBeginAllowThreads();
3364 wxIconLocation_SetIndex(arg1,arg2);
3365
3366 wxPyEndAllowThreads(__tstate);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 Py_INCREF(Py_None); resultobj = Py_None;
3370 return resultobj;
3371 fail:
3372 return NULL;
3373}
3374
3375
3376static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3377 PyObject *resultobj;
3378 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3379 int result;
3380 PyObject * obj0 = 0 ;
3381 char *kwnames[] = {
3382 (char *) "self", NULL
3383 };
3384
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 result = (int)wxIconLocation_GetIndex(arg1);
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 resultobj = PyInt_FromLong((long)result);
3395 return resultobj;
3396 fail:
3397 return NULL;
3398}
3399
3400
3401static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3402 PyObject *obj;
3403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3404 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3405 Py_INCREF(obj);
3406 return Py_BuildValue((char *)"");
3407}
3408static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj;
3410 wxIconBundle *result;
3411 char *kwnames[] = {
3412 NULL
3413 };
3414
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3416 {
3417 PyThreadState* __tstate = wxPyBeginAllowThreads();
3418 result = (wxIconBundle *)new wxIconBundle();
3419
3420 wxPyEndAllowThreads(__tstate);
3421 if (PyErr_Occurred()) SWIG_fail;
3422 }
3423 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3424 return resultobj;
3425 fail:
3426 return NULL;
3427}
3428
3429
3430static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxString *arg1 = 0 ;
3433 long arg2 ;
3434 wxIconBundle *result;
e811c8ce 3435 bool temp1 = False ;
d14a1e28
RD
3436 PyObject * obj0 = 0 ;
3437 char *kwnames[] = {
3438 (char *) "file",(char *) "type", NULL
3439 };
3440
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3442 {
3443 arg1 = wxString_in_helper(obj0);
3444 if (arg1 == NULL) SWIG_fail;
e811c8ce 3445 temp1 = True;
d14a1e28
RD
3446 }
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3455 {
3456 if (temp1)
3457 delete arg1;
3458 }
3459 return resultobj;
3460 fail:
3461 {
3462 if (temp1)
3463 delete arg1;
3464 }
3465 return NULL;
3466}
3467
3468
3469static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3470 PyObject *resultobj;
3471 wxIcon *arg1 = 0 ;
3472 wxIconBundle *result;
3473 PyObject * obj0 = 0 ;
3474 char *kwnames[] = {
3475 (char *) "icon", NULL
3476 };
3477
3478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3480 if (arg1 == NULL) {
3481 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3482 }
3483 {
3484 PyThreadState* __tstate = wxPyBeginAllowThreads();
3485 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3486
3487 wxPyEndAllowThreads(__tstate);
3488 if (PyErr_Occurred()) SWIG_fail;
3489 }
3490 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3491 return resultobj;
3492 fail:
3493 return NULL;
3494}
3495
3496
3497static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3498 PyObject *resultobj;
3499 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3500 PyObject * obj0 = 0 ;
3501 char *kwnames[] = {
3502 (char *) "self", NULL
3503 };
3504
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 delete arg1;
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 Py_INCREF(Py_None); resultobj = Py_None;
3515 return resultobj;
3516 fail:
3517 return NULL;
3518}
3519
3520
3521static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3524 wxIcon *arg2 = 0 ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self",(char *) "icon", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3533 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3534 if (arg2 == NULL) {
3535 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3536 }
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 (arg1)->AddIcon((wxIcon const &)*arg2);
3540
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 Py_INCREF(Py_None); resultobj = Py_None;
3545 return resultobj;
3546 fail:
3547 return NULL;
3548}
3549
3550
3551static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3554 wxString *arg2 = 0 ;
3555 long arg3 ;
e811c8ce 3556 bool temp2 = False ;
d14a1e28
RD
3557 PyObject * obj0 = 0 ;
3558 PyObject * obj1 = 0 ;
3559 char *kwnames[] = {
3560 (char *) "self",(char *) "file",(char *) "type", NULL
3561 };
3562
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3565 {
3566 arg2 = wxString_in_helper(obj1);
3567 if (arg2 == NULL) SWIG_fail;
e811c8ce 3568 temp2 = True;
d14a1e28
RD
3569 }
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 Py_INCREF(Py_None); resultobj = Py_None;
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp2)
3586 delete arg2;
3587 }
3588 return NULL;
3589}
3590
3591
3592static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3595 wxSize *arg2 = 0 ;
3596 wxIcon *result;
3597 wxSize temp2 ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 char *kwnames[] = {
3601 (char *) "self",(char *) "size", NULL
3602 };
3603
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3606 {
3607 arg2 = &temp2;
3608 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3609 }
3610 {
3611 PyThreadState* __tstate = wxPyBeginAllowThreads();
3612 {
3613 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3614 result = (wxIcon *) &_result_ref;
3615 }
3616
3617 wxPyEndAllowThreads(__tstate);
3618 if (PyErr_Occurred()) SWIG_fail;
3619 }
3620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3621 return resultobj;
3622 fail:
3623 return NULL;
3624}
3625
3626
3627static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3628 PyObject *obj;
3629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3630 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3631 Py_INCREF(obj);
3632 return Py_BuildValue((char *)"");
3633}
3634static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3635 PyObject *resultobj;
3636 wxString *arg1 = (wxString *) 0 ;
3637 long arg2 ;
3638 int arg3 = (int) 0 ;
3639 int arg4 = (int) 0 ;
3640 wxCursor *result;
3641 PyObject * obj0 = 0 ;
3642 char *kwnames[] = {
3643 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3644 };
3645
3646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3656 return resultobj;
3657 fail:
3658 return NULL;
3659}
3660
3661
3662static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3663 PyObject *resultobj;
3664 wxCursor *arg1 = (wxCursor *) 0 ;
3665 PyObject * obj0 = 0 ;
3666 char *kwnames[] = {
3667 (char *) "self", NULL
3668 };
3669
3670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3672 {
3673 PyThreadState* __tstate = wxPyBeginAllowThreads();
3674 delete arg1;
3675
3676 wxPyEndAllowThreads(__tstate);
3677 if (PyErr_Occurred()) SWIG_fail;
3678 }
3679 Py_INCREF(Py_None); resultobj = Py_None;
3680 return resultobj;
3681 fail:
3682 return NULL;
3683}
3684
3685
3686static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3687 PyObject *resultobj;
3688 int arg1 ;
3689 wxCursor *result;
3690 char *kwnames[] = {
3691 (char *) "id", NULL
3692 };
3693
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 result = (wxCursor *)new wxCursor(arg1);
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3703 return resultobj;
3704 fail:
3705 return NULL;
3706}
3707
3708
3709static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3710 PyObject *resultobj;
3711 wxImage *arg1 = 0 ;
3712 wxCursor *result;
3713 PyObject * obj0 = 0 ;
3714 char *kwnames[] = {
3715 (char *) "image", NULL
3716 };
3717
3718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3720 if (arg1 == NULL) {
3721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3722 }
3723 {
3724 PyThreadState* __tstate = wxPyBeginAllowThreads();
3725 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3726
3727 wxPyEndAllowThreads(__tstate);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3731 return resultobj;
3732 fail:
3733 return NULL;
3734}
3735
3736
3737static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj;
3739 PyObject *arg1 = (PyObject *) 0 ;
3740 int arg2 ;
3741 int arg3 ;
3742 int arg4 = (int) -1 ;
3743 int arg5 = (int) -1 ;
3744 PyObject *arg6 = (PyObject *) 0 ;
3745 wxCursor *result;
3746 PyObject * obj0 = 0 ;
3747 PyObject * obj5 = 0 ;
3748 char *kwnames[] = {
3749 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3750 };
3751
3752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3753 arg1 = obj0;
3754 if (obj5) {
3755 arg6 = obj5;
3756 }
3757 {
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3760
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3765 return resultobj;
3766 fail:
3767 return NULL;
3768}
3769
3770
3771static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj;
3773 wxCursor *arg1 = (wxCursor *) 0 ;
3774 bool result;
3775 PyObject * obj0 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "self", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3782 {
3783 PyThreadState* __tstate = wxPyBeginAllowThreads();
3784 result = (bool)(arg1)->Ok();
3785
3786 wxPyEndAllowThreads(__tstate);
3787 if (PyErr_Occurred()) SWIG_fail;
3788 }
3789 resultobj = PyInt_FromLong((long)result);
3790 return resultobj;
3791 fail:
3792 return NULL;
3793}
3794
3795
3796static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3797 PyObject *obj;
3798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3799 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3800 Py_INCREF(obj);
3801 return Py_BuildValue((char *)"");
3802}
3803static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject *resultobj;
e811c8ce
RD
3805 int arg1 = (int) 0 ;
3806 int arg2 = (int) 0 ;
3807 int arg3 = (int) 0 ;
3808 int arg4 = (int) 0 ;
d14a1e28
RD
3809 wxRegion *result;
3810 char *kwnames[] = {
3811 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3812 };
3813
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3823 return resultobj;
3824 fail:
3825 return NULL;
3826}
3827
3828
3829static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj;
3831 wxBitmap *arg1 = 0 ;
3832 wxColour const &arg2_defvalue = wxNullColour ;
3833 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3834 int arg3 = (int) 0 ;
3835 wxRegion *result;
3836 wxColour temp2 ;
3837 PyObject * obj0 = 0 ;
3838 PyObject * obj1 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3845 if (arg1 == NULL) {
3846 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3847 }
3848 if (obj1) {
3849 {
3850 arg2 = &temp2;
3851 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3852 }
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 }
3861 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3862 return resultobj;
3863 fail:
3864 return NULL;
3865}
3866
3867
3868static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3869 PyObject *resultobj;
3870 int arg1 ;
3871 wxPoint *arg2 = (wxPoint *) 0 ;
3872 int arg3 = (int) wxWINDING_RULE ;
3873 wxRegion *result;
3874 PyObject * obj0 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "points",(char *) "fillStyle", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3880 {
3881 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3882 if (arg2 == NULL) SWIG_fail;
3883 }
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
3887
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3892 {
3893 if (arg2) delete [] arg2;
3894 }
3895 return resultobj;
3896 fail:
3897 {
3898 if (arg2) delete [] arg2;
3899 }
3900 return NULL;
3901}
3902
3903
3904static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3905 PyObject *resultobj;
3906 wxRegion *arg1 = (wxRegion *) 0 ;
3907 PyObject * obj0 = 0 ;
3908 char *kwnames[] = {
3909 (char *) "self", NULL
3910 };
3911
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 delete arg1;
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 Py_INCREF(Py_None); resultobj = Py_None;
3922 return resultobj;
3923 fail:
3924 return NULL;
3925}
3926
3927
3928static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 wxRegion *arg1 = (wxRegion *) 0 ;
3931 PyObject * obj0 = 0 ;
3932 char *kwnames[] = {
3933 (char *) "self", NULL
3934 };
3935
3936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
3937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 (arg1)->Clear();
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 Py_INCREF(Py_None); resultobj = Py_None;
3946 return resultobj;
3947 fail:
3948 return NULL;
3949}
3950
3951
3952static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
3955 int arg2 ;
3956 int arg3 ;
d14a1e28
RD
3957 bool result;
3958 PyObject * obj0 = 0 ;
3959 char *kwnames[] = {
3960 (char *) "self",(char *) "x",(char *) "y", NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
3964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3965 {
3966 PyThreadState* __tstate = wxPyBeginAllowThreads();
3967 result = (bool)(arg1)->Offset(arg2,arg3);
3968
3969 wxPyEndAllowThreads(__tstate);
3970 if (PyErr_Occurred()) SWIG_fail;
3971 }
3972 resultobj = PyInt_FromLong((long)result);
3973 return resultobj;
3974 fail:
3975 return NULL;
3976}
3977
3978
3979static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject *resultobj;
3981 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
3982 int arg2 ;
3983 int arg3 ;
d14a1e28
RD
3984 int result;
3985 PyObject * obj0 = 0 ;
3986 char *kwnames[] = {
3987 (char *) "self",(char *) "x",(char *) "y", NULL
3988 };
3989
3990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
3991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (int)(arg1)->Contains(arg2,arg3);
3995
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 resultobj = PyInt_FromLong((long)result);
4000 return resultobj;
4001 fail:
4002 return NULL;
4003}
4004
4005
4006static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4007 PyObject *resultobj;
4008 wxRegion *arg1 = (wxRegion *) 0 ;
4009 wxPoint *arg2 = 0 ;
4010 int result;
4011 wxPoint temp2 ;
4012 PyObject * obj0 = 0 ;
4013 PyObject * obj1 = 0 ;
4014 char *kwnames[] = {
4015 (char *) "self",(char *) "pt", NULL
4016 };
4017
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4020 {
4021 arg2 = &temp2;
4022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4023 }
4024 {
4025 PyThreadState* __tstate = wxPyBeginAllowThreads();
4026 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4027
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = PyInt_FromLong((long)result);
4032 return resultobj;
4033 fail:
4034 return NULL;
4035}
4036
4037
4038static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4039 PyObject *resultobj;
4040 wxRegion *arg1 = (wxRegion *) 0 ;
4041 wxRect *arg2 = 0 ;
4042 int result;
4043 wxRect temp2 ;
4044 PyObject * obj0 = 0 ;
4045 PyObject * obj1 = 0 ;
4046 char *kwnames[] = {
4047 (char *) "self",(char *) "rect", NULL
4048 };
4049
4050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4052 {
4053 arg2 = &temp2;
4054 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4055 }
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4059
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = PyInt_FromLong((long)result);
4064 return resultobj;
4065 fail:
4066 return NULL;
4067}
4068
4069
4070static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject *resultobj;
4072 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4073 int arg2 ;
4074 int arg3 ;
4075 int arg4 ;
4076 int arg5 ;
d14a1e28
RD
4077 int result;
4078 PyObject * obj0 = 0 ;
4079 char *kwnames[] = {
4080 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4081 };
4082
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4088
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = PyInt_FromLong((long)result);
4093 return resultobj;
4094 fail:
4095 return NULL;
4096}
4097
4098
4099static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj;
4101 wxRegion *arg1 = (wxRegion *) 0 ;
4102 wxRect result;
4103 PyObject * obj0 = 0 ;
4104 char *kwnames[] = {
4105 (char *) "self", NULL
4106 };
4107
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (arg1)->GetBox();
4113
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 {
4118 wxRect * resultptr;
4119 resultptr = new wxRect((wxRect &) result);
4120 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4121 }
4122 return resultobj;
4123 fail:
4124 return NULL;
4125}
4126
4127
4128static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4131 int arg2 ;
4132 int arg3 ;
4133 int arg4 ;
4134 int arg5 ;
d14a1e28
RD
4135 bool result;
4136 PyObject * obj0 = 0 ;
4137 char *kwnames[] = {
4138 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4139 };
4140
4141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4146
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 resultobj = PyInt_FromLong((long)result);
4151 return resultobj;
4152 fail:
4153 return NULL;
4154}
4155
4156
4157static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxRegion *arg1 = (wxRegion *) 0 ;
4160 wxRect *arg2 = 0 ;
4161 bool result;
4162 wxRect temp2 ;
4163 PyObject * obj0 = 0 ;
4164 PyObject * obj1 = 0 ;
4165 char *kwnames[] = {
4166 (char *) "self",(char *) "rect", NULL
4167 };
4168
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4171 {
4172 arg2 = &temp2;
4173 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4174 }
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 resultobj = PyInt_FromLong((long)result);
4183 return resultobj;
4184 fail:
4185 return NULL;
4186}
4187
4188
4189static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxRegion *arg1 = (wxRegion *) 0 ;
4192 wxRegion *arg2 = 0 ;
4193 bool result;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "self",(char *) "region", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4202 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4203 if (arg2 == NULL) {
4204 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4205 }
4206 {
4207 PyThreadState* __tstate = wxPyBeginAllowThreads();
4208 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4209
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = PyInt_FromLong((long)result);
4214 return resultobj;
4215 fail:
4216 return NULL;
4217}
4218
4219
4220static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj;
4222 wxRegion *arg1 = (wxRegion *) 0 ;
4223 bool result;
4224 PyObject * obj0 = 0 ;
4225 char *kwnames[] = {
4226 (char *) "self", NULL
4227 };
4228
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 result = (bool)(arg1)->IsEmpty();
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 resultobj = PyInt_FromLong((long)result);
4239 return resultobj;
4240 fail:
4241 return NULL;
4242}
4243
4244
4245static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4248 int arg2 ;
4249 int arg3 ;
4250 int arg4 ;
4251 int arg5 ;
d14a1e28
RD
4252 bool result;
4253 PyObject * obj0 = 0 ;
4254 char *kwnames[] = {
4255 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4256 };
4257
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4263
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = PyInt_FromLong((long)result);
4268 return resultobj;
4269 fail:
4270 return NULL;
4271}
4272
4273
4274static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj;
4276 wxRegion *arg1 = (wxRegion *) 0 ;
4277 wxRect *arg2 = 0 ;
4278 bool result;
4279 wxRect temp2 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 char *kwnames[] = {
4283 (char *) "self",(char *) "rect", NULL
4284 };
4285
4286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4288 {
4289 arg2 = &temp2;
4290 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4291 }
4292 {
4293 PyThreadState* __tstate = wxPyBeginAllowThreads();
4294 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4295
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 resultobj = PyInt_FromLong((long)result);
4300 return resultobj;
4301 fail:
4302 return NULL;
4303}
4304
4305
4306static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj;
4308 wxRegion *arg1 = (wxRegion *) 0 ;
4309 wxRegion *arg2 = 0 ;
4310 bool result;
4311 PyObject * obj0 = 0 ;
4312 PyObject * obj1 = 0 ;
4313 char *kwnames[] = {
4314 (char *) "self",(char *) "region", NULL
4315 };
4316
4317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4319 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4320 if (arg2 == NULL) {
4321 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4322 }
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = PyInt_FromLong((long)result);
4331 return resultobj;
4332 fail:
4333 return NULL;
4334}
4335
4336
4337static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4340 int arg2 ;
4341 int arg3 ;
4342 int arg4 ;
4343 int arg5 ;
d14a1e28
RD
4344 bool result;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4355
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 resultobj = PyInt_FromLong((long)result);
4360 return resultobj;
4361 fail:
4362 return NULL;
4363}
4364
4365
4366static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxRegion *arg1 = (wxRegion *) 0 ;
4369 wxRect *arg2 = 0 ;
4370 bool result;
4371 wxRect temp2 ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "rect", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4380 {
4381 arg2 = &temp2;
4382 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4383 }
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4387
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = PyInt_FromLong((long)result);
4392 return resultobj;
4393 fail:
4394 return NULL;
4395}
4396
4397
4398static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj;
4400 wxRegion *arg1 = (wxRegion *) 0 ;
4401 wxRegion *arg2 = 0 ;
4402 bool result;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "self",(char *) "region", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4411 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4412 if (arg2 == NULL) {
4413 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4414 }
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = PyInt_FromLong((long)result);
4423 return resultobj;
4424 fail:
4425 return NULL;
4426}
4427
4428
4429static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4430 PyObject *resultobj;
4431 wxRegion *arg1 = (wxRegion *) 0 ;
e811c8ce
RD
4432 int arg2 ;
4433 int arg3 ;
4434 int arg4 ;
4435 int arg5 ;
d14a1e28
RD
4436 bool result;
4437 PyObject * obj0 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = PyInt_FromLong((long)result);
4452 return resultobj;
4453 fail:
4454 return NULL;
4455}
4456
4457
4458static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxRegion *arg1 = (wxRegion *) 0 ;
4461 wxRect *arg2 = 0 ;
4462 bool result;
4463 wxRect temp2 ;
4464 PyObject * obj0 = 0 ;
4465 PyObject * obj1 = 0 ;
4466 char *kwnames[] = {
4467 (char *) "self",(char *) "rect", NULL
4468 };
4469
4470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4472 {
4473 arg2 = &temp2;
4474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4475 }
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = PyInt_FromLong((long)result);
4484 return resultobj;
4485 fail:
4486 return NULL;
4487}
4488
4489
4490static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 wxRegion *arg1 = (wxRegion *) 0 ;
4493 wxRegion *arg2 = 0 ;
4494 bool result;
4495 PyObject * obj0 = 0 ;
4496 PyObject * obj1 = 0 ;
4497 char *kwnames[] = {
4498 (char *) "self",(char *) "region", NULL
4499 };
4500
4501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4503 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4504 if (arg2 == NULL) {
4505 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4506 }
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = PyInt_FromLong((long)result);
4515 return resultobj;
4516 fail:
4517 return NULL;
4518}
4519
4520
4521static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj;
4523 wxRegion *arg1 = (wxRegion *) 0 ;
4524 SwigValueWrapper< wxBitmap > result;
4525 PyObject * obj0 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "self", NULL
4528 };
4529
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (arg1)->ConvertToBitmap();
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 {
4540 wxBitmap * resultptr;
4541 resultptr = new wxBitmap((wxBitmap &) result);
4542 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4543 }
4544 return resultobj;
4545 fail:
4546 return NULL;
4547}
4548
4549
4550static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxRegion *arg1 = (wxRegion *) 0 ;
4553 wxBitmap *arg2 = 0 ;
4554 wxColour const &arg3_defvalue = wxNullColour ;
4555 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4556 int arg4 = (int) 0 ;
4557 bool result;
4558 wxColour temp3 ;
4559 PyObject * obj0 = 0 ;
4560 PyObject * obj1 = 0 ;
4561 PyObject * obj2 = 0 ;
4562 char *kwnames[] = {
4563 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4564 };
4565
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4568 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4569 if (arg2 == NULL) {
4570 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4571 }
4572 if (obj2) {
4573 {
4574 arg3 = &temp3;
4575 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4576 }
4577 }
4578 {
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4581
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 resultobj = PyInt_FromLong((long)result);
4586 return resultobj;
4587 fail:
4588 return NULL;
4589}
4590
4591
4592static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4593 PyObject *obj;
4594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4595 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4596 Py_INCREF(obj);
4597 return Py_BuildValue((char *)"");
4598}
4599static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4600 PyObject *resultobj;
4601 wxRegion *arg1 = 0 ;
4602 wxRegionIterator *result;
4603 PyObject * obj0 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "region", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4610 if (arg1 == NULL) {
4611 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4612 }
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4621 return resultobj;
4622 fail:
4623 return NULL;
4624}
4625
4626
4627static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4630 PyObject * obj0 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "self", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 delete arg1;
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648}
4649
4650
4651static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4654 int result;
d14a1e28
RD
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4664 result = (int)(arg1)->GetX();
d14a1e28
RD
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 resultobj = PyInt_FromLong((long)result);
4670 return resultobj;
4671 fail:
4672 return NULL;
4673}
4674
4675
4676static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4677 PyObject *resultobj;
4678 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4679 int result;
d14a1e28
RD
4680 PyObject * obj0 = 0 ;
4681 char *kwnames[] = {
4682 (char *) "self", NULL
4683 };
4684
4685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4687 {
4688 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4689 result = (int)(arg1)->GetY();
d14a1e28
RD
4690
4691 wxPyEndAllowThreads(__tstate);
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 resultobj = PyInt_FromLong((long)result);
4695 return resultobj;
4696 fail:
4697 return NULL;
4698}
4699
4700
4701static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4702 PyObject *resultobj;
4703 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4704 int result;
d14a1e28
RD
4705 PyObject * obj0 = 0 ;
4706 char *kwnames[] = {
4707 (char *) "self", NULL
4708 };
4709
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4714 result = (int)(arg1)->GetW();
d14a1e28
RD
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 resultobj = PyInt_FromLong((long)result);
4720 return resultobj;
4721 fail:
4722 return NULL;
4723}
4724
4725
4726static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4727 PyObject *resultobj;
4728 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4729 int result;
d14a1e28
RD
4730 PyObject * obj0 = 0 ;
4731 char *kwnames[] = {
4732 (char *) "self", NULL
4733 };
4734
4735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4737 {
4738 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4739 result = (int)(arg1)->GetWidth();
d14a1e28
RD
4740
4741 wxPyEndAllowThreads(__tstate);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 resultobj = PyInt_FromLong((long)result);
4745 return resultobj;
4746 fail:
4747 return NULL;
4748}
4749
4750
4751static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject *resultobj;
4753 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4754 int result;
d14a1e28
RD
4755 PyObject * obj0 = 0 ;
4756 char *kwnames[] = {
4757 (char *) "self", NULL
4758 };
4759
4760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4762 {
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4764 result = (int)(arg1)->GetH();
d14a1e28
RD
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 resultobj = PyInt_FromLong((long)result);
4770 return resultobj;
4771 fail:
4772 return NULL;
4773}
4774
4775
4776static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj;
4778 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
e811c8ce 4779 int result;
d14a1e28
RD
4780 PyObject * obj0 = 0 ;
4781 char *kwnames[] = {
4782 (char *) "self", NULL
4783 };
4784
4785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 4789 result = (int)(arg1)->GetHeight();
d14a1e28
RD
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = PyInt_FromLong((long)result);
4795 return resultobj;
4796 fail:
4797 return NULL;
4798}
4799
4800
4801static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4804 wxRect result;
4805 PyObject * obj0 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "self", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (arg1)->GetRect();
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 {
4820 wxRect * resultptr;
4821 resultptr = new wxRect((wxRect &) result);
4822 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827}
4828
4829
4830static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4833 bool result;
4834 PyObject * obj0 = 0 ;
4835 char *kwnames[] = {
4836 (char *) "self", NULL
4837 };
4838
4839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (bool)(arg1)->HaveRects();
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 resultobj = PyInt_FromLong((long)result);
4849 return resultobj;
4850 fail:
4851 return NULL;
4852}
4853
4854
4855static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj;
4857 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4858 PyObject * obj0 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "self", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 (arg1)->Reset();
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 Py_INCREF(Py_None); resultobj = Py_None;
4873 return resultobj;
4874 fail:
4875 return NULL;
4876}
4877
4878
4879static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4882 PyObject * obj0 = 0 ;
4883 char *kwnames[] = {
4884 (char *) "self", NULL
4885 };
4886
4887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 wxRegionIterator_Next(arg1);
4892
4893 wxPyEndAllowThreads(__tstate);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 Py_INCREF(Py_None); resultobj = Py_None;
4897 return resultobj;
4898 fail:
4899 return NULL;
4900}
4901
4902
4903static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4904 PyObject *resultobj;
4905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4906 bool result;
4907 PyObject * obj0 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (bool)wxRegionIterator___nonzero__(arg1);
4917
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = PyInt_FromLong((long)result);
4922 return resultobj;
4923 fail:
4924 return NULL;
4925}
4926
4927
4928static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4929 PyObject *obj;
4930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4931 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4932 Py_INCREF(obj);
4933 return Py_BuildValue((char *)"");
4934}
4935static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4936 PyObject *resultobj;
4937 wxNativeFontInfo *result;
4938 char *kwnames[] = {
4939 NULL
4940 };
4941
4942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (wxNativeFontInfo *)new wxNativeFontInfo();
4946
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
4951 return resultobj;
4952 fail:
4953 return NULL;
4954}
4955
4956
4957static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4958 PyObject *resultobj;
4959 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4960 PyObject * obj0 = 0 ;
4961 char *kwnames[] = {
4962 (char *) "self", NULL
4963 };
4964
4965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
4966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 delete arg1;
4970
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 Py_INCREF(Py_None); resultobj = Py_None;
4975 return resultobj;
4976 fail:
4977 return NULL;
4978}
4979
4980
4981static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj;
4983 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4984 PyObject * obj0 = 0 ;
4985 char *kwnames[] = {
4986 (char *) "self", NULL
4987 };
4988
4989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
4990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 (arg1)->Init();
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 Py_INCREF(Py_None); resultobj = Py_None;
4999 return resultobj;
5000 fail:
5001 return NULL;
5002}
5003
5004
5005static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj;
5007 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5008 wxFont *arg2 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 char *kwnames[] = {
5012 (char *) "self",(char *) "font", NULL
5013 };
5014
5015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5017 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5018 if (arg2 == NULL) {
5019 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5020 }
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->InitFromFont((wxFont const &)*arg2);
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 Py_INCREF(Py_None); resultobj = Py_None;
5029 return resultobj;
5030 fail:
5031 return NULL;
5032}
5033
5034
5035static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj;
5037 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5038 int result;
5039 PyObject * obj0 = 0 ;
5040 char *kwnames[] = {
5041 (char *) "self", NULL
5042 };
5043
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = PyInt_FromLong((long)result);
5054 return resultobj;
5055 fail:
5056 return NULL;
5057}
5058
5059
5060static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5063 int result;
5064 PyObject * obj0 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5071 {
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5074
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 resultobj = PyInt_FromLong((long)result);
5079 return resultobj;
5080 fail:
5081 return NULL;
5082}
5083
5084
5085static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5086 PyObject *resultobj;
5087 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5088 int result;
5089 PyObject * obj0 = 0 ;
5090 char *kwnames[] = {
5091 (char *) "self", NULL
5092 };
5093
5094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5099
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = PyInt_FromLong((long)result);
5104 return resultobj;
5105 fail:
5106 return NULL;
5107}
5108
5109
5110static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5113 bool result;
5114 PyObject * obj0 = 0 ;
5115 char *kwnames[] = {
5116 (char *) "self", NULL
5117 };
5118
5119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5124
5125 wxPyEndAllowThreads(__tstate);
5126 if (PyErr_Occurred()) SWIG_fail;
5127 }
5128 resultobj = PyInt_FromLong((long)result);
5129 return resultobj;
5130 fail:
5131 return NULL;
5132}
5133
5134
5135static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5136 PyObject *resultobj;
5137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5138 wxString result;
5139 PyObject * obj0 = 0 ;
5140 char *kwnames[] = {
5141 (char *) "self", NULL
5142 };
5143
5144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 {
5154#if wxUSE_UNICODE
5155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5156#else
5157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5158#endif
5159 }
5160 return resultobj;
5161 fail:
5162 return NULL;
5163}
5164
5165
5166static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5167 PyObject *resultobj;
5168 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5169 int result;
5170 PyObject * obj0 = 0 ;
5171 char *kwnames[] = {
5172 (char *) "self", NULL
5173 };
5174
5175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 resultobj = PyInt_FromLong((long)result);
5185 return resultobj;
5186 fail:
5187 return NULL;
5188}
5189
5190
5191static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5192 PyObject *resultobj;
5193 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5194 int result;
5195 PyObject * obj0 = 0 ;
5196 char *kwnames[] = {
5197 (char *) "self", NULL
5198 };
5199
5200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = PyInt_FromLong((long)result);
5210 return resultobj;
5211 fail:
5212 return NULL;
5213}
5214
5215
5216static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj;
5218 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5219 int arg2 ;
5220 PyObject * obj0 = 0 ;
5221 char *kwnames[] = {
5222 (char *) "self",(char *) "pointsize", NULL
5223 };
5224
5225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 (arg1)->SetPointSize(arg2);
5230
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 Py_INCREF(Py_None); resultobj = Py_None;
5235 return resultobj;
5236 fail:
5237 return NULL;
5238}
5239
5240
5241static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5244 int arg2 ;
5245 PyObject * obj0 = 0 ;
5246 char *kwnames[] = {
5247 (char *) "self",(char *) "style", NULL
5248 };
5249
5250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 (arg1)->SetStyle((wxFontStyle )arg2);
5255
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 Py_INCREF(Py_None); resultobj = Py_None;
5260 return resultobj;
5261 fail:
5262 return NULL;
5263}
5264
5265
5266static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5267 PyObject *resultobj;
5268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5269 int arg2 ;
5270 PyObject * obj0 = 0 ;
5271 char *kwnames[] = {
5272 (char *) "self",(char *) "weight", NULL
5273 };
5274
5275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5277 {
5278 PyThreadState* __tstate = wxPyBeginAllowThreads();
5279 (arg1)->SetWeight((wxFontWeight )arg2);
5280
5281 wxPyEndAllowThreads(__tstate);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 Py_INCREF(Py_None); resultobj = Py_None;
5285 return resultobj;
5286 fail:
5287 return NULL;
5288}
5289
5290
5291static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject *resultobj;
5293 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5294 bool arg2 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char *kwnames[] = {
5298 (char *) "self",(char *) "underlined", NULL
5299 };
5300
5301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5303 arg2 = PyInt_AsLong(obj1) ? true : false;
5304 if (PyErr_Occurred()) SWIG_fail;
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 (arg1)->SetUnderlined(arg2);
5308
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 Py_INCREF(Py_None); resultobj = Py_None;
5313 return resultobj;
5314 fail:
5315 return NULL;
5316}
5317
5318
5319static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5320 PyObject *resultobj;
5321 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5322 wxString arg2 ;
d14a1e28
RD
5323 PyObject * obj0 = 0 ;
5324 PyObject * obj1 = 0 ;
5325 char *kwnames[] = {
5326 (char *) "self",(char *) "facename", NULL
5327 };
5328
5329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
e811c8ce
RD
5331 {
5332 wxString* sptr = wxString_in_helper(obj1);
5333 if (sptr == NULL) SWIG_fail;
5334 arg2 = *sptr;
5335 delete sptr;
5336 }
d14a1e28
RD
5337 {
5338 PyThreadState* __tstate = wxPyBeginAllowThreads();
5339 (arg1)->SetFaceName(arg2);
5340
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 Py_INCREF(Py_None); resultobj = Py_None;
5345 return resultobj;
5346 fail:
5347 return NULL;
5348}
5349
5350
5351static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5352 PyObject *resultobj;
5353 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5354 int arg2 ;
5355 PyObject * obj0 = 0 ;
5356 char *kwnames[] = {
5357 (char *) "self",(char *) "family", NULL
5358 };
5359
5360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 (arg1)->SetFamily((wxFontFamily )arg2);
5365
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 Py_INCREF(Py_None); resultobj = Py_None;
5370 return resultobj;
5371 fail:
5372 return NULL;
5373}
5374
5375
5376static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5377 PyObject *resultobj;
5378 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5379 int arg2 ;
5380 PyObject * obj0 = 0 ;
5381 char *kwnames[] = {
5382 (char *) "self",(char *) "encoding", NULL
5383 };
5384
5385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 (arg1)->SetEncoding((wxFontEncoding )arg2);
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 Py_INCREF(Py_None); resultobj = Py_None;
5395 return resultobj;
5396 fail:
5397 return NULL;
5398}
5399
5400
5401static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5404 wxString *arg2 = 0 ;
5405 bool result;
e811c8ce 5406 bool temp2 = False ;
d14a1e28
RD
5407 PyObject * obj0 = 0 ;
5408 PyObject * obj1 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "self",(char *) "s", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5415 {
5416 arg2 = wxString_in_helper(obj1);
5417 if (arg2 == NULL) SWIG_fail;
e811c8ce 5418 temp2 = True;
d14a1e28
RD
5419 }
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 resultobj = PyInt_FromLong((long)result);
5428 {
5429 if (temp2)
5430 delete arg2;
5431 }
5432 return resultobj;
5433 fail:
5434 {
5435 if (temp2)
5436 delete arg2;
5437 }
5438 return NULL;
5439}
5440
5441
5442static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5445 wxString result;
5446 PyObject * obj0 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 result = ((wxNativeFontInfo const *)arg1)->ToString();
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 {
5461#if wxUSE_UNICODE
5462 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5463#else
5464 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5465#endif
5466 }
5467 return resultobj;
5468 fail:
5469 return NULL;
5470}
5471
5472
5473static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj;
5475 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5476 wxString result;
5477 PyObject * obj0 = 0 ;
5478 char *kwnames[] = {
5479 (char *) "self", NULL
5480 };
5481
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = wxNativeFontInfo___str__(arg1);
5487
5488 wxPyEndAllowThreads(__tstate);
5489 if (PyErr_Occurred()) SWIG_fail;
5490 }
5491 {
5492#if wxUSE_UNICODE
5493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5494#else
5495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5496#endif
5497 }
5498 return resultobj;
5499 fail:
5500 return NULL;
5501}
5502
5503
5504static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj;
5506 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5507 wxString *arg2 = 0 ;
5508 bool result;
e811c8ce 5509 bool temp2 = False ;
d14a1e28
RD
5510 PyObject * obj0 = 0 ;
5511 PyObject * obj1 = 0 ;
5512 char *kwnames[] = {
5513 (char *) "self",(char *) "s", NULL
5514 };
5515
5516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5518 {
5519 arg2 = wxString_in_helper(obj1);
5520 if (arg2 == NULL) SWIG_fail;
e811c8ce 5521 temp2 = True;
d14a1e28
RD
5522 }
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5526
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = PyInt_FromLong((long)result);
5531 {
5532 if (temp2)
5533 delete arg2;
5534 }
5535 return resultobj;
5536 fail:
5537 {
5538 if (temp2)
5539 delete arg2;
5540 }
5541 return NULL;
5542}
5543
5544
5545static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj;
5547 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5548 wxString result;
5549 PyObject * obj0 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5556 {
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5559
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 {
5564#if wxUSE_UNICODE
5565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5566#else
5567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5568#endif
5569 }
5570 return resultobj;
5571 fail:
5572 return NULL;
5573}
5574
5575
5576static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5577 PyObject *obj;
5578 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5579 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5580 Py_INCREF(obj);
5581 return Py_BuildValue((char *)"");
5582}
5583static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5584 PyObject *resultobj;
5585 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5586 wxString arg2 ;
d14a1e28
RD
5587 PyObject * obj0 = 0 ;
5588 PyObject * obj1 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "self",(char *) "facename", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
e811c8ce
RD
5595 {
5596 wxString* sptr = wxString_in_helper(obj1);
5597 if (sptr == NULL) SWIG_fail;
5598 arg2 = *sptr;
5599 delete sptr;
5600 }
d14a1e28
RD
5601 if (arg1) (arg1)->facename = arg2;
5602
5603 Py_INCREF(Py_None); resultobj = Py_None;
5604 return resultobj;
5605 fail:
5606 return NULL;
5607}
5608
5609
5610static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5611 PyObject *resultobj;
5612 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5613 wxString result;
5614 PyObject * obj0 = 0 ;
5615 char *kwnames[] = {
5616 (char *) "self", NULL
5617 };
5618
5619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5621 result = ((arg1)->facename);
5622
5623 {
5624#if wxUSE_UNICODE
5625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5626#else
5627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5628#endif
5629 }
5630 return resultobj;
5631 fail:
5632 return NULL;
5633}
5634
5635
5636static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj;
5638 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5639 int arg2 ;
5640 PyObject * obj0 = 0 ;
5641 char *kwnames[] = {
5642 (char *) "self",(char *) "encoding", NULL
5643 };
5644
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5647 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5648
5649 Py_INCREF(Py_None); resultobj = Py_None;
5650 return resultobj;
5651 fail:
5652 return NULL;
5653}
5654
5655
5656static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5659 int result;
5660 PyObject * obj0 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "self", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5667 result = (int) ((arg1)->encoding);
5668
5669 resultobj = PyInt_FromLong((long)result);
5670 return resultobj;
5671 fail:
5672 return NULL;
5673}
5674
5675
5676static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj;
5678 wxNativeEncodingInfo *result;
5679 char *kwnames[] = {
5680 NULL
5681 };
5682
5683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5692 return resultobj;
5693 fail:
5694 return NULL;
5695}
5696
5697
5698static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5701 PyObject * obj0 = 0 ;
5702 char *kwnames[] = {
5703 (char *) "self", NULL
5704 };
5705
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 delete arg1;
5711
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 Py_INCREF(Py_None); resultobj = Py_None;
5716 return resultobj;
5717 fail:
5718 return NULL;
5719}
5720
5721
5722static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj;
5724 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5725 wxString *arg2 = 0 ;
5726 bool result;
e811c8ce 5727 bool temp2 = False ;
d14a1e28
RD
5728 PyObject * obj0 = 0 ;
5729 PyObject * obj1 = 0 ;
5730 char *kwnames[] = {
5731 (char *) "self",(char *) "s", NULL
5732 };
5733
5734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5736 {
5737 arg2 = wxString_in_helper(obj1);
5738 if (arg2 == NULL) SWIG_fail;
e811c8ce 5739 temp2 = True;
d14a1e28
RD
5740 }
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = PyInt_FromLong((long)result);
5749 {
5750 if (temp2)
5751 delete arg2;
5752 }
5753 return resultobj;
5754 fail:
5755 {
5756 if (temp2)
5757 delete arg2;
5758 }
5759 return NULL;
5760}
5761
5762
5763static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5766 wxString result;
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782#if wxUSE_UNICODE
5783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5784#else
5785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5786#endif
5787 }
5788 return resultobj;
5789 fail:
5790 return NULL;
5791}
5792
5793
5794static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5795 PyObject *obj;
5796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5797 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5798 Py_INCREF(obj);
5799 return Py_BuildValue((char *)"");
5800}
5801static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj;
5803 int arg1 ;
5804 wxNativeEncodingInfo *result;
5805 char *kwnames[] = {
5806 (char *) "encoding", NULL
5807 };
5808
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5818 return resultobj;
5819 fail:
5820 return NULL;
5821}
5822
5823
5824static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj;
5826 wxNativeEncodingInfo *arg1 = 0 ;
5827 bool result;
5828 PyObject * obj0 = 0 ;
5829 char *kwnames[] = {
5830 (char *) "info", NULL
5831 };
5832
5833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5835 if (arg1 == NULL) {
5836 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5841
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 resultobj = PyInt_FromLong((long)result);
5846 return resultobj;
5847 fail:
5848 return NULL;
5849}
5850
5851
5852static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5853 PyObject *resultobj;
5854 wxFontMapper *result;
5855 char *kwnames[] = {
5856 NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (wxFontMapper *)new wxFontMapper();
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5868 return resultobj;
5869 fail:
5870 return NULL;
5871}
5872
5873
5874static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5877 PyObject * obj0 = 0 ;
5878 char *kwnames[] = {
5879 (char *) "self", NULL
5880 };
5881
5882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5884 {
5885 PyThreadState* __tstate = wxPyBeginAllowThreads();
5886 delete arg1;
5887
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 Py_INCREF(Py_None); resultobj = Py_None;
5892 return resultobj;
5893 fail:
5894 return NULL;
5895}
5896
5897
5898static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj;
5900 wxFontMapper *result;
5901 char *kwnames[] = {
5902 NULL
5903 };
5904
5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (wxFontMapper *)wxFontMapper::Get();
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5914 return resultobj;
5915 fail:
5916 return NULL;
5917}
5918
5919
5920static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj;
5922 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5923 wxFontMapper *result;
5924 PyObject * obj0 = 0 ;
5925 char *kwnames[] = {
5926 (char *) "mapper", NULL
5927 };
5928
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5939 return resultobj;
5940 fail:
5941 return NULL;
5942}
5943
5944
5945static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5946 PyObject *resultobj;
5947 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5948 wxString *arg2 = 0 ;
e811c8ce 5949 bool arg3 = (bool) True ;
d14a1e28 5950 int result;
e811c8ce 5951 bool temp2 = False ;
d14a1e28
RD
5952 PyObject * obj0 = 0 ;
5953 PyObject * obj1 = 0 ;
5954 PyObject * obj2 = 0 ;
5955 char *kwnames[] = {
5956 (char *) "self",(char *) "charset",(char *) "interactive", NULL
5957 };
5958
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
5960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5961 {
5962 arg2 = wxString_in_helper(obj1);
5963 if (arg2 == NULL) SWIG_fail;
e811c8ce 5964 temp2 = True;
d14a1e28
RD
5965 }
5966 if (obj2) {
5967 arg3 = PyInt_AsLong(obj2) ? true : false;
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = PyInt_FromLong((long)result);
5978 {
5979 if (temp2)
5980 delete arg2;
5981 }
5982 return resultobj;
5983 fail:
5984 {
5985 if (temp2)
5986 delete arg2;
5987 }
5988 return NULL;
5989}
5990
5991
5992static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj;
5994 size_t result;
5995 char *kwnames[] = {
5996 NULL
5997 };
5998
5999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6000 {
6001 PyThreadState* __tstate = wxPyBeginAllowThreads();
6002 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6003
6004 wxPyEndAllowThreads(__tstate);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 }
6007 resultobj = PyInt_FromLong((long)result);
6008 return resultobj;
6009 fail:
6010 return NULL;
6011}
6012
6013
6014static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6015 PyObject *resultobj;
6016 size_t arg1 ;
6017 int result;
6018 PyObject * obj0 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "n", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6024 arg1 = (size_t) PyInt_AsLong(obj0);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 {
6027 PyThreadState* __tstate = wxPyBeginAllowThreads();
6028 result = (int)wxFontMapper::GetEncoding(arg1);
6029
6030 wxPyEndAllowThreads(__tstate);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 resultobj = PyInt_FromLong((long)result);
6034 return resultobj;
6035 fail:
6036 return NULL;
6037}
6038
6039
6040static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6041 PyObject *resultobj;
6042 int arg1 ;
6043 wxString result;
6044 char *kwnames[] = {
6045 (char *) "encoding", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 {
6057#if wxUSE_UNICODE
6058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6059#else
6060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6061#endif
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066}
6067
6068
6069static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj;
6071 int arg1 ;
6072 wxString result;
6073 char *kwnames[] = {
6074 (char *) "encoding", NULL
6075 };
6076
6077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6078 {
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
6080 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6081
6082 wxPyEndAllowThreads(__tstate);
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 {
6086#if wxUSE_UNICODE
6087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6088#else
6089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6090#endif
6091 }
6092 return resultobj;
6093 fail:
6094 return NULL;
6095}
6096
6097
6098static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6099 PyObject *resultobj;
6100 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6101 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self",(char *) "config", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 (arg1)->SetConfig(arg2);
6114
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 Py_INCREF(Py_None); resultobj = Py_None;
6119 return resultobj;
6120 fail:
6121 return NULL;
6122}
6123
6124
6125static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj;
6127 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6128 wxString *arg2 = 0 ;
e811c8ce 6129 bool temp2 = False ;
d14a1e28
RD
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "self",(char *) "prefix", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6138 {
6139 arg2 = wxString_in_helper(obj1);
6140 if (arg2 == NULL) SWIG_fail;
e811c8ce 6141 temp2 = True;
d14a1e28
RD
6142 }
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 (arg1)->SetConfigPath((wxString const &)*arg2);
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 Py_INCREF(Py_None); resultobj = Py_None;
6151 {
6152 if (temp2)
6153 delete arg2;
6154 }
6155 return resultobj;
6156 fail:
6157 {
6158 if (temp2)
6159 delete arg2;
6160 }
6161 return NULL;
6162}
6163
6164
6165static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6166 PyObject *resultobj;
6167 wxString result;
6168 char *kwnames[] = {
6169 NULL
6170 };
6171
6172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = wxFontMapper::GetDefaultConfigPath();
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 {
6181#if wxUSE_UNICODE
6182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6183#else
6184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6185#endif
6186 }
6187 return resultobj;
6188 fail:
6189 return NULL;
6190}
6191
6192
6193static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj;
6195 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6196 int arg2 ;
6197 wxString const &arg3_defvalue = wxPyEmptyString ;
6198 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 6199 bool arg4 = (bool) True ;
d14a1e28 6200 PyObject *result;
e811c8ce 6201 bool temp3 = False ;
d14a1e28
RD
6202 PyObject * obj0 = 0 ;
6203 PyObject * obj2 = 0 ;
6204 PyObject * obj3 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6211 if (obj2) {
6212 {
6213 arg3 = wxString_in_helper(obj2);
6214 if (arg3 == NULL) SWIG_fail;
e811c8ce 6215 temp3 = True;
d14a1e28
RD
6216 }
6217 }
6218 if (obj3) {
6219 arg4 = PyInt_AsLong(obj3) ? true : false;
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6225
6226 wxPyEndAllowThreads(__tstate);
6227 if (PyErr_Occurred()) SWIG_fail;
6228 }
6229 resultobj = result;
6230 {
6231 if (temp3)
6232 delete arg3;
6233 }
6234 return resultobj;
6235 fail:
6236 {
6237 if (temp3)
6238 delete arg3;
6239 }
6240 return NULL;
6241}
6242
6243
6244static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6245 PyObject *resultobj;
6246 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6247 int arg2 ;
6248 wxString const &arg3_defvalue = wxPyEmptyString ;
6249 wxString *arg3 = (wxString *) &arg3_defvalue ;
6250 bool result;
e811c8ce 6251 bool temp3 = False ;
d14a1e28
RD
6252 PyObject * obj0 = 0 ;
6253 PyObject * obj2 = 0 ;
6254 char *kwnames[] = {
6255 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6256 };
6257
6258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6260 if (obj2) {
6261 {
6262 arg3 = wxString_in_helper(obj2);
6263 if (arg3 == NULL) SWIG_fail;
e811c8ce 6264 temp3 = True;
d14a1e28
RD
6265 }
6266 }
6267 {
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6270
6271 wxPyEndAllowThreads(__tstate);
6272 if (PyErr_Occurred()) SWIG_fail;
6273 }
6274 resultobj = PyInt_FromLong((long)result);
6275 {
6276 if (temp3)
6277 delete arg3;
6278 }
6279 return resultobj;
6280 fail:
6281 {
6282 if (temp3)
6283 delete arg3;
6284 }
6285 return NULL;
6286}
6287
6288
6289static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6290 PyObject *resultobj;
6291 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6292 wxWindow *arg2 = (wxWindow *) 0 ;
6293 PyObject * obj0 = 0 ;
6294 PyObject * obj1 = 0 ;
6295 char *kwnames[] = {
6296 (char *) "self",(char *) "parent", NULL
6297 };
6298
6299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6301 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6302 {
6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
6304 (arg1)->SetDialogParent(arg2);
6305
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 Py_INCREF(Py_None); resultobj = Py_None;
6310 return resultobj;
6311 fail:
6312 return NULL;
6313}
6314
6315
6316static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj;
6318 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6319 wxString *arg2 = 0 ;
e811c8ce 6320 bool temp2 = False ;
d14a1e28
RD
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char *kwnames[] = {
6324 (char *) "self",(char *) "title", NULL
6325 };
6326
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6329 {
6330 arg2 = wxString_in_helper(obj1);
6331 if (arg2 == NULL) SWIG_fail;
e811c8ce 6332 temp2 = True;
d14a1e28
RD
6333 }
6334 {
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 (arg1)->SetDialogTitle((wxString const &)*arg2);
6337
6338 wxPyEndAllowThreads(__tstate);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 Py_INCREF(Py_None); resultobj = Py_None;
6342 {
6343 if (temp2)
6344 delete arg2;
6345 }
6346 return resultobj;
6347 fail:
6348 {
6349 if (temp2)
6350 delete arg2;
6351 }
6352 return NULL;
6353}
6354
6355
6356static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6357 PyObject *obj;
6358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6359 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6360 Py_INCREF(obj);
6361 return Py_BuildValue((char *)"");
6362}
6363static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 int arg1 ;
6366 int arg2 ;
6367 int arg3 ;
6368 int arg4 ;
e811c8ce 6369 bool arg5 = (bool) False ;
d14a1e28
RD
6370 wxString const &arg6_defvalue = wxPyEmptyString ;
6371 wxString *arg6 = (wxString *) &arg6_defvalue ;
6372 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6373 wxFont *result;
e811c8ce 6374 bool temp6 = False ;
d14a1e28
RD
6375 PyObject * obj4 = 0 ;
6376 PyObject * obj5 = 0 ;
6377 char *kwnames[] = {
6378 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6379 };
6380
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6382 if (obj4) {
6383 arg5 = PyInt_AsLong(obj4) ? true : false;
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 if (obj5) {
6387 {
6388 arg6 = wxString_in_helper(obj5);
6389 if (arg6 == NULL) SWIG_fail;
e811c8ce 6390 temp6 = True;
d14a1e28
RD
6391 }
6392 }
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6396
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6401 {
6402 if (temp6)
6403 delete arg6;
6404 }
6405 return resultobj;
6406 fail:
6407 {
6408 if (temp6)
6409 delete arg6;
6410 }
6411 return NULL;
6412}
6413
6414
6415static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6416 PyObject *resultobj;
6417 wxFont *arg1 = (wxFont *) 0 ;
6418 PyObject * obj0 = 0 ;
6419 char *kwnames[] = {
6420 (char *) "self", NULL
6421 };
6422
6423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 delete arg1;
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 Py_INCREF(Py_None); resultobj = Py_None;
6433 return resultobj;
6434 fail:
6435 return NULL;
6436}
6437
6438
6439static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj;
6441 wxNativeFontInfo *arg1 = 0 ;
6442 wxFont *result;
6443 PyObject * obj0 = 0 ;
6444 char *kwnames[] = {
6445 (char *) "info", NULL
6446 };
6447
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6450 if (arg1 == NULL) {
6451 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6452 }
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6456
6457 wxPyEndAllowThreads(__tstate);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 }
6460 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6461 return resultobj;
6462 fail:
6463 return NULL;
6464}
6465
6466
6467static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6468 PyObject *resultobj;
6469 wxString *arg1 = 0 ;
6470 wxFont *result;
e811c8ce 6471 bool temp1 = False ;
d14a1e28
RD
6472 PyObject * obj0 = 0 ;
6473 char *kwnames[] = {
6474 (char *) "info", NULL
6475 };
6476
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6478 {
6479 arg1 = wxString_in_helper(obj0);
6480 if (arg1 == NULL) SWIG_fail;
e811c8ce 6481 temp1 = True;
d14a1e28
RD
6482 }
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6486
6487 wxPyEndAllowThreads(__tstate);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6491 {
6492 if (temp1)
6493 delete arg1;
6494 }
6495 return resultobj;
6496 fail:
6497 {
6498 if (temp1)
6499 delete arg1;
6500 }
6501 return NULL;
6502}
6503
6504
6505static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj;
6507 int arg1 ;
6508 int arg2 ;
6509 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6510 wxString const &arg4_defvalue = wxPyEmptyString ;
6511 wxString *arg4 = (wxString *) &arg4_defvalue ;
6512 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6513 wxFont *result;
e811c8ce 6514 bool temp4 = False ;
d14a1e28
RD
6515 PyObject * obj3 = 0 ;
6516 char *kwnames[] = {
6517 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6518 };
6519
6520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6521 if (obj3) {
6522 {
6523 arg4 = wxString_in_helper(obj3);
6524 if (arg4 == NULL) SWIG_fail;
e811c8ce 6525 temp4 = True;
d14a1e28
RD
6526 }
6527 }
6528 {
6529 PyThreadState* __tstate = wxPyBeginAllowThreads();
6530 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6531
6532 wxPyEndAllowThreads(__tstate);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6536 {
6537 if (temp4)
6538 delete arg4;
6539 }
6540 return resultobj;
6541 fail:
6542 {
6543 if (temp4)
6544 delete arg4;
6545 }
6546 return NULL;
6547}
6548
6549
6550static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6551 PyObject *resultobj;
6552 wxFont *arg1 = (wxFont *) 0 ;
6553 bool result;
6554 PyObject * obj0 = 0 ;
6555 char *kwnames[] = {
6556 (char *) "self", NULL
6557 };
6558
6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6561 {
6562 PyThreadState* __tstate = wxPyBeginAllowThreads();
6563 result = (bool)((wxFont const *)arg1)->Ok();
6564
6565 wxPyEndAllowThreads(__tstate);
6566 if (PyErr_Occurred()) SWIG_fail;
6567 }
6568 resultobj = PyInt_FromLong((long)result);
6569 return resultobj;
6570 fail:
6571 return NULL;
6572}
6573
6574
6575static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6576 PyObject *resultobj;
6577 wxFont *arg1 = (wxFont *) 0 ;
6578 wxFont *arg2 = 0 ;
6579 bool result;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self",(char *) "font", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6588 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6589 if (arg2 == NULL) {
6590 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6591 }
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = PyInt_FromLong((long)result);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603}
6604
6605
6606static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxFont *arg1 = (wxFont *) 0 ;
6609 wxFont *arg2 = 0 ;
6610 bool result;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self",(char *) "font", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6619 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6620 if (arg2 == NULL) {
6621 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 resultobj = PyInt_FromLong((long)result);
6631 return resultobj;
6632 fail:
6633 return NULL;
6634}
6635
6636
6637static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 wxFont *arg1 = (wxFont *) 0 ;
6640 int result;
6641 PyObject * obj0 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "self", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6648 {
6649 PyThreadState* __tstate = wxPyBeginAllowThreads();
6650 result = (int)((wxFont const *)arg1)->GetPointSize();
6651
6652 wxPyEndAllowThreads(__tstate);
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 resultobj = PyInt_FromLong((long)result);
6656 return resultobj;
6657 fail:
6658 return NULL;
6659}
6660
6661
6662static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6663 PyObject *resultobj;
6664 wxFont *arg1 = (wxFont *) 0 ;
6665 int result;
6666 PyObject * obj0 = 0 ;
6667 char *kwnames[] = {
6668 (char *) "self", NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (int)((wxFont const *)arg1)->GetFamily();
6676
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 resultobj = PyInt_FromLong((long)result);
6681 return resultobj;
6682 fail:
6683 return NULL;
6684}
6685
6686
6687static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6688 PyObject *resultobj;
6689 wxFont *arg1 = (wxFont *) 0 ;
6690 int result;
6691 PyObject * obj0 = 0 ;
6692 char *kwnames[] = {
6693 (char *) "self", NULL
6694 };
6695
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 result = (int)((wxFont const *)arg1)->GetStyle();
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 resultobj = PyInt_FromLong((long)result);
6706 return resultobj;
6707 fail:
6708 return NULL;
6709}
6710
6711
6712static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxFont *arg1 = (wxFont *) 0 ;
6715 int result;
6716 PyObject * obj0 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "self", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (int)((wxFont const *)arg1)->GetWeight();
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = PyInt_FromLong((long)result);
6731 return resultobj;
6732 fail:
6733 return NULL;
6734}
6735
6736
6737static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj;
6739 wxFont *arg1 = (wxFont *) 0 ;
6740 bool result;
6741 PyObject * obj0 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 resultobj = PyInt_FromLong((long)result);
6756 return resultobj;
6757 fail:
6758 return NULL;
6759}
6760
6761
6762static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj;
6764 wxFont *arg1 = (wxFont *) 0 ;
6765 wxString result;
6766 PyObject * obj0 = 0 ;
6767 char *kwnames[] = {
6768 (char *) "self", NULL
6769 };
6770
6771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6773 {
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = ((wxFont const *)arg1)->GetFaceName();
6776
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 {
6781#if wxUSE_UNICODE
6782 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6783#else
6784 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6785#endif
6786 }
6787 return resultobj;
6788 fail:
6789 return NULL;
6790}
6791
6792
6793static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6794 PyObject *resultobj;
6795 wxFont *arg1 = (wxFont *) 0 ;
6796 int result;
6797 PyObject * obj0 = 0 ;
6798 char *kwnames[] = {
6799 (char *) "self", NULL
6800 };
6801
6802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 result = (int)((wxFont const *)arg1)->GetEncoding();
6807
6808 wxPyEndAllowThreads(__tstate);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 resultobj = PyInt_FromLong((long)result);
6812 return resultobj;
6813 fail:
6814 return NULL;
6815}
6816
6817
6818static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject *resultobj;
6820 wxFont *arg1 = (wxFont *) 0 ;
6821 wxNativeFontInfo *result;
6822 PyObject * obj0 = 0 ;
6823 char *kwnames[] = {
6824 (char *) "self", NULL
6825 };
6826
6827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6829 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6832
6833 wxPyEndAllowThreads(__tstate);
6834 if (PyErr_Occurred()) SWIG_fail;
6835 }
6836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6837 return resultobj;
6838 fail:
6839 return NULL;
6840}
6841
6842
6843static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6844 PyObject *resultobj;
6845 wxFont *arg1 = (wxFont *) 0 ;
6846 bool result;
6847 PyObject * obj0 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "self", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6857
6858 wxPyEndAllowThreads(__tstate);
6859 if (PyErr_Occurred()) SWIG_fail;
6860 }
6861 resultobj = PyInt_FromLong((long)result);
6862 return resultobj;
6863 fail:
6864 return NULL;
6865}
6866
6867
6868static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject *resultobj;
6870 wxFont *arg1 = (wxFont *) 0 ;
6871 wxString result;
6872 PyObject * obj0 = 0 ;
6873 char *kwnames[] = {
6874 (char *) "self", NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6879 {
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6882
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 {
6887#if wxUSE_UNICODE
6888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6889#else
6890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6891#endif
6892 }
6893 return resultobj;
6894 fail:
6895 return NULL;
6896}
6897
6898
6899static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj;
6901 wxFont *arg1 = (wxFont *) 0 ;
6902 wxString result;
6903 PyObject * obj0 = 0 ;
6904 char *kwnames[] = {
6905 (char *) "self", NULL
6906 };
6907
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6910 {
6911 PyThreadState* __tstate = wxPyBeginAllowThreads();
6912 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6913
6914 wxPyEndAllowThreads(__tstate);
6915 if (PyErr_Occurred()) SWIG_fail;
6916 }
6917 {
6918#if wxUSE_UNICODE
6919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6920#else
6921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6922#endif
6923 }
6924 return resultobj;
6925 fail:
6926 return NULL;
6927}
6928
6929
6930static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj;
6932 wxFont *arg1 = (wxFont *) 0 ;
6933 int arg2 ;
6934 PyObject * obj0 = 0 ;
6935 char *kwnames[] = {
6936 (char *) "self",(char *) "pointSize", NULL
6937 };
6938
6939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 (arg1)->SetPointSize(arg2);
6944
6945 wxPyEndAllowThreads(__tstate);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 Py_INCREF(Py_None); resultobj = Py_None;
6949 return resultobj;
6950 fail:
6951 return NULL;
6952}
6953
6954
6955static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6956 PyObject *resultobj;
6957 wxFont *arg1 = (wxFont *) 0 ;
6958 int arg2 ;
6959 PyObject * obj0 = 0 ;
6960 char *kwnames[] = {
6961 (char *) "self",(char *) "family", NULL
6962 };
6963
6964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
6965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 (arg1)->SetFamily(arg2);
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 Py_INCREF(Py_None); resultobj = Py_None;
6974 return resultobj;
6975 fail:
6976 return NULL;
6977}
6978
6979
6980static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxFont *arg1 = (wxFont *) 0 ;
6983 int arg2 ;
6984 PyObject * obj0 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self",(char *) "style", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 (arg1)->SetStyle(arg2);
6994
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 Py_INCREF(Py_None); resultobj = Py_None;
6999 return resultobj;
7000 fail:
7001 return NULL;
7002}
7003
7004
7005static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7006 PyObject *resultobj;
7007 wxFont *arg1 = (wxFont *) 0 ;
7008 int arg2 ;
7009 PyObject * obj0 = 0 ;
7010 char *kwnames[] = {
7011 (char *) "self",(char *) "weight", NULL
7012 };
7013
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetWeight(arg2);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 Py_INCREF(Py_None); resultobj = Py_None;
7024 return resultobj;
7025 fail:
7026 return NULL;
7027}
7028
7029
7030static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxFont *arg1 = (wxFont *) 0 ;
7033 wxString *arg2 = 0 ;
e811c8ce 7034 bool temp2 = False ;
d14a1e28
RD
7035 PyObject * obj0 = 0 ;
7036 PyObject * obj1 = 0 ;
7037 char *kwnames[] = {
7038 (char *) "self",(char *) "faceName", NULL
7039 };
7040
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7043 {
7044 arg2 = wxString_in_helper(obj1);
7045 if (arg2 == NULL) SWIG_fail;
e811c8ce 7046 temp2 = True;
d14a1e28
RD
7047 }
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
7050 (arg1)->SetFaceName((wxString const &)*arg2);
7051
7052 wxPyEndAllowThreads(__tstate);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 Py_INCREF(Py_None); resultobj = Py_None;
7056 {
7057 if (temp2)
7058 delete arg2;
7059 }
7060 return resultobj;
7061 fail:
7062 {
7063 if (temp2)
7064 delete arg2;
7065 }
7066 return NULL;
7067}
7068
7069
7070static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject *resultobj;
7072 wxFont *arg1 = (wxFont *) 0 ;
7073 bool arg2 ;
7074 PyObject * obj0 = 0 ;
7075 PyObject * obj1 = 0 ;
7076 char *kwnames[] = {
7077 (char *) "self",(char *) "underlined", NULL
7078 };
7079
7080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7082 arg2 = PyInt_AsLong(obj1) ? true : false;
7083 if (PyErr_Occurred()) SWIG_fail;
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 (arg1)->SetUnderlined(arg2);
7087
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 Py_INCREF(Py_None); resultobj = Py_None;
7092 return resultobj;
7093 fail:
7094 return NULL;
7095}
7096
7097
7098static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7099 PyObject *resultobj;
7100 wxFont *arg1 = (wxFont *) 0 ;
7101 int arg2 ;
7102 PyObject * obj0 = 0 ;
7103 char *kwnames[] = {
7104 (char *) "self",(char *) "encoding", NULL
7105 };
7106
7107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 (arg1)->SetEncoding((wxFontEncoding )arg2);
7112
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 Py_INCREF(Py_None); resultobj = Py_None;
7117 return resultobj;
7118 fail:
7119 return NULL;
7120}
7121
7122
7123static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxFont *arg1 = (wxFont *) 0 ;
7126 wxNativeFontInfo *arg2 = 0 ;
7127 PyObject * obj0 = 0 ;
7128 PyObject * obj1 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self",(char *) "info", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7135 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7136 if (arg2 == NULL) {
7137 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7138 }
7139 {
7140 PyThreadState* __tstate = wxPyBeginAllowThreads();
7141 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7142
7143 wxPyEndAllowThreads(__tstate);
7144 if (PyErr_Occurred()) SWIG_fail;
7145 }
7146 Py_INCREF(Py_None); resultobj = Py_None;
7147 return resultobj;
7148 fail:
7149 return NULL;
7150}
7151
7152
7153static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj;
7155 wxFont *arg1 = (wxFont *) 0 ;
7156 wxString *arg2 = 0 ;
e811c8ce 7157 bool temp2 = False ;
d14a1e28
RD
7158 PyObject * obj0 = 0 ;
7159 PyObject * obj1 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self",(char *) "info", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7166 {
7167 arg2 = wxString_in_helper(obj1);
7168 if (arg2 == NULL) SWIG_fail;
e811c8ce 7169 temp2 = True;
d14a1e28
RD
7170 }
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7174
7175 wxPyEndAllowThreads(__tstate);
7176 if (PyErr_Occurred()) SWIG_fail;
7177 }
7178 Py_INCREF(Py_None); resultobj = Py_None;
7179 {
7180 if (temp2)
7181 delete arg2;
7182 }
7183 return resultobj;
7184 fail:
7185 {
7186 if (temp2)
7187 delete arg2;
7188 }
7189 return NULL;
7190}
7191
7192
7193static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj;
7195 wxFont *arg1 = (wxFont *) 0 ;
7196 wxString *arg2 = 0 ;
e811c8ce 7197 bool temp2 = False ;
d14a1e28
RD
7198 PyObject * obj0 = 0 ;
7199 PyObject * obj1 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "self",(char *) "info", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7206 {
7207 arg2 = wxString_in_helper(obj1);
7208 if (arg2 == NULL) SWIG_fail;
e811c8ce 7209 temp2 = True;
d14a1e28
RD
7210 }
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7214
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 Py_INCREF(Py_None); resultobj = Py_None;
7219 {
7220 if (temp2)
7221 delete arg2;
7222 }
7223 return resultobj;
7224 fail:
7225 {
7226 if (temp2)
7227 delete arg2;
7228 }
7229 return NULL;
7230}
7231
7232
7233static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj;
7235 wxFont *arg1 = (wxFont *) 0 ;
7236 wxString result;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "self", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = ((wxFont const *)arg1)->GetFamilyString();
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 {
7252#if wxUSE_UNICODE
7253 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7254#else
7255 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7256#endif
7257 }
7258 return resultobj;
7259 fail:
7260 return NULL;
7261}
7262
7263
7264static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj;
7266 wxFont *arg1 = (wxFont *) 0 ;
7267 wxString result;
7268 PyObject * obj0 = 0 ;
7269 char *kwnames[] = {
7270 (char *) "self", NULL
7271 };
7272
7273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = ((wxFont const *)arg1)->GetStyleString();
7278
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 {
7283#if wxUSE_UNICODE
7284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7285#else
7286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7287#endif
7288 }
7289 return resultobj;
7290 fail:
7291 return NULL;
7292}
7293
7294
7295static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj;
7297 wxFont *arg1 = (wxFont *) 0 ;
7298 wxString result;
7299 PyObject * obj0 = 0 ;
7300 char *kwnames[] = {
7301 (char *) "self", NULL
7302 };
7303
7304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = ((wxFont const *)arg1)->GetWeightString();
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 {
7314#if wxUSE_UNICODE
7315 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7316#else
7317 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7318#endif
7319 }
7320 return resultobj;
7321 fail:
7322 return NULL;
7323}
7324
7325
7326static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7327 PyObject *resultobj;
7328 wxFont *arg1 = (wxFont *) 0 ;
e811c8ce 7329 bool arg2 = (bool) True ;
d14a1e28
RD
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char *kwnames[] = {
7333 (char *) "self",(char *) "no", NULL
7334 };
7335
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7338 if (obj1) {
7339 arg2 = PyInt_AsLong(obj1) ? true : false;
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 (arg1)->SetNoAntiAliasing(arg2);
7345
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 Py_INCREF(Py_None); resultobj = Py_None;
7350 return resultobj;
7351 fail:
7352 return NULL;
7353}
7354
7355
7356static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxFont *arg1 = (wxFont *) 0 ;
7359 bool result;
7360 PyObject * obj0 = 0 ;
7361 char *kwnames[] = {
7362 (char *) "self", NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = (bool)(arg1)->GetNoAntiAliasing();
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = PyInt_FromLong((long)result);
7375 return resultobj;
7376 fail:
7377 return NULL;
7378}
7379
7380
7381static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 int result;
7384 char *kwnames[] = {
7385 NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7389 {
7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
7391 result = (int)wxFont::GetDefaultEncoding();
7392
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 resultobj = PyInt_FromLong((long)result);
7397 return resultobj;
7398 fail:
7399 return NULL;
7400}
7401
7402
7403static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7404 PyObject *resultobj;
7405 int arg1 ;
7406 char *kwnames[] = {
7407 (char *) "encoding", NULL
7408 };
7409
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 return resultobj;
7420 fail:
7421 return NULL;
7422}
7423
7424
7425static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7426 PyObject *obj;
7427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7428 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7429 Py_INCREF(obj);
7430 return Py_BuildValue((char *)"");
7431}
7432static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 wxPyFontEnumerator *result;
7435 char *kwnames[] = {
7436 NULL
7437 };
7438
7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
7442 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7448 return resultobj;
7449 fail:
7450 return NULL;
7451}
7452
7453
7454static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7455 PyObject *resultobj;
7456 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7457 PyObject * obj0 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "self", NULL
7460 };
7461
7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7464 {
7465 PyThreadState* __tstate = wxPyBeginAllowThreads();
7466 delete arg1;
7467
7468 wxPyEndAllowThreads(__tstate);
7469 if (PyErr_Occurred()) SWIG_fail;
7470 }
7471 Py_INCREF(Py_None); resultobj = Py_None;
7472 return resultobj;
7473 fail:
7474 return NULL;
7475}
7476
7477
7478static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7479 PyObject *resultobj;
7480 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7481 PyObject *arg2 = (PyObject *) 0 ;
7482 PyObject *arg3 = (PyObject *) 0 ;
7483 bool arg4 ;
7484 PyObject * obj0 = 0 ;
7485 PyObject * obj1 = 0 ;
7486 PyObject * obj2 = 0 ;
7487 PyObject * obj3 = 0 ;
7488 char *kwnames[] = {
7489 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7490 };
7491
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7494 arg2 = obj1;
7495 arg3 = obj2;
7496 arg4 = PyInt_AsLong(obj3) ? true : false;
7497 if (PyErr_Occurred()) SWIG_fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 Py_INCREF(Py_None); resultobj = Py_None;
7506 return resultobj;
7507 fail:
7508 return NULL;
7509}
7510
7511
7512static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj;
7514 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7515 int arg2 = (int) wxFONTENCODING_SYSTEM ;
e811c8ce 7516 bool arg3 = (bool) False ;
d14a1e28
RD
7517 bool result;
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj2 = 0 ;
7520 char *kwnames[] = {
7521 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7522 };
7523
7524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7526 if (obj2) {
7527 arg3 = PyInt_AsLong(obj2) ? true : false;
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = PyInt_FromLong((long)result);
7538 return resultobj;
7539 fail:
7540 return NULL;
7541}
7542
7543
7544static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7545 PyObject *resultobj;
7546 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7547 wxString const &arg2_defvalue = wxPyEmptyString ;
7548 wxString *arg2 = (wxString *) &arg2_defvalue ;
7549 bool result;
e811c8ce 7550 bool temp2 = False ;
d14a1e28
RD
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj1 = 0 ;
7553 char *kwnames[] = {
7554 (char *) "self",(char *) "facename", NULL
7555 };
7556
7557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7559 if (obj1) {
7560 {
7561 arg2 = wxString_in_helper(obj1);
7562 if (arg2 == NULL) SWIG_fail;
e811c8ce 7563 temp2 = True;
d14a1e28
RD
7564 }
7565 }
7566 {
7567 PyThreadState* __tstate = wxPyBeginAllowThreads();
7568 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7569
7570 wxPyEndAllowThreads(__tstate);
7571 if (PyErr_Occurred()) SWIG_fail;
7572 }
7573 resultobj = PyInt_FromLong((long)result);
7574 {
7575 if (temp2)
7576 delete arg2;
7577 }
7578 return resultobj;
7579 fail:
7580 {
7581 if (temp2)
7582 delete arg2;
7583 }
7584 return NULL;
7585}
7586
7587
7588static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj;
7590 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7591 PyObject *result;
7592 PyObject * obj0 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7599 {
7600 PyThreadState* __tstate = wxPyBeginAllowThreads();
7601 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7602
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 resultobj = result;
7607 return resultobj;
7608 fail:
7609 return NULL;
7610}
7611
7612
7613static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7614 PyObject *resultobj;
7615 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7616 PyObject *result;
7617 PyObject * obj0 = 0 ;
7618 char *kwnames[] = {
7619 (char *) "self", NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7624 {
7625 PyThreadState* __tstate = wxPyBeginAllowThreads();
7626 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7627
7628 wxPyEndAllowThreads(__tstate);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 resultobj = result;
7632 return resultobj;
7633 fail:
7634 return NULL;
7635}
7636
7637
7638static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7639 PyObject *obj;
7640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7641 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7642 Py_INCREF(obj);
7643 return Py_BuildValue((char *)"");
7644}
7645static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7648 int arg2 ;
7649 PyObject * obj0 = 0 ;
7650 char *kwnames[] = {
7651 (char *) "self",(char *) "Language", NULL
7652 };
7653
7654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7656 if (arg1) (arg1)->Language = arg2;
7657
7658 Py_INCREF(Py_None); resultobj = Py_None;
7659 return resultobj;
7660 fail:
7661 return NULL;
7662}
7663
7664
7665static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7666 PyObject *resultobj;
7667 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7668 int result;
7669 PyObject * obj0 = 0 ;
7670 char *kwnames[] = {
7671 (char *) "self", NULL
7672 };
7673
7674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7676 result = (int) ((arg1)->Language);
7677
7678 resultobj = PyInt_FromLong((long)result);
7679 return resultobj;
7680 fail:
7681 return NULL;
7682}
7683
7684
7685static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj;
7687 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7688 wxString arg2 ;
d14a1e28
RD
7689 PyObject * obj0 = 0 ;
7690 PyObject * obj1 = 0 ;
7691 char *kwnames[] = {
7692 (char *) "self",(char *) "CanonicalName", NULL
7693 };
7694
7695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
e811c8ce
RD
7697 {
7698 wxString* sptr = wxString_in_helper(obj1);
7699 if (sptr == NULL) SWIG_fail;
7700 arg2 = *sptr;
7701 delete sptr;
7702 }
d14a1e28
RD
7703 if (arg1) (arg1)->CanonicalName = arg2;
7704
7705 Py_INCREF(Py_None); resultobj = Py_None;
7706 return resultobj;
7707 fail:
7708 return NULL;
7709}
7710
7711
7712static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj;
7714 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7715 wxString result;
7716 PyObject * obj0 = 0 ;
7717 char *kwnames[] = {
7718 (char *) "self", NULL
7719 };
7720
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7723 result = ((arg1)->CanonicalName);
7724
7725 {
7726#if wxUSE_UNICODE
7727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7728#else
7729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7730#endif
7731 }
7732 return resultobj;
7733 fail:
7734 return NULL;
7735}
7736
7737
7738static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj;
7740 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7741 wxString arg2 ;
d14a1e28
RD
7742 PyObject * obj0 = 0 ;
7743 PyObject * obj1 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self",(char *) "Description", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
e811c8ce
RD
7750 {
7751 wxString* sptr = wxString_in_helper(obj1);
7752 if (sptr == NULL) SWIG_fail;
7753 arg2 = *sptr;
7754 delete sptr;
7755 }
d14a1e28
RD
7756 if (arg1) (arg1)->Description = arg2;
7757
7758 Py_INCREF(Py_None); resultobj = Py_None;
7759 return resultobj;
7760 fail:
7761 return NULL;
7762}
7763
7764
7765static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj;
7767 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7768 wxString result;
7769 PyObject * obj0 = 0 ;
7770 char *kwnames[] = {
7771 (char *) "self", NULL
7772 };
7773
7774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7776 result = ((arg1)->Description);
7777
7778 {
7779#if wxUSE_UNICODE
7780 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7781#else
7782 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7783#endif
7784 }
7785 return resultobj;
7786 fail:
7787 return NULL;
7788}
7789
7790
7791static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7792 PyObject *obj;
7793 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7794 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7795 Py_INCREF(obj);
7796 return Py_BuildValue((char *)"");
7797}
7798static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj;
7800 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7801 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7802 wxLocale *result;
7803 char *kwnames[] = {
7804 (char *) "language",(char *) "flags", NULL
7805 };
7806
7807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7808 {
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (wxLocale *)new wxLocale(arg1,arg2);
7811
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7816 return resultobj;
7817 fail:
7818 return NULL;
7819}
7820
7821
7822static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxLocale *arg1 = (wxLocale *) 0 ;
7825 PyObject * obj0 = 0 ;
7826 char *kwnames[] = {
7827 (char *) "self", NULL
7828 };
7829
7830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7832 {
7833 PyThreadState* __tstate = wxPyBeginAllowThreads();
7834 delete arg1;
7835
7836 wxPyEndAllowThreads(__tstate);
7837 if (PyErr_Occurred()) SWIG_fail;
7838 }
7839 Py_INCREF(Py_None); resultobj = Py_None;
7840 return resultobj;
7841 fail:
7842 return NULL;
7843}
7844
7845
7846static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7847 PyObject *resultobj;
7848 wxLocale *arg1 = (wxLocale *) 0 ;
7849 wxString *arg2 = 0 ;
7850 wxString const &arg3_defvalue = wxPyEmptyString ;
7851 wxString *arg3 = (wxString *) &arg3_defvalue ;
7852 wxString const &arg4_defvalue = wxPyEmptyString ;
7853 wxString *arg4 = (wxString *) &arg4_defvalue ;
e811c8ce
RD
7854 bool arg5 = (bool) True ;
7855 bool arg6 = (bool) False ;
d14a1e28 7856 bool result;
e811c8ce
RD
7857 bool temp2 = False ;
7858 bool temp3 = False ;
7859 bool temp4 = False ;
d14a1e28
RD
7860 PyObject * obj0 = 0 ;
7861 PyObject * obj1 = 0 ;
7862 PyObject * obj2 = 0 ;
7863 PyObject * obj3 = 0 ;
7864 PyObject * obj4 = 0 ;
7865 PyObject * obj5 = 0 ;
7866 char *kwnames[] = {
7867 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7868 };
7869
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7872 {
7873 arg2 = wxString_in_helper(obj1);
7874 if (arg2 == NULL) SWIG_fail;
e811c8ce 7875 temp2 = True;
d14a1e28
RD
7876 }
7877 if (obj2) {
7878 {
7879 arg3 = wxString_in_helper(obj2);
7880 if (arg3 == NULL) SWIG_fail;
e811c8ce 7881 temp3 = True;
d14a1e28
RD
7882 }
7883 }
7884 if (obj3) {
7885 {
7886 arg4 = wxString_in_helper(obj3);
7887 if (arg4 == NULL) SWIG_fail;
e811c8ce 7888 temp4 = True;
d14a1e28
RD
7889 }
7890 }
7891 if (obj4) {
7892 arg5 = PyInt_AsLong(obj4) ? true : false;
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 if (obj5) {
7896 arg6 = PyInt_AsLong(obj5) ? true : false;
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7902
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 resultobj = PyInt_FromLong((long)result);
7907 {
7908 if (temp2)
7909 delete arg2;
7910 }
7911 {
7912 if (temp3)
7913 delete arg3;
7914 }
7915 {
7916 if (temp4)
7917 delete arg4;
7918 }
7919 return resultobj;
7920 fail:
7921 {
7922 if (temp2)
7923 delete arg2;
7924 }
7925 {
7926 if (temp3)
7927 delete arg3;
7928 }
7929 {
7930 if (temp4)
7931 delete arg4;
7932 }
7933 return NULL;
7934}
7935
7936
7937static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj;
7939 wxLocale *arg1 = (wxLocale *) 0 ;
7940 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7941 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7942 bool result;
7943 PyObject * obj0 = 0 ;
7944 char *kwnames[] = {
7945 (char *) "self",(char *) "language",(char *) "flags", NULL
7946 };
7947
7948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
7949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 result = (bool)(arg1)->Init(arg2,arg3);
7953
7954 wxPyEndAllowThreads(__tstate);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 }
7957 resultobj = PyInt_FromLong((long)result);
7958 return resultobj;
7959 fail:
7960 return NULL;
7961}
7962
7963
7964static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
7965 PyObject *resultobj;
7966 int result;
7967 char *kwnames[] = {
7968 NULL
7969 };
7970
7971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (int)wxLocale::GetSystemLanguage();
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 resultobj = PyInt_FromLong((long)result);
7980 return resultobj;
7981 fail:
7982 return NULL;
7983}
7984
7985
7986static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 int result;
7989 char *kwnames[] = {
7990 NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (int)wxLocale::GetSystemEncoding();
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 resultobj = PyInt_FromLong((long)result);
8002 return resultobj;
8003 fail:
8004 return NULL;
8005}
8006
8007
8008static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8009 PyObject *resultobj;
8010 wxString result;
8011 char *kwnames[] = {
8012 NULL
8013 };
8014
8015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 result = wxLocale::GetSystemEncodingName();
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 {
8024#if wxUSE_UNICODE
8025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8026#else
8027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8028#endif
8029 }
8030 return resultobj;
8031 fail:
8032 return NULL;
8033}
8034
8035
8036static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj;
8038 wxLocale *arg1 = (wxLocale *) 0 ;
8039 bool result;
8040 PyObject * obj0 = 0 ;
8041 char *kwnames[] = {
8042 (char *) "self", NULL
8043 };
8044
8045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8047 {
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 result = (bool)((wxLocale const *)arg1)->IsOk();
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = PyInt_FromLong((long)result);
8055 return resultobj;
8056 fail:
8057 return NULL;
8058}
8059
8060
8061static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj;
8063 wxLocale *arg1 = (wxLocale *) 0 ;
8064 wxString result;
8065 PyObject * obj0 = 0 ;
8066 char *kwnames[] = {
8067 (char *) "self", NULL
8068 };
8069
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 result = ((wxLocale const *)arg1)->GetLocale();
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 {
8080#if wxUSE_UNICODE
8081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8082#else
8083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8084#endif
8085 }
8086 return resultobj;
8087 fail:
8088 return NULL;
8089}
8090
8091
8092static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxLocale *arg1 = (wxLocale *) 0 ;
8095 int result;
8096 PyObject * obj0 = 0 ;
8097 char *kwnames[] = {
8098 (char *) "self", NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 result = (int)((wxLocale const *)arg1)->GetLanguage();
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 resultobj = PyInt_FromLong((long)result);
8111 return resultobj;
8112 fail:
8113 return NULL;
8114}
8115
8116
8117static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxLocale *arg1 = (wxLocale *) 0 ;
8120 wxString result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = ((wxLocale const *)arg1)->GetSysName();
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 {
8136#if wxUSE_UNICODE
8137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8138#else
8139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8140#endif
8141 }
8142 return resultobj;
8143 fail:
8144 return NULL;
8145}
8146
8147
8148static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8149 PyObject *resultobj;
8150 wxLocale *arg1 = (wxLocale *) 0 ;
8151 wxString result;
8152 PyObject * obj0 = 0 ;
8153 char *kwnames[] = {
8154 (char *) "self", NULL
8155 };
8156
8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8159 {
8160 PyThreadState* __tstate = wxPyBeginAllowThreads();
8161 result = ((wxLocale const *)arg1)->GetCanonicalName();
8162
8163 wxPyEndAllowThreads(__tstate);
8164 if (PyErr_Occurred()) SWIG_fail;
8165 }
8166 {
8167#if wxUSE_UNICODE
8168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8169#else
8170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8171#endif
8172 }
8173 return resultobj;
8174 fail:
8175 return NULL;
8176}
8177
8178
8179static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8180 PyObject *resultobj;
8181 wxString *arg1 = 0 ;
e811c8ce 8182 bool temp1 = False ;
d14a1e28
RD
8183 PyObject * obj0 = 0 ;
8184 char *kwnames[] = {
8185 (char *) "prefix", NULL
8186 };
8187
8188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8189 {
8190 arg1 = wxString_in_helper(obj0);
8191 if (arg1 == NULL) SWIG_fail;
e811c8ce 8192 temp1 = True;
d14a1e28
RD
8193 }
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 Py_INCREF(Py_None); resultobj = Py_None;
8202 {
8203 if (temp1)
8204 delete arg1;
8205 }
8206 return resultobj;
8207 fail:
8208 {
8209 if (temp1)
8210 delete arg1;
8211 }
8212 return NULL;
8213}
8214
8215
8216static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8217 PyObject *resultobj;
8218 wxLocale *arg1 = (wxLocale *) 0 ;
8219 wxString *arg2 = 0 ;
8220 bool result;
e811c8ce 8221 bool temp2 = False ;
d14a1e28
RD
8222 PyObject * obj0 = 0 ;
8223 PyObject * obj1 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self",(char *) "szDomain", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8230 {
8231 arg2 = wxString_in_helper(obj1);
8232 if (arg2 == NULL) SWIG_fail;
e811c8ce 8233 temp2 = True;
d14a1e28
RD
8234 }
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8238
8239 wxPyEndAllowThreads(__tstate);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 resultobj = PyInt_FromLong((long)result);
8243 {
8244 if (temp2)
8245 delete arg2;
8246 }
8247 return resultobj;
8248 fail:
8249 {
8250 if (temp2)
8251 delete arg2;
8252 }
8253 return NULL;
8254}
8255
8256
8257static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8258 PyObject *resultobj;
8259 wxLocale *arg1 = (wxLocale *) 0 ;
8260 wxString *arg2 = 0 ;
8261 bool result;
e811c8ce 8262 bool temp2 = False ;
d14a1e28
RD
8263 PyObject * obj0 = 0 ;
8264 PyObject * obj1 = 0 ;
8265 char *kwnames[] = {
8266 (char *) "self",(char *) "szDomain", NULL
8267 };
8268
8269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8271 {
8272 arg2 = wxString_in_helper(obj1);
8273 if (arg2 == NULL) SWIG_fail;
e811c8ce 8274 temp2 = True;
d14a1e28
RD
8275 }
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 resultobj = PyInt_FromLong((long)result);
8284 {
8285 if (temp2)
8286 delete arg2;
8287 }
8288 return resultobj;
8289 fail:
8290 {
8291 if (temp2)
8292 delete arg2;
8293 }
8294 return NULL;
8295}
8296
8297
8298static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8299 PyObject *resultobj;
8300 int arg1 ;
8301 wxLanguageInfo *result;
8302 char *kwnames[] = {
8303 (char *) "lang", NULL
8304 };
8305
8306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8315 return resultobj;
8316 fail:
8317 return NULL;
8318}
8319
8320
8321static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj;
8323 int arg1 ;
8324 wxString result;
8325 char *kwnames[] = {
8326 (char *) "lang", NULL
8327 };
8328
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 result = wxLocale::GetLanguageName(arg1);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 {
8338#if wxUSE_UNICODE
8339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8340#else
8341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8342#endif
8343 }
8344 return resultobj;
8345 fail:
8346 return NULL;
8347}
8348
8349
8350static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8351 PyObject *resultobj;
8352 wxString *arg1 = 0 ;
8353 wxLanguageInfo *result;
e811c8ce 8354 bool temp1 = False ;
d14a1e28
RD
8355 PyObject * obj0 = 0 ;
8356 char *kwnames[] = {
8357 (char *) "locale", NULL
8358 };
8359
8360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8361 {
8362 arg1 = wxString_in_helper(obj0);
8363 if (arg1 == NULL) SWIG_fail;
e811c8ce 8364 temp1 = True;
d14a1e28
RD
8365 }
8366 {
8367 PyThreadState* __tstate = wxPyBeginAllowThreads();
8368 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8369
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8374 {
8375 if (temp1)
8376 delete arg1;
8377 }
8378 return resultobj;
8379 fail:
8380 {
8381 if (temp1)
8382 delete arg1;
8383 }
8384 return NULL;
8385}
8386
8387
8388static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8389 PyObject *resultobj;
8390 wxLanguageInfo *arg1 = 0 ;
8391 PyObject * obj0 = 0 ;
8392 char *kwnames[] = {
8393 (char *) "info", NULL
8394 };
8395
8396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8398 if (arg1 == NULL) {
8399 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8400 }
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 Py_INCREF(Py_None); resultobj = Py_None;
8409 return resultobj;
8410 fail:
8411 return NULL;
8412}
8413
8414
8415static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8416 PyObject *resultobj;
8417 wxLocale *arg1 = (wxLocale *) 0 ;
8418 wxString *arg2 = 0 ;
8419 wxString const &arg3_defvalue = wxPyEmptyString ;
8420 wxString *arg3 = (wxString *) &arg3_defvalue ;
8421 wxString result;
e811c8ce
RD
8422 bool temp2 = False ;
8423 bool temp3 = False ;
d14a1e28
RD
8424 PyObject * obj0 = 0 ;
8425 PyObject * obj1 = 0 ;
8426 PyObject * obj2 = 0 ;
8427 char *kwnames[] = {
8428 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8429 };
8430
8431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8433 {
8434 arg2 = wxString_in_helper(obj1);
8435 if (arg2 == NULL) SWIG_fail;
e811c8ce 8436 temp2 = True;
d14a1e28
RD
8437 }
8438 if (obj2) {
8439 {
8440 arg3 = wxString_in_helper(obj2);
8441 if (arg3 == NULL) SWIG_fail;
e811c8ce 8442 temp3 = True;
d14a1e28
RD
8443 }
8444 }
8445 {
8446 PyThreadState* __tstate = wxPyBeginAllowThreads();
8447 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8448
8449 wxPyEndAllowThreads(__tstate);
8450 if (PyErr_Occurred()) SWIG_fail;
8451 }
8452 {
8453#if wxUSE_UNICODE
8454 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8455#else
8456 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8457#endif
8458 }
8459 {
8460 if (temp2)
8461 delete arg2;
8462 }
8463 {
8464 if (temp3)
8465 delete arg3;
8466 }
8467 return resultobj;
8468 fail:
8469 {
8470 if (temp2)
8471 delete arg2;
8472 }
8473 {
8474 if (temp3)
8475 delete arg3;
8476 }
8477 return NULL;
8478}
8479
8480
8481static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxLocale *arg1 = (wxLocale *) 0 ;
8484 wxString *result;
8485 PyObject * obj0 = 0 ;
8486 char *kwnames[] = {
8487 (char *) "self", NULL
8488 };
8489
8490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8492 {
8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
8494 {
8495 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8496 result = (wxString *) &_result_ref;
8497 }
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) SWIG_fail;
8501 }
cc6dd355
RD
8502 {
8503#if wxUSE_UNICODE
8504 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8505#else
8506 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8507#endif
8508 }
d14a1e28
RD
8509 return resultobj;
8510 fail:
8511 return NULL;
8512}
8513
8514
8515static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8516 PyObject *obj;
8517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8518 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8519 Py_INCREF(obj);
8520 return Py_BuildValue((char *)"");
8521}
8522static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8523 PyObject *resultobj;
8524 wxLocale *result;
8525 char *kwnames[] = {
8526 NULL
8527 };
8528
8529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8530 {
8531 PyThreadState* __tstate = wxPyBeginAllowThreads();
8532 result = (wxLocale *)wxGetLocale();
8533
8534 wxPyEndAllowThreads(__tstate);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8538 return resultobj;
8539 fail:
8540 return NULL;
8541}
8542
8543
8544static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8545 PyObject *resultobj;
8546 wxString *arg1 = 0 ;
8547 wxString result;
e811c8ce 8548 bool temp1 = False ;
d14a1e28
RD
8549 PyObject * obj0 = 0 ;
8550
8551 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8552 {
8553 arg1 = wxString_in_helper(obj0);
8554 if (arg1 == NULL) SWIG_fail;
e811c8ce 8555 temp1 = True;
d14a1e28
RD
8556 }
8557 {
8558 PyThreadState* __tstate = wxPyBeginAllowThreads();
8559 result = wxGetTranslation((wxString const &)*arg1);
8560
8561 wxPyEndAllowThreads(__tstate);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 {
8565#if wxUSE_UNICODE
8566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8567#else
8568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8569#endif
8570 }
8571 {
8572 if (temp1)
8573 delete arg1;
8574 }
8575 return resultobj;
8576 fail:
8577 {
8578 if (temp1)
8579 delete arg1;
8580 }
8581 return NULL;
8582}
8583
8584
8585static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8586 PyObject *resultobj;
8587 wxString *arg1 = 0 ;
8588 wxString *arg2 = 0 ;
8589 size_t arg3 ;
8590 wxString result;
e811c8ce
RD
8591 bool temp1 = False ;
8592 bool temp2 = False ;
d14a1e28
RD
8593 PyObject * obj0 = 0 ;
8594 PyObject * obj1 = 0 ;
8595 PyObject * obj2 = 0 ;
8596
8597 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8598 {
8599 arg1 = wxString_in_helper(obj0);
8600 if (arg1 == NULL) SWIG_fail;
e811c8ce 8601 temp1 = True;
d14a1e28
RD
8602 }
8603 {
8604 arg2 = wxString_in_helper(obj1);
8605 if (arg2 == NULL) SWIG_fail;
e811c8ce 8606 temp2 = True;
d14a1e28
RD
8607 }
8608 arg3 = (size_t) PyInt_AsLong(obj2);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618#if wxUSE_UNICODE
8619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8620#else
8621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8622#endif
8623 }
8624 {
8625 if (temp1)
8626 delete arg1;
8627 }
8628 {
8629 if (temp2)
8630 delete arg2;
8631 }
8632 return resultobj;
8633 fail:
8634 {
8635 if (temp1)
8636 delete arg1;
8637 }
8638 {
8639 if (temp2)
8640 delete arg2;
8641 }
8642 return NULL;
8643}
8644
8645
8646static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8647 int argc;
8648 PyObject *argv[4];
8649 int ii;
8650
8651 argc = PyObject_Length(args);
8652 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8653 argv[ii] = PyTuple_GetItem(args,ii);
8654 }
8655 if (argc == 1) {
8656 int _v;
8657 {
8658 void *ptr;
8659 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8660 _v = 0;
8661 PyErr_Clear();
8662 } else {
8663 _v = 1;
8664 }
8665 }
8666 if (_v) {
8667 return _wrap_GetTranslation__SWIG_0(self,args);
8668 }
8669 }
8670 if (argc == 3) {
8671 int _v;
8672 {
8673 void *ptr;
8674 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8675 _v = 0;
8676 PyErr_Clear();
8677 } else {
8678 _v = 1;
8679 }
8680 }
8681 if (_v) {
8682 {
8683 void *ptr;
8684 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8685 _v = 0;
8686 PyErr_Clear();
8687 } else {
8688 _v = 1;
8689 }
8690 }
8691 if (_v) {
8692 {
8693 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8694 }
8695 if (_v) {
8696 return _wrap_GetTranslation__SWIG_1(self,args);
8697 }
8698 }
8699 }
8700 }
8701
8702 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8703 return NULL;
8704}
8705
8706
8707static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxEncodingConverter *result;
8710 char *kwnames[] = {
8711 NULL
8712 };
8713
8714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 result = (wxEncodingConverter *)new wxEncodingConverter();
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8723 return resultobj;
8724 fail:
8725 return NULL;
8726}
8727
8728
8729static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8732 PyObject * obj0 = 0 ;
8733 char *kwnames[] = {
8734 (char *) "self", NULL
8735 };
8736
8737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 delete arg1;
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 Py_INCREF(Py_None); resultobj = Py_None;
8747 return resultobj;
8748 fail:
8749 return NULL;
8750}
8751
8752
8753static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8756 int arg2 ;
8757 int arg3 ;
8758 int arg4 = (int) wxCONVERT_STRICT ;
8759 bool result;
8760 PyObject * obj0 = 0 ;
8761 char *kwnames[] = {
8762 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8767 {
8768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8769 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8770
8771 wxPyEndAllowThreads(__tstate);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = PyInt_FromLong((long)result);
8775 return resultobj;
8776 fail:
8777 return NULL;
8778}
8779
8780
8781static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj;
8783 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8784 wxString *arg2 = 0 ;
8785 wxString result;
e811c8ce 8786 bool temp2 = False ;
d14a1e28
RD
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 char *kwnames[] = {
8790 (char *) "self",(char *) "input", NULL
8791 };
8792
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8795 {
8796 arg2 = wxString_in_helper(obj1);
8797 if (arg2 == NULL) SWIG_fail;
e811c8ce 8798 temp2 = True;
d14a1e28
RD
8799 }
8800 {
8801 PyThreadState* __tstate = wxPyBeginAllowThreads();
8802 result = (arg1)->Convert((wxString const &)*arg2);
8803
8804 wxPyEndAllowThreads(__tstate);
8805 if (PyErr_Occurred()) SWIG_fail;
8806 }
8807 {
8808#if wxUSE_UNICODE
8809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8810#else
8811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8812#endif
8813 }
8814 {
8815 if (temp2)
8816 delete arg2;
8817 }
8818 return resultobj;
8819 fail:
8820 {
8821 if (temp2)
8822 delete arg2;
8823 }
8824 return NULL;
8825}
8826
8827
8828static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 int arg1 ;
8831 int arg2 = (int) wxPLATFORM_CURRENT ;
8832 wxFontEncodingArray result;
8833 char *kwnames[] = {
8834 (char *) "enc",(char *) "platform", NULL
8835 };
8836
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8838 {
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8841
8842 wxPyEndAllowThreads(__tstate);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 {
8846 resultobj = PyList_New(0);
8847 for (size_t i=0; i < (&result)->GetCount(); i++) {
8848 PyObject* number = PyInt_FromLong((&result)->Item(i));
8849 PyList_Append(resultobj, number);
8850 Py_DECREF(number);
8851 }
8852 }
8853 return resultobj;
8854 fail:
8855 return NULL;
8856}
8857
8858
8859static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8860 PyObject *resultobj;
8861 int arg1 ;
8862 wxFontEncodingArray result;
8863 char *kwnames[] = {
8864 (char *) "enc", NULL
8865 };
8866
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 {
8876 resultobj = PyList_New(0);
8877 for (size_t i=0; i < (&result)->GetCount(); i++) {
8878 PyObject* number = PyInt_FromLong((&result)->Item(i));
8879 PyList_Append(resultobj, number);
8880 Py_DECREF(number);
8881 }
8882 }
8883 return resultobj;
8884 fail:
8885 return NULL;
8886}
8887
8888
8889static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8890 PyObject *resultobj;
8891 int arg1 ;
8892 int arg2 ;
8893 bool result;
8894 char *kwnames[] = {
8895 (char *) "encIn",(char *) "encOut", NULL
8896 };
8897
8898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = PyInt_FromLong((long)result);
8907 return resultobj;
8908 fail:
8909 return NULL;
8910}
8911
8912
8913static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8914 PyObject *obj;
8915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8916 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8917 Py_INCREF(obj);
8918 return Py_BuildValue((char *)"");
8919}
8920static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj;
8922 wxDC *arg1 = (wxDC *) 0 ;
8923 PyObject * obj0 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 delete arg1;
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 Py_INCREF(Py_None); resultobj = Py_None;
8938 return resultobj;
8939 fail:
8940 return NULL;
8941}
8942
8943
8944static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 wxDC *arg1 = (wxDC *) 0 ;
8947 PyObject * obj0 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8954 {
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 (arg1)->BeginDrawing();
8957
8958 wxPyEndAllowThreads(__tstate);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 }
8961 Py_INCREF(Py_None); resultobj = Py_None;
8962 return resultobj;
8963 fail:
8964 return NULL;
8965}
8966
8967
8968static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxDC *arg1 = (wxDC *) 0 ;
8971 PyObject * obj0 = 0 ;
8972 char *kwnames[] = {
8973 (char *) "self", NULL
8974 };
8975
8976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
8977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 (arg1)->EndDrawing();
8981
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 Py_INCREF(Py_None); resultobj = Py_None;
8986 return resultobj;
8987 fail:
8988 return NULL;
8989}
8990
8991
8992static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj;
8994 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
8995 int arg2 ;
8996 int arg3 ;
d14a1e28
RD
8997 wxColour *arg4 = 0 ;
8998 int arg5 = (int) wxFLOOD_SURFACE ;
8999 bool result;
9000 wxColour temp4 ;
9001 PyObject * obj0 = 0 ;
9002 PyObject * obj3 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9009 {
9010 arg4 = &temp4;
9011 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9012 }
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9016
9017 wxPyEndAllowThreads(__tstate);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 }
9020 resultobj = PyInt_FromLong((long)result);
9021 return resultobj;
9022 fail:
9023 return NULL;
9024}
9025
9026
9027static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9028 PyObject *resultobj;
9029 wxDC *arg1 = (wxDC *) 0 ;
9030 wxPoint *arg2 = 0 ;
9031 wxColour *arg3 = 0 ;
9032 int arg4 = (int) wxFLOOD_SURFACE ;
9033 bool result;
9034 wxPoint temp2 ;
9035 wxColour temp3 ;
9036 PyObject * obj0 = 0 ;
9037 PyObject * obj1 = 0 ;
9038 PyObject * obj2 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9045 {
9046 arg2 = &temp2;
9047 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9048 }
9049 {
9050 arg3 = &temp3;
9051 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9052 }
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9056
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = PyInt_FromLong((long)result);
9061 return resultobj;
9062 fail:
9063 return NULL;
9064}
9065
9066
9067static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9068 PyObject *resultobj;
9069 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9070 int arg2 ;
9071 int arg3 ;
d14a1e28
RD
9072 wxColour result;
9073 PyObject * obj0 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "self",(char *) "x",(char *) "y", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9083
9084 wxPyEndAllowThreads(__tstate);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 {
9088 wxColour * resultptr;
9089 resultptr = new wxColour((wxColour &) result);
9090 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9091 }
9092 return resultobj;
9093 fail:
9094 return NULL;
9095}
9096
9097
9098static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj;
9100 wxDC *arg1 = (wxDC *) 0 ;
9101 wxPoint *arg2 = 0 ;
9102 wxColour result;
9103 wxPoint temp2 ;
9104 PyObject * obj0 = 0 ;
9105 PyObject * obj1 = 0 ;
9106 char *kwnames[] = {
9107 (char *) "self",(char *) "pt", NULL
9108 };
9109
9110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9112 {
9113 arg2 = &temp2;
9114 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9115 }
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9119
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 {
9124 wxColour * resultptr;
9125 resultptr = new wxColour((wxColour &) result);
9126 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9127 }
9128 return resultobj;
9129 fail:
9130 return NULL;
9131}
9132
9133
9134static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9135 PyObject *resultobj;
9136 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9137 int arg2 ;
9138 int arg3 ;
9139 int arg4 ;
9140 int arg5 ;
d14a1e28
RD
9141 PyObject * obj0 = 0 ;
9142 char *kwnames[] = {
9143 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9144 };
9145
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9148 {
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9151
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 Py_INCREF(Py_None); resultobj = Py_None;
9156 return resultobj;
9157 fail:
9158 return NULL;
9159}
9160
9161
9162static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj;
9164 wxDC *arg1 = (wxDC *) 0 ;
9165 wxPoint *arg2 = 0 ;
9166 wxPoint *arg3 = 0 ;
9167 wxPoint temp2 ;
9168 wxPoint temp3 ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 PyObject * obj2 = 0 ;
9172 char *kwnames[] = {
9173 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9174 };
9175
9176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9178 {
9179 arg2 = &temp2;
9180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9181 }
9182 {
9183 arg3 = &temp3;
9184 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9185 }
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 Py_INCREF(Py_None); resultobj = Py_None;
9194 return resultobj;
9195 fail:
9196 return NULL;
9197}
9198
9199
9200static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj;
9202 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9203 int arg2 ;
9204 int arg3 ;
d14a1e28
RD
9205 PyObject * obj0 = 0 ;
9206 char *kwnames[] = {
9207 (char *) "self",(char *) "x",(char *) "y", NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 (arg1)->CrossHair(arg2,arg3);
9215
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 Py_INCREF(Py_None); resultobj = Py_None;
9220 return resultobj;
9221 fail:
9222 return NULL;
9223}
9224
9225
9226static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9227 PyObject *resultobj;
9228 wxDC *arg1 = (wxDC *) 0 ;
9229 wxPoint *arg2 = 0 ;
9230 wxPoint temp2 ;
9231 PyObject * obj0 = 0 ;
9232 PyObject * obj1 = 0 ;
9233 char *kwnames[] = {
9234 (char *) "self",(char *) "pt", NULL
9235 };
9236
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9239 {
9240 arg2 = &temp2;
9241 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9242 }
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 (arg1)->CrossHair((wxPoint const &)*arg2);
9246
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 Py_INCREF(Py_None); resultobj = Py_None;
9251 return resultobj;
9252 fail:
9253 return NULL;
9254}
9255
9256
9257static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9258 PyObject *resultobj;
9259 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9260 int arg2 ;
9261 int arg3 ;
9262 int arg4 ;
9263 int arg5 ;
9264 int arg6 ;
9265 int arg7 ;
d14a1e28
RD
9266 PyObject * obj0 = 0 ;
9267 char *kwnames[] = {
9268 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9269 };
9270
9271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9276
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 Py_INCREF(Py_None); resultobj = Py_None;
9281 return resultobj;
9282 fail:
9283 return NULL;
9284}
9285
9286
9287static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj;
9289 wxDC *arg1 = (wxDC *) 0 ;
9290 wxPoint *arg2 = 0 ;
9291 wxPoint *arg3 = 0 ;
9292 wxPoint *arg4 = 0 ;
9293 wxPoint temp2 ;
9294 wxPoint temp3 ;
9295 wxPoint temp4 ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 PyObject * obj2 = 0 ;
9299 PyObject * obj3 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9306 {
9307 arg2 = &temp2;
9308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9309 }
9310 {
9311 arg3 = &temp3;
9312 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9313 }
9314 {
9315 arg4 = &temp4;
9316 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9317 }
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9321
9322 wxPyEndAllowThreads(__tstate);
9323 if (PyErr_Occurred()) SWIG_fail;
9324 }
9325 Py_INCREF(Py_None); resultobj = Py_None;
9326 return resultobj;
9327 fail:
9328 return NULL;
9329}
9330
9331
9332static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj;
9334 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9335 int arg2 ;
9336 int arg3 ;
9337 int arg4 ;
9338 int arg5 ;
d14a1e28
RD
9339 PyObject * obj0 = 0 ;
9340 char *kwnames[] = {
9341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9342 };
9343
9344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9349
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 Py_INCREF(Py_None); resultobj = Py_None;
9354 return resultobj;
9355 fail:
9356 return NULL;
9357}
9358
9359
9360static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 wxDC *arg1 = (wxDC *) 0 ;
9363 wxRect *arg2 = 0 ;
9364 wxRect temp2 ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char *kwnames[] = {
9368 (char *) "self",(char *) "rect", NULL
9369 };
9370
9371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9373 {
9374 arg2 = &temp2;
9375 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9376 }
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9380
9381 wxPyEndAllowThreads(__tstate);
9382 if (PyErr_Occurred()) SWIG_fail;
9383 }
9384 Py_INCREF(Py_None); resultobj = Py_None;
9385 return resultobj;
9386 fail:
9387 return NULL;
9388}
9389
9390
9391static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9392 PyObject *resultobj;
9393 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9394 int arg2 ;
9395 int arg3 ;
9396 int arg4 ;
9397 int arg5 ;
d14a1e28
RD
9398 double arg6 ;
9399 double arg7 ;
9400 PyObject * obj0 = 0 ;
9401 char *kwnames[] = {
9402 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9403 };
9404
9405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9407 {
9408 PyThreadState* __tstate = wxPyBeginAllowThreads();
9409 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9410
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 Py_INCREF(Py_None); resultobj = Py_None;
9415 return resultobj;
9416 fail:
9417 return NULL;
9418}
9419
9420
9421static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxDC *arg1 = (wxDC *) 0 ;
9424 wxPoint *arg2 = 0 ;
9425 wxSize *arg3 = 0 ;
9426 double arg4 ;
9427 double arg5 ;
9428 wxPoint temp2 ;
9429 wxSize temp3 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 PyObject * obj2 = 0 ;
9433 char *kwnames[] = {
9434 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9435 };
9436
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9439 {
9440 arg2 = &temp2;
9441 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9442 }
9443 {
9444 arg3 = &temp3;
9445 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9446 }
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 Py_INCREF(Py_None); resultobj = Py_None;
9455 return resultobj;
9456 fail:
9457 return NULL;
9458}
9459
9460
9461static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj;
9463 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9464 int arg2 ;
9465 int arg3 ;
d14a1e28
RD
9466 PyObject * obj0 = 0 ;
9467 char *kwnames[] = {
9468 (char *) "self",(char *) "x",(char *) "y", NULL
9469 };
9470
9471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->DrawPoint(arg2,arg3);
9476
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 Py_INCREF(Py_None); resultobj = Py_None;
9481 return resultobj;
9482 fail:
9483 return NULL;
9484}
9485
9486
9487static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj;
9489 wxDC *arg1 = (wxDC *) 0 ;
9490 wxPoint *arg2 = 0 ;
9491 wxPoint temp2 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self",(char *) "pt", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9500 {
9501 arg2 = &temp2;
9502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9503 }
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->DrawPoint((wxPoint const &)*arg2);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 Py_INCREF(Py_None); resultobj = Py_None;
9512 return resultobj;
9513 fail:
9514 return NULL;
9515}
9516
9517
9518static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9521 int arg2 ;
9522 int arg3 ;
9523 int arg4 ;
9524 int arg5 ;
d14a1e28
RD
9525 PyObject * obj0 = 0 ;
9526 char *kwnames[] = {
9527 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9528 };
9529
9530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9532 {
9533 PyThreadState* __tstate = wxPyBeginAllowThreads();
9534 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9535
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 Py_INCREF(Py_None); resultobj = Py_None;
9540 return resultobj;
9541 fail:
9542 return NULL;
9543}
9544
9545
9546static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9547 PyObject *resultobj;
9548 wxDC *arg1 = (wxDC *) 0 ;
9549 wxPoint *arg2 = 0 ;
9550 wxSize *arg3 = 0 ;
9551 wxPoint temp2 ;
9552 wxSize temp3 ;
9553 PyObject * obj0 = 0 ;
9554 PyObject * obj1 = 0 ;
9555 PyObject * obj2 = 0 ;
9556 char *kwnames[] = {
9557 (char *) "self",(char *) "pt",(char *) "sz", NULL
9558 };
9559
9560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9562 {
9563 arg2 = &temp2;
9564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9565 }
9566 {
9567 arg3 = &temp3;
9568 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9569 }
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9573
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 Py_INCREF(Py_None); resultobj = Py_None;
9578 return resultobj;
9579 fail:
9580 return NULL;
9581}
9582
9583
9584static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj;
9586 wxDC *arg1 = (wxDC *) 0 ;
9587 wxRect *arg2 = 0 ;
9588 wxRect temp2 ;
9589 PyObject * obj0 = 0 ;
9590 PyObject * obj1 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "self",(char *) "rect", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9597 {
9598 arg2 = &temp2;
9599 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9600 }
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 (arg1)->DrawRectangle((wxRect const &)*arg2);
9604
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 Py_INCREF(Py_None); resultobj = Py_None;
9609 return resultobj;
9610 fail:
9611 return NULL;
9612}
9613
9614
9615static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj;
9617 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9618 int arg2 ;
9619 int arg3 ;
9620 int arg4 ;
9621 int arg5 ;
d14a1e28
RD
9622 double arg6 ;
9623 PyObject * obj0 = 0 ;
9624 char *kwnames[] = {
9625 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9626 };
9627
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 Py_INCREF(Py_None); resultobj = Py_None;
9638 return resultobj;
9639 fail:
9640 return NULL;
9641}
9642
9643
9644static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxDC *arg1 = (wxDC *) 0 ;
9647 wxPoint *arg2 = 0 ;
9648 wxSize *arg3 = 0 ;
9649 double arg4 ;
9650 wxPoint temp2 ;
9651 wxSize temp3 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 PyObject * obj2 = 0 ;
9655 char *kwnames[] = {
9656 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9657 };
9658
9659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9661 {
9662 arg2 = &temp2;
9663 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9664 }
9665 {
9666 arg3 = &temp3;
9667 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9668 }
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 Py_INCREF(Py_None); resultobj = Py_None;
9677 return resultobj;
9678 fail:
9679 return NULL;
9680}
9681
9682
9683static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 wxDC *arg1 = (wxDC *) 0 ;
9686 wxRect *arg2 = 0 ;
9687 double arg3 ;
9688 wxRect temp2 ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char *kwnames[] = {
9692 (char *) "self",(char *) "r",(char *) "radius", NULL
9693 };
9694
9695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9697 {
9698 arg2 = &temp2;
9699 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9700 }
9701 {
9702 PyThreadState* __tstate = wxPyBeginAllowThreads();
9703 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9704
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 Py_INCREF(Py_None); resultobj = Py_None;
9709 return resultobj;
9710 fail:
9711 return NULL;
9712}
9713
9714
9715static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj;
9717 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9718 int arg2 ;
9719 int arg3 ;
9720 int arg4 ;
d14a1e28
RD
9721 PyObject * obj0 = 0 ;
9722 char *kwnames[] = {
9723 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9724 };
9725
9726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9728 {
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 (arg1)->DrawCircle(arg2,arg3,arg4);
9731
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 Py_INCREF(Py_None); resultobj = Py_None;
9736 return resultobj;
9737 fail:
9738 return NULL;
9739}
9740
9741
9742static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9743 PyObject *resultobj;
9744 wxDC *arg1 = (wxDC *) 0 ;
9745 wxPoint *arg2 = 0 ;
e811c8ce 9746 int arg3 ;
d14a1e28
RD
9747 wxPoint temp2 ;
9748 PyObject * obj0 = 0 ;
9749 PyObject * obj1 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "self",(char *) "pt",(char *) "radius", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9756 {
9757 arg2 = &temp2;
9758 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9759 }
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 Py_INCREF(Py_None); resultobj = Py_None;
9768 return resultobj;
9769 fail:
9770 return NULL;
9771}
9772
9773
9774static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj;
9776 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
9777 int arg2 ;
9778 int arg3 ;
9779 int arg4 ;
9780 int arg5 ;
d14a1e28
RD
9781 PyObject * obj0 = 0 ;
9782 char *kwnames[] = {
9783 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9784 };
9785
9786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 Py_INCREF(Py_None); resultobj = Py_None;
9796 return resultobj;
9797 fail:
9798 return NULL;
9799}
9800
9801
9802static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxDC *arg1 = (wxDC *) 0 ;
9805 wxPoint *arg2 = 0 ;
9806 wxSize *arg3 = 0 ;
9807 wxPoint temp2 ;
9808 wxSize temp3 ;
9809 PyObject * obj0 = 0 ;
9810 PyObject * obj1 = 0 ;
9811 PyObject * obj2 = 0 ;
9812 char *kwnames[] = {
9813 (char *) "self",(char *) "pt",(char *) "sz", NULL
9814 };
9815
9816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9818 {
9819 arg2 = &temp2;
9820 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9821 }
9822 {
9823 arg3 = &temp3;
9824 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 Py_INCREF(Py_None); resultobj = Py_None;
9834 return resultobj;
9835 fail:
9836 return NULL;
9837}
9838
9839
9840static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj;
9842 wxDC *arg1 = (wxDC *) 0 ;
9843 wxRect *arg2 = 0 ;
9844 wxRect temp2 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self",(char *) "rect", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9853 {
9854 arg2 = &temp2;
9855 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9856 }
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 (arg1)->DrawEllipse((wxRect const &)*arg2);
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 Py_INCREF(Py_None); resultobj = Py_None;
9865 return resultobj;
9866 fail:
9867 return NULL;
9868}
9869
9870
9871static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxDC *arg1 = (wxDC *) 0 ;
9874 wxIcon *arg2 = 0 ;
e811c8ce
RD
9875 int arg3 ;
9876 int arg4 ;
d14a1e28
RD
9877 PyObject * obj0 = 0 ;
9878 PyObject * obj1 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9885 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9886 if (arg2 == NULL) {
9887 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9888 }
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 Py_INCREF(Py_None); resultobj = Py_None;
9897 return resultobj;
9898 fail:
9899 return NULL;
9900}
9901
9902
9903static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj;
9905 wxDC *arg1 = (wxDC *) 0 ;
9906 wxIcon *arg2 = 0 ;
9907 wxPoint *arg3 = 0 ;
9908 wxPoint temp3 ;
9909 PyObject * obj0 = 0 ;
9910 PyObject * obj1 = 0 ;
9911 PyObject * obj2 = 0 ;
9912 char *kwnames[] = {
9913 (char *) "self",(char *) "icon",(char *) "pt", NULL
9914 };
9915
9916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9918 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9919 if (arg2 == NULL) {
9920 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9921 }
9922 {
9923 arg3 = &temp3;
9924 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9925 }
9926 {
9927 PyThreadState* __tstate = wxPyBeginAllowThreads();
9928 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9929
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 Py_INCREF(Py_None); resultobj = Py_None;
9934 return resultobj;
9935 fail:
9936 return NULL;
9937}
9938
9939
9940static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9941 PyObject *resultobj;
9942 wxDC *arg1 = (wxDC *) 0 ;
9943 wxBitmap *arg2 = 0 ;
e811c8ce
RD
9944 int arg3 ;
9945 int arg4 ;
9946 bool arg5 = (bool) False ;
d14a1e28
RD
9947 PyObject * obj0 = 0 ;
9948 PyObject * obj1 = 0 ;
9949 PyObject * obj4 = 0 ;
9950 char *kwnames[] = {
9951 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
9952 };
9953
9954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
9955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9956 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9957 if (arg2 == NULL) {
9958 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9959 }
9960 if (obj4) {
9961 arg5 = PyInt_AsLong(obj4) ? true : false;
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
9967
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) SWIG_fail;
9970 }
9971 Py_INCREF(Py_None); resultobj = Py_None;
9972 return resultobj;
9973 fail:
9974 return NULL;
9975}
9976
9977
9978static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj;
9980 wxDC *arg1 = (wxDC *) 0 ;
9981 wxBitmap *arg2 = 0 ;
9982 wxPoint *arg3 = 0 ;
e811c8ce 9983 bool arg4 = (bool) False ;
d14a1e28
RD
9984 wxPoint temp3 ;
9985 PyObject * obj0 = 0 ;
9986 PyObject * obj1 = 0 ;
9987 PyObject * obj2 = 0 ;
9988 PyObject * obj3 = 0 ;
9989 char *kwnames[] = {
9990 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
9991 };
9992
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9995 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 if (arg2 == NULL) {
9997 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9998 }
9999 {
10000 arg3 = &temp3;
10001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10002 }
10003 if (obj3) {
10004 arg4 = PyInt_AsLong(obj3) ? true : false;
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 Py_INCREF(Py_None); resultobj = Py_None;
10015 return resultobj;
10016 fail:
10017 return NULL;
10018}
10019
10020
10021static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj;
10023 wxDC *arg1 = (wxDC *) 0 ;
10024 wxString *arg2 = 0 ;
e811c8ce
RD
10025 int arg3 ;
10026 int arg4 ;
10027 bool temp2 = False ;
d14a1e28
RD
10028 PyObject * obj0 = 0 ;
10029 PyObject * obj1 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10036 {
10037 arg2 = wxString_in_helper(obj1);
10038 if (arg2 == NULL) SWIG_fail;
e811c8ce 10039 temp2 = True;
d14a1e28
RD
10040 }
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10044
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 Py_INCREF(Py_None); resultobj = Py_None;
10049 {
10050 if (temp2)
10051 delete arg2;
10052 }
10053 return resultobj;
10054 fail:
10055 {
10056 if (temp2)
10057 delete arg2;
10058 }
10059 return NULL;
10060}
10061
10062
10063static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj;
10065 wxDC *arg1 = (wxDC *) 0 ;
10066 wxString *arg2 = 0 ;
10067 wxPoint *arg3 = 0 ;
e811c8ce 10068 bool temp2 = False ;
d14a1e28
RD
10069 wxPoint temp3 ;
10070 PyObject * obj0 = 0 ;
10071 PyObject * obj1 = 0 ;
10072 PyObject * obj2 = 0 ;
10073 char *kwnames[] = {
10074 (char *) "self",(char *) "text",(char *) "pt", NULL
10075 };
10076
10077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10079 {
10080 arg2 = wxString_in_helper(obj1);
10081 if (arg2 == NULL) SWIG_fail;
e811c8ce 10082 temp2 = True;
d14a1e28
RD
10083 }
10084 {
10085 arg3 = &temp3;
10086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10087 }
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 Py_INCREF(Py_None); resultobj = Py_None;
10096 {
10097 if (temp2)
10098 delete arg2;
10099 }
10100 return resultobj;
10101 fail:
10102 {
10103 if (temp2)
10104 delete arg2;
10105 }
10106 return NULL;
10107}
10108
10109
10110static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj;
10112 wxDC *arg1 = (wxDC *) 0 ;
10113 wxString *arg2 = 0 ;
e811c8ce
RD
10114 int arg3 ;
10115 int arg4 ;
d14a1e28 10116 double arg5 ;
e811c8ce 10117 bool temp2 = False ;
d14a1e28
RD
10118 PyObject * obj0 = 0 ;
10119 PyObject * obj1 = 0 ;
10120 char *kwnames[] = {
10121 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10122 };
10123
10124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10126 {
10127 arg2 = wxString_in_helper(obj1);
10128 if (arg2 == NULL) SWIG_fail;
e811c8ce 10129 temp2 = True;
d14a1e28
RD
10130 }
10131 {
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10134
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 Py_INCREF(Py_None); resultobj = Py_None;
10139 {
10140 if (temp2)
10141 delete arg2;
10142 }
10143 return resultobj;
10144 fail:
10145 {
10146 if (temp2)
10147 delete arg2;
10148 }
10149 return NULL;
10150}
10151
10152
10153static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10154 PyObject *resultobj;
10155 wxDC *arg1 = (wxDC *) 0 ;
10156 wxString *arg2 = 0 ;
10157 wxPoint *arg3 = 0 ;
10158 double arg4 ;
e811c8ce 10159 bool temp2 = False ;
d14a1e28
RD
10160 wxPoint temp3 ;
10161 PyObject * obj0 = 0 ;
10162 PyObject * obj1 = 0 ;
10163 PyObject * obj2 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10170 {
10171 arg2 = wxString_in_helper(obj1);
10172 if (arg2 == NULL) SWIG_fail;
e811c8ce 10173 temp2 = True;
d14a1e28
RD
10174 }
10175 {
10176 arg3 = &temp3;
10177 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10178 }
10179 {
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10182
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 Py_INCREF(Py_None); resultobj = Py_None;
10187 {
10188 if (temp2)
10189 delete arg2;
10190 }
10191 return resultobj;
10192 fail:
10193 {
10194 if (temp2)
10195 delete arg2;
10196 }
10197 return NULL;
10198}
10199
10200
10201static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj;
10203 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10204 int arg2 ;
10205 int arg3 ;
10206 int arg4 ;
10207 int arg5 ;
d14a1e28 10208 wxDC *arg6 = (wxDC *) 0 ;
e811c8ce
RD
10209 int arg7 ;
10210 int arg8 ;
d14a1e28 10211 int arg9 = (int) wxCOPY ;
e811c8ce
RD
10212 bool arg10 = (bool) False ;
10213 int arg11 = (int) -1 ;
10214 int arg12 = (int) -1 ;
d14a1e28
RD
10215 bool result;
10216 PyObject * obj0 = 0 ;
10217 PyObject * obj5 = 0 ;
10218 PyObject * obj9 = 0 ;
10219 char *kwnames[] = {
10220 (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
10221 };
10222
10223 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;
10224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10225 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10226 if (obj9) {
10227 arg10 = PyInt_AsLong(obj9) ? true : false;
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = PyInt_FromLong((long)result);
10238 return resultobj;
10239 fail:
10240 return NULL;
10241}
10242
10243
10244static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10245 PyObject *resultobj;
10246 wxDC *arg1 = (wxDC *) 0 ;
10247 wxPoint *arg2 = 0 ;
10248 wxSize *arg3 = 0 ;
10249 wxDC *arg4 = (wxDC *) 0 ;
10250 wxPoint *arg5 = 0 ;
10251 int arg6 = (int) wxCOPY ;
e811c8ce 10252 bool arg7 = (bool) False ;
d14a1e28
RD
10253 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10254 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10255 bool result;
10256 wxPoint temp2 ;
10257 wxSize temp3 ;
10258 wxPoint temp5 ;
10259 wxPoint temp8 ;
10260 PyObject * obj0 = 0 ;
10261 PyObject * obj1 = 0 ;
10262 PyObject * obj2 = 0 ;
10263 PyObject * obj3 = 0 ;
10264 PyObject * obj4 = 0 ;
10265 PyObject * obj6 = 0 ;
10266 PyObject * obj7 = 0 ;
10267 char *kwnames[] = {
10268 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10269 };
10270
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10273 {
10274 arg2 = &temp2;
10275 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10276 }
10277 {
10278 arg3 = &temp3;
10279 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10280 }
10281 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10282 {
10283 arg5 = &temp5;
10284 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10285 }
10286 if (obj6) {
10287 arg7 = PyInt_AsLong(obj6) ? true : false;
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
10290 if (obj7) {
10291 {
10292 arg8 = &temp8;
10293 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10294 }
10295 }
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 resultobj = PyInt_FromLong((long)result);
10304 return resultobj;
10305 fail:
10306 return NULL;
10307}
10308
10309
10310static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10311 PyObject *resultobj;
10312 wxDC *arg1 = (wxDC *) 0 ;
10313 int arg2 ;
10314 wxPoint *arg3 = (wxPoint *) 0 ;
e811c8ce
RD
10315 int arg4 = (int) 0 ;
10316 int arg5 = (int) 0 ;
d14a1e28
RD
10317 PyObject * obj0 = 0 ;
10318 PyObject * obj1 = 0 ;
10319 char *kwnames[] = {
10320 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10321 };
10322
10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10325 {
10326 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10327 if (arg3 == NULL) SWIG_fail;
10328 }
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 Py_INCREF(Py_None); resultobj = Py_None;
10337 {
10338 if (arg3) delete [] arg3;
10339 }
10340 return resultobj;
10341 fail:
10342 {
10343 if (arg3) delete [] arg3;
10344 }
10345 return NULL;
10346}
10347
10348
10349static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj;
10351 wxDC *arg1 = (wxDC *) 0 ;
10352 int arg2 ;
10353 wxPoint *arg3 = (wxPoint *) 0 ;
e811c8ce
RD
10354 int arg4 = (int) 0 ;
10355 int arg5 = (int) 0 ;
d14a1e28
RD
10356 int arg6 = (int) wxODDEVEN_RULE ;
10357 PyObject * obj0 = 0 ;
10358 PyObject * obj1 = 0 ;
10359 char *kwnames[] = {
10360 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10361 };
10362
10363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10365 {
10366 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10367 if (arg3 == NULL) SWIG_fail;
10368 }
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 Py_INCREF(Py_None); resultobj = Py_None;
10377 {
10378 if (arg3) delete [] arg3;
10379 }
10380 return resultobj;
10381 fail:
10382 {
10383 if (arg3) delete [] arg3;
10384 }
10385 return NULL;
10386}
10387
10388
10389static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10390 PyObject *resultobj;
10391 wxDC *arg1 = (wxDC *) 0 ;
10392 wxString *arg2 = 0 ;
10393 wxRect *arg3 = 0 ;
10394 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10395 int arg5 = (int) -1 ;
e811c8ce 10396 bool temp2 = False ;
d14a1e28
RD
10397 wxRect temp3 ;
10398 PyObject * obj0 = 0 ;
10399 PyObject * obj1 = 0 ;
10400 PyObject * obj2 = 0 ;
10401 char *kwnames[] = {
10402 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10403 };
10404
10405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10407 {
10408 arg2 = wxString_in_helper(obj1);
10409 if (arg2 == NULL) SWIG_fail;
e811c8ce 10410 temp2 = True;
d14a1e28
RD
10411 }
10412 {
10413 arg3 = &temp3;
10414 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10415 }
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10419
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 Py_INCREF(Py_None); resultobj = Py_None;
10424 {
10425 if (temp2)
10426 delete arg2;
10427 }
10428 return resultobj;
10429 fail:
10430 {
10431 if (temp2)
10432 delete arg2;
10433 }
10434 return NULL;
10435}
10436
10437
10438static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxDC *arg1 = (wxDC *) 0 ;
10441 wxString *arg2 = 0 ;
10442 wxBitmap *arg3 = 0 ;
10443 wxRect *arg4 = 0 ;
10444 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10445 int arg6 = (int) -1 ;
10446 wxRect result;
e811c8ce 10447 bool temp2 = False ;
d14a1e28
RD
10448 wxRect temp4 ;
10449 PyObject * obj0 = 0 ;
10450 PyObject * obj1 = 0 ;
10451 PyObject * obj2 = 0 ;
10452 PyObject * obj3 = 0 ;
10453 char *kwnames[] = {
10454 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10455 };
10456
10457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10459 {
10460 arg2 = wxString_in_helper(obj1);
10461 if (arg2 == NULL) SWIG_fail;
e811c8ce 10462 temp2 = True;
d14a1e28
RD
10463 }
10464 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10465 if (arg3 == NULL) {
10466 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10467 }
10468 {
10469 arg4 = &temp4;
10470 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10471 }
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10475
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 wxRect * resultptr;
10481 resultptr = new wxRect((wxRect &) result);
10482 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10483 }
10484 {
10485 if (temp2)
10486 delete arg2;
10487 }
10488 return resultobj;
10489 fail:
10490 {
10491 if (temp2)
10492 delete arg2;
10493 }
10494 return NULL;
10495}
10496
10497
10498static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj;
10500 wxDC *arg1 = (wxDC *) 0 ;
10501 int arg2 ;
10502 wxPoint *arg3 = (wxPoint *) 0 ;
10503 PyObject * obj0 = 0 ;
10504 PyObject * obj1 = 0 ;
10505 char *kwnames[] = {
10506 (char *) "self",(char *) "points", NULL
10507 };
10508
10509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10511 {
10512 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10513 if (arg3 == NULL) SWIG_fail;
10514 }
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 (arg1)->DrawSpline(arg2,arg3);
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 Py_INCREF(Py_None); resultobj = Py_None;
10523 {
10524 if (arg3) delete [] arg3;
10525 }
10526 return resultobj;
10527 fail:
10528 {
10529 if (arg3) delete [] arg3;
10530 }
10531 return NULL;
10532}
10533
10534
10535static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxDC *arg1 = (wxDC *) 0 ;
10538 PyObject * obj0 = 0 ;
10539 char *kwnames[] = {
10540 (char *) "self", NULL
10541 };
10542
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 (arg1)->Clear();
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 Py_INCREF(Py_None); resultobj = Py_None;
10553 return resultobj;
10554 fail:
10555 return NULL;
10556}
10557
10558
10559static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj;
10561 wxDC *arg1 = (wxDC *) 0 ;
10562 wxString *arg2 = 0 ;
10563 bool result;
e811c8ce 10564 bool temp2 = False ;
d14a1e28
RD
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 char *kwnames[] = {
10568 (char *) "self",(char *) "message", NULL
10569 };
10570
10571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10573 {
10574 arg2 = wxString_in_helper(obj1);
10575 if (arg2 == NULL) SWIG_fail;
e811c8ce 10576 temp2 = True;
d14a1e28
RD
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = PyInt_FromLong((long)result);
10586 {
10587 if (temp2)
10588 delete arg2;
10589 }
10590 return resultobj;
10591 fail:
10592 {
10593 if (temp2)
10594 delete arg2;
10595 }
10596 return NULL;
10597}
10598
10599
10600static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj;
10602 wxDC *arg1 = (wxDC *) 0 ;
10603 PyObject * obj0 = 0 ;
10604 char *kwnames[] = {
10605 (char *) "self", NULL
10606 };
10607
10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10610 {
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 (arg1)->EndDoc();
10613
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 Py_INCREF(Py_None); resultobj = Py_None;
10618 return resultobj;
10619 fail:
10620 return NULL;
10621}
10622
10623
10624static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj;
10626 wxDC *arg1 = (wxDC *) 0 ;
10627 PyObject * obj0 = 0 ;
10628 char *kwnames[] = {
10629 (char *) "self", NULL
10630 };
10631
10632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 (arg1)->StartPage();
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 Py_INCREF(Py_None); resultobj = Py_None;
10642 return resultobj;
10643 fail:
10644 return NULL;
10645}
10646
10647
10648static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj;
10650 wxDC *arg1 = (wxDC *) 0 ;
10651 PyObject * obj0 = 0 ;
10652 char *kwnames[] = {
10653 (char *) "self", NULL
10654 };
10655
10656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 (arg1)->EndPage();
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 Py_INCREF(Py_None); resultobj = Py_None;
10666 return resultobj;
10667 fail:
10668 return NULL;
10669}
10670
10671
10672static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxDC *arg1 = (wxDC *) 0 ;
10675 wxFont *arg2 = 0 ;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self",(char *) "font", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10684 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10685 if (arg2 == NULL) {
10686 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 (arg1)->SetFont((wxFont const &)*arg2);
10691
10692 wxPyEndAllowThreads(__tstate);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 }
10695 Py_INCREF(Py_None); resultobj = Py_None;
10696 return resultobj;
10697 fail:
10698 return NULL;
10699}
10700
10701
10702static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10703 PyObject *resultobj;
10704 wxDC *arg1 = (wxDC *) 0 ;
10705 wxPen *arg2 = 0 ;
10706 PyObject * obj0 = 0 ;
10707 PyObject * obj1 = 0 ;
10708 char *kwnames[] = {
10709 (char *) "self",(char *) "pen", NULL
10710 };
10711
10712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10714 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10715 if (arg2 == NULL) {
10716 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10717 }
10718 {
10719 PyThreadState* __tstate = wxPyBeginAllowThreads();
10720 (arg1)->SetPen((wxPen const &)*arg2);
10721
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 Py_INCREF(Py_None); resultobj = Py_None;
10726 return resultobj;
10727 fail:
10728 return NULL;
10729}
10730
10731
10732static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj;
10734 wxDC *arg1 = (wxDC *) 0 ;
10735 wxBrush *arg2 = 0 ;
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "brush", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10744 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10745 if (arg2 == NULL) {
10746 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10747 }
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 (arg1)->SetBrush((wxBrush const &)*arg2);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 Py_INCREF(Py_None); resultobj = Py_None;
10756 return resultobj;
10757 fail:
10758 return NULL;
10759}
10760
10761
10762static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10763 PyObject *resultobj;
10764 wxDC *arg1 = (wxDC *) 0 ;
10765 wxBrush *arg2 = 0 ;
10766 PyObject * obj0 = 0 ;
10767 PyObject * obj1 = 0 ;
10768 char *kwnames[] = {
10769 (char *) "self",(char *) "brush", NULL
10770 };
10771
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10774 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10775 if (arg2 == NULL) {
10776 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10777 }
10778 {
10779 PyThreadState* __tstate = wxPyBeginAllowThreads();
10780 (arg1)->SetBackground((wxBrush const &)*arg2);
10781
10782 wxPyEndAllowThreads(__tstate);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 }
10785 Py_INCREF(Py_None); resultobj = Py_None;
10786 return resultobj;
10787 fail:
10788 return NULL;
10789}
10790
10791
10792static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10793 PyObject *resultobj;
10794 wxDC *arg1 = (wxDC *) 0 ;
10795 int arg2 ;
10796 PyObject * obj0 = 0 ;
10797 char *kwnames[] = {
10798 (char *) "self",(char *) "mode", NULL
10799 };
10800
10801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 (arg1)->SetBackgroundMode(arg2);
10806
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 Py_INCREF(Py_None); resultobj = Py_None;
10811 return resultobj;
10812 fail:
10813 return NULL;
10814}
10815
10816
10817static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10818 PyObject *resultobj;
10819 wxDC *arg1 = (wxDC *) 0 ;
10820 wxPalette *arg2 = 0 ;
10821 PyObject * obj0 = 0 ;
10822 PyObject * obj1 = 0 ;
10823 char *kwnames[] = {
10824 (char *) "self",(char *) "palette", NULL
10825 };
10826
10827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10829 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10830 if (arg2 == NULL) {
10831 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10832 }
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetPalette((wxPalette const &)*arg2);
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 Py_INCREF(Py_None); resultobj = Py_None;
10841 return resultobj;
10842 fail:
10843 return NULL;
10844}
10845
10846
242b7b46 10847static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10848 PyObject *resultobj;
10849 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
10850 int arg2 ;
10851 int arg3 ;
10852 int arg4 ;
10853 int arg5 ;
d14a1e28
RD
10854 PyObject * obj0 = 0 ;
10855 char *kwnames[] = {
10856 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10857 };
10858
242b7b46 10859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
d14a1e28
RD
10860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10864
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 Py_INCREF(Py_None); resultobj = Py_None;
10869 return resultobj;
10870 fail:
10871 return NULL;
10872}
10873
10874
242b7b46
RD
10875static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10876 PyObject *resultobj;
10877 wxDC *arg1 = (wxDC *) 0 ;
10878 wxPoint *arg2 = 0 ;
10879 wxSize *arg3 = 0 ;
10880 wxPoint temp2 ;
10881 wxSize temp3 ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 PyObject * obj2 = 0 ;
10885 char *kwnames[] = {
10886 (char *) "self",(char *) "pt",(char *) "sz", NULL
10887 };
10888
10889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10891 {
10892 arg2 = &temp2;
10893 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10894 }
10895 {
10896 arg3 = &temp3;
10897 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 Py_INCREF(Py_None); resultobj = Py_None;
10907 return resultobj;
10908 fail:
10909 return NULL;
10910}
10911
10912
d14a1e28
RD
10913static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10914 PyObject *resultobj;
10915 wxDC *arg1 = (wxDC *) 0 ;
10916 wxRect *arg2 = 0 ;
10917 wxRect temp2 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 char *kwnames[] = {
10921 (char *) "self",(char *) "rect", NULL
10922 };
10923
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10926 {
10927 arg2 = &temp2;
10928 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10929 }
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 Py_INCREF(Py_None); resultobj = Py_None;
10938 return resultobj;
10939 fail:
10940 return NULL;
10941}
10942
10943
10944static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj;
10946 wxDC *arg1 = (wxDC *) 0 ;
10947 wxRegion *arg2 = 0 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char *kwnames[] = {
10951 (char *) "self",(char *) "region", NULL
10952 };
10953
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
10955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10956 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10957 if (arg2 == NULL) {
10958 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 Py_INCREF(Py_None); resultobj = Py_None;
10968 return resultobj;
10969 fail:
10970 return NULL;
10971}
10972
10973
10974static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj;
10976 wxDC *arg1 = (wxDC *) 0 ;
10977 PyObject * obj0 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 (arg1)->DestroyClippingRegion();
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 Py_INCREF(Py_None); resultobj = Py_None;
10992 return resultobj;
10993 fail:
10994 return NULL;
10995}
10996
10997
10998static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11001 int *arg2 = (int *) 0 ;
11002 int *arg3 = (int *) 0 ;
11003 int *arg4 = (int *) 0 ;
11004 int *arg5 = (int *) 0 ;
11005 int temp2 ;
11006 int temp3 ;
11007 int temp4 ;
11008 int temp5 ;
d14a1e28
RD
11009 PyObject * obj0 = 0 ;
11010 char *kwnames[] = {
11011 (char *) "self", NULL
11012 };
11013
11014 arg2 = &temp2;
11015 arg3 = &temp3;
11016 arg4 = &temp4;
11017 arg5 = &temp5;
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11023
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 Py_INCREF(Py_None); resultobj = Py_None;
11028 {
11029 PyObject *o = PyInt_FromLong((long) (*arg2));
11030 resultobj = t_output_helper(resultobj,o);
11031 }
11032 {
11033 PyObject *o = PyInt_FromLong((long) (*arg3));
11034 resultobj = t_output_helper(resultobj,o);
11035 }
11036 {
11037 PyObject *o = PyInt_FromLong((long) (*arg4));
11038 resultobj = t_output_helper(resultobj,o);
11039 }
11040 {
11041 PyObject *o = PyInt_FromLong((long) (*arg5));
11042 resultobj = t_output_helper(resultobj,o);
11043 }
11044 return resultobj;
11045 fail:
11046 return NULL;
11047}
11048
11049
11050static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11051 PyObject *resultobj;
11052 wxDC *arg1 = (wxDC *) 0 ;
11053 wxRect result;
11054 PyObject * obj0 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = wxDC_GetClippingRect(arg1);
11064
11065 wxPyEndAllowThreads(__tstate);
11066 if (PyErr_Occurred()) SWIG_fail;
11067 }
11068 {
11069 wxRect * resultptr;
11070 resultptr = new wxRect((wxRect &) result);
11071 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11072 }
11073 return resultobj;
11074 fail:
11075 return NULL;
11076}
11077
11078
11079static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj;
11081 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 11082 int result;
d14a1e28
RD
11083 PyObject * obj0 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11092 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
11093
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 resultobj = PyInt_FromLong((long)result);
11098 return resultobj;
11099 fail:
11100 return NULL;
11101}
11102
11103
11104static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj;
11106 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 11107 int result;
d14a1e28
RD
11108 PyObject * obj0 = 0 ;
11109 char *kwnames[] = {
11110 (char *) "self", NULL
11111 };
11112
11113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11117 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 resultobj = PyInt_FromLong((long)result);
11123 return resultobj;
11124 fail:
11125 return NULL;
11126}
11127
11128
11129static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxDC *arg1 = (wxDC *) 0 ;
11132 wxString *arg2 = 0 ;
e811c8ce
RD
11133 int *arg3 = (int *) 0 ;
11134 int *arg4 = (int *) 0 ;
11135 bool temp2 = False ;
11136 int temp3 ;
11137 int temp4 ;
d14a1e28
RD
11138 PyObject * obj0 = 0 ;
11139 PyObject * obj1 = 0 ;
11140 char *kwnames[] = {
11141 (char *) "self",(char *) "string", NULL
11142 };
11143
11144 arg3 = &temp3;
11145 arg4 = &temp4;
11146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11148 {
11149 arg2 = wxString_in_helper(obj1);
11150 if (arg2 == NULL) SWIG_fail;
e811c8ce 11151 temp2 = True;
d14a1e28
RD
11152 }
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11156
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 Py_INCREF(Py_None); resultobj = Py_None;
11161 {
11162 PyObject *o = PyInt_FromLong((long) (*arg3));
11163 resultobj = t_output_helper(resultobj,o);
11164 }
11165 {
11166 PyObject *o = PyInt_FromLong((long) (*arg4));
11167 resultobj = t_output_helper(resultobj,o);
11168 }
11169 {
11170 if (temp2)
11171 delete arg2;
11172 }
11173 return resultobj;
11174 fail:
11175 {
11176 if (temp2)
11177 delete arg2;
11178 }
11179 return NULL;
11180}
11181
11182
11183static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj;
11185 wxDC *arg1 = (wxDC *) 0 ;
11186 wxString *arg2 = 0 ;
e811c8ce
RD
11187 int *arg3 = (int *) 0 ;
11188 int *arg4 = (int *) 0 ;
11189 int *arg5 = (int *) 0 ;
11190 int *arg6 = (int *) 0 ;
d14a1e28 11191 wxFont *arg7 = (wxFont *) NULL ;
e811c8ce
RD
11192 bool temp2 = False ;
11193 int temp3 ;
11194 int temp4 ;
11195 int temp5 ;
11196 int temp6 ;
d14a1e28
RD
11197 PyObject * obj0 = 0 ;
11198 PyObject * obj1 = 0 ;
11199 PyObject * obj2 = 0 ;
11200 char *kwnames[] = {
11201 (char *) "self",(char *) "string",(char *) "font", NULL
11202 };
11203
11204 arg3 = &temp3;
11205 arg4 = &temp4;
11206 arg5 = &temp5;
11207 arg6 = &temp6;
11208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11210 {
11211 arg2 = wxString_in_helper(obj1);
11212 if (arg2 == NULL) SWIG_fail;
e811c8ce 11213 temp2 = True;
d14a1e28
RD
11214 }
11215 if (obj2) {
11216 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11217 }
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 Py_INCREF(Py_None); resultobj = Py_None;
11226 {
11227 PyObject *o = PyInt_FromLong((long) (*arg3));
11228 resultobj = t_output_helper(resultobj,o);
11229 }
11230 {
11231 PyObject *o = PyInt_FromLong((long) (*arg4));
11232 resultobj = t_output_helper(resultobj,o);
11233 }
11234 {
11235 PyObject *o = PyInt_FromLong((long) (*arg5));
11236 resultobj = t_output_helper(resultobj,o);
11237 }
11238 {
11239 PyObject *o = PyInt_FromLong((long) (*arg6));
11240 resultobj = t_output_helper(resultobj,o);
11241 }
11242 {
11243 if (temp2)
11244 delete arg2;
11245 }
11246 return resultobj;
11247 fail:
11248 {
11249 if (temp2)
11250 delete arg2;
11251 }
11252 return NULL;
11253}
11254
11255
11256static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxDC *arg1 = (wxDC *) 0 ;
11259 wxString *arg2 = 0 ;
e811c8ce
RD
11260 int *arg3 = (int *) 0 ;
11261 int *arg4 = (int *) 0 ;
11262 int *arg5 = (int *) 0 ;
d14a1e28 11263 wxFont *arg6 = (wxFont *) NULL ;
e811c8ce
RD
11264 bool temp2 = False ;
11265 int temp3 ;
11266 int temp4 ;
11267 int temp5 ;
d14a1e28
RD
11268 PyObject * obj0 = 0 ;
11269 PyObject * obj1 = 0 ;
11270 PyObject * obj2 = 0 ;
11271 char *kwnames[] = {
11272 (char *) "self",(char *) "text",(char *) "font", NULL
11273 };
11274
11275 arg3 = &temp3;
11276 arg4 = &temp4;
11277 arg5 = &temp5;
11278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11280 {
11281 arg2 = wxString_in_helper(obj1);
11282 if (arg2 == NULL) SWIG_fail;
e811c8ce 11283 temp2 = True;
d14a1e28
RD
11284 }
11285 if (obj2) {
11286 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11287 }
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 Py_INCREF(Py_None); resultobj = Py_None;
11296 {
11297 PyObject *o = PyInt_FromLong((long) (*arg3));
11298 resultobj = t_output_helper(resultobj,o);
11299 }
11300 {
11301 PyObject *o = PyInt_FromLong((long) (*arg4));
11302 resultobj = t_output_helper(resultobj,o);
11303 }
11304 {
11305 PyObject *o = PyInt_FromLong((long) (*arg5));
11306 resultobj = t_output_helper(resultobj,o);
11307 }
11308 {
11309 if (temp2)
11310 delete arg2;
11311 }
11312 return resultobj;
11313 fail:
11314 {
11315 if (temp2)
11316 delete arg2;
11317 }
11318 return NULL;
11319}
11320
11321
322913ce
RD
11322static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj;
11324 wxDC *arg1 = (wxDC *) 0 ;
11325 wxSize result;
11326 PyObject * obj0 = 0 ;
11327 char *kwnames[] = {
11328 (char *) "self", NULL
11329 };
11330
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11333 {
11334 PyThreadState* __tstate = wxPyBeginAllowThreads();
11335 result = (arg1)->GetSize();
11336
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 {
11341 wxSize * resultptr;
11342 resultptr = new wxSize((wxSize &) result);
11343 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11344 }
11345 return resultobj;
11346 fail:
11347 return NULL;
11348}
11349
11350
d14a1e28
RD
11351static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11352 PyObject *resultobj;
11353 wxDC *arg1 = (wxDC *) 0 ;
11354 int *arg2 = (int *) 0 ;
11355 int *arg3 = (int *) 0 ;
11356 int temp2 ;
11357 int temp3 ;
11358 PyObject * obj0 = 0 ;
11359 char *kwnames[] = {
11360 (char *) "self", NULL
11361 };
11362
11363 arg2 = &temp2;
11364 arg3 = &temp3;
11365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11367 {
11368 PyThreadState* __tstate = wxPyBeginAllowThreads();
11369 (arg1)->GetSize(arg2,arg3);
11370
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 Py_INCREF(Py_None); resultobj = Py_None;
11375 {
11376 PyObject *o = PyInt_FromLong((long) (*arg2));
11377 resultobj = t_output_helper(resultobj,o);
11378 }
11379 {
11380 PyObject *o = PyInt_FromLong((long) (*arg3));
11381 resultobj = t_output_helper(resultobj,o);
11382 }
11383 return resultobj;
11384 fail:
11385 return NULL;
11386}
11387
11388
322913ce 11389static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11390 PyObject *resultobj;
11391 wxDC *arg1 = (wxDC *) 0 ;
11392 wxSize result;
11393 PyObject * obj0 = 0 ;
11394 char *kwnames[] = {
11395 (char *) "self", NULL
11396 };
11397
322913ce 11398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
d14a1e28
RD
11399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 11402 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
11403
11404 wxPyEndAllowThreads(__tstate);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 }
11407 {
11408 wxSize * resultptr;
11409 resultptr = new wxSize((wxSize &) result);
11410 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11411 }
11412 return resultobj;
11413 fail:
11414 return NULL;
11415}
11416
11417
322913ce 11418static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11419 PyObject *resultobj;
11420 wxDC *arg1 = (wxDC *) 0 ;
11421 int *arg2 = (int *) 0 ;
11422 int *arg3 = (int *) 0 ;
11423 int temp2 ;
11424 int temp3 ;
11425 PyObject * obj0 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self", NULL
11428 };
11429
11430 arg2 = &temp2;
11431 arg3 = &temp3;
322913ce 11432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
11433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11437
11438 wxPyEndAllowThreads(__tstate);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 }
11441 Py_INCREF(Py_None); resultobj = Py_None;
11442 {
11443 PyObject *o = PyInt_FromLong((long) (*arg2));
11444 resultobj = t_output_helper(resultobj,o);
11445 }
11446 {
11447 PyObject *o = PyInt_FromLong((long) (*arg3));
11448 resultobj = t_output_helper(resultobj,o);
11449 }
11450 return resultobj;
11451 fail:
11452 return NULL;
11453}
11454
11455
d14a1e28
RD
11456static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11459 int arg2 ;
11460 int result;
d14a1e28
RD
11461 PyObject * obj0 = 0 ;
11462 char *kwnames[] = {
11463 (char *) "self",(char *) "x", NULL
11464 };
11465
11466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11470 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 resultobj = PyInt_FromLong((long)result);
11476 return resultobj;
11477 fail:
11478 return NULL;
11479}
11480
11481
11482static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj;
11484 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11485 int arg2 ;
11486 int result;
d14a1e28
RD
11487 PyObject * obj0 = 0 ;
11488 char *kwnames[] = {
11489 (char *) "self",(char *) "y", NULL
11490 };
11491
11492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11496 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 resultobj = PyInt_FromLong((long)result);
11502 return resultobj;
11503 fail:
11504 return NULL;
11505}
11506
11507
11508static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj;
11510 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11511 int arg2 ;
11512 int result;
d14a1e28
RD
11513 PyObject * obj0 = 0 ;
11514 char *kwnames[] = {
11515 (char *) "self",(char *) "x", NULL
11516 };
11517
11518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11522 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
11523
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 resultobj = PyInt_FromLong((long)result);
11528 return resultobj;
11529 fail:
11530 return NULL;
11531}
11532
11533
11534static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11535 PyObject *resultobj;
11536 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11537 int arg2 ;
11538 int result;
d14a1e28
RD
11539 PyObject * obj0 = 0 ;
11540 char *kwnames[] = {
11541 (char *) "self",(char *) "y", NULL
11542 };
11543
11544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11548 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
11549
11550 wxPyEndAllowThreads(__tstate);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 }
11553 resultobj = PyInt_FromLong((long)result);
11554 return resultobj;
11555 fail:
11556 return NULL;
11557}
11558
11559
11560static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj;
11562 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11563 int arg2 ;
11564 int result;
d14a1e28
RD
11565 PyObject * obj0 = 0 ;
11566 char *kwnames[] = {
11567 (char *) "self",(char *) "x", NULL
11568 };
11569
11570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11574 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
11575
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 resultobj = PyInt_FromLong((long)result);
11580 return resultobj;
11581 fail:
11582 return NULL;
11583}
11584
11585
11586static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11587 PyObject *resultobj;
11588 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11589 int arg2 ;
11590 int result;
d14a1e28
RD
11591 PyObject * obj0 = 0 ;
11592 char *kwnames[] = {
11593 (char *) "self",(char *) "y", NULL
11594 };
11595
11596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11598 {
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11600 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
11601
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 resultobj = PyInt_FromLong((long)result);
11606 return resultobj;
11607 fail:
11608 return NULL;
11609}
11610
11611
11612static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11613 PyObject *resultobj;
11614 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11615 int arg2 ;
11616 int result;
d14a1e28
RD
11617 PyObject * obj0 = 0 ;
11618 char *kwnames[] = {
11619 (char *) "self",(char *) "x", NULL
11620 };
11621
11622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11626 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 resultobj = PyInt_FromLong((long)result);
11632 return resultobj;
11633 fail:
11634 return NULL;
11635}
11636
11637
11638static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11639 PyObject *resultobj;
11640 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
11641 int arg2 ;
11642 int result;
d14a1e28
RD
11643 PyObject * obj0 = 0 ;
11644 char *kwnames[] = {
11645 (char *) "self",(char *) "y", NULL
11646 };
11647
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11650 {
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 11652 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
11653
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = PyInt_FromLong((long)result);
11658 return resultobj;
11659 fail:
11660 return NULL;
11661}
11662
11663
11664static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11665 PyObject *resultobj;
11666 wxDC *arg1 = (wxDC *) 0 ;
11667 bool result;
11668 PyObject * obj0 = 0 ;
11669 char *kwnames[] = {
11670 (char *) "self", NULL
11671 };
11672
11673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11678
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 resultobj = PyInt_FromLong((long)result);
11683 return resultobj;
11684 fail:
11685 return NULL;
11686}
11687
11688
11689static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj;
11691 wxDC *arg1 = (wxDC *) 0 ;
11692 bool result;
11693 PyObject * obj0 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 resultobj = PyInt_FromLong((long)result);
11708 return resultobj;
11709 fail:
11710 return NULL;
11711}
11712
11713
11714static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11715 PyObject *resultobj;
11716 wxDC *arg1 = (wxDC *) 0 ;
11717 int result;
11718 PyObject * obj0 = 0 ;
11719 char *kwnames[] = {
11720 (char *) "self", NULL
11721 };
11722
11723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11725 {
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 result = (int)((wxDC const *)arg1)->GetDepth();
11728
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 resultobj = PyInt_FromLong((long)result);
11733 return resultobj;
11734 fail:
11735 return NULL;
11736}
11737
11738
11739static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11740 PyObject *resultobj;
11741 wxDC *arg1 = (wxDC *) 0 ;
11742 wxSize result;
11743 PyObject * obj0 = 0 ;
11744 char *kwnames[] = {
11745 (char *) "self", NULL
11746 };
11747
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = ((wxDC const *)arg1)->GetPPI();
11753
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 {
11758 wxSize * resultptr;
11759 resultptr = new wxSize((wxSize &) result);
11760 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11761 }
11762 return resultobj;
11763 fail:
11764 return NULL;
11765}
11766
11767
11768static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11769 PyObject *resultobj;
11770 wxDC *arg1 = (wxDC *) 0 ;
11771 bool result;
11772 PyObject * obj0 = 0 ;
11773 char *kwnames[] = {
11774 (char *) "self", NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 result = (bool)((wxDC const *)arg1)->Ok();
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = PyInt_FromLong((long)result);
11787 return resultobj;
11788 fail:
11789 return NULL;
11790}
11791
11792
11793static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj;
11795 wxDC *arg1 = (wxDC *) 0 ;
11796 int result;
11797 PyObject * obj0 = 0 ;
11798 char *kwnames[] = {
11799 (char *) "self", NULL
11800 };
11801
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11807
11808 wxPyEndAllowThreads(__tstate);
11809 if (PyErr_Occurred()) SWIG_fail;
11810 }
11811 resultobj = PyInt_FromLong((long)result);
11812 return resultobj;
11813 fail:
11814 return NULL;
11815}
11816
11817
11818static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11819 PyObject *resultobj;
11820 wxDC *arg1 = (wxDC *) 0 ;
11821 wxBrush *result;
11822 PyObject * obj0 = 0 ;
11823 char *kwnames[] = {
11824 (char *) "self", NULL
11825 };
11826
11827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11829 {
11830 PyThreadState* __tstate = wxPyBeginAllowThreads();
11831 {
11832 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11833 result = (wxBrush *) &_result_ref;
11834 }
11835
11836 wxPyEndAllowThreads(__tstate);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11840 return resultobj;
11841 fail:
11842 return NULL;
11843}
11844
11845
11846static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11847 PyObject *resultobj;
11848 wxDC *arg1 = (wxDC *) 0 ;
11849 wxBrush *result;
11850 PyObject * obj0 = 0 ;
11851 char *kwnames[] = {
11852 (char *) "self", NULL
11853 };
11854
11855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 {
11860 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11861 result = (wxBrush *) &_result_ref;
11862 }
11863
11864 wxPyEndAllowThreads(__tstate);
11865 if (PyErr_Occurred()) SWIG_fail;
11866 }
11867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11868 return resultobj;
11869 fail:
11870 return NULL;
11871}
11872
11873
11874static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11875 PyObject *resultobj;
11876 wxDC *arg1 = (wxDC *) 0 ;
11877 wxFont *result;
11878 PyObject * obj0 = 0 ;
11879 char *kwnames[] = {
11880 (char *) "self", NULL
11881 };
11882
11883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11885 {
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 {
11888 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11889 result = (wxFont *) &_result_ref;
11890 }
11891
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11896 return resultobj;
11897 fail:
11898 return NULL;
11899}
11900
11901
11902static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxDC *arg1 = (wxDC *) 0 ;
11905 wxPen *result;
11906 PyObject * obj0 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self", NULL
11909 };
11910
11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 {
11916 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11917 result = (wxPen *) &_result_ref;
11918 }
11919
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11924 return resultobj;
11925 fail:
11926 return NULL;
11927}
11928
11929
11930static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj;
11932 wxDC *arg1 = (wxDC *) 0 ;
11933 wxColour *result;
11934 PyObject * obj0 = 0 ;
11935 char *kwnames[] = {
11936 (char *) "self", NULL
11937 };
11938
11939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 {
11944 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11945 result = (wxColour *) &_result_ref;
11946 }
11947
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11952 return resultobj;
11953 fail:
11954 return NULL;
11955}
11956
11957
11958static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11959 PyObject *resultobj;
11960 wxDC *arg1 = (wxDC *) 0 ;
11961 wxColour *result;
11962 PyObject * obj0 = 0 ;
11963 char *kwnames[] = {
11964 (char *) "self", NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
11968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11969 {
11970 PyThreadState* __tstate = wxPyBeginAllowThreads();
11971 {
11972 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
11973 result = (wxColour *) &_result_ref;
11974 }
11975
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 }
11979 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11980 return resultobj;
11981 fail:
11982 return NULL;
11983}
11984
11985
11986static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11987 PyObject *resultobj;
11988 wxDC *arg1 = (wxDC *) 0 ;
11989 wxColour *arg2 = 0 ;
11990 wxColour temp2 ;
11991 PyObject * obj0 = 0 ;
11992 PyObject * obj1 = 0 ;
11993 char *kwnames[] = {
11994 (char *) "self",(char *) "colour", NULL
11995 };
11996
11997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
11998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11999 {
12000 arg2 = &temp2;
12001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12002 }
12003 {
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 (arg1)->SetTextForeground((wxColour const &)*arg2);
12006
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 Py_INCREF(Py_None); resultobj = Py_None;
12011 return resultobj;
12012 fail:
12013 return NULL;
12014}
12015
12016
12017static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12018 PyObject *resultobj;
12019 wxDC *arg1 = (wxDC *) 0 ;
12020 wxColour *arg2 = 0 ;
12021 wxColour temp2 ;
12022 PyObject * obj0 = 0 ;
12023 PyObject * obj1 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self",(char *) "colour", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12030 {
12031 arg2 = &temp2;
12032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12033 }
12034 {
12035 PyThreadState* __tstate = wxPyBeginAllowThreads();
12036 (arg1)->SetTextBackground((wxColour const &)*arg2);
12037
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 Py_INCREF(Py_None); resultobj = Py_None;
12042 return resultobj;
12043 fail:
12044 return NULL;
12045}
12046
12047
12048static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12049 PyObject *resultobj;
12050 wxDC *arg1 = (wxDC *) 0 ;
12051 int result;
12052 PyObject * obj0 = 0 ;
12053 char *kwnames[] = {
12054 (char *) "self", NULL
12055 };
12056
12057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 result = (int)((wxDC const *)arg1)->GetMapMode();
12062
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 resultobj = PyInt_FromLong((long)result);
12067 return resultobj;
12068 fail:
12069 return NULL;
12070}
12071
12072
12073static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12074 PyObject *resultobj;
12075 wxDC *arg1 = (wxDC *) 0 ;
12076 int arg2 ;
12077 PyObject * obj0 = 0 ;
12078 char *kwnames[] = {
12079 (char *) "self",(char *) "mode", NULL
12080 };
12081
12082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12084 {
12085 PyThreadState* __tstate = wxPyBeginAllowThreads();
12086 (arg1)->SetMapMode(arg2);
12087
12088 wxPyEndAllowThreads(__tstate);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 }
12091 Py_INCREF(Py_None); resultobj = Py_None;
12092 return resultobj;
12093 fail:
12094 return NULL;
12095}
12096
12097
12098static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12099 PyObject *resultobj;
12100 wxDC *arg1 = (wxDC *) 0 ;
12101 double *arg2 = (double *) 0 ;
12102 double *arg3 = (double *) 0 ;
12103 double temp2 ;
12104 double temp3 ;
12105 PyObject * obj0 = 0 ;
12106 char *kwnames[] = {
12107 (char *) "self", NULL
12108 };
12109
12110 arg2 = &temp2;
12111 arg3 = &temp3;
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 Py_INCREF(Py_None); resultobj = Py_None;
12122 {
12123 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12124 resultobj = t_output_helper(resultobj,o);
12125 }
12126 {
12127 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12128 resultobj = t_output_helper(resultobj,o);
12129 }
12130 return resultobj;
12131 fail:
12132 return NULL;
12133}
12134
12135
12136static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj;
12138 wxDC *arg1 = (wxDC *) 0 ;
12139 double arg2 ;
12140 double arg3 ;
12141 PyObject * obj0 = 0 ;
12142 char *kwnames[] = {
12143 (char *) "self",(char *) "x",(char *) "y", NULL
12144 };
12145
12146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 (arg1)->SetUserScale(arg2,arg3);
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 Py_INCREF(Py_None); resultobj = Py_None;
12156 return resultobj;
12157 fail:
12158 return NULL;
12159}
12160
12161
12162static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12163 PyObject *resultobj;
12164 wxDC *arg1 = (wxDC *) 0 ;
12165 double *arg2 = (double *) 0 ;
12166 double *arg3 = (double *) 0 ;
12167 double temp2 ;
12168 double temp3 ;
12169 PyObject * obj0 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self", NULL
12172 };
12173
12174 arg2 = &temp2;
12175 arg3 = &temp3;
12176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 (arg1)->GetLogicalScale(arg2,arg3);
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 Py_INCREF(Py_None); resultobj = Py_None;
12186 {
12187 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12188 resultobj = t_output_helper(resultobj,o);
12189 }
12190 {
12191 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12192 resultobj = t_output_helper(resultobj,o);
12193 }
12194 return resultobj;
12195 fail:
12196 return NULL;
12197}
12198
12199
12200static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxDC *arg1 = (wxDC *) 0 ;
12203 double arg2 ;
12204 double arg3 ;
12205 PyObject * obj0 = 0 ;
12206 char *kwnames[] = {
12207 (char *) "self",(char *) "x",(char *) "y", NULL
12208 };
12209
12210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 (arg1)->SetLogicalScale(arg2,arg3);
12215
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 Py_INCREF(Py_None); resultobj = Py_None;
12220 return resultobj;
12221 fail:
12222 return NULL;
12223}
12224
12225
322913ce 12226static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12227 PyObject *resultobj;
12228 wxDC *arg1 = (wxDC *) 0 ;
322913ce 12229 wxPoint result;
d14a1e28
RD
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self", NULL
12233 };
12234
322913ce 12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
d14a1e28
RD
12236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 12239 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
d14a1e28 12244 {
322913ce
RD
12245 wxPoint * resultptr;
12246 resultptr = new wxPoint((wxPoint &) result);
12247 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
12248 }
12249 return resultobj;
12250 fail:
12251 return NULL;
12252}
12253
12254
322913ce 12255static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12256 PyObject *resultobj;
12257 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
12258 int *arg2 = (int *) 0 ;
12259 int *arg3 = (int *) 0 ;
12260 int temp2 ;
12261 int temp3 ;
d14a1e28
RD
12262 PyObject * obj0 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "self", NULL
12265 };
12266
322913ce
RD
12267 arg2 = &temp2;
12268 arg3 = &temp3;
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
12270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 12273 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
12274
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
322913ce 12278 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 12279 {
322913ce
RD
12280 PyObject *o = PyInt_FromLong((long) (*arg2));
12281 resultobj = t_output_helper(resultobj,o);
12282 }
12283 {
12284 PyObject *o = PyInt_FromLong((long) (*arg3));
12285 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
12286 }
12287 return resultobj;
12288 fail:
12289 return NULL;
12290}
12291
12292
12293static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12294 PyObject *resultobj;
12295 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12296 int arg2 ;
12297 int arg3 ;
d14a1e28
RD
12298 PyObject * obj0 = 0 ;
12299 char *kwnames[] = {
12300 (char *) "self",(char *) "x",(char *) "y", NULL
12301 };
12302
12303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 (arg1)->SetLogicalOrigin(arg2,arg3);
12308
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 Py_INCREF(Py_None); resultobj = Py_None;
12313 return resultobj;
12314 fail:
12315 return NULL;
12316}
12317
12318
322913ce 12319static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12320 PyObject *resultobj;
12321 wxDC *arg1 = (wxDC *) 0 ;
322913ce 12322 wxPoint result;
d14a1e28
RD
12323 PyObject * obj0 = 0 ;
12324 char *kwnames[] = {
12325 (char *) "self", NULL
12326 };
12327
322913ce 12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
d14a1e28
RD
12329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 12332 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
12333
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
d14a1e28 12337 {
322913ce
RD
12338 wxPoint * resultptr;
12339 resultptr = new wxPoint((wxPoint &) result);
12340 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
12341 }
12342 return resultobj;
12343 fail:
12344 return NULL;
12345}
12346
12347
322913ce 12348static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12349 PyObject *resultobj;
12350 wxDC *arg1 = (wxDC *) 0 ;
322913ce
RD
12351 int *arg2 = (int *) 0 ;
12352 int *arg3 = (int *) 0 ;
12353 int temp2 ;
12354 int temp3 ;
d14a1e28
RD
12355 PyObject * obj0 = 0 ;
12356 char *kwnames[] = {
12357 (char *) "self", NULL
12358 };
12359
322913ce
RD
12360 arg2 = &temp2;
12361 arg3 = &temp3;
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
12363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 12366 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
322913ce 12371 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 12372 {
322913ce
RD
12373 PyObject *o = PyInt_FromLong((long) (*arg2));
12374 resultobj = t_output_helper(resultobj,o);
12375 }
12376 {
12377 PyObject *o = PyInt_FromLong((long) (*arg3));
12378 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
12379 }
12380 return resultobj;
12381 fail:
12382 return NULL;
12383}
12384
12385
12386static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12387 PyObject *resultobj;
12388 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12389 int arg2 ;
12390 int arg3 ;
d14a1e28
RD
12391 PyObject * obj0 = 0 ;
12392 char *kwnames[] = {
12393 (char *) "self",(char *) "x",(char *) "y", NULL
12394 };
12395
12396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12398 {
12399 PyThreadState* __tstate = wxPyBeginAllowThreads();
12400 (arg1)->SetDeviceOrigin(arg2,arg3);
12401
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 Py_INCREF(Py_None); resultobj = Py_None;
12406 return resultobj;
12407 fail:
12408 return NULL;
12409}
12410
12411
12412static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12413 PyObject *resultobj;
12414 wxDC *arg1 = (wxDC *) 0 ;
12415 bool arg2 ;
12416 bool arg3 ;
12417 PyObject * obj0 = 0 ;
12418 PyObject * obj1 = 0 ;
12419 PyObject * obj2 = 0 ;
12420 char *kwnames[] = {
12421 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12422 };
12423
12424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12426 arg2 = PyInt_AsLong(obj1) ? true : false;
12427 if (PyErr_Occurred()) SWIG_fail;
12428 arg3 = PyInt_AsLong(obj2) ? true : false;
12429 if (PyErr_Occurred()) SWIG_fail;
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 (arg1)->SetAxisOrientation(arg2,arg3);
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 Py_INCREF(Py_None); resultobj = Py_None;
12438 return resultobj;
12439 fail:
12440 return NULL;
12441}
12442
12443
12444static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj;
12446 wxDC *arg1 = (wxDC *) 0 ;
12447 int result;
12448 PyObject * obj0 = 0 ;
12449 char *kwnames[] = {
12450 (char *) "self", NULL
12451 };
12452
12453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12458
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 resultobj = PyInt_FromLong((long)result);
12463 return resultobj;
12464 fail:
12465 return NULL;
12466}
12467
12468
12469static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj;
12471 wxDC *arg1 = (wxDC *) 0 ;
12472 int arg2 ;
12473 PyObject * obj0 = 0 ;
12474 char *kwnames[] = {
12475 (char *) "self",(char *) "function", NULL
12476 };
12477
12478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 (arg1)->SetLogicalFunction(arg2);
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 Py_INCREF(Py_None); resultobj = Py_None;
12488 return resultobj;
12489 fail:
12490 return NULL;
12491}
12492
12493
12494static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12495 PyObject *resultobj;
12496 wxDC *arg1 = (wxDC *) 0 ;
12497 bool arg2 ;
12498 PyObject * obj0 = 0 ;
12499 PyObject * obj1 = 0 ;
12500 char *kwnames[] = {
12501 (char *) "self",(char *) "opt", NULL
12502 };
12503
12504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12506 arg2 = PyInt_AsLong(obj1) ? true : false;
12507 if (PyErr_Occurred()) SWIG_fail;
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 (arg1)->SetOptimization(arg2);
12511
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 Py_INCREF(Py_None); resultobj = Py_None;
12516 return resultobj;
12517 fail:
12518 return NULL;
12519}
12520
12521
12522static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj;
12524 wxDC *arg1 = (wxDC *) 0 ;
12525 bool result;
12526 PyObject * obj0 = 0 ;
12527 char *kwnames[] = {
12528 (char *) "self", NULL
12529 };
12530
12531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12533 {
12534 PyThreadState* __tstate = wxPyBeginAllowThreads();
12535 result = (bool)(arg1)->GetOptimization();
12536
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 resultobj = PyInt_FromLong((long)result);
12541 return resultobj;
12542 fail:
12543 return NULL;
12544}
12545
12546
12547static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12548 PyObject *resultobj;
12549 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce
RD
12550 int arg2 ;
12551 int arg3 ;
d14a1e28
RD
12552 PyObject * obj0 = 0 ;
12553 char *kwnames[] = {
12554 (char *) "self",(char *) "x",(char *) "y", NULL
12555 };
12556
12557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12559 {
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 (arg1)->CalcBoundingBox(arg2,arg3);
12562
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 Py_INCREF(Py_None); resultobj = Py_None;
12567 return resultobj;
12568 fail:
12569 return NULL;
12570}
12571
12572
12573static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj;
12575 wxDC *arg1 = (wxDC *) 0 ;
12576 PyObject * obj0 = 0 ;
12577 char *kwnames[] = {
12578 (char *) "self", NULL
12579 };
12580
12581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->ResetBoundingBox();
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594}
12595
12596
12597static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12600 int result;
d14a1e28
RD
12601 PyObject * obj0 = 0 ;
12602 char *kwnames[] = {
12603 (char *) "self", NULL
12604 };
12605
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12608 {
12609 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12610 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
12611
12612 wxPyEndAllowThreads(__tstate);
12613 if (PyErr_Occurred()) SWIG_fail;
12614 }
12615 resultobj = PyInt_FromLong((long)result);
12616 return resultobj;
12617 fail:
12618 return NULL;
12619}
12620
12621
12622static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj;
12624 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12625 int result;
d14a1e28
RD
12626 PyObject * obj0 = 0 ;
12627 char *kwnames[] = {
12628 (char *) "self", NULL
12629 };
12630
12631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12635 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
12636
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 resultobj = PyInt_FromLong((long)result);
12641 return resultobj;
12642 fail:
12643 return NULL;
12644}
12645
12646
12647static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12650 int result;
d14a1e28
RD
12651 PyObject * obj0 = 0 ;
12652 char *kwnames[] = {
12653 (char *) "self", NULL
12654 };
12655
12656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12660 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
12661
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = PyInt_FromLong((long)result);
12666 return resultobj;
12667 fail:
12668 return NULL;
12669}
12670
12671
12672static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxDC *arg1 = (wxDC *) 0 ;
e811c8ce 12675 int result;
d14a1e28
RD
12676 PyObject * obj0 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 12685 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 resultobj = PyInt_FromLong((long)result);
12691 return resultobj;
12692 fail:
12693 return NULL;
12694}
12695
12696
12697static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj;
12699 wxDC *arg1 = (wxDC *) 0 ;
12700 int *arg2 = (int *) 0 ;
12701 int *arg3 = (int *) 0 ;
12702 int *arg4 = (int *) 0 ;
12703 int *arg5 = (int *) 0 ;
12704 int temp2 ;
12705 int temp3 ;
12706 int temp4 ;
12707 int temp5 ;
12708 PyObject * obj0 = 0 ;
12709 char *kwnames[] = {
12710 (char *) "self", NULL
12711 };
12712
12713 arg2 = &temp2;
12714 arg3 = &temp3;
12715 arg4 = &temp4;
12716 arg5 = &temp5;
12717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12722
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 Py_INCREF(Py_None); resultobj = Py_None;
12727 {
12728 PyObject *o = PyInt_FromLong((long) (*arg2));
12729 resultobj = t_output_helper(resultobj,o);
12730 }
12731 {
12732 PyObject *o = PyInt_FromLong((long) (*arg3));
12733 resultobj = t_output_helper(resultobj,o);
12734 }
12735 {
12736 PyObject *o = PyInt_FromLong((long) (*arg4));
12737 resultobj = t_output_helper(resultobj,o);
12738 }
12739 {
12740 PyObject *o = PyInt_FromLong((long) (*arg5));
12741 resultobj = t_output_helper(resultobj,o);
12742 }
12743 return resultobj;
12744 fail:
12745 return NULL;
12746}
12747
12748
12749static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj;
12751 wxDC *arg1 = (wxDC *) 0 ;
12752 PyObject *arg2 = (PyObject *) 0 ;
12753 PyObject *arg3 = (PyObject *) 0 ;
12754 PyObject *arg4 = (PyObject *) 0 ;
12755 PyObject *result;
12756 PyObject * obj0 = 0 ;
12757 PyObject * obj1 = 0 ;
12758 PyObject * obj2 = 0 ;
12759 PyObject * obj3 = 0 ;
12760 char *kwnames[] = {
12761 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12762 };
12763
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12766 arg2 = obj1;
12767 arg3 = obj2;
12768 arg4 = obj3;
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 resultobj = result;
12777 return resultobj;
12778 fail:
12779 return NULL;
12780}
12781
12782
12783static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 PyObject *arg2 = (PyObject *) 0 ;
12787 PyObject *arg3 = (PyObject *) 0 ;
12788 PyObject *arg4 = (PyObject *) 0 ;
12789 PyObject *result;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 PyObject * obj2 = 0 ;
12793 PyObject * obj3 = 0 ;
12794 char *kwnames[] = {
12795 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12796 };
12797
12798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12800 arg2 = obj1;
12801 arg3 = obj2;
12802 arg4 = obj3;
12803 {
12804 PyThreadState* __tstate = wxPyBeginAllowThreads();
12805 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12806
12807 wxPyEndAllowThreads(__tstate);
12808 if (PyErr_Occurred()) SWIG_fail;
12809 }
12810 resultobj = result;
12811 return resultobj;
12812 fail:
12813 return NULL;
12814}
12815
12816
12817static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12818 PyObject *resultobj;
12819 wxDC *arg1 = (wxDC *) 0 ;
12820 PyObject *arg2 = (PyObject *) 0 ;
12821 PyObject *arg3 = (PyObject *) 0 ;
12822 PyObject *arg4 = (PyObject *) 0 ;
12823 PyObject *result;
12824 PyObject * obj0 = 0 ;
12825 PyObject * obj1 = 0 ;
12826 PyObject * obj2 = 0 ;
12827 PyObject * obj3 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12834 arg2 = obj1;
12835 arg3 = obj2;
12836 arg4 = obj3;
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12840
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = result;
12845 return resultobj;
12846 fail:
12847 return NULL;
12848}
12849
12850
12851static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12852 PyObject *resultobj;
12853 wxDC *arg1 = (wxDC *) 0 ;
12854 PyObject *arg2 = (PyObject *) 0 ;
12855 PyObject *arg3 = (PyObject *) 0 ;
12856 PyObject *arg4 = (PyObject *) 0 ;
12857 PyObject *result;
12858 PyObject * obj0 = 0 ;
12859 PyObject * obj1 = 0 ;
12860 PyObject * obj2 = 0 ;
12861 PyObject * obj3 = 0 ;
12862 char *kwnames[] = {
12863 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12864 };
12865
12866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12868 arg2 = obj1;
12869 arg3 = obj2;
12870 arg4 = obj3;
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
12873 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12874
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
12878 resultobj = result;
12879 return resultobj;
12880 fail:
12881 return NULL;
12882}
12883
12884
12885static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12886 PyObject *resultobj;
12887 wxDC *arg1 = (wxDC *) 0 ;
12888 PyObject *arg2 = (PyObject *) 0 ;
12889 PyObject *arg3 = (PyObject *) 0 ;
12890 PyObject *arg4 = (PyObject *) 0 ;
12891 PyObject *result;
12892 PyObject * obj0 = 0 ;
12893 PyObject * obj1 = 0 ;
12894 PyObject * obj2 = 0 ;
12895 PyObject * obj3 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12898 };
12899
12900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12902 arg2 = obj1;
12903 arg3 = obj2;
12904 arg4 = obj3;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 resultobj = result;
12913 return resultobj;
12914 fail:
12915 return NULL;
12916}
12917
12918
12919static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject *resultobj;
12921 wxDC *arg1 = (wxDC *) 0 ;
12922 PyObject *arg2 = (PyObject *) 0 ;
12923 PyObject *arg3 = (PyObject *) 0 ;
12924 PyObject *arg4 = (PyObject *) 0 ;
12925 PyObject *arg5 = (PyObject *) 0 ;
12926 PyObject *result;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 PyObject * obj2 = 0 ;
12930 PyObject * obj3 = 0 ;
12931 PyObject * obj4 = 0 ;
12932 char *kwnames[] = {
12933 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12938 arg2 = obj1;
12939 arg3 = obj2;
12940 arg4 = obj3;
12941 arg5 = obj4;
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12945
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 resultobj = result;
12950 return resultobj;
12951 fail:
12952 return NULL;
12953}
12954
12955
12956static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
12957 PyObject *obj;
12958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12959 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
12960 Py_INCREF(obj);
12961 return Py_BuildValue((char *)"");
12962}
12963static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12964 PyObject *resultobj;
12965 wxMemoryDC *result;
12966 char *kwnames[] = {
12967 NULL
12968 };
12969
12970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 result = (wxMemoryDC *)new wxMemoryDC();
12974
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12979 return resultobj;
12980 fail:
12981 return NULL;
12982}
12983
12984
12985static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12986 PyObject *resultobj;
12987 wxDC *arg1 = (wxDC *) 0 ;
12988 wxMemoryDC *result;
12989 PyObject * obj0 = 0 ;
12990 char *kwnames[] = {
12991 (char *) "oldDC", NULL
12992 };
12993
12994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
12995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12996 {
12997 PyThreadState* __tstate = wxPyBeginAllowThreads();
12998 result = (wxMemoryDC *)new wxMemoryDC(arg1);
12999
13000 wxPyEndAllowThreads(__tstate);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 }
13003 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13004 return resultobj;
13005 fail:
13006 return NULL;
13007}
13008
13009
13010static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj;
13012 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13013 wxBitmap *arg2 = 0 ;
13014 PyObject * obj0 = 0 ;
13015 PyObject * obj1 = 0 ;
13016 char *kwnames[] = {
13017 (char *) "self",(char *) "bitmap", NULL
13018 };
13019
13020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13023 if (arg2 == NULL) {
13024 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13025 }
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 (arg1)->SelectObject((wxBitmap const &)*arg2);
13029
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 Py_INCREF(Py_None); resultobj = Py_None;
13034 return resultobj;
13035 fail:
13036 return NULL;
13037}
13038
13039
13040static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13041 PyObject *obj;
13042 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13043 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13044 Py_INCREF(obj);
13045 return Py_BuildValue((char *)"");
13046}
13047static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13048 PyObject *resultobj;
13049 wxDC *arg1 = (wxDC *) 0 ;
13050 wxBitmap *arg2 = 0 ;
13051 wxBufferedDC *result;
13052 PyObject * obj0 = 0 ;
13053 PyObject * obj1 = 0 ;
13054 char *kwnames[] = {
13055 (char *) "dc",(char *) "buffer", NULL
13056 };
13057
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13060 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13061 if (arg2 == NULL) {
13062 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13063 }
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13072 return resultobj;
13073 fail:
13074 return NULL;
13075}
13076
13077
13078static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13079 PyObject *resultobj;
13080 wxDC *arg1 = (wxDC *) 0 ;
13081 wxSize *arg2 = 0 ;
13082 wxBufferedDC *result;
13083 wxSize temp2 ;
13084 PyObject * obj0 = 0 ;
13085 PyObject * obj1 = 0 ;
13086 char *kwnames[] = {
13087 (char *) "dc",(char *) "area", NULL
13088 };
13089
13090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13092 {
13093 arg2 = &temp2;
13094 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13095 }
13096 {
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13104 return resultobj;
13105 fail:
13106 return NULL;
13107}
13108
13109
13110static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj;
13112 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13113 PyObject * obj0 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 (arg1)->UnMask();
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 Py_INCREF(Py_None); resultobj = Py_None;
13128 return resultobj;
13129 fail:
13130 return NULL;
13131}
13132
13133
13134static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13135 PyObject *obj;
13136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13137 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13138 Py_INCREF(obj);
13139 return Py_BuildValue((char *)"");
13140}
13141static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxWindow *arg1 = (wxWindow *) 0 ;
13144 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13145 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13146 wxBufferedPaintDC *result;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 char *kwnames[] = {
13150 (char *) "window",(char *) "buffer", NULL
13151 };
13152
13153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13155 if (obj1) {
13156 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13157 if (arg2 == NULL) {
13158 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13159 }
13160 }
13161 {
13162 PyThreadState* __tstate = wxPyBeginAllowThreads();
13163 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13164
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13169 return resultobj;
13170 fail:
13171 return NULL;
13172}
13173
13174
13175static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13176 PyObject *obj;
13177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13178 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13179 Py_INCREF(obj);
13180 return Py_BuildValue((char *)"");
13181}
13182static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj;
13184 wxScreenDC *result;
13185 char *kwnames[] = {
13186 NULL
13187 };
13188
13189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 result = (wxScreenDC *)new wxScreenDC();
13193
13194 wxPyEndAllowThreads(__tstate);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13198 return resultobj;
13199 fail:
13200 return NULL;
13201}
13202
13203
13204static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj;
13206 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13207 wxWindow *arg2 = (wxWindow *) 0 ;
13208 bool result;
13209 PyObject * obj0 = 0 ;
13210 PyObject * obj1 = 0 ;
13211 char *kwnames[] = {
13212 (char *) "self",(char *) "window", NULL
13213 };
13214
13215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13217 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13221
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 resultobj = PyInt_FromLong((long)result);
13226 return resultobj;
13227 fail:
13228 return NULL;
13229}
13230
13231
13232static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13233 PyObject *resultobj;
13234 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13235 wxRect *arg2 = (wxRect *) NULL ;
13236 bool result;
13237 PyObject * obj0 = 0 ;
13238 PyObject * obj1 = 0 ;
13239 char *kwnames[] = {
13240 (char *) "self",(char *) "rect", NULL
13241 };
13242
13243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13245 if (obj1) {
13246 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13247 }
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13251
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = PyInt_FromLong((long)result);
13256 return resultobj;
13257 fail:
13258 return NULL;
13259}
13260
13261
13262static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj;
13264 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13265 bool result;
13266 PyObject * obj0 = 0 ;
13267 char *kwnames[] = {
13268 (char *) "self", NULL
13269 };
13270
13271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
13275 result = (bool)(arg1)->EndDrawingOnTop();
13276
13277 wxPyEndAllowThreads(__tstate);
13278 if (PyErr_Occurred()) SWIG_fail;
13279 }
13280 resultobj = PyInt_FromLong((long)result);
13281 return resultobj;
13282 fail:
13283 return NULL;
13284}
13285
13286
13287static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13288 PyObject *obj;
13289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13290 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13291 Py_INCREF(obj);
13292 return Py_BuildValue((char *)"");
13293}
13294static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj;
13296 wxWindow *arg1 = (wxWindow *) 0 ;
13297 wxClientDC *result;
13298 PyObject * obj0 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "win", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 result = (wxClientDC *)new wxClientDC(arg1);
13308
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13313 return resultobj;
13314 fail:
13315 return NULL;
13316}
13317
13318
13319static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13320 PyObject *obj;
13321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13322 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13323 Py_INCREF(obj);
13324 return Py_BuildValue((char *)"");
13325}
13326static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj;
13328 wxWindow *arg1 = (wxWindow *) 0 ;
13329 wxPaintDC *result;
13330 PyObject * obj0 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "win", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (wxPaintDC *)new wxPaintDC(arg1);
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13345 return resultobj;
13346 fail:
13347 return NULL;
13348}
13349
13350
13351static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13352 PyObject *obj;
13353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13354 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13355 Py_INCREF(obj);
13356 return Py_BuildValue((char *)"");
13357}
13358static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj;
13360 wxWindow *arg1 = (wxWindow *) 0 ;
13361 wxWindowDC *result;
13362 PyObject * obj0 = 0 ;
13363 char *kwnames[] = {
13364 (char *) "win", NULL
13365 };
13366
13367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = (wxWindowDC *)new wxWindowDC(arg1);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13377 return resultobj;
13378 fail:
13379 return NULL;
13380}
13381
13382
13383static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13384 PyObject *obj;
13385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13386 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13387 Py_INCREF(obj);
13388 return Py_BuildValue((char *)"");
13389}
13390static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxDC *arg1 = 0 ;
13393 bool arg2 ;
13394 wxMirrorDC *result;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "dc",(char *) "mirror", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13403 if (arg1 == NULL) {
13404 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13405 }
13406 arg2 = PyInt_AsLong(obj1) ? true : false;
13407 if (PyErr_Occurred()) SWIG_fail;
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13411
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13416 return resultobj;
13417 fail:
13418 return NULL;
13419}
13420
13421
13422static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13423 PyObject *obj;
13424 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13425 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13426 Py_INCREF(obj);
13427 return Py_BuildValue((char *)"");
13428}
13429static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13430 PyObject *resultobj;
13431 wxPrintData *arg1 = 0 ;
13432 wxPostScriptDC *result;
13433 PyObject * obj0 = 0 ;
13434 char *kwnames[] = {
13435 (char *) "printData", NULL
13436 };
13437
13438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13440 if (arg1 == NULL) {
13441 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13442 }
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13446
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13451 return resultobj;
13452 fail:
13453 return NULL;
13454}
13455
13456
13457static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13458 PyObject *resultobj;
13459 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13460 wxPrintData *result;
13461 PyObject * obj0 = 0 ;
13462 char *kwnames[] = {
13463 (char *) "self", NULL
13464 };
13465
13466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 {
13471 wxPrintData &_result_ref = (arg1)->GetPrintData();
13472 result = (wxPrintData *) &_result_ref;
13473 }
13474
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13479 return resultobj;
13480 fail:
13481 return NULL;
13482}
13483
13484
13485static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13486 PyObject *resultobj;
13487 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13488 wxPrintData *arg2 = 0 ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char *kwnames[] = {
13492 (char *) "self",(char *) "data", NULL
13493 };
13494
13495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13497 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13498 if (arg2 == NULL) {
13499 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13500 }
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13504
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 Py_INCREF(Py_None); resultobj = Py_None;
13509 return resultobj;
13510 fail:
13511 return NULL;
13512}
13513
13514
13515static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13516 PyObject *resultobj;
13517 int arg1 ;
13518 char *kwnames[] = {
13519 (char *) "ppi", NULL
13520 };
13521
13522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 wxPostScriptDC::SetResolution(arg1);
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 Py_INCREF(Py_None); resultobj = Py_None;
13531 return resultobj;
13532 fail:
13533 return NULL;
13534}
13535
13536
13537static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 int result;
13540 char *kwnames[] = {
13541 NULL
13542 };
13543
13544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (int)wxPostScriptDC::GetResolution();
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = PyInt_FromLong((long)result);
13553 return resultobj;
13554 fail:
13555 return NULL;
13556}
13557
13558
13559static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13560 PyObject *obj;
13561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13562 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13563 Py_INCREF(obj);
13564 return Py_BuildValue((char *)"");
13565}
13566static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj;
13568 wxString const &arg1_defvalue = wxPyEmptyString ;
13569 wxString *arg1 = (wxString *) &arg1_defvalue ;
13570 wxMetaFile *result;
e811c8ce 13571 bool temp1 = False ;
d14a1e28
RD
13572 PyObject * obj0 = 0 ;
13573 char *kwnames[] = {
13574 (char *) "filename", NULL
13575 };
13576
13577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13578 if (obj0) {
13579 {
13580 arg1 = wxString_in_helper(obj0);
13581 if (arg1 == NULL) SWIG_fail;
e811c8ce 13582 temp1 = True;
d14a1e28
RD
13583 }
13584 }
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13588
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13593 {
13594 if (temp1)
13595 delete arg1;
13596 }
13597 return resultobj;
13598 fail:
13599 {
13600 if (temp1)
13601 delete arg1;
13602 }
13603 return NULL;
13604}
13605
13606
13607static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13608 PyObject *obj;
13609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13610 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13611 Py_INCREF(obj);
13612 return Py_BuildValue((char *)"");
13613}
13614static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13615 PyObject *resultobj;
13616 wxString const &arg1_defvalue = wxPyEmptyString ;
13617 wxString *arg1 = (wxString *) &arg1_defvalue ;
13618 int arg2 = (int) 0 ;
13619 int arg3 = (int) 0 ;
13620 wxString const &arg4_defvalue = wxPyEmptyString ;
13621 wxString *arg4 = (wxString *) &arg4_defvalue ;
13622 wxMetaFileDC *result;
e811c8ce
RD
13623 bool temp1 = False ;
13624 bool temp4 = False ;
d14a1e28
RD
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj3 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13632 if (obj0) {
13633 {
13634 arg1 = wxString_in_helper(obj0);
13635 if (arg1 == NULL) SWIG_fail;
e811c8ce 13636 temp1 = True;
d14a1e28
RD
13637 }
13638 }
13639 if (obj3) {
13640 {
13641 arg4 = wxString_in_helper(obj3);
13642 if (arg4 == NULL) SWIG_fail;
e811c8ce 13643 temp4 = True;
d14a1e28
RD
13644 }
13645 }
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13649
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13654 {
13655 if (temp1)
13656 delete arg1;
13657 }
13658 {
13659 if (temp4)
13660 delete arg4;
13661 }
13662 return resultobj;
13663 fail:
13664 {
13665 if (temp1)
13666 delete arg1;
13667 }
13668 {
13669 if (temp4)
13670 delete arg4;
13671 }
13672 return NULL;
13673}
13674
13675
13676static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13677 PyObject *obj;
13678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13679 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13680 Py_INCREF(obj);
13681 return Py_BuildValue((char *)"");
13682}
13683static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13684 PyObject *resultobj;
13685 wxPrintData *arg1 = 0 ;
13686 wxPrinterDC *result;
13687 PyObject * obj0 = 0 ;
13688 char *kwnames[] = {
13689 (char *) "printData", NULL
13690 };
13691
13692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13694 if (arg1 == NULL) {
13695 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13696 }
13697 {
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13705 return resultobj;
13706 fail:
13707 return NULL;
13708}
13709
13710
13711static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13712 PyObject *obj;
13713 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13714 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13715 Py_INCREF(obj);
13716 return Py_BuildValue((char *)"");
13717}
13718static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj;
13720 int arg1 ;
13721 int arg2 ;
e811c8ce 13722 int arg3 = (int) True ;
d14a1e28
RD
13723 int arg4 = (int) 1 ;
13724 wxImageList *result;
13725 char *kwnames[] = {
13726 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13727 };
13728
13729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13733
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 {
13738 resultobj = wxPyMake_wxObject(result);
13739 }
13740 return resultobj;
13741 fail:
13742 return NULL;
13743}
13744
13745
13746static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxImageList *arg1 = (wxImageList *) 0 ;
13749 PyObject * obj0 = 0 ;
13750 char *kwnames[] = {
13751 (char *) "self", NULL
13752 };
13753
13754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 delete arg1;
13759
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 Py_INCREF(Py_None); resultobj = Py_None;
13764 return resultobj;
13765 fail:
13766 return NULL;
13767}
13768
13769
13770static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj;
13772 wxImageList *arg1 = (wxImageList *) 0 ;
13773 wxBitmap *arg2 = 0 ;
13774 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13775 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13776 int result;
13777 PyObject * obj0 = 0 ;
13778 PyObject * obj1 = 0 ;
13779 PyObject * obj2 = 0 ;
13780 char *kwnames[] = {
13781 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13782 };
13783
13784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13787 if (arg2 == NULL) {
13788 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13789 }
13790 if (obj2) {
13791 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13792 if (arg3 == NULL) {
13793 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13794 }
13795 }
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13799
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = PyInt_FromLong((long)result);
13804 return resultobj;
13805 fail:
13806 return NULL;
13807}
13808
13809
13810static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj;
13812 wxImageList *arg1 = (wxImageList *) 0 ;
13813 wxBitmap *arg2 = 0 ;
13814 wxColour *arg3 = 0 ;
13815 int result;
13816 wxColour temp3 ;
13817 PyObject * obj0 = 0 ;
13818 PyObject * obj1 = 0 ;
13819 PyObject * obj2 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13826 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13827 if (arg2 == NULL) {
13828 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13829 }
13830 {
13831 arg3 = &temp3;
13832 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13833 }
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13837
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = PyInt_FromLong((long)result);
13842 return resultobj;
13843 fail:
13844 return NULL;
13845}
13846
13847
13848static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj;
13850 wxImageList *arg1 = (wxImageList *) 0 ;
13851 wxIcon *arg2 = 0 ;
13852 int result;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 char *kwnames[] = {
13856 (char *) "self",(char *) "icon", NULL
13857 };
13858
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13861 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13862 if (arg2 == NULL) {
13863 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13864 }
13865 {
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13868
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 resultobj = PyInt_FromLong((long)result);
13873 return resultobj;
13874 fail:
13875 return NULL;
13876}
13877
13878
13879static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13880 PyObject *resultobj;
13881 wxImageList *arg1 = (wxImageList *) 0 ;
13882 int arg2 ;
13883 wxBitmap *arg3 = 0 ;
13884 bool result;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj2 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13893 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13894 if (arg3 == NULL) {
13895 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13896 }
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13900
13901 wxPyEndAllowThreads(__tstate);
13902 if (PyErr_Occurred()) SWIG_fail;
13903 }
13904 resultobj = PyInt_FromLong((long)result);
13905 return resultobj;
13906 fail:
13907 return NULL;
13908}
13909
13910
13911static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13912 PyObject *resultobj;
13913 wxImageList *arg1 = (wxImageList *) 0 ;
13914 int arg2 ;
13915 wxDC *arg3 = 0 ;
13916 int arg4 ;
13917 int arg5 ;
13918 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
e811c8ce 13919 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
13920 bool result;
13921 PyObject * obj0 = 0 ;
13922 PyObject * obj2 = 0 ;
13923 PyObject * obj6 = 0 ;
13924 char *kwnames[] = {
13925 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13926 };
13927
13928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13930 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13931 if (arg3 == NULL) {
13932 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13933 }
13934 if (obj6) {
13935 arg7 = PyInt_AsLong(obj6) ? true : false;
13936 if (PyErr_Occurred()) SWIG_fail;
13937 }
13938 {
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
13940 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13941
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 resultobj = PyInt_FromLong((long)result);
13946 return resultobj;
13947 fail:
13948 return NULL;
13949}
13950
13951
13952static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj;
13954 wxImageList *arg1 = (wxImageList *) 0 ;
13955 int result;
13956 PyObject * obj0 = 0 ;
13957 char *kwnames[] = {
13958 (char *) "self", NULL
13959 };
13960
13961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
13962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = (int)(arg1)->GetImageCount();
13966
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = PyInt_FromLong((long)result);
13971 return resultobj;
13972 fail:
13973 return NULL;
13974}
13975
13976
13977static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
13978 PyObject *resultobj;
13979 wxImageList *arg1 = (wxImageList *) 0 ;
13980 int arg2 ;
13981 bool result;
13982 PyObject * obj0 = 0 ;
13983 char *kwnames[] = {
13984 (char *) "self",(char *) "index", NULL
13985 };
13986
13987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
13988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 result = (bool)(arg1)->Remove(arg2);
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = PyInt_FromLong((long)result);
13997 return resultobj;
13998 fail:
13999 return NULL;
14000}
14001
14002
14003static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj;
14005 wxImageList *arg1 = (wxImageList *) 0 ;
14006 bool result;
14007 PyObject * obj0 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "self", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (bool)(arg1)->RemoveAll();
14017
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 resultobj = PyInt_FromLong((long)result);
14022 return resultobj;
14023 fail:
14024 return NULL;
14025}
14026
14027
14028static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14029 PyObject *resultobj;
14030 wxImageList *arg1 = (wxImageList *) 0 ;
14031 int arg2 ;
14032 int *arg3 = 0 ;
14033 int *arg4 = 0 ;
14034 int temp3 ;
14035 int temp4 ;
14036 PyObject * obj0 = 0 ;
14037 char *kwnames[] = {
14038 (char *) "self",(char *) "index", NULL
14039 };
14040
14041 arg3 = &temp3;
14042 arg4 = &temp4;
14043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14045 {
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 (arg1)->GetSize(arg2,*arg3,*arg4);
14048
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 Py_INCREF(Py_None); resultobj = Py_None;
14053 {
14054 PyObject *o = PyInt_FromLong((long) (*arg3));
14055 resultobj = t_output_helper(resultobj,o);
14056 }
14057 {
14058 PyObject *o = PyInt_FromLong((long) (*arg4));
14059 resultobj = t_output_helper(resultobj,o);
14060 }
14061 return resultobj;
14062 fail:
14063 return NULL;
14064}
14065
14066
14067static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14068 PyObject *obj;
14069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14070 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14071 Py_INCREF(obj);
14072 return Py_BuildValue((char *)"");
14073}
14074static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14075 PyObject *resultobj;
14076 wxPenList *arg1 = (wxPenList *) 0 ;
14077 wxPen *arg2 = (wxPen *) 0 ;
14078 PyObject * obj0 = 0 ;
14079 PyObject * obj1 = 0 ;
14080 char *kwnames[] = {
14081 (char *) "self",(char *) "pen", NULL
14082 };
14083
14084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14086 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 (arg1)->AddPen(arg2);
14090
14091 wxPyEndAllowThreads(__tstate);
14092 if (PyErr_Occurred()) SWIG_fail;
14093 }
14094 Py_INCREF(Py_None); resultobj = Py_None;
14095 return resultobj;
14096 fail:
14097 return NULL;
14098}
14099
14100
14101static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14102 PyObject *resultobj;
14103 wxPenList *arg1 = (wxPenList *) 0 ;
14104 wxColour *arg2 = 0 ;
14105 int arg3 ;
14106 int arg4 ;
14107 wxPen *result;
14108 wxColour temp2 ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 char *kwnames[] = {
14112 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14113 };
14114
14115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14117 {
14118 arg2 = &temp2;
14119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14120 }
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14124
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14129 return resultobj;
14130 fail:
14131 return NULL;
14132}
14133
14134
14135static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14136 PyObject *resultobj;
14137 wxPenList *arg1 = (wxPenList *) 0 ;
14138 wxPen *arg2 = (wxPen *) 0 ;
14139 PyObject * obj0 = 0 ;
14140 PyObject * obj1 = 0 ;
14141 char *kwnames[] = {
14142 (char *) "self",(char *) "pen", NULL
14143 };
14144
14145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14147 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14148 {
14149 PyThreadState* __tstate = wxPyBeginAllowThreads();
14150 (arg1)->RemovePen(arg2);
14151
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 Py_INCREF(Py_None); resultobj = Py_None;
14156 return resultobj;
14157 fail:
14158 return NULL;
14159}
14160
14161
14162static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14163 PyObject *resultobj;
14164 wxPenList *arg1 = (wxPenList *) 0 ;
14165 int result;
14166 PyObject * obj0 = 0 ;
14167 char *kwnames[] = {
14168 (char *) "self", NULL
14169 };
14170
14171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14173 {
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (int)(arg1)->GetCount();
14176
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 resultobj = PyInt_FromLong((long)result);
14181 return resultobj;
14182 fail:
14183 return NULL;
14184}
14185
14186
14187static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14188 PyObject *obj;
14189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14190 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14191 Py_INCREF(obj);
14192 return Py_BuildValue((char *)"");
14193}
14194static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxBrushList *arg1 = (wxBrushList *) 0 ;
14197 wxBrush *arg2 = (wxBrush *) 0 ;
14198 PyObject * obj0 = 0 ;
14199 PyObject * obj1 = 0 ;
14200 char *kwnames[] = {
14201 (char *) "self",(char *) "brush", NULL
14202 };
14203
14204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14206 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14207 {
14208 PyThreadState* __tstate = wxPyBeginAllowThreads();
14209 (arg1)->AddBrush(arg2);
14210
14211 wxPyEndAllowThreads(__tstate);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 }
14214 Py_INCREF(Py_None); resultobj = Py_None;
14215 return resultobj;
14216 fail:
14217 return NULL;
14218}
14219
14220
14221static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14222 PyObject *resultobj;
14223 wxBrushList *arg1 = (wxBrushList *) 0 ;
14224 wxColour *arg2 = 0 ;
14225 int arg3 ;
14226 wxBrush *result;
14227 wxColour temp2 ;
14228 PyObject * obj0 = 0 ;
14229 PyObject * obj1 = 0 ;
14230 char *kwnames[] = {
14231 (char *) "self",(char *) "colour",(char *) "style", NULL
14232 };
14233
14234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14236 {
14237 arg2 = &temp2;
14238 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14239 }
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14243
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14248 return resultobj;
14249 fail:
14250 return NULL;
14251}
14252
14253
14254static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14255 PyObject *resultobj;
14256 wxBrushList *arg1 = (wxBrushList *) 0 ;
14257 wxBrush *arg2 = (wxBrush *) 0 ;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char *kwnames[] = {
14261 (char *) "self",(char *) "brush", NULL
14262 };
14263
14264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14266 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 (arg1)->RemoveBrush(arg2);
14270
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 Py_INCREF(Py_None); resultobj = Py_None;
14275 return resultobj;
14276 fail:
14277 return NULL;
14278}
14279
14280
14281static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj;
14283 wxBrushList *arg1 = (wxBrushList *) 0 ;
14284 int result;
14285 PyObject * obj0 = 0 ;
14286 char *kwnames[] = {
14287 (char *) "self", NULL
14288 };
14289
14290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14292 {
14293 PyThreadState* __tstate = wxPyBeginAllowThreads();
14294 result = (int)(arg1)->GetCount();
14295
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 resultobj = PyInt_FromLong((long)result);
14300 return resultobj;
14301 fail:
14302 return NULL;
14303}
14304
14305
14306static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14307 PyObject *obj;
14308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14309 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14310 Py_INCREF(obj);
14311 return Py_BuildValue((char *)"");
14312}
14313static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14314 PyObject *resultobj;
14315 wxColourDatabase *result;
14316 char *kwnames[] = {
14317 NULL
14318 };
14319
14320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (wxColourDatabase *)new wxColourDatabase();
14324
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14329 return resultobj;
14330 fail:
14331 return NULL;
14332}
14333
14334
14335static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj;
14337 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14338 PyObject * obj0 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 delete arg1;
14348
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 Py_INCREF(Py_None); resultobj = Py_None;
14353 return resultobj;
14354 fail:
14355 return NULL;
14356}
14357
14358
14359static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj;
14361 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14362 wxString *arg2 = 0 ;
14363 wxColour result;
e811c8ce 14364 bool temp2 = False ;
d14a1e28
RD
14365 PyObject * obj0 = 0 ;
14366 PyObject * obj1 = 0 ;
14367 char *kwnames[] = {
14368 (char *) "self",(char *) "name", NULL
14369 };
14370
14371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14373 {
14374 arg2 = wxString_in_helper(obj1);
14375 if (arg2 == NULL) SWIG_fail;
e811c8ce 14376 temp2 = True;
d14a1e28
RD
14377 }
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14381
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 {
14386 wxColour * resultptr;
14387 resultptr = new wxColour((wxColour &) result);
14388 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14389 }
14390 {
14391 if (temp2)
14392 delete arg2;
14393 }
14394 return resultobj;
14395 fail:
14396 {
14397 if (temp2)
14398 delete arg2;
14399 }
14400 return NULL;
14401}
14402
14403
14404static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj;
14406 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14407 wxColour *arg2 = 0 ;
14408 wxString result;
14409 wxColour temp2 ;
14410 PyObject * obj0 = 0 ;
14411 PyObject * obj1 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "self",(char *) "colour", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14418 {
14419 arg2 = &temp2;
14420 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14421 }
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 {
14430#if wxUSE_UNICODE
14431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14432#else
14433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14434#endif
14435 }
14436 return resultobj;
14437 fail:
14438 return NULL;
14439}
14440
14441
14442static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14445 wxString *arg2 = 0 ;
14446 wxColour *arg3 = 0 ;
e811c8ce 14447 bool temp2 = False ;
d14a1e28
RD
14448 wxColour temp3 ;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 PyObject * obj2 = 0 ;
14452 char *kwnames[] = {
14453 (char *) "self",(char *) "name",(char *) "colour", NULL
14454 };
14455
14456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14458 {
14459 arg2 = wxString_in_helper(obj1);
14460 if (arg2 == NULL) SWIG_fail;
e811c8ce 14461 temp2 = True;
d14a1e28
RD
14462 }
14463 {
14464 arg3 = &temp3;
14465 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14466 }
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14470
14471 wxPyEndAllowThreads(__tstate);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 }
14474 Py_INCREF(Py_None); resultobj = Py_None;
14475 {
14476 if (temp2)
14477 delete arg2;
14478 }
14479 return resultobj;
14480 fail:
14481 {
14482 if (temp2)
14483 delete arg2;
14484 }
14485 return NULL;
14486}
14487
14488
14489static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj;
14491 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14492 wxString *arg2 = 0 ;
14493 int arg3 ;
14494 int arg4 ;
14495 int arg5 ;
e811c8ce 14496 bool temp2 = False ;
d14a1e28
RD
14497 PyObject * obj0 = 0 ;
14498 PyObject * obj1 = 0 ;
14499 char *kwnames[] = {
14500 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14501 };
14502
14503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14505 {
14506 arg2 = wxString_in_helper(obj1);
14507 if (arg2 == NULL) SWIG_fail;
e811c8ce 14508 temp2 = True;
d14a1e28
RD
14509 }
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14513
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 Py_INCREF(Py_None); resultobj = Py_None;
14518 {
14519 if (temp2)
14520 delete arg2;
14521 }
14522 return resultobj;
14523 fail:
14524 {
14525 if (temp2)
14526 delete arg2;
14527 }
14528 return NULL;
14529}
14530
14531
14532static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14533 PyObject *obj;
14534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14535 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14536 Py_INCREF(obj);
14537 return Py_BuildValue((char *)"");
14538}
14539static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj;
14541 wxFontList *arg1 = (wxFontList *) 0 ;
14542 wxFont *arg2 = (wxFont *) 0 ;
14543 PyObject * obj0 = 0 ;
14544 PyObject * obj1 = 0 ;
14545 char *kwnames[] = {
14546 (char *) "self",(char *) "font", NULL
14547 };
14548
14549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14551 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14552 {
14553 PyThreadState* __tstate = wxPyBeginAllowThreads();
14554 (arg1)->AddFont(arg2);
14555
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 Py_INCREF(Py_None); resultobj = Py_None;
14560 return resultobj;
14561 fail:
14562 return NULL;
14563}
14564
14565
14566static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14567 PyObject *resultobj;
14568 wxFontList *arg1 = (wxFontList *) 0 ;
14569 int arg2 ;
14570 int arg3 ;
14571 int arg4 ;
14572 int arg5 ;
e811c8ce 14573 bool arg6 = (bool) False ;
d14a1e28
RD
14574 wxString const &arg7_defvalue = wxPyEmptyString ;
14575 wxString *arg7 = (wxString *) &arg7_defvalue ;
14576 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14577 wxFont *result;
e811c8ce 14578 bool temp7 = False ;
d14a1e28
RD
14579 PyObject * obj0 = 0 ;
14580 PyObject * obj5 = 0 ;
14581 PyObject * obj6 = 0 ;
14582 char *kwnames[] = {
14583 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14584 };
14585
14586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14588 if (obj5) {
14589 arg6 = PyInt_AsLong(obj5) ? true : false;
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 if (obj6) {
14593 {
14594 arg7 = wxString_in_helper(obj6);
14595 if (arg7 == NULL) SWIG_fail;
e811c8ce 14596 temp7 = True;
d14a1e28
RD
14597 }
14598 }
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14602
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14607 {
14608 if (temp7)
14609 delete arg7;
14610 }
14611 return resultobj;
14612 fail:
14613 {
14614 if (temp7)
14615 delete arg7;
14616 }
14617 return NULL;
14618}
14619
14620
14621static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14622 PyObject *resultobj;
14623 wxFontList *arg1 = (wxFontList *) 0 ;
14624 wxFont *arg2 = (wxFont *) 0 ;
14625 PyObject * obj0 = 0 ;
14626 PyObject * obj1 = 0 ;
14627 char *kwnames[] = {
14628 (char *) "self",(char *) "font", NULL
14629 };
14630
14631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14633 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 (arg1)->RemoveFont(arg2);
14637
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 Py_INCREF(Py_None); resultobj = Py_None;
14642 return resultobj;
14643 fail:
14644 return NULL;
14645}
14646
14647
14648static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14649 PyObject *resultobj;
14650 wxFontList *arg1 = (wxFontList *) 0 ;
14651 int result;
14652 PyObject * obj0 = 0 ;
14653 char *kwnames[] = {
14654 (char *) "self", NULL
14655 };
14656
14657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = (int)(arg1)->GetCount();
14662
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 resultobj = PyInt_FromLong((long)result);
14667 return resultobj;
14668 fail:
14669 return NULL;
14670}
14671
14672
14673static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14674 PyObject *obj;
14675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14676 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14677 Py_INCREF(obj);
14678 return Py_BuildValue((char *)"");
14679}
14680static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14681 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14682 return 1;
14683}
14684
14685
14686static PyObject *_wrap_NORMAL_FONT_get() {
14687 PyObject *pyobj;
14688
14689 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14690 return pyobj;
14691}
14692
14693
14694static int _wrap_SMALL_FONT_set(PyObject *_val) {
14695 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14696 return 1;
14697}
14698
14699
14700static PyObject *_wrap_SMALL_FONT_get() {
14701 PyObject *pyobj;
14702
14703 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14704 return pyobj;
14705}
14706
14707
14708static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14709 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14710 return 1;
14711}
14712
14713
14714static PyObject *_wrap_ITALIC_FONT_get() {
14715 PyObject *pyobj;
14716
14717 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14718 return pyobj;
14719}
14720
14721
14722static int _wrap_SWISS_FONT_set(PyObject *_val) {
14723 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14724 return 1;
14725}
14726
14727
14728static PyObject *_wrap_SWISS_FONT_get() {
14729 PyObject *pyobj;
14730
14731 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14732 return pyobj;
14733}
14734
14735
14736static int _wrap_RED_PEN_set(PyObject *_val) {
14737 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14738 return 1;
14739}
14740
14741
14742static PyObject *_wrap_RED_PEN_get() {
14743 PyObject *pyobj;
14744
14745 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14746 return pyobj;
14747}
14748
14749
14750static int _wrap_CYAN_PEN_set(PyObject *_val) {
14751 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14752 return 1;
14753}
14754
14755
14756static PyObject *_wrap_CYAN_PEN_get() {
14757 PyObject *pyobj;
14758
14759 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14760 return pyobj;
14761}
14762
14763
14764static int _wrap_GREEN_PEN_set(PyObject *_val) {
14765 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14766 return 1;
14767}
14768
14769
14770static PyObject *_wrap_GREEN_PEN_get() {
14771 PyObject *pyobj;
14772
14773 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14774 return pyobj;
14775}
14776
14777
14778static int _wrap_BLACK_PEN_set(PyObject *_val) {
14779 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14780 return 1;
14781}
14782
14783
14784static PyObject *_wrap_BLACK_PEN_get() {
14785 PyObject *pyobj;
14786
14787 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14788 return pyobj;
14789}
14790
14791
14792static int _wrap_WHITE_PEN_set(PyObject *_val) {
14793 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14794 return 1;
14795}
14796
14797
14798static PyObject *_wrap_WHITE_PEN_get() {
14799 PyObject *pyobj;
14800
14801 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14802 return pyobj;
14803}
14804
14805
14806static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14807 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14808 return 1;
14809}
14810
14811
14812static PyObject *_wrap_TRANSPARENT_PEN_get() {
14813 PyObject *pyobj;
14814
14815 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14816 return pyobj;
14817}
14818
14819
14820static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14821 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14822 return 1;
14823}
14824
14825
14826static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14827 PyObject *pyobj;
14828
14829 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14830 return pyobj;
14831}
14832
14833
14834static int _wrap_GREY_PEN_set(PyObject *_val) {
14835 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14836 return 1;
14837}
14838
14839
14840static PyObject *_wrap_GREY_PEN_get() {
14841 PyObject *pyobj;
14842
14843 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14844 return pyobj;
14845}
14846
14847
14848static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14849 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14850 return 1;
14851}
14852
14853
14854static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14855 PyObject *pyobj;
14856
14857 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14858 return pyobj;
14859}
14860
14861
14862static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14863 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14864 return 1;
14865}
14866
14867
14868static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14869 PyObject *pyobj;
14870
14871 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14872 return pyobj;
14873}
14874
14875
14876static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14877 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14878 return 1;
14879}
14880
14881
14882static PyObject *_wrap_BLUE_BRUSH_get() {
14883 PyObject *pyobj;
14884
14885 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14886 return pyobj;
14887}
14888
14889
14890static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14891 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14892 return 1;
14893}
14894
14895
14896static PyObject *_wrap_GREEN_BRUSH_get() {
14897 PyObject *pyobj;
14898
14899 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14900 return pyobj;
14901}
14902
14903
14904static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14905 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14906 return 1;
14907}
14908
14909
14910static PyObject *_wrap_WHITE_BRUSH_get() {
14911 PyObject *pyobj;
14912
14913 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14914 return pyobj;
14915}
14916
14917
14918static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14919 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14920 return 1;
14921}
14922
14923
14924static PyObject *_wrap_BLACK_BRUSH_get() {
14925 PyObject *pyobj;
14926
14927 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14928 return pyobj;
14929}
14930
14931
14932static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14933 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14934 return 1;
14935}
14936
14937
14938static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14939 PyObject *pyobj;
14940
14941 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14942 return pyobj;
14943}
14944
14945
14946static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14947 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14948 return 1;
14949}
14950
14951
14952static PyObject *_wrap_CYAN_BRUSH_get() {
14953 PyObject *pyobj;
14954
14955 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14956 return pyobj;
14957}
14958
14959
14960static int _wrap_RED_BRUSH_set(PyObject *_val) {
14961 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
14962 return 1;
14963}
14964
14965
14966static PyObject *_wrap_RED_BRUSH_get() {
14967 PyObject *pyobj;
14968
14969 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
14970 return pyobj;
14971}
14972
14973
14974static int _wrap_GREY_BRUSH_set(PyObject *_val) {
14975 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
14976 return 1;
14977}
14978
14979
14980static PyObject *_wrap_GREY_BRUSH_get() {
14981 PyObject *pyobj;
14982
14983 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14984 return pyobj;
14985}
14986
14987
14988static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
14989 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
14990 return 1;
14991}
14992
14993
14994static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
14995 PyObject *pyobj;
14996
14997 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14998 return pyobj;
14999}
15000
15001
15002static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15003 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15004 return 1;
15005}
15006
15007
15008static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15009 PyObject *pyobj;
15010
15011 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15012 return pyobj;
15013}
15014
15015
15016static int _wrap_BLACK_set(PyObject *_val) {
15017 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15018 return 1;
15019}
15020
15021
15022static PyObject *_wrap_BLACK_get() {
15023 PyObject *pyobj;
15024
15025 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15026 return pyobj;
15027}
15028
15029
15030static int _wrap_WHITE_set(PyObject *_val) {
15031 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15032 return 1;
15033}
15034
15035
15036static PyObject *_wrap_WHITE_get() {
15037 PyObject *pyobj;
15038
15039 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15040 return pyobj;
15041}
15042
15043
15044static int _wrap_RED_set(PyObject *_val) {
15045 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15046 return 1;
15047}
15048
15049
15050static PyObject *_wrap_RED_get() {
15051 PyObject *pyobj;
15052
15053 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15054 return pyobj;
15055}
15056
15057
15058static int _wrap_BLUE_set(PyObject *_val) {
15059 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15060 return 1;
15061}
15062
15063
15064static PyObject *_wrap_BLUE_get() {
15065 PyObject *pyobj;
15066
15067 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15068 return pyobj;
15069}
15070
15071
15072static int _wrap_GREEN_set(PyObject *_val) {
15073 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15074 return 1;
15075}
15076
15077
15078static PyObject *_wrap_GREEN_get() {
15079 PyObject *pyobj;
15080
15081 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15082 return pyobj;
15083}
15084
15085
15086static int _wrap_CYAN_set(PyObject *_val) {
15087 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15088 return 1;
15089}
15090
15091
15092static PyObject *_wrap_CYAN_get() {
15093 PyObject *pyobj;
15094
15095 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15096 return pyobj;
15097}
15098
15099
15100static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15101 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15102 return 1;
15103}
15104
15105
15106static PyObject *_wrap_LIGHT_GREY_get() {
15107 PyObject *pyobj;
15108
15109 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15110 return pyobj;
15111}
15112
15113
15114static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15115 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15116 return 1;
15117}
15118
15119
15120static PyObject *_wrap_STANDARD_CURSOR_get() {
15121 PyObject *pyobj;
15122
15123 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15124 return pyobj;
15125}
15126
15127
15128static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15129 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15130 return 1;
15131}
15132
15133
15134static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15135 PyObject *pyobj;
15136
15137 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15138 return pyobj;
15139}
15140
15141
15142static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15143 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15144 return 1;
15145}
15146
15147
15148static PyObject *_wrap_CROSS_CURSOR_get() {
15149 PyObject *pyobj;
15150
15151 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15152 return pyobj;
15153}
15154
15155
15156static int _wrap_NullBitmap_set(PyObject *_val) {
15157 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15158 return 1;
15159}
15160
15161
15162static PyObject *_wrap_NullBitmap_get() {
15163 PyObject *pyobj;
15164
15165 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15166 return pyobj;
15167}
15168
15169
15170static int _wrap_NullIcon_set(PyObject *_val) {
15171 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15172 return 1;
15173}
15174
15175
15176static PyObject *_wrap_NullIcon_get() {
15177 PyObject *pyobj;
15178
15179 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15180 return pyobj;
15181}
15182
15183
15184static int _wrap_NullCursor_set(PyObject *_val) {
15185 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15186 return 1;
15187}
15188
15189
15190static PyObject *_wrap_NullCursor_get() {
15191 PyObject *pyobj;
15192
15193 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15194 return pyobj;
15195}
15196
15197
15198static int _wrap_NullPen_set(PyObject *_val) {
15199 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15200 return 1;
15201}
15202
15203
15204static PyObject *_wrap_NullPen_get() {
15205 PyObject *pyobj;
15206
15207 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15208 return pyobj;
15209}
15210
15211
15212static int _wrap_NullBrush_set(PyObject *_val) {
15213 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15214 return 1;
15215}
15216
15217
15218static PyObject *_wrap_NullBrush_get() {
15219 PyObject *pyobj;
15220
15221 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15222 return pyobj;
15223}
15224
15225
15226static int _wrap_NullPalette_set(PyObject *_val) {
15227 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15228 return 1;
15229}
15230
15231
15232static PyObject *_wrap_NullPalette_get() {
15233 PyObject *pyobj;
15234
15235 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15236 return pyobj;
15237}
15238
15239
15240static int _wrap_NullFont_set(PyObject *_val) {
15241 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15242 return 1;
15243}
15244
15245
15246static PyObject *_wrap_NullFont_get() {
15247 PyObject *pyobj;
15248
15249 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15250 return pyobj;
15251}
15252
15253
15254static int _wrap_NullColour_set(PyObject *_val) {
15255 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15256 return 1;
15257}
15258
15259
15260static PyObject *_wrap_NullColour_get() {
15261 PyObject *pyobj;
15262
15263 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15264 return pyobj;
15265}
15266
15267
15268static int _wrap_TheFontList_set(PyObject *_val) {
15269 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15270 return 1;
15271}
15272
15273
15274static PyObject *_wrap_TheFontList_get() {
15275 PyObject *pyobj;
15276
15277 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15278 return pyobj;
15279}
15280
15281
15282static int _wrap_ThePenList_set(PyObject *_val) {
15283 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15284 return 1;
15285}
15286
15287
15288static PyObject *_wrap_ThePenList_get() {
15289 PyObject *pyobj;
15290
15291 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15292 return pyobj;
15293}
15294
15295
15296static int _wrap_TheBrushList_set(PyObject *_val) {
15297 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15298 return 1;
15299}
15300
15301
15302static PyObject *_wrap_TheBrushList_get() {
15303 PyObject *pyobj;
15304
15305 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15306 return pyobj;
15307}
15308
15309
15310static int _wrap_TheColourDatabase_set(PyObject *_val) {
15311 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15312 return 1;
15313}
15314
15315
15316static PyObject *_wrap_TheColourDatabase_get() {
15317 PyObject *pyobj;
15318
15319 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15320 return pyobj;
15321}
15322
15323
e811c8ce 15324static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15325 PyObject *resultobj;
e811c8ce 15326 wxEffects *result;
d14a1e28 15327 char *kwnames[] = {
e811c8ce 15328 NULL
d14a1e28
RD
15329 };
15330
e811c8ce 15331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
15332 {
15333 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 15334 result = (wxEffects *)new wxEffects();
d14a1e28
RD
15335
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
e811c8ce 15339 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
15340 return resultobj;
15341 fail:
15342 return NULL;
15343}
15344
15345
e811c8ce 15346static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15347 PyObject *resultobj;
e811c8ce
RD
15348 wxEffects *arg1 = (wxEffects *) 0 ;
15349 wxColour result;
d14a1e28 15350 PyObject * obj0 = 0 ;
d14a1e28 15351 char *kwnames[] = {
e811c8ce 15352 (char *) "self", NULL
d14a1e28
RD
15353 };
15354
e811c8ce
RD
15355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15357 {
15358 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 15359 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
15360
15361 wxPyEndAllowThreads(__tstate);
15362 if (PyErr_Occurred()) SWIG_fail;
15363 }
e811c8ce
RD
15364 {
15365 wxColour * resultptr;
15366 resultptr = new wxColour((wxColour &) result);
15367 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15368 }
d14a1e28
RD
15369 return resultobj;
15370 fail:
15371 return NULL;
15372}
15373
15374
e811c8ce 15375static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15376 PyObject *resultobj;
e811c8ce
RD
15377 wxEffects *arg1 = (wxEffects *) 0 ;
15378 wxColour result;
d14a1e28 15379 PyObject * obj0 = 0 ;
d14a1e28 15380 char *kwnames[] = {
e811c8ce 15381 (char *) "self", NULL
d14a1e28
RD
15382 };
15383
e811c8ce
RD
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15386 {
15387 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 15388 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
15389
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
d14a1e28 15393 {
e811c8ce
RD
15394 wxColour * resultptr;
15395 resultptr = new wxColour((wxColour &) result);
15396 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
15397 }
15398 return resultobj;
15399 fail:
d14a1e28
RD
15400 return NULL;
15401}
15402
15403
e811c8ce 15404static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15405 PyObject *resultobj;
e811c8ce
RD
15406 wxEffects *arg1 = (wxEffects *) 0 ;
15407 wxColour result;
d14a1e28 15408 PyObject * obj0 = 0 ;
d14a1e28 15409 char *kwnames[] = {
e811c8ce 15410 (char *) "self", NULL
d14a1e28
RD
15411 };
15412
e811c8ce
RD
15413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
e811c8ce 15417 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
15418
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
e811c8ce
RD
15422 {
15423 wxColour * resultptr;
15424 resultptr = new wxColour((wxColour &) result);
15425 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15426 }
d14a1e28
RD
15427 return resultobj;
15428 fail:
15429 return NULL;
15430}
15431
15432
e811c8ce 15433static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15434 PyObject *resultobj;
e811c8ce
RD
15435 wxEffects *arg1 = (wxEffects *) 0 ;
15436 wxColour result;
d14a1e28
RD
15437 PyObject * obj0 = 0 ;
15438 char *kwnames[] = {
e811c8ce 15439 (char *) "self", NULL
d14a1e28
RD
15440 };
15441
15442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 result = ((wxEffects const *)arg1)->GetMediumShadow();
15447
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 {
15452 wxColour * resultptr;
15453 resultptr = new wxColour((wxColour &) result);
15454 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15455 }
15456 return resultobj;
15457 fail:
15458 return NULL;
15459}
15460
15461
15462static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj;
15464 wxEffects *arg1 = (wxEffects *) 0 ;
15465 wxColour result;
15466 PyObject * obj0 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "self", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = ((wxEffects const *)arg1)->GetDarkShadow();
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 {
15481 wxColour * resultptr;
15482 resultptr = new wxColour((wxColour &) result);
15483 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15484 }
15485 return resultobj;
15486 fail:
15487 return NULL;
15488}
15489
15490
15491static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxEffects *arg1 = (wxEffects *) 0 ;
15494 wxColour *arg2 = 0 ;
15495 wxColour temp2 ;
15496 PyObject * obj0 = 0 ;
15497 PyObject * obj1 = 0 ;
15498 char *kwnames[] = {
15499 (char *) "self",(char *) "c", NULL
15500 };
15501
15502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15504 {
15505 arg2 = &temp2;
15506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15507 }
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15511
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 Py_INCREF(Py_None); resultobj = Py_None;
15516 return resultobj;
15517 fail:
15518 return NULL;
15519}
15520
15521
15522static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxEffects *arg1 = (wxEffects *) 0 ;
15525 wxColour *arg2 = 0 ;
15526 wxColour temp2 ;
15527 PyObject * obj0 = 0 ;
15528 PyObject * obj1 = 0 ;
15529 char *kwnames[] = {
15530 (char *) "self",(char *) "c", NULL
15531 };
15532
15533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15535 {
15536 arg2 = &temp2;
15537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 (arg1)->SetLightShadow((wxColour const &)*arg2);
15542
15543 wxPyEndAllowThreads(__tstate);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 Py_INCREF(Py_None); resultobj = Py_None;
15547 return resultobj;
15548 fail:
15549 return NULL;
15550}
15551
15552
15553static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15554 PyObject *resultobj;
15555 wxEffects *arg1 = (wxEffects *) 0 ;
15556 wxColour *arg2 = 0 ;
15557 wxColour temp2 ;
15558 PyObject * obj0 = 0 ;
15559 PyObject * obj1 = 0 ;
15560 char *kwnames[] = {
15561 (char *) "self",(char *) "c", NULL
15562 };
15563
15564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15566 {
15567 arg2 = &temp2;
15568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15569 }
15570 {
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
15572 (arg1)->SetFaceColour((wxColour const &)*arg2);
15573
15574 wxPyEndAllowThreads(__tstate);
15575 if (PyErr_Occurred()) SWIG_fail;
15576 }
15577 Py_INCREF(Py_None); resultobj = Py_None;
15578 return resultobj;
15579 fail:
15580 return NULL;
15581}
15582
15583
15584static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15585 PyObject *resultobj;
15586 wxEffects *arg1 = (wxEffects *) 0 ;
15587 wxColour *arg2 = 0 ;
15588 wxColour temp2 ;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 char *kwnames[] = {
15592 (char *) "self",(char *) "c", NULL
15593 };
15594
15595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15597 {
15598 arg2 = &temp2;
15599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15600 }
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 Py_INCREF(Py_None); resultobj = Py_None;
15609 return resultobj;
15610 fail:
15611 return NULL;
15612}
15613
15614
15615static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj;
15617 wxEffects *arg1 = (wxEffects *) 0 ;
15618 wxColour *arg2 = 0 ;
15619 wxColour temp2 ;
15620 PyObject * obj0 = 0 ;
15621 PyObject * obj1 = 0 ;
15622 char *kwnames[] = {
15623 (char *) "self",(char *) "c", NULL
15624 };
15625
15626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15628 {
15629 arg2 = &temp2;
15630 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15631 }
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 Py_INCREF(Py_None); resultobj = Py_None;
15640 return resultobj;
15641 fail:
15642 return NULL;
15643}
15644
15645
15646static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxEffects *arg1 = (wxEffects *) 0 ;
15649 wxColour *arg2 = 0 ;
15650 wxColour *arg3 = 0 ;
15651 wxColour *arg4 = 0 ;
15652 wxColour *arg5 = 0 ;
15653 wxColour *arg6 = 0 ;
15654 wxColour temp2 ;
15655 wxColour temp3 ;
15656 wxColour temp4 ;
15657 wxColour temp5 ;
15658 wxColour temp6 ;
15659 PyObject * obj0 = 0 ;
15660 PyObject * obj1 = 0 ;
15661 PyObject * obj2 = 0 ;
15662 PyObject * obj3 = 0 ;
15663 PyObject * obj4 = 0 ;
15664 PyObject * obj5 = 0 ;
15665 char *kwnames[] = {
15666 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15667 };
15668
15669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15671 {
15672 arg2 = &temp2;
15673 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15674 }
15675 {
15676 arg3 = &temp3;
15677 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15678 }
15679 {
15680 arg4 = &temp4;
15681 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15682 }
15683 {
15684 arg5 = &temp5;
15685 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15686 }
15687 {
15688 arg6 = &temp6;
15689 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15690 }
15691 {
15692 PyThreadState* __tstate = wxPyBeginAllowThreads();
15693 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15694
15695 wxPyEndAllowThreads(__tstate);
15696 if (PyErr_Occurred()) SWIG_fail;
15697 }
15698 Py_INCREF(Py_None); resultobj = Py_None;
15699 return resultobj;
15700 fail:
15701 return NULL;
15702}
15703
15704
15705static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj;
15707 wxEffects *arg1 = (wxEffects *) 0 ;
15708 wxDC *arg2 = 0 ;
15709 wxRect *arg3 = 0 ;
15710 int arg4 = (int) 1 ;
15711 wxRect temp3 ;
15712 PyObject * obj0 = 0 ;
15713 PyObject * obj1 = 0 ;
15714 PyObject * obj2 = 0 ;
15715 char *kwnames[] = {
15716 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15717 };
15718
15719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15721 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15722 if (arg2 == NULL) {
15723 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15724 }
15725 {
15726 arg3 = &temp3;
15727 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15732
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 Py_INCREF(Py_None); resultobj = Py_None;
15737 return resultobj;
15738 fail:
15739 return NULL;
15740}
15741
15742
15743static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj;
15745 wxEffects *arg1 = (wxEffects *) 0 ;
15746 wxRect *arg2 = 0 ;
15747 wxDC *arg3 = 0 ;
15748 wxBitmap *arg4 = 0 ;
15749 bool result;
15750 wxRect temp2 ;
15751 PyObject * obj0 = 0 ;
15752 PyObject * obj1 = 0 ;
15753 PyObject * obj2 = 0 ;
15754 PyObject * obj3 = 0 ;
15755 char *kwnames[] = {
15756 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15757 };
15758
15759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15761 {
15762 arg2 = &temp2;
15763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15764 }
15765 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15766 if (arg3 == NULL) {
15767 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15768 }
15769 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15770 if (arg4 == NULL) {
15771 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15772 }
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 resultobj = PyInt_FromLong((long)result);
15781 return resultobj;
15782 fail:
15783 return NULL;
15784}
15785
15786
15787static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15788 PyObject *obj;
15789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15790 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15791 Py_INCREF(obj);
15792 return Py_BuildValue((char *)"");
15793}
15794static PyMethodDef SwigMethods[] = {
15795 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15796 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15797 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15798 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15799 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15800 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15801 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15802 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15803 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15804 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15805 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15806 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15807 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15808 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15809 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15810 { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS },
15811 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15814 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15815 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15816 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15817 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15821 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15822 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15823 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15824 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15825 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15826 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15827 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15828 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15829 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15830 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15831 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15832 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15833 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15834 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15835 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15836 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15837 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15838 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15839 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15840 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15841 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15842 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15843 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15844 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15845 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15846 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15851 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15852 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15854 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15855 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15858 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15867 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15874 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15877 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15888 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15893 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15896 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15901 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15904 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15909 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15911 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15916 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
15943 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
15946 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
15957 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
15969 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
15981 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
15990 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16009 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16010 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16046 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16048 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16054 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16056 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16061 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16078 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16083 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16085 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16093 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16099 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
242b7b46 16149 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16150 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16161 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 16162 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16163 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
322913ce 16164 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16165 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16193 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 16194 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16195 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16196 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
322913ce 16197 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16198 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16218 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16222 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16226 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16228 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16230 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16233 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16235 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16237 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16239 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16241 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16247 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16249 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16251 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16253 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16265 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16270 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16275 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16282 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
16287 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16300 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16302 { NULL, NULL }
16303};
16304
16305
16306/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16307
e811c8ce
RD
16308static void *_p_wxControlTo_p_wxWindow(void *x) {
16309 return (void *)((wxWindow *) ((wxControl *) x));
16310}
16311static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16312 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16313}
16314static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16315 return (void *)((wxWindow *) ((wxMenuBar *) x));
16316}
d14a1e28
RD
16317static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16318 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16319}
16320static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16321 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16322}
d14a1e28
RD
16323static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16324 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16325}
16326static void *_p_wxPenTo_p_wxObject(void *x) {
16327 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16328}
16329static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16330 return (void *)((wxObject *) ((wxRegionIterator *) x));
16331}
16332static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16333 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16334}
16335static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16336 return (void *)((wxObject *) ((wxSizerItem *) x));
16337}
16338static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16339 return (void *)((wxObject *) ((wxColourDatabase *) x));
16340}
16341static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16342 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16343}
16344static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16345 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16346}
16347static void *_p_wxIconTo_p_wxObject(void *x) {
16348 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16349}
16350static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16351 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16352}
16353static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16354 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16355}
16356static void *_p_wxSizerTo_p_wxObject(void *x) {
16357 return (void *)((wxObject *) ((wxSizer *) x));
16358}
16359static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16360 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16361}
16362static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16364}
16365static void *_p_wxPenListTo_p_wxObject(void *x) {
16366 return (void *)((wxObject *) ((wxPenList *) x));
16367}
16368static void *_p_wxEventTo_p_wxObject(void *x) {
16369 return (void *)((wxObject *) ((wxEvent *) x));
16370}
16371static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16372 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16373}
16374static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16375 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16376}
16377static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16378 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16379}
16380static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16381 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16382}
16383static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16384 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16385}
16386static void *_p_wxDCTo_p_wxObject(void *x) {
16387 return (void *)((wxObject *) ((wxDC *) x));
16388}
16389static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16390 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16391}
16392static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16393 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16394}
16395static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16396 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16397}
16398static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16399 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16400}
16401static void *_p_wxControlTo_p_wxObject(void *x) {
16402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16403}
16404static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16405 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16406}
16407static void *_p_wxClientDCTo_p_wxObject(void *x) {
16408 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16409}
16410static void *_p_wxFSFileTo_p_wxObject(void *x) {
16411 return (void *)((wxObject *) ((wxFSFile *) x));
16412}
16413static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16414 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16415}
16416static void *_p_wxRegionTo_p_wxObject(void *x) {
16417 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16418}
16419static void *_p_wxPySizerTo_p_wxObject(void *x) {
16420 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16421}
16422static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16423 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16424}
16425static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16426 return (void *)((wxObject *) ((wxGDIObject *) x));
16427}
16428static void *_p_wxEffectsTo_p_wxObject(void *x) {
16429 return (void *)((wxObject *) ((wxEffects *) x));
16430}
16431static void *_p_wxPyEventTo_p_wxObject(void *x) {
16432 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16433}
16434static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16435 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16436}
16437static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16438 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16439}
16440static void *_p_wxShowEventTo_p_wxObject(void *x) {
16441 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16442}
16443static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16444 return (void *)((wxObject *) ((wxMenuItem *) x));
16445}
16446static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16447 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16448}
16449static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16450 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16451}
16452static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16453 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16454}
16455static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16456 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16457}
16458static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16459 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16460}
16461static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16462 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16463}
16464static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16465 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16466}
16467static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16468 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16469}
16470static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16471 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16472}
16473static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16474 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16475}
16476static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16477 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16478}
16479static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16480 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16481}
16482static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16483 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16484}
16485static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16486 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16487}
16488static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16489 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16490}
16491static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16492 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16493}
16494static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16495 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16496}
16497static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16498 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16499}
16500static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16501 return (void *)((wxObject *) ((wxImageHandler *) x));
16502}
16503static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16504 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16505}
16506static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16507 return (void *)((wxObject *) ((wxEvtHandler *) x));
16508}
16509static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16510 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16511}
16512static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16513 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16514}
16515static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16516 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16517}
16518static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16519 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16520}
1e0c8722
RD
16521static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16522 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16523}
d14a1e28
RD
16524static void *_p_wxImageTo_p_wxObject(void *x) {
16525 return (void *)((wxObject *) ((wxImage *) x));
16526}
16527static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16528 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16529}
d14a1e28
RD
16530static void *_p_wxPaletteTo_p_wxObject(void *x) {
16531 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16532}
16533static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16534 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16535}
16536static void *_p_wxImageListTo_p_wxObject(void *x) {
16537 return (void *)((wxObject *) ((wxImageList *) x));
16538}
16539static void *_p_wxCursorTo_p_wxObject(void *x) {
16540 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16541}
16542static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16543 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16544}
16545static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16546 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16547}
16548static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16549 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16550}
16551static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16552 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16553}
16554static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16555 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16556}
16557static void *_p_wxWindowTo_p_wxObject(void *x) {
16558 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16559}
16560static void *_p_wxMenuTo_p_wxObject(void *x) {
16561 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16562}
16563static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16564 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16565}
16566static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16567 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16568}
16569static void *_p_wxBrushListTo_p_wxObject(void *x) {
16570 return (void *)((wxObject *) ((wxBrushList *) x));
16571}
16572static void *_p_wxPyPenTo_p_wxObject(void *x) {
16573 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16574}
16575static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16576 return (void *)((wxObject *) ((wxFileSystem *) x));
16577}
16578static void *_p_wxBitmapTo_p_wxObject(void *x) {
16579 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16580}
16581static void *_p_wxMaskTo_p_wxObject(void *x) {
16582 return (void *)((wxObject *) ((wxMask *) x));
16583}
16584static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16585 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16586}
16587static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16588 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16589}
16590static void *_p_wxPyAppTo_p_wxObject(void *x) {
16591 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16592}
16593static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16594 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16595}
16596static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16597 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16598}
16599static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16600 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16601}
16602static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16603 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16604}
16605static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16606 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16607}
16608static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16609 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16610}
16611static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16612 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16613}
16614static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16615 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16616}
16617static void *_p_wxFontTo_p_wxObject(void *x) {
16618 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16619}
16620static void *_p_wxBrushTo_p_wxObject(void *x) {
16621 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16622}
16623static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16624 return (void *)((wxObject *) ((wxMetaFile *) x));
16625}
16626static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16627 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16628}
16629static void *_p_wxColourTo_p_wxObject(void *x) {
16630 return (void *)((wxObject *) ((wxColour *) x));
16631}
16632static void *_p_wxFontListTo_p_wxObject(void *x) {
16633 return (void *)((wxObject *) ((wxFontList *) x));
16634}
16635static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16636 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16637}
16638static void *_p_wxValidatorTo_p_wxObject(void *x) {
16639 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16640}
e811c8ce
RD
16641static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16642 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 16643}
e811c8ce
RD
16644static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16645 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 16646}
e811c8ce
RD
16647static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16648 return (void *)((wxDC *) ((wxScreenDC *) x));
16649}
16650static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16651 return (void *)((wxDC *) ((wxMirrorDC *) x));
16652}
16653static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16654 return (void *)((wxDC *) ((wxMemoryDC *) x));
16655}
16656static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16657 return (void *)((wxDC *) ((wxWindowDC *) x));
16658}
16659static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16660 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16661}
16662static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16663 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16664}
16665static void *_p_wxClientDCTo_p_wxDC(void *x) {
16666 return (void *)((wxDC *) ((wxClientDC *) x));
16667}
16668static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16669 return (void *)((wxDC *) ((wxPaintDC *) x));
16670}
16671static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16672 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16673}
16674static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16675 return (void *)((wxDC *) ((wxPrinterDC *) x));
16676}
16677static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16678 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16679}
16680static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16681 return (void *)((wxGDIObject *) ((wxIcon *) x));
16682}
16683static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16684 return (void *)((wxGDIObject *) ((wxPalette *) x));
16685}
16686static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16687 return (void *)((wxGDIObject *) ((wxPen *) x));
16688}
16689static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16690 return (void *)((wxGDIObject *) ((wxFont *) x));
16691}
16692static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16693 return (void *)((wxGDIObject *) ((wxCursor *) x));
16694}
16695static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16696 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16697}
16698static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16699 return (void *)((wxGDIObject *) ((wxRegion *) x));
16700}
16701static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16702 return (void *)((wxGDIObject *) ((wxBrush *) x));
16703}
16704static void *_p_wxPyPenTo_p_wxPen(void *x) {
16705 return (void *)((wxPen *) ((wxPyPen *) x));
d14a1e28
RD
16706}
16707static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
d14a1e28
RD
16708static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16709static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
d14a1e28
RD
16710static 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}};
16711static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16712static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16713static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16714static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16715static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16716static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16717static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16718static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16719static 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}};
16720static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16721static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16722static 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}};
16723static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
d14a1e28
RD
16724static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16725static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16726static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16727static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
1e0c8722 16728static 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}};
d14a1e28
RD
16729static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16730static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16731static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16732static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16733static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16734static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16735static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16736static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16737static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16738static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
d14a1e28
RD
16739static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16740static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16741static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16742static 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}};
16743static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16744static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16745static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16746static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16747static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16748static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16749static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16750static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16751static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16752static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16753static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16754static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16755static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
d14a1e28 16756static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
e811c8ce 16757static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
d14a1e28
RD
16758static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16759static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16760static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16761static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16762
16763static swig_type_info *swig_types_initial[] = {
16764_swigt__p_wxPostScriptDC,
d14a1e28
RD
16765_swigt__p_wxBrush,
16766_swigt__p_wxColour,
d14a1e28
RD
16767_swigt__p_wxDC,
16768_swigt__p_wxMirrorDC,
16769_swigt__p_byte,
16770_swigt__p_wxPyFontEnumerator,
16771_swigt__p_wxIconLocation,
16772_swigt__p_wxImage,
16773_swigt__p_wxMetaFileDC,
16774_swigt__p_wxMask,
16775_swigt__p_wxFont,
16776_swigt__p_wxWindow,
16777_swigt__p_wxSize,
16778_swigt__p_double,
16779_swigt__p_wxMemoryDC,
16780_swigt__p_wxFontMapper,
d14a1e28
RD
16781_swigt__p_wxEffects,
16782_swigt__p_wxNativeEncodingInfo,
16783_swigt__p_wxPalette,
16784_swigt__p_wxBitmap,
16785_swigt__p_wxObject,
16786_swigt__p_wxRegionIterator,
16787_swigt__p_wxRect,
16788_swigt__p_wxString,
16789_swigt__p_wxPrinterDC,
16790_swigt__p_wxIconBundle,
16791_swigt__p_wxPoint,
16792_swigt__p_wxDash,
16793_swigt__p_wxScreenDC,
16794_swigt__p_wxCursor,
16795_swigt__p_wxClientDC,
d14a1e28
RD
16796_swigt__p_wxBufferedDC,
16797_swigt__p_wxImageList,
16798_swigt__p_unsigned_char,
16799_swigt__p_wxGDIObject,
16800_swigt__p_wxLocale,
16801_swigt__p_wxIcon,
16802_swigt__p_wxRegion,
16803_swigt__p_wxLanguageInfo,
16804_swigt__p_wxConfigBase,
16805_swigt__p_wxWindowDC,
16806_swigt__p_wxPrintData,
16807_swigt__p_wxBrushList,
16808_swigt__p_wxFontList,
16809_swigt__p_wxPen,
16810_swigt__p_wxBufferedPaintDC,
16811_swigt__p_wxPaintDC,
16812_swigt__p_wxPenList,
d14a1e28
RD
16813_swigt__p_wxPyPen,
16814_swigt__p_int,
16815_swigt__p_wxMetaFile,
16816_swigt__p_wxNativeFontInfo,
16817_swigt__p_wxEncodingConverter,
16818_swigt__p_wxColourDatabase,
168190
16820};
16821
16822
16823/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16824
16825static swig_const_info swig_const_table[] = {
16826{ SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16827{ SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16828{ SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16829{ SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16830{ SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16831{ SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16832{ SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16833{ SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16834{ SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16835{ SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16836{ SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16837{ SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16838{ SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16839{ SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16840{ SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16841{ SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16842{ SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16843{ SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16844{ SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16845{ SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16846{ SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16847{ SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16848{ SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16849{ SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16850{ SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16851{ SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16852{ SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16853{ SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16854{ SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16855{ SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16856{ SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16857{ SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16858{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16859{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16860{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16861{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16862{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16863{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16864{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16865{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16866{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16867{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16868{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16869{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16870{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16871{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16872{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16873{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16874{ SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16875{ SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16876{ SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16877{ SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16878{ SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16879{ SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16880{ SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16881{ SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16882{ SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16883{ SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16884{ SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16885{ SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16886{ SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16887{ SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16888{ SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16889{ SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16890{ SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16891{ SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16892{ SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16893{ SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16894{ SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16895{ SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16896{ SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16897{ SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16898{ SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16899{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16900{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16901{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16902{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16903{ SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16904{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16905{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16906{ SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16907{ SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16908{ SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16909{ SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16910{ SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16911{ SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16912{ SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16913{ SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16914{ SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16915{ SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16916{ SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16917{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16918{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16919{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16920{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16921{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16922{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16923{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16924{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16925{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16926{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16927{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16928{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16929{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16930{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16931{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16932{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
16933{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
16934{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
16935{ SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
16936{ SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
16937{ SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
16938{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
16939{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
16940{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
16941{ SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
16942{ SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
16943{ SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
16944{ SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
16945{ SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
16946{ SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
16947{ SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
16948{ SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
16949{ SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
16950{ SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
16951{ SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
16952{ SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
16953{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
16954{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
16955{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
16956{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
16957{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
16958{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
16959{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
16960{ SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
16961{ SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
16962{ SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
16963{ SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
16964{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
16965{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
16966{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
16967{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
16968{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
16969{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
16970{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
16971{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
16972{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
16973{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
16974{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
16975{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
16976{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
16977{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
16978{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
16979{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
16980{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
16981{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
16982{ SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
16983{ SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
16984{ SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
16985{ SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
16986{ SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
16987{ SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
16988{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
16989{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
16990{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
16991{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
16992{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
16993{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
16994{ SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
16995{ SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
16996{ SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
16997{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
16998{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
16999{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17000{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17001{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17002{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17003{ SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17004{ SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17005{ SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17006{ SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17007{ SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17008{ SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17009{ SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17010{ SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17011{ SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17012{ SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17013{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17014{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17015{ SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17016{ SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17017{ SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17018{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17019{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17020{ SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17021{ SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17022{ SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17023{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17024{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17025{ SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17026{ SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17027{ SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17028{ SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17029{ SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17030{ SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17031{ SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17032{ SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17033{ SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17034{ SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17035{ SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17036{ SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17037{ SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17038{ SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17039{ SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17040{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17041{ SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17042{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17043{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17044{ SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17045{ SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17046{ SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17047{ SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17048{ SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17049{ SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17050{ SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17051{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17052{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17053{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17054{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17055{ SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17056{ SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17057{ SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17058{ SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17059{ SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17060{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17061{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17062{ SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17063{ SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17064{ SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17065{ SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17066{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17067{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17068{ SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17069{ SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17070{ SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17071{ SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17072{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17073{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17074{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17075{ SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17076{ SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17077{ SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17078{ SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17079{ SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17080{ SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17081{ SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17082{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17083{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17084{ SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17085{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17086{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17087{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17088{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17089{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17090{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17091{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17092{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17093{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17094{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17095{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17096{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17097{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17098{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17099{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17100{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17101{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17102{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17103{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17104{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17105{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17106{ SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17107{ SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17108{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17109{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17110{ SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17111{ SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17112{ SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17113{ SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17114{ SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17115{ SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17116{ SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17117{ SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17118{ SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17119{ SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17120{ SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17121{ SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17122{ SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17123{ SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17124{ SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17125{ SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17126{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17127{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17128{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17129{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17130{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17131{ SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17132{ SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17133{ SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17134{ SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17135{ SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17136{ SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17137{ SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17138{ SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17139{ SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17140{ SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17141{ SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17142{ SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17143{ SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17144{ SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17145{ SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17146{ SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17147{ SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17148{ SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17149{ SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17150{ SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17151{ SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17152{ SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17153{ SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17154{ SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17155{ SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17156{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17157{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17158{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17159{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17160{ SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17161{ SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17162{ SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17163{0}};
17164
17165#ifdef __cplusplus
17166}
17167#endif
17168
17169#ifdef __cplusplus
17170extern "C"
17171#endif
17172SWIGEXPORT(void) SWIG_init(void) {
17173 static PyObject *SWIG_globals = 0;
17174 static int typeinit = 0;
17175 PyObject *m, *d;
17176 int i;
17177 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17178 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17179 d = PyModule_GetDict(m);
17180
17181 if (!typeinit) {
17182 for (i = 0; swig_types_initial[i]; i++) {
17183 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17184 }
17185 typeinit = 1;
17186 }
17187 SWIG_InstallConstants(d,swig_const_table);
17188
17189
17190 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17191
17192 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17193 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17194 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17195 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17196 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17197 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17198 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17199 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17200 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17201 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17202 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17203 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17204 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17205 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17206 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17207 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17208 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17209 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17210 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17211 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17212 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17213 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17214 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17215 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17216 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17217 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17218 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17219 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17220 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17221 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17222 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17223 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17224 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17225 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17226 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17227 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17228 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17229 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17230 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17231 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17232 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17233 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17234 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17235 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17236 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17237 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17238 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
7722248d
RD
17239
17240 // Work around a chicken/egg problem in drawlist.cpp
17241 wxPyDrawList_SetAPIPtr();
17242
d14a1e28
RD
17243}
17244