]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/gdi_wrap.cpp
Merged the wxPy_newswig branch into the HEAD branch (main trunk)
[wxWidgets.git] / wxPython / src / mac / 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
48
49
50/***********************************************************************
51 * common.swg for wxPython
52 *
53 * Include only the function prototypes and such from SWIG's common.swg,
54 * but not the runtime functions themselves. This helps keep the
55 * wrapper files clean of unnecessary stuff that is in the libpy.c file
56 * anyway.
57 *
58 ************************************************************************/
59
60#include <string.h>
61
62#if defined(_WIN32) || defined(__WIN32__)
63# if defined(_MSC_VER)
64# if defined(STATIC_LINKED)
65# define SWIGEXPORT(a) a
66# define SWIGIMPORT(a) extern a
67# else
68# define SWIGEXPORT(a) __declspec(dllexport) a
69# define SWIGIMPORT(a) extern a
70# endif
71# else
72# if defined(__BORLANDC__)
73# define SWIGEXPORT(a) a _export
74# define SWIGIMPORT(a) a _export
75# else
76# define SWIGEXPORT(a) a
77# define SWIGIMPORT(a) a
78# endif
79# endif
80#else
81# define SWIGEXPORT(a) a
82# define SWIGIMPORT(a) a
83#endif
84
85#ifdef SWIG_GLOBAL
86#define SWIGRUNTIME(a) SWIGEXPORT(a)
87#else
88#define SWIGRUNTIME(a) static a
89#endif
90
91
92#ifdef __cplusplus
93extern "C" {
94#endif
95
96typedef void *(*swig_converter_func)(void *);
97typedef struct swig_type_info *(*swig_dycast_func)(void **);
98
99typedef struct swig_type_info {
100 const char *name;
101 swig_converter_func converter;
102 const char *str;
103 void *clientdata;
104 swig_dycast_func dcast;
105 struct swig_type_info *next;
106 struct swig_type_info *prev;
107} swig_type_info;
108
109
110SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
111SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
112SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
114SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
116SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
117
118
119#ifdef __cplusplus
120}
121#endif
122
123/***********************************************************************
124 * pyrun.swg for wxPython
125 *
126 * Include only the function prototypes and such from SWIG's pyrun.swg,
127 * but not the runtime functions themselves. This helps keep the
128 * wrapper files clean of unnecessary stuff that is in the libpy.c file
129 * anyway.
130 *
131 ************************************************************************/
132
133
134#include "Python.h"
135
136#ifdef __cplusplus
137extern "C" {
138#endif
139
140#define SWIG_PY_INT 1
141#define SWIG_PY_FLOAT 2
142#define SWIG_PY_STRING 3
143#define SWIG_PY_POINTER 4
144#define SWIG_PY_BINARY 5
145
146/* Flags for pointer conversion */
147
148#define SWIG_POINTER_EXCEPTION 0x1
149#define SWIG_POINTER_DISOWN 0x2
150
151/* Exception handling in wrappers */
152#define SWIG_fail goto fail
153
154/* Constant information structure */
155typedef struct swig_const_info {
156 int type;
157 char *name;
158 long lvalue;
159 double dvalue;
160 void *pvalue;
161 swig_type_info **ptype;
162} swig_const_info;
163
164
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_PackData(c, ptr, sz) \
182 SWIG_Python_PackData(c, ptr, sz)
183#define SWIG_UnpackData(c, ptr, sz) \
184 SWIG_Python_UnpackData(c, ptr, sz)
185#define SWIG_NewPackedObj(ptr, sz, type) \
186 SWIG_Python_NewPackedObj(ptr, sz, type)
187#define SWIG_InstallConstants(d, constants) \
188 SWIG_Python_InstallConstants(d, constants)
189
190
191SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
192SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
193SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
194
195SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
196SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
197SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
198SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
199SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
200SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
201SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
202
203
204/* Contract support */
205
206#define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
207#define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
208
209#define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
210#define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
211
212#define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
213#define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
214#define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
215
216#ifdef __cplusplus
217}
218#endif
219
220
221
222/* -------- TYPES TABLE (BEGIN) -------- */
223
224#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
225#define SWIGTYPE_p_wxGenericDragImage swig_types[1]
226#define SWIGTYPE_p_wxBrush swig_types[2]
227#define SWIGTYPE_p_wxColour swig_types[3]
228#define SWIGTYPE_p_wxCoord swig_types[4]
229#define SWIGTYPE_p_wxDC swig_types[5]
230#define SWIGTYPE_p_wxMirrorDC swig_types[6]
231#define SWIGTYPE_p_byte swig_types[7]
232#define SWIGTYPE_p_wxPyFontEnumerator swig_types[8]
233#define SWIGTYPE_p_wxIconLocation swig_types[9]
234#define SWIGTYPE_p_wxImage swig_types[10]
235#define SWIGTYPE_p_wxMetaFileDC swig_types[11]
236#define SWIGTYPE_p_wxMask swig_types[12]
237#define SWIGTYPE_p_wxFont swig_types[13]
238#define SWIGTYPE_p_wxWindow swig_types[14]
239#define SWIGTYPE_p_wxSize swig_types[15]
240#define SWIGTYPE_p_double swig_types[16]
241#define SWIGTYPE_p_wxMemoryDC swig_types[17]
242#define SWIGTYPE_p_wxFontMapper swig_types[18]
243#define SWIGTYPE_p_wxListCtrl swig_types[19]
244#define SWIGTYPE_p_wxEffects swig_types[20]
245#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[21]
246#define SWIGTYPE_p_wxPalette swig_types[22]
247#define SWIGTYPE_p_wxBitmap swig_types[23]
248#define SWIGTYPE_p_wxObject swig_types[24]
249#define SWIGTYPE_p_wxRegionIterator swig_types[25]
250#define SWIGTYPE_p_wxRect swig_types[26]
251#define SWIGTYPE_p_wxString swig_types[27]
252#define SWIGTYPE_p_wxPrinterDC swig_types[28]
253#define SWIGTYPE_p_wxIconBundle swig_types[29]
254#define SWIGTYPE_p_wxPoint swig_types[30]
255#define SWIGTYPE_p_wxDash swig_types[31]
256#define SWIGTYPE_p_wxScreenDC swig_types[32]
257#define SWIGTYPE_p_wxCursor swig_types[33]
258#define SWIGTYPE_p_wxClientDC swig_types[34]
259#define SWIGTYPE_p_wxTreeCtrl swig_types[35]
260#define SWIGTYPE_p_wxBufferedDC swig_types[36]
261#define SWIGTYPE_p_wxImageList swig_types[37]
262#define SWIGTYPE_p_unsigned_char swig_types[38]
263#define SWIGTYPE_p_wxGDIObject swig_types[39]
264#define SWIGTYPE_p_wxLocale swig_types[40]
265#define SWIGTYPE_p_wxIcon swig_types[41]
266#define SWIGTYPE_p_wxRegion swig_types[42]
267#define SWIGTYPE_p_wxLanguageInfo swig_types[43]
268#define SWIGTYPE_p_wxConfigBase swig_types[44]
269#define SWIGTYPE_p_wxWindowDC swig_types[45]
270#define SWIGTYPE_p_wxPrintData swig_types[46]
271#define SWIGTYPE_p_wxBrushList swig_types[47]
272#define SWIGTYPE_p_wxFontList swig_types[48]
273#define SWIGTYPE_p_wxPen swig_types[49]
274#define SWIGTYPE_p_wxBufferedPaintDC swig_types[50]
275#define SWIGTYPE_p_wxPaintDC swig_types[51]
276#define SWIGTYPE_p_wxPenList swig_types[52]
277#define SWIGTYPE_p_wxTreeItemId swig_types[53]
278#define SWIGTYPE_p_wxPyPen swig_types[54]
279#define SWIGTYPE_p_int swig_types[55]
280#define SWIGTYPE_p_wxMetaFile swig_types[56]
281#define SWIGTYPE_p_wxNativeFontInfo swig_types[57]
282#define SWIGTYPE_p_wxEncodingConverter swig_types[58]
283#define SWIGTYPE_p_wxColourDatabase swig_types[59]
284static swig_type_info *swig_types[61];
285
286/* -------- TYPES TABLE (END) -------- */
287
288
289/*-----------------------------------------------
290 @(target):= _gdi.so
291 ------------------------------------------------*/
292#define SWIG_init init_gdi
293
294#define SWIG_name "_gdi"
295
296#include "wx/wxPython/wxPython.h"
297#include "wx/wxPython/pyclasses.h"
298
299 DECLARE_DEF_STRING(EmptyString);
300
301PyObject *wxColour_Get(wxColour *self){
302 PyObject* rv = PyTuple_New(3);
303 int red = -1;
304 int green = -1;
305 int blue = -1;
306 if (self->Ok()) {
307 red = self->Red();
308 green = self->Green();
309 blue = self->Blue();
310 }
311 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
312 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
313 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
314 return rv;
315 }
316
317static PyObject* t_output_helper(PyObject* target, PyObject* o) {
318 PyObject* o2;
319 PyObject* o3;
320
321 if (!target) {
322 target = o;
323 } else if (target == Py_None) {
324 Py_DECREF(Py_None);
325 target = o;
326 } else {
327 if (!PyTuple_Check(target)) {
328 o2 = target;
329 target = PyTuple_New(1);
330 PyTuple_SetItem(target, 0, o2);
331 }
332 o3 = PyTuple_New(1);
333 PyTuple_SetItem(o3, 0, o);
334
335 o2 = target;
336 target = PySequence_Concat(o2, o3);
337 Py_DECREF(o2);
338 Py_DECREF(o3);
339 }
340 return target;
341}
342
343PyObject *wxPen_GetDashes(wxPen *self){
344 wxDash* dashes;
345 int count = self->GetDashes(&dashes);
346 wxPyBeginBlockThreads();
347 PyObject* retval = PyList_New(0);
348 for (int x=0; x<count; x++)
349 PyList_Append(retval, PyInt_FromLong(dashes[x]));
350 wxPyEndBlockThreads();
351 return retval;
352 }
353
354wxPyPen::~wxPyPen()
355{
356 if (m_dash)
357 delete [] m_dash;
358}
359
360void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
361{
362 if (m_dash)
363 delete [] m_dash;
364 m_dash = new wxDash[nb_dashes];
365 for (int i=0; i<nb_dashes; i++) {
366 m_dash[i] = dash[i];
367 }
368 wxPen::SetDashes(nb_dashes, m_dash);
369}
370
371
372#include <wx/image.h>
373
374 static char** ConvertListOfStrings(PyObject* listOfStrings) {
375 char** cArray = NULL;
376 int count;
377
378 if (!PyList_Check(listOfStrings)) {
379 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
380 return NULL;
381 }
382 count = PyList_Size(listOfStrings);
383 cArray = new char*[count];
384
385 for(int x=0; x<count; x++) {
386 // TODO: Need some validation and error checking here
387 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
388 }
389 return cArray;
390 }
391
392
393wxBitmap *new_wxBitmap(PyObject *listOfStrings){
394 char** cArray = NULL;
395 wxBitmap* bmp;
396
397 cArray = ConvertListOfStrings(listOfStrings);
398 if (! cArray)
399 return NULL;
400 bmp = new wxBitmap(cArray);
401 delete [] cArray;
402 return bmp;
403 }
404wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
405 char* buf;
406 int length;
407 PyString_AsStringAndSize(bits, &buf, &length);
408 return new wxBitmap(buf, width, height, depth);
409 }
410void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
411 wxMask *mask = new wxMask(*self, colour);
412 self->SetMask(mask);
413 }
414
415#include <wx/iconbndl.h>
416
417wxIcon *new_wxIcon(wxBitmap const &bmp){
418 wxIcon* icon = new wxIcon();
419 icon->CopyFromBitmap(bmp);
420 return icon;
421 }
422wxIcon *new_wxIcon(PyObject *listOfStrings){
423 char** cArray = NULL;
424 wxIcon* icon;
425
426 cArray = ConvertListOfStrings(listOfStrings);
427 if (! cArray)
428 return NULL;
429 icon = new wxIcon(cArray);
430 delete [] cArray;
431 return icon;
432 }
433wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
434
435
436
437 return new wxIconLocation(*filename);
438
439 }
440void wxIconLocation_SetIndex(wxIconLocation *self,int num){
441
442
443
444 // do nothing
445
446 }
447int wxIconLocation_GetIndex(wxIconLocation *self){
448
449
450
451 return -1;
452
453 }
454wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
455
456
457
458
459 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
460
461 }
462wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
463 char* bitsbuf;
464 char* maskbuf = NULL;
465 int length;
466 PyString_AsStringAndSize(bits, &bitsbuf, &length);
467 if (maskBits)
468 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
469 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
470 }
471
472
473wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
474 PyErr_SetNone(PyExc_NotImplementedError);
475 return NULL;
476 }
477void wxRegionIterator_Next(wxRegionIterator *self){
478 (*self) ++;
479 }
480bool wxRegionIterator___nonzero__(wxRegionIterator *self){
481 return self->operator bool();
482 }
483
484#include <wx/fontutil.h>
485#include <wx/fontmap.h>
486#include <wx/fontenum.h>
487
488wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
489 return self->ToString();
490 }
491
492 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
493 static wxNativeEncodingInfo info;
494 if ( wxGetNativeFontEncoding(encoding, &info) )
495 return &info;
496 else
497 return NULL;
498 }
499
500PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
501 wxFontEncoding alt_enc;
502 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
503 return PyInt_FromLong(alt_enc);
504 else {
505 Py_INCREF(Py_None);
506 return Py_None;
507 }
508 }
509wxFont *new_wxFont(wxString const &info){
510 wxNativeFontInfo nfi;
511 nfi.FromString(info);
512 return new wxFont(nfi);
513 }
514wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
515 return wxFont::New(pointSize, family, flags, face, encoding);
516 }
517
518class wxPyFontEnumerator : public wxFontEnumerator {
519public:
520 wxPyFontEnumerator() {}
521 ~wxPyFontEnumerator() {}
522
523 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
524 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
525
526 PYPRIVATE;
527};
528
529IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
530IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
531
532
533PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
534 wxArrayString* arr = self->GetEncodings();
535 return wxArrayString2PyList_helper(*arr);
536 }
537PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
538 wxArrayString* arr = self->GetFacenames();
539 return wxArrayString2PyList_helper(*arr);
540 }
541
542
543
544#include "wx/wxPython/pydrawxxx.h"
545
546wxColour wxDC_GetPixelXY(wxDC *self,wxCoord x,wxCoord y){
547 wxColour col;
548 self->GetPixel(x, y, &col);
549 return col;
550 }
551wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
552 wxColour col;
553 self->GetPixel(pt, &col);
554 return col;
555 }
556wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
557 wxRect rv;
558 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
559 return rv;
560 }
561wxRect wxDC_GetClippingRect(wxDC *self){
562 wxRect rect;
563 self->GetClippingBox(rect);
564 return rect;
565 }
566PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
567 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
568 }
569PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
570 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
571 }
572PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
573 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
574 }
575PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
576 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
577 }
578PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
579 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
580 }
581PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
582 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
583 }
584
585static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
586 *x1 = dc->MinX();
587 *y1 = dc->MinY();
588 *x2 = dc->MaxX();
589 *y2 = dc->MaxY();
590}
591
592
593#include <wx/dcps.h>
594
595
596class wxMetaFile : public wxObject {
597public:
598 wxMetaFile(const wxString&)
599 { PyErr_SetNone(PyExc_NotImplementedError); }
600};
601
602class wxMetaFileDC : public wxClientDC {
603public:
604 wxMetaFileDC(const wxString&, int, int, const wxString&)
605 { PyErr_SetNone(PyExc_NotImplementedError); }
606};
607
608
609
610
611void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
612 self->AddColour(name, wxColour(red, green, blue));
613 }
614
615#include <wx/generic/dragimgg.h>
616
617
618#include <wx/effects.h>
619
620#ifdef __cplusplus
621extern "C" {
622#endif
623static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
624 PyObject *resultobj;
625 wxGDIObject *result;
626 char *kwnames[] = {
627 NULL
628 };
629
630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
631 {
632 PyThreadState* __tstate = wxPyBeginAllowThreads();
633 result = (wxGDIObject *)new wxGDIObject();
634
635 wxPyEndAllowThreads(__tstate);
636 if (PyErr_Occurred()) SWIG_fail;
637 }
638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
639 return resultobj;
640 fail:
641 return NULL;
642}
643
644
645static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
646 PyObject *resultobj;
647 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
648 PyObject * obj0 = 0 ;
649 char *kwnames[] = {
650 (char *) "self", NULL
651 };
652
653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
655 {
656 PyThreadState* __tstate = wxPyBeginAllowThreads();
657 delete arg1;
658
659 wxPyEndAllowThreads(__tstate);
660 if (PyErr_Occurred()) SWIG_fail;
661 }
662 Py_INCREF(Py_None); resultobj = Py_None;
663 return resultobj;
664 fail:
665 return NULL;
666}
667
668
669static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
670 PyObject *resultobj;
671 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
672 bool result;
673 PyObject * obj0 = 0 ;
674 char *kwnames[] = {
675 (char *) "self", NULL
676 };
677
678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
680 {
681 PyThreadState* __tstate = wxPyBeginAllowThreads();
682 result = (bool)(arg1)->GetVisible();
683
684 wxPyEndAllowThreads(__tstate);
685 if (PyErr_Occurred()) SWIG_fail;
686 }
687 resultobj = PyInt_FromLong((long)result);
688 return resultobj;
689 fail:
690 return NULL;
691}
692
693
694static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
695 PyObject *resultobj;
696 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
697 bool arg2 ;
698 PyObject * obj0 = 0 ;
699 PyObject * obj1 = 0 ;
700 char *kwnames[] = {
701 (char *) "self",(char *) "visible", NULL
702 };
703
704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
706 arg2 = PyInt_AsLong(obj1) ? true : false;
707 if (PyErr_Occurred()) SWIG_fail;
708 {
709 PyThreadState* __tstate = wxPyBeginAllowThreads();
710 (arg1)->SetVisible(arg2);
711
712 wxPyEndAllowThreads(__tstate);
713 if (PyErr_Occurred()) SWIG_fail;
714 }
715 Py_INCREF(Py_None); resultobj = Py_None;
716 return resultobj;
717 fail:
718 return NULL;
719}
720
721
722static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
723 PyObject *resultobj;
724 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
725 bool result;
726 PyObject * obj0 = 0 ;
727 char *kwnames[] = {
728 (char *) "self", NULL
729 };
730
731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
733 {
734 PyThreadState* __tstate = wxPyBeginAllowThreads();
735 result = (bool)(arg1)->IsNull();
736
737 wxPyEndAllowThreads(__tstate);
738 if (PyErr_Occurred()) SWIG_fail;
739 }
740 resultobj = PyInt_FromLong((long)result);
741 return resultobj;
742 fail:
743 return NULL;
744}
745
746
747static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
748 PyObject *obj;
749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
750 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
751 Py_INCREF(obj);
752 return Py_BuildValue((char *)"");
753}
754static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
755 PyObject *resultobj;
756 unsigned char arg1 = (unsigned char) 0 ;
757 unsigned char arg2 = (unsigned char) 0 ;
758 unsigned char arg3 = (unsigned char) 0 ;
759 wxColour *result;
760 PyObject * obj0 = 0 ;
761 PyObject * obj1 = 0 ;
762 PyObject * obj2 = 0 ;
763 char *kwnames[] = {
764 (char *) "red",(char *) "green",(char *) "blue", NULL
765 };
766
767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
768 if (obj0) {
769 arg1 = (unsigned char) PyInt_AsLong(obj0);
770 if (PyErr_Occurred()) SWIG_fail;
771 }
772 if (obj1) {
773 arg2 = (unsigned char) PyInt_AsLong(obj1);
774 if (PyErr_Occurred()) SWIG_fail;
775 }
776 if (obj2) {
777 arg3 = (unsigned char) PyInt_AsLong(obj2);
778 if (PyErr_Occurred()) SWIG_fail;
779 }
780 {
781 PyThreadState* __tstate = wxPyBeginAllowThreads();
782 result = (wxColour *)new wxColour(arg1,arg2,arg3);
783
784 wxPyEndAllowThreads(__tstate);
785 if (PyErr_Occurred()) SWIG_fail;
786 }
787 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
788 return resultobj;
789 fail:
790 return NULL;
791}
792
793
794static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
795 PyObject *resultobj;
796 wxColour *arg1 = (wxColour *) 0 ;
797 PyObject * obj0 = 0 ;
798 char *kwnames[] = {
799 (char *) "self", NULL
800 };
801
802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
804 {
805 PyThreadState* __tstate = wxPyBeginAllowThreads();
806 delete arg1;
807
808 wxPyEndAllowThreads(__tstate);
809 if (PyErr_Occurred()) SWIG_fail;
810 }
811 Py_INCREF(Py_None); resultobj = Py_None;
812 return resultobj;
813 fail:
814 return NULL;
815}
816
817
818static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
819 PyObject *resultobj;
820 wxString *arg1 = 0 ;
821 wxColour *result;
822 bool temp1 = false ;
823 PyObject * obj0 = 0 ;
824 char *kwnames[] = {
825 (char *) "colorName", NULL
826 };
827
828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
829 {
830 arg1 = wxString_in_helper(obj0);
831 if (arg1 == NULL) SWIG_fail;
832 temp1 = true;
833 }
834 {
835 PyThreadState* __tstate = wxPyBeginAllowThreads();
836 result = (wxColour *)new wxColour((wxString const &)*arg1);
837
838 wxPyEndAllowThreads(__tstate);
839 if (PyErr_Occurred()) SWIG_fail;
840 }
841 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
842 {
843 if (temp1)
844 delete arg1;
845 }
846 return resultobj;
847 fail:
848 {
849 if (temp1)
850 delete arg1;
851 }
852 return NULL;
853}
854
855
856static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
857 PyObject *resultobj;
858 unsigned long arg1 ;
859 wxColour *result;
860 PyObject * obj0 = 0 ;
861 char *kwnames[] = {
862 (char *) "colRGB", NULL
863 };
864
865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
866 arg1 = (unsigned long) PyInt_AsLong(obj0);
867 if (PyErr_Occurred()) SWIG_fail;
868 {
869 PyThreadState* __tstate = wxPyBeginAllowThreads();
870 result = (wxColour *)new wxColour(arg1);
871
872 wxPyEndAllowThreads(__tstate);
873 if (PyErr_Occurred()) SWIG_fail;
874 }
875 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
876 return resultobj;
877 fail:
878 return NULL;
879}
880
881
882static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
883 PyObject *resultobj;
884 wxColour *arg1 = (wxColour *) 0 ;
885 unsigned char result;
886 PyObject * obj0 = 0 ;
887 char *kwnames[] = {
888 (char *) "self", NULL
889 };
890
891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
893 {
894 PyThreadState* __tstate = wxPyBeginAllowThreads();
895 result = (unsigned char)(arg1)->Red();
896
897 wxPyEndAllowThreads(__tstate);
898 if (PyErr_Occurred()) SWIG_fail;
899 }
900 resultobj = PyInt_FromLong((long)result);
901 return resultobj;
902 fail:
903 return NULL;
904}
905
906
907static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
908 PyObject *resultobj;
909 wxColour *arg1 = (wxColour *) 0 ;
910 unsigned char result;
911 PyObject * obj0 = 0 ;
912 char *kwnames[] = {
913 (char *) "self", NULL
914 };
915
916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
918 {
919 PyThreadState* __tstate = wxPyBeginAllowThreads();
920 result = (unsigned char)(arg1)->Green();
921
922 wxPyEndAllowThreads(__tstate);
923 if (PyErr_Occurred()) SWIG_fail;
924 }
925 resultobj = PyInt_FromLong((long)result);
926 return resultobj;
927 fail:
928 return NULL;
929}
930
931
932static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
933 PyObject *resultobj;
934 wxColour *arg1 = (wxColour *) 0 ;
935 unsigned char result;
936 PyObject * obj0 = 0 ;
937 char *kwnames[] = {
938 (char *) "self", NULL
939 };
940
941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
943 {
944 PyThreadState* __tstate = wxPyBeginAllowThreads();
945 result = (unsigned char)(arg1)->Blue();
946
947 wxPyEndAllowThreads(__tstate);
948 if (PyErr_Occurred()) SWIG_fail;
949 }
950 resultobj = PyInt_FromLong((long)result);
951 return resultobj;
952 fail:
953 return NULL;
954}
955
956
957static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
958 PyObject *resultobj;
959 wxColour *arg1 = (wxColour *) 0 ;
960 bool result;
961 PyObject * obj0 = 0 ;
962 char *kwnames[] = {
963 (char *) "self", NULL
964 };
965
966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
968 {
969 PyThreadState* __tstate = wxPyBeginAllowThreads();
970 result = (bool)(arg1)->Ok();
971
972 wxPyEndAllowThreads(__tstate);
973 if (PyErr_Occurred()) SWIG_fail;
974 }
975 resultobj = PyInt_FromLong((long)result);
976 return resultobj;
977 fail:
978 return NULL;
979}
980
981
982static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxColour *arg1 = (wxColour *) 0 ;
985 unsigned char arg2 ;
986 unsigned char arg3 ;
987 unsigned char arg4 ;
988 PyObject * obj0 = 0 ;
989 PyObject * obj1 = 0 ;
990 PyObject * obj2 = 0 ;
991 PyObject * obj3 = 0 ;
992 char *kwnames[] = {
993 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
994 };
995
996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
998 arg2 = (unsigned char) PyInt_AsLong(obj1);
999 if (PyErr_Occurred()) SWIG_fail;
1000 arg3 = (unsigned char) PyInt_AsLong(obj2);
1001 if (PyErr_Occurred()) SWIG_fail;
1002 arg4 = (unsigned char) PyInt_AsLong(obj3);
1003 if (PyErr_Occurred()) SWIG_fail;
1004 {
1005 PyThreadState* __tstate = wxPyBeginAllowThreads();
1006 (arg1)->Set(arg2,arg3,arg4);
1007
1008 wxPyEndAllowThreads(__tstate);
1009 if (PyErr_Occurred()) SWIG_fail;
1010 }
1011 Py_INCREF(Py_None); resultobj = Py_None;
1012 return resultobj;
1013 fail:
1014 return NULL;
1015}
1016
1017
1018static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) {
1019 PyObject *resultobj;
1020 wxColour *arg1 = (wxColour *) 0 ;
1021 unsigned long arg2 ;
1022 PyObject * obj0 = 0 ;
1023 PyObject * obj1 = 0 ;
1024 char *kwnames[] = {
1025 (char *) "self",(char *) "colRGB", NULL
1026 };
1027
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail;
1029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1030 arg2 = (unsigned long) PyInt_AsLong(obj1);
1031 if (PyErr_Occurred()) SWIG_fail;
1032 {
1033 PyThreadState* __tstate = wxPyBeginAllowThreads();
1034 (arg1)->Set(arg2);
1035
1036 wxPyEndAllowThreads(__tstate);
1037 if (PyErr_Occurred()) SWIG_fail;
1038 }
1039 Py_INCREF(Py_None); resultobj = Py_None;
1040 return resultobj;
1041 fail:
1042 return NULL;
1043}
1044
1045
1046static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1047 PyObject *resultobj;
1048 wxColour *arg1 = (wxColour *) 0 ;
1049 wxColour *arg2 = 0 ;
1050 bool result;
1051 wxColour temp2 ;
1052 PyObject * obj0 = 0 ;
1053 PyObject * obj1 = 0 ;
1054 char *kwnames[] = {
1055 (char *) "self",(char *) "colour", NULL
1056 };
1057
1058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1060 {
1061 arg2 = &temp2;
1062 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1063 }
1064 {
1065 PyThreadState* __tstate = wxPyBeginAllowThreads();
1066 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1067
1068 wxPyEndAllowThreads(__tstate);
1069 if (PyErr_Occurred()) SWIG_fail;
1070 }
1071 resultobj = PyInt_FromLong((long)result);
1072 return resultobj;
1073 fail:
1074 return NULL;
1075}
1076
1077
1078static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject *resultobj;
1080 wxColour *arg1 = (wxColour *) 0 ;
1081 wxColour *arg2 = 0 ;
1082 bool result;
1083 wxColour temp2 ;
1084 PyObject * obj0 = 0 ;
1085 PyObject * obj1 = 0 ;
1086 char *kwnames[] = {
1087 (char *) "self",(char *) "colour", NULL
1088 };
1089
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1092 {
1093 arg2 = &temp2;
1094 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1095 }
1096 {
1097 PyThreadState* __tstate = wxPyBeginAllowThreads();
1098 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1099
1100 wxPyEndAllowThreads(__tstate);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 resultobj = PyInt_FromLong((long)result);
1104 return resultobj;
1105 fail:
1106 return NULL;
1107}
1108
1109
1110static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1111 PyObject *resultobj;
1112 wxColour *arg1 = (wxColour *) 0 ;
1113 PyObject *result;
1114 PyObject * obj0 = 0 ;
1115 char *kwnames[] = {
1116 (char *) "self", NULL
1117 };
1118
1119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1121 {
1122 PyThreadState* __tstate = wxPyBeginAllowThreads();
1123 result = (PyObject *)wxColour_Get(arg1);
1124
1125 wxPyEndAllowThreads(__tstate);
1126 if (PyErr_Occurred()) SWIG_fail;
1127 }
1128 resultobj = result;
1129 return resultobj;
1130 fail:
1131 return NULL;
1132}
1133
1134
1135static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1136 PyObject *obj;
1137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1138 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1139 Py_INCREF(obj);
1140 return Py_BuildValue((char *)"");
1141}
1142static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1143 PyObject *resultobj;
1144 int arg1 ;
1145 unsigned char *arg2 = (unsigned char *) 0 ;
1146 unsigned char *arg3 = (unsigned char *) 0 ;
1147 unsigned char *arg4 = (unsigned char *) 0 ;
1148 wxPalette *result;
1149 PyObject * obj1 = 0 ;
1150 PyObject * obj2 = 0 ;
1151 PyObject * obj3 = 0 ;
1152 char *kwnames[] = {
1153 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1154 };
1155
1156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1157 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1158 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1159 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1160 {
1161 PyThreadState* __tstate = wxPyBeginAllowThreads();
1162 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1163
1164 wxPyEndAllowThreads(__tstate);
1165 if (PyErr_Occurred()) SWIG_fail;
1166 }
1167 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1168 return resultobj;
1169 fail:
1170 return NULL;
1171}
1172
1173
1174static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1175 PyObject *resultobj;
1176 wxPalette *arg1 = (wxPalette *) 0 ;
1177 PyObject * obj0 = 0 ;
1178 char *kwnames[] = {
1179 (char *) "self", NULL
1180 };
1181
1182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1184 {
1185 PyThreadState* __tstate = wxPyBeginAllowThreads();
1186 delete arg1;
1187
1188 wxPyEndAllowThreads(__tstate);
1189 if (PyErr_Occurred()) SWIG_fail;
1190 }
1191 Py_INCREF(Py_None); resultobj = Py_None;
1192 return resultobj;
1193 fail:
1194 return NULL;
1195}
1196
1197
1198static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1199 PyObject *resultobj;
1200 wxPalette *arg1 = (wxPalette *) 0 ;
1201 byte arg2 ;
1202 byte arg3 ;
1203 byte arg4 ;
1204 int result;
1205 PyObject * obj0 = 0 ;
1206 PyObject * obj1 = 0 ;
1207 PyObject * obj2 = 0 ;
1208 PyObject * obj3 = 0 ;
1209 char *kwnames[] = {
1210 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1211 };
1212
1213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1215 arg2 = (byte) PyInt_AsLong(obj1);
1216 if (PyErr_Occurred()) SWIG_fail;
1217 arg3 = (byte) PyInt_AsLong(obj2);
1218 if (PyErr_Occurred()) SWIG_fail;
1219 arg4 = (byte) PyInt_AsLong(obj3);
1220 if (PyErr_Occurred()) SWIG_fail;
1221 {
1222 PyThreadState* __tstate = wxPyBeginAllowThreads();
1223 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1224
1225 wxPyEndAllowThreads(__tstate);
1226 if (PyErr_Occurred()) SWIG_fail;
1227 }
1228 resultobj = PyInt_FromLong((long)result);
1229 return resultobj;
1230 fail:
1231 return NULL;
1232}
1233
1234
1235static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1236 PyObject *resultobj;
1237 wxPalette *arg1 = (wxPalette *) 0 ;
1238 int arg2 ;
1239 byte *arg3 = (byte *) 0 ;
1240 byte *arg4 = (byte *) 0 ;
1241 byte *arg5 = (byte *) 0 ;
1242 bool result;
1243 byte temp3 ;
1244 byte temp4 ;
1245 byte temp5 ;
1246 PyObject * obj0 = 0 ;
1247 char *kwnames[] = {
1248 (char *) "self",(char *) "pixel", NULL
1249 };
1250
1251 arg3 = &temp3;
1252 arg4 = &temp4;
1253 arg5 = &temp5;
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1256 {
1257 PyThreadState* __tstate = wxPyBeginAllowThreads();
1258 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1259
1260 wxPyEndAllowThreads(__tstate);
1261 if (PyErr_Occurred()) SWIG_fail;
1262 }
1263 resultobj = PyInt_FromLong((long)result);
1264 {
1265 PyObject *o = PyInt_FromLong((long) (*arg3));
1266 resultobj = t_output_helper(resultobj,o);
1267 }
1268 {
1269 PyObject *o = PyInt_FromLong((long) (*arg4));
1270 resultobj = t_output_helper(resultobj,o);
1271 }
1272 {
1273 PyObject *o = PyInt_FromLong((long) (*arg5));
1274 resultobj = t_output_helper(resultobj,o);
1275 }
1276 return resultobj;
1277 fail:
1278 return NULL;
1279}
1280
1281
1282static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1283 PyObject *resultobj;
1284 wxPalette *arg1 = (wxPalette *) 0 ;
1285 bool result;
1286 PyObject * obj0 = 0 ;
1287 char *kwnames[] = {
1288 (char *) "self", NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (bool)(arg1)->Ok();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = PyInt_FromLong((long)result);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304}
1305
1306
1307static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1308 PyObject *obj;
1309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1310 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1311 Py_INCREF(obj);
1312 return Py_BuildValue((char *)"");
1313}
1314static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1315 PyObject *resultobj;
1316 wxColour *arg1 = 0 ;
1317 int arg2 = (int) 1 ;
1318 int arg3 = (int) wxSOLID ;
1319 wxPen *result;
1320 wxColour temp1 ;
1321 PyObject * obj0 = 0 ;
1322 char *kwnames[] = {
1323 (char *) "colour",(char *) "width",(char *) "style", NULL
1324 };
1325
1326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1327 {
1328 arg1 = &temp1;
1329 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1330 }
1331 {
1332 PyThreadState* __tstate = wxPyBeginAllowThreads();
1333 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1334
1335 wxPyEndAllowThreads(__tstate);
1336 if (PyErr_Occurred()) SWIG_fail;
1337 }
1338 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1339 return resultobj;
1340 fail:
1341 return NULL;
1342}
1343
1344
1345static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1346 PyObject *resultobj;
1347 wxPen *arg1 = (wxPen *) 0 ;
1348 PyObject * obj0 = 0 ;
1349 char *kwnames[] = {
1350 (char *) "self", NULL
1351 };
1352
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1355 {
1356 PyThreadState* __tstate = wxPyBeginAllowThreads();
1357 delete arg1;
1358
1359 wxPyEndAllowThreads(__tstate);
1360 if (PyErr_Occurred()) SWIG_fail;
1361 }
1362 Py_INCREF(Py_None); resultobj = Py_None;
1363 return resultobj;
1364 fail:
1365 return NULL;
1366}
1367
1368
1369static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1370 PyObject *resultobj;
1371 wxPen *arg1 = (wxPen *) 0 ;
1372 int result;
1373 PyObject * obj0 = 0 ;
1374 char *kwnames[] = {
1375 (char *) "self", NULL
1376 };
1377
1378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 result = (int)(arg1)->GetCap();
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) SWIG_fail;
1386 }
1387 resultobj = PyInt_FromLong((long)result);
1388 return resultobj;
1389 fail:
1390 return NULL;
1391}
1392
1393
1394static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1395 PyObject *resultobj;
1396 wxPen *arg1 = (wxPen *) 0 ;
1397 wxColour result;
1398 PyObject * obj0 = 0 ;
1399 char *kwnames[] = {
1400 (char *) "self", NULL
1401 };
1402
1403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1405 {
1406 PyThreadState* __tstate = wxPyBeginAllowThreads();
1407 result = (arg1)->GetColour();
1408
1409 wxPyEndAllowThreads(__tstate);
1410 if (PyErr_Occurred()) SWIG_fail;
1411 }
1412 {
1413 wxColour * resultptr;
1414 resultptr = new wxColour((wxColour &) result);
1415 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1416 }
1417 return resultobj;
1418 fail:
1419 return NULL;
1420}
1421
1422
1423static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1424 PyObject *resultobj;
1425 wxPen *arg1 = (wxPen *) 0 ;
1426 int result;
1427 PyObject * obj0 = 0 ;
1428 char *kwnames[] = {
1429 (char *) "self", NULL
1430 };
1431
1432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 result = (int)(arg1)->GetJoin();
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 resultobj = PyInt_FromLong((long)result);
1442 return resultobj;
1443 fail:
1444 return NULL;
1445}
1446
1447
1448static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 wxPen *arg1 = (wxPen *) 0 ;
1451 int result;
1452 PyObject * obj0 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "self", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1459 {
1460 PyThreadState* __tstate = wxPyBeginAllowThreads();
1461 result = (int)(arg1)->GetStyle();
1462
1463 wxPyEndAllowThreads(__tstate);
1464 if (PyErr_Occurred()) SWIG_fail;
1465 }
1466 resultobj = PyInt_FromLong((long)result);
1467 return resultobj;
1468 fail:
1469 return NULL;
1470}
1471
1472
1473static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject *resultobj;
1475 wxPen *arg1 = (wxPen *) 0 ;
1476 int result;
1477 PyObject * obj0 = 0 ;
1478 char *kwnames[] = {
1479 (char *) "self", NULL
1480 };
1481
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1484 {
1485 PyThreadState* __tstate = wxPyBeginAllowThreads();
1486 result = (int)(arg1)->GetWidth();
1487
1488 wxPyEndAllowThreads(__tstate);
1489 if (PyErr_Occurred()) SWIG_fail;
1490 }
1491 resultobj = PyInt_FromLong((long)result);
1492 return resultobj;
1493 fail:
1494 return NULL;
1495}
1496
1497
1498static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1499 PyObject *resultobj;
1500 wxPen *arg1 = (wxPen *) 0 ;
1501 bool result;
1502 PyObject * obj0 = 0 ;
1503 char *kwnames[] = {
1504 (char *) "self", NULL
1505 };
1506
1507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1509 {
1510 PyThreadState* __tstate = wxPyBeginAllowThreads();
1511 result = (bool)(arg1)->Ok();
1512
1513 wxPyEndAllowThreads(__tstate);
1514 if (PyErr_Occurred()) SWIG_fail;
1515 }
1516 resultobj = PyInt_FromLong((long)result);
1517 return resultobj;
1518 fail:
1519 return NULL;
1520}
1521
1522
1523static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1524 PyObject *resultobj;
1525 wxPen *arg1 = (wxPen *) 0 ;
1526 int arg2 ;
1527 PyObject * obj0 = 0 ;
1528 char *kwnames[] = {
1529 (char *) "self",(char *) "cap_style", NULL
1530 };
1531
1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1534 {
1535 PyThreadState* __tstate = wxPyBeginAllowThreads();
1536 (arg1)->SetCap(arg2);
1537
1538 wxPyEndAllowThreads(__tstate);
1539 if (PyErr_Occurred()) SWIG_fail;
1540 }
1541 Py_INCREF(Py_None); resultobj = Py_None;
1542 return resultobj;
1543 fail:
1544 return NULL;
1545}
1546
1547
1548static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1549 PyObject *resultobj;
1550 wxPen *arg1 = (wxPen *) 0 ;
1551 wxColour *arg2 = 0 ;
1552 wxColour temp2 ;
1553 PyObject * obj0 = 0 ;
1554 PyObject * obj1 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self",(char *) "colour", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1561 {
1562 arg2 = &temp2;
1563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1564 }
1565 {
1566 PyThreadState* __tstate = wxPyBeginAllowThreads();
1567 (arg1)->SetColour(*arg2);
1568
1569 wxPyEndAllowThreads(__tstate);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 }
1572 Py_INCREF(Py_None); resultobj = Py_None;
1573 return resultobj;
1574 fail:
1575 return NULL;
1576}
1577
1578
1579static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1580 PyObject *resultobj;
1581 wxPen *arg1 = (wxPen *) 0 ;
1582 int arg2 ;
1583 PyObject * obj0 = 0 ;
1584 char *kwnames[] = {
1585 (char *) "self",(char *) "join_style", NULL
1586 };
1587
1588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1590 {
1591 PyThreadState* __tstate = wxPyBeginAllowThreads();
1592 (arg1)->SetJoin(arg2);
1593
1594 wxPyEndAllowThreads(__tstate);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 }
1597 Py_INCREF(Py_None); resultobj = Py_None;
1598 return resultobj;
1599 fail:
1600 return NULL;
1601}
1602
1603
1604static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1605 PyObject *resultobj;
1606 wxPen *arg1 = (wxPen *) 0 ;
1607 int arg2 ;
1608 PyObject * obj0 = 0 ;
1609 char *kwnames[] = {
1610 (char *) "self",(char *) "style", NULL
1611 };
1612
1613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1615 {
1616 PyThreadState* __tstate = wxPyBeginAllowThreads();
1617 (arg1)->SetStyle(arg2);
1618
1619 wxPyEndAllowThreads(__tstate);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 }
1622 Py_INCREF(Py_None); resultobj = Py_None;
1623 return resultobj;
1624 fail:
1625 return NULL;
1626}
1627
1628
1629static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1630 PyObject *resultobj;
1631 wxPen *arg1 = (wxPen *) 0 ;
1632 int arg2 ;
1633 PyObject * obj0 = 0 ;
1634 char *kwnames[] = {
1635 (char *) "self",(char *) "width", NULL
1636 };
1637
1638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1640 {
1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
1642 (arg1)->SetWidth(arg2);
1643
1644 wxPyEndAllowThreads(__tstate);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 }
1647 Py_INCREF(Py_None); resultobj = Py_None;
1648 return resultobj;
1649 fail:
1650 return NULL;
1651}
1652
1653
1654static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 wxPen *arg1 = (wxPen *) 0 ;
1657 int arg2 ;
1658 wxDash *arg3 = (wxDash *) 0 ;
1659 PyObject * obj0 = 0 ;
1660 PyObject * obj1 = 0 ;
1661 char *kwnames[] = {
1662 (char *) "self",(char *) "dashes", NULL
1663 };
1664
1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1667 {
1668 arg2 = PyList_Size(obj1);
1669 arg3 = (wxDash*)byte_LIST_helper(obj1);
1670 if (arg3 == NULL) SWIG_fail;
1671 }
1672 {
1673 PyThreadState* __tstate = wxPyBeginAllowThreads();
1674 (arg1)->SetDashes(arg2,arg3);
1675
1676 wxPyEndAllowThreads(__tstate);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 Py_INCREF(Py_None); resultobj = Py_None;
1680 {
1681 if (arg3) delete [] arg3;
1682 }
1683 return resultobj;
1684 fail:
1685 {
1686 if (arg3) delete [] arg3;
1687 }
1688 return NULL;
1689}
1690
1691
1692static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject *resultobj;
1694 wxPen *arg1 = (wxPen *) 0 ;
1695 PyObject *result;
1696 PyObject * obj0 = 0 ;
1697 char *kwnames[] = {
1698 (char *) "self", NULL
1699 };
1700
1701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1703 {
1704 PyThreadState* __tstate = wxPyBeginAllowThreads();
1705 result = (PyObject *)wxPen_GetDashes(arg1);
1706
1707 wxPyEndAllowThreads(__tstate);
1708 if (PyErr_Occurred()) SWIG_fail;
1709 }
1710 resultobj = result;
1711 return resultobj;
1712 fail:
1713 return NULL;
1714}
1715
1716
1717static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1718 PyObject *obj;
1719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1720 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1721 Py_INCREF(obj);
1722 return Py_BuildValue((char *)"");
1723}
1724static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1725 PyObject *resultobj;
1726 wxColour *arg1 = 0 ;
1727 int arg2 = (int) 1 ;
1728 int arg3 = (int) wxSOLID ;
1729 wxPyPen *result;
1730 wxColour temp1 ;
1731 PyObject * obj0 = 0 ;
1732 char *kwnames[] = {
1733 (char *) "colour",(char *) "width",(char *) "style", NULL
1734 };
1735
1736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1737 {
1738 arg1 = &temp1;
1739 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1740 }
1741 {
1742 PyThreadState* __tstate = wxPyBeginAllowThreads();
1743 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1744
1745 wxPyEndAllowThreads(__tstate);
1746 if (PyErr_Occurred()) SWIG_fail;
1747 }
1748 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1749 return resultobj;
1750 fail:
1751 return NULL;
1752}
1753
1754
1755static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1756 PyObject *resultobj;
1757 wxPyPen *arg1 = (wxPyPen *) 0 ;
1758 PyObject * obj0 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self", NULL
1761 };
1762
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 delete arg1;
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 Py_INCREF(Py_None); resultobj = Py_None;
1773 return resultobj;
1774 fail:
1775 return NULL;
1776}
1777
1778
1779static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxPyPen *arg1 = (wxPyPen *) 0 ;
1782 int arg2 ;
1783 wxDash *arg3 = (wxDash *) 0 ;
1784 PyObject * obj0 = 0 ;
1785 PyObject * obj1 = 0 ;
1786 char *kwnames[] = {
1787 (char *) "self",(char *) "dashes", NULL
1788 };
1789
1790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1792 {
1793 arg2 = PyList_Size(obj1);
1794 arg3 = (wxDash*)byte_LIST_helper(obj1);
1795 if (arg3 == NULL) SWIG_fail;
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 (arg1)->SetDashes(arg2,arg3);
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 }
1804 Py_INCREF(Py_None); resultobj = Py_None;
1805 {
1806 if (arg3) delete [] arg3;
1807 }
1808 return resultobj;
1809 fail:
1810 {
1811 if (arg3) delete [] arg3;
1812 }
1813 return NULL;
1814}
1815
1816
1817static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1818 PyObject *obj;
1819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1820 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1821 Py_INCREF(obj);
1822 return Py_BuildValue((char *)"");
1823}
1824static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject *resultobj;
1826 wxColour *arg1 = 0 ;
1827 int arg2 = (int) wxSOLID ;
1828 wxBrush *result;
1829 wxColour temp1 ;
1830 PyObject * obj0 = 0 ;
1831 char *kwnames[] = {
1832 (char *) "colour",(char *) "style", NULL
1833 };
1834
1835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1836 {
1837 arg1 = &temp1;
1838 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1839 }
1840 {
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) SWIG_fail;
1846 }
1847 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1848 return resultobj;
1849 fail:
1850 return NULL;
1851}
1852
1853
1854static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1855 PyObject *resultobj;
1856 wxBrush *arg1 = (wxBrush *) 0 ;
1857 PyObject * obj0 = 0 ;
1858 char *kwnames[] = {
1859 (char *) "self", NULL
1860 };
1861
1862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 delete arg1;
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 Py_INCREF(Py_None); resultobj = Py_None;
1872 return resultobj;
1873 fail:
1874 return NULL;
1875}
1876
1877
1878static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxBrush *arg1 = (wxBrush *) 0 ;
1881 wxColour *arg2 = 0 ;
1882 wxColour temp2 ;
1883 PyObject * obj0 = 0 ;
1884 PyObject * obj1 = 0 ;
1885 char *kwnames[] = {
1886 (char *) "self",(char *) "col", NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1891 {
1892 arg2 = &temp2;
1893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1894 }
1895 {
1896 PyThreadState* __tstate = wxPyBeginAllowThreads();
1897 (arg1)->SetColour((wxColour const &)*arg2);
1898
1899 wxPyEndAllowThreads(__tstate);
1900 if (PyErr_Occurred()) SWIG_fail;
1901 }
1902 Py_INCREF(Py_None); resultobj = Py_None;
1903 return resultobj;
1904 fail:
1905 return NULL;
1906}
1907
1908
1909static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject *resultobj;
1911 wxBrush *arg1 = (wxBrush *) 0 ;
1912 int arg2 ;
1913 PyObject * obj0 = 0 ;
1914 char *kwnames[] = {
1915 (char *) "self",(char *) "style", NULL
1916 };
1917
1918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 (arg1)->SetStyle(arg2);
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 Py_INCREF(Py_None); resultobj = Py_None;
1928 return resultobj;
1929 fail:
1930 return NULL;
1931}
1932
1933
1934static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1935 PyObject *resultobj;
1936 wxBrush *arg1 = (wxBrush *) 0 ;
1937 wxBitmap *arg2 = 0 ;
1938 PyObject * obj0 = 0 ;
1939 PyObject * obj1 = 0 ;
1940 char *kwnames[] = {
1941 (char *) "self",(char *) "stipple", NULL
1942 };
1943
1944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1946 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1947 if (arg2 == NULL) {
1948 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1949 }
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 (arg1)->SetStipple((wxBitmap const &)*arg2);
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 Py_INCREF(Py_None); resultobj = Py_None;
1958 return resultobj;
1959 fail:
1960 return NULL;
1961}
1962
1963
1964static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 wxBrush *arg1 = (wxBrush *) 0 ;
1967 wxColour result;
1968 PyObject * obj0 = 0 ;
1969 char *kwnames[] = {
1970 (char *) "self", NULL
1971 };
1972
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
1974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1975 {
1976 PyThreadState* __tstate = wxPyBeginAllowThreads();
1977 result = ((wxBrush const *)arg1)->GetColour();
1978
1979 wxPyEndAllowThreads(__tstate);
1980 if (PyErr_Occurred()) SWIG_fail;
1981 }
1982 {
1983 wxColour * resultptr;
1984 resultptr = new wxColour((wxColour &) result);
1985 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1986 }
1987 return resultobj;
1988 fail:
1989 return NULL;
1990}
1991
1992
1993static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxBrush *arg1 = (wxBrush *) 0 ;
1996 int result;
1997 PyObject * obj0 = 0 ;
1998 char *kwnames[] = {
1999 (char *) "self", NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 result = (int)((wxBrush const *)arg1)->GetStyle();
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) SWIG_fail;
2010 }
2011 resultobj = PyInt_FromLong((long)result);
2012 return resultobj;
2013 fail:
2014 return NULL;
2015}
2016
2017
2018static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2019 PyObject *resultobj;
2020 wxBrush *arg1 = (wxBrush *) 0 ;
2021 wxBitmap *result;
2022 PyObject * obj0 = 0 ;
2023 char *kwnames[] = {
2024 (char *) "self", NULL
2025 };
2026
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2029 {
2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
2031 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2032
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 }
2036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2037 return resultobj;
2038 fail:
2039 return NULL;
2040}
2041
2042
2043static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2044 PyObject *resultobj;
2045 wxBrush *arg1 = (wxBrush *) 0 ;
2046 bool result;
2047 PyObject * obj0 = 0 ;
2048 char *kwnames[] = {
2049 (char *) "self", NULL
2050 };
2051
2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2054 {
2055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2056 result = (bool)(arg1)->Ok();
2057
2058 wxPyEndAllowThreads(__tstate);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 resultobj = PyInt_FromLong((long)result);
2062 return resultobj;
2063 fail:
2064 return NULL;
2065}
2066
2067
2068static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2069 PyObject *resultobj;
2070 wxBrush *arg1 = (wxBrush *) 0 ;
2071 short result;
2072 PyObject * obj0 = 0 ;
2073 char *kwnames[] = {
2074 (char *) "self", NULL
2075 };
2076
2077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2079 {
2080 PyThreadState* __tstate = wxPyBeginAllowThreads();
2081 result = (short)(arg1)->GetMacTheme();
2082
2083 wxPyEndAllowThreads(__tstate);
2084 if (PyErr_Occurred()) SWIG_fail;
2085 }
2086 resultobj = PyInt_FromLong((long)result);
2087 return resultobj;
2088 fail:
2089 return NULL;
2090}
2091
2092
2093static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2094 PyObject *resultobj;
2095 wxBrush *arg1 = (wxBrush *) 0 ;
2096 short arg2 ;
2097 PyObject * obj0 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self",(char *) "macThemeBrush", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oh:Brush_SetMacTheme",kwnames,&obj0,&arg2)) goto fail;
2103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 (arg1)->SetMacTheme(arg2);
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 Py_INCREF(Py_None); resultobj = Py_None;
2112 return resultobj;
2113 fail:
2114 return NULL;
2115}
2116
2117
2118static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2119 PyObject *obj;
2120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2121 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2122 Py_INCREF(obj);
2123 return Py_BuildValue((char *)"");
2124}
2125static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxString *arg1 = 0 ;
2128 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2129 wxBitmap *result;
2130 bool temp1 = false ;
2131 PyObject * obj0 = 0 ;
2132 char *kwnames[] = {
2133 (char *) "name",(char *) "type", NULL
2134 };
2135
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2137 {
2138 arg1 = wxString_in_helper(obj0);
2139 if (arg1 == NULL) SWIG_fail;
2140 temp1 = true;
2141 }
2142 {
2143 PyThreadState* __tstate = wxPyBeginAllowThreads();
2144 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2145
2146 wxPyEndAllowThreads(__tstate);
2147 if (PyErr_Occurred()) SWIG_fail;
2148 }
2149 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2150 {
2151 if (temp1)
2152 delete arg1;
2153 }
2154 return resultobj;
2155 fail:
2156 {
2157 if (temp1)
2158 delete arg1;
2159 }
2160 return NULL;
2161}
2162
2163
2164static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject *resultobj;
2166 wxBitmap *arg1 = (wxBitmap *) 0 ;
2167 PyObject * obj0 = 0 ;
2168 char *kwnames[] = {
2169 (char *) "self", NULL
2170 };
2171
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2174 {
2175 PyThreadState* __tstate = wxPyBeginAllowThreads();
2176 delete arg1;
2177
2178 wxPyEndAllowThreads(__tstate);
2179 if (PyErr_Occurred()) SWIG_fail;
2180 }
2181 Py_INCREF(Py_None); resultobj = Py_None;
2182 return resultobj;
2183 fail:
2184 return NULL;
2185}
2186
2187
2188static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2189 PyObject *resultobj;
2190 int arg1 ;
2191 int arg2 ;
2192 int arg3 = (int) -1 ;
2193 wxBitmap *result;
2194 char *kwnames[] = {
2195 (char *) "width",(char *) "height",(char *) "depth", NULL
2196 };
2197
2198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2199 {
2200 PyThreadState* __tstate = wxPyBeginAllowThreads();
2201 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2202
2203 wxPyEndAllowThreads(__tstate);
2204 if (PyErr_Occurred()) SWIG_fail;
2205 }
2206 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2207 return resultobj;
2208 fail:
2209 return NULL;
2210}
2211
2212
2213static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2214 PyObject *resultobj;
2215 wxIcon *arg1 = 0 ;
2216 wxBitmap *result;
2217 PyObject * obj0 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "icon", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2224 if (arg1 == NULL) {
2225 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2226 }
2227 {
2228 PyThreadState* __tstate = wxPyBeginAllowThreads();
2229 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2230
2231 wxPyEndAllowThreads(__tstate);
2232 if (PyErr_Occurred()) SWIG_fail;
2233 }
2234 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2235 return resultobj;
2236 fail:
2237 return NULL;
2238}
2239
2240
2241static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject *resultobj;
2243 wxImage *arg1 = 0 ;
2244 int arg2 = (int) -1 ;
2245 wxBitmap *result;
2246 PyObject * obj0 = 0 ;
2247 char *kwnames[] = {
2248 (char *) "image",(char *) "depth", NULL
2249 };
2250
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2253 if (arg1 == NULL) {
2254 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2255 }
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2264 return resultobj;
2265 fail:
2266 return NULL;
2267}
2268
2269
2270static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2271 PyObject *resultobj;
2272 PyObject *arg1 = (PyObject *) 0 ;
2273 wxBitmap *result;
2274 PyObject * obj0 = 0 ;
2275 char *kwnames[] = {
2276 (char *) "listOfStrings", NULL
2277 };
2278
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2280 arg1 = obj0;
2281 {
2282 PyThreadState* __tstate = wxPyBeginAllowThreads();
2283 result = (wxBitmap *)new_wxBitmap(arg1);
2284
2285 wxPyEndAllowThreads(__tstate);
2286 if (PyErr_Occurred()) SWIG_fail;
2287 }
2288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2289 return resultobj;
2290 fail:
2291 return NULL;
2292}
2293
2294
2295static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2296 PyObject *resultobj;
2297 PyObject *arg1 = (PyObject *) 0 ;
2298 int arg2 ;
2299 int arg3 ;
2300 int arg4 = (int) 1 ;
2301 wxBitmap *result;
2302 PyObject * obj0 = 0 ;
2303 char *kwnames[] = {
2304 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2305 };
2306
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2308 arg1 = obj0;
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2317 return resultobj;
2318 fail:
2319 return NULL;
2320}
2321
2322
2323static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2324 PyObject *resultobj;
2325 wxBitmap *arg1 = (wxBitmap *) 0 ;
2326 bool result;
2327 PyObject * obj0 = 0 ;
2328 char *kwnames[] = {
2329 (char *) "self", NULL
2330 };
2331
2332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2334 {
2335 PyThreadState* __tstate = wxPyBeginAllowThreads();
2336 result = (bool)(arg1)->Ok();
2337
2338 wxPyEndAllowThreads(__tstate);
2339 if (PyErr_Occurred()) SWIG_fail;
2340 }
2341 resultobj = PyInt_FromLong((long)result);
2342 return resultobj;
2343 fail:
2344 return NULL;
2345}
2346
2347
2348static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2349 PyObject *resultobj;
2350 wxBitmap *arg1 = (wxBitmap *) 0 ;
2351 int result;
2352 PyObject * obj0 = 0 ;
2353 char *kwnames[] = {
2354 (char *) "self", NULL
2355 };
2356
2357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 result = (int)(arg1)->GetWidth();
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2366 resultobj = PyInt_FromLong((long)result);
2367 return resultobj;
2368 fail:
2369 return NULL;
2370}
2371
2372
2373static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2374 PyObject *resultobj;
2375 wxBitmap *arg1 = (wxBitmap *) 0 ;
2376 int result;
2377 PyObject * obj0 = 0 ;
2378 char *kwnames[] = {
2379 (char *) "self", NULL
2380 };
2381
2382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 result = (int)(arg1)->GetHeight();
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 resultobj = PyInt_FromLong((long)result);
2392 return resultobj;
2393 fail:
2394 return NULL;
2395}
2396
2397
2398static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject *resultobj;
2400 wxBitmap *arg1 = (wxBitmap *) 0 ;
2401 int result;
2402 PyObject * obj0 = 0 ;
2403 char *kwnames[] = {
2404 (char *) "self", NULL
2405 };
2406
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2409 {
2410 PyThreadState* __tstate = wxPyBeginAllowThreads();
2411 result = (int)(arg1)->GetDepth();
2412
2413 wxPyEndAllowThreads(__tstate);
2414 if (PyErr_Occurred()) SWIG_fail;
2415 }
2416 resultobj = PyInt_FromLong((long)result);
2417 return resultobj;
2418 fail:
2419 return NULL;
2420}
2421
2422
2423static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject *resultobj;
2425 wxBitmap *arg1 = (wxBitmap *) 0 ;
2426 SwigValueWrapper< wxImage > result;
2427 PyObject * obj0 = 0 ;
2428 char *kwnames[] = {
2429 (char *) "self", NULL
2430 };
2431
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2434 {
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
2436 result = ((wxBitmap const *)arg1)->ConvertToImage();
2437
2438 wxPyEndAllowThreads(__tstate);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 }
2441 {
2442 wxImage * resultptr;
2443 resultptr = new wxImage((wxImage &) result);
2444 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2445 }
2446 return resultobj;
2447 fail:
2448 return NULL;
2449}
2450
2451
2452static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2453 PyObject *resultobj;
2454 wxBitmap *arg1 = (wxBitmap *) 0 ;
2455 wxMask *result;
2456 PyObject * obj0 = 0 ;
2457 char *kwnames[] = {
2458 (char *) "self", NULL
2459 };
2460
2461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2471 return resultobj;
2472 fail:
2473 return NULL;
2474}
2475
2476
2477static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 wxBitmap *arg1 = (wxBitmap *) 0 ;
2480 wxMask *arg2 = (wxMask *) 0 ;
2481 PyObject * obj0 = 0 ;
2482 PyObject * obj1 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self",(char *) "mask", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2489 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 (arg1)->SetMask(arg2);
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501}
2502
2503
2504static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxBitmap *arg1 = (wxBitmap *) 0 ;
2507 wxColour *arg2 = 0 ;
2508 wxColour temp2 ;
2509 PyObject * obj0 = 0 ;
2510 PyObject * obj1 = 0 ;
2511 char *kwnames[] = {
2512 (char *) "self",(char *) "colour", NULL
2513 };
2514
2515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2517 {
2518 arg2 = &temp2;
2519 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2520 }
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 Py_INCREF(Py_None); resultobj = Py_None;
2529 return resultobj;
2530 fail:
2531 return NULL;
2532}
2533
2534
2535static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 wxBitmap *arg1 = (wxBitmap *) 0 ;
2538 wxRect *arg2 = 0 ;
2539 SwigValueWrapper< wxBitmap > result;
2540 wxRect temp2 ;
2541 PyObject * obj0 = 0 ;
2542 PyObject * obj1 = 0 ;
2543 char *kwnames[] = {
2544 (char *) "self",(char *) "rect", NULL
2545 };
2546
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2549 {
2550 arg2 = &temp2;
2551 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2552 }
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2555 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 {
2561 wxBitmap * resultptr;
2562 resultptr = new wxBitmap((wxBitmap &) result);
2563 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2564 }
2565 return resultobj;
2566 fail:
2567 return NULL;
2568}
2569
2570
2571static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxBitmap *arg1 = (wxBitmap *) 0 ;
2574 wxString *arg2 = 0 ;
2575 int arg3 ;
2576 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2577 bool result;
2578 bool temp2 = false ;
2579 PyObject * obj0 = 0 ;
2580 PyObject * obj1 = 0 ;
2581 PyObject * obj3 = 0 ;
2582 char *kwnames[] = {
2583 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2588 {
2589 arg2 = wxString_in_helper(obj1);
2590 if (arg2 == NULL) SWIG_fail;
2591 temp2 = true;
2592 }
2593 if (obj3) {
2594 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2595 }
2596 {
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 resultobj = PyInt_FromLong((long)result);
2604 {
2605 if (temp2)
2606 delete arg2;
2607 }
2608 return resultobj;
2609 fail:
2610 {
2611 if (temp2)
2612 delete arg2;
2613 }
2614 return NULL;
2615}
2616
2617
2618static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2619 PyObject *resultobj;
2620 wxBitmap *arg1 = (wxBitmap *) 0 ;
2621 wxString *arg2 = 0 ;
2622 int arg3 ;
2623 bool result;
2624 bool temp2 = false ;
2625 PyObject * obj0 = 0 ;
2626 PyObject * obj1 = 0 ;
2627 char *kwnames[] = {
2628 (char *) "self",(char *) "name",(char *) "type", NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2633 {
2634 arg2 = wxString_in_helper(obj1);
2635 if (arg2 == NULL) SWIG_fail;
2636 temp2 = true;
2637 }
2638 {
2639 PyThreadState* __tstate = wxPyBeginAllowThreads();
2640 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2641
2642 wxPyEndAllowThreads(__tstate);
2643 if (PyErr_Occurred()) SWIG_fail;
2644 }
2645 resultobj = PyInt_FromLong((long)result);
2646 {
2647 if (temp2)
2648 delete arg2;
2649 }
2650 return resultobj;
2651 fail:
2652 {
2653 if (temp2)
2654 delete arg2;
2655 }
2656 return NULL;
2657}
2658
2659
2660static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2661 PyObject *resultobj;
2662 wxBitmap *arg1 = (wxBitmap *) 0 ;
2663 wxIcon *arg2 = 0 ;
2664 bool result;
2665 PyObject * obj0 = 0 ;
2666 PyObject * obj1 = 0 ;
2667 char *kwnames[] = {
2668 (char *) "self",(char *) "icon", NULL
2669 };
2670
2671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2673 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2674 if (arg2 == NULL) {
2675 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2676 }
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 resultobj = PyInt_FromLong((long)result);
2685 return resultobj;
2686 fail:
2687 return NULL;
2688}
2689
2690
2691static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxBitmap *arg1 = (wxBitmap *) 0 ;
2694 int arg2 ;
2695 PyObject * obj0 = 0 ;
2696 char *kwnames[] = {
2697 (char *) "self",(char *) "height", NULL
2698 };
2699
2700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2702 {
2703 PyThreadState* __tstate = wxPyBeginAllowThreads();
2704 (arg1)->SetHeight(arg2);
2705
2706 wxPyEndAllowThreads(__tstate);
2707 if (PyErr_Occurred()) SWIG_fail;
2708 }
2709 Py_INCREF(Py_None); resultobj = Py_None;
2710 return resultobj;
2711 fail:
2712 return NULL;
2713}
2714
2715
2716static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject *resultobj;
2718 wxBitmap *arg1 = (wxBitmap *) 0 ;
2719 int arg2 ;
2720 PyObject * obj0 = 0 ;
2721 char *kwnames[] = {
2722 (char *) "self",(char *) "width", NULL
2723 };
2724
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2727 {
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 (arg1)->SetWidth(arg2);
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 Py_INCREF(Py_None); resultobj = Py_None;
2735 return resultobj;
2736 fail:
2737 return NULL;
2738}
2739
2740
2741static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 wxBitmap *arg1 = (wxBitmap *) 0 ;
2744 int arg2 ;
2745 PyObject * obj0 = 0 ;
2746 char *kwnames[] = {
2747 (char *) "self",(char *) "depth", NULL
2748 };
2749
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 (arg1)->SetDepth(arg2);
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 Py_INCREF(Py_None); resultobj = Py_None;
2760 return resultobj;
2761 fail:
2762 return NULL;
2763}
2764
2765
2766static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2767 PyObject *obj;
2768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2769 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2770 Py_INCREF(obj);
2771 return Py_BuildValue((char *)"");
2772}
2773static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2774 PyObject *resultobj;
2775 wxBitmap *arg1 = 0 ;
2776 wxMask *result;
2777 PyObject * obj0 = 0 ;
2778 char *kwnames[] = {
2779 (char *) "bitmap", NULL
2780 };
2781
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2784 if (arg1 == NULL) {
2785 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2786 }
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2790
2791 wxPyEndAllowThreads(__tstate);
2792 if (PyErr_Occurred()) SWIG_fail;
2793 }
2794 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2795 return resultobj;
2796 fail:
2797 return NULL;
2798}
2799
2800
2801static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2802 PyObject *resultobj;
2803 wxBitmap *arg1 = 0 ;
2804 wxColour *arg2 = 0 ;
2805 wxMask *result;
2806 wxColour temp2 ;
2807 PyObject * obj0 = 0 ;
2808 PyObject * obj1 = 0 ;
2809 char *kwnames[] = {
2810 (char *) "bitmap",(char *) "colour", NULL
2811 };
2812
2813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2815 if (arg1 == NULL) {
2816 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2817 }
2818 {
2819 arg2 = &temp2;
2820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2821 }
2822 {
2823 PyThreadState* __tstate = wxPyBeginAllowThreads();
2824 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2825
2826 wxPyEndAllowThreads(__tstate);
2827 if (PyErr_Occurred()) SWIG_fail;
2828 }
2829 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2830 return resultobj;
2831 fail:
2832 return NULL;
2833}
2834
2835
2836static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2837 PyObject *obj;
2838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2839 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2840 Py_INCREF(obj);
2841 return Py_BuildValue((char *)"");
2842}
2843static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject *resultobj;
2845 wxString *arg1 = 0 ;
2846 long arg2 ;
2847 int arg3 = (int) -1 ;
2848 int arg4 = (int) -1 ;
2849 wxIcon *result;
2850 bool temp1 = false ;
2851 PyObject * obj0 = 0 ;
2852 char *kwnames[] = {
2853 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2854 };
2855
2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2857 {
2858 arg1 = wxString_in_helper(obj0);
2859 if (arg1 == NULL) SWIG_fail;
2860 temp1 = true;
2861 }
2862 {
2863 PyThreadState* __tstate = wxPyBeginAllowThreads();
2864 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
2865
2866 wxPyEndAllowThreads(__tstate);
2867 if (PyErr_Occurred()) SWIG_fail;
2868 }
2869 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2870 {
2871 if (temp1)
2872 delete arg1;
2873 }
2874 return resultobj;
2875 fail:
2876 {
2877 if (temp1)
2878 delete arg1;
2879 }
2880 return NULL;
2881}
2882
2883
2884static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2885 PyObject *resultobj;
2886 wxIcon *arg1 = (wxIcon *) 0 ;
2887 PyObject * obj0 = 0 ;
2888 char *kwnames[] = {
2889 (char *) "self", NULL
2890 };
2891
2892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 delete arg1;
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) SWIG_fail;
2900 }
2901 Py_INCREF(Py_None); resultobj = Py_None;
2902 return resultobj;
2903 fail:
2904 return NULL;
2905}
2906
2907
2908static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2909 PyObject *resultobj;
2910 wxIcon *result;
2911 char *kwnames[] = {
2912 NULL
2913 };
2914
2915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 result = (wxIcon *)new wxIcon();
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2924 return resultobj;
2925 fail:
2926 return NULL;
2927}
2928
2929
2930static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject *resultobj;
2932 wxIconLocation *arg1 = 0 ;
2933 wxIcon *result;
2934 PyObject * obj0 = 0 ;
2935 char *kwnames[] = {
2936 (char *) "loc", NULL
2937 };
2938
2939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2941 if (arg1 == NULL) {
2942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2943 }
2944 {
2945 PyThreadState* __tstate = wxPyBeginAllowThreads();
2946 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2947
2948 wxPyEndAllowThreads(__tstate);
2949 if (PyErr_Occurred()) SWIG_fail;
2950 }
2951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2952 return resultobj;
2953 fail:
2954 return NULL;
2955}
2956
2957
2958static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2959 PyObject *resultobj;
2960 wxBitmap *arg1 = 0 ;
2961 wxIcon *result;
2962 PyObject * obj0 = 0 ;
2963 char *kwnames[] = {
2964 (char *) "bmp", NULL
2965 };
2966
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2969 if (arg1 == NULL) {
2970 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2971 }
2972 {
2973 PyThreadState* __tstate = wxPyBeginAllowThreads();
2974 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2975
2976 wxPyEndAllowThreads(__tstate);
2977 if (PyErr_Occurred()) SWIG_fail;
2978 }
2979 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2980 return resultobj;
2981 fail:
2982 return NULL;
2983}
2984
2985
2986static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2987 PyObject *resultobj;
2988 PyObject *arg1 = (PyObject *) 0 ;
2989 wxIcon *result;
2990 PyObject * obj0 = 0 ;
2991 char *kwnames[] = {
2992 (char *) "listOfStrings", NULL
2993 };
2994
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
2996 arg1 = obj0;
2997 {
2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
2999 result = (wxIcon *)new_wxIcon(arg1);
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3005 return resultobj;
3006 fail:
3007 return NULL;
3008}
3009
3010
3011static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3012 PyObject *resultobj;
3013 wxIcon *arg1 = (wxIcon *) 0 ;
3014 bool result;
3015 PyObject * obj0 = 0 ;
3016 char *kwnames[] = {
3017 (char *) "self", NULL
3018 };
3019
3020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3022 {
3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
3024 result = (bool)(arg1)->Ok();
3025
3026 wxPyEndAllowThreads(__tstate);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 resultobj = PyInt_FromLong((long)result);
3030 return resultobj;
3031 fail:
3032 return NULL;
3033}
3034
3035
3036static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3037 PyObject *resultobj;
3038 wxIcon *arg1 = (wxIcon *) 0 ;
3039 int result;
3040 PyObject * obj0 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "self", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 result = (int)(arg1)->GetWidth();
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 resultobj = PyInt_FromLong((long)result);
3055 return resultobj;
3056 fail:
3057 return NULL;
3058}
3059
3060
3061static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxIcon *arg1 = (wxIcon *) 0 ;
3064 int result;
3065 PyObject * obj0 = 0 ;
3066 char *kwnames[] = {
3067 (char *) "self", NULL
3068 };
3069
3070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3072 {
3073 PyThreadState* __tstate = wxPyBeginAllowThreads();
3074 result = (int)(arg1)->GetHeight();
3075
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) SWIG_fail;
3078 }
3079 resultobj = PyInt_FromLong((long)result);
3080 return resultobj;
3081 fail:
3082 return NULL;
3083}
3084
3085
3086static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3087 PyObject *resultobj;
3088 wxIcon *arg1 = (wxIcon *) 0 ;
3089 int result;
3090 PyObject * obj0 = 0 ;
3091 char *kwnames[] = {
3092 (char *) "self", NULL
3093 };
3094
3095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3097 {
3098 PyThreadState* __tstate = wxPyBeginAllowThreads();
3099 result = (int)(arg1)->GetDepth();
3100
3101 wxPyEndAllowThreads(__tstate);
3102 if (PyErr_Occurred()) SWIG_fail;
3103 }
3104 resultobj = PyInt_FromLong((long)result);
3105 return resultobj;
3106 fail:
3107 return NULL;
3108}
3109
3110
3111static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3112 PyObject *resultobj;
3113 wxIcon *arg1 = (wxIcon *) 0 ;
3114 int arg2 ;
3115 PyObject * obj0 = 0 ;
3116 char *kwnames[] = {
3117 (char *) "self",(char *) "w", NULL
3118 };
3119
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
3124 (arg1)->SetWidth(arg2);
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
3129 Py_INCREF(Py_None); resultobj = Py_None;
3130 return resultobj;
3131 fail:
3132 return NULL;
3133}
3134
3135
3136static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3137 PyObject *resultobj;
3138 wxIcon *arg1 = (wxIcon *) 0 ;
3139 int arg2 ;
3140 PyObject * obj0 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self",(char *) "h", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3147 {
3148 PyThreadState* __tstate = wxPyBeginAllowThreads();
3149 (arg1)->SetHeight(arg2);
3150
3151 wxPyEndAllowThreads(__tstate);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 Py_INCREF(Py_None); resultobj = Py_None;
3155 return resultobj;
3156 fail:
3157 return NULL;
3158}
3159
3160
3161static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject *resultobj;
3163 wxIcon *arg1 = (wxIcon *) 0 ;
3164 int arg2 ;
3165 PyObject * obj0 = 0 ;
3166 char *kwnames[] = {
3167 (char *) "self",(char *) "d", NULL
3168 };
3169
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3172 {
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 (arg1)->SetDepth(arg2);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 Py_INCREF(Py_None); resultobj = Py_None;
3180 return resultobj;
3181 fail:
3182 return NULL;
3183}
3184
3185
3186static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject *resultobj;
3188 wxIcon *arg1 = (wxIcon *) 0 ;
3189 wxBitmap *arg2 = 0 ;
3190 PyObject * obj0 = 0 ;
3191 PyObject * obj1 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "self",(char *) "bmp", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3199 if (arg2 == NULL) {
3200 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3201 }
3202 {
3203 PyThreadState* __tstate = wxPyBeginAllowThreads();
3204 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3205
3206 wxPyEndAllowThreads(__tstate);
3207 if (PyErr_Occurred()) SWIG_fail;
3208 }
3209 Py_INCREF(Py_None); resultobj = Py_None;
3210 return resultobj;
3211 fail:
3212 return NULL;
3213}
3214
3215
3216static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3217 PyObject *obj;
3218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3219 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3220 Py_INCREF(obj);
3221 return Py_BuildValue((char *)"");
3222}
3223static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj;
3225 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3226 int arg2 = (int) 0 ;
3227 wxIconLocation *result;
3228 PyObject * obj0 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "filename",(char *) "num", NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3234 if (obj0) {
3235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3236 }
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3245 return resultobj;
3246 fail:
3247 return NULL;
3248}
3249
3250
3251static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3252 PyObject *resultobj;
3253 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3254 PyObject * obj0 = 0 ;
3255 char *kwnames[] = {
3256 (char *) "self", NULL
3257 };
3258
3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3261 {
3262 PyThreadState* __tstate = wxPyBeginAllowThreads();
3263 delete arg1;
3264
3265 wxPyEndAllowThreads(__tstate);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 Py_INCREF(Py_None); resultobj = Py_None;
3269 return resultobj;
3270 fail:
3271 return NULL;
3272}
3273
3274
3275static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3276 PyObject *resultobj;
3277 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3278 bool result;
3279 PyObject * obj0 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "self", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 resultobj = PyInt_FromLong((long)result);
3294 return resultobj;
3295 fail:
3296 return NULL;
3297}
3298
3299
3300static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3303 wxString *arg2 = 0 ;
3304 bool temp2 = false ;
3305 PyObject * obj0 = 0 ;
3306 PyObject * obj1 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self",(char *) "filename", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3313 {
3314 arg2 = wxString_in_helper(obj1);
3315 if (arg2 == NULL) SWIG_fail;
3316 temp2 = true;
3317 }
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 (arg1)->SetFileName((wxString const &)*arg2);
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 Py_INCREF(Py_None); resultobj = Py_None;
3326 {
3327 if (temp2)
3328 delete arg2;
3329 }
3330 return resultobj;
3331 fail:
3332 {
3333 if (temp2)
3334 delete arg2;
3335 }
3336 return NULL;
3337}
3338
3339
3340static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3341 PyObject *resultobj;
3342 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3343 wxString *result;
3344 PyObject * obj0 = 0 ;
3345 char *kwnames[] = {
3346 (char *) "self", NULL
3347 };
3348
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3351 {
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 {
3354 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3355 result = (wxString *) &_result_ref;
3356 }
3357
3358 wxPyEndAllowThreads(__tstate);
3359 if (PyErr_Occurred()) SWIG_fail;
3360 }
3361 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0);
3362 return resultobj;
3363 fail:
3364 return NULL;
3365}
3366
3367
3368static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject *resultobj;
3370 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3371 int arg2 ;
3372 PyObject * obj0 = 0 ;
3373 char *kwnames[] = {
3374 (char *) "self",(char *) "num", NULL
3375 };
3376
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 wxIconLocation_SetIndex(arg1,arg2);
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) SWIG_fail;
3385 }
3386 Py_INCREF(Py_None); resultobj = Py_None;
3387 return resultobj;
3388 fail:
3389 return NULL;
3390}
3391
3392
3393static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3394 PyObject *resultobj;
3395 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3396 int result;
3397 PyObject * obj0 = 0 ;
3398 char *kwnames[] = {
3399 (char *) "self", NULL
3400 };
3401
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3404 {
3405 PyThreadState* __tstate = wxPyBeginAllowThreads();
3406 result = (int)wxIconLocation_GetIndex(arg1);
3407
3408 wxPyEndAllowThreads(__tstate);
3409 if (PyErr_Occurred()) SWIG_fail;
3410 }
3411 resultobj = PyInt_FromLong((long)result);
3412 return resultobj;
3413 fail:
3414 return NULL;
3415}
3416
3417
3418static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3419 PyObject *obj;
3420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3421 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3422 Py_INCREF(obj);
3423 return Py_BuildValue((char *)"");
3424}
3425static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxIconBundle *result;
3428 char *kwnames[] = {
3429 NULL
3430 };
3431
3432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 result = (wxIconBundle *)new wxIconBundle();
3436
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 }
3440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3441 return resultobj;
3442 fail:
3443 return NULL;
3444}
3445
3446
3447static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj;
3449 wxString *arg1 = 0 ;
3450 long arg2 ;
3451 wxIconBundle *result;
3452 bool temp1 = false ;
3453 PyObject * obj0 = 0 ;
3454 char *kwnames[] = {
3455 (char *) "file",(char *) "type", NULL
3456 };
3457
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3459 {
3460 arg1 = wxString_in_helper(obj0);
3461 if (arg1 == NULL) SWIG_fail;
3462 temp1 = true;
3463 }
3464 {
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3467
3468 wxPyEndAllowThreads(__tstate);
3469 if (PyErr_Occurred()) SWIG_fail;
3470 }
3471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3472 {
3473 if (temp1)
3474 delete arg1;
3475 }
3476 return resultobj;
3477 fail:
3478 {
3479 if (temp1)
3480 delete arg1;
3481 }
3482 return NULL;
3483}
3484
3485
3486static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxIcon *arg1 = 0 ;
3489 wxIconBundle *result;
3490 PyObject * obj0 = 0 ;
3491 char *kwnames[] = {
3492 (char *) "icon", NULL
3493 };
3494
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3497 if (arg1 == NULL) {
3498 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3499 }
3500 {
3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
3502 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3503
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3508 return resultobj;
3509 fail:
3510 return NULL;
3511}
3512
3513
3514static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3515 PyObject *resultobj;
3516 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3517 PyObject * obj0 = 0 ;
3518 char *kwnames[] = {
3519 (char *) "self", NULL
3520 };
3521
3522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 delete arg1;
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 Py_INCREF(Py_None); resultobj = Py_None;
3532 return resultobj;
3533 fail:
3534 return NULL;
3535}
3536
3537
3538static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj;
3540 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3541 wxIcon *arg2 = 0 ;
3542 PyObject * obj0 = 0 ;
3543 PyObject * obj1 = 0 ;
3544 char *kwnames[] = {
3545 (char *) "self",(char *) "icon", NULL
3546 };
3547
3548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3550 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3551 if (arg2 == NULL) {
3552 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3553 }
3554 {
3555 PyThreadState* __tstate = wxPyBeginAllowThreads();
3556 (arg1)->AddIcon((wxIcon const &)*arg2);
3557
3558 wxPyEndAllowThreads(__tstate);
3559 if (PyErr_Occurred()) SWIG_fail;
3560 }
3561 Py_INCREF(Py_None); resultobj = Py_None;
3562 return resultobj;
3563 fail:
3564 return NULL;
3565}
3566
3567
3568static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3569 PyObject *resultobj;
3570 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3571 wxString *arg2 = 0 ;
3572 long arg3 ;
3573 bool temp2 = false ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 char *kwnames[] = {
3577 (char *) "self",(char *) "file",(char *) "type", NULL
3578 };
3579
3580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3582 {
3583 arg2 = wxString_in_helper(obj1);
3584 if (arg2 == NULL) SWIG_fail;
3585 temp2 = true;
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 Py_INCREF(Py_None); resultobj = Py_None;
3595 {
3596 if (temp2)
3597 delete arg2;
3598 }
3599 return resultobj;
3600 fail:
3601 {
3602 if (temp2)
3603 delete arg2;
3604 }
3605 return NULL;
3606}
3607
3608
3609static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj;
3611 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3612 wxSize *arg2 = 0 ;
3613 wxIcon *result;
3614 wxSize temp2 ;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 char *kwnames[] = {
3618 (char *) "self",(char *) "size", NULL
3619 };
3620
3621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3623 {
3624 arg2 = &temp2;
3625 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3626 }
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 {
3630 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3631 result = (wxIcon *) &_result_ref;
3632 }
3633
3634 wxPyEndAllowThreads(__tstate);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3638 return resultobj;
3639 fail:
3640 return NULL;
3641}
3642
3643
3644static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3645 PyObject *obj;
3646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3647 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3648 Py_INCREF(obj);
3649 return Py_BuildValue((char *)"");
3650}
3651static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxString *arg1 = (wxString *) 0 ;
3654 long arg2 ;
3655 int arg3 = (int) 0 ;
3656 int arg4 = (int) 0 ;
3657 wxCursor *result;
3658 PyObject * obj0 = 0 ;
3659 char *kwnames[] = {
3660 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3661 };
3662
3663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3668
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3673 return resultobj;
3674 fail:
3675 return NULL;
3676}
3677
3678
3679static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3680 PyObject *resultobj;
3681 wxCursor *arg1 = (wxCursor *) 0 ;
3682 PyObject * obj0 = 0 ;
3683 char *kwnames[] = {
3684 (char *) "self", NULL
3685 };
3686
3687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 delete arg1;
3692
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 Py_INCREF(Py_None); resultobj = Py_None;
3697 return resultobj;
3698 fail:
3699 return NULL;
3700}
3701
3702
3703static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3704 PyObject *resultobj;
3705 int arg1 ;
3706 wxCursor *result;
3707 char *kwnames[] = {
3708 (char *) "id", NULL
3709 };
3710
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (wxCursor *)new wxCursor(arg1);
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3720 return resultobj;
3721 fail:
3722 return NULL;
3723}
3724
3725
3726static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3727 PyObject *resultobj;
3728 wxImage *arg1 = 0 ;
3729 wxCursor *result;
3730 PyObject * obj0 = 0 ;
3731 char *kwnames[] = {
3732 (char *) "image", NULL
3733 };
3734
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3737 if (arg1 == NULL) {
3738 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3739 }
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3748 return resultobj;
3749 fail:
3750 return NULL;
3751}
3752
3753
3754static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 PyObject *arg1 = (PyObject *) 0 ;
3757 int arg2 ;
3758 int arg3 ;
3759 int arg4 = (int) -1 ;
3760 int arg5 = (int) -1 ;
3761 PyObject *arg6 = (PyObject *) 0 ;
3762 wxCursor *result;
3763 PyObject * obj0 = 0 ;
3764 PyObject * obj5 = 0 ;
3765 char *kwnames[] = {
3766 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3770 arg1 = obj0;
3771 if (obj5) {
3772 arg6 = obj5;
3773 }
3774 {
3775 PyThreadState* __tstate = wxPyBeginAllowThreads();
3776 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3777
3778 wxPyEndAllowThreads(__tstate);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 }
3781 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3782 return resultobj;
3783 fail:
3784 return NULL;
3785}
3786
3787
3788static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3789 PyObject *resultobj;
3790 wxCursor *arg1 = (wxCursor *) 0 ;
3791 bool result;
3792 PyObject * obj0 = 0 ;
3793 char *kwnames[] = {
3794 (char *) "self", NULL
3795 };
3796
3797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 result = (bool)(arg1)->Ok();
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = PyInt_FromLong((long)result);
3807 return resultobj;
3808 fail:
3809 return NULL;
3810}
3811
3812
3813static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3814 PyObject *obj;
3815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3816 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3817 Py_INCREF(obj);
3818 return Py_BuildValue((char *)"");
3819}
3820static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj;
3822 wxCoord arg1 = (wxCoord) 0 ;
3823 wxCoord arg2 = (wxCoord) 0 ;
3824 wxCoord arg3 = (wxCoord) 0 ;
3825 wxCoord arg4 = (wxCoord) 0 ;
3826 wxRegion *result;
3827 char *kwnames[] = {
3828 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3829 };
3830
3831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3840 return resultobj;
3841 fail:
3842 return NULL;
3843}
3844
3845
3846static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj;
3848 wxBitmap *arg1 = 0 ;
3849 wxColour const &arg2_defvalue = wxNullColour ;
3850 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3851 int arg3 = (int) 0 ;
3852 wxRegion *result;
3853 wxColour temp2 ;
3854 PyObject * obj0 = 0 ;
3855 PyObject * obj1 = 0 ;
3856 char *kwnames[] = {
3857 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3858 };
3859
3860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3862 if (arg1 == NULL) {
3863 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3864 }
3865 if (obj1) {
3866 {
3867 arg2 = &temp2;
3868 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3869 }
3870 }
3871 {
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3879 return resultobj;
3880 fail:
3881 return NULL;
3882}
3883
3884
3885static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3886 PyObject *resultobj;
3887 int arg1 ;
3888 wxPoint *arg2 = (wxPoint *) 0 ;
3889 int arg3 = (int) wxWINDING_RULE ;
3890 wxRegion *result;
3891 PyObject * obj0 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "points",(char *) "fillStyle", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3897 {
3898 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3899 if (arg2 == NULL) SWIG_fail;
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3909 {
3910 if (arg2) delete [] arg2;
3911 }
3912 return resultobj;
3913 fail:
3914 {
3915 if (arg2) delete [] arg2;
3916 }
3917 return NULL;
3918}
3919
3920
3921static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxRegion *arg1 = (wxRegion *) 0 ;
3924 PyObject * obj0 = 0 ;
3925 char *kwnames[] = {
3926 (char *) "self", NULL
3927 };
3928
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 delete arg1;
3934
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 Py_INCREF(Py_None); resultobj = Py_None;
3939 return resultobj;
3940 fail:
3941 return NULL;
3942}
3943
3944
3945static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3946 PyObject *resultobj;
3947 wxRegion *arg1 = (wxRegion *) 0 ;
3948 PyObject * obj0 = 0 ;
3949 char *kwnames[] = {
3950 (char *) "self", NULL
3951 };
3952
3953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
3954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3955 {
3956 PyThreadState* __tstate = wxPyBeginAllowThreads();
3957 (arg1)->Clear();
3958
3959 wxPyEndAllowThreads(__tstate);
3960 if (PyErr_Occurred()) SWIG_fail;
3961 }
3962 Py_INCREF(Py_None); resultobj = Py_None;
3963 return resultobj;
3964 fail:
3965 return NULL;
3966}
3967
3968
3969static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
3970 PyObject *resultobj;
3971 wxRegion *arg1 = (wxRegion *) 0 ;
3972 wxCoord arg2 ;
3973 wxCoord arg3 ;
3974 int result;
3975 PyObject * obj0 = 0 ;
3976 char *kwnames[] = {
3977 (char *) "self",(char *) "x",(char *) "y", NULL
3978 };
3979
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
3981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3982 {
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (int)(arg1)->Contains(arg2,arg3);
3985
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) SWIG_fail;
3988 }
3989 resultobj = PyInt_FromLong((long)result);
3990 return resultobj;
3991 fail:
3992 return NULL;
3993}
3994
3995
3996static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject *resultobj;
3998 wxRegion *arg1 = (wxRegion *) 0 ;
3999 wxPoint *arg2 = 0 ;
4000 int result;
4001 wxPoint temp2 ;
4002 PyObject * obj0 = 0 ;
4003 PyObject * obj1 = 0 ;
4004 char *kwnames[] = {
4005 (char *) "self",(char *) "pt", NULL
4006 };
4007
4008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4010 {
4011 arg2 = &temp2;
4012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = PyInt_FromLong((long)result);
4022 return resultobj;
4023 fail:
4024 return NULL;
4025}
4026
4027
4028static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj;
4030 wxRegion *arg1 = (wxRegion *) 0 ;
4031 wxRect *arg2 = 0 ;
4032 int result;
4033 wxRect temp2 ;
4034 PyObject * obj0 = 0 ;
4035 PyObject * obj1 = 0 ;
4036 char *kwnames[] = {
4037 (char *) "self",(char *) "rect", NULL
4038 };
4039
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4042 {
4043 arg2 = &temp2;
4044 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4045 }
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4049
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 resultobj = PyInt_FromLong((long)result);
4054 return resultobj;
4055 fail:
4056 return NULL;
4057}
4058
4059
4060static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4061 PyObject *resultobj;
4062 wxRegion *arg1 = (wxRegion *) 0 ;
4063 wxCoord arg2 ;
4064 wxCoord arg3 ;
4065 wxCoord arg4 ;
4066 wxCoord arg5 ;
4067 int result;
4068 PyObject * obj0 = 0 ;
4069 char *kwnames[] = {
4070 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4078
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 resultobj = PyInt_FromLong((long)result);
4083 return resultobj;
4084 fail:
4085 return NULL;
4086}
4087
4088
4089static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4090 PyObject *resultobj;
4091 wxRegion *arg1 = (wxRegion *) 0 ;
4092 wxRect result;
4093 PyObject * obj0 = 0 ;
4094 char *kwnames[] = {
4095 (char *) "self", NULL
4096 };
4097
4098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4100 {
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
4102 result = (arg1)->GetBox();
4103
4104 wxPyEndAllowThreads(__tstate);
4105 if (PyErr_Occurred()) SWIG_fail;
4106 }
4107 {
4108 wxRect * resultptr;
4109 resultptr = new wxRect((wxRect &) result);
4110 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4111 }
4112 return resultobj;
4113 fail:
4114 return NULL;
4115}
4116
4117
4118static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4119 PyObject *resultobj;
4120 wxRegion *arg1 = (wxRegion *) 0 ;
4121 wxCoord arg2 ;
4122 wxCoord arg3 ;
4123 wxCoord arg4 ;
4124 wxCoord arg5 ;
4125 bool result;
4126 PyObject * obj0 = 0 ;
4127 char *kwnames[] = {
4128 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4129 };
4130
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 resultobj = PyInt_FromLong((long)result);
4141 return resultobj;
4142 fail:
4143 return NULL;
4144}
4145
4146
4147static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4148 PyObject *resultobj;
4149 wxRegion *arg1 = (wxRegion *) 0 ;
4150 wxRect *arg2 = 0 ;
4151 bool result;
4152 wxRect temp2 ;
4153 PyObject * obj0 = 0 ;
4154 PyObject * obj1 = 0 ;
4155 char *kwnames[] = {
4156 (char *) "self",(char *) "rect", NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4161 {
4162 arg2 = &temp2;
4163 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4164 }
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4168
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = PyInt_FromLong((long)result);
4173 return resultobj;
4174 fail:
4175 return NULL;
4176}
4177
4178
4179static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4180 PyObject *resultobj;
4181 wxRegion *arg1 = (wxRegion *) 0 ;
4182 wxRegion *arg2 = 0 ;
4183 bool result;
4184 PyObject * obj0 = 0 ;
4185 PyObject * obj1 = 0 ;
4186 char *kwnames[] = {
4187 (char *) "self",(char *) "region", NULL
4188 };
4189
4190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4192 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4193 if (arg2 == NULL) {
4194 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4195 }
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4199
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = PyInt_FromLong((long)result);
4204 return resultobj;
4205 fail:
4206 return NULL;
4207}
4208
4209
4210static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj;
4212 wxRegion *arg1 = (wxRegion *) 0 ;
4213 bool result;
4214 PyObject * obj0 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (bool)(arg1)->IsEmpty();
4224
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = PyInt_FromLong((long)result);
4229 return resultobj;
4230 fail:
4231 return NULL;
4232}
4233
4234
4235static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxRegion *arg1 = (wxRegion *) 0 ;
4238 wxCoord arg2 ;
4239 wxCoord arg3 ;
4240 wxCoord arg4 ;
4241 wxCoord arg5 ;
4242 bool result;
4243 PyObject * obj0 = 0 ;
4244 char *kwnames[] = {
4245 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4246 };
4247
4248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4250 {
4251 PyThreadState* __tstate = wxPyBeginAllowThreads();
4252 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4253
4254 wxPyEndAllowThreads(__tstate);
4255 if (PyErr_Occurred()) SWIG_fail;
4256 }
4257 resultobj = PyInt_FromLong((long)result);
4258 return resultobj;
4259 fail:
4260 return NULL;
4261}
4262
4263
4264static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4265 PyObject *resultobj;
4266 wxRegion *arg1 = (wxRegion *) 0 ;
4267 wxRect *arg2 = 0 ;
4268 bool result;
4269 wxRect temp2 ;
4270 PyObject * obj0 = 0 ;
4271 PyObject * obj1 = 0 ;
4272 char *kwnames[] = {
4273 (char *) "self",(char *) "rect", NULL
4274 };
4275
4276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4278 {
4279 arg2 = &temp2;
4280 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4281 }
4282 {
4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
4284 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4285
4286 wxPyEndAllowThreads(__tstate);
4287 if (PyErr_Occurred()) SWIG_fail;
4288 }
4289 resultobj = PyInt_FromLong((long)result);
4290 return resultobj;
4291 fail:
4292 return NULL;
4293}
4294
4295
4296static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4297 PyObject *resultobj;
4298 wxRegion *arg1 = (wxRegion *) 0 ;
4299 wxRegion *arg2 = 0 ;
4300 bool result;
4301 PyObject * obj0 = 0 ;
4302 PyObject * obj1 = 0 ;
4303 char *kwnames[] = {
4304 (char *) "self",(char *) "region", NULL
4305 };
4306
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4309 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4310 if (arg2 == NULL) {
4311 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4312 }
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4316
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 resultobj = PyInt_FromLong((long)result);
4321 return resultobj;
4322 fail:
4323 return NULL;
4324}
4325
4326
4327static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj;
4329 wxRegion *arg1 = (wxRegion *) 0 ;
4330 wxCoord arg2 ;
4331 wxCoord arg3 ;
4332 wxCoord arg4 ;
4333 wxCoord arg5 ;
4334 bool result;
4335 PyObject * obj0 = 0 ;
4336 char *kwnames[] = {
4337 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = PyInt_FromLong((long)result);
4350 return resultobj;
4351 fail:
4352 return NULL;
4353}
4354
4355
4356static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj;
4358 wxRegion *arg1 = (wxRegion *) 0 ;
4359 wxRect *arg2 = 0 ;
4360 bool result;
4361 wxRect temp2 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char *kwnames[] = {
4365 (char *) "self",(char *) "rect", NULL
4366 };
4367
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4370 {
4371 arg2 = &temp2;
4372 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4373 }
4374 {
4375 PyThreadState* __tstate = wxPyBeginAllowThreads();
4376 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4377
4378 wxPyEndAllowThreads(__tstate);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 resultobj = PyInt_FromLong((long)result);
4382 return resultobj;
4383 fail:
4384 return NULL;
4385}
4386
4387
4388static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj;
4390 wxRegion *arg1 = (wxRegion *) 0 ;
4391 wxRegion *arg2 = 0 ;
4392 bool result;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "self",(char *) "region", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4401 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4402 if (arg2 == NULL) {
4403 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4404 }
4405 {
4406 PyThreadState* __tstate = wxPyBeginAllowThreads();
4407 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4408
4409 wxPyEndAllowThreads(__tstate);
4410 if (PyErr_Occurred()) SWIG_fail;
4411 }
4412 resultobj = PyInt_FromLong((long)result);
4413 return resultobj;
4414 fail:
4415 return NULL;
4416}
4417
4418
4419static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4420 PyObject *resultobj;
4421 wxRegion *arg1 = (wxRegion *) 0 ;
4422 wxCoord arg2 ;
4423 wxCoord arg3 ;
4424 wxCoord arg4 ;
4425 wxCoord arg5 ;
4426 bool result;
4427 PyObject * obj0 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4434 {
4435 PyThreadState* __tstate = wxPyBeginAllowThreads();
4436 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4437
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 resultobj = PyInt_FromLong((long)result);
4442 return resultobj;
4443 fail:
4444 return NULL;
4445}
4446
4447
4448static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4449 PyObject *resultobj;
4450 wxRegion *arg1 = (wxRegion *) 0 ;
4451 wxRect *arg2 = 0 ;
4452 bool result;
4453 wxRect temp2 ;
4454 PyObject * obj0 = 0 ;
4455 PyObject * obj1 = 0 ;
4456 char *kwnames[] = {
4457 (char *) "self",(char *) "rect", NULL
4458 };
4459
4460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4462 {
4463 arg2 = &temp2;
4464 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4465 }
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 resultobj = PyInt_FromLong((long)result);
4474 return resultobj;
4475 fail:
4476 return NULL;
4477}
4478
4479
4480static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxRegion *arg1 = (wxRegion *) 0 ;
4483 wxRegion *arg2 = 0 ;
4484 bool result;
4485 PyObject * obj0 = 0 ;
4486 PyObject * obj1 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self",(char *) "region", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4493 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4494 if (arg2 == NULL) {
4495 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4496 }
4497 {
4498 PyThreadState* __tstate = wxPyBeginAllowThreads();
4499 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4500
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 resultobj = PyInt_FromLong((long)result);
4505 return resultobj;
4506 fail:
4507 return NULL;
4508}
4509
4510
4511static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4512 PyObject *resultobj;
4513 wxRegion *arg1 = (wxRegion *) 0 ;
4514 SwigValueWrapper< wxBitmap > result;
4515 PyObject * obj0 = 0 ;
4516 char *kwnames[] = {
4517 (char *) "self", NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (arg1)->ConvertToBitmap();
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 {
4530 wxBitmap * resultptr;
4531 resultptr = new wxBitmap((wxBitmap &) result);
4532 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4533 }
4534 return resultobj;
4535 fail:
4536 return NULL;
4537}
4538
4539
4540static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj;
4542 wxRegion *arg1 = (wxRegion *) 0 ;
4543 wxBitmap *arg2 = 0 ;
4544 wxColour const &arg3_defvalue = wxNullColour ;
4545 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4546 int arg4 = (int) 0 ;
4547 bool result;
4548 wxColour temp3 ;
4549 PyObject * obj0 = 0 ;
4550 PyObject * obj1 = 0 ;
4551 PyObject * obj2 = 0 ;
4552 char *kwnames[] = {
4553 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4554 };
4555
4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4558 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4559 if (arg2 == NULL) {
4560 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4561 }
4562 if (obj2) {
4563 {
4564 arg3 = &temp3;
4565 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4566 }
4567 }
4568 {
4569 PyThreadState* __tstate = wxPyBeginAllowThreads();
4570 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4571
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = PyInt_FromLong((long)result);
4576 return resultobj;
4577 fail:
4578 return NULL;
4579}
4580
4581
4582static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4583 PyObject *obj;
4584 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4585 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4586 Py_INCREF(obj);
4587 return Py_BuildValue((char *)"");
4588}
4589static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4590 PyObject *resultobj;
4591 wxRegion *arg1 = 0 ;
4592 wxRegionIterator *result;
4593 PyObject * obj0 = 0 ;
4594 char *kwnames[] = {
4595 (char *) "region", NULL
4596 };
4597
4598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4600 if (arg1 == NULL) {
4601 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4602 }
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4611 return resultobj;
4612 fail:
4613 return NULL;
4614}
4615
4616
4617static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4618 PyObject *resultobj;
4619 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4620 PyObject * obj0 = 0 ;
4621 char *kwnames[] = {
4622 (char *) "self", NULL
4623 };
4624
4625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 delete arg1;
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 Py_INCREF(Py_None); resultobj = Py_None;
4635 return resultobj;
4636 fail:
4637 return NULL;
4638}
4639
4640
4641static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj;
4643 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4644 wxCoord result;
4645 PyObject * obj0 = 0 ;
4646 char *kwnames[] = {
4647 (char *) "self", NULL
4648 };
4649
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4652 {
4653 PyThreadState* __tstate = wxPyBeginAllowThreads();
4654 result = (wxCoord)(arg1)->GetX();
4655
4656 wxPyEndAllowThreads(__tstate);
4657 if (PyErr_Occurred()) SWIG_fail;
4658 }
4659 resultobj = PyInt_FromLong((long)result);
4660 return resultobj;
4661 fail:
4662 return NULL;
4663}
4664
4665
4666static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj;
4668 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4669 wxCoord result;
4670 PyObject * obj0 = 0 ;
4671 char *kwnames[] = {
4672 (char *) "self", NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 result = (wxCoord)(arg1)->GetY();
4680
4681 wxPyEndAllowThreads(__tstate);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 resultobj = PyInt_FromLong((long)result);
4685 return resultobj;
4686 fail:
4687 return NULL;
4688}
4689
4690
4691static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4692 PyObject *resultobj;
4693 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4694 wxCoord result;
4695 PyObject * obj0 = 0 ;
4696 char *kwnames[] = {
4697 (char *) "self", NULL
4698 };
4699
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (wxCoord)(arg1)->GetW();
4705
4706 wxPyEndAllowThreads(__tstate);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 resultobj = PyInt_FromLong((long)result);
4710 return resultobj;
4711 fail:
4712 return NULL;
4713}
4714
4715
4716static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj;
4718 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4719 wxCoord result;
4720 PyObject * obj0 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "self", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (wxCoord)(arg1)->GetWidth();
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = PyInt_FromLong((long)result);
4735 return resultobj;
4736 fail:
4737 return NULL;
4738}
4739
4740
4741static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj;
4743 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4744 wxCoord result;
4745 PyObject * obj0 = 0 ;
4746 char *kwnames[] = {
4747 (char *) "self", NULL
4748 };
4749
4750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 result = (wxCoord)(arg1)->GetH();
4755
4756 wxPyEndAllowThreads(__tstate);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 resultobj = PyInt_FromLong((long)result);
4760 return resultobj;
4761 fail:
4762 return NULL;
4763}
4764
4765
4766static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj;
4768 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4769 wxCoord result;
4770 PyObject * obj0 = 0 ;
4771 char *kwnames[] = {
4772 (char *) "self", NULL
4773 };
4774
4775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 result = (wxCoord)(arg1)->GetHeight();
4780
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 resultobj = PyInt_FromLong((long)result);
4785 return resultobj;
4786 fail:
4787 return NULL;
4788}
4789
4790
4791static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4792 PyObject *resultobj;
4793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4794 wxRect result;
4795 PyObject * obj0 = 0 ;
4796 char *kwnames[] = {
4797 (char *) "self", NULL
4798 };
4799
4800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4802 {
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (arg1)->GetRect();
4805
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 {
4810 wxRect * resultptr;
4811 resultptr = new wxRect((wxRect &) result);
4812 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4813 }
4814 return resultobj;
4815 fail:
4816 return NULL;
4817}
4818
4819
4820static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj;
4822 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4823 bool result;
4824 PyObject * obj0 = 0 ;
4825 char *kwnames[] = {
4826 (char *) "self", NULL
4827 };
4828
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4831 {
4832 PyThreadState* __tstate = wxPyBeginAllowThreads();
4833 result = (bool)(arg1)->HaveRects();
4834
4835 wxPyEndAllowThreads(__tstate);
4836 if (PyErr_Occurred()) SWIG_fail;
4837 }
4838 resultobj = PyInt_FromLong((long)result);
4839 return resultobj;
4840 fail:
4841 return NULL;
4842}
4843
4844
4845static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject *resultobj;
4847 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4848 PyObject * obj0 = 0 ;
4849 char *kwnames[] = {
4850 (char *) "self", NULL
4851 };
4852
4853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 (arg1)->Reset();
4858
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 Py_INCREF(Py_None); resultobj = Py_None;
4863 return resultobj;
4864 fail:
4865 return NULL;
4866}
4867
4868
4869static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj;
4871 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4872 PyObject * obj0 = 0 ;
4873 char *kwnames[] = {
4874 (char *) "self", NULL
4875 };
4876
4877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 wxRegionIterator_Next(arg1);
4882
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 Py_INCREF(Py_None); resultobj = Py_None;
4887 return resultobj;
4888 fail:
4889 return NULL;
4890}
4891
4892
4893static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj;
4895 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4896 bool result;
4897 PyObject * obj0 = 0 ;
4898 char *kwnames[] = {
4899 (char *) "self", NULL
4900 };
4901
4902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (bool)wxRegionIterator___nonzero__(arg1);
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 resultobj = PyInt_FromLong((long)result);
4912 return resultobj;
4913 fail:
4914 return NULL;
4915}
4916
4917
4918static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4919 PyObject *obj;
4920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4921 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4922 Py_INCREF(obj);
4923 return Py_BuildValue((char *)"");
4924}
4925static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4926 PyObject *resultobj;
4927 wxNativeFontInfo *result;
4928 char *kwnames[] = {
4929 NULL
4930 };
4931
4932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 result = (wxNativeFontInfo *)new wxNativeFontInfo();
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
4941 return resultobj;
4942 fail:
4943 return NULL;
4944}
4945
4946
4947static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj;
4949 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4950 PyObject * obj0 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self", NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
4956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 delete arg1;
4960
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 Py_INCREF(Py_None); resultobj = Py_None;
4965 return resultobj;
4966 fail:
4967 return NULL;
4968}
4969
4970
4971static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4974 PyObject * obj0 = 0 ;
4975 char *kwnames[] = {
4976 (char *) "self", NULL
4977 };
4978
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 (arg1)->Init();
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 Py_INCREF(Py_None); resultobj = Py_None;
4989 return resultobj;
4990 fail:
4991 return NULL;
4992}
4993
4994
4995static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
4998 wxFont *arg2 = 0 ;
4999 PyObject * obj0 = 0 ;
5000 PyObject * obj1 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "self",(char *) "font", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5007 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5008 if (arg2 == NULL) {
5009 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5010 }
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 (arg1)->InitFromFont((wxFont const &)*arg2);
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 Py_INCREF(Py_None); resultobj = Py_None;
5019 return resultobj;
5020 fail:
5021 return NULL;
5022}
5023
5024
5025static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5028 int result;
5029 PyObject * obj0 = 0 ;
5030 char *kwnames[] = {
5031 (char *) "self", NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 resultobj = PyInt_FromLong((long)result);
5044 return resultobj;
5045 fail:
5046 return NULL;
5047}
5048
5049
5050static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5051 PyObject *resultobj;
5052 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5053 int result;
5054 PyObject * obj0 = 0 ;
5055 char *kwnames[] = {
5056 (char *) "self", NULL
5057 };
5058
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5061 {
5062 PyThreadState* __tstate = wxPyBeginAllowThreads();
5063 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5064
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = PyInt_FromLong((long)result);
5069 return resultobj;
5070 fail:
5071 return NULL;
5072}
5073
5074
5075static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj;
5077 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5078 int result;
5079 PyObject * obj0 = 0 ;
5080 char *kwnames[] = {
5081 (char *) "self", NULL
5082 };
5083
5084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = PyInt_FromLong((long)result);
5094 return resultobj;
5095 fail:
5096 return NULL;
5097}
5098
5099
5100static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5103 bool result;
5104 PyObject * obj0 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 resultobj = PyInt_FromLong((long)result);
5119 return resultobj;
5120 fail:
5121 return NULL;
5122}
5123
5124
5125static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5128 wxString result;
5129 PyObject * obj0 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5139
5140 wxPyEndAllowThreads(__tstate);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 }
5143 {
5144#if wxUSE_UNICODE
5145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5146#else
5147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5148#endif
5149 }
5150 return resultobj;
5151 fail:
5152 return NULL;
5153}
5154
5155
5156static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5157 PyObject *resultobj;
5158 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5159 int result;
5160 PyObject * obj0 = 0 ;
5161 char *kwnames[] = {
5162 (char *) "self", NULL
5163 };
5164
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = PyInt_FromLong((long)result);
5175 return resultobj;
5176 fail:
5177 return NULL;
5178}
5179
5180
5181static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj;
5183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5184 int result;
5185 PyObject * obj0 = 0 ;
5186 char *kwnames[] = {
5187 (char *) "self", NULL
5188 };
5189
5190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5195
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = PyInt_FromLong((long)result);
5200 return resultobj;
5201 fail:
5202 return NULL;
5203}
5204
5205
5206static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj;
5208 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5209 int arg2 ;
5210 PyObject * obj0 = 0 ;
5211 char *kwnames[] = {
5212 (char *) "self",(char *) "pointsize", NULL
5213 };
5214
5215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5217 {
5218 PyThreadState* __tstate = wxPyBeginAllowThreads();
5219 (arg1)->SetPointSize(arg2);
5220
5221 wxPyEndAllowThreads(__tstate);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 Py_INCREF(Py_None); resultobj = Py_None;
5225 return resultobj;
5226 fail:
5227 return NULL;
5228}
5229
5230
5231static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5232 PyObject *resultobj;
5233 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5234 int arg2 ;
5235 PyObject * obj0 = 0 ;
5236 char *kwnames[] = {
5237 (char *) "self",(char *) "style", NULL
5238 };
5239
5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 (arg1)->SetStyle((wxFontStyle )arg2);
5245
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 Py_INCREF(Py_None); resultobj = Py_None;
5250 return resultobj;
5251 fail:
5252 return NULL;
5253}
5254
5255
5256static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5257 PyObject *resultobj;
5258 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5259 int arg2 ;
5260 PyObject * obj0 = 0 ;
5261 char *kwnames[] = {
5262 (char *) "self",(char *) "weight", NULL
5263 };
5264
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 (arg1)->SetWeight((wxFontWeight )arg2);
5270
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 Py_INCREF(Py_None); resultobj = Py_None;
5275 return resultobj;
5276 fail:
5277 return NULL;
5278}
5279
5280
5281static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject *resultobj;
5283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5284 bool arg2 ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 char *kwnames[] = {
5288 (char *) "self",(char *) "underlined", NULL
5289 };
5290
5291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5293 arg2 = PyInt_AsLong(obj1) ? true : false;
5294 if (PyErr_Occurred()) SWIG_fail;
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 (arg1)->SetUnderlined(arg2);
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 Py_INCREF(Py_None); resultobj = Py_None;
5303 return resultobj;
5304 fail:
5305 return NULL;
5306}
5307
5308
5309static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5310 PyObject *resultobj;
5311 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5312 wxString arg2 ;
5313 wxString *argp2 ;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 char *kwnames[] = {
5317 (char *) "self",(char *) "facename", NULL
5318 };
5319
5320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5322 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5323 arg2 = *argp2;
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 (arg1)->SetFaceName(arg2);
5327
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 Py_INCREF(Py_None); resultobj = Py_None;
5332 return resultobj;
5333 fail:
5334 return NULL;
5335}
5336
5337
5338static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5341 int arg2 ;
5342 PyObject * obj0 = 0 ;
5343 char *kwnames[] = {
5344 (char *) "self",(char *) "family", NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5349 {
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 (arg1)->SetFamily((wxFontFamily )arg2);
5352
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 Py_INCREF(Py_None); resultobj = Py_None;
5357 return resultobj;
5358 fail:
5359 return NULL;
5360}
5361
5362
5363static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj;
5365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5366 int arg2 ;
5367 PyObject * obj0 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "encoding", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 (arg1)->SetEncoding((wxFontEncoding )arg2);
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 Py_INCREF(Py_None); resultobj = Py_None;
5382 return resultobj;
5383 fail:
5384 return NULL;
5385}
5386
5387
5388static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj;
5390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5391 wxString *arg2 = 0 ;
5392 bool result;
5393 bool temp2 = false ;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 char *kwnames[] = {
5397 (char *) "self",(char *) "s", NULL
5398 };
5399
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5402 {
5403 arg2 = wxString_in_helper(obj1);
5404 if (arg2 == NULL) SWIG_fail;
5405 temp2 = true;
5406 }
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = PyInt_FromLong((long)result);
5415 {
5416 if (temp2)
5417 delete arg2;
5418 }
5419 return resultobj;
5420 fail:
5421 {
5422 if (temp2)
5423 delete arg2;
5424 }
5425 return NULL;
5426}
5427
5428
5429static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5432 wxString result;
5433 PyObject * obj0 = 0 ;
5434 char *kwnames[] = {
5435 (char *) "self", NULL
5436 };
5437
5438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = ((wxNativeFontInfo const *)arg1)->ToString();
5443
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 {
5448#if wxUSE_UNICODE
5449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5450#else
5451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5452#endif
5453 }
5454 return resultobj;
5455 fail:
5456 return NULL;
5457}
5458
5459
5460static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5461 PyObject *resultobj;
5462 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5463 wxString result;
5464 PyObject * obj0 = 0 ;
5465 char *kwnames[] = {
5466 (char *) "self", NULL
5467 };
5468
5469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = wxNativeFontInfo___str__(arg1);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) SWIG_fail;
5477 }
5478 {
5479#if wxUSE_UNICODE
5480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5481#else
5482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5483#endif
5484 }
5485 return resultobj;
5486 fail:
5487 return NULL;
5488}
5489
5490
5491static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj;
5493 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5494 wxString *arg2 = 0 ;
5495 bool result;
5496 bool temp2 = false ;
5497 PyObject * obj0 = 0 ;
5498 PyObject * obj1 = 0 ;
5499 char *kwnames[] = {
5500 (char *) "self",(char *) "s", NULL
5501 };
5502
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5505 {
5506 arg2 = wxString_in_helper(obj1);
5507 if (arg2 == NULL) SWIG_fail;
5508 temp2 = true;
5509 }
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5513
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 resultobj = PyInt_FromLong((long)result);
5518 {
5519 if (temp2)
5520 delete arg2;
5521 }
5522 return resultobj;
5523 fail:
5524 {
5525 if (temp2)
5526 delete arg2;
5527 }
5528 return NULL;
5529}
5530
5531
5532static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj;
5534 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5535 wxString result;
5536 PyObject * obj0 = 0 ;
5537 char *kwnames[] = {
5538 (char *) "self", NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5546
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 {
5551#if wxUSE_UNICODE
5552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5553#else
5554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5555#endif
5556 }
5557 return resultobj;
5558 fail:
5559 return NULL;
5560}
5561
5562
5563static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5564 PyObject *obj;
5565 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5566 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5567 Py_INCREF(obj);
5568 return Py_BuildValue((char *)"");
5569}
5570static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj;
5572 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5573 wxString arg2 ;
5574 wxString *argp2 ;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 char *kwnames[] = {
5578 (char *) "self",(char *) "facename", NULL
5579 };
5580
5581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5583 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5584 arg2 = *argp2;
5585 if (arg1) (arg1)->facename = arg2;
5586
5587 Py_INCREF(Py_None); resultobj = Py_None;
5588 return resultobj;
5589 fail:
5590 return NULL;
5591}
5592
5593
5594static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5595 PyObject *resultobj;
5596 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5597 wxString result;
5598 PyObject * obj0 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "self", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5605 result = ((arg1)->facename);
5606
5607 {
5608#if wxUSE_UNICODE
5609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5610#else
5611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5612#endif
5613 }
5614 return resultobj;
5615 fail:
5616 return NULL;
5617}
5618
5619
5620static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5621 PyObject *resultobj;
5622 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5623 int arg2 ;
5624 PyObject * obj0 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "self",(char *) "encoding", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5631 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5632
5633 Py_INCREF(Py_None); resultobj = Py_None;
5634 return resultobj;
5635 fail:
5636 return NULL;
5637}
5638
5639
5640static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5641 PyObject *resultobj;
5642 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5643 int result;
5644 PyObject * obj0 = 0 ;
5645 char *kwnames[] = {
5646 (char *) "self", NULL
5647 };
5648
5649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5651 result = (int) ((arg1)->encoding);
5652
5653 resultobj = PyInt_FromLong((long)result);
5654 return resultobj;
5655 fail:
5656 return NULL;
5657}
5658
5659
5660static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj;
5662 wxNativeEncodingInfo *result;
5663 char *kwnames[] = {
5664 NULL
5665 };
5666
5667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5676 return resultobj;
5677 fail:
5678 return NULL;
5679}
5680
5681
5682static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5685 PyObject * obj0 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 delete arg1;
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 Py_INCREF(Py_None); resultobj = Py_None;
5700 return resultobj;
5701 fail:
5702 return NULL;
5703}
5704
5705
5706static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5709 wxString *arg2 = 0 ;
5710 bool result;
5711 bool temp2 = false ;
5712 PyObject * obj0 = 0 ;
5713 PyObject * obj1 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self",(char *) "s", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5720 {
5721 arg2 = wxString_in_helper(obj1);
5722 if (arg2 == NULL) SWIG_fail;
5723 temp2 = true;
5724 }
5725 {
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5728
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 resultobj = PyInt_FromLong((long)result);
5733 {
5734 if (temp2)
5735 delete arg2;
5736 }
5737 return resultobj;
5738 fail:
5739 {
5740 if (temp2)
5741 delete arg2;
5742 }
5743 return NULL;
5744}
5745
5746
5747static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject *resultobj;
5749 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5750 wxString result;
5751 PyObject * obj0 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 {
5766#if wxUSE_UNICODE
5767 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5768#else
5769 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5770#endif
5771 }
5772 return resultobj;
5773 fail:
5774 return NULL;
5775}
5776
5777
5778static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5779 PyObject *obj;
5780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5781 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5782 Py_INCREF(obj);
5783 return Py_BuildValue((char *)"");
5784}
5785static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 int arg1 ;
5788 wxNativeEncodingInfo *result;
5789 char *kwnames[] = {
5790 (char *) "encoding", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5794 {
5795 PyThreadState* __tstate = wxPyBeginAllowThreads();
5796 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5797
5798 wxPyEndAllowThreads(__tstate);
5799 if (PyErr_Occurred()) SWIG_fail;
5800 }
5801 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5802 return resultobj;
5803 fail:
5804 return NULL;
5805}
5806
5807
5808static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5809 PyObject *resultobj;
5810 wxNativeEncodingInfo *arg1 = 0 ;
5811 bool result;
5812 PyObject * obj0 = 0 ;
5813 char *kwnames[] = {
5814 (char *) "info", NULL
5815 };
5816
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5819 if (arg1 == NULL) {
5820 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5825
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = PyInt_FromLong((long)result);
5830 return resultobj;
5831 fail:
5832 return NULL;
5833}
5834
5835
5836static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj;
5838 wxFontMapper *result;
5839 char *kwnames[] = {
5840 NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 result = (wxFontMapper *)new wxFontMapper();
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5852 return resultobj;
5853 fail:
5854 return NULL;
5855}
5856
5857
5858static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj;
5860 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5861 PyObject * obj0 = 0 ;
5862 char *kwnames[] = {
5863 (char *) "self", NULL
5864 };
5865
5866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5868 {
5869 PyThreadState* __tstate = wxPyBeginAllowThreads();
5870 delete arg1;
5871
5872 wxPyEndAllowThreads(__tstate);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 Py_INCREF(Py_None); resultobj = Py_None;
5876 return resultobj;
5877 fail:
5878 return NULL;
5879}
5880
5881
5882static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5883 PyObject *resultobj;
5884 wxFontMapper *result;
5885 char *kwnames[] = {
5886 NULL
5887 };
5888
5889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 result = (wxFontMapper *)wxFontMapper::Get();
5893
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5898 return resultobj;
5899 fail:
5900 return NULL;
5901}
5902
5903
5904static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5905 PyObject *resultobj;
5906 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5907 wxFontMapper *result;
5908 PyObject * obj0 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "mapper", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5918
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5923 return resultobj;
5924 fail:
5925 return NULL;
5926}
5927
5928
5929static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj;
5931 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5932 wxString *arg2 = 0 ;
5933 bool arg3 = (bool) true ;
5934 int result;
5935 bool temp2 = false ;
5936 PyObject * obj0 = 0 ;
5937 PyObject * obj1 = 0 ;
5938 PyObject * obj2 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self",(char *) "charset",(char *) "interactive", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 {
5946 arg2 = wxString_in_helper(obj1);
5947 if (arg2 == NULL) SWIG_fail;
5948 temp2 = true;
5949 }
5950 if (obj2) {
5951 arg3 = PyInt_AsLong(obj2) ? true : false;
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = PyInt_FromLong((long)result);
5962 {
5963 if (temp2)
5964 delete arg2;
5965 }
5966 return resultobj;
5967 fail:
5968 {
5969 if (temp2)
5970 delete arg2;
5971 }
5972 return NULL;
5973}
5974
5975
5976static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 size_t result;
5979 char *kwnames[] = {
5980 NULL
5981 };
5982
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = PyInt_FromLong((long)result);
5992 return resultobj;
5993 fail:
5994 return NULL;
5995}
5996
5997
5998static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 size_t arg1 ;
6001 int result;
6002 PyObject * obj0 = 0 ;
6003 char *kwnames[] = {
6004 (char *) "n", NULL
6005 };
6006
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6008 arg1 = (size_t) PyInt_AsLong(obj0);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 result = (int)wxFontMapper::GetEncoding(arg1);
6013
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 resultobj = PyInt_FromLong((long)result);
6018 return resultobj;
6019 fail:
6020 return NULL;
6021}
6022
6023
6024static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6025 PyObject *resultobj;
6026 int arg1 ;
6027 wxString result;
6028 char *kwnames[] = {
6029 (char *) "encoding", NULL
6030 };
6031
6032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6036
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 {
6041#if wxUSE_UNICODE
6042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6043#else
6044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6045#endif
6046 }
6047 return resultobj;
6048 fail:
6049 return NULL;
6050}
6051
6052
6053static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj;
6055 int arg1 ;
6056 wxString result;
6057 char *kwnames[] = {
6058 (char *) "encoding", NULL
6059 };
6060
6061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 {
6070#if wxUSE_UNICODE
6071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6072#else
6073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6074#endif
6075 }
6076 return resultobj;
6077 fail:
6078 return NULL;
6079}
6080
6081
6082static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject *resultobj;
6084 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6085 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6086 PyObject * obj0 = 0 ;
6087 PyObject * obj1 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self",(char *) "config", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6094 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 (arg1)->SetConfig(arg2);
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 Py_INCREF(Py_None); resultobj = Py_None;
6103 return resultobj;
6104 fail:
6105 return NULL;
6106}
6107
6108
6109static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6112 wxString *arg2 = 0 ;
6113 bool temp2 = false ;
6114 PyObject * obj0 = 0 ;
6115 PyObject * obj1 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self",(char *) "prefix", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6122 {
6123 arg2 = wxString_in_helper(obj1);
6124 if (arg2 == NULL) SWIG_fail;
6125 temp2 = true;
6126 }
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 (arg1)->SetConfigPath((wxString const &)*arg2);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 Py_INCREF(Py_None); resultobj = Py_None;
6135 {
6136 if (temp2)
6137 delete arg2;
6138 }
6139 return resultobj;
6140 fail:
6141 {
6142 if (temp2)
6143 delete arg2;
6144 }
6145 return NULL;
6146}
6147
6148
6149static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6150 PyObject *resultobj;
6151 wxString result;
6152 char *kwnames[] = {
6153 NULL
6154 };
6155
6156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 result = wxFontMapper::GetDefaultConfigPath();
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) SWIG_fail;
6163 }
6164 {
6165#if wxUSE_UNICODE
6166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6167#else
6168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6169#endif
6170 }
6171 return resultobj;
6172 fail:
6173 return NULL;
6174}
6175
6176
6177static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj;
6179 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6180 int arg2 ;
6181 wxString const &arg3_defvalue = wxPyEmptyString ;
6182 wxString *arg3 = (wxString *) &arg3_defvalue ;
6183 bool arg4 = (bool) TRUE ;
6184 PyObject *result;
6185 bool temp3 = false ;
6186 PyObject * obj0 = 0 ;
6187 PyObject * obj2 = 0 ;
6188 PyObject * obj3 = 0 ;
6189 char *kwnames[] = {
6190 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6191 };
6192
6193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6195 if (obj2) {
6196 {
6197 arg3 = wxString_in_helper(obj2);
6198 if (arg3 == NULL) SWIG_fail;
6199 temp3 = true;
6200 }
6201 }
6202 if (obj3) {
6203 arg4 = PyInt_AsLong(obj3) ? true : false;
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6209
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 resultobj = result;
6214 {
6215 if (temp3)
6216 delete arg3;
6217 }
6218 return resultobj;
6219 fail:
6220 {
6221 if (temp3)
6222 delete arg3;
6223 }
6224 return NULL;
6225}
6226
6227
6228static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6229 PyObject *resultobj;
6230 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6231 int arg2 ;
6232 wxString const &arg3_defvalue = wxPyEmptyString ;
6233 wxString *arg3 = (wxString *) &arg3_defvalue ;
6234 bool result;
6235 bool temp3 = false ;
6236 PyObject * obj0 = 0 ;
6237 PyObject * obj2 = 0 ;
6238 char *kwnames[] = {
6239 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6240 };
6241
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6244 if (obj2) {
6245 {
6246 arg3 = wxString_in_helper(obj2);
6247 if (arg3 == NULL) SWIG_fail;
6248 temp3 = true;
6249 }
6250 }
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = PyInt_FromLong((long)result);
6259 {
6260 if (temp3)
6261 delete arg3;
6262 }
6263 return resultobj;
6264 fail:
6265 {
6266 if (temp3)
6267 delete arg3;
6268 }
6269 return NULL;
6270}
6271
6272
6273static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6276 wxWindow *arg2 = (wxWindow *) 0 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "self",(char *) "parent", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6285 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 (arg1)->SetDialogParent(arg2);
6289
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 Py_INCREF(Py_None); resultobj = Py_None;
6294 return resultobj;
6295 fail:
6296 return NULL;
6297}
6298
6299
6300static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6303 wxString *arg2 = 0 ;
6304 bool temp2 = false ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 char *kwnames[] = {
6308 (char *) "self",(char *) "title", NULL
6309 };
6310
6311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6313 {
6314 arg2 = wxString_in_helper(obj1);
6315 if (arg2 == NULL) SWIG_fail;
6316 temp2 = true;
6317 }
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->SetDialogTitle((wxString const &)*arg2);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 {
6327 if (temp2)
6328 delete arg2;
6329 }
6330 return resultobj;
6331 fail:
6332 {
6333 if (temp2)
6334 delete arg2;
6335 }
6336 return NULL;
6337}
6338
6339
6340static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6341 PyObject *obj;
6342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6343 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6344 Py_INCREF(obj);
6345 return Py_BuildValue((char *)"");
6346}
6347static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6348 PyObject *resultobj;
6349 int arg1 ;
6350 int arg2 ;
6351 int arg3 ;
6352 int arg4 ;
6353 bool arg5 = (bool) FALSE ;
6354 wxString const &arg6_defvalue = wxPyEmptyString ;
6355 wxString *arg6 = (wxString *) &arg6_defvalue ;
6356 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6357 wxFont *result;
6358 bool temp6 = false ;
6359 PyObject * obj4 = 0 ;
6360 PyObject * obj5 = 0 ;
6361 char *kwnames[] = {
6362 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6363 };
6364
6365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6366 if (obj4) {
6367 arg5 = PyInt_AsLong(obj4) ? true : false;
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 if (obj5) {
6371 {
6372 arg6 = wxString_in_helper(obj5);
6373 if (arg6 == NULL) SWIG_fail;
6374 temp6 = true;
6375 }
6376 }
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6385 {
6386 if (temp6)
6387 delete arg6;
6388 }
6389 return resultobj;
6390 fail:
6391 {
6392 if (temp6)
6393 delete arg6;
6394 }
6395 return NULL;
6396}
6397
6398
6399static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj;
6401 wxFont *arg1 = (wxFont *) 0 ;
6402 PyObject * obj0 = 0 ;
6403 char *kwnames[] = {
6404 (char *) "self", NULL
6405 };
6406
6407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 delete arg1;
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 Py_INCREF(Py_None); resultobj = Py_None;
6417 return resultobj;
6418 fail:
6419 return NULL;
6420}
6421
6422
6423static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj;
6425 wxNativeFontInfo *arg1 = 0 ;
6426 wxFont *result;
6427 PyObject * obj0 = 0 ;
6428 char *kwnames[] = {
6429 (char *) "info", NULL
6430 };
6431
6432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6434 if (arg1 == NULL) {
6435 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6436 }
6437 {
6438 PyThreadState* __tstate = wxPyBeginAllowThreads();
6439 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6440
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6445 return resultobj;
6446 fail:
6447 return NULL;
6448}
6449
6450
6451static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj;
6453 wxString *arg1 = 0 ;
6454 wxFont *result;
6455 bool temp1 = false ;
6456 PyObject * obj0 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "info", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6462 {
6463 arg1 = wxString_in_helper(obj0);
6464 if (arg1 == NULL) SWIG_fail;
6465 temp1 = true;
6466 }
6467 {
6468 PyThreadState* __tstate = wxPyBeginAllowThreads();
6469 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6470
6471 wxPyEndAllowThreads(__tstate);
6472 if (PyErr_Occurred()) SWIG_fail;
6473 }
6474 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6475 {
6476 if (temp1)
6477 delete arg1;
6478 }
6479 return resultobj;
6480 fail:
6481 {
6482 if (temp1)
6483 delete arg1;
6484 }
6485 return NULL;
6486}
6487
6488
6489static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6490 PyObject *resultobj;
6491 int arg1 ;
6492 int arg2 ;
6493 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6494 wxString const &arg4_defvalue = wxPyEmptyString ;
6495 wxString *arg4 = (wxString *) &arg4_defvalue ;
6496 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6497 wxFont *result;
6498 bool temp4 = false ;
6499 PyObject * obj3 = 0 ;
6500 char *kwnames[] = {
6501 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6502 };
6503
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6505 if (obj3) {
6506 {
6507 arg4 = wxString_in_helper(obj3);
6508 if (arg4 == NULL) SWIG_fail;
6509 temp4 = true;
6510 }
6511 }
6512 {
6513 PyThreadState* __tstate = wxPyBeginAllowThreads();
6514 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6515
6516 wxPyEndAllowThreads(__tstate);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6520 {
6521 if (temp4)
6522 delete arg4;
6523 }
6524 return resultobj;
6525 fail:
6526 {
6527 if (temp4)
6528 delete arg4;
6529 }
6530 return NULL;
6531}
6532
6533
6534static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6535 PyObject *resultobj;
6536 wxFont *arg1 = (wxFont *) 0 ;
6537 bool result;
6538 PyObject * obj0 = 0 ;
6539 char *kwnames[] = {
6540 (char *) "self", NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = (bool)((wxFont const *)arg1)->Ok();
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = PyInt_FromLong((long)result);
6553 return resultobj;
6554 fail:
6555 return NULL;
6556}
6557
6558
6559static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj;
6561 wxFont *arg1 = (wxFont *) 0 ;
6562 wxFont *arg2 = 0 ;
6563 bool result;
6564 PyObject * obj0 = 0 ;
6565 PyObject * obj1 = 0 ;
6566 char *kwnames[] = {
6567 (char *) "self",(char *) "font", NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6572 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6573 if (arg2 == NULL) {
6574 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6575 }
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 resultobj = PyInt_FromLong((long)result);
6584 return resultobj;
6585 fail:
6586 return NULL;
6587}
6588
6589
6590static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6591 PyObject *resultobj;
6592 wxFont *arg1 = (wxFont *) 0 ;
6593 wxFont *arg2 = 0 ;
6594 bool result;
6595 PyObject * obj0 = 0 ;
6596 PyObject * obj1 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self",(char *) "font", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6603 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6604 if (arg2 == NULL) {
6605 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6606 }
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 resultobj = PyInt_FromLong((long)result);
6615 return resultobj;
6616 fail:
6617 return NULL;
6618}
6619
6620
6621static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj;
6623 wxFont *arg1 = (wxFont *) 0 ;
6624 int result;
6625 PyObject * obj0 = 0 ;
6626 char *kwnames[] = {
6627 (char *) "self", NULL
6628 };
6629
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6632 {
6633 PyThreadState* __tstate = wxPyBeginAllowThreads();
6634 result = (int)((wxFont const *)arg1)->GetPointSize();
6635
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 resultobj = PyInt_FromLong((long)result);
6640 return resultobj;
6641 fail:
6642 return NULL;
6643}
6644
6645
6646static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6647 PyObject *resultobj;
6648 wxFont *arg1 = (wxFont *) 0 ;
6649 int result;
6650 PyObject * obj0 = 0 ;
6651 char *kwnames[] = {
6652 (char *) "self", NULL
6653 };
6654
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6657 {
6658 PyThreadState* __tstate = wxPyBeginAllowThreads();
6659 result = (int)((wxFont const *)arg1)->GetFamily();
6660
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = PyInt_FromLong((long)result);
6665 return resultobj;
6666 fail:
6667 return NULL;
6668}
6669
6670
6671static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj;
6673 wxFont *arg1 = (wxFont *) 0 ;
6674 int result;
6675 PyObject * obj0 = 0 ;
6676 char *kwnames[] = {
6677 (char *) "self", NULL
6678 };
6679
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (int)((wxFont const *)arg1)->GetStyle();
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 resultobj = PyInt_FromLong((long)result);
6690 return resultobj;
6691 fail:
6692 return NULL;
6693}
6694
6695
6696static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6697 PyObject *resultobj;
6698 wxFont *arg1 = (wxFont *) 0 ;
6699 int result;
6700 PyObject * obj0 = 0 ;
6701 char *kwnames[] = {
6702 (char *) "self", NULL
6703 };
6704
6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6707 {
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 result = (int)((wxFont const *)arg1)->GetWeight();
6710
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 resultobj = PyInt_FromLong((long)result);
6715 return resultobj;
6716 fail:
6717 return NULL;
6718}
6719
6720
6721static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxFont *arg1 = (wxFont *) 0 ;
6724 bool result;
6725 PyObject * obj0 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6732 {
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6735
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 resultobj = PyInt_FromLong((long)result);
6740 return resultobj;
6741 fail:
6742 return NULL;
6743}
6744
6745
6746static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6747 PyObject *resultobj;
6748 wxFont *arg1 = (wxFont *) 0 ;
6749 wxString result;
6750 PyObject * obj0 = 0 ;
6751 char *kwnames[] = {
6752 (char *) "self", NULL
6753 };
6754
6755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6757 {
6758 PyThreadState* __tstate = wxPyBeginAllowThreads();
6759 result = ((wxFont const *)arg1)->GetFaceName();
6760
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 {
6765#if wxUSE_UNICODE
6766 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6767#else
6768 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6769#endif
6770 }
6771 return resultobj;
6772 fail:
6773 return NULL;
6774}
6775
6776
6777static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxFont *arg1 = (wxFont *) 0 ;
6780 int result;
6781 PyObject * obj0 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 result = (int)((wxFont const *)arg1)->GetEncoding();
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 resultobj = PyInt_FromLong((long)result);
6796 return resultobj;
6797 fail:
6798 return NULL;
6799}
6800
6801
6802static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxFont *arg1 = (wxFont *) 0 ;
6805 wxNativeFontInfo *result;
6806 PyObject * obj0 = 0 ;
6807 char *kwnames[] = {
6808 (char *) "self", NULL
6809 };
6810
6811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6813 {
6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
6815 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6816
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6821 return resultobj;
6822 fail:
6823 return NULL;
6824}
6825
6826
6827static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj;
6829 wxFont *arg1 = (wxFont *) 0 ;
6830 bool result;
6831 PyObject * obj0 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "self", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = PyInt_FromLong((long)result);
6846 return resultobj;
6847 fail:
6848 return NULL;
6849}
6850
6851
6852static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxFont *arg1 = (wxFont *) 0 ;
6855 wxString result;
6856 PyObject * obj0 = 0 ;
6857 char *kwnames[] = {
6858 (char *) "self", NULL
6859 };
6860
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6863 {
6864 PyThreadState* __tstate = wxPyBeginAllowThreads();
6865 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6866
6867 wxPyEndAllowThreads(__tstate);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 }
6870 {
6871#if wxUSE_UNICODE
6872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6873#else
6874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6875#endif
6876 }
6877 return resultobj;
6878 fail:
6879 return NULL;
6880}
6881
6882
6883static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj;
6885 wxFont *arg1 = (wxFont *) 0 ;
6886 wxString result;
6887 PyObject * obj0 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "self", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6897
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 {
6902#if wxUSE_UNICODE
6903 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6904#else
6905 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6906#endif
6907 }
6908 return resultobj;
6909 fail:
6910 return NULL;
6911}
6912
6913
6914static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj;
6916 wxFont *arg1 = (wxFont *) 0 ;
6917 int arg2 ;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "self",(char *) "pointSize", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6925 {
6926 PyThreadState* __tstate = wxPyBeginAllowThreads();
6927 (arg1)->SetPointSize(arg2);
6928
6929 wxPyEndAllowThreads(__tstate);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 Py_INCREF(Py_None); resultobj = Py_None;
6933 return resultobj;
6934 fail:
6935 return NULL;
6936}
6937
6938
6939static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj;
6941 wxFont *arg1 = (wxFont *) 0 ;
6942 int arg2 ;
6943 PyObject * obj0 = 0 ;
6944 char *kwnames[] = {
6945 (char *) "self",(char *) "family", NULL
6946 };
6947
6948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
6949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6950 {
6951 PyThreadState* __tstate = wxPyBeginAllowThreads();
6952 (arg1)->SetFamily(arg2);
6953
6954 wxPyEndAllowThreads(__tstate);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 Py_INCREF(Py_None); resultobj = Py_None;
6958 return resultobj;
6959 fail:
6960 return NULL;
6961}
6962
6963
6964static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj;
6966 wxFont *arg1 = (wxFont *) 0 ;
6967 int arg2 ;
6968 PyObject * obj0 = 0 ;
6969 char *kwnames[] = {
6970 (char *) "self",(char *) "style", NULL
6971 };
6972
6973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
6974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6975 {
6976 PyThreadState* __tstate = wxPyBeginAllowThreads();
6977 (arg1)->SetStyle(arg2);
6978
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 Py_INCREF(Py_None); resultobj = Py_None;
6983 return resultobj;
6984 fail:
6985 return NULL;
6986}
6987
6988
6989static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj;
6991 wxFont *arg1 = (wxFont *) 0 ;
6992 int arg2 ;
6993 PyObject * obj0 = 0 ;
6994 char *kwnames[] = {
6995 (char *) "self",(char *) "weight", NULL
6996 };
6997
6998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
6999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 (arg1)->SetWeight(arg2);
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 Py_INCREF(Py_None); resultobj = Py_None;
7008 return resultobj;
7009 fail:
7010 return NULL;
7011}
7012
7013
7014static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxFont *arg1 = (wxFont *) 0 ;
7017 wxString *arg2 = 0 ;
7018 bool temp2 = false ;
7019 PyObject * obj0 = 0 ;
7020 PyObject * obj1 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self",(char *) "faceName", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7027 {
7028 arg2 = wxString_in_helper(obj1);
7029 if (arg2 == NULL) SWIG_fail;
7030 temp2 = true;
7031 }
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 (arg1)->SetFaceName((wxString const &)*arg2);
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 Py_INCREF(Py_None); resultobj = Py_None;
7040 {
7041 if (temp2)
7042 delete arg2;
7043 }
7044 return resultobj;
7045 fail:
7046 {
7047 if (temp2)
7048 delete arg2;
7049 }
7050 return NULL;
7051}
7052
7053
7054static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7055 PyObject *resultobj;
7056 wxFont *arg1 = (wxFont *) 0 ;
7057 bool arg2 ;
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "underlined", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7066 arg2 = PyInt_AsLong(obj1) ? true : false;
7067 if (PyErr_Occurred()) SWIG_fail;
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 (arg1)->SetUnderlined(arg2);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 Py_INCREF(Py_None); resultobj = Py_None;
7076 return resultobj;
7077 fail:
7078 return NULL;
7079}
7080
7081
7082static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj;
7084 wxFont *arg1 = (wxFont *) 0 ;
7085 int arg2 ;
7086 PyObject * obj0 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "self",(char *) "encoding", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 (arg1)->SetEncoding((wxFontEncoding )arg2);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 Py_INCREF(Py_None); resultobj = Py_None;
7101 return resultobj;
7102 fail:
7103 return NULL;
7104}
7105
7106
7107static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj;
7109 wxFont *arg1 = (wxFont *) 0 ;
7110 wxNativeFontInfo *arg2 = 0 ;
7111 PyObject * obj0 = 0 ;
7112 PyObject * obj1 = 0 ;
7113 char *kwnames[] = {
7114 (char *) "self",(char *) "info", NULL
7115 };
7116
7117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7119 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7120 if (arg2 == NULL) {
7121 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7122 }
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7126
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 Py_INCREF(Py_None); resultobj = Py_None;
7131 return resultobj;
7132 fail:
7133 return NULL;
7134}
7135
7136
7137static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj;
7139 wxFont *arg1 = (wxFont *) 0 ;
7140 wxString *arg2 = 0 ;
7141 bool temp2 = false ;
7142 PyObject * obj0 = 0 ;
7143 PyObject * obj1 = 0 ;
7144 char *kwnames[] = {
7145 (char *) "self",(char *) "info", NULL
7146 };
7147
7148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7150 {
7151 arg2 = wxString_in_helper(obj1);
7152 if (arg2 == NULL) SWIG_fail;
7153 temp2 = true;
7154 }
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 Py_INCREF(Py_None); resultobj = Py_None;
7163 {
7164 if (temp2)
7165 delete arg2;
7166 }
7167 return resultobj;
7168 fail:
7169 {
7170 if (temp2)
7171 delete arg2;
7172 }
7173 return NULL;
7174}
7175
7176
7177static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7178 PyObject *resultobj;
7179 wxFont *arg1 = (wxFont *) 0 ;
7180 wxString *arg2 = 0 ;
7181 bool temp2 = false ;
7182 PyObject * obj0 = 0 ;
7183 PyObject * obj1 = 0 ;
7184 char *kwnames[] = {
7185 (char *) "self",(char *) "info", NULL
7186 };
7187
7188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7190 {
7191 arg2 = wxString_in_helper(obj1);
7192 if (arg2 == NULL) SWIG_fail;
7193 temp2 = true;
7194 }
7195 {
7196 PyThreadState* __tstate = wxPyBeginAllowThreads();
7197 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7198
7199 wxPyEndAllowThreads(__tstate);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 Py_INCREF(Py_None); resultobj = Py_None;
7203 {
7204 if (temp2)
7205 delete arg2;
7206 }
7207 return resultobj;
7208 fail:
7209 {
7210 if (temp2)
7211 delete arg2;
7212 }
7213 return NULL;
7214}
7215
7216
7217static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 wxFont *arg1 = (wxFont *) 0 ;
7220 wxString result;
7221 PyObject * obj0 = 0 ;
7222 char *kwnames[] = {
7223 (char *) "self", NULL
7224 };
7225
7226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 result = ((wxFont const *)arg1)->GetFamilyString();
7231
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 {
7236#if wxUSE_UNICODE
7237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7238#else
7239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7240#endif
7241 }
7242 return resultobj;
7243 fail:
7244 return NULL;
7245}
7246
7247
7248static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxFont *arg1 = (wxFont *) 0 ;
7251 wxString result;
7252 PyObject * obj0 = 0 ;
7253 char *kwnames[] = {
7254 (char *) "self", NULL
7255 };
7256
7257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = ((wxFont const *)arg1)->GetStyleString();
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 {
7267#if wxUSE_UNICODE
7268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7269#else
7270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7271#endif
7272 }
7273 return resultobj;
7274 fail:
7275 return NULL;
7276}
7277
7278
7279static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7280 PyObject *resultobj;
7281 wxFont *arg1 = (wxFont *) 0 ;
7282 wxString result;
7283 PyObject * obj0 = 0 ;
7284 char *kwnames[] = {
7285 (char *) "self", NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 result = ((wxFont const *)arg1)->GetWeightString();
7293
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 {
7298#if wxUSE_UNICODE
7299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7300#else
7301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7302#endif
7303 }
7304 return resultobj;
7305 fail:
7306 return NULL;
7307}
7308
7309
7310static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7311 PyObject *resultobj;
7312 wxFont *arg1 = (wxFont *) 0 ;
7313 bool arg2 = (bool) TRUE ;
7314 PyObject * obj0 = 0 ;
7315 PyObject * obj1 = 0 ;
7316 char *kwnames[] = {
7317 (char *) "self",(char *) "no", NULL
7318 };
7319
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7322 if (obj1) {
7323 arg2 = PyInt_AsLong(obj1) ? true : false;
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 {
7327 PyThreadState* __tstate = wxPyBeginAllowThreads();
7328 (arg1)->SetNoAntiAliasing(arg2);
7329
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 Py_INCREF(Py_None); resultobj = Py_None;
7334 return resultobj;
7335 fail:
7336 return NULL;
7337}
7338
7339
7340static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7341 PyObject *resultobj;
7342 wxFont *arg1 = (wxFont *) 0 ;
7343 bool result;
7344 PyObject * obj0 = 0 ;
7345 char *kwnames[] = {
7346 (char *) "self", NULL
7347 };
7348
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7351 {
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 result = (bool)(arg1)->GetNoAntiAliasing();
7354
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 resultobj = PyInt_FromLong((long)result);
7359 return resultobj;
7360 fail:
7361 return NULL;
7362}
7363
7364
7365static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject *resultobj;
7367 int result;
7368 char *kwnames[] = {
7369 NULL
7370 };
7371
7372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7373 {
7374 PyThreadState* __tstate = wxPyBeginAllowThreads();
7375 result = (int)wxFont::GetDefaultEncoding();
7376
7377 wxPyEndAllowThreads(__tstate);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = PyInt_FromLong((long)result);
7381 return resultobj;
7382 fail:
7383 return NULL;
7384}
7385
7386
7387static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 int arg1 ;
7390 char *kwnames[] = {
7391 (char *) "encoding", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7395 {
7396 PyThreadState* __tstate = wxPyBeginAllowThreads();
7397 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7398
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 Py_INCREF(Py_None); resultobj = Py_None;
7403 return resultobj;
7404 fail:
7405 return NULL;
7406}
7407
7408
7409static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7410 PyObject *obj;
7411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7412 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7413 Py_INCREF(obj);
7414 return Py_BuildValue((char *)"");
7415}
7416static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7417 PyObject *resultobj;
7418 wxPyFontEnumerator *result;
7419 char *kwnames[] = {
7420 NULL
7421 };
7422
7423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7424 {
7425 PyThreadState* __tstate = wxPyBeginAllowThreads();
7426 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7427
7428 wxPyEndAllowThreads(__tstate);
7429 if (PyErr_Occurred()) SWIG_fail;
7430 }
7431 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7432 return resultobj;
7433 fail:
7434 return NULL;
7435}
7436
7437
7438static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7439 PyObject *resultobj;
7440 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7441 PyObject * obj0 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "self", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7448 {
7449 PyThreadState* __tstate = wxPyBeginAllowThreads();
7450 delete arg1;
7451
7452 wxPyEndAllowThreads(__tstate);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 Py_INCREF(Py_None); resultobj = Py_None;
7456 return resultobj;
7457 fail:
7458 return NULL;
7459}
7460
7461
7462static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj;
7464 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7465 PyObject *arg2 = (PyObject *) 0 ;
7466 PyObject *arg3 = (PyObject *) 0 ;
7467 bool arg4 ;
7468 PyObject * obj0 = 0 ;
7469 PyObject * obj1 = 0 ;
7470 PyObject * obj2 = 0 ;
7471 PyObject * obj3 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7478 arg2 = obj1;
7479 arg3 = obj2;
7480 arg4 = PyInt_AsLong(obj3) ? true : false;
7481 if (PyErr_Occurred()) SWIG_fail;
7482 {
7483 PyThreadState* __tstate = wxPyBeginAllowThreads();
7484 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7485
7486 wxPyEndAllowThreads(__tstate);
7487 if (PyErr_Occurred()) SWIG_fail;
7488 }
7489 Py_INCREF(Py_None); resultobj = Py_None;
7490 return resultobj;
7491 fail:
7492 return NULL;
7493}
7494
7495
7496static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj;
7498 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7499 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7500 bool arg3 = (bool) FALSE ;
7501 bool result;
7502 PyObject * obj0 = 0 ;
7503 PyObject * obj2 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7510 if (obj2) {
7511 arg3 = PyInt_AsLong(obj2) ? true : false;
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 resultobj = PyInt_FromLong((long)result);
7522 return resultobj;
7523 fail:
7524 return NULL;
7525}
7526
7527
7528static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7531 wxString const &arg2_defvalue = wxPyEmptyString ;
7532 wxString *arg2 = (wxString *) &arg2_defvalue ;
7533 bool result;
7534 bool temp2 = false ;
7535 PyObject * obj0 = 0 ;
7536 PyObject * obj1 = 0 ;
7537 char *kwnames[] = {
7538 (char *) "self",(char *) "facename", NULL
7539 };
7540
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7543 if (obj1) {
7544 {
7545 arg2 = wxString_in_helper(obj1);
7546 if (arg2 == NULL) SWIG_fail;
7547 temp2 = true;
7548 }
7549 }
7550 {
7551 PyThreadState* __tstate = wxPyBeginAllowThreads();
7552 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7553
7554 wxPyEndAllowThreads(__tstate);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 resultobj = PyInt_FromLong((long)result);
7558 {
7559 if (temp2)
7560 delete arg2;
7561 }
7562 return resultobj;
7563 fail:
7564 {
7565 if (temp2)
7566 delete arg2;
7567 }
7568 return NULL;
7569}
7570
7571
7572static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj;
7574 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7575 PyObject *result;
7576 PyObject * obj0 = 0 ;
7577 char *kwnames[] = {
7578 (char *) "self", NULL
7579 };
7580
7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7586
7587 wxPyEndAllowThreads(__tstate);
7588 if (PyErr_Occurred()) SWIG_fail;
7589 }
7590 resultobj = result;
7591 return resultobj;
7592 fail:
7593 return NULL;
7594}
7595
7596
7597static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7598 PyObject *resultobj;
7599 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7600 PyObject *result;
7601 PyObject * obj0 = 0 ;
7602 char *kwnames[] = {
7603 (char *) "self", NULL
7604 };
7605
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7608 {
7609 PyThreadState* __tstate = wxPyBeginAllowThreads();
7610 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7611
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = result;
7616 return resultobj;
7617 fail:
7618 return NULL;
7619}
7620
7621
7622static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7623 PyObject *obj;
7624 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7625 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7626 Py_INCREF(obj);
7627 return Py_BuildValue((char *)"");
7628}
7629static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7630 PyObject *resultobj;
7631 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7632 int arg2 ;
7633 PyObject * obj0 = 0 ;
7634 char *kwnames[] = {
7635 (char *) "self",(char *) "Language", NULL
7636 };
7637
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7640 if (arg1) (arg1)->Language = arg2;
7641
7642 Py_INCREF(Py_None); resultobj = Py_None;
7643 return resultobj;
7644 fail:
7645 return NULL;
7646}
7647
7648
7649static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7650 PyObject *resultobj;
7651 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7652 int result;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "self", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7660 result = (int) ((arg1)->Language);
7661
7662 resultobj = PyInt_FromLong((long)result);
7663 return resultobj;
7664 fail:
7665 return NULL;
7666}
7667
7668
7669static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7670 PyObject *resultobj;
7671 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7672 wxString arg2 ;
7673 wxString *argp2 ;
7674 PyObject * obj0 = 0 ;
7675 PyObject * obj1 = 0 ;
7676 char *kwnames[] = {
7677 (char *) "self",(char *) "CanonicalName", NULL
7678 };
7679
7680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7682 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7683 arg2 = *argp2;
7684 if (arg1) (arg1)->CanonicalName = arg2;
7685
7686 Py_INCREF(Py_None); resultobj = Py_None;
7687 return resultobj;
7688 fail:
7689 return NULL;
7690}
7691
7692
7693static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj;
7695 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7696 wxString result;
7697 PyObject * obj0 = 0 ;
7698 char *kwnames[] = {
7699 (char *) "self", NULL
7700 };
7701
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7704 result = ((arg1)->CanonicalName);
7705
7706 {
7707#if wxUSE_UNICODE
7708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7709#else
7710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7711#endif
7712 }
7713 return resultobj;
7714 fail:
7715 return NULL;
7716}
7717
7718
7719static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj;
7721 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7722 wxString arg2 ;
7723 wxString *argp2 ;
7724 PyObject * obj0 = 0 ;
7725 PyObject * obj1 = 0 ;
7726 char *kwnames[] = {
7727 (char *) "self",(char *) "Description", NULL
7728 };
7729
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7732 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
7733 arg2 = *argp2;
7734 if (arg1) (arg1)->Description = arg2;
7735
7736 Py_INCREF(Py_None); resultobj = Py_None;
7737 return resultobj;
7738 fail:
7739 return NULL;
7740}
7741
7742
7743static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7746 wxString result;
7747 PyObject * obj0 = 0 ;
7748 char *kwnames[] = {
7749 (char *) "self", NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7754 result = ((arg1)->Description);
7755
7756 {
7757#if wxUSE_UNICODE
7758 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7759#else
7760 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7761#endif
7762 }
7763 return resultobj;
7764 fail:
7765 return NULL;
7766}
7767
7768
7769static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7770 PyObject *obj;
7771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7772 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7773 Py_INCREF(obj);
7774 return Py_BuildValue((char *)"");
7775}
7776static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7777 PyObject *resultobj;
7778 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7779 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7780 wxLocale *result;
7781 char *kwnames[] = {
7782 (char *) "language",(char *) "flags", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7786 {
7787 PyThreadState* __tstate = wxPyBeginAllowThreads();
7788 result = (wxLocale *)new wxLocale(arg1,arg2);
7789
7790 wxPyEndAllowThreads(__tstate);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7794 return resultobj;
7795 fail:
7796 return NULL;
7797}
7798
7799
7800static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxLocale *arg1 = (wxLocale *) 0 ;
7803 PyObject * obj0 = 0 ;
7804 char *kwnames[] = {
7805 (char *) "self", NULL
7806 };
7807
7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7810 {
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 delete arg1;
7813
7814 wxPyEndAllowThreads(__tstate);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 Py_INCREF(Py_None); resultobj = Py_None;
7818 return resultobj;
7819 fail:
7820 return NULL;
7821}
7822
7823
7824static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject *resultobj;
7826 wxLocale *arg1 = (wxLocale *) 0 ;
7827 wxString *arg2 = 0 ;
7828 wxString const &arg3_defvalue = wxPyEmptyString ;
7829 wxString *arg3 = (wxString *) &arg3_defvalue ;
7830 wxString const &arg4_defvalue = wxPyEmptyString ;
7831 wxString *arg4 = (wxString *) &arg4_defvalue ;
7832 bool arg5 = (bool) TRUE ;
7833 bool arg6 = (bool) FALSE ;
7834 bool result;
7835 bool temp2 = false ;
7836 bool temp3 = false ;
7837 bool temp4 = false ;
7838 PyObject * obj0 = 0 ;
7839 PyObject * obj1 = 0 ;
7840 PyObject * obj2 = 0 ;
7841 PyObject * obj3 = 0 ;
7842 PyObject * obj4 = 0 ;
7843 PyObject * obj5 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7850 {
7851 arg2 = wxString_in_helper(obj1);
7852 if (arg2 == NULL) SWIG_fail;
7853 temp2 = true;
7854 }
7855 if (obj2) {
7856 {
7857 arg3 = wxString_in_helper(obj2);
7858 if (arg3 == NULL) SWIG_fail;
7859 temp3 = true;
7860 }
7861 }
7862 if (obj3) {
7863 {
7864 arg4 = wxString_in_helper(obj3);
7865 if (arg4 == NULL) SWIG_fail;
7866 temp4 = true;
7867 }
7868 }
7869 if (obj4) {
7870 arg5 = PyInt_AsLong(obj4) ? true : false;
7871 if (PyErr_Occurred()) SWIG_fail;
7872 }
7873 if (obj5) {
7874 arg6 = PyInt_AsLong(obj5) ? true : false;
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = PyInt_FromLong((long)result);
7885 {
7886 if (temp2)
7887 delete arg2;
7888 }
7889 {
7890 if (temp3)
7891 delete arg3;
7892 }
7893 {
7894 if (temp4)
7895 delete arg4;
7896 }
7897 return resultobj;
7898 fail:
7899 {
7900 if (temp2)
7901 delete arg2;
7902 }
7903 {
7904 if (temp3)
7905 delete arg3;
7906 }
7907 {
7908 if (temp4)
7909 delete arg4;
7910 }
7911 return NULL;
7912}
7913
7914
7915static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj;
7917 wxLocale *arg1 = (wxLocale *) 0 ;
7918 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7919 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7920 bool result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "self",(char *) "language",(char *) "flags", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
7927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 result = (bool)(arg1)->Init(arg2,arg3);
7931
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 resultobj = PyInt_FromLong((long)result);
7936 return resultobj;
7937 fail:
7938 return NULL;
7939}
7940
7941
7942static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj;
7944 int result;
7945 char *kwnames[] = {
7946 NULL
7947 };
7948
7949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 result = (int)wxLocale::GetSystemLanguage();
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_GetSystemEncoding(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_GetSystemEncoding",kwnames)) goto fail;
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (int)wxLocale::GetSystemEncoding();
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_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 wxString result;
7989 char *kwnames[] = {
7990 NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = wxLocale::GetSystemEncodingName();
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 {
8002#if wxUSE_UNICODE
8003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8004#else
8005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8006#endif
8007 }
8008 return resultobj;
8009 fail:
8010 return NULL;
8011}
8012
8013
8014static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj;
8016 wxLocale *arg1 = (wxLocale *) 0 ;
8017 bool result;
8018 PyObject * obj0 = 0 ;
8019 char *kwnames[] = {
8020 (char *) "self", NULL
8021 };
8022
8023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8025 {
8026 PyThreadState* __tstate = wxPyBeginAllowThreads();
8027 result = (bool)((wxLocale const *)arg1)->IsOk();
8028
8029 wxPyEndAllowThreads(__tstate);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 resultobj = PyInt_FromLong((long)result);
8033 return resultobj;
8034 fail:
8035 return NULL;
8036}
8037
8038
8039static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj;
8041 wxLocale *arg1 = (wxLocale *) 0 ;
8042 wxString result;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "self", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 result = ((wxLocale const *)arg1)->GetLocale();
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 {
8058#if wxUSE_UNICODE
8059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8060#else
8061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8062#endif
8063 }
8064 return resultobj;
8065 fail:
8066 return NULL;
8067}
8068
8069
8070static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8071 PyObject *resultobj;
8072 wxLocale *arg1 = (wxLocale *) 0 ;
8073 int result;
8074 PyObject * obj0 = 0 ;
8075 char *kwnames[] = {
8076 (char *) "self", NULL
8077 };
8078
8079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8081 {
8082 PyThreadState* __tstate = wxPyBeginAllowThreads();
8083 result = (int)((wxLocale const *)arg1)->GetLanguage();
8084
8085 wxPyEndAllowThreads(__tstate);
8086 if (PyErr_Occurred()) SWIG_fail;
8087 }
8088 resultobj = PyInt_FromLong((long)result);
8089 return resultobj;
8090 fail:
8091 return NULL;
8092}
8093
8094
8095static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8096 PyObject *resultobj;
8097 wxLocale *arg1 = (wxLocale *) 0 ;
8098 wxString result;
8099 PyObject * obj0 = 0 ;
8100 char *kwnames[] = {
8101 (char *) "self", NULL
8102 };
8103
8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8106 {
8107 PyThreadState* __tstate = wxPyBeginAllowThreads();
8108 result = ((wxLocale const *)arg1)->GetSysName();
8109
8110 wxPyEndAllowThreads(__tstate);
8111 if (PyErr_Occurred()) SWIG_fail;
8112 }
8113 {
8114#if wxUSE_UNICODE
8115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8116#else
8117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8118#endif
8119 }
8120 return resultobj;
8121 fail:
8122 return NULL;
8123}
8124
8125
8126static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxLocale *arg1 = (wxLocale *) 0 ;
8129 wxString result;
8130 PyObject * obj0 = 0 ;
8131 char *kwnames[] = {
8132 (char *) "self", NULL
8133 };
8134
8135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 result = ((wxLocale const *)arg1)->GetCanonicalName();
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 {
8145#if wxUSE_UNICODE
8146 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8147#else
8148 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8149#endif
8150 }
8151 return resultobj;
8152 fail:
8153 return NULL;
8154}
8155
8156
8157static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8158 PyObject *resultobj;
8159 wxString *arg1 = 0 ;
8160 bool temp1 = false ;
8161 PyObject * obj0 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "prefix", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8167 {
8168 arg1 = wxString_in_helper(obj0);
8169 if (arg1 == NULL) SWIG_fail;
8170 temp1 = true;
8171 }
8172 {
8173 PyThreadState* __tstate = wxPyBeginAllowThreads();
8174 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8175
8176 wxPyEndAllowThreads(__tstate);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 Py_INCREF(Py_None); resultobj = Py_None;
8180 {
8181 if (temp1)
8182 delete arg1;
8183 }
8184 return resultobj;
8185 fail:
8186 {
8187 if (temp1)
8188 delete arg1;
8189 }
8190 return NULL;
8191}
8192
8193
8194static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj;
8196 wxLocale *arg1 = (wxLocale *) 0 ;
8197 wxString *arg2 = 0 ;
8198 bool result;
8199 bool temp2 = false ;
8200 PyObject * obj0 = 0 ;
8201 PyObject * obj1 = 0 ;
8202 char *kwnames[] = {
8203 (char *) "self",(char *) "szDomain", NULL
8204 };
8205
8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8208 {
8209 arg2 = wxString_in_helper(obj1);
8210 if (arg2 == NULL) SWIG_fail;
8211 temp2 = true;
8212 }
8213 {
8214 PyThreadState* __tstate = wxPyBeginAllowThreads();
8215 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8216
8217 wxPyEndAllowThreads(__tstate);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 resultobj = PyInt_FromLong((long)result);
8221 {
8222 if (temp2)
8223 delete arg2;
8224 }
8225 return resultobj;
8226 fail:
8227 {
8228 if (temp2)
8229 delete arg2;
8230 }
8231 return NULL;
8232}
8233
8234
8235static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxLocale *arg1 = (wxLocale *) 0 ;
8238 wxString *arg2 = 0 ;
8239 bool result;
8240 bool temp2 = false ;
8241 PyObject * obj0 = 0 ;
8242 PyObject * obj1 = 0 ;
8243 char *kwnames[] = {
8244 (char *) "self",(char *) "szDomain", NULL
8245 };
8246
8247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8249 {
8250 arg2 = wxString_in_helper(obj1);
8251 if (arg2 == NULL) SWIG_fail;
8252 temp2 = true;
8253 }
8254 {
8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
8256 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8257
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 resultobj = PyInt_FromLong((long)result);
8262 {
8263 if (temp2)
8264 delete arg2;
8265 }
8266 return resultobj;
8267 fail:
8268 {
8269 if (temp2)
8270 delete arg2;
8271 }
8272 return NULL;
8273}
8274
8275
8276static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8277 PyObject *resultobj;
8278 int arg1 ;
8279 wxLanguageInfo *result;
8280 char *kwnames[] = {
8281 (char *) "lang", NULL
8282 };
8283
8284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8293 return resultobj;
8294 fail:
8295 return NULL;
8296}
8297
8298
8299static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8300 PyObject *resultobj;
8301 int arg1 ;
8302 wxString result;
8303 char *kwnames[] = {
8304 (char *) "lang", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8308 {
8309 PyThreadState* __tstate = wxPyBeginAllowThreads();
8310 result = wxLocale::GetLanguageName(arg1);
8311
8312 wxPyEndAllowThreads(__tstate);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 {
8316#if wxUSE_UNICODE
8317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8318#else
8319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8320#endif
8321 }
8322 return resultobj;
8323 fail:
8324 return NULL;
8325}
8326
8327
8328static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj;
8330 wxString *arg1 = 0 ;
8331 wxLanguageInfo *result;
8332 bool temp1 = false ;
8333 PyObject * obj0 = 0 ;
8334 char *kwnames[] = {
8335 (char *) "locale", NULL
8336 };
8337
8338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8339 {
8340 arg1 = wxString_in_helper(obj0);
8341 if (arg1 == NULL) SWIG_fail;
8342 temp1 = true;
8343 }
8344 {
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8347
8348 wxPyEndAllowThreads(__tstate);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8352 {
8353 if (temp1)
8354 delete arg1;
8355 }
8356 return resultobj;
8357 fail:
8358 {
8359 if (temp1)
8360 delete arg1;
8361 }
8362 return NULL;
8363}
8364
8365
8366static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8367 PyObject *resultobj;
8368 wxLanguageInfo *arg1 = 0 ;
8369 PyObject * obj0 = 0 ;
8370 char *kwnames[] = {
8371 (char *) "info", NULL
8372 };
8373
8374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8376 if (arg1 == NULL) {
8377 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8378 }
8379 {
8380 PyThreadState* __tstate = wxPyBeginAllowThreads();
8381 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8382
8383 wxPyEndAllowThreads(__tstate);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 Py_INCREF(Py_None); resultobj = Py_None;
8387 return resultobj;
8388 fail:
8389 return NULL;
8390}
8391
8392
8393static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj;
8395 wxLocale *arg1 = (wxLocale *) 0 ;
8396 wxString *arg2 = 0 ;
8397 wxString const &arg3_defvalue = wxPyEmptyString ;
8398 wxString *arg3 = (wxString *) &arg3_defvalue ;
8399 wxString result;
8400 bool temp2 = false ;
8401 bool temp3 = false ;
8402 PyObject * obj0 = 0 ;
8403 PyObject * obj1 = 0 ;
8404 PyObject * obj2 = 0 ;
8405 char *kwnames[] = {
8406 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8407 };
8408
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8411 {
8412 arg2 = wxString_in_helper(obj1);
8413 if (arg2 == NULL) SWIG_fail;
8414 temp2 = true;
8415 }
8416 if (obj2) {
8417 {
8418 arg3 = wxString_in_helper(obj2);
8419 if (arg3 == NULL) SWIG_fail;
8420 temp3 = true;
8421 }
8422 }
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8426
8427 wxPyEndAllowThreads(__tstate);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 {
8431#if wxUSE_UNICODE
8432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8433#else
8434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8435#endif
8436 }
8437 {
8438 if (temp2)
8439 delete arg2;
8440 }
8441 {
8442 if (temp3)
8443 delete arg3;
8444 }
8445 return resultobj;
8446 fail:
8447 {
8448 if (temp2)
8449 delete arg2;
8450 }
8451 {
8452 if (temp3)
8453 delete arg3;
8454 }
8455 return NULL;
8456}
8457
8458
8459static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxLocale *arg1 = (wxLocale *) 0 ;
8462 wxString *result;
8463 PyObject * obj0 = 0 ;
8464 char *kwnames[] = {
8465 (char *) "self", NULL
8466 };
8467
8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 {
8473 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8474 result = (wxString *) &_result_ref;
8475 }
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0);
8481 return resultobj;
8482 fail:
8483 return NULL;
8484}
8485
8486
8487static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8488 PyObject *obj;
8489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8490 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8491 Py_INCREF(obj);
8492 return Py_BuildValue((char *)"");
8493}
8494static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj;
8496 wxLocale *result;
8497 char *kwnames[] = {
8498 NULL
8499 };
8500
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 result = (wxLocale *)wxGetLocale();
8505
8506 wxPyEndAllowThreads(__tstate);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8510 return resultobj;
8511 fail:
8512 return NULL;
8513}
8514
8515
8516static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8517 PyObject *resultobj;
8518 wxString *arg1 = 0 ;
8519 wxString result;
8520 bool temp1 = false ;
8521 PyObject * obj0 = 0 ;
8522
8523 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8524 {
8525 arg1 = wxString_in_helper(obj0);
8526 if (arg1 == NULL) SWIG_fail;
8527 temp1 = true;
8528 }
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = wxGetTranslation((wxString const &)*arg1);
8532
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 {
8537#if wxUSE_UNICODE
8538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8539#else
8540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8541#endif
8542 }
8543 {
8544 if (temp1)
8545 delete arg1;
8546 }
8547 return resultobj;
8548 fail:
8549 {
8550 if (temp1)
8551 delete arg1;
8552 }
8553 return NULL;
8554}
8555
8556
8557static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8558 PyObject *resultobj;
8559 wxString *arg1 = 0 ;
8560 wxString *arg2 = 0 ;
8561 size_t arg3 ;
8562 wxString result;
8563 bool temp1 = false ;
8564 bool temp2 = false ;
8565 PyObject * obj0 = 0 ;
8566 PyObject * obj1 = 0 ;
8567 PyObject * obj2 = 0 ;
8568
8569 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8570 {
8571 arg1 = wxString_in_helper(obj0);
8572 if (arg1 == NULL) SWIG_fail;
8573 temp1 = true;
8574 }
8575 {
8576 arg2 = wxString_in_helper(obj1);
8577 if (arg2 == NULL) SWIG_fail;
8578 temp2 = true;
8579 }
8580 arg3 = (size_t) PyInt_AsLong(obj2);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8585
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 {
8590#if wxUSE_UNICODE
8591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8592#else
8593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8594#endif
8595 }
8596 {
8597 if (temp1)
8598 delete arg1;
8599 }
8600 {
8601 if (temp2)
8602 delete arg2;
8603 }
8604 return resultobj;
8605 fail:
8606 {
8607 if (temp1)
8608 delete arg1;
8609 }
8610 {
8611 if (temp2)
8612 delete arg2;
8613 }
8614 return NULL;
8615}
8616
8617
8618static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8619 int argc;
8620 PyObject *argv[4];
8621 int ii;
8622
8623 argc = PyObject_Length(args);
8624 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8625 argv[ii] = PyTuple_GetItem(args,ii);
8626 }
8627 if (argc == 1) {
8628 int _v;
8629 {
8630 void *ptr;
8631 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8632 _v = 0;
8633 PyErr_Clear();
8634 } else {
8635 _v = 1;
8636 }
8637 }
8638 if (_v) {
8639 return _wrap_GetTranslation__SWIG_0(self,args);
8640 }
8641 }
8642 if (argc == 3) {
8643 int _v;
8644 {
8645 void *ptr;
8646 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8647 _v = 0;
8648 PyErr_Clear();
8649 } else {
8650 _v = 1;
8651 }
8652 }
8653 if (_v) {
8654 {
8655 void *ptr;
8656 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8657 _v = 0;
8658 PyErr_Clear();
8659 } else {
8660 _v = 1;
8661 }
8662 }
8663 if (_v) {
8664 {
8665 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8666 }
8667 if (_v) {
8668 return _wrap_GetTranslation__SWIG_1(self,args);
8669 }
8670 }
8671 }
8672 }
8673
8674 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8675 return NULL;
8676}
8677
8678
8679static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8680 PyObject *resultobj;
8681 wxEncodingConverter *result;
8682 char *kwnames[] = {
8683 NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 result = (wxEncodingConverter *)new wxEncodingConverter();
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8695 return resultobj;
8696 fail:
8697 return NULL;
8698}
8699
8700
8701static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj;
8703 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8704 PyObject * obj0 = 0 ;
8705 char *kwnames[] = {
8706 (char *) "self", NULL
8707 };
8708
8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 delete arg1;
8714
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 Py_INCREF(Py_None); resultobj = Py_None;
8719 return resultobj;
8720 fail:
8721 return NULL;
8722}
8723
8724
8725static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj;
8727 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8728 int arg2 ;
8729 int arg3 ;
8730 int arg4 = (int) wxCONVERT_STRICT ;
8731 bool result;
8732 PyObject * obj0 = 0 ;
8733 char *kwnames[] = {
8734 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8735 };
8736
8737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) 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 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = PyInt_FromLong((long)result);
8747 return resultobj;
8748 fail:
8749 return NULL;
8750}
8751
8752
8753static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8756 wxString *arg2 = 0 ;
8757 wxString result;
8758 bool temp2 = false ;
8759 PyObject * obj0 = 0 ;
8760 PyObject * obj1 = 0 ;
8761 char *kwnames[] = {
8762 (char *) "self",(char *) "input", NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8767 {
8768 arg2 = wxString_in_helper(obj1);
8769 if (arg2 == NULL) SWIG_fail;
8770 temp2 = true;
8771 }
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (arg1)->Convert((wxString const &)*arg2);
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 {
8780#if wxUSE_UNICODE
8781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8782#else
8783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8784#endif
8785 }
8786 {
8787 if (temp2)
8788 delete arg2;
8789 }
8790 return resultobj;
8791 fail:
8792 {
8793 if (temp2)
8794 delete arg2;
8795 }
8796 return NULL;
8797}
8798
8799
8800static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj;
8802 int arg1 ;
8803 int arg2 = (int) wxPLATFORM_CURRENT ;
8804 wxFontEncodingArray result;
8805 char *kwnames[] = {
8806 (char *) "enc",(char *) "platform", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8810 {
8811 PyThreadState* __tstate = wxPyBeginAllowThreads();
8812 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8813
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 {
8818 resultobj = PyList_New(0);
8819 for (size_t i=0; i < (&result)->GetCount(); i++) {
8820 PyObject* number = PyInt_FromLong((&result)->Item(i));
8821 PyList_Append(resultobj, number);
8822 Py_DECREF(number);
8823 }
8824 }
8825 return resultobj;
8826 fail:
8827 return NULL;
8828}
8829
8830
8831static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj;
8833 int arg1 ;
8834 wxFontEncodingArray result;
8835 char *kwnames[] = {
8836 (char *) "enc", NULL
8837 };
8838
8839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) SWIG_fail;
8846 }
8847 {
8848 resultobj = PyList_New(0);
8849 for (size_t i=0; i < (&result)->GetCount(); i++) {
8850 PyObject* number = PyInt_FromLong((&result)->Item(i));
8851 PyList_Append(resultobj, number);
8852 Py_DECREF(number);
8853 }
8854 }
8855 return resultobj;
8856 fail:
8857 return NULL;
8858}
8859
8860
8861static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj;
8863 int arg1 ;
8864 int arg2 ;
8865 bool result;
8866 char *kwnames[] = {
8867 (char *) "encIn",(char *) "encOut", NULL
8868 };
8869
8870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8871 {
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8874
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = PyInt_FromLong((long)result);
8879 return resultobj;
8880 fail:
8881 return NULL;
8882}
8883
8884
8885static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8886 PyObject *obj;
8887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8888 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8889 Py_INCREF(obj);
8890 return Py_BuildValue((char *)"");
8891}
8892static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8893 PyObject *resultobj;
8894 wxDC *arg1 = (wxDC *) 0 ;
8895 PyObject * obj0 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "self", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8902 {
8903 PyThreadState* __tstate = wxPyBeginAllowThreads();
8904 delete arg1;
8905
8906 wxPyEndAllowThreads(__tstate);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 }
8909 Py_INCREF(Py_None); resultobj = Py_None;
8910 return resultobj;
8911 fail:
8912 return NULL;
8913}
8914
8915
8916static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj;
8918 wxDC *arg1 = (wxDC *) 0 ;
8919 PyObject * obj0 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "self", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
8925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 (arg1)->BeginDrawing();
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 Py_INCREF(Py_None); resultobj = Py_None;
8934 return resultobj;
8935 fail:
8936 return NULL;
8937}
8938
8939
8940static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 wxDC *arg1 = (wxDC *) 0 ;
8943 PyObject * obj0 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
8949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 (arg1)->EndDrawing();
8953
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 Py_INCREF(Py_None); resultobj = Py_None;
8958 return resultobj;
8959 fail:
8960 return NULL;
8961}
8962
8963
8964static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
8965 PyObject *resultobj;
8966 wxDC *arg1 = (wxDC *) 0 ;
8967 wxCoord arg2 ;
8968 wxCoord arg3 ;
8969 wxColour *arg4 = 0 ;
8970 int arg5 = (int) wxFLOOD_SURFACE ;
8971 bool result;
8972 wxColour temp4 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj3 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8981 {
8982 arg4 = &temp4;
8983 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
8984 }
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 resultobj = PyInt_FromLong((long)result);
8993 return resultobj;
8994 fail:
8995 return NULL;
8996}
8997
8998
8999static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxDC *arg1 = (wxDC *) 0 ;
9002 wxPoint *arg2 = 0 ;
9003 wxColour *arg3 = 0 ;
9004 int arg4 = (int) wxFLOOD_SURFACE ;
9005 bool result;
9006 wxPoint temp2 ;
9007 wxColour temp3 ;
9008 PyObject * obj0 = 0 ;
9009 PyObject * obj1 = 0 ;
9010 PyObject * obj2 = 0 ;
9011 char *kwnames[] = {
9012 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9013 };
9014
9015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9017 {
9018 arg2 = &temp2;
9019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9020 }
9021 {
9022 arg3 = &temp3;
9023 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9024 }
9025 {
9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
9027 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9028
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 resultobj = PyInt_FromLong((long)result);
9033 return resultobj;
9034 fail:
9035 return NULL;
9036}
9037
9038
9039static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxDC *arg1 = (wxDC *) 0 ;
9042 wxCoord arg2 ;
9043 wxCoord arg3 ;
9044 wxColour result;
9045 PyObject * obj0 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "self",(char *) "x",(char *) "y", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9052 {
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9055
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 {
9060 wxColour * resultptr;
9061 resultptr = new wxColour((wxColour &) result);
9062 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9063 }
9064 return resultobj;
9065 fail:
9066 return NULL;
9067}
9068
9069
9070static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9071 PyObject *resultobj;
9072 wxDC *arg1 = (wxDC *) 0 ;
9073 wxPoint *arg2 = 0 ;
9074 wxColour result;
9075 wxPoint temp2 ;
9076 PyObject * obj0 = 0 ;
9077 PyObject * obj1 = 0 ;
9078 char *kwnames[] = {
9079 (char *) "self",(char *) "pt", NULL
9080 };
9081
9082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9084 {
9085 arg2 = &temp2;
9086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9087 }
9088 {
9089 PyThreadState* __tstate = wxPyBeginAllowThreads();
9090 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9091
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 {
9096 wxColour * resultptr;
9097 resultptr = new wxColour((wxColour &) result);
9098 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9099 }
9100 return resultobj;
9101 fail:
9102 return NULL;
9103}
9104
9105
9106static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj;
9108 wxDC *arg1 = (wxDC *) 0 ;
9109 wxCoord arg2 ;
9110 wxCoord arg3 ;
9111 wxCoord arg4 ;
9112 wxCoord arg5 ;
9113 PyObject * obj0 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9123
9124 wxPyEndAllowThreads(__tstate);
9125 if (PyErr_Occurred()) SWIG_fail;
9126 }
9127 Py_INCREF(Py_None); resultobj = Py_None;
9128 return resultobj;
9129 fail:
9130 return NULL;
9131}
9132
9133
9134static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9135 PyObject *resultobj;
9136 wxDC *arg1 = (wxDC *) 0 ;
9137 wxPoint *arg2 = 0 ;
9138 wxPoint *arg3 = 0 ;
9139 wxPoint temp2 ;
9140 wxPoint temp3 ;
9141 PyObject * obj0 = 0 ;
9142 PyObject * obj1 = 0 ;
9143 PyObject * obj2 = 0 ;
9144 char *kwnames[] = {
9145 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9146 };
9147
9148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9150 {
9151 arg2 = &temp2;
9152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9153 }
9154 {
9155 arg3 = &temp3;
9156 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9157 }
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9161
9162 wxPyEndAllowThreads(__tstate);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 Py_INCREF(Py_None); resultobj = Py_None;
9166 return resultobj;
9167 fail:
9168 return NULL;
9169}
9170
9171
9172static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9173 PyObject *resultobj;
9174 wxDC *arg1 = (wxDC *) 0 ;
9175 wxCoord arg2 ;
9176 wxCoord arg3 ;
9177 PyObject * obj0 = 0 ;
9178 char *kwnames[] = {
9179 (char *) "self",(char *) "x",(char *) "y", NULL
9180 };
9181
9182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9184 {
9185 PyThreadState* __tstate = wxPyBeginAllowThreads();
9186 (arg1)->CrossHair(arg2,arg3);
9187
9188 wxPyEndAllowThreads(__tstate);
9189 if (PyErr_Occurred()) SWIG_fail;
9190 }
9191 Py_INCREF(Py_None); resultobj = Py_None;
9192 return resultobj;
9193 fail:
9194 return NULL;
9195}
9196
9197
9198static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj;
9200 wxDC *arg1 = (wxDC *) 0 ;
9201 wxPoint *arg2 = 0 ;
9202 wxPoint temp2 ;
9203 PyObject * obj0 = 0 ;
9204 PyObject * obj1 = 0 ;
9205 char *kwnames[] = {
9206 (char *) "self",(char *) "pt", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9211 {
9212 arg2 = &temp2;
9213 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9214 }
9215 {
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 (arg1)->CrossHair((wxPoint const &)*arg2);
9218
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 Py_INCREF(Py_None); resultobj = Py_None;
9223 return resultobj;
9224 fail:
9225 return NULL;
9226}
9227
9228
9229static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9230 PyObject *resultobj;
9231 wxDC *arg1 = (wxDC *) 0 ;
9232 wxCoord arg2 ;
9233 wxCoord arg3 ;
9234 wxCoord arg4 ;
9235 wxCoord arg5 ;
9236 wxCoord arg6 ;
9237 wxCoord arg7 ;
9238 PyObject * obj0 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9248
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 Py_INCREF(Py_None); resultobj = Py_None;
9253 return resultobj;
9254 fail:
9255 return NULL;
9256}
9257
9258
9259static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj;
9261 wxDC *arg1 = (wxDC *) 0 ;
9262 wxPoint *arg2 = 0 ;
9263 wxPoint *arg3 = 0 ;
9264 wxPoint *arg4 = 0 ;
9265 wxPoint temp2 ;
9266 wxPoint temp3 ;
9267 wxPoint temp4 ;
9268 PyObject * obj0 = 0 ;
9269 PyObject * obj1 = 0 ;
9270 PyObject * obj2 = 0 ;
9271 PyObject * obj3 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9278 {
9279 arg2 = &temp2;
9280 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9281 }
9282 {
9283 arg3 = &temp3;
9284 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9285 }
9286 {
9287 arg4 = &temp4;
9288 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9289 }
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9293
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 Py_INCREF(Py_None); resultobj = Py_None;
9298 return resultobj;
9299 fail:
9300 return NULL;
9301}
9302
9303
9304static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj;
9306 wxDC *arg1 = (wxDC *) 0 ;
9307 wxCoord arg2 ;
9308 wxCoord arg3 ;
9309 wxCoord arg4 ;
9310 wxCoord arg5 ;
9311 PyObject * obj0 = 0 ;
9312 char *kwnames[] = {
9313 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9314 };
9315
9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
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_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj;
9334 wxDC *arg1 = (wxDC *) 0 ;
9335 wxRect *arg2 = 0 ;
9336 wxRect temp2 ;
9337 PyObject * obj0 = 0 ;
9338 PyObject * obj1 = 0 ;
9339 char *kwnames[] = {
9340 (char *) "self",(char *) "rect", NULL
9341 };
9342
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9345 {
9346 arg2 = &temp2;
9347 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9348 }
9349 {
9350 PyThreadState* __tstate = wxPyBeginAllowThreads();
9351 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9352
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 Py_INCREF(Py_None); resultobj = Py_None;
9357 return resultobj;
9358 fail:
9359 return NULL;
9360}
9361
9362
9363static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj;
9365 wxDC *arg1 = (wxDC *) 0 ;
9366 wxCoord arg2 ;
9367 wxCoord arg3 ;
9368 wxCoord arg4 ;
9369 wxCoord arg5 ;
9370 double arg6 ;
9371 double arg7 ;
9372 PyObject * obj0 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9382
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 Py_INCREF(Py_None); resultobj = Py_None;
9387 return resultobj;
9388 fail:
9389 return NULL;
9390}
9391
9392
9393static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj;
9395 wxDC *arg1 = (wxDC *) 0 ;
9396 wxPoint *arg2 = 0 ;
9397 wxSize *arg3 = 0 ;
9398 double arg4 ;
9399 double arg5 ;
9400 wxPoint temp2 ;
9401 wxSize temp3 ;
9402 PyObject * obj0 = 0 ;
9403 PyObject * obj1 = 0 ;
9404 PyObject * obj2 = 0 ;
9405 char *kwnames[] = {
9406 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9407 };
9408
9409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9411 {
9412 arg2 = &temp2;
9413 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9414 }
9415 {
9416 arg3 = &temp3;
9417 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9418 }
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 Py_INCREF(Py_None); resultobj = Py_None;
9427 return resultobj;
9428 fail:
9429 return NULL;
9430}
9431
9432
9433static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj;
9435 wxDC *arg1 = (wxDC *) 0 ;
9436 wxCoord arg2 ;
9437 wxCoord arg3 ;
9438 PyObject * obj0 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self",(char *) "x",(char *) "y", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 (arg1)->DrawPoint(arg2,arg3);
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 Py_INCREF(Py_None); resultobj = Py_None;
9453 return resultobj;
9454 fail:
9455 return NULL;
9456}
9457
9458
9459static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9460 PyObject *resultobj;
9461 wxDC *arg1 = (wxDC *) 0 ;
9462 wxPoint *arg2 = 0 ;
9463 wxPoint temp2 ;
9464 PyObject * obj0 = 0 ;
9465 PyObject * obj1 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self",(char *) "pt", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9472 {
9473 arg2 = &temp2;
9474 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9475 }
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 (arg1)->DrawPoint((wxPoint const &)*arg2);
9479
9480 wxPyEndAllowThreads(__tstate);
9481 if (PyErr_Occurred()) SWIG_fail;
9482 }
9483 Py_INCREF(Py_None); resultobj = Py_None;
9484 return resultobj;
9485 fail:
9486 return NULL;
9487}
9488
9489
9490static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9491 PyObject *resultobj;
9492 wxDC *arg1 = (wxDC *) 0 ;
9493 wxCoord arg2 ;
9494 wxCoord arg3 ;
9495 wxCoord arg4 ;
9496 wxCoord arg5 ;
9497 PyObject * obj0 = 0 ;
9498 char *kwnames[] = {
9499 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9500 };
9501
9502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
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_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxDC *arg1 = (wxDC *) 0 ;
9521 wxPoint *arg2 = 0 ;
9522 wxSize *arg3 = 0 ;
9523 wxPoint temp2 ;
9524 wxSize temp3 ;
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 PyObject * obj2 = 0 ;
9528 char *kwnames[] = {
9529 (char *) "self",(char *) "pt",(char *) "sz", NULL
9530 };
9531
9532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9534 {
9535 arg2 = &temp2;
9536 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9537 }
9538 {
9539 arg3 = &temp3;
9540 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9541 }
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 Py_INCREF(Py_None); resultobj = Py_None;
9550 return resultobj;
9551 fail:
9552 return NULL;
9553}
9554
9555
9556static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxDC *arg1 = (wxDC *) 0 ;
9559 wxRect *arg2 = 0 ;
9560 wxRect temp2 ;
9561 PyObject * obj0 = 0 ;
9562 PyObject * obj1 = 0 ;
9563 char *kwnames[] = {
9564 (char *) "self",(char *) "rect", NULL
9565 };
9566
9567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9569 {
9570 arg2 = &temp2;
9571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 (arg1)->DrawRectangle((wxRect const &)*arg2);
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 Py_INCREF(Py_None); resultobj = Py_None;
9581 return resultobj;
9582 fail:
9583 return NULL;
9584}
9585
9586
9587static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj;
9589 wxDC *arg1 = (wxDC *) 0 ;
9590 wxCoord arg2 ;
9591 wxCoord arg3 ;
9592 wxCoord arg4 ;
9593 wxCoord arg5 ;
9594 double arg6 ;
9595 PyObject * obj0 = 0 ;
9596 char *kwnames[] = {
9597 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9598 };
9599
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9605
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 Py_INCREF(Py_None); resultobj = Py_None;
9610 return resultobj;
9611 fail:
9612 return NULL;
9613}
9614
9615
9616static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxDC *arg1 = (wxDC *) 0 ;
9619 wxPoint *arg2 = 0 ;
9620 wxSize *arg3 = 0 ;
9621 double arg4 ;
9622 wxPoint temp2 ;
9623 wxSize temp3 ;
9624 PyObject * obj0 = 0 ;
9625 PyObject * obj1 = 0 ;
9626 PyObject * obj2 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9633 {
9634 arg2 = &temp2;
9635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9636 }
9637 {
9638 arg3 = &temp3;
9639 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9640 }
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9644
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 Py_INCREF(Py_None); resultobj = Py_None;
9649 return resultobj;
9650 fail:
9651 return NULL;
9652}
9653
9654
9655static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9656 PyObject *resultobj;
9657 wxDC *arg1 = (wxDC *) 0 ;
9658 wxRect *arg2 = 0 ;
9659 double arg3 ;
9660 wxRect temp2 ;
9661 PyObject * obj0 = 0 ;
9662 PyObject * obj1 = 0 ;
9663 char *kwnames[] = {
9664 (char *) "self",(char *) "r",(char *) "radius", NULL
9665 };
9666
9667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9669 {
9670 arg2 = &temp2;
9671 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9676
9677 wxPyEndAllowThreads(__tstate);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 }
9680 Py_INCREF(Py_None); resultobj = Py_None;
9681 return resultobj;
9682 fail:
9683 return NULL;
9684}
9685
9686
9687static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9688 PyObject *resultobj;
9689 wxDC *arg1 = (wxDC *) 0 ;
9690 wxCoord arg2 ;
9691 wxCoord arg3 ;
9692 wxCoord arg4 ;
9693 PyObject * obj0 = 0 ;
9694 char *kwnames[] = {
9695 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9696 };
9697
9698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9700 {
9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
9702 (arg1)->DrawCircle(arg2,arg3,arg4);
9703
9704 wxPyEndAllowThreads(__tstate);
9705 if (PyErr_Occurred()) SWIG_fail;
9706 }
9707 Py_INCREF(Py_None); resultobj = Py_None;
9708 return resultobj;
9709 fail:
9710 return NULL;
9711}
9712
9713
9714static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj;
9716 wxDC *arg1 = (wxDC *) 0 ;
9717 wxPoint *arg2 = 0 ;
9718 wxCoord arg3 ;
9719 wxPoint temp2 ;
9720 PyObject * obj0 = 0 ;
9721 PyObject * obj1 = 0 ;
9722 char *kwnames[] = {
9723 (char *) "self",(char *) "pt",(char *) "radius", NULL
9724 };
9725
9726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9728 {
9729 arg2 = &temp2;
9730 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9731 }
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9735
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 Py_INCREF(Py_None); resultobj = Py_None;
9740 return resultobj;
9741 fail:
9742 return NULL;
9743}
9744
9745
9746static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 wxDC *arg1 = (wxDC *) 0 ;
9749 wxCoord arg2 ;
9750 wxCoord arg3 ;
9751 wxCoord arg4 ;
9752 wxCoord arg5 ;
9753 PyObject * obj0 = 0 ;
9754 char *kwnames[] = {
9755 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9756 };
9757
9758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
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_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj;
9776 wxDC *arg1 = (wxDC *) 0 ;
9777 wxPoint *arg2 = 0 ;
9778 wxSize *arg3 = 0 ;
9779 wxPoint temp2 ;
9780 wxSize temp3 ;
9781 PyObject * obj0 = 0 ;
9782 PyObject * obj1 = 0 ;
9783 PyObject * obj2 = 0 ;
9784 char *kwnames[] = {
9785 (char *) "self",(char *) "pt",(char *) "sz", NULL
9786 };
9787
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9790 {
9791 arg2 = &temp2;
9792 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9793 }
9794 {
9795 arg3 = &temp3;
9796 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 Py_INCREF(Py_None); resultobj = Py_None;
9806 return resultobj;
9807 fail:
9808 return NULL;
9809}
9810
9811
9812static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj;
9814 wxDC *arg1 = (wxDC *) 0 ;
9815 wxRect *arg2 = 0 ;
9816 wxRect temp2 ;
9817 PyObject * obj0 = 0 ;
9818 PyObject * obj1 = 0 ;
9819 char *kwnames[] = {
9820 (char *) "self",(char *) "rect", NULL
9821 };
9822
9823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9825 {
9826 arg2 = &temp2;
9827 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9828 }
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 (arg1)->DrawEllipse((wxRect const &)*arg2);
9832
9833 wxPyEndAllowThreads(__tstate);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 Py_INCREF(Py_None); resultobj = Py_None;
9837 return resultobj;
9838 fail:
9839 return NULL;
9840}
9841
9842
9843static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9844 PyObject *resultobj;
9845 wxDC *arg1 = (wxDC *) 0 ;
9846 wxIcon *arg2 = 0 ;
9847 wxCoord arg3 ;
9848 wxCoord arg4 ;
9849 PyObject * obj0 = 0 ;
9850 PyObject * obj1 = 0 ;
9851 char *kwnames[] = {
9852 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9857 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9858 if (arg2 == NULL) {
9859 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9860 }
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 Py_INCREF(Py_None); resultobj = Py_None;
9869 return resultobj;
9870 fail:
9871 return NULL;
9872}
9873
9874
9875static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj;
9877 wxDC *arg1 = (wxDC *) 0 ;
9878 wxIcon *arg2 = 0 ;
9879 wxPoint *arg3 = 0 ;
9880 wxPoint temp3 ;
9881 PyObject * obj0 = 0 ;
9882 PyObject * obj1 = 0 ;
9883 PyObject * obj2 = 0 ;
9884 char *kwnames[] = {
9885 (char *) "self",(char *) "icon",(char *) "pt", NULL
9886 };
9887
9888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9890 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9891 if (arg2 == NULL) {
9892 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9893 }
9894 {
9895 arg3 = &temp3;
9896 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9897 }
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9901
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 Py_INCREF(Py_None); resultobj = Py_None;
9906 return resultobj;
9907 fail:
9908 return NULL;
9909}
9910
9911
9912static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9913 PyObject *resultobj;
9914 wxDC *arg1 = (wxDC *) 0 ;
9915 wxBitmap *arg2 = 0 ;
9916 wxCoord arg3 ;
9917 wxCoord arg4 ;
9918 bool arg5 = (bool) FALSE ;
9919 PyObject * obj0 = 0 ;
9920 PyObject * obj1 = 0 ;
9921 PyObject * obj4 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9928 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9929 if (arg2 == NULL) {
9930 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9931 }
9932 if (obj4) {
9933 arg5 = PyInt_AsLong(obj4) ? true : false;
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
9939
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 Py_INCREF(Py_None); resultobj = Py_None;
9944 return resultobj;
9945 fail:
9946 return NULL;
9947}
9948
9949
9950static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj;
9952 wxDC *arg1 = (wxDC *) 0 ;
9953 wxBitmap *arg2 = 0 ;
9954 wxPoint *arg3 = 0 ;
9955 bool arg4 = (bool) FALSE ;
9956 wxPoint temp3 ;
9957 PyObject * obj0 = 0 ;
9958 PyObject * obj1 = 0 ;
9959 PyObject * obj2 = 0 ;
9960 PyObject * obj3 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9967 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9968 if (arg2 == NULL) {
9969 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9970 }
9971 {
9972 arg3 = &temp3;
9973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9974 }
9975 if (obj3) {
9976 arg4 = PyInt_AsLong(obj3) ? true : false;
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 Py_INCREF(Py_None); resultobj = Py_None;
9987 return resultobj;
9988 fail:
9989 return NULL;
9990}
9991
9992
9993static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj;
9995 wxDC *arg1 = (wxDC *) 0 ;
9996 wxString *arg2 = 0 ;
9997 wxCoord arg3 ;
9998 wxCoord arg4 ;
9999 bool temp2 = false ;
10000 PyObject * obj0 = 0 ;
10001 PyObject * obj1 = 0 ;
10002 char *kwnames[] = {
10003 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10004 };
10005
10006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10008 {
10009 arg2 = wxString_in_helper(obj1);
10010 if (arg2 == NULL) SWIG_fail;
10011 temp2 = true;
10012 }
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10016
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 Py_INCREF(Py_None); resultobj = Py_None;
10021 {
10022 if (temp2)
10023 delete arg2;
10024 }
10025 return resultobj;
10026 fail:
10027 {
10028 if (temp2)
10029 delete arg2;
10030 }
10031 return NULL;
10032}
10033
10034
10035static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 wxDC *arg1 = (wxDC *) 0 ;
10038 wxString *arg2 = 0 ;
10039 wxPoint *arg3 = 0 ;
10040 bool temp2 = false ;
10041 wxPoint temp3 ;
10042 PyObject * obj0 = 0 ;
10043 PyObject * obj1 = 0 ;
10044 PyObject * obj2 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self",(char *) "text",(char *) "pt", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10051 {
10052 arg2 = wxString_in_helper(obj1);
10053 if (arg2 == NULL) SWIG_fail;
10054 temp2 = true;
10055 }
10056 {
10057 arg3 = &temp3;
10058 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10059 }
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 Py_INCREF(Py_None); resultobj = Py_None;
10068 {
10069 if (temp2)
10070 delete arg2;
10071 }
10072 return resultobj;
10073 fail:
10074 {
10075 if (temp2)
10076 delete arg2;
10077 }
10078 return NULL;
10079}
10080
10081
10082static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxDC *arg1 = (wxDC *) 0 ;
10085 wxString *arg2 = 0 ;
10086 wxCoord arg3 ;
10087 wxCoord arg4 ;
10088 double arg5 ;
10089 bool temp2 = false ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 char *kwnames[] = {
10093 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10094 };
10095
10096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10098 {
10099 arg2 = wxString_in_helper(obj1);
10100 if (arg2 == NULL) SWIG_fail;
10101 temp2 = true;
10102 }
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 Py_INCREF(Py_None); resultobj = Py_None;
10111 {
10112 if (temp2)
10113 delete arg2;
10114 }
10115 return resultobj;
10116 fail:
10117 {
10118 if (temp2)
10119 delete arg2;
10120 }
10121 return NULL;
10122}
10123
10124
10125static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj;
10127 wxDC *arg1 = (wxDC *) 0 ;
10128 wxString *arg2 = 0 ;
10129 wxPoint *arg3 = 0 ;
10130 double arg4 ;
10131 bool temp2 = false ;
10132 wxPoint temp3 ;
10133 PyObject * obj0 = 0 ;
10134 PyObject * obj1 = 0 ;
10135 PyObject * obj2 = 0 ;
10136 char *kwnames[] = {
10137 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10138 };
10139
10140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10142 {
10143 arg2 = wxString_in_helper(obj1);
10144 if (arg2 == NULL) SWIG_fail;
10145 temp2 = true;
10146 }
10147 {
10148 arg3 = &temp3;
10149 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10150 }
10151 {
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10154
10155 wxPyEndAllowThreads(__tstate);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 Py_INCREF(Py_None); resultobj = Py_None;
10159 {
10160 if (temp2)
10161 delete arg2;
10162 }
10163 return resultobj;
10164 fail:
10165 {
10166 if (temp2)
10167 delete arg2;
10168 }
10169 return NULL;
10170}
10171
10172
10173static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj;
10175 wxDC *arg1 = (wxDC *) 0 ;
10176 wxCoord arg2 ;
10177 wxCoord arg3 ;
10178 wxCoord arg4 ;
10179 wxCoord arg5 ;
10180 wxDC *arg6 = (wxDC *) 0 ;
10181 wxCoord arg7 ;
10182 wxCoord arg8 ;
10183 int arg9 = (int) wxCOPY ;
10184 bool arg10 = (bool) FALSE ;
10185 wxCoord arg11 = (wxCoord) -1 ;
10186 wxCoord arg12 = (wxCoord) -1 ;
10187 bool result;
10188 PyObject * obj0 = 0 ;
10189 PyObject * obj5 = 0 ;
10190 PyObject * obj9 = 0 ;
10191 char *kwnames[] = {
10192 (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
10193 };
10194
10195 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;
10196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10197 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10198 if (obj9) {
10199 arg10 = PyInt_AsLong(obj9) ? true : false;
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 {
10203 PyThreadState* __tstate = wxPyBeginAllowThreads();
10204 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10205
10206 wxPyEndAllowThreads(__tstate);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 resultobj = PyInt_FromLong((long)result);
10210 return resultobj;
10211 fail:
10212 return NULL;
10213}
10214
10215
10216static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10217 PyObject *resultobj;
10218 wxDC *arg1 = (wxDC *) 0 ;
10219 wxPoint *arg2 = 0 ;
10220 wxSize *arg3 = 0 ;
10221 wxDC *arg4 = (wxDC *) 0 ;
10222 wxPoint *arg5 = 0 ;
10223 int arg6 = (int) wxCOPY ;
10224 bool arg7 = (bool) FALSE ;
10225 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10226 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10227 bool result;
10228 wxPoint temp2 ;
10229 wxSize temp3 ;
10230 wxPoint temp5 ;
10231 wxPoint temp8 ;
10232 PyObject * obj0 = 0 ;
10233 PyObject * obj1 = 0 ;
10234 PyObject * obj2 = 0 ;
10235 PyObject * obj3 = 0 ;
10236 PyObject * obj4 = 0 ;
10237 PyObject * obj6 = 0 ;
10238 PyObject * obj7 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10245 {
10246 arg2 = &temp2;
10247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10248 }
10249 {
10250 arg3 = &temp3;
10251 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10252 }
10253 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10254 {
10255 arg5 = &temp5;
10256 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10257 }
10258 if (obj6) {
10259 arg7 = PyInt_AsLong(obj6) ? true : false;
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 if (obj7) {
10263 {
10264 arg8 = &temp8;
10265 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10266 }
10267 }
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 resultobj = PyInt_FromLong((long)result);
10276 return resultobj;
10277 fail:
10278 return NULL;
10279}
10280
10281
10282static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxDC *arg1 = (wxDC *) 0 ;
10285 int arg2 ;
10286 wxPoint *arg3 = (wxPoint *) 0 ;
10287 wxCoord arg4 = (wxCoord) 0 ;
10288 wxCoord arg5 = (wxCoord) 0 ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 char *kwnames[] = {
10292 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10293 };
10294
10295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10297 {
10298 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10299 if (arg3 == NULL) SWIG_fail;
10300 }
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 Py_INCREF(Py_None); resultobj = Py_None;
10309 {
10310 if (arg3) delete [] arg3;
10311 }
10312 return resultobj;
10313 fail:
10314 {
10315 if (arg3) delete [] arg3;
10316 }
10317 return NULL;
10318}
10319
10320
10321static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj;
10323 wxDC *arg1 = (wxDC *) 0 ;
10324 int arg2 ;
10325 wxPoint *arg3 = (wxPoint *) 0 ;
10326 wxCoord arg4 = (wxCoord) 0 ;
10327 wxCoord arg5 = (wxCoord) 0 ;
10328 int arg6 = (int) wxODDEVEN_RULE ;
10329 PyObject * obj0 = 0 ;
10330 PyObject * obj1 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10337 {
10338 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10339 if (arg3 == NULL) SWIG_fail;
10340 }
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10344
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 Py_INCREF(Py_None); resultobj = Py_None;
10349 {
10350 if (arg3) delete [] arg3;
10351 }
10352 return resultobj;
10353 fail:
10354 {
10355 if (arg3) delete [] arg3;
10356 }
10357 return NULL;
10358}
10359
10360
10361static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj;
10363 wxDC *arg1 = (wxDC *) 0 ;
10364 wxString *arg2 = 0 ;
10365 wxRect *arg3 = 0 ;
10366 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10367 int arg5 = (int) -1 ;
10368 bool temp2 = false ;
10369 wxRect temp3 ;
10370 PyObject * obj0 = 0 ;
10371 PyObject * obj1 = 0 ;
10372 PyObject * obj2 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10379 {
10380 arg2 = wxString_in_helper(obj1);
10381 if (arg2 == NULL) SWIG_fail;
10382 temp2 = true;
10383 }
10384 {
10385 arg3 = &temp3;
10386 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10387 }
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10391
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 Py_INCREF(Py_None); resultobj = Py_None;
10396 {
10397 if (temp2)
10398 delete arg2;
10399 }
10400 return resultobj;
10401 fail:
10402 {
10403 if (temp2)
10404 delete arg2;
10405 }
10406 return NULL;
10407}
10408
10409
10410static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj;
10412 wxDC *arg1 = (wxDC *) 0 ;
10413 wxString *arg2 = 0 ;
10414 wxBitmap *arg3 = 0 ;
10415 wxRect *arg4 = 0 ;
10416 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10417 int arg6 = (int) -1 ;
10418 wxRect result;
10419 bool temp2 = false ;
10420 wxRect temp4 ;
10421 PyObject * obj0 = 0 ;
10422 PyObject * obj1 = 0 ;
10423 PyObject * obj2 = 0 ;
10424 PyObject * obj3 = 0 ;
10425 char *kwnames[] = {
10426 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10427 };
10428
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10431 {
10432 arg2 = wxString_in_helper(obj1);
10433 if (arg2 == NULL) SWIG_fail;
10434 temp2 = true;
10435 }
10436 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10437 if (arg3 == NULL) {
10438 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10439 }
10440 {
10441 arg4 = &temp4;
10442 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10443 }
10444 {
10445 PyThreadState* __tstate = wxPyBeginAllowThreads();
10446 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10447
10448 wxPyEndAllowThreads(__tstate);
10449 if (PyErr_Occurred()) SWIG_fail;
10450 }
10451 {
10452 wxRect * resultptr;
10453 resultptr = new wxRect((wxRect &) result);
10454 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10455 }
10456 {
10457 if (temp2)
10458 delete arg2;
10459 }
10460 return resultobj;
10461 fail:
10462 {
10463 if (temp2)
10464 delete arg2;
10465 }
10466 return NULL;
10467}
10468
10469
10470static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj;
10472 wxDC *arg1 = (wxDC *) 0 ;
10473 int arg2 ;
10474 wxPoint *arg3 = (wxPoint *) 0 ;
10475 PyObject * obj0 = 0 ;
10476 PyObject * obj1 = 0 ;
10477 char *kwnames[] = {
10478 (char *) "self",(char *) "points", NULL
10479 };
10480
10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10483 {
10484 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10485 if (arg3 == NULL) SWIG_fail;
10486 }
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 (arg1)->DrawSpline(arg2,arg3);
10490
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) SWIG_fail;
10493 }
10494 Py_INCREF(Py_None); resultobj = Py_None;
10495 {
10496 if (arg3) delete [] arg3;
10497 }
10498 return resultobj;
10499 fail:
10500 {
10501 if (arg3) delete [] arg3;
10502 }
10503 return NULL;
10504}
10505
10506
10507static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj;
10509 wxDC *arg1 = (wxDC *) 0 ;
10510 PyObject * obj0 = 0 ;
10511 char *kwnames[] = {
10512 (char *) "self", NULL
10513 };
10514
10515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 (arg1)->Clear();
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 Py_INCREF(Py_None); resultobj = Py_None;
10525 return resultobj;
10526 fail:
10527 return NULL;
10528}
10529
10530
10531static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxDC *arg1 = (wxDC *) 0 ;
10534 wxString *arg2 = 0 ;
10535 bool result;
10536 bool temp2 = false ;
10537 PyObject * obj0 = 0 ;
10538 PyObject * obj1 = 0 ;
10539 char *kwnames[] = {
10540 (char *) "self",(char *) "message", NULL
10541 };
10542
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10545 {
10546 arg2 = wxString_in_helper(obj1);
10547 if (arg2 == NULL) SWIG_fail;
10548 temp2 = true;
10549 }
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10553
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 resultobj = PyInt_FromLong((long)result);
10558 {
10559 if (temp2)
10560 delete arg2;
10561 }
10562 return resultobj;
10563 fail:
10564 {
10565 if (temp2)
10566 delete arg2;
10567 }
10568 return NULL;
10569}
10570
10571
10572static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10573 PyObject *resultobj;
10574 wxDC *arg1 = (wxDC *) 0 ;
10575 PyObject * obj0 = 0 ;
10576 char *kwnames[] = {
10577 (char *) "self", NULL
10578 };
10579
10580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 (arg1)->EndDoc();
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 Py_INCREF(Py_None); resultobj = Py_None;
10590 return resultobj;
10591 fail:
10592 return NULL;
10593}
10594
10595
10596static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj;
10598 wxDC *arg1 = (wxDC *) 0 ;
10599 PyObject * obj0 = 0 ;
10600 char *kwnames[] = {
10601 (char *) "self", NULL
10602 };
10603
10604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10606 {
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 (arg1)->StartPage();
10609
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
10613 Py_INCREF(Py_None); resultobj = Py_None;
10614 return resultobj;
10615 fail:
10616 return NULL;
10617}
10618
10619
10620static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj;
10622 wxDC *arg1 = (wxDC *) 0 ;
10623 PyObject * obj0 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 (arg1)->EndPage();
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 Py_INCREF(Py_None); resultobj = Py_None;
10638 return resultobj;
10639 fail:
10640 return NULL;
10641}
10642
10643
10644static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10645 PyObject *resultobj;
10646 wxDC *arg1 = (wxDC *) 0 ;
10647 wxFont *arg2 = 0 ;
10648 PyObject * obj0 = 0 ;
10649 PyObject * obj1 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self",(char *) "font", NULL
10652 };
10653
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10656 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10657 if (arg2 == NULL) {
10658 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10659 }
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 (arg1)->SetFont((wxFont const &)*arg2);
10663
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) SWIG_fail;
10666 }
10667 Py_INCREF(Py_None); resultobj = Py_None;
10668 return resultobj;
10669 fail:
10670 return NULL;
10671}
10672
10673
10674static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj;
10676 wxDC *arg1 = (wxDC *) 0 ;
10677 wxPen *arg2 = 0 ;
10678 PyObject * obj0 = 0 ;
10679 PyObject * obj1 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self",(char *) "pen", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10687 if (arg2 == NULL) {
10688 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10689 }
10690 {
10691 PyThreadState* __tstate = wxPyBeginAllowThreads();
10692 (arg1)->SetPen((wxPen const &)*arg2);
10693
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 Py_INCREF(Py_None); resultobj = Py_None;
10698 return resultobj;
10699 fail:
10700 return NULL;
10701}
10702
10703
10704static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj;
10706 wxDC *arg1 = (wxDC *) 0 ;
10707 wxBrush *arg2 = 0 ;
10708 PyObject * obj0 = 0 ;
10709 PyObject * obj1 = 0 ;
10710 char *kwnames[] = {
10711 (char *) "self",(char *) "brush", NULL
10712 };
10713
10714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10716 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10717 if (arg2 == NULL) {
10718 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 (arg1)->SetBrush((wxBrush const &)*arg2);
10723
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 Py_INCREF(Py_None); resultobj = Py_None;
10728 return resultobj;
10729 fail:
10730 return NULL;
10731}
10732
10733
10734static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10735 PyObject *resultobj;
10736 wxDC *arg1 = (wxDC *) 0 ;
10737 wxBrush *arg2 = 0 ;
10738 PyObject * obj0 = 0 ;
10739 PyObject * obj1 = 0 ;
10740 char *kwnames[] = {
10741 (char *) "self",(char *) "brush", NULL
10742 };
10743
10744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10747 if (arg2 == NULL) {
10748 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 (arg1)->SetBackground((wxBrush const &)*arg2);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 Py_INCREF(Py_None); resultobj = Py_None;
10758 return resultobj;
10759 fail:
10760 return NULL;
10761}
10762
10763
10764static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject *resultobj;
10766 wxDC *arg1 = (wxDC *) 0 ;
10767 int arg2 ;
10768 PyObject * obj0 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "mode", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 (arg1)->SetBackgroundMode(arg2);
10778
10779 wxPyEndAllowThreads(__tstate);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 }
10782 Py_INCREF(Py_None); resultobj = Py_None;
10783 return resultobj;
10784 fail:
10785 return NULL;
10786}
10787
10788
10789static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj;
10791 wxDC *arg1 = (wxDC *) 0 ;
10792 wxPalette *arg2 = 0 ;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 char *kwnames[] = {
10796 (char *) "self",(char *) "palette", NULL
10797 };
10798
10799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10801 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10802 if (arg2 == NULL) {
10803 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10804 }
10805 {
10806 PyThreadState* __tstate = wxPyBeginAllowThreads();
10807 (arg1)->SetPalette((wxPalette const &)*arg2);
10808
10809 wxPyEndAllowThreads(__tstate);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 Py_INCREF(Py_None); resultobj = Py_None;
10813 return resultobj;
10814 fail:
10815 return NULL;
10816}
10817
10818
10819static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10820 PyObject *resultobj;
10821 wxDC *arg1 = (wxDC *) 0 ;
10822 wxCoord arg2 ;
10823 wxCoord arg3 ;
10824 wxCoord arg4 ;
10825 wxCoord arg5 ;
10826 PyObject * obj0 = 0 ;
10827 char *kwnames[] = {
10828 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegion",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
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
10847static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj;
10849 wxDC *arg1 = (wxDC *) 0 ;
10850 wxRect *arg2 = 0 ;
10851 wxRect temp2 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 char *kwnames[] = {
10855 (char *) "self",(char *) "rect", NULL
10856 };
10857
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10860 {
10861 arg2 = &temp2;
10862 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10863 }
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875}
10876
10877
10878static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxDC *arg1 = (wxDC *) 0 ;
10881 wxRegion *arg2 = 0 ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self",(char *) "region", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10890 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10891 if (arg2 == NULL) {
10892 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10893 }
10894 {
10895 PyThreadState* __tstate = wxPyBeginAllowThreads();
10896 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
10897
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 Py_INCREF(Py_None); resultobj = Py_None;
10902 return resultobj;
10903 fail:
10904 return NULL;
10905}
10906
10907
10908static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject *resultobj;
10910 wxDC *arg1 = (wxDC *) 0 ;
10911 PyObject * obj0 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "self", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10918 {
10919 PyThreadState* __tstate = wxPyBeginAllowThreads();
10920 (arg1)->DestroyClippingRegion();
10921
10922 wxPyEndAllowThreads(__tstate);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 Py_INCREF(Py_None); resultobj = Py_None;
10926 return resultobj;
10927 fail:
10928 return NULL;
10929}
10930
10931
10932static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10933 PyObject *resultobj;
10934 wxDC *arg1 = (wxDC *) 0 ;
10935 wxCoord *arg2 = (wxCoord *) 0 ;
10936 wxCoord *arg3 = (wxCoord *) 0 ;
10937 wxCoord *arg4 = (wxCoord *) 0 ;
10938 wxCoord *arg5 = (wxCoord *) 0 ;
10939 wxCoord temp2 ;
10940 wxCoord temp3 ;
10941 wxCoord temp4 ;
10942 wxCoord temp5 ;
10943 PyObject * obj0 = 0 ;
10944 char *kwnames[] = {
10945 (char *) "self", NULL
10946 };
10947
10948 arg2 = &temp2;
10949 arg3 = &temp3;
10950 arg4 = &temp4;
10951 arg5 = &temp5;
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10954 {
10955 PyThreadState* __tstate = wxPyBeginAllowThreads();
10956 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
10957
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 Py_INCREF(Py_None); resultobj = Py_None;
10962 {
10963 PyObject *o = PyInt_FromLong((long) (*arg2));
10964 resultobj = t_output_helper(resultobj,o);
10965 }
10966 {
10967 PyObject *o = PyInt_FromLong((long) (*arg3));
10968 resultobj = t_output_helper(resultobj,o);
10969 }
10970 {
10971 PyObject *o = PyInt_FromLong((long) (*arg4));
10972 resultobj = t_output_helper(resultobj,o);
10973 }
10974 {
10975 PyObject *o = PyInt_FromLong((long) (*arg5));
10976 resultobj = t_output_helper(resultobj,o);
10977 }
10978 return resultobj;
10979 fail:
10980 return NULL;
10981}
10982
10983
10984static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxDC *arg1 = (wxDC *) 0 ;
10987 wxRect result;
10988 PyObject * obj0 = 0 ;
10989 char *kwnames[] = {
10990 (char *) "self", NULL
10991 };
10992
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
10994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = wxDC_GetClippingRect(arg1);
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 wxRect * resultptr;
11004 resultptr = new wxRect((wxRect &) result);
11005 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11006 }
11007 return resultobj;
11008 fail:
11009 return NULL;
11010}
11011
11012
11013static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxDC *arg1 = (wxDC *) 0 ;
11016 wxCoord result;
11017 PyObject * obj0 = 0 ;
11018 char *kwnames[] = {
11019 (char *) "self", NULL
11020 };
11021
11022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 result = (wxCoord)((wxDC const *)arg1)->GetCharHeight();
11027
11028 wxPyEndAllowThreads(__tstate);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 resultobj = PyInt_FromLong((long)result);
11032 return resultobj;
11033 fail:
11034 return NULL;
11035}
11036
11037
11038static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxDC *arg1 = (wxDC *) 0 ;
11041 wxCoord result;
11042 PyObject * obj0 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (wxCoord)((wxDC const *)arg1)->GetCharWidth();
11052
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 resultobj = PyInt_FromLong((long)result);
11057 return resultobj;
11058 fail:
11059 return NULL;
11060}
11061
11062
11063static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj;
11065 wxDC *arg1 = (wxDC *) 0 ;
11066 wxString *arg2 = 0 ;
11067 wxCoord *arg3 = (wxCoord *) 0 ;
11068 wxCoord *arg4 = (wxCoord *) 0 ;
11069 bool temp2 = false ;
11070 wxCoord temp3 ;
11071 wxCoord temp4 ;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "string", NULL
11076 };
11077
11078 arg3 = &temp3;
11079 arg4 = &temp4;
11080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11082 {
11083 arg2 = wxString_in_helper(obj1);
11084 if (arg2 == NULL) SWIG_fail;
11085 temp2 = true;
11086 }
11087 {
11088 PyThreadState* __tstate = wxPyBeginAllowThreads();
11089 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11090
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 Py_INCREF(Py_None); resultobj = Py_None;
11095 {
11096 PyObject *o = PyInt_FromLong((long) (*arg3));
11097 resultobj = t_output_helper(resultobj,o);
11098 }
11099 {
11100 PyObject *o = PyInt_FromLong((long) (*arg4));
11101 resultobj = t_output_helper(resultobj,o);
11102 }
11103 {
11104 if (temp2)
11105 delete arg2;
11106 }
11107 return resultobj;
11108 fail:
11109 {
11110 if (temp2)
11111 delete arg2;
11112 }
11113 return NULL;
11114}
11115
11116
11117static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj;
11119 wxDC *arg1 = (wxDC *) 0 ;
11120 wxString *arg2 = 0 ;
11121 wxCoord *arg3 = (wxCoord *) 0 ;
11122 wxCoord *arg4 = (wxCoord *) 0 ;
11123 wxCoord *arg5 = (wxCoord *) 0 ;
11124 wxCoord *arg6 = (wxCoord *) 0 ;
11125 wxFont *arg7 = (wxFont *) NULL ;
11126 bool temp2 = false ;
11127 wxCoord temp3 ;
11128 wxCoord temp4 ;
11129 wxCoord temp5 ;
11130 wxCoord temp6 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self",(char *) "string",(char *) "font", NULL
11136 };
11137
11138 arg3 = &temp3;
11139 arg4 = &temp4;
11140 arg5 = &temp5;
11141 arg6 = &temp6;
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11144 {
11145 arg2 = wxString_in_helper(obj1);
11146 if (arg2 == NULL) SWIG_fail;
11147 temp2 = true;
11148 }
11149 if (obj2) {
11150 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11151 }
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11155
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 Py_INCREF(Py_None); resultobj = Py_None;
11160 {
11161 PyObject *o = PyInt_FromLong((long) (*arg3));
11162 resultobj = t_output_helper(resultobj,o);
11163 }
11164 {
11165 PyObject *o = PyInt_FromLong((long) (*arg4));
11166 resultobj = t_output_helper(resultobj,o);
11167 }
11168 {
11169 PyObject *o = PyInt_FromLong((long) (*arg5));
11170 resultobj = t_output_helper(resultobj,o);
11171 }
11172 {
11173 PyObject *o = PyInt_FromLong((long) (*arg6));
11174 resultobj = t_output_helper(resultobj,o);
11175 }
11176 {
11177 if (temp2)
11178 delete arg2;
11179 }
11180 return resultobj;
11181 fail:
11182 {
11183 if (temp2)
11184 delete arg2;
11185 }
11186 return NULL;
11187}
11188
11189
11190static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj;
11192 wxDC *arg1 = (wxDC *) 0 ;
11193 wxString *arg2 = 0 ;
11194 wxCoord *arg3 = (wxCoord *) 0 ;
11195 wxCoord *arg4 = (wxCoord *) 0 ;
11196 wxCoord *arg5 = (wxCoord *) 0 ;
11197 wxFont *arg6 = (wxFont *) NULL ;
11198 bool temp2 = false ;
11199 wxCoord temp3 ;
11200 wxCoord temp4 ;
11201 wxCoord temp5 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 PyObject * obj2 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self",(char *) "text",(char *) "font", NULL
11207 };
11208
11209 arg3 = &temp3;
11210 arg4 = &temp4;
11211 arg5 = &temp5;
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11214 {
11215 arg2 = wxString_in_helper(obj1);
11216 if (arg2 == NULL) SWIG_fail;
11217 temp2 = true;
11218 }
11219 if (obj2) {
11220 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11221 }
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11225
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 Py_INCREF(Py_None); resultobj = Py_None;
11230 {
11231 PyObject *o = PyInt_FromLong((long) (*arg3));
11232 resultobj = t_output_helper(resultobj,o);
11233 }
11234 {
11235 PyObject *o = PyInt_FromLong((long) (*arg4));
11236 resultobj = t_output_helper(resultobj,o);
11237 }
11238 {
11239 PyObject *o = PyInt_FromLong((long) (*arg5));
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_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxDC *arg1 = (wxDC *) 0 ;
11259 int *arg2 = (int *) 0 ;
11260 int *arg3 = (int *) 0 ;
11261 int temp2 ;
11262 int temp3 ;
11263 PyObject * obj0 = 0 ;
11264 char *kwnames[] = {
11265 (char *) "self", NULL
11266 };
11267
11268 arg2 = &temp2;
11269 arg3 = &temp3;
11270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 (arg1)->GetSize(arg2,arg3);
11275
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 Py_INCREF(Py_None); resultobj = Py_None;
11280 {
11281 PyObject *o = PyInt_FromLong((long) (*arg2));
11282 resultobj = t_output_helper(resultobj,o);
11283 }
11284 {
11285 PyObject *o = PyInt_FromLong((long) (*arg3));
11286 resultobj = t_output_helper(resultobj,o);
11287 }
11288 return resultobj;
11289 fail:
11290 return NULL;
11291}
11292
11293
11294static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj;
11296 wxDC *arg1 = (wxDC *) 0 ;
11297 wxSize result;
11298 PyObject * obj0 = 0 ;
11299 char *kwnames[] = {
11300 (char *) "self", NULL
11301 };
11302
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (arg1)->GetSize();
11308
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 {
11313 wxSize * resultptr;
11314 resultptr = new wxSize((wxSize &) result);
11315 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11316 }
11317 return resultobj;
11318 fail:
11319 return NULL;
11320}
11321
11322
11323static PyObject *_wrap_DC_GetSizeMMWH(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxDC *arg1 = (wxDC *) 0 ;
11326 int *arg2 = (int *) 0 ;
11327 int *arg3 = (int *) 0 ;
11328 int temp2 ;
11329 int temp3 ;
11330 PyObject * obj0 = 0 ;
11331 char *kwnames[] = {
11332 (char *) "self", NULL
11333 };
11334
11335 arg2 = &temp2;
11336 arg3 = &temp3;
11337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMWH",kwnames,&obj0)) goto fail;
11338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11342
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 Py_INCREF(Py_None); resultobj = Py_None;
11347 {
11348 PyObject *o = PyInt_FromLong((long) (*arg2));
11349 resultobj = t_output_helper(resultobj,o);
11350 }
11351 {
11352 PyObject *o = PyInt_FromLong((long) (*arg3));
11353 resultobj = t_output_helper(resultobj,o);
11354 }
11355 return resultobj;
11356 fail:
11357 return NULL;
11358}
11359
11360
11361static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11362 PyObject *resultobj;
11363 wxDC *arg1 = (wxDC *) 0 ;
11364 wxSize result;
11365 PyObject * obj0 = 0 ;
11366 char *kwnames[] = {
11367 (char *) "self", NULL
11368 };
11369
11370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = ((wxDC const *)arg1)->GetSizeMM();
11375
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 {
11380 wxSize * resultptr;
11381 resultptr = new wxSize((wxSize &) result);
11382 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11383 }
11384 return resultobj;
11385 fail:
11386 return NULL;
11387}
11388
11389
11390static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 wxCoord arg2 ;
11394 wxCoord result;
11395 PyObject * obj0 = 0 ;
11396 char *kwnames[] = {
11397 (char *) "self",(char *) "x", NULL
11398 };
11399
11400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11402 {
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11405
11406 wxPyEndAllowThreads(__tstate);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 resultobj = PyInt_FromLong((long)result);
11410 return resultobj;
11411 fail:
11412 return NULL;
11413}
11414
11415
11416static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11417 PyObject *resultobj;
11418 wxDC *arg1 = (wxDC *) 0 ;
11419 wxCoord arg2 ;
11420 wxCoord result;
11421 PyObject * obj0 = 0 ;
11422 char *kwnames[] = {
11423 (char *) "self",(char *) "y", NULL
11424 };
11425
11426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11431
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 resultobj = PyInt_FromLong((long)result);
11436 return resultobj;
11437 fail:
11438 return NULL;
11439}
11440
11441
11442static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11443 PyObject *resultobj;
11444 wxDC *arg1 = (wxDC *) 0 ;
11445 wxCoord arg2 ;
11446 wxCoord result;
11447 PyObject * obj0 = 0 ;
11448 char *kwnames[] = {
11449 (char *) "self",(char *) "x", NULL
11450 };
11451
11452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11457
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 resultobj = PyInt_FromLong((long)result);
11462 return resultobj;
11463 fail:
11464 return NULL;
11465}
11466
11467
11468static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj;
11470 wxDC *arg1 = (wxDC *) 0 ;
11471 wxCoord arg2 ;
11472 wxCoord result;
11473 PyObject * obj0 = 0 ;
11474 char *kwnames[] = {
11475 (char *) "self",(char *) "y", NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = (wxCoord)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11483
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 resultobj = PyInt_FromLong((long)result);
11488 return resultobj;
11489 fail:
11490 return NULL;
11491}
11492
11493
11494static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 wxDC *arg1 = (wxDC *) 0 ;
11497 wxCoord arg2 ;
11498 wxCoord result;
11499 PyObject * obj0 = 0 ;
11500 char *kwnames[] = {
11501 (char *) "self",(char *) "x", NULL
11502 };
11503
11504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11509
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = PyInt_FromLong((long)result);
11514 return resultobj;
11515 fail:
11516 return NULL;
11517}
11518
11519
11520static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj;
11522 wxDC *arg1 = (wxDC *) 0 ;
11523 wxCoord arg2 ;
11524 wxCoord result;
11525 PyObject * obj0 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self",(char *) "y", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11535
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 resultobj = PyInt_FromLong((long)result);
11540 return resultobj;
11541 fail:
11542 return NULL;
11543}
11544
11545
11546static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11547 PyObject *resultobj;
11548 wxDC *arg1 = (wxDC *) 0 ;
11549 wxCoord arg2 ;
11550 wxCoord result;
11551 PyObject * obj0 = 0 ;
11552 char *kwnames[] = {
11553 (char *) "self",(char *) "x", NULL
11554 };
11555
11556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11561
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 resultobj = PyInt_FromLong((long)result);
11566 return resultobj;
11567 fail:
11568 return NULL;
11569}
11570
11571
11572static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj;
11574 wxDC *arg1 = (wxDC *) 0 ;
11575 wxCoord arg2 ;
11576 wxCoord result;
11577 PyObject * obj0 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self",(char *) "y", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (wxCoord)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 resultobj = PyInt_FromLong((long)result);
11592 return resultobj;
11593 fail:
11594 return NULL;
11595}
11596
11597
11598static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj;
11600 wxDC *arg1 = (wxDC *) 0 ;
11601 bool result;
11602 PyObject * obj0 = 0 ;
11603 char *kwnames[] = {
11604 (char *) "self", NULL
11605 };
11606
11607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 resultobj = PyInt_FromLong((long)result);
11617 return resultobj;
11618 fail:
11619 return NULL;
11620}
11621
11622
11623static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11624 PyObject *resultobj;
11625 wxDC *arg1 = (wxDC *) 0 ;
11626 bool result;
11627 PyObject * obj0 = 0 ;
11628 char *kwnames[] = {
11629 (char *) "self", NULL
11630 };
11631
11632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11634 {
11635 PyThreadState* __tstate = wxPyBeginAllowThreads();
11636 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11637
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 resultobj = PyInt_FromLong((long)result);
11642 return resultobj;
11643 fail:
11644 return NULL;
11645}
11646
11647
11648static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11649 PyObject *resultobj;
11650 wxDC *arg1 = (wxDC *) 0 ;
11651 int result;
11652 PyObject * obj0 = 0 ;
11653 char *kwnames[] = {
11654 (char *) "self", NULL
11655 };
11656
11657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11659 {
11660 PyThreadState* __tstate = wxPyBeginAllowThreads();
11661 result = (int)((wxDC const *)arg1)->GetDepth();
11662
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 resultobj = PyInt_FromLong((long)result);
11667 return resultobj;
11668 fail:
11669 return NULL;
11670}
11671
11672
11673static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11674 PyObject *resultobj;
11675 wxDC *arg1 = (wxDC *) 0 ;
11676 wxSize result;
11677 PyObject * obj0 = 0 ;
11678 char *kwnames[] = {
11679 (char *) "self", NULL
11680 };
11681
11682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 result = ((wxDC const *)arg1)->GetPPI();
11687
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 {
11692 wxSize * resultptr;
11693 resultptr = new wxSize((wxSize &) result);
11694 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11695 }
11696 return resultobj;
11697 fail:
11698 return NULL;
11699}
11700
11701
11702static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 wxDC *arg1 = (wxDC *) 0 ;
11705 bool result;
11706 PyObject * obj0 = 0 ;
11707 char *kwnames[] = {
11708 (char *) "self", NULL
11709 };
11710
11711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 result = (bool)((wxDC const *)arg1)->Ok();
11716
11717 wxPyEndAllowThreads(__tstate);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 resultobj = PyInt_FromLong((long)result);
11721 return resultobj;
11722 fail:
11723 return NULL;
11724}
11725
11726
11727static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11728 PyObject *resultobj;
11729 wxDC *arg1 = (wxDC *) 0 ;
11730 int result;
11731 PyObject * obj0 = 0 ;
11732 char *kwnames[] = {
11733 (char *) "self", NULL
11734 };
11735
11736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = PyInt_FromLong((long)result);
11746 return resultobj;
11747 fail:
11748 return NULL;
11749}
11750
11751
11752static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj;
11754 wxDC *arg1 = (wxDC *) 0 ;
11755 wxBrush *result;
11756 PyObject * obj0 = 0 ;
11757 char *kwnames[] = {
11758 (char *) "self", NULL
11759 };
11760
11761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 {
11766 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11767 result = (wxBrush *) &_result_ref;
11768 }
11769
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11774 return resultobj;
11775 fail:
11776 return NULL;
11777}
11778
11779
11780static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11781 PyObject *resultobj;
11782 wxDC *arg1 = (wxDC *) 0 ;
11783 wxBrush *result;
11784 PyObject * obj0 = 0 ;
11785 char *kwnames[] = {
11786 (char *) "self", NULL
11787 };
11788
11789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 {
11794 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11795 result = (wxBrush *) &_result_ref;
11796 }
11797
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11802 return resultobj;
11803 fail:
11804 return NULL;
11805}
11806
11807
11808static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 wxFont *result;
11812 PyObject * obj0 = 0 ;
11813 char *kwnames[] = {
11814 (char *) "self", NULL
11815 };
11816
11817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 {
11822 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11823 result = (wxFont *) &_result_ref;
11824 }
11825
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11830 return resultobj;
11831 fail:
11832 return NULL;
11833}
11834
11835
11836static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11837 PyObject *resultobj;
11838 wxDC *arg1 = (wxDC *) 0 ;
11839 wxPen *result;
11840 PyObject * obj0 = 0 ;
11841 char *kwnames[] = {
11842 (char *) "self", NULL
11843 };
11844
11845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 {
11850 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11851 result = (wxPen *) &_result_ref;
11852 }
11853
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11858 return resultobj;
11859 fail:
11860 return NULL;
11861}
11862
11863
11864static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj;
11866 wxDC *arg1 = (wxDC *) 0 ;
11867 wxColour *result;
11868 PyObject * obj0 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 {
11878 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11879 result = (wxColour *) &_result_ref;
11880 }
11881
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11886 return resultobj;
11887 fail:
11888 return NULL;
11889}
11890
11891
11892static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj;
11894 wxDC *arg1 = (wxDC *) 0 ;
11895 wxColour *result;
11896 PyObject * obj0 = 0 ;
11897 char *kwnames[] = {
11898 (char *) "self", NULL
11899 };
11900
11901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
11902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 {
11906 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
11907 result = (wxColour *) &_result_ref;
11908 }
11909
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
11914 return resultobj;
11915 fail:
11916 return NULL;
11917}
11918
11919
11920static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
11921 PyObject *resultobj;
11922 wxDC *arg1 = (wxDC *) 0 ;
11923 wxColour *arg2 = 0 ;
11924 wxColour temp2 ;
11925 PyObject * obj0 = 0 ;
11926 PyObject * obj1 = 0 ;
11927 char *kwnames[] = {
11928 (char *) "self",(char *) "colour", NULL
11929 };
11930
11931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
11932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11933 {
11934 arg2 = &temp2;
11935 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11936 }
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->SetTextForeground((wxColour const &)*arg2);
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 Py_INCREF(Py_None); resultobj = Py_None;
11945 return resultobj;
11946 fail:
11947 return NULL;
11948}
11949
11950
11951static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxDC *arg1 = (wxDC *) 0 ;
11954 wxColour *arg2 = 0 ;
11955 wxColour temp2 ;
11956 PyObject * obj0 = 0 ;
11957 PyObject * obj1 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self",(char *) "colour", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11964 {
11965 arg2 = &temp2;
11966 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 (arg1)->SetTextBackground((wxColour const &)*arg2);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 Py_INCREF(Py_None); resultobj = Py_None;
11976 return resultobj;
11977 fail:
11978 return NULL;
11979}
11980
11981
11982static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11983 PyObject *resultobj;
11984 wxDC *arg1 = (wxDC *) 0 ;
11985 int result;
11986 PyObject * obj0 = 0 ;
11987 char *kwnames[] = {
11988 (char *) "self", NULL
11989 };
11990
11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
11992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 result = (int)((wxDC const *)arg1)->GetMapMode();
11996
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 resultobj = PyInt_FromLong((long)result);
12001 return resultobj;
12002 fail:
12003 return NULL;
12004}
12005
12006
12007static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj;
12009 wxDC *arg1 = (wxDC *) 0 ;
12010 int arg2 ;
12011 PyObject * obj0 = 0 ;
12012 char *kwnames[] = {
12013 (char *) "self",(char *) "mode", NULL
12014 };
12015
12016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 (arg1)->SetMapMode(arg2);
12021
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 Py_INCREF(Py_None); resultobj = Py_None;
12026 return resultobj;
12027 fail:
12028 return NULL;
12029}
12030
12031
12032static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj;
12034 wxDC *arg1 = (wxDC *) 0 ;
12035 double *arg2 = (double *) 0 ;
12036 double *arg3 = (double *) 0 ;
12037 double temp2 ;
12038 double temp3 ;
12039 PyObject * obj0 = 0 ;
12040 char *kwnames[] = {
12041 (char *) "self", NULL
12042 };
12043
12044 arg2 = &temp2;
12045 arg3 = &temp3;
12046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12051
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 Py_INCREF(Py_None); resultobj = Py_None;
12056 {
12057 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12058 resultobj = t_output_helper(resultobj,o);
12059 }
12060 {
12061 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12062 resultobj = t_output_helper(resultobj,o);
12063 }
12064 return resultobj;
12065 fail:
12066 return NULL;
12067}
12068
12069
12070static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj;
12072 wxDC *arg1 = (wxDC *) 0 ;
12073 double arg2 ;
12074 double arg3 ;
12075 PyObject * obj0 = 0 ;
12076 char *kwnames[] = {
12077 (char *) "self",(char *) "x",(char *) "y", NULL
12078 };
12079
12080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 (arg1)->SetUserScale(arg2,arg3);
12085
12086 wxPyEndAllowThreads(__tstate);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 Py_INCREF(Py_None); resultobj = Py_None;
12090 return resultobj;
12091 fail:
12092 return NULL;
12093}
12094
12095
12096static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12097 PyObject *resultobj;
12098 wxDC *arg1 = (wxDC *) 0 ;
12099 double *arg2 = (double *) 0 ;
12100 double *arg3 = (double *) 0 ;
12101 double temp2 ;
12102 double temp3 ;
12103 PyObject * obj0 = 0 ;
12104 char *kwnames[] = {
12105 (char *) "self", NULL
12106 };
12107
12108 arg2 = &temp2;
12109 arg3 = &temp3;
12110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12112 {
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 (arg1)->GetLogicalScale(arg2,arg3);
12115
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 Py_INCREF(Py_None); resultobj = Py_None;
12120 {
12121 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12122 resultobj = t_output_helper(resultobj,o);
12123 }
12124 {
12125 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12126 resultobj = t_output_helper(resultobj,o);
12127 }
12128 return resultobj;
12129 fail:
12130 return NULL;
12131}
12132
12133
12134static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj;
12136 wxDC *arg1 = (wxDC *) 0 ;
12137 double arg2 ;
12138 double arg3 ;
12139 PyObject * obj0 = 0 ;
12140 char *kwnames[] = {
12141 (char *) "self",(char *) "x",(char *) "y", NULL
12142 };
12143
12144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 (arg1)->SetLogicalScale(arg2,arg3);
12149
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 Py_INCREF(Py_None); resultobj = Py_None;
12154 return resultobj;
12155 fail:
12156 return NULL;
12157}
12158
12159
12160static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12161 PyObject *resultobj;
12162 wxDC *arg1 = (wxDC *) 0 ;
12163 wxCoord *arg2 = (wxCoord *) 0 ;
12164 wxCoord *arg3 = (wxCoord *) 0 ;
12165 wxCoord temp2 ;
12166 wxCoord temp3 ;
12167 PyObject * obj0 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self", NULL
12170 };
12171
12172 arg2 = &temp2;
12173 arg3 = &temp3;
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12179
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 Py_INCREF(Py_None); resultobj = Py_None;
12184 {
12185 PyObject *o = PyInt_FromLong((long) (*arg2));
12186 resultobj = t_output_helper(resultobj,o);
12187 }
12188 {
12189 PyObject *o = PyInt_FromLong((long) (*arg3));
12190 resultobj = t_output_helper(resultobj,o);
12191 }
12192 return resultobj;
12193 fail:
12194 return NULL;
12195}
12196
12197
12198static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12199 PyObject *resultobj;
12200 wxDC *arg1 = (wxDC *) 0 ;
12201 wxPoint result;
12202 PyObject * obj0 = 0 ;
12203 char *kwnames[] = {
12204 (char *) "self", NULL
12205 };
12206
12207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 {
12217 wxPoint * resultptr;
12218 resultptr = new wxPoint((wxPoint &) result);
12219 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12220 }
12221 return resultobj;
12222 fail:
12223 return NULL;
12224}
12225
12226
12227static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12228 PyObject *resultobj;
12229 wxDC *arg1 = (wxDC *) 0 ;
12230 wxCoord arg2 ;
12231 wxCoord arg3 ;
12232 PyObject * obj0 = 0 ;
12233 char *kwnames[] = {
12234 (char *) "self",(char *) "x",(char *) "y", NULL
12235 };
12236
12237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 (arg1)->SetLogicalOrigin(arg2,arg3);
12242
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 Py_INCREF(Py_None); resultobj = Py_None;
12247 return resultobj;
12248 fail:
12249 return NULL;
12250}
12251
12252
12253static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12254 PyObject *resultobj;
12255 wxDC *arg1 = (wxDC *) 0 ;
12256 wxCoord *arg2 = (wxCoord *) 0 ;
12257 wxCoord *arg3 = (wxCoord *) 0 ;
12258 wxCoord temp2 ;
12259 wxCoord temp3 ;
12260 PyObject * obj0 = 0 ;
12261 char *kwnames[] = {
12262 (char *) "self", NULL
12263 };
12264
12265 arg2 = &temp2;
12266 arg3 = &temp3;
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12272
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 Py_INCREF(Py_None); resultobj = Py_None;
12277 {
12278 PyObject *o = PyInt_FromLong((long) (*arg2));
12279 resultobj = t_output_helper(resultobj,o);
12280 }
12281 {
12282 PyObject *o = PyInt_FromLong((long) (*arg3));
12283 resultobj = t_output_helper(resultobj,o);
12284 }
12285 return resultobj;
12286 fail:
12287 return NULL;
12288}
12289
12290
12291static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12292 PyObject *resultobj;
12293 wxDC *arg1 = (wxDC *) 0 ;
12294 wxPoint result;
12295 PyObject * obj0 = 0 ;
12296 char *kwnames[] = {
12297 (char *) "self", NULL
12298 };
12299
12300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 {
12310 wxPoint * resultptr;
12311 resultptr = new wxPoint((wxPoint &) result);
12312 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12313 }
12314 return resultobj;
12315 fail:
12316 return NULL;
12317}
12318
12319
12320static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12321 PyObject *resultobj;
12322 wxDC *arg1 = (wxDC *) 0 ;
12323 wxCoord arg2 ;
12324 wxCoord arg3 ;
12325 PyObject * obj0 = 0 ;
12326 char *kwnames[] = {
12327 (char *) "self",(char *) "x",(char *) "y", NULL
12328 };
12329
12330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 (arg1)->SetDeviceOrigin(arg2,arg3);
12335
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 Py_INCREF(Py_None); resultobj = Py_None;
12340 return resultobj;
12341 fail:
12342 return NULL;
12343}
12344
12345
12346static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxDC *arg1 = (wxDC *) 0 ;
12349 bool arg2 ;
12350 bool arg3 ;
12351 PyObject * obj0 = 0 ;
12352 PyObject * obj1 = 0 ;
12353 PyObject * obj2 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12360 arg2 = PyInt_AsLong(obj1) ? true : false;
12361 if (PyErr_Occurred()) SWIG_fail;
12362 arg3 = PyInt_AsLong(obj2) ? true : false;
12363 if (PyErr_Occurred()) SWIG_fail;
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 (arg1)->SetAxisOrientation(arg2,arg3);
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 Py_INCREF(Py_None); resultobj = Py_None;
12372 return resultobj;
12373 fail:
12374 return NULL;
12375}
12376
12377
12378static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12379 PyObject *resultobj;
12380 wxDC *arg1 = (wxDC *) 0 ;
12381 int result;
12382 PyObject * obj0 = 0 ;
12383 char *kwnames[] = {
12384 (char *) "self", NULL
12385 };
12386
12387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12389 {
12390 PyThreadState* __tstate = wxPyBeginAllowThreads();
12391 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12392
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 resultobj = PyInt_FromLong((long)result);
12397 return resultobj;
12398 fail:
12399 return NULL;
12400}
12401
12402
12403static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12404 PyObject *resultobj;
12405 wxDC *arg1 = (wxDC *) 0 ;
12406 int arg2 ;
12407 PyObject * obj0 = 0 ;
12408 char *kwnames[] = {
12409 (char *) "self",(char *) "function", NULL
12410 };
12411
12412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->SetLogicalFunction(arg2);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 Py_INCREF(Py_None); resultobj = Py_None;
12422 return resultobj;
12423 fail:
12424 return NULL;
12425}
12426
12427
12428static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12429 PyObject *resultobj;
12430 wxDC *arg1 = (wxDC *) 0 ;
12431 bool arg2 ;
12432 PyObject * obj0 = 0 ;
12433 PyObject * obj1 = 0 ;
12434 char *kwnames[] = {
12435 (char *) "self",(char *) "opt", NULL
12436 };
12437
12438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12440 arg2 = PyInt_AsLong(obj1) ? true : false;
12441 if (PyErr_Occurred()) SWIG_fail;
12442 {
12443 PyThreadState* __tstate = wxPyBeginAllowThreads();
12444 (arg1)->SetOptimization(arg2);
12445
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 Py_INCREF(Py_None); resultobj = Py_None;
12450 return resultobj;
12451 fail:
12452 return NULL;
12453}
12454
12455
12456static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12457 PyObject *resultobj;
12458 wxDC *arg1 = (wxDC *) 0 ;
12459 bool result;
12460 PyObject * obj0 = 0 ;
12461 char *kwnames[] = {
12462 (char *) "self", NULL
12463 };
12464
12465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 result = (bool)(arg1)->GetOptimization();
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 resultobj = PyInt_FromLong((long)result);
12475 return resultobj;
12476 fail:
12477 return NULL;
12478}
12479
12480
12481static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj;
12483 wxDC *arg1 = (wxDC *) 0 ;
12484 wxCoord arg2 ;
12485 wxCoord arg3 ;
12486 PyObject * obj0 = 0 ;
12487 char *kwnames[] = {
12488 (char *) "self",(char *) "x",(char *) "y", NULL
12489 };
12490
12491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 (arg1)->CalcBoundingBox(arg2,arg3);
12496
12497 wxPyEndAllowThreads(__tstate);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 }
12500 Py_INCREF(Py_None); resultobj = Py_None;
12501 return resultobj;
12502 fail:
12503 return NULL;
12504}
12505
12506
12507static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12508 PyObject *resultobj;
12509 wxDC *arg1 = (wxDC *) 0 ;
12510 PyObject * obj0 = 0 ;
12511 char *kwnames[] = {
12512 (char *) "self", NULL
12513 };
12514
12515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 (arg1)->ResetBoundingBox();
12520
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 Py_INCREF(Py_None); resultobj = Py_None;
12525 return resultobj;
12526 fail:
12527 return NULL;
12528}
12529
12530
12531static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj;
12533 wxDC *arg1 = (wxDC *) 0 ;
12534 wxCoord result;
12535 PyObject * obj0 = 0 ;
12536 char *kwnames[] = {
12537 (char *) "self", NULL
12538 };
12539
12540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = (wxCoord)((wxDC const *)arg1)->MinX();
12545
12546 wxPyEndAllowThreads(__tstate);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 resultobj = PyInt_FromLong((long)result);
12550 return resultobj;
12551 fail:
12552 return NULL;
12553}
12554
12555
12556static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj;
12558 wxDC *arg1 = (wxDC *) 0 ;
12559 wxCoord result;
12560 PyObject * obj0 = 0 ;
12561 char *kwnames[] = {
12562 (char *) "self", NULL
12563 };
12564
12565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12567 {
12568 PyThreadState* __tstate = wxPyBeginAllowThreads();
12569 result = (wxCoord)((wxDC const *)arg1)->MaxX();
12570
12571 wxPyEndAllowThreads(__tstate);
12572 if (PyErr_Occurred()) SWIG_fail;
12573 }
12574 resultobj = PyInt_FromLong((long)result);
12575 return resultobj;
12576 fail:
12577 return NULL;
12578}
12579
12580
12581static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12582 PyObject *resultobj;
12583 wxDC *arg1 = (wxDC *) 0 ;
12584 wxCoord result;
12585 PyObject * obj0 = 0 ;
12586 char *kwnames[] = {
12587 (char *) "self", NULL
12588 };
12589
12590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 result = (wxCoord)((wxDC const *)arg1)->MinY();
12595
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 resultobj = PyInt_FromLong((long)result);
12600 return resultobj;
12601 fail:
12602 return NULL;
12603}
12604
12605
12606static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj;
12608 wxDC *arg1 = (wxDC *) 0 ;
12609 wxCoord result;
12610 PyObject * obj0 = 0 ;
12611 char *kwnames[] = {
12612 (char *) "self", NULL
12613 };
12614
12615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12617 {
12618 PyThreadState* __tstate = wxPyBeginAllowThreads();
12619 result = (wxCoord)((wxDC const *)arg1)->MaxY();
12620
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = PyInt_FromLong((long)result);
12625 return resultobj;
12626 fail:
12627 return NULL;
12628}
12629
12630
12631static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj;
12633 wxDC *arg1 = (wxDC *) 0 ;
12634 int *arg2 = (int *) 0 ;
12635 int *arg3 = (int *) 0 ;
12636 int *arg4 = (int *) 0 ;
12637 int *arg5 = (int *) 0 ;
12638 int temp2 ;
12639 int temp3 ;
12640 int temp4 ;
12641 int temp5 ;
12642 PyObject * obj0 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self", NULL
12645 };
12646
12647 arg2 = &temp2;
12648 arg3 = &temp3;
12649 arg4 = &temp4;
12650 arg5 = &temp5;
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 Py_INCREF(Py_None); resultobj = Py_None;
12661 {
12662 PyObject *o = PyInt_FromLong((long) (*arg2));
12663 resultobj = t_output_helper(resultobj,o);
12664 }
12665 {
12666 PyObject *o = PyInt_FromLong((long) (*arg3));
12667 resultobj = t_output_helper(resultobj,o);
12668 }
12669 {
12670 PyObject *o = PyInt_FromLong((long) (*arg4));
12671 resultobj = t_output_helper(resultobj,o);
12672 }
12673 {
12674 PyObject *o = PyInt_FromLong((long) (*arg5));
12675 resultobj = t_output_helper(resultobj,o);
12676 }
12677 return resultobj;
12678 fail:
12679 return NULL;
12680}
12681
12682
12683static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj;
12685 wxDC *arg1 = (wxDC *) 0 ;
12686 PyObject *arg2 = (PyObject *) 0 ;
12687 PyObject *arg3 = (PyObject *) 0 ;
12688 PyObject *arg4 = (PyObject *) 0 ;
12689 PyObject *result;
12690 PyObject * obj0 = 0 ;
12691 PyObject * obj1 = 0 ;
12692 PyObject * obj2 = 0 ;
12693 PyObject * obj3 = 0 ;
12694 char *kwnames[] = {
12695 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12696 };
12697
12698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12700 arg2 = obj1;
12701 arg3 = obj2;
12702 arg4 = obj3;
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12706
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 resultobj = result;
12711 return resultobj;
12712 fail:
12713 return NULL;
12714}
12715
12716
12717static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj;
12719 wxDC *arg1 = (wxDC *) 0 ;
12720 PyObject *arg2 = (PyObject *) 0 ;
12721 PyObject *arg3 = (PyObject *) 0 ;
12722 PyObject *arg4 = (PyObject *) 0 ;
12723 PyObject *result;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 PyObject * obj2 = 0 ;
12727 PyObject * obj3 = 0 ;
12728 char *kwnames[] = {
12729 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12730 };
12731
12732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12734 arg2 = obj1;
12735 arg3 = obj2;
12736 arg4 = obj3;
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12740
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = result;
12745 return resultobj;
12746 fail:
12747 return NULL;
12748}
12749
12750
12751static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12752 PyObject *resultobj;
12753 wxDC *arg1 = (wxDC *) 0 ;
12754 PyObject *arg2 = (PyObject *) 0 ;
12755 PyObject *arg3 = (PyObject *) 0 ;
12756 PyObject *arg4 = (PyObject *) 0 ;
12757 PyObject *result;
12758 PyObject * obj0 = 0 ;
12759 PyObject * obj1 = 0 ;
12760 PyObject * obj2 = 0 ;
12761 PyObject * obj3 = 0 ;
12762 char *kwnames[] = {
12763 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12764 };
12765
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12768 arg2 = obj1;
12769 arg3 = obj2;
12770 arg4 = obj3;
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12774
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = result;
12779 return resultobj;
12780 fail:
12781 return NULL;
12782}
12783
12784
12785static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj;
12787 wxDC *arg1 = (wxDC *) 0 ;
12788 PyObject *arg2 = (PyObject *) 0 ;
12789 PyObject *arg3 = (PyObject *) 0 ;
12790 PyObject *arg4 = (PyObject *) 0 ;
12791 PyObject *result;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 PyObject * obj2 = 0 ;
12795 PyObject * obj3 = 0 ;
12796 char *kwnames[] = {
12797 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12798 };
12799
12800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12802 arg2 = obj1;
12803 arg3 = obj2;
12804 arg4 = obj3;
12805 {
12806 PyThreadState* __tstate = wxPyBeginAllowThreads();
12807 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12808
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 resultobj = result;
12813 return resultobj;
12814 fail:
12815 return NULL;
12816}
12817
12818
12819static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12820 PyObject *resultobj;
12821 wxDC *arg1 = (wxDC *) 0 ;
12822 PyObject *arg2 = (PyObject *) 0 ;
12823 PyObject *arg3 = (PyObject *) 0 ;
12824 PyObject *arg4 = (PyObject *) 0 ;
12825 PyObject *result;
12826 PyObject * obj0 = 0 ;
12827 PyObject * obj1 = 0 ;
12828 PyObject * obj2 = 0 ;
12829 PyObject * obj3 = 0 ;
12830 char *kwnames[] = {
12831 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12832 };
12833
12834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12836 arg2 = obj1;
12837 arg3 = obj2;
12838 arg4 = obj3;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = result;
12847 return resultobj;
12848 fail:
12849 return NULL;
12850}
12851
12852
12853static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxDC *arg1 = (wxDC *) 0 ;
12856 PyObject *arg2 = (PyObject *) 0 ;
12857 PyObject *arg3 = (PyObject *) 0 ;
12858 PyObject *arg4 = (PyObject *) 0 ;
12859 PyObject *arg5 = (PyObject *) 0 ;
12860 PyObject *result;
12861 PyObject * obj0 = 0 ;
12862 PyObject * obj1 = 0 ;
12863 PyObject * obj2 = 0 ;
12864 PyObject * obj3 = 0 ;
12865 PyObject * obj4 = 0 ;
12866 char *kwnames[] = {
12867 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12868 };
12869
12870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12872 arg2 = obj1;
12873 arg3 = obj2;
12874 arg4 = obj3;
12875 arg5 = obj4;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 resultobj = result;
12884 return resultobj;
12885 fail:
12886 return NULL;
12887}
12888
12889
12890static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
12891 PyObject *obj;
12892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12893 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
12894 Py_INCREF(obj);
12895 return Py_BuildValue((char *)"");
12896}
12897static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12898 PyObject *resultobj;
12899 wxMemoryDC *result;
12900 char *kwnames[] = {
12901 NULL
12902 };
12903
12904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (wxMemoryDC *)new wxMemoryDC();
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12913 return resultobj;
12914 fail:
12915 return NULL;
12916}
12917
12918
12919static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject *resultobj;
12921 wxDC *arg1 = (wxDC *) 0 ;
12922 wxMemoryDC *result;
12923 PyObject * obj0 = 0 ;
12924 char *kwnames[] = {
12925 (char *) "oldDC", NULL
12926 };
12927
12928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
12929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 result = (wxMemoryDC *)new wxMemoryDC(arg1);
12933
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
12938 return resultobj;
12939 fail:
12940 return NULL;
12941}
12942
12943
12944static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj;
12946 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
12947 wxBitmap *arg2 = 0 ;
12948 PyObject * obj0 = 0 ;
12949 PyObject * obj1 = 0 ;
12950 char *kwnames[] = {
12951 (char *) "self",(char *) "bitmap", NULL
12952 };
12953
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
12955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12956 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12957 if (arg2 == NULL) {
12958 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 (arg1)->SelectObject((wxBitmap const &)*arg2);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 Py_INCREF(Py_None); resultobj = Py_None;
12968 return resultobj;
12969 fail:
12970 return NULL;
12971}
12972
12973
12974static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
12975 PyObject *obj;
12976 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12977 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
12978 Py_INCREF(obj);
12979 return Py_BuildValue((char *)"");
12980}
12981static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj;
12983 wxDC *arg1 = (wxDC *) 0 ;
12984 wxBitmap *arg2 = 0 ;
12985 wxBufferedDC *result;
12986 PyObject * obj0 = 0 ;
12987 PyObject * obj1 = 0 ;
12988 char *kwnames[] = {
12989 (char *) "dc",(char *) "buffer", NULL
12990 };
12991
12992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
12993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12994 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12995 if (arg2 == NULL) {
12996 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12997 }
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13001
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13006 return resultobj;
13007 fail:
13008 return NULL;
13009}
13010
13011
13012static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13013 PyObject *resultobj;
13014 wxDC *arg1 = (wxDC *) 0 ;
13015 wxSize *arg2 = 0 ;
13016 wxBufferedDC *result;
13017 wxSize temp2 ;
13018 PyObject * obj0 = 0 ;
13019 PyObject * obj1 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "dc",(char *) "area", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13026 {
13027 arg2 = &temp2;
13028 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13033
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13038 return resultobj;
13039 fail:
13040 return NULL;
13041}
13042
13043
13044static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13045 PyObject *resultobj;
13046 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13047 PyObject * obj0 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 (arg1)->UnMask();
13057
13058 wxPyEndAllowThreads(__tstate);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 Py_INCREF(Py_None); resultobj = Py_None;
13062 return resultobj;
13063 fail:
13064 return NULL;
13065}
13066
13067
13068static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13069 PyObject *obj;
13070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13071 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13072 Py_INCREF(obj);
13073 return Py_BuildValue((char *)"");
13074}
13075static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj;
13077 wxWindow *arg1 = (wxWindow *) 0 ;
13078 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13079 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13080 wxBufferedPaintDC *result;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "window",(char *) "buffer", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13089 if (obj1) {
13090 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13091 if (arg2 == NULL) {
13092 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13093 }
13094 }
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13103 return resultobj;
13104 fail:
13105 return NULL;
13106}
13107
13108
13109static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13110 PyObject *obj;
13111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13112 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13113 Py_INCREF(obj);
13114 return Py_BuildValue((char *)"");
13115}
13116static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13117 PyObject *resultobj;
13118 wxScreenDC *result;
13119 char *kwnames[] = {
13120 NULL
13121 };
13122
13123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 result = (wxScreenDC *)new wxScreenDC();
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13132 return resultobj;
13133 fail:
13134 return NULL;
13135}
13136
13137
13138static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13139 PyObject *resultobj;
13140 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13141 wxWindow *arg2 = (wxWindow *) 0 ;
13142 bool result;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "window", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13151 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13155
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 resultobj = PyInt_FromLong((long)result);
13160 return resultobj;
13161 fail:
13162 return NULL;
13163}
13164
13165
13166static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj;
13168 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13169 wxRect *arg2 = (wxRect *) NULL ;
13170 bool result;
13171 PyObject * obj0 = 0 ;
13172 PyObject * obj1 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self",(char *) "rect", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13179 if (obj1) {
13180 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13181 }
13182 {
13183 PyThreadState* __tstate = wxPyBeginAllowThreads();
13184 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13185
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 resultobj = PyInt_FromLong((long)result);
13190 return resultobj;
13191 fail:
13192 return NULL;
13193}
13194
13195
13196static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13197 PyObject *resultobj;
13198 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13199 bool result;
13200 PyObject * obj0 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = (bool)(arg1)->EndDrawingOnTop();
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 resultobj = PyInt_FromLong((long)result);
13215 return resultobj;
13216 fail:
13217 return NULL;
13218}
13219
13220
13221static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13222 PyObject *obj;
13223 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13224 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13225 Py_INCREF(obj);
13226 return Py_BuildValue((char *)"");
13227}
13228static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj;
13230 wxWindow *arg1 = (wxWindow *) 0 ;
13231 wxClientDC *result;
13232 PyObject * obj0 = 0 ;
13233 char *kwnames[] = {
13234 (char *) "win", NULL
13235 };
13236
13237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 result = (wxClientDC *)new wxClientDC(arg1);
13242
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13247 return resultobj;
13248 fail:
13249 return NULL;
13250}
13251
13252
13253static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13254 PyObject *obj;
13255 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13256 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13257 Py_INCREF(obj);
13258 return Py_BuildValue((char *)"");
13259}
13260static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxWindow *arg1 = (wxWindow *) 0 ;
13263 wxPaintDC *result;
13264 PyObject * obj0 = 0 ;
13265 char *kwnames[] = {
13266 (char *) "win", NULL
13267 };
13268
13269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13271 {
13272 PyThreadState* __tstate = wxPyBeginAllowThreads();
13273 result = (wxPaintDC *)new wxPaintDC(arg1);
13274
13275 wxPyEndAllowThreads(__tstate);
13276 if (PyErr_Occurred()) SWIG_fail;
13277 }
13278 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13279 return resultobj;
13280 fail:
13281 return NULL;
13282}
13283
13284
13285static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13286 PyObject *obj;
13287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13288 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13289 Py_INCREF(obj);
13290 return Py_BuildValue((char *)"");
13291}
13292static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13293 PyObject *resultobj;
13294 wxWindow *arg1 = (wxWindow *) 0 ;
13295 wxWindowDC *result;
13296 PyObject * obj0 = 0 ;
13297 char *kwnames[] = {
13298 (char *) "win", NULL
13299 };
13300
13301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 result = (wxWindowDC *)new wxWindowDC(arg1);
13306
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13311 return resultobj;
13312 fail:
13313 return NULL;
13314}
13315
13316
13317static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13318 PyObject *obj;
13319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13320 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13321 Py_INCREF(obj);
13322 return Py_BuildValue((char *)"");
13323}
13324static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13325 PyObject *resultobj;
13326 wxDC *arg1 = 0 ;
13327 bool arg2 ;
13328 wxMirrorDC *result;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "dc",(char *) "mirror", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13337 if (arg1 == NULL) {
13338 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13339 }
13340 arg2 = PyInt_AsLong(obj1) ? true : false;
13341 if (PyErr_Occurred()) SWIG_fail;
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13345
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13350 return resultobj;
13351 fail:
13352 return NULL;
13353}
13354
13355
13356static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13357 PyObject *obj;
13358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13359 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13360 Py_INCREF(obj);
13361 return Py_BuildValue((char *)"");
13362}
13363static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxPrintData *arg1 = 0 ;
13366 wxPostScriptDC *result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "printData", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13374 if (arg1 == NULL) {
13375 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13376 }
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13380
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13385 return resultobj;
13386 fail:
13387 return NULL;
13388}
13389
13390
13391static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13394 wxPrintData *result;
13395 PyObject * obj0 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 {
13405 wxPrintData &_result_ref = (arg1)->GetPrintData();
13406 result = (wxPrintData *) &_result_ref;
13407 }
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13413 return resultobj;
13414 fail:
13415 return NULL;
13416}
13417
13418
13419static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13420 PyObject *resultobj;
13421 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13422 wxPrintData *arg2 = 0 ;
13423 PyObject * obj0 = 0 ;
13424 PyObject * obj1 = 0 ;
13425 char *kwnames[] = {
13426 (char *) "self",(char *) "data", NULL
13427 };
13428
13429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13431 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13432 if (arg2 == NULL) {
13433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13434 }
13435 {
13436 PyThreadState* __tstate = wxPyBeginAllowThreads();
13437 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13438
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 Py_INCREF(Py_None); resultobj = Py_None;
13443 return resultobj;
13444 fail:
13445 return NULL;
13446}
13447
13448
13449static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13450 PyObject *resultobj;
13451 int arg1 ;
13452 char *kwnames[] = {
13453 (char *) "ppi", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 wxPostScriptDC::SetResolution(arg1);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 Py_INCREF(Py_None); resultobj = Py_None;
13465 return resultobj;
13466 fail:
13467 return NULL;
13468}
13469
13470
13471static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13472 PyObject *resultobj;
13473 int result;
13474 char *kwnames[] = {
13475 NULL
13476 };
13477
13478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (int)wxPostScriptDC::GetResolution();
13482
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = PyInt_FromLong((long)result);
13487 return resultobj;
13488 fail:
13489 return NULL;
13490}
13491
13492
13493static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13494 PyObject *obj;
13495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13496 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13497 Py_INCREF(obj);
13498 return Py_BuildValue((char *)"");
13499}
13500static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxString const &arg1_defvalue = wxPyEmptyString ;
13503 wxString *arg1 = (wxString *) &arg1_defvalue ;
13504 wxMetaFile *result;
13505 bool temp1 = false ;
13506 PyObject * obj0 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "filename", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13512 if (obj0) {
13513 {
13514 arg1 = wxString_in_helper(obj0);
13515 if (arg1 == NULL) SWIG_fail;
13516 temp1 = true;
13517 }
13518 }
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13522
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13527 {
13528 if (temp1)
13529 delete arg1;
13530 }
13531 return resultobj;
13532 fail:
13533 {
13534 if (temp1)
13535 delete arg1;
13536 }
13537 return NULL;
13538}
13539
13540
13541static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13542 PyObject *obj;
13543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13544 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13545 Py_INCREF(obj);
13546 return Py_BuildValue((char *)"");
13547}
13548static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13549 PyObject *resultobj;
13550 wxString const &arg1_defvalue = wxPyEmptyString ;
13551 wxString *arg1 = (wxString *) &arg1_defvalue ;
13552 int arg2 = (int) 0 ;
13553 int arg3 = (int) 0 ;
13554 wxString const &arg4_defvalue = wxPyEmptyString ;
13555 wxString *arg4 = (wxString *) &arg4_defvalue ;
13556 wxMetaFileDC *result;
13557 bool temp1 = false ;
13558 bool temp4 = false ;
13559 PyObject * obj0 = 0 ;
13560 PyObject * obj3 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13566 if (obj0) {
13567 {
13568 arg1 = wxString_in_helper(obj0);
13569 if (arg1 == NULL) SWIG_fail;
13570 temp1 = true;
13571 }
13572 }
13573 if (obj3) {
13574 {
13575 arg4 = wxString_in_helper(obj3);
13576 if (arg4 == NULL) SWIG_fail;
13577 temp4 = true;
13578 }
13579 }
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13583
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13588 {
13589 if (temp1)
13590 delete arg1;
13591 }
13592 {
13593 if (temp4)
13594 delete arg4;
13595 }
13596 return resultobj;
13597 fail:
13598 {
13599 if (temp1)
13600 delete arg1;
13601 }
13602 {
13603 if (temp4)
13604 delete arg4;
13605 }
13606 return NULL;
13607}
13608
13609
13610static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13611 PyObject *obj;
13612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13613 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13614 Py_INCREF(obj);
13615 return Py_BuildValue((char *)"");
13616}
13617static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxPrintData *arg1 = 0 ;
13620 wxPrinterDC *result;
13621 PyObject * obj0 = 0 ;
13622 char *kwnames[] = {
13623 (char *) "printData", NULL
13624 };
13625
13626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13628 if (arg1 == NULL) {
13629 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13630 }
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13634
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13639 return resultobj;
13640 fail:
13641 return NULL;
13642}
13643
13644
13645static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13646 PyObject *obj;
13647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13648 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13649 Py_INCREF(obj);
13650 return Py_BuildValue((char *)"");
13651}
13652static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 int arg1 ;
13655 int arg2 ;
13656 int arg3 = (int) TRUE ;
13657 int arg4 = (int) 1 ;
13658 wxImageList *result;
13659 char *kwnames[] = {
13660 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13661 };
13662
13663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 {
13672 resultobj = wxPyMake_wxObject(result);
13673 }
13674 return resultobj;
13675 fail:
13676 return NULL;
13677}
13678
13679
13680static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxImageList *arg1 = (wxImageList *) 0 ;
13683 PyObject * obj0 = 0 ;
13684 char *kwnames[] = {
13685 (char *) "self", NULL
13686 };
13687
13688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 delete arg1;
13693
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 Py_INCREF(Py_None); resultobj = Py_None;
13698 return resultobj;
13699 fail:
13700 return NULL;
13701}
13702
13703
13704static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13705 PyObject *resultobj;
13706 wxImageList *arg1 = (wxImageList *) 0 ;
13707 wxBitmap *arg2 = 0 ;
13708 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13709 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13710 int result;
13711 PyObject * obj0 = 0 ;
13712 PyObject * obj1 = 0 ;
13713 PyObject * obj2 = 0 ;
13714 char *kwnames[] = {
13715 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13716 };
13717
13718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13720 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13721 if (arg2 == NULL) {
13722 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13723 }
13724 if (obj2) {
13725 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13726 if (arg3 == NULL) {
13727 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13728 }
13729 }
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13733
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 resultobj = PyInt_FromLong((long)result);
13738 return resultobj;
13739 fail:
13740 return NULL;
13741}
13742
13743
13744static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13745 PyObject *resultobj;
13746 wxImageList *arg1 = (wxImageList *) 0 ;
13747 wxBitmap *arg2 = 0 ;
13748 wxColour *arg3 = 0 ;
13749 int result;
13750 wxColour temp3 ;
13751 PyObject * obj0 = 0 ;
13752 PyObject * obj1 = 0 ;
13753 PyObject * obj2 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13760 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13761 if (arg2 == NULL) {
13762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13763 }
13764 {
13765 arg3 = &temp3;
13766 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13767 }
13768 {
13769 PyThreadState* __tstate = wxPyBeginAllowThreads();
13770 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13771
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 resultobj = PyInt_FromLong((long)result);
13776 return resultobj;
13777 fail:
13778 return NULL;
13779}
13780
13781
13782static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj;
13784 wxImageList *arg1 = (wxImageList *) 0 ;
13785 wxIcon *arg2 = 0 ;
13786 int result;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self",(char *) "icon", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13795 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13796 if (arg2 == NULL) {
13797 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13798 }
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 resultobj = PyInt_FromLong((long)result);
13807 return resultobj;
13808 fail:
13809 return NULL;
13810}
13811
13812
13813static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13814 PyObject *resultobj;
13815 wxImageList *arg1 = (wxImageList *) 0 ;
13816 int arg2 ;
13817 wxBitmap *arg3 = 0 ;
13818 bool result;
13819 PyObject * obj0 = 0 ;
13820 PyObject * obj2 = 0 ;
13821 char *kwnames[] = {
13822 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13823 };
13824
13825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13827 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13828 if (arg3 == NULL) {
13829 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13830 }
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 resultobj = PyInt_FromLong((long)result);
13839 return resultobj;
13840 fail:
13841 return NULL;
13842}
13843
13844
13845static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 wxImageList *arg1 = (wxImageList *) 0 ;
13848 int arg2 ;
13849 wxDC *arg3 = 0 ;
13850 int arg4 ;
13851 int arg5 ;
13852 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
13853 bool arg7 = (bool) (bool)FALSE ;
13854 bool result;
13855 PyObject * obj0 = 0 ;
13856 PyObject * obj2 = 0 ;
13857 PyObject * obj6 = 0 ;
13858 char *kwnames[] = {
13859 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13860 };
13861
13862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13864 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13865 if (arg3 == NULL) {
13866 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13867 }
13868 if (obj6) {
13869 arg7 = PyInt_AsLong(obj6) ? true : false;
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13875
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = PyInt_FromLong((long)result);
13880 return resultobj;
13881 fail:
13882 return NULL;
13883}
13884
13885
13886static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj;
13888 wxImageList *arg1 = (wxImageList *) 0 ;
13889 int result;
13890 PyObject * obj0 = 0 ;
13891 char *kwnames[] = {
13892 (char *) "self", NULL
13893 };
13894
13895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
13896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = (int)(arg1)->GetImageCount();
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_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
13912 PyObject *resultobj;
13913 wxImageList *arg1 = (wxImageList *) 0 ;
13914 int arg2 ;
13915 bool result;
13916 PyObject * obj0 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self",(char *) "index", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 result = (bool)(arg1)->Remove(arg2);
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = PyInt_FromLong((long)result);
13931 return resultobj;
13932 fail:
13933 return NULL;
13934}
13935
13936
13937static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj;
13939 wxImageList *arg1 = (wxImageList *) 0 ;
13940 bool result;
13941 PyObject * obj0 = 0 ;
13942 char *kwnames[] = {
13943 (char *) "self", NULL
13944 };
13945
13946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
13947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = (bool)(arg1)->RemoveAll();
13951
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 resultobj = PyInt_FromLong((long)result);
13956 return resultobj;
13957 fail:
13958 return NULL;
13959}
13960
13961
13962static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxImageList *arg1 = (wxImageList *) 0 ;
13965 int arg2 ;
13966 int *arg3 = 0 ;
13967 int *arg4 = 0 ;
13968 int temp3 ;
13969 int temp4 ;
13970 PyObject * obj0 = 0 ;
13971 char *kwnames[] = {
13972 (char *) "self",(char *) "index", NULL
13973 };
13974
13975 arg3 = &temp3;
13976 arg4 = &temp4;
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 (arg1)->GetSize(arg2,*arg3,*arg4);
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 Py_INCREF(Py_None); resultobj = Py_None;
13987 {
13988 PyObject *o = PyInt_FromLong((long) (*arg3));
13989 resultobj = t_output_helper(resultobj,o);
13990 }
13991 {
13992 PyObject *o = PyInt_FromLong((long) (*arg4));
13993 resultobj = t_output_helper(resultobj,o);
13994 }
13995 return resultobj;
13996 fail:
13997 return NULL;
13998}
13999
14000
14001static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14002 PyObject *obj;
14003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14004 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14005 Py_INCREF(obj);
14006 return Py_BuildValue((char *)"");
14007}
14008static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14009 PyObject *resultobj;
14010 wxPenList *arg1 = (wxPenList *) 0 ;
14011 wxPen *arg2 = (wxPen *) 0 ;
14012 PyObject * obj0 = 0 ;
14013 PyObject * obj1 = 0 ;
14014 char *kwnames[] = {
14015 (char *) "self",(char *) "pen", NULL
14016 };
14017
14018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14020 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 (arg1)->AddPen(arg2);
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 Py_INCREF(Py_None); resultobj = Py_None;
14029 return resultobj;
14030 fail:
14031 return NULL;
14032}
14033
14034
14035static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxPenList *arg1 = (wxPenList *) 0 ;
14038 wxColour *arg2 = 0 ;
14039 int arg3 ;
14040 int arg4 ;
14041 wxPen *result;
14042 wxColour temp2 ;
14043 PyObject * obj0 = 0 ;
14044 PyObject * obj1 = 0 ;
14045 char *kwnames[] = {
14046 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14047 };
14048
14049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14051 {
14052 arg2 = &temp2;
14053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14054 }
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14063 return resultobj;
14064 fail:
14065 return NULL;
14066}
14067
14068
14069static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj;
14071 wxPenList *arg1 = (wxPenList *) 0 ;
14072 wxPen *arg2 = (wxPen *) 0 ;
14073 PyObject * obj0 = 0 ;
14074 PyObject * obj1 = 0 ;
14075 char *kwnames[] = {
14076 (char *) "self",(char *) "pen", NULL
14077 };
14078
14079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14081 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14082 {
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 (arg1)->RemovePen(arg2);
14085
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 Py_INCREF(Py_None); resultobj = Py_None;
14090 return resultobj;
14091 fail:
14092 return NULL;
14093}
14094
14095
14096static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj;
14098 wxPenList *arg1 = (wxPenList *) 0 ;
14099 int result;
14100 PyObject * obj0 = 0 ;
14101 char *kwnames[] = {
14102 (char *) "self", NULL
14103 };
14104
14105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14107 {
14108 PyThreadState* __tstate = wxPyBeginAllowThreads();
14109 result = (int)(arg1)->GetCount();
14110
14111 wxPyEndAllowThreads(__tstate);
14112 if (PyErr_Occurred()) SWIG_fail;
14113 }
14114 resultobj = PyInt_FromLong((long)result);
14115 return resultobj;
14116 fail:
14117 return NULL;
14118}
14119
14120
14121static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14122 PyObject *obj;
14123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14124 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14125 Py_INCREF(obj);
14126 return Py_BuildValue((char *)"");
14127}
14128static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14129 PyObject *resultobj;
14130 wxBrushList *arg1 = (wxBrushList *) 0 ;
14131 wxBrush *arg2 = (wxBrush *) 0 ;
14132 PyObject * obj0 = 0 ;
14133 PyObject * obj1 = 0 ;
14134 char *kwnames[] = {
14135 (char *) "self",(char *) "brush", NULL
14136 };
14137
14138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14140 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 (arg1)->AddBrush(arg2);
14144
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 Py_INCREF(Py_None); resultobj = Py_None;
14149 return resultobj;
14150 fail:
14151 return NULL;
14152}
14153
14154
14155static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14156 PyObject *resultobj;
14157 wxBrushList *arg1 = (wxBrushList *) 0 ;
14158 wxColour *arg2 = 0 ;
14159 int arg3 ;
14160 wxBrush *result;
14161 wxColour temp2 ;
14162 PyObject * obj0 = 0 ;
14163 PyObject * obj1 = 0 ;
14164 char *kwnames[] = {
14165 (char *) "self",(char *) "colour",(char *) "style", NULL
14166 };
14167
14168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14170 {
14171 arg2 = &temp2;
14172 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14173 }
14174 {
14175 PyThreadState* __tstate = wxPyBeginAllowThreads();
14176 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14177
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14182 return resultobj;
14183 fail:
14184 return NULL;
14185}
14186
14187
14188static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14189 PyObject *resultobj;
14190 wxBrushList *arg1 = (wxBrushList *) 0 ;
14191 wxBrush *arg2 = (wxBrush *) 0 ;
14192 PyObject * obj0 = 0 ;
14193 PyObject * obj1 = 0 ;
14194 char *kwnames[] = {
14195 (char *) "self",(char *) "brush", NULL
14196 };
14197
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14200 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14201 {
14202 PyThreadState* __tstate = wxPyBeginAllowThreads();
14203 (arg1)->RemoveBrush(arg2);
14204
14205 wxPyEndAllowThreads(__tstate);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 Py_INCREF(Py_None); resultobj = Py_None;
14209 return resultobj;
14210 fail:
14211 return NULL;
14212}
14213
14214
14215static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj;
14217 wxBrushList *arg1 = (wxBrushList *) 0 ;
14218 int result;
14219 PyObject * obj0 = 0 ;
14220 char *kwnames[] = {
14221 (char *) "self", NULL
14222 };
14223
14224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14226 {
14227 PyThreadState* __tstate = wxPyBeginAllowThreads();
14228 result = (int)(arg1)->GetCount();
14229
14230 wxPyEndAllowThreads(__tstate);
14231 if (PyErr_Occurred()) SWIG_fail;
14232 }
14233 resultobj = PyInt_FromLong((long)result);
14234 return resultobj;
14235 fail:
14236 return NULL;
14237}
14238
14239
14240static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14241 PyObject *obj;
14242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14243 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14244 Py_INCREF(obj);
14245 return Py_BuildValue((char *)"");
14246}
14247static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxColourDatabase *result;
14250 char *kwnames[] = {
14251 NULL
14252 };
14253
14254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 result = (wxColourDatabase *)new wxColourDatabase();
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14263 return resultobj;
14264 fail:
14265 return NULL;
14266}
14267
14268
14269static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14272 PyObject * obj0 = 0 ;
14273 char *kwnames[] = {
14274 (char *) "self", NULL
14275 };
14276
14277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 delete arg1;
14282
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 Py_INCREF(Py_None); resultobj = Py_None;
14287 return resultobj;
14288 fail:
14289 return NULL;
14290}
14291
14292
14293static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14294 PyObject *resultobj;
14295 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14296 wxString *arg2 = 0 ;
14297 wxColour result;
14298 bool temp2 = false ;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 char *kwnames[] = {
14302 (char *) "self",(char *) "name", NULL
14303 };
14304
14305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14307 {
14308 arg2 = wxString_in_helper(obj1);
14309 if (arg2 == NULL) SWIG_fail;
14310 temp2 = true;
14311 }
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14315
14316 wxPyEndAllowThreads(__tstate);
14317 if (PyErr_Occurred()) SWIG_fail;
14318 }
14319 {
14320 wxColour * resultptr;
14321 resultptr = new wxColour((wxColour &) result);
14322 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14323 }
14324 {
14325 if (temp2)
14326 delete arg2;
14327 }
14328 return resultobj;
14329 fail:
14330 {
14331 if (temp2)
14332 delete arg2;
14333 }
14334 return NULL;
14335}
14336
14337
14338static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14341 wxColour *arg2 = 0 ;
14342 wxString result;
14343 wxColour temp2 ;
14344 PyObject * obj0 = 0 ;
14345 PyObject * obj1 = 0 ;
14346 char *kwnames[] = {
14347 (char *) "self",(char *) "colour", NULL
14348 };
14349
14350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14352 {
14353 arg2 = &temp2;
14354 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14355 }
14356 {
14357 PyThreadState* __tstate = wxPyBeginAllowThreads();
14358 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14359
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 {
14364#if wxUSE_UNICODE
14365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14366#else
14367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14368#endif
14369 }
14370 return resultobj;
14371 fail:
14372 return NULL;
14373}
14374
14375
14376static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14377 PyObject *resultobj;
14378 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14379 wxString *arg2 = 0 ;
14380 wxColour *arg3 = 0 ;
14381 bool temp2 = false ;
14382 wxColour temp3 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 PyObject * obj2 = 0 ;
14386 char *kwnames[] = {
14387 (char *) "self",(char *) "name",(char *) "colour", NULL
14388 };
14389
14390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14392 {
14393 arg2 = wxString_in_helper(obj1);
14394 if (arg2 == NULL) SWIG_fail;
14395 temp2 = true;
14396 }
14397 {
14398 arg3 = &temp3;
14399 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14400 }
14401 {
14402 PyThreadState* __tstate = wxPyBeginAllowThreads();
14403 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14404
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 Py_INCREF(Py_None); resultobj = Py_None;
14409 {
14410 if (temp2)
14411 delete arg2;
14412 }
14413 return resultobj;
14414 fail:
14415 {
14416 if (temp2)
14417 delete arg2;
14418 }
14419 return NULL;
14420}
14421
14422
14423static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14426 wxString *arg2 = 0 ;
14427 int arg3 ;
14428 int arg4 ;
14429 int arg5 ;
14430 bool temp2 = false ;
14431 PyObject * obj0 = 0 ;
14432 PyObject * obj1 = 0 ;
14433 char *kwnames[] = {
14434 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14435 };
14436
14437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14439 {
14440 arg2 = wxString_in_helper(obj1);
14441 if (arg2 == NULL) SWIG_fail;
14442 temp2 = true;
14443 }
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 Py_INCREF(Py_None); resultobj = Py_None;
14452 {
14453 if (temp2)
14454 delete arg2;
14455 }
14456 return resultobj;
14457 fail:
14458 {
14459 if (temp2)
14460 delete arg2;
14461 }
14462 return NULL;
14463}
14464
14465
14466static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14467 PyObject *obj;
14468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14469 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14470 Py_INCREF(obj);
14471 return Py_BuildValue((char *)"");
14472}
14473static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14474 PyObject *resultobj;
14475 wxFontList *arg1 = (wxFontList *) 0 ;
14476 wxFont *arg2 = (wxFont *) 0 ;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "self",(char *) "font", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14485 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 (arg1)->AddFont(arg2);
14489
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 Py_INCREF(Py_None); resultobj = Py_None;
14494 return resultobj;
14495 fail:
14496 return NULL;
14497}
14498
14499
14500static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj;
14502 wxFontList *arg1 = (wxFontList *) 0 ;
14503 int arg2 ;
14504 int arg3 ;
14505 int arg4 ;
14506 int arg5 ;
14507 bool arg6 = (bool) FALSE ;
14508 wxString const &arg7_defvalue = wxPyEmptyString ;
14509 wxString *arg7 = (wxString *) &arg7_defvalue ;
14510 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14511 wxFont *result;
14512 bool temp7 = false ;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj5 = 0 ;
14515 PyObject * obj6 = 0 ;
14516 char *kwnames[] = {
14517 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14518 };
14519
14520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14522 if (obj5) {
14523 arg6 = PyInt_AsLong(obj5) ? true : false;
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 if (obj6) {
14527 {
14528 arg7 = wxString_in_helper(obj6);
14529 if (arg7 == NULL) SWIG_fail;
14530 temp7 = true;
14531 }
14532 }
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14541 {
14542 if (temp7)
14543 delete arg7;
14544 }
14545 return resultobj;
14546 fail:
14547 {
14548 if (temp7)
14549 delete arg7;
14550 }
14551 return NULL;
14552}
14553
14554
14555static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxFontList *arg1 = (wxFontList *) 0 ;
14558 wxFont *arg2 = (wxFont *) 0 ;
14559 PyObject * obj0 = 0 ;
14560 PyObject * obj1 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "self",(char *) "font", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14567 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 (arg1)->RemoveFont(arg2);
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 Py_INCREF(Py_None); resultobj = Py_None;
14576 return resultobj;
14577 fail:
14578 return NULL;
14579}
14580
14581
14582static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxFontList *arg1 = (wxFontList *) 0 ;
14585 int result;
14586 PyObject * obj0 = 0 ;
14587 char *kwnames[] = {
14588 (char *) "self", NULL
14589 };
14590
14591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = (int)(arg1)->GetCount();
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = PyInt_FromLong((long)result);
14601 return resultobj;
14602 fail:
14603 return NULL;
14604}
14605
14606
14607static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14608 PyObject *obj;
14609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14610 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14611 Py_INCREF(obj);
14612 return Py_BuildValue((char *)"");
14613}
14614static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14615 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14616 return 1;
14617}
14618
14619
14620static PyObject *_wrap_NORMAL_FONT_get() {
14621 PyObject *pyobj;
14622
14623 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14624 return pyobj;
14625}
14626
14627
14628static int _wrap_SMALL_FONT_set(PyObject *_val) {
14629 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14630 return 1;
14631}
14632
14633
14634static PyObject *_wrap_SMALL_FONT_get() {
14635 PyObject *pyobj;
14636
14637 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14638 return pyobj;
14639}
14640
14641
14642static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14643 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14644 return 1;
14645}
14646
14647
14648static PyObject *_wrap_ITALIC_FONT_get() {
14649 PyObject *pyobj;
14650
14651 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14652 return pyobj;
14653}
14654
14655
14656static int _wrap_SWISS_FONT_set(PyObject *_val) {
14657 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14658 return 1;
14659}
14660
14661
14662static PyObject *_wrap_SWISS_FONT_get() {
14663 PyObject *pyobj;
14664
14665 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14666 return pyobj;
14667}
14668
14669
14670static int _wrap_RED_PEN_set(PyObject *_val) {
14671 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14672 return 1;
14673}
14674
14675
14676static PyObject *_wrap_RED_PEN_get() {
14677 PyObject *pyobj;
14678
14679 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14680 return pyobj;
14681}
14682
14683
14684static int _wrap_CYAN_PEN_set(PyObject *_val) {
14685 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14686 return 1;
14687}
14688
14689
14690static PyObject *_wrap_CYAN_PEN_get() {
14691 PyObject *pyobj;
14692
14693 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14694 return pyobj;
14695}
14696
14697
14698static int _wrap_GREEN_PEN_set(PyObject *_val) {
14699 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14700 return 1;
14701}
14702
14703
14704static PyObject *_wrap_GREEN_PEN_get() {
14705 PyObject *pyobj;
14706
14707 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14708 return pyobj;
14709}
14710
14711
14712static int _wrap_BLACK_PEN_set(PyObject *_val) {
14713 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14714 return 1;
14715}
14716
14717
14718static PyObject *_wrap_BLACK_PEN_get() {
14719 PyObject *pyobj;
14720
14721 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14722 return pyobj;
14723}
14724
14725
14726static int _wrap_WHITE_PEN_set(PyObject *_val) {
14727 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14728 return 1;
14729}
14730
14731
14732static PyObject *_wrap_WHITE_PEN_get() {
14733 PyObject *pyobj;
14734
14735 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14736 return pyobj;
14737}
14738
14739
14740static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14741 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14742 return 1;
14743}
14744
14745
14746static PyObject *_wrap_TRANSPARENT_PEN_get() {
14747 PyObject *pyobj;
14748
14749 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14750 return pyobj;
14751}
14752
14753
14754static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14755 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14756 return 1;
14757}
14758
14759
14760static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14761 PyObject *pyobj;
14762
14763 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14764 return pyobj;
14765}
14766
14767
14768static int _wrap_GREY_PEN_set(PyObject *_val) {
14769 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14770 return 1;
14771}
14772
14773
14774static PyObject *_wrap_GREY_PEN_get() {
14775 PyObject *pyobj;
14776
14777 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14778 return pyobj;
14779}
14780
14781
14782static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14783 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14784 return 1;
14785}
14786
14787
14788static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14789 PyObject *pyobj;
14790
14791 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14792 return pyobj;
14793}
14794
14795
14796static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14797 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14798 return 1;
14799}
14800
14801
14802static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14803 PyObject *pyobj;
14804
14805 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14806 return pyobj;
14807}
14808
14809
14810static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14811 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14812 return 1;
14813}
14814
14815
14816static PyObject *_wrap_BLUE_BRUSH_get() {
14817 PyObject *pyobj;
14818
14819 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14820 return pyobj;
14821}
14822
14823
14824static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14825 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14826 return 1;
14827}
14828
14829
14830static PyObject *_wrap_GREEN_BRUSH_get() {
14831 PyObject *pyobj;
14832
14833 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14834 return pyobj;
14835}
14836
14837
14838static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14839 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14840 return 1;
14841}
14842
14843
14844static PyObject *_wrap_WHITE_BRUSH_get() {
14845 PyObject *pyobj;
14846
14847 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14848 return pyobj;
14849}
14850
14851
14852static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14853 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14854 return 1;
14855}
14856
14857
14858static PyObject *_wrap_BLACK_BRUSH_get() {
14859 PyObject *pyobj;
14860
14861 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14862 return pyobj;
14863}
14864
14865
14866static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14867 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14868 return 1;
14869}
14870
14871
14872static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14873 PyObject *pyobj;
14874
14875 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14876 return pyobj;
14877}
14878
14879
14880static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14881 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14882 return 1;
14883}
14884
14885
14886static PyObject *_wrap_CYAN_BRUSH_get() {
14887 PyObject *pyobj;
14888
14889 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14890 return pyobj;
14891}
14892
14893
14894static int _wrap_RED_BRUSH_set(PyObject *_val) {
14895 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
14896 return 1;
14897}
14898
14899
14900static PyObject *_wrap_RED_BRUSH_get() {
14901 PyObject *pyobj;
14902
14903 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
14904 return pyobj;
14905}
14906
14907
14908static int _wrap_GREY_BRUSH_set(PyObject *_val) {
14909 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
14910 return 1;
14911}
14912
14913
14914static PyObject *_wrap_GREY_BRUSH_get() {
14915 PyObject *pyobj;
14916
14917 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14918 return pyobj;
14919}
14920
14921
14922static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
14923 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
14924 return 1;
14925}
14926
14927
14928static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
14929 PyObject *pyobj;
14930
14931 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14932 return pyobj;
14933}
14934
14935
14936static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
14937 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
14938 return 1;
14939}
14940
14941
14942static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
14943 PyObject *pyobj;
14944
14945 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
14946 return pyobj;
14947}
14948
14949
14950static int _wrap_BLACK_set(PyObject *_val) {
14951 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
14952 return 1;
14953}
14954
14955
14956static PyObject *_wrap_BLACK_get() {
14957 PyObject *pyobj;
14958
14959 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
14960 return pyobj;
14961}
14962
14963
14964static int _wrap_WHITE_set(PyObject *_val) {
14965 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
14966 return 1;
14967}
14968
14969
14970static PyObject *_wrap_WHITE_get() {
14971 PyObject *pyobj;
14972
14973 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
14974 return pyobj;
14975}
14976
14977
14978static int _wrap_RED_set(PyObject *_val) {
14979 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
14980 return 1;
14981}
14982
14983
14984static PyObject *_wrap_RED_get() {
14985 PyObject *pyobj;
14986
14987 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
14988 return pyobj;
14989}
14990
14991
14992static int _wrap_BLUE_set(PyObject *_val) {
14993 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
14994 return 1;
14995}
14996
14997
14998static PyObject *_wrap_BLUE_get() {
14999 PyObject *pyobj;
15000
15001 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15002 return pyobj;
15003}
15004
15005
15006static int _wrap_GREEN_set(PyObject *_val) {
15007 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15008 return 1;
15009}
15010
15011
15012static PyObject *_wrap_GREEN_get() {
15013 PyObject *pyobj;
15014
15015 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15016 return pyobj;
15017}
15018
15019
15020static int _wrap_CYAN_set(PyObject *_val) {
15021 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15022 return 1;
15023}
15024
15025
15026static PyObject *_wrap_CYAN_get() {
15027 PyObject *pyobj;
15028
15029 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15030 return pyobj;
15031}
15032
15033
15034static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15035 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15036 return 1;
15037}
15038
15039
15040static PyObject *_wrap_LIGHT_GREY_get() {
15041 PyObject *pyobj;
15042
15043 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15044 return pyobj;
15045}
15046
15047
15048static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15049 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15050 return 1;
15051}
15052
15053
15054static PyObject *_wrap_STANDARD_CURSOR_get() {
15055 PyObject *pyobj;
15056
15057 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15058 return pyobj;
15059}
15060
15061
15062static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15063 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15064 return 1;
15065}
15066
15067
15068static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15069 PyObject *pyobj;
15070
15071 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15072 return pyobj;
15073}
15074
15075
15076static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15077 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15078 return 1;
15079}
15080
15081
15082static PyObject *_wrap_CROSS_CURSOR_get() {
15083 PyObject *pyobj;
15084
15085 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15086 return pyobj;
15087}
15088
15089
15090static int _wrap_NullBitmap_set(PyObject *_val) {
15091 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15092 return 1;
15093}
15094
15095
15096static PyObject *_wrap_NullBitmap_get() {
15097 PyObject *pyobj;
15098
15099 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15100 return pyobj;
15101}
15102
15103
15104static int _wrap_NullIcon_set(PyObject *_val) {
15105 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15106 return 1;
15107}
15108
15109
15110static PyObject *_wrap_NullIcon_get() {
15111 PyObject *pyobj;
15112
15113 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15114 return pyobj;
15115}
15116
15117
15118static int _wrap_NullCursor_set(PyObject *_val) {
15119 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15120 return 1;
15121}
15122
15123
15124static PyObject *_wrap_NullCursor_get() {
15125 PyObject *pyobj;
15126
15127 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15128 return pyobj;
15129}
15130
15131
15132static int _wrap_NullPen_set(PyObject *_val) {
15133 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15134 return 1;
15135}
15136
15137
15138static PyObject *_wrap_NullPen_get() {
15139 PyObject *pyobj;
15140
15141 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15142 return pyobj;
15143}
15144
15145
15146static int _wrap_NullBrush_set(PyObject *_val) {
15147 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15148 return 1;
15149}
15150
15151
15152static PyObject *_wrap_NullBrush_get() {
15153 PyObject *pyobj;
15154
15155 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15156 return pyobj;
15157}
15158
15159
15160static int _wrap_NullPalette_set(PyObject *_val) {
15161 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15162 return 1;
15163}
15164
15165
15166static PyObject *_wrap_NullPalette_get() {
15167 PyObject *pyobj;
15168
15169 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15170 return pyobj;
15171}
15172
15173
15174static int _wrap_NullFont_set(PyObject *_val) {
15175 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15176 return 1;
15177}
15178
15179
15180static PyObject *_wrap_NullFont_get() {
15181 PyObject *pyobj;
15182
15183 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15184 return pyobj;
15185}
15186
15187
15188static int _wrap_NullColour_set(PyObject *_val) {
15189 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15190 return 1;
15191}
15192
15193
15194static PyObject *_wrap_NullColour_get() {
15195 PyObject *pyobj;
15196
15197 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15198 return pyobj;
15199}
15200
15201
15202static int _wrap_TheFontList_set(PyObject *_val) {
15203 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15204 return 1;
15205}
15206
15207
15208static PyObject *_wrap_TheFontList_get() {
15209 PyObject *pyobj;
15210
15211 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15212 return pyobj;
15213}
15214
15215
15216static int _wrap_ThePenList_set(PyObject *_val) {
15217 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15218 return 1;
15219}
15220
15221
15222static PyObject *_wrap_ThePenList_get() {
15223 PyObject *pyobj;
15224
15225 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15226 return pyobj;
15227}
15228
15229
15230static int _wrap_TheBrushList_set(PyObject *_val) {
15231 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15232 return 1;
15233}
15234
15235
15236static PyObject *_wrap_TheBrushList_get() {
15237 PyObject *pyobj;
15238
15239 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15240 return pyobj;
15241}
15242
15243
15244static int _wrap_TheColourDatabase_set(PyObject *_val) {
15245 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15246 return 1;
15247}
15248
15249
15250static PyObject *_wrap_TheColourDatabase_get() {
15251 PyObject *pyobj;
15252
15253 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15254 return pyobj;
15255}
15256
15257
15258static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
15259 PyObject *resultobj;
15260 wxBitmap *arg1 = 0 ;
15261 wxCursor const &arg2_defvalue = wxNullCursor ;
15262 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
15263 wxGenericDragImage *result;
15264 PyObject * obj0 = 0 ;
15265 PyObject * obj1 = 0 ;
15266 char *kwnames[] = {
15267 (char *) "image",(char *) "cursor", NULL
15268 };
15269
15270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
15271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15272 if (arg1 == NULL) {
15273 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15274 }
15275 if (obj1) {
15276 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15277 if (arg2 == NULL) {
15278 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15279 }
15280 }
15281 {
15282 PyThreadState* __tstate = wxPyBeginAllowThreads();
15283 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
15284
15285 wxPyEndAllowThreads(__tstate);
15286 if (PyErr_Occurred()) SWIG_fail;
15287 }
15288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
15289 return resultobj;
15290 fail:
15291 return NULL;
15292}
15293
15294
15295static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15296 PyObject *resultobj;
15297 wxIcon *arg1 = 0 ;
15298 wxCursor const &arg2_defvalue = wxNullCursor ;
15299 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
15300 wxGenericDragImage *result;
15301 PyObject * obj0 = 0 ;
15302 PyObject * obj1 = 0 ;
15303 char *kwnames[] = {
15304 (char *) "image",(char *) "cursor", NULL
15305 };
15306
15307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
15308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15309 if (arg1 == NULL) {
15310 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15311 }
15312 if (obj1) {
15313 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15314 if (arg2 == NULL) {
15315 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15316 }
15317 }
15318 {
15319 PyThreadState* __tstate = wxPyBeginAllowThreads();
15320 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
15321
15322 wxPyEndAllowThreads(__tstate);
15323 if (PyErr_Occurred()) SWIG_fail;
15324 }
15325 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
15326 return resultobj;
15327 fail:
15328 return NULL;
15329}
15330
15331
15332static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) {
15333 PyObject *resultobj;
15334 wxString *arg1 = 0 ;
15335 wxCursor const &arg2_defvalue = wxNullCursor ;
15336 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
15337 wxGenericDragImage *result;
15338 bool temp1 = false ;
15339 PyObject * obj0 = 0 ;
15340 PyObject * obj1 = 0 ;
15341 char *kwnames[] = {
15342 (char *) "str",(char *) "cursor", NULL
15343 };
15344
15345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
15346 {
15347 arg1 = wxString_in_helper(obj0);
15348 if (arg1 == NULL) SWIG_fail;
15349 temp1 = true;
15350 }
15351 if (obj1) {
15352 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15353 if (arg2 == NULL) {
15354 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15355 }
15356 }
15357 {
15358 PyThreadState* __tstate = wxPyBeginAllowThreads();
15359 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
15360
15361 wxPyEndAllowThreads(__tstate);
15362 if (PyErr_Occurred()) SWIG_fail;
15363 }
15364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
15365 {
15366 if (temp1)
15367 delete arg1;
15368 }
15369 return resultobj;
15370 fail:
15371 {
15372 if (temp1)
15373 delete arg1;
15374 }
15375 return NULL;
15376}
15377
15378
15379static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15380 PyObject *resultobj;
15381 wxTreeCtrl *arg1 = 0 ;
15382 wxTreeItemId *arg2 = 0 ;
15383 wxGenericDragImage *result;
15384 PyObject * obj0 = 0 ;
15385 PyObject * obj1 = 0 ;
15386 char *kwnames[] = {
15387 (char *) "treeCtrl",(char *) "id", NULL
15388 };
15389
15390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
15391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15392 if (arg1 == NULL) {
15393 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15394 }
15395 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15396 if (arg2 == NULL) {
15397 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15398 }
15399 {
15400 PyThreadState* __tstate = wxPyBeginAllowThreads();
15401 result = (wxGenericDragImage *)new wxGenericDragImage((wxTreeCtrl const &)*arg1,*arg2);
15402
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
15407 return resultobj;
15408 fail:
15409 return NULL;
15410}
15411
15412
15413static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
15414 PyObject *resultobj;
15415 wxListCtrl *arg1 = 0 ;
15416 long arg2 ;
15417 wxGenericDragImage *result;
15418 PyObject * obj0 = 0 ;
15419 char *kwnames[] = {
15420 (char *) "listCtrl",(char *) "id", NULL
15421 };
15422
15423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail;
15424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15425 if (arg1 == NULL) {
15426 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15427 }
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 result = (wxGenericDragImage *)new wxGenericDragImage((wxListCtrl const &)*arg1,arg2);
15431
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1);
15436 return resultobj;
15437 fail:
15438 return NULL;
15439}
15440
15441
15442static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj;
15444 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15445 PyObject * obj0 = 0 ;
15446 char *kwnames[] = {
15447 (char *) "self", NULL
15448 };
15449
15450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
15451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 delete arg1;
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 Py_INCREF(Py_None); resultobj = Py_None;
15460 return resultobj;
15461 fail:
15462 return NULL;
15463}
15464
15465
15466static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj;
15468 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15469 wxBitmap *arg2 = (wxBitmap *) 0 ;
15470 PyObject * obj0 = 0 ;
15471 PyObject * obj1 = 0 ;
15472 char *kwnames[] = {
15473 (char *) "self",(char *) "bitmap", NULL
15474 };
15475
15476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
15477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15478 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 (arg1)->SetBackingBitmap(arg2);
15482
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 Py_INCREF(Py_None); resultobj = Py_None;
15487 return resultobj;
15488 fail:
15489 return NULL;
15490}
15491
15492
15493static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj;
15495 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15496 wxPoint *arg2 = 0 ;
15497 wxWindow *arg3 = (wxWindow *) 0 ;
15498 bool arg4 = (bool) FALSE ;
15499 wxRect *arg5 = (wxRect *) NULL ;
15500 bool result;
15501 wxPoint temp2 ;
15502 PyObject * obj0 = 0 ;
15503 PyObject * obj1 = 0 ;
15504 PyObject * obj2 = 0 ;
15505 PyObject * obj3 = 0 ;
15506 PyObject * obj4 = 0 ;
15507 char *kwnames[] = {
15508 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
15509 };
15510
15511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15513 {
15514 arg2 = &temp2;
15515 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15516 }
15517 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15518 if (obj3) {
15519 arg4 = PyInt_AsLong(obj3) ? true : false;
15520 if (PyErr_Occurred()) SWIG_fail;
15521 }
15522 if (obj4) {
15523 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15524 }
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = PyInt_FromLong((long)result);
15533 return resultobj;
15534 fail:
15535 return NULL;
15536}
15537
15538
15539static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) {
15540 PyObject *resultobj;
15541 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15542 wxPoint *arg2 = 0 ;
15543 wxWindow *arg3 = (wxWindow *) 0 ;
15544 wxWindow *arg4 = (wxWindow *) 0 ;
15545 bool result;
15546 wxPoint temp2 ;
15547 PyObject * obj0 = 0 ;
15548 PyObject * obj1 = 0 ;
15549 PyObject * obj2 = 0 ;
15550 PyObject * obj3 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15557 {
15558 arg2 = &temp2;
15559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15560 }
15561 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15562 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
15566
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 resultobj = PyInt_FromLong((long)result);
15571 return resultobj;
15572 fail:
15573 return NULL;
15574}
15575
15576
15577static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj;
15579 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15580 bool result;
15581 PyObject * obj0 = 0 ;
15582 char *kwnames[] = {
15583 (char *) "self", NULL
15584 };
15585
15586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
15587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (bool)(arg1)->EndDrag();
15591
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 resultobj = PyInt_FromLong((long)result);
15596 return resultobj;
15597 fail:
15598 return NULL;
15599}
15600
15601
15602static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj;
15604 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15605 wxPoint *arg2 = 0 ;
15606 bool result;
15607 wxPoint temp2 ;
15608 PyObject * obj0 = 0 ;
15609 PyObject * obj1 = 0 ;
15610 char *kwnames[] = {
15611 (char *) "self",(char *) "pt", NULL
15612 };
15613
15614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
15615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15616 {
15617 arg2 = &temp2;
15618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15619 }
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
15622 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
15623
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = PyInt_FromLong((long)result);
15628 return resultobj;
15629 fail:
15630 return NULL;
15631}
15632
15633
15634static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj;
15636 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15637 bool result;
15638 PyObject * obj0 = 0 ;
15639 char *kwnames[] = {
15640 (char *) "self", NULL
15641 };
15642
15643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
15644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (bool)(arg1)->Show();
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = PyInt_FromLong((long)result);
15653 return resultobj;
15654 fail:
15655 return NULL;
15656}
15657
15658
15659static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15662 bool result;
15663 PyObject * obj0 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "self", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
15669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = (bool)(arg1)->Hide();
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 resultobj = PyInt_FromLong((long)result);
15678 return resultobj;
15679 fail:
15680 return NULL;
15681}
15682
15683
15684static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15685 PyObject *resultobj;
15686 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15687 wxPoint *arg2 = 0 ;
15688 wxRect result;
15689 wxPoint temp2 ;
15690 PyObject * obj0 = 0 ;
15691 PyObject * obj1 = 0 ;
15692 char *kwnames[] = {
15693 (char *) "self",(char *) "pos", NULL
15694 };
15695
15696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
15697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15698 {
15699 arg2 = &temp2;
15700 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15701 }
15702 {
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
15705
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 {
15710 wxRect * resultptr;
15711 resultptr = new wxRect((wxRect &) result);
15712 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
15713 }
15714 return resultobj;
15715 fail:
15716 return NULL;
15717}
15718
15719
15720static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj;
15722 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15723 wxDC *arg2 = 0 ;
15724 wxPoint *arg3 = 0 ;
15725 bool result;
15726 wxPoint temp3 ;
15727 PyObject * obj0 = 0 ;
15728 PyObject * obj1 = 0 ;
15729 PyObject * obj2 = 0 ;
15730 char *kwnames[] = {
15731 (char *) "self",(char *) "dc",(char *) "pos", NULL
15732 };
15733
15734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
15735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15736 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15737 if (arg2 == NULL) {
15738 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15739 }
15740 {
15741 arg3 = &temp3;
15742 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15743 }
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
15747
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = PyInt_FromLong((long)result);
15752 return resultobj;
15753 fail:
15754 return NULL;
15755}
15756
15757
15758static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj;
15760 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15761 wxDC *arg2 = 0 ;
15762 wxMemoryDC *arg3 = 0 ;
15763 wxRect *arg4 = 0 ;
15764 wxRect *arg5 = 0 ;
15765 bool result;
15766 wxRect temp4 ;
15767 wxRect temp5 ;
15768 PyObject * obj0 = 0 ;
15769 PyObject * obj1 = 0 ;
15770 PyObject * obj2 = 0 ;
15771 PyObject * obj3 = 0 ;
15772 PyObject * obj4 = 0 ;
15773 char *kwnames[] = {
15774 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
15775 };
15776
15777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15779 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15780 if (arg2 == NULL) {
15781 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15782 }
15783 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15784 if (arg3 == NULL) {
15785 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15786 }
15787 {
15788 arg4 = &temp4;
15789 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
15790 }
15791 {
15792 arg5 = &temp5;
15793 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
15794 }
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 resultobj = PyInt_FromLong((long)result);
15803 return resultobj;
15804 fail:
15805 return NULL;
15806}
15807
15808
15809static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
15812 wxPoint *arg2 = 0 ;
15813 wxPoint *arg3 = 0 ;
15814 bool arg4 ;
15815 bool arg5 ;
15816 bool result;
15817 wxPoint temp2 ;
15818 wxPoint temp3 ;
15819 PyObject * obj0 = 0 ;
15820 PyObject * obj1 = 0 ;
15821 PyObject * obj2 = 0 ;
15822 PyObject * obj3 = 0 ;
15823 PyObject * obj4 = 0 ;
15824 char *kwnames[] = {
15825 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
15826 };
15827
15828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15830 {
15831 arg2 = &temp2;
15832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15833 }
15834 {
15835 arg3 = &temp3;
15836 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15837 }
15838 arg4 = PyInt_AsLong(obj3) ? true : false;
15839 if (PyErr_Occurred()) SWIG_fail;
15840 arg5 = PyInt_AsLong(obj4) ? true : false;
15841 if (PyErr_Occurred()) SWIG_fail;
15842 {
15843 PyThreadState* __tstate = wxPyBeginAllowThreads();
15844 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
15845
15846 wxPyEndAllowThreads(__tstate);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 resultobj = PyInt_FromLong((long)result);
15850 return resultobj;
15851 fail:
15852 return NULL;
15853}
15854
15855
15856static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) {
15857 PyObject *obj;
15858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15859 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
15860 Py_INCREF(obj);
15861 return Py_BuildValue((char *)"");
15862}
15863static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15864 PyObject *resultobj;
15865 wxEffects *result;
15866 char *kwnames[] = {
15867 NULL
15868 };
15869
15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15871 {
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 result = (wxEffects *)new wxEffects();
15874
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15879 return resultobj;
15880 fail:
15881 return NULL;
15882}
15883
15884
15885static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj;
15887 wxEffects *arg1 = (wxEffects *) 0 ;
15888 wxColour result;
15889 PyObject * obj0 = 0 ;
15890 char *kwnames[] = {
15891 (char *) "self", NULL
15892 };
15893
15894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = ((wxEffects const *)arg1)->GetHighlightColour();
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 {
15904 wxColour * resultptr;
15905 resultptr = new wxColour((wxColour &) result);
15906 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15907 }
15908 return resultobj;
15909 fail:
15910 return NULL;
15911}
15912
15913
15914static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxEffects *arg1 = (wxEffects *) 0 ;
15917 wxColour result;
15918 PyObject * obj0 = 0 ;
15919 char *kwnames[] = {
15920 (char *) "self", NULL
15921 };
15922
15923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15925 {
15926 PyThreadState* __tstate = wxPyBeginAllowThreads();
15927 result = ((wxEffects const *)arg1)->GetLightShadow();
15928
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933 wxColour * resultptr;
15934 resultptr = new wxColour((wxColour &) result);
15935 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15936 }
15937 return resultobj;
15938 fail:
15939 return NULL;
15940}
15941
15942
15943static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj;
15945 wxEffects *arg1 = (wxEffects *) 0 ;
15946 wxColour result;
15947 PyObject * obj0 = 0 ;
15948 char *kwnames[] = {
15949 (char *) "self", NULL
15950 };
15951
15952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 result = ((wxEffects const *)arg1)->GetFaceColour();
15957
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 {
15962 wxColour * resultptr;
15963 resultptr = new wxColour((wxColour &) result);
15964 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15965 }
15966 return resultobj;
15967 fail:
15968 return NULL;
15969}
15970
15971
15972static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15973 PyObject *resultobj;
15974 wxEffects *arg1 = (wxEffects *) 0 ;
15975 wxColour result;
15976 PyObject * obj0 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15983 {
15984 PyThreadState* __tstate = wxPyBeginAllowThreads();
15985 result = ((wxEffects const *)arg1)->GetMediumShadow();
15986
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 {
15991 wxColour * resultptr;
15992 resultptr = new wxColour((wxColour &) result);
15993 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15994 }
15995 return resultobj;
15996 fail:
15997 return NULL;
15998}
15999
16000
16001static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxEffects *arg1 = (wxEffects *) 0 ;
16004 wxColour result;
16005 PyObject * obj0 = 0 ;
16006 char *kwnames[] = {
16007 (char *) "self", NULL
16008 };
16009
16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
16011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 result = ((wxEffects const *)arg1)->GetDarkShadow();
16015
16016 wxPyEndAllowThreads(__tstate);
16017 if (PyErr_Occurred()) SWIG_fail;
16018 }
16019 {
16020 wxColour * resultptr;
16021 resultptr = new wxColour((wxColour &) result);
16022 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16023 }
16024 return resultobj;
16025 fail:
16026 return NULL;
16027}
16028
16029
16030static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj;
16032 wxEffects *arg1 = (wxEffects *) 0 ;
16033 wxColour *arg2 = 0 ;
16034 wxColour temp2 ;
16035 PyObject * obj0 = 0 ;
16036 PyObject * obj1 = 0 ;
16037 char *kwnames[] = {
16038 (char *) "self",(char *) "c", NULL
16039 };
16040
16041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
16042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16043 {
16044 arg2 = &temp2;
16045 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16046 }
16047 {
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 (arg1)->SetHighlightColour((wxColour const &)*arg2);
16050
16051 wxPyEndAllowThreads(__tstate);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 }
16054 Py_INCREF(Py_None); resultobj = Py_None;
16055 return resultobj;
16056 fail:
16057 return NULL;
16058}
16059
16060
16061static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16062 PyObject *resultobj;
16063 wxEffects *arg1 = (wxEffects *) 0 ;
16064 wxColour *arg2 = 0 ;
16065 wxColour temp2 ;
16066 PyObject * obj0 = 0 ;
16067 PyObject * obj1 = 0 ;
16068 char *kwnames[] = {
16069 (char *) "self",(char *) "c", NULL
16070 };
16071
16072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
16073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16074 {
16075 arg2 = &temp2;
16076 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16077 }
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 (arg1)->SetLightShadow((wxColour const &)*arg2);
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 Py_INCREF(Py_None); resultobj = Py_None;
16086 return resultobj;
16087 fail:
16088 return NULL;
16089}
16090
16091
16092static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxEffects *arg1 = (wxEffects *) 0 ;
16095 wxColour *arg2 = 0 ;
16096 wxColour temp2 ;
16097 PyObject * obj0 = 0 ;
16098 PyObject * obj1 = 0 ;
16099 char *kwnames[] = {
16100 (char *) "self",(char *) "c", NULL
16101 };
16102
16103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
16104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16105 {
16106 arg2 = &temp2;
16107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16108 }
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 (arg1)->SetFaceColour((wxColour const &)*arg2);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 Py_INCREF(Py_None); resultobj = Py_None;
16117 return resultobj;
16118 fail:
16119 return NULL;
16120}
16121
16122
16123static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16124 PyObject *resultobj;
16125 wxEffects *arg1 = (wxEffects *) 0 ;
16126 wxColour *arg2 = 0 ;
16127 wxColour temp2 ;
16128 PyObject * obj0 = 0 ;
16129 PyObject * obj1 = 0 ;
16130 char *kwnames[] = {
16131 (char *) "self",(char *) "c", NULL
16132 };
16133
16134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
16135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16136 {
16137 arg2 = &temp2;
16138 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16139 }
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 (arg1)->SetMediumShadow((wxColour const &)*arg2);
16143
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 Py_INCREF(Py_None); resultobj = Py_None;
16148 return resultobj;
16149 fail:
16150 return NULL;
16151}
16152
16153
16154static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16155 PyObject *resultobj;
16156 wxEffects *arg1 = (wxEffects *) 0 ;
16157 wxColour *arg2 = 0 ;
16158 wxColour temp2 ;
16159 PyObject * obj0 = 0 ;
16160 PyObject * obj1 = 0 ;
16161 char *kwnames[] = {
16162 (char *) "self",(char *) "c", NULL
16163 };
16164
16165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
16166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16167 {
16168 arg2 = &temp2;
16169 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16170 }
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 (arg1)->SetDarkShadow((wxColour const &)*arg2);
16174
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
16178 Py_INCREF(Py_None); resultobj = Py_None;
16179 return resultobj;
16180 fail:
16181 return NULL;
16182}
16183
16184
16185static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj;
16187 wxEffects *arg1 = (wxEffects *) 0 ;
16188 wxColour *arg2 = 0 ;
16189 wxColour *arg3 = 0 ;
16190 wxColour *arg4 = 0 ;
16191 wxColour *arg5 = 0 ;
16192 wxColour *arg6 = 0 ;
16193 wxColour temp2 ;
16194 wxColour temp3 ;
16195 wxColour temp4 ;
16196 wxColour temp5 ;
16197 wxColour temp6 ;
16198 PyObject * obj0 = 0 ;
16199 PyObject * obj1 = 0 ;
16200 PyObject * obj2 = 0 ;
16201 PyObject * obj3 = 0 ;
16202 PyObject * obj4 = 0 ;
16203 PyObject * obj5 = 0 ;
16204 char *kwnames[] = {
16205 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
16206 };
16207
16208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16210 {
16211 arg2 = &temp2;
16212 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16213 }
16214 {
16215 arg3 = &temp3;
16216 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16217 }
16218 {
16219 arg4 = &temp4;
16220 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
16221 }
16222 {
16223 arg5 = &temp5;
16224 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
16225 }
16226 {
16227 arg6 = &temp6;
16228 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
16229 }
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 Py_INCREF(Py_None); resultobj = Py_None;
16238 return resultobj;
16239 fail:
16240 return NULL;
16241}
16242
16243
16244static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
16245 PyObject *resultobj;
16246 wxEffects *arg1 = (wxEffects *) 0 ;
16247 wxDC *arg2 = 0 ;
16248 wxRect *arg3 = 0 ;
16249 int arg4 = (int) 1 ;
16250 wxRect temp3 ;
16251 PyObject * obj0 = 0 ;
16252 PyObject * obj1 = 0 ;
16253 PyObject * obj2 = 0 ;
16254 char *kwnames[] = {
16255 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
16256 };
16257
16258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
16259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16260 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16261 if (arg2 == NULL) {
16262 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16263 }
16264 {
16265 arg3 = &temp3;
16266 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
16267 }
16268 {
16269 PyThreadState* __tstate = wxPyBeginAllowThreads();
16270 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
16271
16272 wxPyEndAllowThreads(__tstate);
16273 if (PyErr_Occurred()) SWIG_fail;
16274 }
16275 Py_INCREF(Py_None); resultobj = Py_None;
16276 return resultobj;
16277 fail:
16278 return NULL;
16279}
16280
16281
16282static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16283 PyObject *resultobj;
16284 wxEffects *arg1 = (wxEffects *) 0 ;
16285 wxRect *arg2 = 0 ;
16286 wxDC *arg3 = 0 ;
16287 wxBitmap *arg4 = 0 ;
16288 bool result;
16289 wxRect temp2 ;
16290 PyObject * obj0 = 0 ;
16291 PyObject * obj1 = 0 ;
16292 PyObject * obj2 = 0 ;
16293 PyObject * obj3 = 0 ;
16294 char *kwnames[] = {
16295 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
16296 };
16297
16298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16300 {
16301 arg2 = &temp2;
16302 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16303 }
16304 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16305 if (arg3 == NULL) {
16306 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16307 }
16308 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16309 if (arg4 == NULL) {
16310 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16311 }
16312 {
16313 PyThreadState* __tstate = wxPyBeginAllowThreads();
16314 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
16315
16316 wxPyEndAllowThreads(__tstate);
16317 if (PyErr_Occurred()) SWIG_fail;
16318 }
16319 resultobj = PyInt_FromLong((long)result);
16320 return resultobj;
16321 fail:
16322 return NULL;
16323}
16324
16325
16326static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
16327 PyObject *obj;
16328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16329 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
16330 Py_INCREF(obj);
16331 return Py_BuildValue((char *)"");
16332}
16333static PyMethodDef SwigMethods[] = {
16334 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
16335 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
16336 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
16337 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
16340 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
16342 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
16344 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
16345 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
16346 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
16349 { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
16351 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
16353 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
16354 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
16355 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
16356 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
16357 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
16358 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
16359 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
16360 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
16361 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
16362 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
16363 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
16364 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
16365 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
16366 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
16367 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
16368 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
16369 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
16370 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
16371 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
16372 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
16373 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16374 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
16375 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
16376 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
16377 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
16378 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16379 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
16380 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
16381 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
16382 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
16383 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
16384 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
16385 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
16386 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
16387 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
16388 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
16389 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
16390 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
16391 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
16392 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
16393 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
16394 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
16395 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
16396 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
16397 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
16398 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
16399 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
16400 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
16401 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
16402 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
16403 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
16404 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
16405 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
16406 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
16407 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
16408 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
16409 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
16410 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
16411 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
16412 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
16413 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
16414 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
16415 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
16416 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
16417 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
16418 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
16419 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
16420 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
16421 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
16422 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16423 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16424 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16425 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16426 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16427 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16428 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16429 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16430 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16431 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16432 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16433 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16434 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16435 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16436 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16437 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16438 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16439 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16440 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16441 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16442 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16443 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16444 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16445 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16446 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16447 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16448 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16449 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16450 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16451 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16452 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16453 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16454 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16455 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16456 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16457 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16458 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16459 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16460 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16461 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16462 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16463 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16464 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16465 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16466 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16467 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16468 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16469 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16470 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16471 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16472 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16473 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16474 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16475 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16476 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16477 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16478 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16479 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16480 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16481 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16482 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16483 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16484 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16485 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16486 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16487 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16488 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16489 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16490 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16491 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16492 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16493 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16494 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16495 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16496 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16497 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16498 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16499 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16500 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16501 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16502 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16503 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16504 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16505 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16506 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16507 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16508 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16509 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16510 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16511 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16512 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16513 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16514 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16515 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16516 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16517 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16518 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16519 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16520 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16521 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16522 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16523 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16524 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16525 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16526 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16527 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16528 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16529 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16530 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16531 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16532 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16533 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16534 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16535 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16536 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16537 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16538 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16539 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16540 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16541 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16542 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16543 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16544 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16545 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16546 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16547 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16548 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16549 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16550 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16551 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16552 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16553 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16554 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16555 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16556 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16557 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16558 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16559 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16560 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16561 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16562 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16563 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16564 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16565 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16566 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16567 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16568 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16569 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16570 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16571 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16572 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16573 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16574 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16575 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16576 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16577 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16578 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16579 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16580 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16581 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16582 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16583 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16584 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16585 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16586 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16587 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16588 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16589 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16590 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16591 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16592 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16593 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16594 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16595 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16596 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16597 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16598 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16599 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16600 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16601 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16602 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16603 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16604 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16605 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16606 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16607 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16608 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16609 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16610 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16611 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16612 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16613 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16614 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16615 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16616 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16617 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16618 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16619 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16620 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16621 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16622 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16623 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16624 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16625 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16626 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16627 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16628 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16629 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16630 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16631 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16632 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16633 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16634 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16635 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16636 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16637 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16638 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16639 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16640 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16641 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16642 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16643 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16644 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16645 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16646 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16647 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16648 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16649 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16650 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16651 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16652 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16653 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16654 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16655 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16656 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16657 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16658 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16659 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16660 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16661 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16662 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16663 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16664 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16665 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16666 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16667 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16668 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16669 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16670 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16671 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16672 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16673 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16674 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16675 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16676 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16677 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16678 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16679 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16680 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16681 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16682 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16683 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16684 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16685 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16686 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16687 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16688 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16689 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16690 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16691 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16692 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16693 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16694 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16695 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16696 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16697 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16698 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16699 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16700 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16701 { (char *)"DC_GetSizeMMWH", (PyCFunction) _wrap_DC_GetSizeMMWH, METH_VARARGS | METH_KEYWORDS },
16702 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16703 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16704 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16705 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16706 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16707 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16708 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16709 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16710 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16711 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16712 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16713 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16714 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16715 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16716 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16717 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16718 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16719 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16720 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16721 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16722 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16723 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16724 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16725 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16726 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16727 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16728 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16729 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16730 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16731 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16732 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16733 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16734 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16735 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16736 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16737 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16738 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16739 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16740 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16741 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16742 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16743 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16744 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16745 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16746 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16747 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16748 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16749 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16750 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16751 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16752 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16753 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16754 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16755 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16756 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16757 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16758 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16759 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16760 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16761 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16762 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16763 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16764 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16765 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16766 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16767 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16768 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16769 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16770 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16771 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16772 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16773 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16774 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16775 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16776 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16777 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16778 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16779 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16780 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16781 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16782 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16783 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16784 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16785 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16786 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16787 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16788 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16789 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16790 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16791 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16792 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16793 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16794 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16795 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16796 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16797 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16798 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16799 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16800 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16801 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16802 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16803 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16804 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16805 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16806 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16807 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16808 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16809 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16810 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16811 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16812 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16813 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16814 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16815 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16816 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16817 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16818 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16819 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16820 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16821 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16822 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16823 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16824 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16825 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS },
16826 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS },
16827 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS },
16828 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS },
16829 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS },
16830 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS },
16831 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
16832 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
16833 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
16834 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
16835 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS },
16836 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS },
16837 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS },
16838 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
16839 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS },
16840 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS },
16841 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
16842 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS },
16843 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16844 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16845 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16846 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16847 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16848 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16849 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16850 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16851 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16852 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16853 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16854 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16855 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16856 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16857 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16858 { NULL, NULL }
16859};
16860
16861
16862/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16863
16864static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16865 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16866}
16867static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16868 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16869}
16870static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16871 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16872}
16873static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16874 return (void *)((wxGDIObject *) ((wxIcon *) x));
16875}
16876static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16877 return (void *)((wxGDIObject *) ((wxPalette *) x));
16878}
16879static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16880 return (void *)((wxGDIObject *) ((wxPen *) x));
16881}
16882static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16883 return (void *)((wxGDIObject *) ((wxFont *) x));
16884}
16885static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16886 return (void *)((wxGDIObject *) ((wxCursor *) x));
16887}
16888static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16889 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16890}
16891static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16892 return (void *)((wxGDIObject *) ((wxRegion *) x));
16893}
16894static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16895 return (void *)((wxGDIObject *) ((wxBrush *) x));
16896}
16897static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16898 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16899}
16900static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16901 return (void *)((wxDC *) ((wxScreenDC *) x));
16902}
16903static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16904 return (void *)((wxDC *) ((wxMirrorDC *) x));
16905}
16906static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16907 return (void *)((wxDC *) ((wxMemoryDC *) x));
16908}
16909static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16910 return (void *)((wxDC *) ((wxWindowDC *) x));
16911}
16912static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16913 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16914}
16915static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16916 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16917}
16918static void *_p_wxClientDCTo_p_wxDC(void *x) {
16919 return (void *)((wxDC *) ((wxClientDC *) x));
16920}
16921static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16922 return (void *)((wxDC *) ((wxPaintDC *) x));
16923}
16924static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16925 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16926}
16927static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16928 return (void *)((wxDC *) ((wxPrinterDC *) x));
16929}
16930static void *_p_wxPyPenTo_p_wxPen(void *x) {
16931 return (void *)((wxPen *) ((wxPyPen *) x));
16932}
16933static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16934 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16935}
16936static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16937 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16938}
16939static void *_p_wxPenTo_p_wxObject(void *x) {
16940 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16941}
16942static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16943 return (void *)((wxObject *) ((wxRegionIterator *) x));
16944}
16945static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16946 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16947}
16948static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16949 return (void *)((wxObject *) ((wxSizerItem *) x));
16950}
16951static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16952 return (void *)((wxObject *) ((wxColourDatabase *) x));
16953}
16954static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16955 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16956}
16957static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16958 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16959}
16960static void *_p_wxIconTo_p_wxObject(void *x) {
16961 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16962}
16963static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16964 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16965}
16966static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16967 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16968}
16969static void *_p_wxSizerTo_p_wxObject(void *x) {
16970 return (void *)((wxObject *) ((wxSizer *) x));
16971}
16972static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16973 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16974}
16975static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16976 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16977}
16978static void *_p_wxPenListTo_p_wxObject(void *x) {
16979 return (void *)((wxObject *) ((wxPenList *) x));
16980}
16981static void *_p_wxEventTo_p_wxObject(void *x) {
16982 return (void *)((wxObject *) ((wxEvent *) x));
16983}
16984static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16985 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16986}
16987static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16988 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16989}
16990static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16991 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16992}
16993static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16994 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16995}
16996static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16997 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16998}
16999static void *_p_wxDCTo_p_wxObject(void *x) {
17000 return (void *)((wxObject *) ((wxDC *) x));
17001}
17002static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
17003 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
17004}
17005static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
17006 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
17007}
17008static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
17009 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
17010}
17011static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
17012 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
17013}
17014static void *_p_wxControlTo_p_wxObject(void *x) {
17015 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
17016}
17017static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
17018 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
17019}
17020static void *_p_wxClientDCTo_p_wxObject(void *x) {
17021 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
17022}
17023static void *_p_wxFSFileTo_p_wxObject(void *x) {
17024 return (void *)((wxObject *) ((wxFSFile *) x));
17025}
17026static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
17027 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
17028}
17029static void *_p_wxRegionTo_p_wxObject(void *x) {
17030 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
17031}
17032static void *_p_wxPySizerTo_p_wxObject(void *x) {
17033 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
17034}
17035static void *_p_wxWindowDCTo_p_wxObject(void *x) {
17036 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
17037}
17038static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
17039 return (void *)((wxObject *) ((wxGDIObject *) x));
17040}
17041static void *_p_wxEffectsTo_p_wxObject(void *x) {
17042 return (void *)((wxObject *) ((wxEffects *) x));
17043}
17044static void *_p_wxPyEventTo_p_wxObject(void *x) {
17045 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
17046}
17047static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
17048 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
17049}
17050static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
17051 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
17052}
17053static void *_p_wxShowEventTo_p_wxObject(void *x) {
17054 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
17055}
17056static void *_p_wxMenuItemTo_p_wxObject(void *x) {
17057 return (void *)((wxObject *) ((wxMenuItem *) x));
17058}
17059static void *_p_wxIdleEventTo_p_wxObject(void *x) {
17060 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
17061}
17062static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
17063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
17064}
17065static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
17066 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
17067}
17068static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
17069 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
17070}
17071static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
17072 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
17073}
17074static void *_p_wxSizeEventTo_p_wxObject(void *x) {
17075 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
17076}
17077static void *_p_wxMoveEventTo_p_wxObject(void *x) {
17078 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
17079}
17080static void *_p_wxActivateEventTo_p_wxObject(void *x) {
17081 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
17082}
17083static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
17084 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
17085}
17086static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
17087 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
17088}
17089static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
17090 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
17091}
17092static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
17093 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
17094}
17095static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
17096 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
17097}
17098static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
17099 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
17100}
17101static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
17102 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
17103}
17104static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
17105 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
17106}
17107static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
17108 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
17109}
17110static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
17111 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
17112}
17113static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
17114 return (void *)((wxObject *) ((wxImageHandler *) x));
17115}
17116static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
17117 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
17118}
17119static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
17120 return (void *)((wxObject *) ((wxEvtHandler *) x));
17121}
17122static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
17123 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17124}
17125static void *_p_wxPaintDCTo_p_wxObject(void *x) {
17126 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
17127}
17128static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
17129 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
17130}
17131static void *_p_wxScreenDCTo_p_wxObject(void *x) {
17132 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
17133}
17134static void *_p_wxImageTo_p_wxObject(void *x) {
17135 return (void *)((wxObject *) ((wxImage *) x));
17136}
17137static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
17138 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
17139}
17140static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
17141 return (void *)((wxObject *) ((wxGenericDragImage *) x));
17142}
17143static void *_p_wxPaletteTo_p_wxObject(void *x) {
17144 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
17145}
17146static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
17147 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
17148}
17149static void *_p_wxImageListTo_p_wxObject(void *x) {
17150 return (void *)((wxObject *) ((wxImageList *) x));
17151}
17152static void *_p_wxCursorTo_p_wxObject(void *x) {
17153 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
17154}
17155static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
17156 return (void *)((wxObject *) ((wxEncodingConverter *) x));
17157}
17158static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
17159 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
17160}
17161static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
17162 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
17163}
17164static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
17165 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
17166}
17167static void *_p_wxKeyEventTo_p_wxObject(void *x) {
17168 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
17169}
17170static void *_p_wxWindowTo_p_wxObject(void *x) {
17171 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
17172}
17173static void *_p_wxMenuTo_p_wxObject(void *x) {
17174 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
17175}
17176static void *_p_wxMenuBarTo_p_wxObject(void *x) {
17177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
17178}
17179static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
17180 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
17181}
17182static void *_p_wxBrushListTo_p_wxObject(void *x) {
17183 return (void *)((wxObject *) ((wxBrushList *) x));
17184}
17185static void *_p_wxPyPenTo_p_wxObject(void *x) {
17186 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
17187}
17188static void *_p_wxFileSystemTo_p_wxObject(void *x) {
17189 return (void *)((wxObject *) ((wxFileSystem *) x));
17190}
17191static void *_p_wxBitmapTo_p_wxObject(void *x) {
17192 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
17193}
17194static void *_p_wxMaskTo_p_wxObject(void *x) {
17195 return (void *)((wxObject *) ((wxMask *) x));
17196}
17197static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
17198 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
17199}
17200static void *_p_wxMenuEventTo_p_wxObject(void *x) {
17201 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
17202}
17203static void *_p_wxPyAppTo_p_wxObject(void *x) {
17204 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
17205}
17206static void *_p_wxCloseEventTo_p_wxObject(void *x) {
17207 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
17208}
17209static void *_p_wxMouseEventTo_p_wxObject(void *x) {
17210 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
17211}
17212static void *_p_wxEraseEventTo_p_wxObject(void *x) {
17213 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
17214}
17215static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
17216 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
17217}
17218static void *_p_wxCommandEventTo_p_wxObject(void *x) {
17219 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
17220}
17221static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
17222 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
17223}
17224static void *_p_wxFocusEventTo_p_wxObject(void *x) {
17225 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
17226}
17227static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
17228 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
17229}
17230static void *_p_wxFontTo_p_wxObject(void *x) {
17231 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
17232}
17233static void *_p_wxBrushTo_p_wxObject(void *x) {
17234 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
17235}
17236static void *_p_wxMetaFileTo_p_wxObject(void *x) {
17237 return (void *)((wxObject *) ((wxMetaFile *) x));
17238}
17239static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
17240 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
17241}
17242static void *_p_wxColourTo_p_wxObject(void *x) {
17243 return (void *)((wxObject *) ((wxColour *) x));
17244}
17245static void *_p_wxFontListTo_p_wxObject(void *x) {
17246 return (void *)((wxObject *) ((wxFontList *) x));
17247}
17248static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
17249 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
17250}
17251static void *_p_wxValidatorTo_p_wxObject(void *x) {
17252 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
17253}
17254static void *_p_wxControlTo_p_wxWindow(void *x) {
17255 return (void *)((wxWindow *) ((wxControl *) x));
17256}
17257static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17258 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17259}
17260static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17261 return (void *)((wxWindow *) ((wxMenuBar *) x));
17262}
17263static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
17264static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}};
17265static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
17266static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
17267static swig_type_info _swigt__p_wxCoord[] = {{"_p_wxCoord", 0, "wxCoord *", 0},{"_p_wxCoord"},{"_p_int"},{0}};
17268static 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}};
17269static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
17270static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17271static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
17272static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
17273static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
17274static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
17275static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
17276static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
17277static 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}};
17278static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
17279static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
17280static 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}};
17281static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
17282static swig_type_info _swigt__p_wxListCtrl[] = {{"_p_wxListCtrl", 0, "wxListCtrl *", 0},{"_p_wxListCtrl"},{0}};
17283static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
17284static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
17285static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
17286static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
17287static 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_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_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}};
17288static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
17289static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
17290static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
17291static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
17292static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
17293static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
17294static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
17295static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
17296static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
17297static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
17298static swig_type_info _swigt__p_wxTreeCtrl[] = {{"_p_wxTreeCtrl", 0, "wxTreeCtrl *", 0},{"_p_wxTreeCtrl"},{0}};
17299static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
17300static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
17301static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17302static 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}};
17303static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
17304static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
17305static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
17306static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
17307static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
17308static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
17309static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
17310static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
17311static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
17312static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
17313static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
17314static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
17315static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
17316static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}};
17317static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
17318static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_wxCoord"},{"_p_int"},{0}};
17319static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
17320static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
17321static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
17322static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
17323
17324static swig_type_info *swig_types_initial[] = {
17325_swigt__p_wxPostScriptDC,
17326_swigt__p_wxGenericDragImage,
17327_swigt__p_wxBrush,
17328_swigt__p_wxColour,
17329_swigt__p_wxCoord,
17330_swigt__p_wxDC,
17331_swigt__p_wxMirrorDC,
17332_swigt__p_byte,
17333_swigt__p_wxPyFontEnumerator,
17334_swigt__p_wxIconLocation,
17335_swigt__p_wxImage,
17336_swigt__p_wxMetaFileDC,
17337_swigt__p_wxMask,
17338_swigt__p_wxFont,
17339_swigt__p_wxWindow,
17340_swigt__p_wxSize,
17341_swigt__p_double,
17342_swigt__p_wxMemoryDC,
17343_swigt__p_wxFontMapper,
17344_swigt__p_wxListCtrl,
17345_swigt__p_wxEffects,
17346_swigt__p_wxNativeEncodingInfo,
17347_swigt__p_wxPalette,
17348_swigt__p_wxBitmap,
17349_swigt__p_wxObject,
17350_swigt__p_wxRegionIterator,
17351_swigt__p_wxRect,
17352_swigt__p_wxString,
17353_swigt__p_wxPrinterDC,
17354_swigt__p_wxIconBundle,
17355_swigt__p_wxPoint,
17356_swigt__p_wxDash,
17357_swigt__p_wxScreenDC,
17358_swigt__p_wxCursor,
17359_swigt__p_wxClientDC,
17360_swigt__p_wxTreeCtrl,
17361_swigt__p_wxBufferedDC,
17362_swigt__p_wxImageList,
17363_swigt__p_unsigned_char,
17364_swigt__p_wxGDIObject,
17365_swigt__p_wxLocale,
17366_swigt__p_wxIcon,
17367_swigt__p_wxRegion,
17368_swigt__p_wxLanguageInfo,
17369_swigt__p_wxConfigBase,
17370_swigt__p_wxWindowDC,
17371_swigt__p_wxPrintData,
17372_swigt__p_wxBrushList,
17373_swigt__p_wxFontList,
17374_swigt__p_wxPen,
17375_swigt__p_wxBufferedPaintDC,
17376_swigt__p_wxPaintDC,
17377_swigt__p_wxPenList,
17378_swigt__p_wxTreeItemId,
17379_swigt__p_wxPyPen,
17380_swigt__p_int,
17381_swigt__p_wxMetaFile,
17382_swigt__p_wxNativeFontInfo,
17383_swigt__p_wxEncodingConverter,
17384_swigt__p_wxColourDatabase,
173850
17386};
17387
17388
17389/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17390
17391static swig_const_info swig_const_table[] = {
17392{ SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
17393{ SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
17394{ SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
17395{ SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
17396{ SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
17397{ SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
17398{ SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
17399{ SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
17400{ SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
17401{ SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
17402{ SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
17403{ SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
17404{ SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
17405{ SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
17406{ SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
17407{ SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
17408{ SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
17409{ SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
17410{ SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
17411{ SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
17412{ SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
17413{ SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
17414{ SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
17415{ SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
17416{ SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
17417{ SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
17418{ SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
17419{ SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
17420{ SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
17421{ SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
17422{ SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
17423{ SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
17424{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
17425{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
17426{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
17427{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
17428{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
17429{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
17430{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
17431{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
17432{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
17433{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
17434{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
17435{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
17436{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
17437{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
17438{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
17439{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
17440{ SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
17441{ SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
17442{ SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
17443{ SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
17444{ SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
17445{ SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
17446{ SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
17447{ SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17448{ SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17449{ SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17450{ SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17451{ SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17452{ SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17453{ SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17454{ SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17455{ SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17456{ SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17457{ SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17458{ SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17459{ SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17460{ SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17461{ SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17462{ SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17463{ SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17464{ SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17465{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17466{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17467{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17468{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17469{ SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17470{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17471{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17472{ SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17473{ SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17474{ SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17475{ SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17476{ SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17477{ SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17478{ SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17479{ SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17480{ SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17481{ SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17482{ SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17483{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17484{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17485{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17486{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17487{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17488{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17489{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17490{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17491{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17492{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17493{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17494{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17495{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17496{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17497{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17498{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17499{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17500{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17501{ SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17502{ SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17503{ SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17504{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17505{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17506{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17507{ SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17508{ SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17509{ SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17510{ SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17511{ SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17512{ SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17513{ SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17514{ SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17515{ SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17516{ SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17517{ SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17518{ SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17519{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17520{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17521{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17522{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17523{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17524{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17525{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17526{ SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17527{ SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17528{ SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17529{ SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17530{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17531{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17532{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17533{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17534{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17535{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17536{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17537{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17538{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17539{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17540{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17541{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17542{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17543{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17544{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17545{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17546{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17547{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17548{ SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17549{ SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17550{ SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17551{ SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17552{ SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17553{ SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17554{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17555{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17556{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17557{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17558{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17559{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17560{ SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17561{ SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17562{ SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17563{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17564{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17565{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17566{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17567{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17568{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17569{ SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17570{ SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17571{ SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17572{ SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17573{ SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17574{ SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17575{ SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17576{ SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17577{ SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17578{ SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17579{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17580{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17581{ SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17582{ SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17583{ SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17584{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17585{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17586{ SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17587{ SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17588{ SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17589{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17590{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17591{ SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17592{ SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17593{ SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17594{ SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17595{ SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17596{ SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17597{ SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17598{ SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17599{ SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17600{ SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17601{ SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17602{ SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17603{ SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17604{ SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17605{ SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17606{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17607{ SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17608{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17609{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17610{ SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17611{ SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17612{ SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17613{ SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17614{ SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17615{ SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17616{ SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17617{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17618{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17619{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17620{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17621{ SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17622{ SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17623{ SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17624{ SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17625{ SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17626{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17627{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17628{ SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17629{ SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17630{ SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17631{ SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17632{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17633{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17634{ SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17635{ SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17636{ SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17637{ SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17638{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17639{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17640{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17641{ SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17642{ SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17643{ SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17644{ SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17645{ SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17646{ SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17647{ SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17648{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17649{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17650{ SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17651{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17652{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17653{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17654{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17655{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17656{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17657{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17658{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17659{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17660{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17661{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17662{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17663{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17664{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17665{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17666{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17667{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17668{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17669{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17670{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17671{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17672{ SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17673{ SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17674{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17675{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17676{ SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17677{ SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17678{ SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17679{ SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17680{ SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17681{ SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17682{ SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17683{ SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17684{ SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17685{ SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17686{ SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17687{ SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17688{ SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17689{ SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17690{ SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17691{ SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17692{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17693{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17694{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17695{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17696{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17697{ SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17698{ SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17699{ SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17700{ SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17701{ SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17702{ SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17703{ SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17704{ SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17705{ SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17706{ SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17707{ SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17708{ SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17709{ SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17710{ SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17711{ SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17712{ SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17713{ SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17714{ SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17715{ SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17716{ SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17717{ SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17718{ SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17719{ SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17720{ SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17721{ SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17722{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17723{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17724{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17725{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17726{ SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17727{ SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17728{ SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17729{0}};
17730
17731#ifdef __cplusplus
17732}
17733#endif
17734
17735#ifdef __cplusplus
17736extern "C"
17737#endif
17738SWIGEXPORT(void) SWIG_init(void) {
17739 static PyObject *SWIG_globals = 0;
17740 static int typeinit = 0;
17741 PyObject *m, *d;
17742 int i;
17743 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17744 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17745 d = PyModule_GetDict(m);
17746
17747 if (!typeinit) {
17748 for (i = 0; swig_types_initial[i]; i++) {
17749 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17750 }
17751 typeinit = 1;
17752 }
17753 SWIG_InstallConstants(d,swig_const_table);
17754
17755
17756 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17757
17758 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17759 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17760 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17761 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17762 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17763 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17764 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17765 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17766 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17767 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17768 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17769 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17770 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17771 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17772 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17773 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17774 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17775 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17776 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17777 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17778 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17779 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17780 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17781 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17782 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17783 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17784 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17785 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17786 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17787 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17788 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17789 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17790 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17791 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17792 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17793 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17794 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17795 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17796 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17797 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17798 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17799 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17800 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17801 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17802 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17803 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17804 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17805
17806 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
17807
17808}
17809