]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
More changes to make the autodocs be better, made all the namestrings
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
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
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
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; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
125 #endif
126
127
128 /***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
138 #include "Python.h"
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 #define SWIG_PY_INT 1
145 #define SWIG_PY_FLOAT 2
146 #define SWIG_PY_STRING 3
147 #define SWIG_PY_POINTER 4
148 #define SWIG_PY_BINARY 5
149
150 /* Flags for pointer conversion */
151
152 #define SWIG_POINTER_EXCEPTION 0x1
153 #define SWIG_POINTER_DISOWN 0x2
154
155 /* Exception handling in wrappers */
156 #define SWIG_fail goto fail
157
158 /* Constant information structure */
159 typedef struct swig_const_info {
160 int type;
161 char *name;
162 long lvalue;
163 double dvalue;
164 void *pvalue;
165 swig_type_info **ptype;
166 } swig_const_info;
167
168 /* Common SWIG API */
169 #define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171 #define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173 #define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175
176 /* Python-specific SWIG API */
177 #define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
183 #define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185 #define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
187
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199
200 /* Contract support */
201
202 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
203
204 #ifdef __cplusplus
205 }
206 #endif
207
208
209
210 /* -------- TYPES TABLE (BEGIN) -------- */
211
212 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
213 #define SWIGTYPE_p_wxBrush swig_types[1]
214 #define SWIGTYPE_p_wxColour swig_types[2]
215 #define SWIGTYPE_p_wxDC swig_types[3]
216 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
217 #define SWIGTYPE_p_byte swig_types[5]
218 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
219 #define SWIGTYPE_p_wxIconLocation swig_types[7]
220 #define SWIGTYPE_p_wxImage swig_types[8]
221 #define SWIGTYPE_p_wxMetaFileDC swig_types[9]
222 #define SWIGTYPE_p_wxMask swig_types[10]
223 #define SWIGTYPE_p_wxFont swig_types[11]
224 #define SWIGTYPE_p_wxWindow swig_types[12]
225 #define SWIGTYPE_p_wxSize swig_types[13]
226 #define SWIGTYPE_p_double swig_types[14]
227 #define SWIGTYPE_p_wxMemoryDC swig_types[15]
228 #define SWIGTYPE_p_wxFontMapper swig_types[16]
229 #define SWIGTYPE_p_wxEffects swig_types[17]
230 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
231 #define SWIGTYPE_p_wxPalette swig_types[19]
232 #define SWIGTYPE_p_wxBitmap swig_types[20]
233 #define SWIGTYPE_p_wxObject swig_types[21]
234 #define SWIGTYPE_p_wxRegionIterator swig_types[22]
235 #define SWIGTYPE_p_wxRect swig_types[23]
236 #define SWIGTYPE_p_wxString swig_types[24]
237 #define SWIGTYPE_p_wxPrinterDC swig_types[25]
238 #define SWIGTYPE_p_wxIconBundle swig_types[26]
239 #define SWIGTYPE_p_wxPoint swig_types[27]
240 #define SWIGTYPE_p_wxDash swig_types[28]
241 #define SWIGTYPE_p_wxScreenDC swig_types[29]
242 #define SWIGTYPE_p_wxCursor swig_types[30]
243 #define SWIGTYPE_p_wxClientDC swig_types[31]
244 #define SWIGTYPE_p_wxBufferedDC swig_types[32]
245 #define SWIGTYPE_p_wxImageList swig_types[33]
246 #define SWIGTYPE_p_unsigned_char swig_types[34]
247 #define SWIGTYPE_p_wxGDIObject swig_types[35]
248 #define SWIGTYPE_p_wxLocale swig_types[36]
249 #define SWIGTYPE_p_wxIcon swig_types[37]
250 #define SWIGTYPE_p_wxRegion swig_types[38]
251 #define SWIGTYPE_p_wxLanguageInfo swig_types[39]
252 #define SWIGTYPE_p_wxConfigBase swig_types[40]
253 #define SWIGTYPE_p_wxWindowDC swig_types[41]
254 #define SWIGTYPE_p_wxPrintData swig_types[42]
255 #define SWIGTYPE_p_wxBrushList swig_types[43]
256 #define SWIGTYPE_p_wxFontList swig_types[44]
257 #define SWIGTYPE_p_wxPen swig_types[45]
258 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
259 #define SWIGTYPE_p_wxPaintDC swig_types[47]
260 #define SWIGTYPE_p_wxPenList swig_types[48]
261 #define SWIGTYPE_p_wxPyPen swig_types[49]
262 #define SWIGTYPE_p_int swig_types[50]
263 #define SWIGTYPE_p_wxMetaFile swig_types[51]
264 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
265 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
266 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
267 static swig_type_info *swig_types[56];
268
269 /* -------- TYPES TABLE (END) -------- */
270
271
272 /*-----------------------------------------------
273 @(target):= _gdi.so
274 ------------------------------------------------*/
275 #define SWIG_init init_gdi
276
277 #define SWIG_name "_gdi"
278
279 #include "wx/wxPython/wxPython.h"
280 #include "wx/wxPython/pyclasses.h"
281
282
283 static const wxString wxPyEmptyString(wxEmptyString);
284 PyObject *wxColour_Get(wxColour *self){
285 PyObject* rv = PyTuple_New(3);
286 int red = -1;
287 int green = -1;
288 int blue = -1;
289 if (self->Ok()) {
290 red = self->Red();
291 green = self->Green();
292 blue = self->Blue();
293 }
294 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
295 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
296 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
297 return rv;
298 }
299
300 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
301 PyObject* o2;
302 PyObject* o3;
303
304 if (!target) {
305 target = o;
306 } else if (target == Py_None) {
307 Py_DECREF(Py_None);
308 target = o;
309 } else {
310 if (!PyTuple_Check(target)) {
311 o2 = target;
312 target = PyTuple_New(1);
313 PyTuple_SetItem(target, 0, o2);
314 }
315 o3 = PyTuple_New(1);
316 PyTuple_SetItem(o3, 0, o);
317
318 o2 = target;
319 target = PySequence_Concat(o2, o3);
320 Py_DECREF(o2);
321 Py_DECREF(o3);
322 }
323 return target;
324 }
325
326 PyObject *wxPen_GetDashes(wxPen *self){
327 wxDash* dashes;
328 int count = self->GetDashes(&dashes);
329 wxPyBeginBlockThreads();
330 PyObject* retval = PyList_New(0);
331 for (int x=0; x<count; x++)
332 PyList_Append(retval, PyInt_FromLong(dashes[x]));
333 wxPyEndBlockThreads();
334 return retval;
335 }
336
337 wxPyPen::~wxPyPen()
338 {
339 if (m_dash)
340 delete [] m_dash;
341 }
342
343 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
344 {
345 if (m_dash)
346 delete [] m_dash;
347 m_dash = new wxDash[nb_dashes];
348 for (int i=0; i<nb_dashes; i++) {
349 m_dash[i] = dash[i];
350 }
351 wxPen::SetDashes(nb_dashes, m_dash);
352 }
353
354
355 #include <wx/image.h>
356
357 static char** ConvertListOfStrings(PyObject* listOfStrings) {
358 char** cArray = NULL;
359 int count;
360
361 if (!PyList_Check(listOfStrings)) {
362 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
363 return NULL;
364 }
365 count = PyList_Size(listOfStrings);
366 cArray = new char*[count];
367
368 for(int x=0; x<count; x++) {
369 // TODO: Need some validation and error checking here
370 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
371 }
372 return cArray;
373 }
374
375
376 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
377 char** cArray = NULL;
378 wxBitmap* bmp;
379
380 cArray = ConvertListOfStrings(listOfStrings);
381 if (! cArray)
382 return NULL;
383 bmp = new wxBitmap(cArray);
384 delete [] cArray;
385 return bmp;
386 }
387 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
388 char* buf;
389 int length;
390 PyString_AsStringAndSize(bits, &buf, &length);
391 return new wxBitmap(buf, width, height, depth);
392 }
393 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
394 wxMask *mask = new wxMask(*self, colour);
395 self->SetMask(mask);
396 }
397
398 #include <wx/iconbndl.h>
399
400 wxIcon *new_wxIcon(wxBitmap const &bmp){
401 wxIcon* icon = new wxIcon();
402 icon->CopyFromBitmap(bmp);
403 return icon;
404 }
405 wxIcon *new_wxIcon(PyObject *listOfStrings){
406 char** cArray = NULL;
407 wxIcon* icon;
408
409 cArray = ConvertListOfStrings(listOfStrings);
410 if (! cArray)
411 return NULL;
412 icon = new wxIcon(cArray);
413 delete [] cArray;
414 return icon;
415 }
416 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
417
418
419
420 return new wxIconLocation(*filename);
421
422 }
423 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
424
425
426
427 // do nothing
428
429 }
430 int wxIconLocation_GetIndex(wxIconLocation *self){
431
432
433
434 return -1;
435
436 }
437 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
438
439 wxCHECK_MSG(False, NULL,
440 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
441
442
443
444 }
445 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
446 char* bitsbuf;
447 char* maskbuf = NULL;
448 int length;
449 PyString_AsStringAndSize(bits, &bitsbuf, &length);
450 if (maskBits)
451 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
452 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
453 }
454
455
456 void wxRegionIterator_Next(wxRegionIterator *self){
457 (*self) ++;
458 }
459 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
460 return self->operator bool();
461 }
462
463 #include <wx/fontutil.h>
464 #include <wx/fontmap.h>
465 #include <wx/fontenum.h>
466
467 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
468 return self->ToString();
469 }
470
471 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
472 static wxNativeEncodingInfo info;
473 if ( wxGetNativeFontEncoding(encoding, &info) )
474 return &info;
475 else
476 return NULL;
477 }
478
479 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
480 wxFontEncoding alt_enc;
481 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
482 return PyInt_FromLong(alt_enc);
483 else {
484 Py_INCREF(Py_None);
485 return Py_None;
486 }
487 }
488 wxFont *new_wxFont(wxString const &info){
489 wxNativeFontInfo nfi;
490 nfi.FromString(info);
491 return new wxFont(nfi);
492 }
493 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
494 return wxFont::New(pointSize, family, flags, face, encoding);
495 }
496
497 class wxPyFontEnumerator : public wxFontEnumerator {
498 public:
499 wxPyFontEnumerator() {}
500 ~wxPyFontEnumerator() {}
501
502 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
503 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
504
505 PYPRIVATE;
506 };
507
508 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
509 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
510
511
512 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
513 wxArrayString* arr = self->GetEncodings();
514 return wxArrayString2PyList_helper(*arr);
515 }
516 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
517 wxArrayString* arr = self->GetFacenames();
518 return wxArrayString2PyList_helper(*arr);
519 }
520
521
522
523 #include "wx/wxPython/pydrawxxx.h"
524
525 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
526 wxColour col;
527 self->GetPixel(x, y, &col);
528 return col;
529 }
530 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
531 wxColour col;
532 self->GetPixel(pt, &col);
533 return col;
534 }
535 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
536 wxRect rv;
537 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
538 return rv;
539 }
540 wxRect wxDC_GetClippingRect(wxDC *self){
541 wxRect rect;
542 self->GetClippingBox(rect);
543 return rect;
544 }
545 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
546 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
547 }
548 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
549 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
550 }
551 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
552 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
553 }
554 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
555 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
556 }
557 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
558 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
559 }
560 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
561 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
562 }
563
564 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
565 *x1 = dc->MinX();
566 *y1 = dc->MinY();
567 *x2 = dc->MaxX();
568 *y2 = dc->MaxY();
569 }
570
571
572 #include <wx/dcps.h>
573
574
575 class wxMetaFile : public wxObject {
576 public:
577 wxMetaFile(const wxString&)
578 { PyErr_SetNone(PyExc_NotImplementedError); }
579 };
580
581 class wxMetaFileDC : public wxClientDC {
582 public:
583 wxMetaFileDC(const wxString&, int, int, const wxString&)
584 { PyErr_SetNone(PyExc_NotImplementedError); }
585 };
586
587
588
589 class wxPrinterDC : public wxClientDC {
590 public:
591 wxPrinterDC(const wxPrintData&)
592 { PyErr_SetNone(PyExc_NotImplementedError); }
593
594 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
595 // { PyErr_SetNone(PyExc_NotImplementedError); }
596 };
597
598
599
600 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
601 self->AddColour(name, wxColour(red, green, blue));
602 }
603
604 #include <wx/effects.h>
605
606 #ifdef __cplusplus
607 extern "C" {
608 #endif
609 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
610 PyObject *resultobj;
611 wxGDIObject *result;
612 char *kwnames[] = {
613 NULL
614 };
615
616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
617 {
618 PyThreadState* __tstate = wxPyBeginAllowThreads();
619 result = (wxGDIObject *)new wxGDIObject();
620
621 wxPyEndAllowThreads(__tstate);
622 if (PyErr_Occurred()) SWIG_fail;
623 }
624 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
625 return resultobj;
626 fail:
627 return NULL;
628 }
629
630
631 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
632 PyObject *resultobj;
633 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
634 PyObject * obj0 = 0 ;
635 char *kwnames[] = {
636 (char *) "self", NULL
637 };
638
639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
641 {
642 PyThreadState* __tstate = wxPyBeginAllowThreads();
643 delete arg1;
644
645 wxPyEndAllowThreads(__tstate);
646 if (PyErr_Occurred()) SWIG_fail;
647 }
648 Py_INCREF(Py_None); resultobj = Py_None;
649 return resultobj;
650 fail:
651 return NULL;
652 }
653
654
655 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
656 PyObject *resultobj;
657 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
658 bool result;
659 PyObject * obj0 = 0 ;
660 char *kwnames[] = {
661 (char *) "self", NULL
662 };
663
664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
666 {
667 PyThreadState* __tstate = wxPyBeginAllowThreads();
668 result = (bool)(arg1)->GetVisible();
669
670 wxPyEndAllowThreads(__tstate);
671 if (PyErr_Occurred()) SWIG_fail;
672 }
673 resultobj = PyInt_FromLong((long)result);
674 return resultobj;
675 fail:
676 return NULL;
677 }
678
679
680 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
681 PyObject *resultobj;
682 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
683 bool arg2 ;
684 PyObject * obj0 = 0 ;
685 PyObject * obj1 = 0 ;
686 char *kwnames[] = {
687 (char *) "self",(char *) "visible", NULL
688 };
689
690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
692 arg2 = PyInt_AsLong(obj1) ? true : false;
693 if (PyErr_Occurred()) SWIG_fail;
694 {
695 PyThreadState* __tstate = wxPyBeginAllowThreads();
696 (arg1)->SetVisible(arg2);
697
698 wxPyEndAllowThreads(__tstate);
699 if (PyErr_Occurred()) SWIG_fail;
700 }
701 Py_INCREF(Py_None); resultobj = Py_None;
702 return resultobj;
703 fail:
704 return NULL;
705 }
706
707
708 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
709 PyObject *resultobj;
710 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
711 bool result;
712 PyObject * obj0 = 0 ;
713 char *kwnames[] = {
714 (char *) "self", NULL
715 };
716
717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
719 {
720 PyThreadState* __tstate = wxPyBeginAllowThreads();
721 result = (bool)(arg1)->IsNull();
722
723 wxPyEndAllowThreads(__tstate);
724 if (PyErr_Occurred()) SWIG_fail;
725 }
726 resultobj = PyInt_FromLong((long)result);
727 return resultobj;
728 fail:
729 return NULL;
730 }
731
732
733 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
734 PyObject *obj;
735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
736 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
737 Py_INCREF(obj);
738 return Py_BuildValue((char *)"");
739 }
740 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
741 PyObject *resultobj;
742 unsigned char arg1 = (unsigned char) 0 ;
743 unsigned char arg2 = (unsigned char) 0 ;
744 unsigned char arg3 = (unsigned char) 0 ;
745 wxColour *result;
746 PyObject * obj0 = 0 ;
747 PyObject * obj1 = 0 ;
748 PyObject * obj2 = 0 ;
749 char *kwnames[] = {
750 (char *) "red",(char *) "green",(char *) "blue", NULL
751 };
752
753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
754 if (obj0) {
755 arg1 = (unsigned char) PyInt_AsLong(obj0);
756 if (PyErr_Occurred()) SWIG_fail;
757 }
758 if (obj1) {
759 arg2 = (unsigned char) PyInt_AsLong(obj1);
760 if (PyErr_Occurred()) SWIG_fail;
761 }
762 if (obj2) {
763 arg3 = (unsigned char) PyInt_AsLong(obj2);
764 if (PyErr_Occurred()) SWIG_fail;
765 }
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 result = (wxColour *)new wxColour(arg1,arg2,arg3);
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
774 return resultobj;
775 fail:
776 return NULL;
777 }
778
779
780 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject *resultobj;
782 wxColour *arg1 = (wxColour *) 0 ;
783 PyObject * obj0 = 0 ;
784 char *kwnames[] = {
785 (char *) "self", NULL
786 };
787
788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
790 {
791 PyThreadState* __tstate = wxPyBeginAllowThreads();
792 delete arg1;
793
794 wxPyEndAllowThreads(__tstate);
795 if (PyErr_Occurred()) SWIG_fail;
796 }
797 Py_INCREF(Py_None); resultobj = Py_None;
798 return resultobj;
799 fail:
800 return NULL;
801 }
802
803
804 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
805 PyObject *resultobj;
806 wxString *arg1 = 0 ;
807 wxColour *result;
808 bool temp1 = False ;
809 PyObject * obj0 = 0 ;
810 char *kwnames[] = {
811 (char *) "colorName", NULL
812 };
813
814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
815 {
816 arg1 = wxString_in_helper(obj0);
817 if (arg1 == NULL) SWIG_fail;
818 temp1 = True;
819 }
820 {
821 PyThreadState* __tstate = wxPyBeginAllowThreads();
822 result = (wxColour *)new wxColour((wxString const &)*arg1);
823
824 wxPyEndAllowThreads(__tstate);
825 if (PyErr_Occurred()) SWIG_fail;
826 }
827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
828 {
829 if (temp1)
830 delete arg1;
831 }
832 return resultobj;
833 fail:
834 {
835 if (temp1)
836 delete arg1;
837 }
838 return NULL;
839 }
840
841
842 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject *resultobj;
844 unsigned long arg1 ;
845 wxColour *result;
846 PyObject * obj0 = 0 ;
847 char *kwnames[] = {
848 (char *) "colRGB", NULL
849 };
850
851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
852 arg1 = (unsigned long) PyInt_AsLong(obj0);
853 if (PyErr_Occurred()) SWIG_fail;
854 {
855 PyThreadState* __tstate = wxPyBeginAllowThreads();
856 result = (wxColour *)new wxColour(arg1);
857
858 wxPyEndAllowThreads(__tstate);
859 if (PyErr_Occurred()) SWIG_fail;
860 }
861 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
862 return resultobj;
863 fail:
864 return NULL;
865 }
866
867
868 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
869 PyObject *resultobj;
870 wxColour *arg1 = (wxColour *) 0 ;
871 unsigned char result;
872 PyObject * obj0 = 0 ;
873 char *kwnames[] = {
874 (char *) "self", NULL
875 };
876
877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
879 {
880 PyThreadState* __tstate = wxPyBeginAllowThreads();
881 result = (unsigned char)(arg1)->Red();
882
883 wxPyEndAllowThreads(__tstate);
884 if (PyErr_Occurred()) SWIG_fail;
885 }
886 resultobj = PyInt_FromLong((long)result);
887 return resultobj;
888 fail:
889 return NULL;
890 }
891
892
893 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
894 PyObject *resultobj;
895 wxColour *arg1 = (wxColour *) 0 ;
896 unsigned char result;
897 PyObject * obj0 = 0 ;
898 char *kwnames[] = {
899 (char *) "self", NULL
900 };
901
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
904 {
905 PyThreadState* __tstate = wxPyBeginAllowThreads();
906 result = (unsigned char)(arg1)->Green();
907
908 wxPyEndAllowThreads(__tstate);
909 if (PyErr_Occurred()) SWIG_fail;
910 }
911 resultobj = PyInt_FromLong((long)result);
912 return resultobj;
913 fail:
914 return NULL;
915 }
916
917
918 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject *resultobj;
920 wxColour *arg1 = (wxColour *) 0 ;
921 unsigned char result;
922 PyObject * obj0 = 0 ;
923 char *kwnames[] = {
924 (char *) "self", NULL
925 };
926
927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
929 {
930 PyThreadState* __tstate = wxPyBeginAllowThreads();
931 result = (unsigned char)(arg1)->Blue();
932
933 wxPyEndAllowThreads(__tstate);
934 if (PyErr_Occurred()) SWIG_fail;
935 }
936 resultobj = PyInt_FromLong((long)result);
937 return resultobj;
938 fail:
939 return NULL;
940 }
941
942
943 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
944 PyObject *resultobj;
945 wxColour *arg1 = (wxColour *) 0 ;
946 bool result;
947 PyObject * obj0 = 0 ;
948 char *kwnames[] = {
949 (char *) "self", NULL
950 };
951
952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
954 {
955 PyThreadState* __tstate = wxPyBeginAllowThreads();
956 result = (bool)(arg1)->Ok();
957
958 wxPyEndAllowThreads(__tstate);
959 if (PyErr_Occurred()) SWIG_fail;
960 }
961 resultobj = PyInt_FromLong((long)result);
962 return resultobj;
963 fail:
964 return NULL;
965 }
966
967
968 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
969 PyObject *resultobj;
970 wxColour *arg1 = (wxColour *) 0 ;
971 unsigned char arg2 ;
972 unsigned char arg3 ;
973 unsigned char arg4 ;
974 PyObject * obj0 = 0 ;
975 PyObject * obj1 = 0 ;
976 PyObject * obj2 = 0 ;
977 PyObject * obj3 = 0 ;
978 char *kwnames[] = {
979 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
980 };
981
982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
984 arg2 = (unsigned char) PyInt_AsLong(obj1);
985 if (PyErr_Occurred()) SWIG_fail;
986 arg3 = (unsigned char) PyInt_AsLong(obj2);
987 if (PyErr_Occurred()) SWIG_fail;
988 arg4 = (unsigned char) PyInt_AsLong(obj3);
989 if (PyErr_Occurred()) SWIG_fail;
990 {
991 PyThreadState* __tstate = wxPyBeginAllowThreads();
992 (arg1)->Set(arg2,arg3,arg4);
993
994 wxPyEndAllowThreads(__tstate);
995 if (PyErr_Occurred()) SWIG_fail;
996 }
997 Py_INCREF(Py_None); resultobj = Py_None;
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1005 PyObject *resultobj;
1006 wxColour *arg1 = (wxColour *) 0 ;
1007 unsigned long arg2 ;
1008 PyObject * obj0 = 0 ;
1009 PyObject * obj1 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self",(char *) "colRGB", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1016 arg2 = (unsigned long) PyInt_AsLong(obj1);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 {
1019 PyThreadState* __tstate = wxPyBeginAllowThreads();
1020 (arg1)->Set(arg2);
1021
1022 wxPyEndAllowThreads(__tstate);
1023 if (PyErr_Occurred()) SWIG_fail;
1024 }
1025 Py_INCREF(Py_None); resultobj = Py_None;
1026 return resultobj;
1027 fail:
1028 return NULL;
1029 }
1030
1031
1032 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1033 PyObject *resultobj;
1034 wxColour *arg1 = (wxColour *) 0 ;
1035 wxColour *arg2 = 0 ;
1036 bool result;
1037 wxColour temp2 ;
1038 PyObject * obj0 = 0 ;
1039 PyObject * obj1 = 0 ;
1040 char *kwnames[] = {
1041 (char *) "self",(char *) "colour", NULL
1042 };
1043
1044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1046 {
1047 arg2 = &temp2;
1048 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1049 }
1050 {
1051 PyThreadState* __tstate = wxPyBeginAllowThreads();
1052 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1053
1054 wxPyEndAllowThreads(__tstate);
1055 if (PyErr_Occurred()) SWIG_fail;
1056 }
1057 resultobj = PyInt_FromLong((long)result);
1058 return resultobj;
1059 fail:
1060 return NULL;
1061 }
1062
1063
1064 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1065 PyObject *resultobj;
1066 wxColour *arg1 = (wxColour *) 0 ;
1067 wxColour *arg2 = 0 ;
1068 bool result;
1069 wxColour temp2 ;
1070 PyObject * obj0 = 0 ;
1071 PyObject * obj1 = 0 ;
1072 char *kwnames[] = {
1073 (char *) "self",(char *) "colour", NULL
1074 };
1075
1076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1078 {
1079 arg2 = &temp2;
1080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1081 }
1082 {
1083 PyThreadState* __tstate = wxPyBeginAllowThreads();
1084 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1085
1086 wxPyEndAllowThreads(__tstate);
1087 if (PyErr_Occurred()) SWIG_fail;
1088 }
1089 resultobj = PyInt_FromLong((long)result);
1090 return resultobj;
1091 fail:
1092 return NULL;
1093 }
1094
1095
1096 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1097 PyObject *resultobj;
1098 wxColour *arg1 = (wxColour *) 0 ;
1099 wxString *arg2 = 0 ;
1100 bool temp2 = False ;
1101 PyObject * obj0 = 0 ;
1102 PyObject * obj1 = 0 ;
1103 char *kwnames[] = {
1104 (char *) "self",(char *) "colourName", NULL
1105 };
1106
1107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1109 {
1110 arg2 = wxString_in_helper(obj1);
1111 if (arg2 == NULL) SWIG_fail;
1112 temp2 = True;
1113 }
1114 {
1115 PyThreadState* __tstate = wxPyBeginAllowThreads();
1116 (arg1)->InitFromName((wxString const &)*arg2);
1117
1118 wxPyEndAllowThreads(__tstate);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 }
1121 Py_INCREF(Py_None); resultobj = Py_None;
1122 {
1123 if (temp2)
1124 delete arg2;
1125 }
1126 return resultobj;
1127 fail:
1128 {
1129 if (temp2)
1130 delete arg2;
1131 }
1132 return NULL;
1133 }
1134
1135
1136 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1137 PyObject *resultobj;
1138 wxColour *arg1 = (wxColour *) 0 ;
1139 PyObject *result;
1140 PyObject * obj0 = 0 ;
1141 char *kwnames[] = {
1142 (char *) "self", NULL
1143 };
1144
1145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1147 {
1148 PyThreadState* __tstate = wxPyBeginAllowThreads();
1149 result = (PyObject *)wxColour_Get(arg1);
1150
1151 wxPyEndAllowThreads(__tstate);
1152 if (PyErr_Occurred()) SWIG_fail;
1153 }
1154 resultobj = result;
1155 return resultobj;
1156 fail:
1157 return NULL;
1158 }
1159
1160
1161 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1162 PyObject *obj;
1163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1164 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1165 Py_INCREF(obj);
1166 return Py_BuildValue((char *)"");
1167 }
1168 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1169 PyObject *resultobj;
1170 int arg1 ;
1171 unsigned char *arg2 = (unsigned char *) 0 ;
1172 unsigned char *arg3 = (unsigned char *) 0 ;
1173 unsigned char *arg4 = (unsigned char *) 0 ;
1174 wxPalette *result;
1175 PyObject * obj1 = 0 ;
1176 PyObject * obj2 = 0 ;
1177 PyObject * obj3 = 0 ;
1178 char *kwnames[] = {
1179 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1180 };
1181
1182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1183 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1184 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1185 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1186 {
1187 PyThreadState* __tstate = wxPyBeginAllowThreads();
1188 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1189
1190 wxPyEndAllowThreads(__tstate);
1191 if (PyErr_Occurred()) SWIG_fail;
1192 }
1193 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1194 return resultobj;
1195 fail:
1196 return NULL;
1197 }
1198
1199
1200 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1201 PyObject *resultobj;
1202 wxPalette *arg1 = (wxPalette *) 0 ;
1203 PyObject * obj0 = 0 ;
1204 char *kwnames[] = {
1205 (char *) "self", NULL
1206 };
1207
1208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1210 {
1211 PyThreadState* __tstate = wxPyBeginAllowThreads();
1212 delete arg1;
1213
1214 wxPyEndAllowThreads(__tstate);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 Py_INCREF(Py_None); resultobj = Py_None;
1218 return resultobj;
1219 fail:
1220 return NULL;
1221 }
1222
1223
1224 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1225 PyObject *resultobj;
1226 wxPalette *arg1 = (wxPalette *) 0 ;
1227 byte arg2 ;
1228 byte arg3 ;
1229 byte arg4 ;
1230 int result;
1231 PyObject * obj0 = 0 ;
1232 PyObject * obj1 = 0 ;
1233 PyObject * obj2 = 0 ;
1234 PyObject * obj3 = 0 ;
1235 char *kwnames[] = {
1236 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1237 };
1238
1239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1241 arg2 = (byte) PyInt_AsLong(obj1);
1242 if (PyErr_Occurred()) SWIG_fail;
1243 arg3 = (byte) PyInt_AsLong(obj2);
1244 if (PyErr_Occurred()) SWIG_fail;
1245 arg4 = (byte) PyInt_AsLong(obj3);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 resultobj = PyInt_FromLong((long)result);
1255 return resultobj;
1256 fail:
1257 return NULL;
1258 }
1259
1260
1261 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1262 PyObject *resultobj;
1263 wxPalette *arg1 = (wxPalette *) 0 ;
1264 int arg2 ;
1265 byte *arg3 = (byte *) 0 ;
1266 byte *arg4 = (byte *) 0 ;
1267 byte *arg5 = (byte *) 0 ;
1268 bool result;
1269 byte temp3 ;
1270 byte temp4 ;
1271 byte temp5 ;
1272 PyObject * obj0 = 0 ;
1273 char *kwnames[] = {
1274 (char *) "self",(char *) "pixel", NULL
1275 };
1276
1277 arg3 = &temp3;
1278 arg4 = &temp4;
1279 arg5 = &temp5;
1280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1282 {
1283 PyThreadState* __tstate = wxPyBeginAllowThreads();
1284 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1285
1286 wxPyEndAllowThreads(__tstate);
1287 if (PyErr_Occurred()) SWIG_fail;
1288 }
1289 resultobj = PyInt_FromLong((long)result);
1290 {
1291 PyObject *o = PyInt_FromLong((long) (*arg3));
1292 resultobj = t_output_helper(resultobj,o);
1293 }
1294 {
1295 PyObject *o = PyInt_FromLong((long) (*arg4));
1296 resultobj = t_output_helper(resultobj,o);
1297 }
1298 {
1299 PyObject *o = PyInt_FromLong((long) (*arg5));
1300 resultobj = t_output_helper(resultobj,o);
1301 }
1302 return resultobj;
1303 fail:
1304 return NULL;
1305 }
1306
1307
1308 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1309 PyObject *resultobj;
1310 wxPalette *arg1 = (wxPalette *) 0 ;
1311 bool result;
1312 PyObject * obj0 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1319 {
1320 PyThreadState* __tstate = wxPyBeginAllowThreads();
1321 result = (bool)(arg1)->Ok();
1322
1323 wxPyEndAllowThreads(__tstate);
1324 if (PyErr_Occurred()) SWIG_fail;
1325 }
1326 resultobj = PyInt_FromLong((long)result);
1327 return resultobj;
1328 fail:
1329 return NULL;
1330 }
1331
1332
1333 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1334 PyObject *obj;
1335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1336 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1337 Py_INCREF(obj);
1338 return Py_BuildValue((char *)"");
1339 }
1340 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1341 PyObject *resultobj;
1342 wxColour *arg1 = 0 ;
1343 int arg2 = (int) 1 ;
1344 int arg3 = (int) wxSOLID ;
1345 wxPen *result;
1346 wxColour temp1 ;
1347 PyObject * obj0 = 0 ;
1348 char *kwnames[] = {
1349 (char *) "colour",(char *) "width",(char *) "style", NULL
1350 };
1351
1352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1353 {
1354 arg1 = &temp1;
1355 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1356 }
1357 {
1358 PyThreadState* __tstate = wxPyBeginAllowThreads();
1359 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1360
1361 wxPyEndAllowThreads(__tstate);
1362 if (PyErr_Occurred()) SWIG_fail;
1363 }
1364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1365 return resultobj;
1366 fail:
1367 return NULL;
1368 }
1369
1370
1371 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1372 PyObject *resultobj;
1373 wxPen *arg1 = (wxPen *) 0 ;
1374 PyObject * obj0 = 0 ;
1375 char *kwnames[] = {
1376 (char *) "self", NULL
1377 };
1378
1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1381 {
1382 PyThreadState* __tstate = wxPyBeginAllowThreads();
1383 delete arg1;
1384
1385 wxPyEndAllowThreads(__tstate);
1386 if (PyErr_Occurred()) SWIG_fail;
1387 }
1388 Py_INCREF(Py_None); resultobj = Py_None;
1389 return resultobj;
1390 fail:
1391 return NULL;
1392 }
1393
1394
1395 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1396 PyObject *resultobj;
1397 wxPen *arg1 = (wxPen *) 0 ;
1398 int result;
1399 PyObject * obj0 = 0 ;
1400 char *kwnames[] = {
1401 (char *) "self", NULL
1402 };
1403
1404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1406 {
1407 PyThreadState* __tstate = wxPyBeginAllowThreads();
1408 result = (int)(arg1)->GetCap();
1409
1410 wxPyEndAllowThreads(__tstate);
1411 if (PyErr_Occurred()) SWIG_fail;
1412 }
1413 resultobj = PyInt_FromLong((long)result);
1414 return resultobj;
1415 fail:
1416 return NULL;
1417 }
1418
1419
1420 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1421 PyObject *resultobj;
1422 wxPen *arg1 = (wxPen *) 0 ;
1423 wxColour result;
1424 PyObject * obj0 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431 {
1432 PyThreadState* __tstate = wxPyBeginAllowThreads();
1433 result = (arg1)->GetColour();
1434
1435 wxPyEndAllowThreads(__tstate);
1436 if (PyErr_Occurred()) SWIG_fail;
1437 }
1438 {
1439 wxColour * resultptr;
1440 resultptr = new wxColour((wxColour &) result);
1441 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1442 }
1443 return resultobj;
1444 fail:
1445 return NULL;
1446 }
1447
1448
1449 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1450 PyObject *resultobj;
1451 wxPen *arg1 = (wxPen *) 0 ;
1452 int result;
1453 PyObject * obj0 = 0 ;
1454 char *kwnames[] = {
1455 (char *) "self", NULL
1456 };
1457
1458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 result = (int)(arg1)->GetJoin();
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 }
1467 resultobj = PyInt_FromLong((long)result);
1468 return resultobj;
1469 fail:
1470 return NULL;
1471 }
1472
1473
1474 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1475 PyObject *resultobj;
1476 wxPen *arg1 = (wxPen *) 0 ;
1477 int result;
1478 PyObject * obj0 = 0 ;
1479 char *kwnames[] = {
1480 (char *) "self", NULL
1481 };
1482
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1485 {
1486 PyThreadState* __tstate = wxPyBeginAllowThreads();
1487 result = (int)(arg1)->GetStyle();
1488
1489 wxPyEndAllowThreads(__tstate);
1490 if (PyErr_Occurred()) SWIG_fail;
1491 }
1492 resultobj = PyInt_FromLong((long)result);
1493 return resultobj;
1494 fail:
1495 return NULL;
1496 }
1497
1498
1499 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 wxPen *arg1 = (wxPen *) 0 ;
1502 int result;
1503 PyObject * obj0 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "self", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1510 {
1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
1512 result = (int)(arg1)->GetWidth();
1513
1514 wxPyEndAllowThreads(__tstate);
1515 if (PyErr_Occurred()) SWIG_fail;
1516 }
1517 resultobj = PyInt_FromLong((long)result);
1518 return resultobj;
1519 fail:
1520 return NULL;
1521 }
1522
1523
1524 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1525 PyObject *resultobj;
1526 wxPen *arg1 = (wxPen *) 0 ;
1527 bool result;
1528 PyObject * obj0 = 0 ;
1529 char *kwnames[] = {
1530 (char *) "self", NULL
1531 };
1532
1533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1535 {
1536 PyThreadState* __tstate = wxPyBeginAllowThreads();
1537 result = (bool)(arg1)->Ok();
1538
1539 wxPyEndAllowThreads(__tstate);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 }
1542 resultobj = PyInt_FromLong((long)result);
1543 return resultobj;
1544 fail:
1545 return NULL;
1546 }
1547
1548
1549 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1550 PyObject *resultobj;
1551 wxPen *arg1 = (wxPen *) 0 ;
1552 int arg2 ;
1553 PyObject * obj0 = 0 ;
1554 char *kwnames[] = {
1555 (char *) "self",(char *) "cap_style", NULL
1556 };
1557
1558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1560 {
1561 PyThreadState* __tstate = wxPyBeginAllowThreads();
1562 (arg1)->SetCap(arg2);
1563
1564 wxPyEndAllowThreads(__tstate);
1565 if (PyErr_Occurred()) SWIG_fail;
1566 }
1567 Py_INCREF(Py_None); resultobj = Py_None;
1568 return resultobj;
1569 fail:
1570 return NULL;
1571 }
1572
1573
1574 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject *resultobj;
1576 wxPen *arg1 = (wxPen *) 0 ;
1577 wxColour *arg2 = 0 ;
1578 wxColour temp2 ;
1579 PyObject * obj0 = 0 ;
1580 PyObject * obj1 = 0 ;
1581 char *kwnames[] = {
1582 (char *) "self",(char *) "colour", NULL
1583 };
1584
1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1587 {
1588 arg2 = &temp2;
1589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1590 }
1591 {
1592 PyThreadState* __tstate = wxPyBeginAllowThreads();
1593 (arg1)->SetColour(*arg2);
1594
1595 wxPyEndAllowThreads(__tstate);
1596 if (PyErr_Occurred()) SWIG_fail;
1597 }
1598 Py_INCREF(Py_None); resultobj = Py_None;
1599 return resultobj;
1600 fail:
1601 return NULL;
1602 }
1603
1604
1605 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1606 PyObject *resultobj;
1607 wxPen *arg1 = (wxPen *) 0 ;
1608 int arg2 ;
1609 PyObject * obj0 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "self",(char *) "join_style", NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1616 {
1617 PyThreadState* __tstate = wxPyBeginAllowThreads();
1618 (arg1)->SetJoin(arg2);
1619
1620 wxPyEndAllowThreads(__tstate);
1621 if (PyErr_Occurred()) SWIG_fail;
1622 }
1623 Py_INCREF(Py_None); resultobj = Py_None;
1624 return resultobj;
1625 fail:
1626 return NULL;
1627 }
1628
1629
1630 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1631 PyObject *resultobj;
1632 wxPen *arg1 = (wxPen *) 0 ;
1633 int arg2 ;
1634 PyObject * obj0 = 0 ;
1635 char *kwnames[] = {
1636 (char *) "self",(char *) "style", NULL
1637 };
1638
1639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1641 {
1642 PyThreadState* __tstate = wxPyBeginAllowThreads();
1643 (arg1)->SetStyle(arg2);
1644
1645 wxPyEndAllowThreads(__tstate);
1646 if (PyErr_Occurred()) SWIG_fail;
1647 }
1648 Py_INCREF(Py_None); resultobj = Py_None;
1649 return resultobj;
1650 fail:
1651 return NULL;
1652 }
1653
1654
1655 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1656 PyObject *resultobj;
1657 wxPen *arg1 = (wxPen *) 0 ;
1658 int arg2 ;
1659 PyObject * obj0 = 0 ;
1660 char *kwnames[] = {
1661 (char *) "self",(char *) "width", NULL
1662 };
1663
1664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1666 {
1667 PyThreadState* __tstate = wxPyBeginAllowThreads();
1668 (arg1)->SetWidth(arg2);
1669
1670 wxPyEndAllowThreads(__tstate);
1671 if (PyErr_Occurred()) SWIG_fail;
1672 }
1673 Py_INCREF(Py_None); resultobj = Py_None;
1674 return resultobj;
1675 fail:
1676 return NULL;
1677 }
1678
1679
1680 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1681 PyObject *resultobj;
1682 wxPen *arg1 = (wxPen *) 0 ;
1683 int arg2 ;
1684 wxDash *arg3 = (wxDash *) 0 ;
1685 PyObject * obj0 = 0 ;
1686 PyObject * obj1 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "self",(char *) "dashes", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1693 {
1694 arg2 = PyList_Size(obj1);
1695 arg3 = (wxDash*)byte_LIST_helper(obj1);
1696 if (arg3 == NULL) SWIG_fail;
1697 }
1698 {
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 (arg1)->SetDashes(arg2,arg3);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 Py_INCREF(Py_None); resultobj = Py_None;
1706 {
1707 if (arg3) delete [] arg3;
1708 }
1709 return resultobj;
1710 fail:
1711 {
1712 if (arg3) delete [] arg3;
1713 }
1714 return NULL;
1715 }
1716
1717
1718 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject *resultobj;
1720 wxPen *arg1 = (wxPen *) 0 ;
1721 PyObject *result;
1722 PyObject * obj0 = 0 ;
1723 char *kwnames[] = {
1724 (char *) "self", NULL
1725 };
1726
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (PyObject *)wxPen_GetDashes(arg1);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 resultobj = result;
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxPen *arg1 = (wxPen *) 0 ;
1746 int result;
1747 PyObject * obj0 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 result = (int)((wxPen const *)arg1)->GetDashCount();
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 resultobj = PyInt_FromLong((long)result);
1762 return resultobj;
1763 fail:
1764 return NULL;
1765 }
1766
1767
1768 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1769 PyObject *obj;
1770 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1771 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1772 Py_INCREF(obj);
1773 return Py_BuildValue((char *)"");
1774 }
1775 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxColour *arg1 = 0 ;
1778 int arg2 = (int) 1 ;
1779 int arg3 = (int) wxSOLID ;
1780 wxPyPen *result;
1781 wxColour temp1 ;
1782 PyObject * obj0 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "colour",(char *) "width",(char *) "style", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1788 {
1789 arg1 = &temp1;
1790 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1791 }
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1800 return resultobj;
1801 fail:
1802 return NULL;
1803 }
1804
1805
1806 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 wxPyPen *arg1 = (wxPyPen *) 0 ;
1809 PyObject * obj0 = 0 ;
1810 char *kwnames[] = {
1811 (char *) "self", NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 delete arg1;
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 Py_INCREF(Py_None); resultobj = Py_None;
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxPyPen *arg1 = (wxPyPen *) 0 ;
1833 int arg2 ;
1834 wxDash *arg3 = (wxDash *) 0 ;
1835 PyObject * obj0 = 0 ;
1836 PyObject * obj1 = 0 ;
1837 char *kwnames[] = {
1838 (char *) "self",(char *) "dashes", NULL
1839 };
1840
1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1843 {
1844 arg2 = PyList_Size(obj1);
1845 arg3 = (wxDash*)byte_LIST_helper(obj1);
1846 if (arg3 == NULL) SWIG_fail;
1847 }
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 (arg1)->SetDashes(arg2,arg3);
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 Py_INCREF(Py_None); resultobj = Py_None;
1856 {
1857 if (arg3) delete [] arg3;
1858 }
1859 return resultobj;
1860 fail:
1861 {
1862 if (arg3) delete [] arg3;
1863 }
1864 return NULL;
1865 }
1866
1867
1868 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1869 PyObject *obj;
1870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1871 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1872 Py_INCREF(obj);
1873 return Py_BuildValue((char *)"");
1874 }
1875 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1876 PyObject *resultobj;
1877 wxColour *arg1 = 0 ;
1878 int arg2 = (int) wxSOLID ;
1879 wxBrush *result;
1880 wxColour temp1 ;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "colour",(char *) "style", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1887 {
1888 arg1 = &temp1;
1889 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1899 return resultobj;
1900 fail:
1901 return NULL;
1902 }
1903
1904
1905 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1906 PyObject *resultobj;
1907 wxBrush *arg1 = (wxBrush *) 0 ;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 delete arg1;
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 Py_INCREF(Py_None); resultobj = Py_None;
1923 return resultobj;
1924 fail:
1925 return NULL;
1926 }
1927
1928
1929 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 wxBrush *arg1 = (wxBrush *) 0 ;
1932 wxColour *arg2 = 0 ;
1933 wxColour temp2 ;
1934 PyObject * obj0 = 0 ;
1935 PyObject * obj1 = 0 ;
1936 char *kwnames[] = {
1937 (char *) "self",(char *) "col", NULL
1938 };
1939
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1942 {
1943 arg2 = &temp2;
1944 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1945 }
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 (arg1)->SetColour((wxColour const &)*arg2);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
1953 Py_INCREF(Py_None); resultobj = Py_None;
1954 return resultobj;
1955 fail:
1956 return NULL;
1957 }
1958
1959
1960 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxBrush *arg1 = (wxBrush *) 0 ;
1963 int arg2 ;
1964 PyObject * obj0 = 0 ;
1965 char *kwnames[] = {
1966 (char *) "self",(char *) "style", NULL
1967 };
1968
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 (arg1)->SetStyle(arg2);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 Py_INCREF(Py_None); resultobj = Py_None;
1979 return resultobj;
1980 fail:
1981 return NULL;
1982 }
1983
1984
1985 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxBrush *arg1 = (wxBrush *) 0 ;
1988 wxBitmap *arg2 = 0 ;
1989 PyObject * obj0 = 0 ;
1990 PyObject * obj1 = 0 ;
1991 char *kwnames[] = {
1992 (char *) "self",(char *) "stipple", NULL
1993 };
1994
1995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1997 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1998 if (arg2 == NULL) {
1999 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2000 }
2001 {
2002 PyThreadState* __tstate = wxPyBeginAllowThreads();
2003 (arg1)->SetStipple((wxBitmap const &)*arg2);
2004
2005 wxPyEndAllowThreads(__tstate);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 }
2008 Py_INCREF(Py_None); resultobj = Py_None;
2009 return resultobj;
2010 fail:
2011 return NULL;
2012 }
2013
2014
2015 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2016 PyObject *resultobj;
2017 wxBrush *arg1 = (wxBrush *) 0 ;
2018 wxColour result;
2019 PyObject * obj0 = 0 ;
2020 char *kwnames[] = {
2021 (char *) "self", NULL
2022 };
2023
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2026 {
2027 PyThreadState* __tstate = wxPyBeginAllowThreads();
2028 result = ((wxBrush const *)arg1)->GetColour();
2029
2030 wxPyEndAllowThreads(__tstate);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 }
2033 {
2034 wxColour * resultptr;
2035 resultptr = new wxColour((wxColour &) result);
2036 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2037 }
2038 return resultobj;
2039 fail:
2040 return NULL;
2041 }
2042
2043
2044 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxBrush *arg1 = (wxBrush *) 0 ;
2047 int result;
2048 PyObject * obj0 = 0 ;
2049 char *kwnames[] = {
2050 (char *) "self", NULL
2051 };
2052
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 result = (int)((wxBrush const *)arg1)->GetStyle();
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 resultobj = PyInt_FromLong((long)result);
2063 return resultobj;
2064 fail:
2065 return NULL;
2066 }
2067
2068
2069 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject *resultobj;
2071 wxBrush *arg1 = (wxBrush *) 0 ;
2072 wxBitmap *result;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxBrush *arg1 = (wxBrush *) 0 ;
2097 bool result;
2098 PyObject * obj0 = 0 ;
2099 char *kwnames[] = {
2100 (char *) "self", NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2105 {
2106 PyThreadState* __tstate = wxPyBeginAllowThreads();
2107 result = (bool)(arg1)->Ok();
2108
2109 wxPyEndAllowThreads(__tstate);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 resultobj = PyInt_FromLong((long)result);
2113 return resultobj;
2114 fail:
2115 return NULL;
2116 }
2117
2118
2119 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2120 PyObject *obj;
2121 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2122 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2123 Py_INCREF(obj);
2124 return Py_BuildValue((char *)"");
2125 }
2126 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject *resultobj;
2128 wxString *arg1 = 0 ;
2129 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2130 wxBitmap *result;
2131 bool temp1 = False ;
2132 PyObject * obj0 = 0 ;
2133 char *kwnames[] = {
2134 (char *) "name",(char *) "type", NULL
2135 };
2136
2137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2138 {
2139 arg1 = wxString_in_helper(obj0);
2140 if (arg1 == NULL) SWIG_fail;
2141 temp1 = True;
2142 }
2143 {
2144 PyThreadState* __tstate = wxPyBeginAllowThreads();
2145 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2146
2147 wxPyEndAllowThreads(__tstate);
2148 if (PyErr_Occurred()) SWIG_fail;
2149 }
2150 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2151 {
2152 if (temp1)
2153 delete arg1;
2154 }
2155 return resultobj;
2156 fail:
2157 {
2158 if (temp1)
2159 delete arg1;
2160 }
2161 return NULL;
2162 }
2163
2164
2165 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject *resultobj;
2167 wxBitmap *arg1 = (wxBitmap *) 0 ;
2168 PyObject * obj0 = 0 ;
2169 char *kwnames[] = {
2170 (char *) "self", NULL
2171 };
2172
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 delete arg1;
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 Py_INCREF(Py_None); resultobj = Py_None;
2183 return resultobj;
2184 fail:
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 int arg1 ;
2192 int arg2 ;
2193 int arg3 = (int) -1 ;
2194 wxBitmap *result;
2195 char *kwnames[] = {
2196 (char *) "width",(char *) "height",(char *) "depth", NULL
2197 };
2198
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2200 {
2201 PyThreadState* __tstate = wxPyBeginAllowThreads();
2202 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2203
2204 wxPyEndAllowThreads(__tstate);
2205 if (PyErr_Occurred()) SWIG_fail;
2206 }
2207 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2208 return resultobj;
2209 fail:
2210 return NULL;
2211 }
2212
2213
2214 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2215 PyObject *resultobj;
2216 wxIcon *arg1 = 0 ;
2217 wxBitmap *result;
2218 PyObject * obj0 = 0 ;
2219 char *kwnames[] = {
2220 (char *) "icon", NULL
2221 };
2222
2223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2225 if (arg1 == NULL) {
2226 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2227 }
2228 {
2229 PyThreadState* __tstate = wxPyBeginAllowThreads();
2230 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2231
2232 wxPyEndAllowThreads(__tstate);
2233 if (PyErr_Occurred()) SWIG_fail;
2234 }
2235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2236 return resultobj;
2237 fail:
2238 return NULL;
2239 }
2240
2241
2242 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2243 PyObject *resultobj;
2244 wxImage *arg1 = 0 ;
2245 int arg2 = (int) -1 ;
2246 wxBitmap *result;
2247 PyObject * obj0 = 0 ;
2248 char *kwnames[] = {
2249 (char *) "image",(char *) "depth", NULL
2250 };
2251
2252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2254 if (arg1 == NULL) {
2255 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2256 }
2257 {
2258 PyThreadState* __tstate = wxPyBeginAllowThreads();
2259 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2260
2261 wxPyEndAllowThreads(__tstate);
2262 if (PyErr_Occurred()) SWIG_fail;
2263 }
2264 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2265 return resultobj;
2266 fail:
2267 return NULL;
2268 }
2269
2270
2271 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 PyObject *arg1 = (PyObject *) 0 ;
2274 wxBitmap *result;
2275 PyObject * obj0 = 0 ;
2276 char *kwnames[] = {
2277 (char *) "listOfStrings", NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2281 arg1 = obj0;
2282 {
2283 PyThreadState* __tstate = wxPyBeginAllowThreads();
2284 result = (wxBitmap *)new_wxBitmap(arg1);
2285
2286 wxPyEndAllowThreads(__tstate);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2290 return resultobj;
2291 fail:
2292 return NULL;
2293 }
2294
2295
2296 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2297 PyObject *resultobj;
2298 PyObject *arg1 = (PyObject *) 0 ;
2299 int arg2 ;
2300 int arg3 ;
2301 int arg4 = (int) 1 ;
2302 wxBitmap *result;
2303 PyObject * obj0 = 0 ;
2304 char *kwnames[] = {
2305 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2309 arg1 = obj0;
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2318 return resultobj;
2319 fail:
2320 return NULL;
2321 }
2322
2323
2324 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2325 PyObject *resultobj;
2326 wxBitmap *arg1 = (wxBitmap *) 0 ;
2327 bool result;
2328 PyObject * obj0 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "self", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 result = (bool)(arg1)->Ok();
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) SWIG_fail;
2341 }
2342 resultobj = PyInt_FromLong((long)result);
2343 return resultobj;
2344 fail:
2345 return NULL;
2346 }
2347
2348
2349 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2350 PyObject *resultobj;
2351 wxBitmap *arg1 = (wxBitmap *) 0 ;
2352 int result;
2353 PyObject * obj0 = 0 ;
2354 char *kwnames[] = {
2355 (char *) "self", NULL
2356 };
2357
2358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2360 {
2361 PyThreadState* __tstate = wxPyBeginAllowThreads();
2362 result = (int)(arg1)->GetWidth();
2363
2364 wxPyEndAllowThreads(__tstate);
2365 if (PyErr_Occurred()) SWIG_fail;
2366 }
2367 resultobj = PyInt_FromLong((long)result);
2368 return resultobj;
2369 fail:
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2375 PyObject *resultobj;
2376 wxBitmap *arg1 = (wxBitmap *) 0 ;
2377 int result;
2378 PyObject * obj0 = 0 ;
2379 char *kwnames[] = {
2380 (char *) "self", NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 result = (int)(arg1)->GetHeight();
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) SWIG_fail;
2391 }
2392 resultobj = PyInt_FromLong((long)result);
2393 return resultobj;
2394 fail:
2395 return NULL;
2396 }
2397
2398
2399 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject *resultobj;
2401 wxBitmap *arg1 = (wxBitmap *) 0 ;
2402 int result;
2403 PyObject * obj0 = 0 ;
2404 char *kwnames[] = {
2405 (char *) "self", NULL
2406 };
2407
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 result = (int)(arg1)->GetDepth();
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 resultobj = PyInt_FromLong((long)result);
2418 return resultobj;
2419 fail:
2420 return NULL;
2421 }
2422
2423
2424 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 wxBitmap *arg1 = (wxBitmap *) 0 ;
2427 SwigValueWrapper< wxImage > result;
2428 PyObject * obj0 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "self", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = ((wxBitmap const *)arg1)->ConvertToImage();
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 {
2443 wxImage * resultptr;
2444 resultptr = new wxImage((wxImage &) result);
2445 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2446 }
2447 return resultobj;
2448 fail:
2449 return NULL;
2450 }
2451
2452
2453 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2454 PyObject *resultobj;
2455 wxBitmap *arg1 = (wxBitmap *) 0 ;
2456 wxMask *result;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "self", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxBitmap *arg1 = (wxBitmap *) 0 ;
2481 wxMask *arg2 = (wxMask *) 0 ;
2482 PyObject * obj0 = 0 ;
2483 PyObject * obj1 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self",(char *) "mask", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2490 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 (arg1)->SetMask(arg2);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 Py_INCREF(Py_None); resultobj = Py_None;
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBitmap *arg1 = (wxBitmap *) 0 ;
2508 wxColour *arg2 = 0 ;
2509 wxColour temp2 ;
2510 PyObject * obj0 = 0 ;
2511 PyObject * obj1 = 0 ;
2512 char *kwnames[] = {
2513 (char *) "self",(char *) "colour", NULL
2514 };
2515
2516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2518 {
2519 arg2 = &temp2;
2520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2521 }
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxBitmap *arg1 = (wxBitmap *) 0 ;
2539 wxRect *arg2 = 0 ;
2540 SwigValueWrapper< wxBitmap > result;
2541 wxRect temp2 ;
2542 PyObject * obj0 = 0 ;
2543 PyObject * obj1 = 0 ;
2544 char *kwnames[] = {
2545 (char *) "self",(char *) "rect", NULL
2546 };
2547
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2550 {
2551 arg2 = &temp2;
2552 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2553 }
2554 {
2555 PyThreadState* __tstate = wxPyBeginAllowThreads();
2556 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2557
2558 wxPyEndAllowThreads(__tstate);
2559 if (PyErr_Occurred()) SWIG_fail;
2560 }
2561 {
2562 wxBitmap * resultptr;
2563 resultptr = new wxBitmap((wxBitmap &) result);
2564 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2565 }
2566 return resultobj;
2567 fail:
2568 return NULL;
2569 }
2570
2571
2572 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject *resultobj;
2574 wxBitmap *arg1 = (wxBitmap *) 0 ;
2575 wxString *arg2 = 0 ;
2576 int arg3 ;
2577 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2578 bool result;
2579 bool temp2 = False ;
2580 PyObject * obj0 = 0 ;
2581 PyObject * obj1 = 0 ;
2582 PyObject * obj3 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2589 {
2590 arg2 = wxString_in_helper(obj1);
2591 if (arg2 == NULL) SWIG_fail;
2592 temp2 = True;
2593 }
2594 if (obj3) {
2595 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2596 }
2597 {
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
2599 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) SWIG_fail;
2603 }
2604 resultobj = PyInt_FromLong((long)result);
2605 {
2606 if (temp2)
2607 delete arg2;
2608 }
2609 return resultobj;
2610 fail:
2611 {
2612 if (temp2)
2613 delete arg2;
2614 }
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj;
2621 wxBitmap *arg1 = (wxBitmap *) 0 ;
2622 wxString *arg2 = 0 ;
2623 int arg3 ;
2624 bool result;
2625 bool temp2 = False ;
2626 PyObject * obj0 = 0 ;
2627 PyObject * obj1 = 0 ;
2628 char *kwnames[] = {
2629 (char *) "self",(char *) "name",(char *) "type", NULL
2630 };
2631
2632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2634 {
2635 arg2 = wxString_in_helper(obj1);
2636 if (arg2 == NULL) SWIG_fail;
2637 temp2 = True;
2638 }
2639 {
2640 PyThreadState* __tstate = wxPyBeginAllowThreads();
2641 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2642
2643 wxPyEndAllowThreads(__tstate);
2644 if (PyErr_Occurred()) SWIG_fail;
2645 }
2646 resultobj = PyInt_FromLong((long)result);
2647 {
2648 if (temp2)
2649 delete arg2;
2650 }
2651 return resultobj;
2652 fail:
2653 {
2654 if (temp2)
2655 delete arg2;
2656 }
2657 return NULL;
2658 }
2659
2660
2661 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject *resultobj;
2663 wxBitmap *arg1 = (wxBitmap *) 0 ;
2664 wxIcon *arg2 = 0 ;
2665 bool result;
2666 PyObject * obj0 = 0 ;
2667 PyObject * obj1 = 0 ;
2668 char *kwnames[] = {
2669 (char *) "self",(char *) "icon", NULL
2670 };
2671
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2674 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2675 if (arg2 == NULL) {
2676 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2677 }
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 }
2685 resultobj = PyInt_FromLong((long)result);
2686 return resultobj;
2687 fail:
2688 return NULL;
2689 }
2690
2691
2692 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2693 PyObject *resultobj;
2694 wxBitmap *arg1 = (wxBitmap *) 0 ;
2695 int arg2 ;
2696 PyObject * obj0 = 0 ;
2697 char *kwnames[] = {
2698 (char *) "self",(char *) "height", NULL
2699 };
2700
2701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2703 {
2704 PyThreadState* __tstate = wxPyBeginAllowThreads();
2705 (arg1)->SetHeight(arg2);
2706
2707 wxPyEndAllowThreads(__tstate);
2708 if (PyErr_Occurred()) SWIG_fail;
2709 }
2710 Py_INCREF(Py_None); resultobj = Py_None;
2711 return resultobj;
2712 fail:
2713 return NULL;
2714 }
2715
2716
2717 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2718 PyObject *resultobj;
2719 wxBitmap *arg1 = (wxBitmap *) 0 ;
2720 int arg2 ;
2721 PyObject * obj0 = 0 ;
2722 char *kwnames[] = {
2723 (char *) "self",(char *) "width", NULL
2724 };
2725
2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2728 {
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 (arg1)->SetWidth(arg2);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 Py_INCREF(Py_None); resultobj = Py_None;
2736 return resultobj;
2737 fail:
2738 return NULL;
2739 }
2740
2741
2742 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject *resultobj;
2744 wxBitmap *arg1 = (wxBitmap *) 0 ;
2745 int arg2 ;
2746 PyObject * obj0 = 0 ;
2747 char *kwnames[] = {
2748 (char *) "self",(char *) "depth", NULL
2749 };
2750
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2753 {
2754 PyThreadState* __tstate = wxPyBeginAllowThreads();
2755 (arg1)->SetDepth(arg2);
2756
2757 wxPyEndAllowThreads(__tstate);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 }
2760 Py_INCREF(Py_None); resultobj = Py_None;
2761 return resultobj;
2762 fail:
2763 return NULL;
2764 }
2765
2766
2767 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2768 PyObject *obj;
2769 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2770 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2771 Py_INCREF(obj);
2772 return Py_BuildValue((char *)"");
2773 }
2774 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject *resultobj;
2776 wxBitmap *arg1 = 0 ;
2777 wxMask *result;
2778 PyObject * obj0 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "bitmap", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2785 if (arg1 == NULL) {
2786 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2787 }
2788 {
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2791
2792 wxPyEndAllowThreads(__tstate);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2796 return resultobj;
2797 fail:
2798 return NULL;
2799 }
2800
2801
2802 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject *resultobj;
2804 wxBitmap *arg1 = 0 ;
2805 wxColour *arg2 = 0 ;
2806 wxMask *result;
2807 wxColour temp2 ;
2808 PyObject * obj0 = 0 ;
2809 PyObject * obj1 = 0 ;
2810 char *kwnames[] = {
2811 (char *) "bitmap",(char *) "colour", NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2816 if (arg1 == NULL) {
2817 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2818 }
2819 {
2820 arg2 = &temp2;
2821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2822 }
2823 {
2824 PyThreadState* __tstate = wxPyBeginAllowThreads();
2825 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2826
2827 wxPyEndAllowThreads(__tstate);
2828 if (PyErr_Occurred()) SWIG_fail;
2829 }
2830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2831 return resultobj;
2832 fail:
2833 return NULL;
2834 }
2835
2836
2837 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2838 PyObject *obj;
2839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2840 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2841 Py_INCREF(obj);
2842 return Py_BuildValue((char *)"");
2843 }
2844 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2845 PyObject *resultobj;
2846 wxString *arg1 = 0 ;
2847 long arg2 ;
2848 int arg3 = (int) -1 ;
2849 int arg4 = (int) -1 ;
2850 wxIcon *result;
2851 bool temp1 = False ;
2852 PyObject * obj0 = 0 ;
2853 char *kwnames[] = {
2854 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
2855 };
2856
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2858 {
2859 arg1 = wxString_in_helper(obj0);
2860 if (arg1 == NULL) SWIG_fail;
2861 temp1 = True;
2862 }
2863 {
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
2866
2867 wxPyEndAllowThreads(__tstate);
2868 if (PyErr_Occurred()) SWIG_fail;
2869 }
2870 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2871 {
2872 if (temp1)
2873 delete arg1;
2874 }
2875 return resultobj;
2876 fail:
2877 {
2878 if (temp1)
2879 delete arg1;
2880 }
2881 return NULL;
2882 }
2883
2884
2885 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2886 PyObject *resultobj;
2887 wxIcon *arg1 = (wxIcon *) 0 ;
2888 PyObject * obj0 = 0 ;
2889 char *kwnames[] = {
2890 (char *) "self", NULL
2891 };
2892
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 delete arg1;
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 Py_INCREF(Py_None); resultobj = Py_None;
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxIcon *result;
2912 char *kwnames[] = {
2913 NULL
2914 };
2915
2916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2917 {
2918 PyThreadState* __tstate = wxPyBeginAllowThreads();
2919 result = (wxIcon *)new wxIcon();
2920
2921 wxPyEndAllowThreads(__tstate);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2925 return resultobj;
2926 fail:
2927 return NULL;
2928 }
2929
2930
2931 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject *resultobj;
2933 wxIconLocation *arg1 = 0 ;
2934 wxIcon *result;
2935 PyObject * obj0 = 0 ;
2936 char *kwnames[] = {
2937 (char *) "loc", NULL
2938 };
2939
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2942 if (arg1 == NULL) {
2943 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2944 }
2945 {
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxBitmap *arg1 = 0 ;
2962 wxIcon *result;
2963 PyObject * obj0 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "bmp", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2970 if (arg1 == NULL) {
2971 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2972 }
2973 {
2974 PyThreadState* __tstate = wxPyBeginAllowThreads();
2975 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2976
2977 wxPyEndAllowThreads(__tstate);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 }
2980 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2981 return resultobj;
2982 fail:
2983 return NULL;
2984 }
2985
2986
2987 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj;
2989 PyObject *arg1 = (PyObject *) 0 ;
2990 wxIcon *result;
2991 PyObject * obj0 = 0 ;
2992 char *kwnames[] = {
2993 (char *) "listOfStrings", NULL
2994 };
2995
2996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
2997 arg1 = obj0;
2998 {
2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
3000 result = (wxIcon *)new_wxIcon(arg1);
3001
3002 wxPyEndAllowThreads(__tstate);
3003 if (PyErr_Occurred()) SWIG_fail;
3004 }
3005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3006 return resultobj;
3007 fail:
3008 return NULL;
3009 }
3010
3011
3012 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3013 PyObject *resultobj;
3014 wxIcon *arg1 = (wxIcon *) 0 ;
3015 wxString *arg2 = 0 ;
3016 long arg3 ;
3017 bool result;
3018 bool temp2 = False ;
3019 PyObject * obj0 = 0 ;
3020 PyObject * obj1 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self",(char *) "name",(char *) "flags", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3027 {
3028 arg2 = wxString_in_helper(obj1);
3029 if (arg2 == NULL) SWIG_fail;
3030 temp2 = True;
3031 }
3032 {
3033 PyThreadState* __tstate = wxPyBeginAllowThreads();
3034 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
3035
3036 wxPyEndAllowThreads(__tstate);
3037 if (PyErr_Occurred()) SWIG_fail;
3038 }
3039 resultobj = PyInt_FromLong((long)result);
3040 {
3041 if (temp2)
3042 delete arg2;
3043 }
3044 return resultobj;
3045 fail:
3046 {
3047 if (temp2)
3048 delete arg2;
3049 }
3050 return NULL;
3051 }
3052
3053
3054 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3055 PyObject *resultobj;
3056 wxIcon *arg1 = (wxIcon *) 0 ;
3057 bool result;
3058 PyObject * obj0 = 0 ;
3059 char *kwnames[] = {
3060 (char *) "self", NULL
3061 };
3062
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3065 {
3066 PyThreadState* __tstate = wxPyBeginAllowThreads();
3067 result = (bool)(arg1)->Ok();
3068
3069 wxPyEndAllowThreads(__tstate);
3070 if (PyErr_Occurred()) SWIG_fail;
3071 }
3072 resultobj = PyInt_FromLong((long)result);
3073 return resultobj;
3074 fail:
3075 return NULL;
3076 }
3077
3078
3079 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3080 PyObject *resultobj;
3081 wxIcon *arg1 = (wxIcon *) 0 ;
3082 int result;
3083 PyObject * obj0 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "self", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = (int)(arg1)->GetWidth();
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 resultobj = PyInt_FromLong((long)result);
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxIcon *arg1 = (wxIcon *) 0 ;
3107 int result;
3108 PyObject * obj0 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (int)(arg1)->GetHeight();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 resultobj = PyInt_FromLong((long)result);
3123 return resultobj;
3124 fail:
3125 return NULL;
3126 }
3127
3128
3129 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxIcon *arg1 = (wxIcon *) 0 ;
3132 int result;
3133 PyObject * obj0 = 0 ;
3134 char *kwnames[] = {
3135 (char *) "self", NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3140 {
3141 PyThreadState* __tstate = wxPyBeginAllowThreads();
3142 result = (int)(arg1)->GetDepth();
3143
3144 wxPyEndAllowThreads(__tstate);
3145 if (PyErr_Occurred()) SWIG_fail;
3146 }
3147 resultobj = PyInt_FromLong((long)result);
3148 return resultobj;
3149 fail:
3150 return NULL;
3151 }
3152
3153
3154 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3155 PyObject *resultobj;
3156 wxIcon *arg1 = (wxIcon *) 0 ;
3157 int arg2 ;
3158 PyObject * obj0 = 0 ;
3159 char *kwnames[] = {
3160 (char *) "self",(char *) "w", NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3165 {
3166 PyThreadState* __tstate = wxPyBeginAllowThreads();
3167 (arg1)->SetWidth(arg2);
3168
3169 wxPyEndAllowThreads(__tstate);
3170 if (PyErr_Occurred()) SWIG_fail;
3171 }
3172 Py_INCREF(Py_None); resultobj = Py_None;
3173 return resultobj;
3174 fail:
3175 return NULL;
3176 }
3177
3178
3179 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3180 PyObject *resultobj;
3181 wxIcon *arg1 = (wxIcon *) 0 ;
3182 int arg2 ;
3183 PyObject * obj0 = 0 ;
3184 char *kwnames[] = {
3185 (char *) "self",(char *) "h", NULL
3186 };
3187
3188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3190 {
3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
3192 (arg1)->SetHeight(arg2);
3193
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 Py_INCREF(Py_None); resultobj = Py_None;
3198 return resultobj;
3199 fail:
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxIcon *arg1 = (wxIcon *) 0 ;
3207 int arg2 ;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self",(char *) "d", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3215 {
3216 PyThreadState* __tstate = wxPyBeginAllowThreads();
3217 (arg1)->SetDepth(arg2);
3218
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 Py_INCREF(Py_None); resultobj = Py_None;
3223 return resultobj;
3224 fail:
3225 return NULL;
3226 }
3227
3228
3229 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxIcon *arg1 = (wxIcon *) 0 ;
3232 wxBitmap *arg2 = 0 ;
3233 PyObject * obj0 = 0 ;
3234 PyObject * obj1 = 0 ;
3235 char *kwnames[] = {
3236 (char *) "self",(char *) "bmp", NULL
3237 };
3238
3239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3241 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3242 if (arg2 == NULL) {
3243 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 Py_INCREF(Py_None); resultobj = Py_None;
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3260 PyObject *obj;
3261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3262 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3263 Py_INCREF(obj);
3264 return Py_BuildValue((char *)"");
3265 }
3266 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3267 PyObject *resultobj;
3268 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3269 int arg2 = (int) 0 ;
3270 wxIconLocation *result;
3271 PyObject * obj0 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "filename",(char *) "num", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3277 if (obj0) {
3278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3279 }
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3295 PyObject *resultobj;
3296 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3297 PyObject * obj0 = 0 ;
3298 char *kwnames[] = {
3299 (char *) "self", NULL
3300 };
3301
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3304 {
3305 PyThreadState* __tstate = wxPyBeginAllowThreads();
3306 delete arg1;
3307
3308 wxPyEndAllowThreads(__tstate);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 }
3311 Py_INCREF(Py_None); resultobj = Py_None;
3312 return resultobj;
3313 fail:
3314 return NULL;
3315 }
3316
3317
3318 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3319 PyObject *resultobj;
3320 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3321 bool result;
3322 PyObject * obj0 = 0 ;
3323 char *kwnames[] = {
3324 (char *) "self", NULL
3325 };
3326
3327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3329 {
3330 PyThreadState* __tstate = wxPyBeginAllowThreads();
3331 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3332
3333 wxPyEndAllowThreads(__tstate);
3334 if (PyErr_Occurred()) SWIG_fail;
3335 }
3336 resultobj = PyInt_FromLong((long)result);
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject *resultobj;
3345 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3346 wxString *arg2 = 0 ;
3347 bool temp2 = False ;
3348 PyObject * obj0 = 0 ;
3349 PyObject * obj1 = 0 ;
3350 char *kwnames[] = {
3351 (char *) "self",(char *) "filename", NULL
3352 };
3353
3354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3356 {
3357 arg2 = wxString_in_helper(obj1);
3358 if (arg2 == NULL) SWIG_fail;
3359 temp2 = True;
3360 }
3361 {
3362 PyThreadState* __tstate = wxPyBeginAllowThreads();
3363 (arg1)->SetFileName((wxString const &)*arg2);
3364
3365 wxPyEndAllowThreads(__tstate);
3366 if (PyErr_Occurred()) SWIG_fail;
3367 }
3368 Py_INCREF(Py_None); resultobj = Py_None;
3369 {
3370 if (temp2)
3371 delete arg2;
3372 }
3373 return resultobj;
3374 fail:
3375 {
3376 if (temp2)
3377 delete arg2;
3378 }
3379 return NULL;
3380 }
3381
3382
3383 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3384 PyObject *resultobj;
3385 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3386 wxString *result;
3387 PyObject * obj0 = 0 ;
3388 char *kwnames[] = {
3389 (char *) "self", NULL
3390 };
3391
3392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3394 {
3395 PyThreadState* __tstate = wxPyBeginAllowThreads();
3396 {
3397 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3398 result = (wxString *) &_result_ref;
3399 }
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 {
3405 #if wxUSE_UNICODE
3406 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3407 #else
3408 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3409 #endif
3410 }
3411 return resultobj;
3412 fail:
3413 return NULL;
3414 }
3415
3416
3417 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3418 PyObject *resultobj;
3419 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3420 int arg2 ;
3421 PyObject * obj0 = 0 ;
3422 char *kwnames[] = {
3423 (char *) "self",(char *) "num", NULL
3424 };
3425
3426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3428 {
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 wxIconLocation_SetIndex(arg1,arg2);
3431
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 Py_INCREF(Py_None); resultobj = Py_None;
3436 return resultobj;
3437 fail:
3438 return NULL;
3439 }
3440
3441
3442 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj;
3444 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3445 int result;
3446 PyObject * obj0 = 0 ;
3447 char *kwnames[] = {
3448 (char *) "self", NULL
3449 };
3450
3451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3453 {
3454 PyThreadState* __tstate = wxPyBeginAllowThreads();
3455 result = (int)wxIconLocation_GetIndex(arg1);
3456
3457 wxPyEndAllowThreads(__tstate);
3458 if (PyErr_Occurred()) SWIG_fail;
3459 }
3460 resultobj = PyInt_FromLong((long)result);
3461 return resultobj;
3462 fail:
3463 return NULL;
3464 }
3465
3466
3467 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3468 PyObject *obj;
3469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3470 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3471 Py_INCREF(obj);
3472 return Py_BuildValue((char *)"");
3473 }
3474 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3475 PyObject *resultobj;
3476 wxIconBundle *result;
3477 char *kwnames[] = {
3478 NULL
3479 };
3480
3481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 result = (wxIconBundle *)new wxIconBundle();
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3490 return resultobj;
3491 fail:
3492 return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxString *arg1 = 0 ;
3499 long arg2 ;
3500 wxIconBundle *result;
3501 bool temp1 = False ;
3502 PyObject * obj0 = 0 ;
3503 char *kwnames[] = {
3504 (char *) "file",(char *) "type", NULL
3505 };
3506
3507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3508 {
3509 arg1 = wxString_in_helper(obj0);
3510 if (arg1 == NULL) SWIG_fail;
3511 temp1 = True;
3512 }
3513 {
3514 PyThreadState* __tstate = wxPyBeginAllowThreads();
3515 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3516
3517 wxPyEndAllowThreads(__tstate);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3521 {
3522 if (temp1)
3523 delete arg1;
3524 }
3525 return resultobj;
3526 fail:
3527 {
3528 if (temp1)
3529 delete arg1;
3530 }
3531 return NULL;
3532 }
3533
3534
3535 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3536 PyObject *resultobj;
3537 wxIcon *arg1 = 0 ;
3538 wxIconBundle *result;
3539 PyObject * obj0 = 0 ;
3540 char *kwnames[] = {
3541 (char *) "icon", NULL
3542 };
3543
3544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3546 if (arg1 == NULL) {
3547 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3548 }
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3557 return resultobj;
3558 fail:
3559 return NULL;
3560 }
3561
3562
3563 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3564 PyObject *resultobj;
3565 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3566 PyObject * obj0 = 0 ;
3567 char *kwnames[] = {
3568 (char *) "self", NULL
3569 };
3570
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 delete arg1;
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) SWIG_fail;
3579 }
3580 Py_INCREF(Py_None); resultobj = Py_None;
3581 return resultobj;
3582 fail:
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3590 wxIcon *arg2 = 0 ;
3591 PyObject * obj0 = 0 ;
3592 PyObject * obj1 = 0 ;
3593 char *kwnames[] = {
3594 (char *) "self",(char *) "icon", NULL
3595 };
3596
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3599 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3600 if (arg2 == NULL) {
3601 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 (arg1)->AddIcon((wxIcon const &)*arg2);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 Py_INCREF(Py_None); resultobj = Py_None;
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3620 wxString *arg2 = 0 ;
3621 long arg3 ;
3622 bool temp2 = False ;
3623 PyObject * obj0 = 0 ;
3624 PyObject * obj1 = 0 ;
3625 char *kwnames[] = {
3626 (char *) "self",(char *) "file",(char *) "type", NULL
3627 };
3628
3629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3631 {
3632 arg2 = wxString_in_helper(obj1);
3633 if (arg2 == NULL) SWIG_fail;
3634 temp2 = True;
3635 }
3636 {
3637 PyThreadState* __tstate = wxPyBeginAllowThreads();
3638 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3639
3640 wxPyEndAllowThreads(__tstate);
3641 if (PyErr_Occurred()) SWIG_fail;
3642 }
3643 Py_INCREF(Py_None); resultobj = Py_None;
3644 {
3645 if (temp2)
3646 delete arg2;
3647 }
3648 return resultobj;
3649 fail:
3650 {
3651 if (temp2)
3652 delete arg2;
3653 }
3654 return NULL;
3655 }
3656
3657
3658 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3659 PyObject *resultobj;
3660 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3661 wxSize *arg2 = 0 ;
3662 wxIcon *result;
3663 wxSize temp2 ;
3664 PyObject * obj0 = 0 ;
3665 PyObject * obj1 = 0 ;
3666 char *kwnames[] = {
3667 (char *) "self",(char *) "size", NULL
3668 };
3669
3670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3672 {
3673 arg2 = &temp2;
3674 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3675 }
3676 {
3677 PyThreadState* __tstate = wxPyBeginAllowThreads();
3678 {
3679 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3680 result = (wxIcon *) &_result_ref;
3681 }
3682
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3694 PyObject *obj;
3695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3696 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3697 Py_INCREF(obj);
3698 return Py_BuildValue((char *)"");
3699 }
3700 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3701 PyObject *resultobj;
3702 wxString *arg1 = (wxString *) 0 ;
3703 long arg2 ;
3704 int arg3 = (int) 0 ;
3705 int arg4 = (int) 0 ;
3706 wxCursor *result;
3707 PyObject * obj0 = 0 ;
3708 char *kwnames[] = {
3709 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3710 };
3711
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3717
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj;
3730 wxCursor *arg1 = (wxCursor *) 0 ;
3731 PyObject * obj0 = 0 ;
3732 char *kwnames[] = {
3733 (char *) "self", NULL
3734 };
3735
3736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 delete arg1;
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 int arg1 ;
3755 wxCursor *result;
3756 char *kwnames[] = {
3757 (char *) "id", NULL
3758 };
3759
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (wxCursor *)new wxCursor(arg1);
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3769 return resultobj;
3770 fail:
3771 return NULL;
3772 }
3773
3774
3775 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3776 PyObject *resultobj;
3777 wxImage *arg1 = 0 ;
3778 wxCursor *result;
3779 PyObject * obj0 = 0 ;
3780 char *kwnames[] = {
3781 (char *) "image", NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3786 if (arg1 == NULL) {
3787 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3788 }
3789 {
3790 PyThreadState* __tstate = wxPyBeginAllowThreads();
3791 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3792
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject *resultobj;
3805 PyObject *arg1 = (PyObject *) 0 ;
3806 int arg2 ;
3807 int arg3 ;
3808 int arg4 = (int) -1 ;
3809 int arg5 = (int) -1 ;
3810 PyObject *arg6 = (PyObject *) 0 ;
3811 wxCursor *result;
3812 PyObject * obj0 = 0 ;
3813 PyObject * obj5 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3819 arg1 = obj0;
3820 if (obj5) {
3821 arg6 = obj5;
3822 }
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxCursor *arg1 = (wxCursor *) 0 ;
3840 bool result;
3841 PyObject * obj0 = 0 ;
3842 char *kwnames[] = {
3843 (char *) "self", NULL
3844 };
3845
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 result = (bool)(arg1)->Ok();
3851
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 resultobj = PyInt_FromLong((long)result);
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3863 PyObject *obj;
3864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3865 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3866 Py_INCREF(obj);
3867 return Py_BuildValue((char *)"");
3868 }
3869 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3870 PyObject *resultobj;
3871 int arg1 = (int) 0 ;
3872 int arg2 = (int) 0 ;
3873 int arg3 = (int) 0 ;
3874 int arg4 = (int) 0 ;
3875 wxRegion *result;
3876 char *kwnames[] = {
3877 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3878 };
3879
3880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3881 {
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3884
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 wxBitmap *arg1 = 0 ;
3898 wxColour const &arg2_defvalue = wxNullColour ;
3899 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3900 int arg3 = (int) 0 ;
3901 wxRegion *result;
3902 wxColour temp2 ;
3903 PyObject * obj0 = 0 ;
3904 PyObject * obj1 = 0 ;
3905 char *kwnames[] = {
3906 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3907 };
3908
3909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3911 if (arg1 == NULL) {
3912 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3913 }
3914 if (obj1) {
3915 {
3916 arg2 = &temp2;
3917 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3918 }
3919 }
3920 {
3921 PyThreadState* __tstate = wxPyBeginAllowThreads();
3922 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3923
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3928 return resultobj;
3929 fail:
3930 return NULL;
3931 }
3932
3933
3934 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3935 PyObject *resultobj;
3936 int arg1 ;
3937 wxPoint *arg2 = (wxPoint *) 0 ;
3938 int arg3 = (int) wxWINDING_RULE ;
3939 wxRegion *result;
3940 PyObject * obj0 = 0 ;
3941 char *kwnames[] = {
3942 (char *) "points",(char *) "fillStyle", NULL
3943 };
3944
3945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3946 {
3947 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3948 if (arg2 == NULL) SWIG_fail;
3949 }
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
3953
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3958 {
3959 if (arg2) delete [] arg2;
3960 }
3961 return resultobj;
3962 fail:
3963 {
3964 if (arg2) delete [] arg2;
3965 }
3966 return NULL;
3967 }
3968
3969
3970 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3971 PyObject *resultobj;
3972 wxRegion *arg1 = (wxRegion *) 0 ;
3973 PyObject * obj0 = 0 ;
3974 char *kwnames[] = {
3975 (char *) "self", NULL
3976 };
3977
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 delete arg1;
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 Py_INCREF(Py_None); resultobj = Py_None;
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxRegion *arg1 = (wxRegion *) 0 ;
3997 PyObject * obj0 = 0 ;
3998 char *kwnames[] = {
3999 (char *) "self", NULL
4000 };
4001
4002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4004 {
4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
4006 (arg1)->Clear();
4007
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 Py_INCREF(Py_None); resultobj = Py_None;
4012 return resultobj;
4013 fail:
4014 return NULL;
4015 }
4016
4017
4018 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4019 PyObject *resultobj;
4020 wxRegion *arg1 = (wxRegion *) 0 ;
4021 int arg2 ;
4022 int arg3 ;
4023 bool result;
4024 PyObject * obj0 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "self",(char *) "x",(char *) "y", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (bool)(arg1)->Offset(arg2,arg3);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = PyInt_FromLong((long)result);
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxRegion *arg1 = (wxRegion *) 0 ;
4048 int arg2 ;
4049 int arg3 ;
4050 int result;
4051 PyObject * obj0 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self",(char *) "x",(char *) "y", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 result = (int)(arg1)->Contains(arg2,arg3);
4061
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = PyInt_FromLong((long)result);
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4073 PyObject *resultobj;
4074 wxRegion *arg1 = (wxRegion *) 0 ;
4075 wxPoint *arg2 = 0 ;
4076 int result;
4077 wxPoint temp2 ;
4078 PyObject * obj0 = 0 ;
4079 PyObject * obj1 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "self",(char *) "pt", NULL
4082 };
4083
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4086 {
4087 arg2 = &temp2;
4088 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4089 }
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 resultobj = PyInt_FromLong((long)result);
4098 return resultobj;
4099 fail:
4100 return NULL;
4101 }
4102
4103
4104 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxRegion *arg1 = (wxRegion *) 0 ;
4107 wxRect *arg2 = 0 ;
4108 int result;
4109 wxRect temp2 ;
4110 PyObject * obj0 = 0 ;
4111 PyObject * obj1 = 0 ;
4112 char *kwnames[] = {
4113 (char *) "self",(char *) "rect", NULL
4114 };
4115
4116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4118 {
4119 arg2 = &temp2;
4120 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4121 }
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 resultobj = PyInt_FromLong((long)result);
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxRegion *arg1 = (wxRegion *) 0 ;
4139 int arg2 ;
4140 int arg3 ;
4141 int arg4 ;
4142 int arg5 ;
4143 int result;
4144 PyObject * obj0 = 0 ;
4145 char *kwnames[] = {
4146 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4147 };
4148
4149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4154
4155 wxPyEndAllowThreads(__tstate);
4156 if (PyErr_Occurred()) SWIG_fail;
4157 }
4158 resultobj = PyInt_FromLong((long)result);
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxRegion *arg1 = (wxRegion *) 0 ;
4168 wxRect result;
4169 PyObject * obj0 = 0 ;
4170 char *kwnames[] = {
4171 (char *) "self", NULL
4172 };
4173
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (arg1)->GetBox();
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 {
4184 wxRect * resultptr;
4185 resultptr = new wxRect((wxRect &) result);
4186 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4187 }
4188 return resultobj;
4189 fail:
4190 return NULL;
4191 }
4192
4193
4194 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4195 PyObject *resultobj;
4196 wxRegion *arg1 = (wxRegion *) 0 ;
4197 int arg2 ;
4198 int arg3 ;
4199 int arg4 ;
4200 int arg5 ;
4201 bool result;
4202 PyObject * obj0 = 0 ;
4203 char *kwnames[] = {
4204 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4205 };
4206
4207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) SWIG_fail;
4215 }
4216 resultobj = PyInt_FromLong((long)result);
4217 return resultobj;
4218 fail:
4219 return NULL;
4220 }
4221
4222
4223 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4224 PyObject *resultobj;
4225 wxRegion *arg1 = (wxRegion *) 0 ;
4226 wxRect *arg2 = 0 ;
4227 bool result;
4228 wxRect temp2 ;
4229 PyObject * obj0 = 0 ;
4230 PyObject * obj1 = 0 ;
4231 char *kwnames[] = {
4232 (char *) "self",(char *) "rect", NULL
4233 };
4234
4235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4237 {
4238 arg2 = &temp2;
4239 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4240 }
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4244
4245 wxPyEndAllowThreads(__tstate);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 }
4248 resultobj = PyInt_FromLong((long)result);
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 wxRegion *arg1 = (wxRegion *) 0 ;
4258 wxRegion *arg2 = 0 ;
4259 bool result;
4260 PyObject * obj0 = 0 ;
4261 PyObject * obj1 = 0 ;
4262 char *kwnames[] = {
4263 (char *) "self",(char *) "region", NULL
4264 };
4265
4266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4268 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4269 if (arg2 == NULL) {
4270 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4271 }
4272 {
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4275
4276 wxPyEndAllowThreads(__tstate);
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 resultobj = PyInt_FromLong((long)result);
4280 return resultobj;
4281 fail:
4282 return NULL;
4283 }
4284
4285
4286 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj;
4288 wxRegion *arg1 = (wxRegion *) 0 ;
4289 bool result;
4290 PyObject * obj0 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "self", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = (bool)(arg1)->IsEmpty();
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 resultobj = PyInt_FromLong((long)result);
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxRegion *arg1 = (wxRegion *) 0 ;
4314 int arg2 ;
4315 int arg3 ;
4316 int arg4 ;
4317 int arg5 ;
4318 bool result;
4319 PyObject * obj0 = 0 ;
4320 char *kwnames[] = {
4321 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4322 };
4323
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = PyInt_FromLong((long)result);
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxRegion *arg1 = (wxRegion *) 0 ;
4343 wxRect *arg2 = 0 ;
4344 bool result;
4345 wxRect temp2 ;
4346 PyObject * obj0 = 0 ;
4347 PyObject * obj1 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "self",(char *) "rect", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4354 {
4355 arg2 = &temp2;
4356 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4357 }
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4361
4362 wxPyEndAllowThreads(__tstate);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 resultobj = PyInt_FromLong((long)result);
4366 return resultobj;
4367 fail:
4368 return NULL;
4369 }
4370
4371
4372 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4373 PyObject *resultobj;
4374 wxRegion *arg1 = (wxRegion *) 0 ;
4375 wxRegion *arg2 = 0 ;
4376 bool result;
4377 PyObject * obj0 = 0 ;
4378 PyObject * obj1 = 0 ;
4379 char *kwnames[] = {
4380 (char *) "self",(char *) "region", NULL
4381 };
4382
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4385 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4386 if (arg2 == NULL) {
4387 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4388 }
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 resultobj = PyInt_FromLong((long)result);
4397 return resultobj;
4398 fail:
4399 return NULL;
4400 }
4401
4402
4403 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4404 PyObject *resultobj;
4405 wxRegion *arg1 = (wxRegion *) 0 ;
4406 int arg2 ;
4407 int arg3 ;
4408 int arg4 ;
4409 int arg5 ;
4410 bool result;
4411 PyObject * obj0 = 0 ;
4412 char *kwnames[] = {
4413 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4414 };
4415
4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
4420 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4421
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = PyInt_FromLong((long)result);
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4433 PyObject *resultobj;
4434 wxRegion *arg1 = (wxRegion *) 0 ;
4435 wxRect *arg2 = 0 ;
4436 bool result;
4437 wxRect temp2 ;
4438 PyObject * obj0 = 0 ;
4439 PyObject * obj1 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self",(char *) "rect", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4446 {
4447 arg2 = &temp2;
4448 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4449 }
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = PyInt_FromLong((long)result);
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 wxRegion *arg1 = (wxRegion *) 0 ;
4467 wxRegion *arg2 = 0 ;
4468 bool result;
4469 PyObject * obj0 = 0 ;
4470 PyObject * obj1 = 0 ;
4471 char *kwnames[] = {
4472 (char *) "self",(char *) "region", NULL
4473 };
4474
4475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4477 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4478 if (arg2 == NULL) {
4479 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4480 }
4481 {
4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
4483 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4484
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = PyInt_FromLong((long)result);
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj;
4497 wxRegion *arg1 = (wxRegion *) 0 ;
4498 int arg2 ;
4499 int arg3 ;
4500 int arg4 ;
4501 int arg5 ;
4502 bool result;
4503 PyObject * obj0 = 0 ;
4504 char *kwnames[] = {
4505 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4506 };
4507
4508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) SWIG_fail;
4516 }
4517 resultobj = PyInt_FromLong((long)result);
4518 return resultobj;
4519 fail:
4520 return NULL;
4521 }
4522
4523
4524 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4525 PyObject *resultobj;
4526 wxRegion *arg1 = (wxRegion *) 0 ;
4527 wxRect *arg2 = 0 ;
4528 bool result;
4529 wxRect temp2 ;
4530 PyObject * obj0 = 0 ;
4531 PyObject * obj1 = 0 ;
4532 char *kwnames[] = {
4533 (char *) "self",(char *) "rect", NULL
4534 };
4535
4536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4538 {
4539 arg2 = &temp2;
4540 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4541 }
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 resultobj = PyInt_FromLong((long)result);
4550 return resultobj;
4551 fail:
4552 return NULL;
4553 }
4554
4555
4556 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4557 PyObject *resultobj;
4558 wxRegion *arg1 = (wxRegion *) 0 ;
4559 wxRegion *arg2 = 0 ;
4560 bool result;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self",(char *) "region", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4569 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4570 if (arg2 == NULL) {
4571 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4572 }
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4576
4577 wxPyEndAllowThreads(__tstate);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 }
4580 resultobj = PyInt_FromLong((long)result);
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4588 PyObject *resultobj;
4589 wxRegion *arg1 = (wxRegion *) 0 ;
4590 SwigValueWrapper< wxBitmap > result;
4591 PyObject * obj0 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "self", NULL
4594 };
4595
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 result = (arg1)->ConvertToBitmap();
4601
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 {
4606 wxBitmap * resultptr;
4607 resultptr = new wxBitmap((wxBitmap &) result);
4608 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4609 }
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject *resultobj;
4618 wxRegion *arg1 = (wxRegion *) 0 ;
4619 wxBitmap *arg2 = 0 ;
4620 wxColour const &arg3_defvalue = wxNullColour ;
4621 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4622 int arg4 = (int) 0 ;
4623 bool result;
4624 wxColour temp3 ;
4625 PyObject * obj0 = 0 ;
4626 PyObject * obj1 = 0 ;
4627 PyObject * obj2 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4634 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4635 if (arg2 == NULL) {
4636 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4637 }
4638 if (obj2) {
4639 {
4640 arg3 = &temp3;
4641 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4642 }
4643 }
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4647
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4651 resultobj = PyInt_FromLong((long)result);
4652 return resultobj;
4653 fail:
4654 return NULL;
4655 }
4656
4657
4658 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4659 PyObject *obj;
4660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4661 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4662 Py_INCREF(obj);
4663 return Py_BuildValue((char *)"");
4664 }
4665 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4666 PyObject *resultobj;
4667 wxRegion *arg1 = 0 ;
4668 wxRegionIterator *result;
4669 PyObject * obj0 = 0 ;
4670 char *kwnames[] = {
4671 (char *) "region", NULL
4672 };
4673
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4676 if (arg1 == NULL) {
4677 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4678 }
4679 {
4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
4681 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4687 return resultobj;
4688 fail:
4689 return NULL;
4690 }
4691
4692
4693 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4696 PyObject * obj0 = 0 ;
4697 char *kwnames[] = {
4698 (char *) "self", NULL
4699 };
4700
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 delete arg1;
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 Py_INCREF(Py_None); resultobj = Py_None;
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4720 int result;
4721 PyObject * obj0 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (int)(arg1)->GetX();
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = PyInt_FromLong((long)result);
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4745 int result;
4746 PyObject * obj0 = 0 ;
4747 char *kwnames[] = {
4748 (char *) "self", NULL
4749 };
4750
4751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4753 {
4754 PyThreadState* __tstate = wxPyBeginAllowThreads();
4755 result = (int)(arg1)->GetY();
4756
4757 wxPyEndAllowThreads(__tstate);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 resultobj = PyInt_FromLong((long)result);
4761 return resultobj;
4762 fail:
4763 return NULL;
4764 }
4765
4766
4767 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4768 PyObject *resultobj;
4769 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4770 int result;
4771 PyObject * obj0 = 0 ;
4772 char *kwnames[] = {
4773 (char *) "self", NULL
4774 };
4775
4776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (int)(arg1)->GetW();
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = PyInt_FromLong((long)result);
4786 return resultobj;
4787 fail:
4788 return NULL;
4789 }
4790
4791
4792 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4793 PyObject *resultobj;
4794 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4795 int result;
4796 PyObject * obj0 = 0 ;
4797 char *kwnames[] = {
4798 (char *) "self", NULL
4799 };
4800
4801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (int)(arg1)->GetWidth();
4806
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = PyInt_FromLong((long)result);
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj;
4819 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4820 int result;
4821 PyObject * obj0 = 0 ;
4822 char *kwnames[] = {
4823 (char *) "self", NULL
4824 };
4825
4826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 result = (int)(arg1)->GetH();
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 resultobj = PyInt_FromLong((long)result);
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4845 int result;
4846 PyObject * obj0 = 0 ;
4847 char *kwnames[] = {
4848 (char *) "self", NULL
4849 };
4850
4851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4853 {
4854 PyThreadState* __tstate = wxPyBeginAllowThreads();
4855 result = (int)(arg1)->GetHeight();
4856
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) SWIG_fail;
4859 }
4860 resultobj = PyInt_FromLong((long)result);
4861 return resultobj;
4862 fail:
4863 return NULL;
4864 }
4865
4866
4867 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject *resultobj;
4869 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4870 wxRect result;
4871 PyObject * obj0 = 0 ;
4872 char *kwnames[] = {
4873 (char *) "self", NULL
4874 };
4875
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 result = (arg1)->GetRect();
4881
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 {
4886 wxRect * resultptr;
4887 resultptr = new wxRect((wxRect &) result);
4888 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4889 }
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj;
4898 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4899 bool result;
4900 PyObject * obj0 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (bool)(arg1)->HaveRects();
4910
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 resultobj = PyInt_FromLong((long)result);
4915 return resultobj;
4916 fail:
4917 return NULL;
4918 }
4919
4920
4921 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj;
4923 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4924 PyObject * obj0 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4931 {
4932 PyThreadState* __tstate = wxPyBeginAllowThreads();
4933 (arg1)->Reset();
4934
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 Py_INCREF(Py_None); resultobj = Py_None;
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4946 PyObject *resultobj;
4947 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4948 PyObject * obj0 = 0 ;
4949 char *kwnames[] = {
4950 (char *) "self", NULL
4951 };
4952
4953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 wxRegionIterator_Next(arg1);
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 Py_INCREF(Py_None); resultobj = Py_None;
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4970 PyObject *resultobj;
4971 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4972 bool result;
4973 PyObject * obj0 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)wxRegionIterator___nonzero__(arg1);
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 resultobj = PyInt_FromLong((long)result);
4988 return resultobj;
4989 fail:
4990 return NULL;
4991 }
4992
4993
4994 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4995 PyObject *obj;
4996 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4997 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4998 Py_INCREF(obj);
4999 return Py_BuildValue((char *)"");
5000 }
5001 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj;
5003 wxNativeFontInfo *result;
5004 char *kwnames[] = {
5005 NULL
5006 };
5007
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5026 PyObject * obj0 = 0 ;
5027 char *kwnames[] = {
5028 (char *) "self", NULL
5029 };
5030
5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 delete arg1;
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 Py_INCREF(Py_None); resultobj = Py_None;
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject *resultobj;
5049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5050 PyObject * obj0 = 0 ;
5051 char *kwnames[] = {
5052 (char *) "self", NULL
5053 };
5054
5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->Init();
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 Py_INCREF(Py_None); resultobj = Py_None;
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5074 wxFont *arg2 = 0 ;
5075 PyObject * obj0 = 0 ;
5076 PyObject * obj1 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self",(char *) "font", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5083 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5084 if (arg2 == NULL) {
5085 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5086 }
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 (arg1)->InitFromFont((wxFont const &)*arg2);
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 Py_INCREF(Py_None); resultobj = Py_None;
5095 return resultobj;
5096 fail:
5097 return NULL;
5098 }
5099
5100
5101 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5104 int result;
5105 PyObject * obj0 = 0 ;
5106 char *kwnames[] = {
5107 (char *) "self", NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5115
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 resultobj = PyInt_FromLong((long)result);
5120 return resultobj;
5121 fail:
5122 return NULL;
5123 }
5124
5125
5126 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj;
5128 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5129 int result;
5130 PyObject * obj0 = 0 ;
5131 char *kwnames[] = {
5132 (char *) "self", NULL
5133 };
5134
5135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = PyInt_FromLong((long)result);
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj;
5153 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5154 int result;
5155 PyObject * obj0 = 0 ;
5156 char *kwnames[] = {
5157 (char *) "self", NULL
5158 };
5159
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5165
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 resultobj = PyInt_FromLong((long)result);
5170 return resultobj;
5171 fail:
5172 return NULL;
5173 }
5174
5175
5176 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj;
5178 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5179 bool result;
5180 PyObject * obj0 = 0 ;
5181 char *kwnames[] = {
5182 (char *) "self", NULL
5183 };
5184
5185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = PyInt_FromLong((long)result);
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj;
5203 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5204 wxString result;
5205 PyObject * obj0 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "self", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 {
5220 #if wxUSE_UNICODE
5221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5222 #else
5223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5224 #endif
5225 }
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5235 int result;
5236 PyObject * obj0 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 resultobj = PyInt_FromLong((long)result);
5251 return resultobj;
5252 fail:
5253 return NULL;
5254 }
5255
5256
5257 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5258 PyObject *resultobj;
5259 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5260 int result;
5261 PyObject * obj0 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "self", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5271
5272 wxPyEndAllowThreads(__tstate);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 resultobj = PyInt_FromLong((long)result);
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj;
5284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5285 int arg2 ;
5286 PyObject * obj0 = 0 ;
5287 char *kwnames[] = {
5288 (char *) "self",(char *) "pointsize", NULL
5289 };
5290
5291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 (arg1)->SetPointSize(arg2);
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 Py_INCREF(Py_None); resultobj = Py_None;
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj;
5309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5310 int arg2 ;
5311 PyObject * obj0 = 0 ;
5312 char *kwnames[] = {
5313 (char *) "self",(char *) "style", NULL
5314 };
5315
5316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 (arg1)->SetStyle((wxFontStyle )arg2);
5321
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 Py_INCREF(Py_None); resultobj = Py_None;
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject *resultobj;
5334 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5335 int arg2 ;
5336 PyObject * obj0 = 0 ;
5337 char *kwnames[] = {
5338 (char *) "self",(char *) "weight", NULL
5339 };
5340
5341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 (arg1)->SetWeight((wxFontWeight )arg2);
5346
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) SWIG_fail;
5349 }
5350 Py_INCREF(Py_None); resultobj = Py_None;
5351 return resultobj;
5352 fail:
5353 return NULL;
5354 }
5355
5356
5357 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5358 PyObject *resultobj;
5359 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5360 bool arg2 ;
5361 PyObject * obj0 = 0 ;
5362 PyObject * obj1 = 0 ;
5363 char *kwnames[] = {
5364 (char *) "self",(char *) "underlined", NULL
5365 };
5366
5367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5369 arg2 = PyInt_AsLong(obj1) ? true : false;
5370 if (PyErr_Occurred()) SWIG_fail;
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 (arg1)->SetUnderlined(arg2);
5374
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 Py_INCREF(Py_None); resultobj = Py_None;
5379 return resultobj;
5380 fail:
5381 return NULL;
5382 }
5383
5384
5385 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj;
5387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5388 wxString arg2 ;
5389 PyObject * obj0 = 0 ;
5390 PyObject * obj1 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "self",(char *) "facename", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5397 {
5398 wxString* sptr = wxString_in_helper(obj1);
5399 if (sptr == NULL) SWIG_fail;
5400 arg2 = *sptr;
5401 delete sptr;
5402 }
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 (arg1)->SetFaceName(arg2);
5406
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 Py_INCREF(Py_None); resultobj = Py_None;
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj;
5419 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5420 int arg2 ;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self",(char *) "family", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5428 {
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 (arg1)->SetFamily((wxFontFamily )arg2);
5431
5432 wxPyEndAllowThreads(__tstate);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 }
5435 Py_INCREF(Py_None); resultobj = Py_None;
5436 return resultobj;
5437 fail:
5438 return NULL;
5439 }
5440
5441
5442 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5445 int arg2 ;
5446 PyObject * obj0 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self",(char *) "encoding", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 (arg1)->SetEncoding((wxFontEncoding )arg2);
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 Py_INCREF(Py_None); resultobj = Py_None;
5461 return resultobj;
5462 fail:
5463 return NULL;
5464 }
5465
5466
5467 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject *resultobj;
5469 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5470 wxString *arg2 = 0 ;
5471 bool result;
5472 bool temp2 = False ;
5473 PyObject * obj0 = 0 ;
5474 PyObject * obj1 = 0 ;
5475 char *kwnames[] = {
5476 (char *) "self",(char *) "s", NULL
5477 };
5478
5479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5481 {
5482 arg2 = wxString_in_helper(obj1);
5483 if (arg2 == NULL) SWIG_fail;
5484 temp2 = True;
5485 }
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5489
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 resultobj = PyInt_FromLong((long)result);
5494 {
5495 if (temp2)
5496 delete arg2;
5497 }
5498 return resultobj;
5499 fail:
5500 {
5501 if (temp2)
5502 delete arg2;
5503 }
5504 return NULL;
5505 }
5506
5507
5508 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5509 PyObject *resultobj;
5510 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5511 wxString result;
5512 PyObject * obj0 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = ((wxNativeFontInfo const *)arg1)->ToString();
5522
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 {
5527 #if wxUSE_UNICODE
5528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5529 #else
5530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5531 #endif
5532 }
5533 return resultobj;
5534 fail:
5535 return NULL;
5536 }
5537
5538
5539 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5540 PyObject *resultobj;
5541 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5542 wxString result;
5543 PyObject * obj0 = 0 ;
5544 char *kwnames[] = {
5545 (char *) "self", NULL
5546 };
5547
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5550 {
5551 PyThreadState* __tstate = wxPyBeginAllowThreads();
5552 result = wxNativeFontInfo___str__(arg1);
5553
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 {
5558 #if wxUSE_UNICODE
5559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5560 #else
5561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5562 #endif
5563 }
5564 return resultobj;
5565 fail:
5566 return NULL;
5567 }
5568
5569
5570 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj;
5572 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5573 wxString *arg2 = 0 ;
5574 bool result;
5575 bool temp2 = False ;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 char *kwnames[] = {
5579 (char *) "self",(char *) "s", NULL
5580 };
5581
5582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5584 {
5585 arg2 = wxString_in_helper(obj1);
5586 if (arg2 == NULL) SWIG_fail;
5587 temp2 = True;
5588 }
5589 {
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5592
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = PyInt_FromLong((long)result);
5597 {
5598 if (temp2)
5599 delete arg2;
5600 }
5601 return resultobj;
5602 fail:
5603 {
5604 if (temp2)
5605 delete arg2;
5606 }
5607 return NULL;
5608 }
5609
5610
5611 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj;
5613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5614 wxString result;
5615 PyObject * obj0 = 0 ;
5616 char *kwnames[] = {
5617 (char *) "self", NULL
5618 };
5619
5620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5622 {
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5625
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 {
5630 #if wxUSE_UNICODE
5631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5632 #else
5633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5634 #endif
5635 }
5636 return resultobj;
5637 fail:
5638 return NULL;
5639 }
5640
5641
5642 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5643 PyObject *obj;
5644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5645 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5646 Py_INCREF(obj);
5647 return Py_BuildValue((char *)"");
5648 }
5649 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj;
5651 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5652 wxString *arg2 = (wxString *) 0 ;
5653 PyObject * obj0 = 0 ;
5654 PyObject * obj1 = 0 ;
5655 char *kwnames[] = {
5656 (char *) "self",(char *) "facename", NULL
5657 };
5658
5659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5662 if (arg1) (arg1)->facename = *arg2;
5663
5664 Py_INCREF(Py_None); resultobj = Py_None;
5665 return resultobj;
5666 fail:
5667 return NULL;
5668 }
5669
5670
5671 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5672 PyObject *resultobj;
5673 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5674 wxString *result;
5675 PyObject * obj0 = 0 ;
5676 char *kwnames[] = {
5677 (char *) "self", NULL
5678 };
5679
5680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5682 result = (wxString *)& ((arg1)->facename);
5683
5684 {
5685 #if wxUSE_UNICODE
5686 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5687 #else
5688 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5689 #endif
5690 }
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj;
5699 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5700 int arg2 ;
5701 PyObject * obj0 = 0 ;
5702 char *kwnames[] = {
5703 (char *) "self",(char *) "encoding", NULL
5704 };
5705
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5708 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5709
5710 Py_INCREF(Py_None); resultobj = Py_None;
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj;
5719 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5720 int result;
5721 PyObject * obj0 = 0 ;
5722 char *kwnames[] = {
5723 (char *) "self", NULL
5724 };
5725
5726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5728 result = (int) ((arg1)->encoding);
5729
5730 resultobj = PyInt_FromLong((long)result);
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj;
5739 wxNativeEncodingInfo *result;
5740 char *kwnames[] = {
5741 NULL
5742 };
5743
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj;
5761 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5762 PyObject * obj0 = 0 ;
5763 char *kwnames[] = {
5764 (char *) "self", NULL
5765 };
5766
5767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 delete arg1;
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 Py_INCREF(Py_None); resultobj = Py_None;
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj;
5785 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5786 wxString *arg2 = 0 ;
5787 bool result;
5788 bool temp2 = False ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 char *kwnames[] = {
5792 (char *) "self",(char *) "s", NULL
5793 };
5794
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5797 {
5798 arg2 = wxString_in_helper(obj1);
5799 if (arg2 == NULL) SWIG_fail;
5800 temp2 = True;
5801 }
5802 {
5803 PyThreadState* __tstate = wxPyBeginAllowThreads();
5804 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5805
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 resultobj = PyInt_FromLong((long)result);
5810 {
5811 if (temp2)
5812 delete arg2;
5813 }
5814 return resultobj;
5815 fail:
5816 {
5817 if (temp2)
5818 delete arg2;
5819 }
5820 return NULL;
5821 }
5822
5823
5824 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj;
5826 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5827 wxString result;
5828 PyObject * obj0 = 0 ;
5829 char *kwnames[] = {
5830 (char *) "self", NULL
5831 };
5832
5833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 #if wxUSE_UNICODE
5844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5845 #else
5846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5847 #endif
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5856 PyObject *obj;
5857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5858 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5859 Py_INCREF(obj);
5860 return Py_BuildValue((char *)"");
5861 }
5862 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 int arg1 ;
5865 wxNativeEncodingInfo *result;
5866 char *kwnames[] = {
5867 (char *) "encoding", NULL
5868 };
5869
5870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5879 return resultobj;
5880 fail:
5881 return NULL;
5882 }
5883
5884
5885 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5886 PyObject *resultobj;
5887 wxNativeEncodingInfo *arg1 = 0 ;
5888 bool result;
5889 PyObject * obj0 = 0 ;
5890 char *kwnames[] = {
5891 (char *) "info", NULL
5892 };
5893
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5896 if (arg1 == NULL) {
5897 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5898 }
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5902
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 resultobj = PyInt_FromLong((long)result);
5907 return resultobj;
5908 fail:
5909 return NULL;
5910 }
5911
5912
5913 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5914 PyObject *resultobj;
5915 wxFontMapper *result;
5916 char *kwnames[] = {
5917 NULL
5918 };
5919
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 result = (wxFontMapper *)new wxFontMapper();
5924
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5929 return resultobj;
5930 fail:
5931 return NULL;
5932 }
5933
5934
5935 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5936 PyObject *resultobj;
5937 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5938 PyObject * obj0 = 0 ;
5939 char *kwnames[] = {
5940 (char *) "self", NULL
5941 };
5942
5943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 delete arg1;
5948
5949 wxPyEndAllowThreads(__tstate);
5950 if (PyErr_Occurred()) SWIG_fail;
5951 }
5952 Py_INCREF(Py_None); resultobj = Py_None;
5953 return resultobj;
5954 fail:
5955 return NULL;
5956 }
5957
5958
5959 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5960 PyObject *resultobj;
5961 wxFontMapper *result;
5962 char *kwnames[] = {
5963 NULL
5964 };
5965
5966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 result = (wxFontMapper *)wxFontMapper::Get();
5970
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj;
5983 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5984 wxFontMapper *result;
5985 PyObject * obj0 = 0 ;
5986 char *kwnames[] = {
5987 (char *) "mapper", NULL
5988 };
5989
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5995
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6000 return resultobj;
6001 fail:
6002 return NULL;
6003 }
6004
6005
6006 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj;
6008 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6009 wxString *arg2 = 0 ;
6010 bool arg3 = (bool) True ;
6011 int result;
6012 bool temp2 = False ;
6013 PyObject * obj0 = 0 ;
6014 PyObject * obj1 = 0 ;
6015 PyObject * obj2 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6022 {
6023 arg2 = wxString_in_helper(obj1);
6024 if (arg2 == NULL) SWIG_fail;
6025 temp2 = True;
6026 }
6027 if (obj2) {
6028 arg3 = PyInt_AsLong(obj2) ? true : false;
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 resultobj = PyInt_FromLong((long)result);
6039 {
6040 if (temp2)
6041 delete arg2;
6042 }
6043 return resultobj;
6044 fail:
6045 {
6046 if (temp2)
6047 delete arg2;
6048 }
6049 return NULL;
6050 }
6051
6052
6053 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj;
6055 size_t result;
6056 char *kwnames[] = {
6057 NULL
6058 };
6059
6060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6064
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = PyInt_FromLong((long)result);
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj;
6077 size_t arg1 ;
6078 int result;
6079 PyObject * obj0 = 0 ;
6080 char *kwnames[] = {
6081 (char *) "n", NULL
6082 };
6083
6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6085 arg1 = (size_t) PyInt_AsLong(obj0);
6086 if (PyErr_Occurred()) SWIG_fail;
6087 {
6088 PyThreadState* __tstate = wxPyBeginAllowThreads();
6089 result = (int)wxFontMapper::GetEncoding(arg1);
6090
6091 wxPyEndAllowThreads(__tstate);
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = PyInt_FromLong((long)result);
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj;
6103 int arg1 ;
6104 wxString result;
6105 char *kwnames[] = {
6106 (char *) "encoding", NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 {
6118 #if wxUSE_UNICODE
6119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6120 #else
6121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6122 #endif
6123 }
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj;
6132 int arg1 ;
6133 wxString result;
6134 char *kwnames[] = {
6135 (char *) "encoding", NULL
6136 };
6137
6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6139 {
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6142
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 {
6147 #if wxUSE_UNICODE
6148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6149 #else
6150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6151 #endif
6152 }
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6160 PyObject *resultobj;
6161 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6162 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6163 PyObject * obj0 = 0 ;
6164 PyObject * obj1 = 0 ;
6165 char *kwnames[] = {
6166 (char *) "self",(char *) "config", NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6171 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetConfig(arg2);
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 Py_INCREF(Py_None); resultobj = Py_None;
6180 return resultobj;
6181 fail:
6182 return NULL;
6183 }
6184
6185
6186 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6187 PyObject *resultobj;
6188 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6189 wxString *arg2 = 0 ;
6190 bool temp2 = False ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 char *kwnames[] = {
6194 (char *) "self",(char *) "prefix", NULL
6195 };
6196
6197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6199 {
6200 arg2 = wxString_in_helper(obj1);
6201 if (arg2 == NULL) SWIG_fail;
6202 temp2 = True;
6203 }
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 (arg1)->SetConfigPath((wxString const &)*arg2);
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 Py_INCREF(Py_None); resultobj = Py_None;
6212 {
6213 if (temp2)
6214 delete arg2;
6215 }
6216 return resultobj;
6217 fail:
6218 {
6219 if (temp2)
6220 delete arg2;
6221 }
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxString result;
6229 char *kwnames[] = {
6230 NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6234 {
6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
6236 result = wxFontMapper::GetDefaultConfigPath();
6237
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 {
6242 #if wxUSE_UNICODE
6243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6244 #else
6245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6246 #endif
6247 }
6248 return resultobj;
6249 fail:
6250 return NULL;
6251 }
6252
6253
6254 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6255 PyObject *resultobj;
6256 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6257 int arg2 ;
6258 wxString const &arg3_defvalue = wxPyEmptyString ;
6259 wxString *arg3 = (wxString *) &arg3_defvalue ;
6260 bool arg4 = (bool) True ;
6261 PyObject *result;
6262 bool temp3 = False ;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj2 = 0 ;
6265 PyObject * obj3 = 0 ;
6266 char *kwnames[] = {
6267 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6268 };
6269
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6272 if (obj2) {
6273 {
6274 arg3 = wxString_in_helper(obj2);
6275 if (arg3 == NULL) SWIG_fail;
6276 temp3 = True;
6277 }
6278 }
6279 if (obj3) {
6280 arg4 = PyInt_AsLong(obj3) ? true : false;
6281 if (PyErr_Occurred()) SWIG_fail;
6282 }
6283 {
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6286
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) SWIG_fail;
6289 }
6290 resultobj = result;
6291 {
6292 if (temp3)
6293 delete arg3;
6294 }
6295 return resultobj;
6296 fail:
6297 {
6298 if (temp3)
6299 delete arg3;
6300 }
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6308 int arg2 ;
6309 wxString const &arg3_defvalue = wxPyEmptyString ;
6310 wxString *arg3 = (wxString *) &arg3_defvalue ;
6311 bool result;
6312 bool temp3 = False ;
6313 PyObject * obj0 = 0 ;
6314 PyObject * obj2 = 0 ;
6315 char *kwnames[] = {
6316 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6317 };
6318
6319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6321 if (obj2) {
6322 {
6323 arg3 = wxString_in_helper(obj2);
6324 if (arg3 == NULL) SWIG_fail;
6325 temp3 = True;
6326 }
6327 }
6328 {
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6331
6332 wxPyEndAllowThreads(__tstate);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 resultobj = PyInt_FromLong((long)result);
6336 {
6337 if (temp3)
6338 delete arg3;
6339 }
6340 return resultobj;
6341 fail:
6342 {
6343 if (temp3)
6344 delete arg3;
6345 }
6346 return NULL;
6347 }
6348
6349
6350 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj;
6352 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6353 wxWindow *arg2 = (wxWindow *) 0 ;
6354 PyObject * obj0 = 0 ;
6355 PyObject * obj1 = 0 ;
6356 char *kwnames[] = {
6357 (char *) "self",(char *) "parent", NULL
6358 };
6359
6360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6362 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 (arg1)->SetDialogParent(arg2);
6366
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 Py_INCREF(Py_None); resultobj = Py_None;
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj;
6379 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6380 wxString *arg2 = 0 ;
6381 bool temp2 = False ;
6382 PyObject * obj0 = 0 ;
6383 PyObject * obj1 = 0 ;
6384 char *kwnames[] = {
6385 (char *) "self",(char *) "title", NULL
6386 };
6387
6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6390 {
6391 arg2 = wxString_in_helper(obj1);
6392 if (arg2 == NULL) SWIG_fail;
6393 temp2 = True;
6394 }
6395 {
6396 PyThreadState* __tstate = wxPyBeginAllowThreads();
6397 (arg1)->SetDialogTitle((wxString const &)*arg2);
6398
6399 wxPyEndAllowThreads(__tstate);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 Py_INCREF(Py_None); resultobj = Py_None;
6403 {
6404 if (temp2)
6405 delete arg2;
6406 }
6407 return resultobj;
6408 fail:
6409 {
6410 if (temp2)
6411 delete arg2;
6412 }
6413 return NULL;
6414 }
6415
6416
6417 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6418 PyObject *obj;
6419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6420 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6421 Py_INCREF(obj);
6422 return Py_BuildValue((char *)"");
6423 }
6424 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6425 PyObject *resultobj;
6426 int arg1 ;
6427 int arg2 ;
6428 int arg3 ;
6429 int arg4 ;
6430 bool arg5 = (bool) False ;
6431 wxString const &arg6_defvalue = wxPyEmptyString ;
6432 wxString *arg6 = (wxString *) &arg6_defvalue ;
6433 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6434 wxFont *result;
6435 bool temp6 = False ;
6436 PyObject * obj4 = 0 ;
6437 PyObject * obj5 = 0 ;
6438 char *kwnames[] = {
6439 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6440 };
6441
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6443 if (obj4) {
6444 arg5 = PyInt_AsLong(obj4) ? true : false;
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 if (obj5) {
6448 {
6449 arg6 = wxString_in_helper(obj5);
6450 if (arg6 == NULL) SWIG_fail;
6451 temp6 = True;
6452 }
6453 }
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6462 {
6463 if (temp6)
6464 delete arg6;
6465 }
6466 return resultobj;
6467 fail:
6468 {
6469 if (temp6)
6470 delete arg6;
6471 }
6472 return NULL;
6473 }
6474
6475
6476 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj;
6478 wxFont *arg1 = (wxFont *) 0 ;
6479 PyObject * obj0 = 0 ;
6480 char *kwnames[] = {
6481 (char *) "self", NULL
6482 };
6483
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6486 {
6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
6488 delete arg1;
6489
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 Py_INCREF(Py_None); resultobj = Py_None;
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj;
6502 wxNativeFontInfo *arg1 = 0 ;
6503 wxFont *result;
6504 PyObject * obj0 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "info", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6511 if (arg1 == NULL) {
6512 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6513 }
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6517
6518 wxPyEndAllowThreads(__tstate);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6522 return resultobj;
6523 fail:
6524 return NULL;
6525 }
6526
6527
6528 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj;
6530 wxString *arg1 = 0 ;
6531 wxFont *result;
6532 bool temp1 = False ;
6533 PyObject * obj0 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "info", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6539 {
6540 arg1 = wxString_in_helper(obj0);
6541 if (arg1 == NULL) SWIG_fail;
6542 temp1 = True;
6543 }
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6552 {
6553 if (temp1)
6554 delete arg1;
6555 }
6556 return resultobj;
6557 fail:
6558 {
6559 if (temp1)
6560 delete arg1;
6561 }
6562 return NULL;
6563 }
6564
6565
6566 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj;
6568 int arg1 ;
6569 int arg2 ;
6570 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6571 wxString const &arg4_defvalue = wxPyEmptyString ;
6572 wxString *arg4 = (wxString *) &arg4_defvalue ;
6573 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6574 wxFont *result;
6575 bool temp4 = False ;
6576 PyObject * obj3 = 0 ;
6577 char *kwnames[] = {
6578 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6579 };
6580
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6582 if (obj3) {
6583 {
6584 arg4 = wxString_in_helper(obj3);
6585 if (arg4 == NULL) SWIG_fail;
6586 temp4 = True;
6587 }
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6597 {
6598 if (temp4)
6599 delete arg4;
6600 }
6601 return resultobj;
6602 fail:
6603 {
6604 if (temp4)
6605 delete arg4;
6606 }
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 wxFont *arg1 = (wxFont *) 0 ;
6614 bool result;
6615 PyObject * obj0 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "self", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 result = (bool)((wxFont const *)arg1)->Ok();
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 resultobj = PyInt_FromLong((long)result);
6630 return resultobj;
6631 fail:
6632 return NULL;
6633 }
6634
6635
6636 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6637 PyObject *resultobj;
6638 wxFont *arg1 = (wxFont *) 0 ;
6639 wxFont *arg2 = 0 ;
6640 bool result;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char *kwnames[] = {
6644 (char *) "self",(char *) "font", NULL
6645 };
6646
6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6649 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6650 if (arg2 == NULL) {
6651 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6652 }
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6656
6657 wxPyEndAllowThreads(__tstate);
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 resultobj = PyInt_FromLong((long)result);
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6668 PyObject *resultobj;
6669 wxFont *arg1 = (wxFont *) 0 ;
6670 wxFont *arg2 = 0 ;
6671 bool result;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674 char *kwnames[] = {
6675 (char *) "self",(char *) "font", NULL
6676 };
6677
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6680 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6681 if (arg2 == NULL) {
6682 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6683 }
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 resultobj = PyInt_FromLong((long)result);
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject *resultobj;
6700 wxFont *arg1 = (wxFont *) 0 ;
6701 int result;
6702 PyObject * obj0 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6709 {
6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
6711 result = (int)((wxFont const *)arg1)->GetPointSize();
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = PyInt_FromLong((long)result);
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj;
6725 wxFont *arg1 = (wxFont *) 0 ;
6726 int result;
6727 PyObject * obj0 = 0 ;
6728 char *kwnames[] = {
6729 (char *) "self", NULL
6730 };
6731
6732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (int)((wxFont const *)arg1)->GetFamily();
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = PyInt_FromLong((long)result);
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxFont *arg1 = (wxFont *) 0 ;
6751 int result;
6752 PyObject * obj0 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "self", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6759 {
6760 PyThreadState* __tstate = wxPyBeginAllowThreads();
6761 result = (int)((wxFont const *)arg1)->GetStyle();
6762
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 resultobj = PyInt_FromLong((long)result);
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxFont *arg1 = (wxFont *) 0 ;
6776 int result;
6777 PyObject * obj0 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "self", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 result = (int)((wxFont const *)arg1)->GetWeight();
6787
6788 wxPyEndAllowThreads(__tstate);
6789 if (PyErr_Occurred()) SWIG_fail;
6790 }
6791 resultobj = PyInt_FromLong((long)result);
6792 return resultobj;
6793 fail:
6794 return NULL;
6795 }
6796
6797
6798 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj;
6800 wxFont *arg1 = (wxFont *) 0 ;
6801 bool result;
6802 PyObject * obj0 = 0 ;
6803 char *kwnames[] = {
6804 (char *) "self", NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6809 {
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 resultobj = PyInt_FromLong((long)result);
6817 return resultobj;
6818 fail:
6819 return NULL;
6820 }
6821
6822
6823 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj;
6825 wxFont *arg1 = (wxFont *) 0 ;
6826 wxString result;
6827 PyObject * obj0 = 0 ;
6828 char *kwnames[] = {
6829 (char *) "self", NULL
6830 };
6831
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 result = ((wxFont const *)arg1)->GetFaceName();
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 #if wxUSE_UNICODE
6843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6844 #else
6845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6846 #endif
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 wxFont *arg1 = (wxFont *) 0 ;
6857 int result;
6858 PyObject * obj0 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "self", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (int)((wxFont const *)arg1)->GetEncoding();
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 resultobj = PyInt_FromLong((long)result);
6873 return resultobj;
6874 fail:
6875 return NULL;
6876 }
6877
6878
6879 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6880 PyObject *resultobj;
6881 wxFont *arg1 = (wxFont *) 0 ;
6882 wxNativeFontInfo *result;
6883 PyObject * obj0 = 0 ;
6884 char *kwnames[] = {
6885 (char *) "self", NULL
6886 };
6887
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxFont *arg1 = (wxFont *) 0 ;
6907 bool result;
6908 PyObject * obj0 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "self", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = PyInt_FromLong((long)result);
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxFont *arg1 = (wxFont *) 0 ;
6932 wxString result;
6933 PyObject * obj0 = 0 ;
6934 char *kwnames[] = {
6935 (char *) "self", NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 {
6948 #if wxUSE_UNICODE
6949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6950 #else
6951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6952 #endif
6953 }
6954 return resultobj;
6955 fail:
6956 return NULL;
6957 }
6958
6959
6960 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6961 PyObject *resultobj;
6962 wxFont *arg1 = (wxFont *) 0 ;
6963 wxString result;
6964 PyObject * obj0 = 0 ;
6965 char *kwnames[] = {
6966 (char *) "self", NULL
6967 };
6968
6969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6974
6975 wxPyEndAllowThreads(__tstate);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
6978 {
6979 #if wxUSE_UNICODE
6980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6981 #else
6982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6983 #endif
6984 }
6985 return resultobj;
6986 fail:
6987 return NULL;
6988 }
6989
6990
6991 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj;
6993 wxFont *arg1 = (wxFont *) 0 ;
6994 int arg2 ;
6995 PyObject * obj0 = 0 ;
6996 char *kwnames[] = {
6997 (char *) "self",(char *) "pointSize", NULL
6998 };
6999
7000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 (arg1)->SetPointSize(arg2);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 Py_INCREF(Py_None); resultobj = Py_None;
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxFont *arg1 = (wxFont *) 0 ;
7019 int arg2 ;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self",(char *) "family", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 (arg1)->SetFamily(arg2);
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 Py_INCREF(Py_None); resultobj = Py_None;
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxFont *arg1 = (wxFont *) 0 ;
7044 int arg2 ;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "self",(char *) "style", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 (arg1)->SetStyle(arg2);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 Py_INCREF(Py_None); resultobj = Py_None;
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj;
7068 wxFont *arg1 = (wxFont *) 0 ;
7069 int arg2 ;
7070 PyObject * obj0 = 0 ;
7071 char *kwnames[] = {
7072 (char *) "self",(char *) "weight", NULL
7073 };
7074
7075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7077 {
7078 PyThreadState* __tstate = wxPyBeginAllowThreads();
7079 (arg1)->SetWeight(arg2);
7080
7081 wxPyEndAllowThreads(__tstate);
7082 if (PyErr_Occurred()) SWIG_fail;
7083 }
7084 Py_INCREF(Py_None); resultobj = Py_None;
7085 return resultobj;
7086 fail:
7087 return NULL;
7088 }
7089
7090
7091 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7092 PyObject *resultobj;
7093 wxFont *arg1 = (wxFont *) 0 ;
7094 wxString *arg2 = 0 ;
7095 bool temp2 = False ;
7096 PyObject * obj0 = 0 ;
7097 PyObject * obj1 = 0 ;
7098 char *kwnames[] = {
7099 (char *) "self",(char *) "faceName", NULL
7100 };
7101
7102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7104 {
7105 arg2 = wxString_in_helper(obj1);
7106 if (arg2 == NULL) SWIG_fail;
7107 temp2 = True;
7108 }
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 (arg1)->SetFaceName((wxString const &)*arg2);
7112
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 Py_INCREF(Py_None); resultobj = Py_None;
7117 {
7118 if (temp2)
7119 delete arg2;
7120 }
7121 return resultobj;
7122 fail:
7123 {
7124 if (temp2)
7125 delete arg2;
7126 }
7127 return NULL;
7128 }
7129
7130
7131 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj;
7133 wxFont *arg1 = (wxFont *) 0 ;
7134 bool arg2 ;
7135 PyObject * obj0 = 0 ;
7136 PyObject * obj1 = 0 ;
7137 char *kwnames[] = {
7138 (char *) "self",(char *) "underlined", NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7143 arg2 = PyInt_AsLong(obj1) ? true : false;
7144 if (PyErr_Occurred()) SWIG_fail;
7145 {
7146 PyThreadState* __tstate = wxPyBeginAllowThreads();
7147 (arg1)->SetUnderlined(arg2);
7148
7149 wxPyEndAllowThreads(__tstate);
7150 if (PyErr_Occurred()) SWIG_fail;
7151 }
7152 Py_INCREF(Py_None); resultobj = Py_None;
7153 return resultobj;
7154 fail:
7155 return NULL;
7156 }
7157
7158
7159 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7160 PyObject *resultobj;
7161 wxFont *arg1 = (wxFont *) 0 ;
7162 int arg2 ;
7163 PyObject * obj0 = 0 ;
7164 char *kwnames[] = {
7165 (char *) "self",(char *) "encoding", NULL
7166 };
7167
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 (arg1)->SetEncoding((wxFontEncoding )arg2);
7173
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 Py_INCREF(Py_None); resultobj = Py_None;
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj;
7186 wxFont *arg1 = (wxFont *) 0 ;
7187 wxNativeFontInfo *arg2 = 0 ;
7188 PyObject * obj0 = 0 ;
7189 PyObject * obj1 = 0 ;
7190 char *kwnames[] = {
7191 (char *) "self",(char *) "info", NULL
7192 };
7193
7194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7196 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7197 if (arg2 == NULL) {
7198 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7199 }
7200 {
7201 PyThreadState* __tstate = wxPyBeginAllowThreads();
7202 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7203
7204 wxPyEndAllowThreads(__tstate);
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 Py_INCREF(Py_None); resultobj = Py_None;
7208 return resultobj;
7209 fail:
7210 return NULL;
7211 }
7212
7213
7214 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7215 PyObject *resultobj;
7216 wxFont *arg1 = (wxFont *) 0 ;
7217 wxString *arg2 = 0 ;
7218 bool temp2 = False ;
7219 PyObject * obj0 = 0 ;
7220 PyObject * obj1 = 0 ;
7221 char *kwnames[] = {
7222 (char *) "self",(char *) "info", NULL
7223 };
7224
7225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7227 {
7228 arg2 = wxString_in_helper(obj1);
7229 if (arg2 == NULL) SWIG_fail;
7230 temp2 = True;
7231 }
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7235
7236 wxPyEndAllowThreads(__tstate);
7237 if (PyErr_Occurred()) SWIG_fail;
7238 }
7239 Py_INCREF(Py_None); resultobj = Py_None;
7240 {
7241 if (temp2)
7242 delete arg2;
7243 }
7244 return resultobj;
7245 fail:
7246 {
7247 if (temp2)
7248 delete arg2;
7249 }
7250 return NULL;
7251 }
7252
7253
7254 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj;
7256 wxFont *arg1 = (wxFont *) 0 ;
7257 wxString *arg2 = 0 ;
7258 bool temp2 = False ;
7259 PyObject * obj0 = 0 ;
7260 PyObject * obj1 = 0 ;
7261 char *kwnames[] = {
7262 (char *) "self",(char *) "info", NULL
7263 };
7264
7265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7267 {
7268 arg2 = wxString_in_helper(obj1);
7269 if (arg2 == NULL) SWIG_fail;
7270 temp2 = True;
7271 }
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 {
7281 if (temp2)
7282 delete arg2;
7283 }
7284 return resultobj;
7285 fail:
7286 {
7287 if (temp2)
7288 delete arg2;
7289 }
7290 return NULL;
7291 }
7292
7293
7294 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj;
7296 wxFont *arg1 = (wxFont *) 0 ;
7297 wxString result;
7298 PyObject * obj0 = 0 ;
7299 char *kwnames[] = {
7300 (char *) "self", NULL
7301 };
7302
7303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = ((wxFont const *)arg1)->GetFamilyString();
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 {
7313 #if wxUSE_UNICODE
7314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7315 #else
7316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7317 #endif
7318 }
7319 return resultobj;
7320 fail:
7321 return NULL;
7322 }
7323
7324
7325 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7326 PyObject *resultobj;
7327 wxFont *arg1 = (wxFont *) 0 ;
7328 wxString result;
7329 PyObject * obj0 = 0 ;
7330 char *kwnames[] = {
7331 (char *) "self", NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 result = ((wxFont const *)arg1)->GetStyleString();
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 {
7344 #if wxUSE_UNICODE
7345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7346 #else
7347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7348 #endif
7349 }
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxFont *arg1 = (wxFont *) 0 ;
7359 wxString result;
7360 PyObject * obj0 = 0 ;
7361 char *kwnames[] = {
7362 (char *) "self", NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = ((wxFont const *)arg1)->GetWeightString();
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375 #if wxUSE_UNICODE
7376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7377 #else
7378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7379 #endif
7380 }
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxFont *arg1 = (wxFont *) 0 ;
7390 bool arg2 = (bool) True ;
7391 PyObject * obj0 = 0 ;
7392 PyObject * obj1 = 0 ;
7393 char *kwnames[] = {
7394 (char *) "self",(char *) "no", NULL
7395 };
7396
7397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7399 if (obj1) {
7400 arg2 = PyInt_AsLong(obj1) ? true : false;
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 (arg1)->SetNoAntiAliasing(arg2);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 Py_INCREF(Py_None); resultobj = Py_None;
7411 return resultobj;
7412 fail:
7413 return NULL;
7414 }
7415
7416
7417 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj;
7419 wxFont *arg1 = (wxFont *) 0 ;
7420 bool result;
7421 PyObject * obj0 = 0 ;
7422 char *kwnames[] = {
7423 (char *) "self", NULL
7424 };
7425
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7428 {
7429 PyThreadState* __tstate = wxPyBeginAllowThreads();
7430 result = (bool)(arg1)->GetNoAntiAliasing();
7431
7432 wxPyEndAllowThreads(__tstate);
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 resultobj = PyInt_FromLong((long)result);
7436 return resultobj;
7437 fail:
7438 return NULL;
7439 }
7440
7441
7442 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj;
7444 int result;
7445 char *kwnames[] = {
7446 NULL
7447 };
7448
7449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7450 {
7451 PyThreadState* __tstate = wxPyBeginAllowThreads();
7452 result = (int)wxFont::GetDefaultEncoding();
7453
7454 wxPyEndAllowThreads(__tstate);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 resultobj = PyInt_FromLong((long)result);
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 int arg1 ;
7467 char *kwnames[] = {
7468 (char *) "encoding", NULL
7469 };
7470
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 Py_INCREF(Py_None); resultobj = Py_None;
7480 return resultobj;
7481 fail:
7482 return NULL;
7483 }
7484
7485
7486 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7487 PyObject *obj;
7488 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7489 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7490 Py_INCREF(obj);
7491 return Py_BuildValue((char *)"");
7492 }
7493 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj;
7495 wxPyFontEnumerator *result;
7496 char *kwnames[] = {
7497 NULL
7498 };
7499
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7504
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7516 PyObject *resultobj;
7517 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "self", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
7527 delete arg1;
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 Py_INCREF(Py_None); resultobj = Py_None;
7533 return resultobj;
7534 fail:
7535 return NULL;
7536 }
7537
7538
7539 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7540 PyObject *resultobj;
7541 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7542 PyObject *arg2 = (PyObject *) 0 ;
7543 PyObject *arg3 = (PyObject *) 0 ;
7544 bool arg4 ;
7545 PyObject * obj0 = 0 ;
7546 PyObject * obj1 = 0 ;
7547 PyObject * obj2 = 0 ;
7548 PyObject * obj3 = 0 ;
7549 char *kwnames[] = {
7550 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7551 };
7552
7553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7555 arg2 = obj1;
7556 arg3 = obj2;
7557 arg4 = PyInt_AsLong(obj3) ? true : false;
7558 if (PyErr_Occurred()) SWIG_fail;
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7562
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 Py_INCREF(Py_None); resultobj = Py_None;
7567 return resultobj;
7568 fail:
7569 return NULL;
7570 }
7571
7572
7573 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7574 PyObject *resultobj;
7575 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7576 int arg2 = (int) wxFONTENCODING_SYSTEM ;
7577 bool arg3 = (bool) False ;
7578 bool result;
7579 PyObject * obj0 = 0 ;
7580 PyObject * obj2 = 0 ;
7581 char *kwnames[] = {
7582 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7583 };
7584
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7587 if (obj2) {
7588 arg3 = PyInt_AsLong(obj2) ? true : false;
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7594
7595 wxPyEndAllowThreads(__tstate);
7596 if (PyErr_Occurred()) SWIG_fail;
7597 }
7598 resultobj = PyInt_FromLong((long)result);
7599 return resultobj;
7600 fail:
7601 return NULL;
7602 }
7603
7604
7605 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7606 PyObject *resultobj;
7607 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7608 wxString const &arg2_defvalue = wxPyEmptyString ;
7609 wxString *arg2 = (wxString *) &arg2_defvalue ;
7610 bool result;
7611 bool temp2 = False ;
7612 PyObject * obj0 = 0 ;
7613 PyObject * obj1 = 0 ;
7614 char *kwnames[] = {
7615 (char *) "self",(char *) "facename", NULL
7616 };
7617
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7620 if (obj1) {
7621 {
7622 arg2 = wxString_in_helper(obj1);
7623 if (arg2 == NULL) SWIG_fail;
7624 temp2 = True;
7625 }
7626 }
7627 {
7628 PyThreadState* __tstate = wxPyBeginAllowThreads();
7629 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7630
7631 wxPyEndAllowThreads(__tstate);
7632 if (PyErr_Occurred()) SWIG_fail;
7633 }
7634 resultobj = PyInt_FromLong((long)result);
7635 {
7636 if (temp2)
7637 delete arg2;
7638 }
7639 return resultobj;
7640 fail:
7641 {
7642 if (temp2)
7643 delete arg2;
7644 }
7645 return NULL;
7646 }
7647
7648
7649 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7650 PyObject *resultobj;
7651 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7652 PyObject *result;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "self", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7663
7664 wxPyEndAllowThreads(__tstate);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 resultobj = result;
7668 return resultobj;
7669 fail:
7670 return NULL;
7671 }
7672
7673
7674 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7675 PyObject *resultobj;
7676 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7677 PyObject *result;
7678 PyObject * obj0 = 0 ;
7679 char *kwnames[] = {
7680 (char *) "self", NULL
7681 };
7682
7683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7685 {
7686 PyThreadState* __tstate = wxPyBeginAllowThreads();
7687 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7688
7689 wxPyEndAllowThreads(__tstate);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 resultobj = result;
7693 return resultobj;
7694 fail:
7695 return NULL;
7696 }
7697
7698
7699 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7700 PyObject *obj;
7701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7702 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7703 Py_INCREF(obj);
7704 return Py_BuildValue((char *)"");
7705 }
7706 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj;
7708 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7709 int arg2 ;
7710 PyObject * obj0 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self",(char *) "Language", NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7717 if (arg1) (arg1)->Language = arg2;
7718
7719 Py_INCREF(Py_None); resultobj = Py_None;
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj;
7728 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7729 int result;
7730 PyObject * obj0 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "self", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7737 result = (int) ((arg1)->Language);
7738
7739 resultobj = PyInt_FromLong((long)result);
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7749 wxString *arg2 = (wxString *) 0 ;
7750 PyObject * obj0 = 0 ;
7751 PyObject * obj1 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "self",(char *) "CanonicalName", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7758 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7759 if (arg1) (arg1)->CanonicalName = *arg2;
7760
7761 Py_INCREF(Py_None); resultobj = Py_None;
7762 return resultobj;
7763 fail:
7764 return NULL;
7765 }
7766
7767
7768 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7769 PyObject *resultobj;
7770 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7771 wxString *result;
7772 PyObject * obj0 = 0 ;
7773 char *kwnames[] = {
7774 (char *) "self", NULL
7775 };
7776
7777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7779 result = (wxString *)& ((arg1)->CanonicalName);
7780
7781 {
7782 #if wxUSE_UNICODE
7783 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7784 #else
7785 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7786 #endif
7787 }
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj;
7796 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7797 wxString *arg2 = (wxString *) 0 ;
7798 PyObject * obj0 = 0 ;
7799 PyObject * obj1 = 0 ;
7800 char *kwnames[] = {
7801 (char *) "self",(char *) "Description", NULL
7802 };
7803
7804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7806 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7807 if (arg1) (arg1)->Description = *arg2;
7808
7809 Py_INCREF(Py_None); resultobj = Py_None;
7810 return resultobj;
7811 fail:
7812 return NULL;
7813 }
7814
7815
7816 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7817 PyObject *resultobj;
7818 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7819 wxString *result;
7820 PyObject * obj0 = 0 ;
7821 char *kwnames[] = {
7822 (char *) "self", NULL
7823 };
7824
7825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7827 result = (wxString *)& ((arg1)->Description);
7828
7829 {
7830 #if wxUSE_UNICODE
7831 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7832 #else
7833 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7834 #endif
7835 }
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7843 PyObject *obj;
7844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7845 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7846 Py_INCREF(obj);
7847 return Py_BuildValue((char *)"");
7848 }
7849 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7850 PyObject *resultobj;
7851 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7852 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7853 wxLocale *result;
7854 char *kwnames[] = {
7855 (char *) "language",(char *) "flags", NULL
7856 };
7857
7858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7859 {
7860 PyThreadState* __tstate = wxPyBeginAllowThreads();
7861 result = (wxLocale *)new wxLocale(arg1,arg2);
7862
7863 wxPyEndAllowThreads(__tstate);
7864 if (PyErr_Occurred()) SWIG_fail;
7865 }
7866 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7867 return resultobj;
7868 fail:
7869 return NULL;
7870 }
7871
7872
7873 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxLocale *arg1 = (wxLocale *) 0 ;
7876 PyObject * obj0 = 0 ;
7877 char *kwnames[] = {
7878 (char *) "self", NULL
7879 };
7880
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 delete arg1;
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 Py_INCREF(Py_None); resultobj = Py_None;
7891 return resultobj;
7892 fail:
7893 return NULL;
7894 }
7895
7896
7897 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj;
7899 wxLocale *arg1 = (wxLocale *) 0 ;
7900 wxString *arg2 = 0 ;
7901 wxString const &arg3_defvalue = wxPyEmptyString ;
7902 wxString *arg3 = (wxString *) &arg3_defvalue ;
7903 wxString const &arg4_defvalue = wxPyEmptyString ;
7904 wxString *arg4 = (wxString *) &arg4_defvalue ;
7905 bool arg5 = (bool) True ;
7906 bool arg6 = (bool) False ;
7907 bool result;
7908 bool temp2 = False ;
7909 bool temp3 = False ;
7910 bool temp4 = False ;
7911 PyObject * obj0 = 0 ;
7912 PyObject * obj1 = 0 ;
7913 PyObject * obj2 = 0 ;
7914 PyObject * obj3 = 0 ;
7915 PyObject * obj4 = 0 ;
7916 PyObject * obj5 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7923 {
7924 arg2 = wxString_in_helper(obj1);
7925 if (arg2 == NULL) SWIG_fail;
7926 temp2 = True;
7927 }
7928 if (obj2) {
7929 {
7930 arg3 = wxString_in_helper(obj2);
7931 if (arg3 == NULL) SWIG_fail;
7932 temp3 = True;
7933 }
7934 }
7935 if (obj3) {
7936 {
7937 arg4 = wxString_in_helper(obj3);
7938 if (arg4 == NULL) SWIG_fail;
7939 temp4 = True;
7940 }
7941 }
7942 if (obj4) {
7943 arg5 = PyInt_AsLong(obj4) ? true : false;
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 if (obj5) {
7947 arg6 = PyInt_AsLong(obj5) ? true : false;
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7953
7954 wxPyEndAllowThreads(__tstate);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 }
7957 resultobj = PyInt_FromLong((long)result);
7958 {
7959 if (temp2)
7960 delete arg2;
7961 }
7962 {
7963 if (temp3)
7964 delete arg3;
7965 }
7966 {
7967 if (temp4)
7968 delete arg4;
7969 }
7970 return resultobj;
7971 fail:
7972 {
7973 if (temp2)
7974 delete arg2;
7975 }
7976 {
7977 if (temp3)
7978 delete arg3;
7979 }
7980 {
7981 if (temp4)
7982 delete arg4;
7983 }
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj;
7990 wxLocale *arg1 = (wxLocale *) 0 ;
7991 int arg2 = (int) wxLANGUAGE_DEFAULT ;
7992 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7993 bool result;
7994 PyObject * obj0 = 0 ;
7995 char *kwnames[] = {
7996 (char *) "self",(char *) "language",(char *) "flags", NULL
7997 };
7998
7999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (bool)(arg1)->Init(arg2,arg3);
8004
8005 wxPyEndAllowThreads(__tstate);
8006 if (PyErr_Occurred()) SWIG_fail;
8007 }
8008 resultobj = PyInt_FromLong((long)result);
8009 return resultobj;
8010 fail:
8011 return NULL;
8012 }
8013
8014
8015 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj;
8017 int result;
8018 char *kwnames[] = {
8019 NULL
8020 };
8021
8022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8023 {
8024 PyThreadState* __tstate = wxPyBeginAllowThreads();
8025 result = (int)wxLocale::GetSystemLanguage();
8026
8027 wxPyEndAllowThreads(__tstate);
8028 if (PyErr_Occurred()) SWIG_fail;
8029 }
8030 resultobj = PyInt_FromLong((long)result);
8031 return resultobj;
8032 fail:
8033 return NULL;
8034 }
8035
8036
8037 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 int result;
8040 char *kwnames[] = {
8041 NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (int)wxLocale::GetSystemEncoding();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = PyInt_FromLong((long)result);
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxString result;
8062 char *kwnames[] = {
8063 NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = wxLocale::GetSystemEncodingName();
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 #if wxUSE_UNICODE
8076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8077 #else
8078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8079 #endif
8080 }
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj;
8089 wxLocale *arg1 = (wxLocale *) 0 ;
8090 bool result;
8091 PyObject * obj0 = 0 ;
8092 char *kwnames[] = {
8093 (char *) "self", NULL
8094 };
8095
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8098 {
8099 PyThreadState* __tstate = wxPyBeginAllowThreads();
8100 result = (bool)((wxLocale const *)arg1)->IsOk();
8101
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 resultobj = PyInt_FromLong((long)result);
8106 return resultobj;
8107 fail:
8108 return NULL;
8109 }
8110
8111
8112 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj;
8114 wxLocale *arg1 = (wxLocale *) 0 ;
8115 wxString result;
8116 PyObject * obj0 = 0 ;
8117 char *kwnames[] = {
8118 (char *) "self", NULL
8119 };
8120
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8123 {
8124 PyThreadState* __tstate = wxPyBeginAllowThreads();
8125 result = ((wxLocale const *)arg1)->GetLocale();
8126
8127 wxPyEndAllowThreads(__tstate);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 {
8131 #if wxUSE_UNICODE
8132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8133 #else
8134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8135 #endif
8136 }
8137 return resultobj;
8138 fail:
8139 return NULL;
8140 }
8141
8142
8143 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj;
8145 wxLocale *arg1 = (wxLocale *) 0 ;
8146 int result;
8147 PyObject * obj0 = 0 ;
8148 char *kwnames[] = {
8149 (char *) "self", NULL
8150 };
8151
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 result = (int)((wxLocale const *)arg1)->GetLanguage();
8157
8158 wxPyEndAllowThreads(__tstate);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 resultobj = PyInt_FromLong((long)result);
8162 return resultobj;
8163 fail:
8164 return NULL;
8165 }
8166
8167
8168 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8169 PyObject *resultobj;
8170 wxLocale *arg1 = (wxLocale *) 0 ;
8171 wxString result;
8172 PyObject * obj0 = 0 ;
8173 char *kwnames[] = {
8174 (char *) "self", NULL
8175 };
8176
8177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8179 {
8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
8181 result = ((wxLocale const *)arg1)->GetSysName();
8182
8183 wxPyEndAllowThreads(__tstate);
8184 if (PyErr_Occurred()) SWIG_fail;
8185 }
8186 {
8187 #if wxUSE_UNICODE
8188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8189 #else
8190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8191 #endif
8192 }
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxLocale *arg1 = (wxLocale *) 0 ;
8202 wxString result;
8203 PyObject * obj0 = 0 ;
8204 char *kwnames[] = {
8205 (char *) "self", NULL
8206 };
8207
8208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 result = ((wxLocale const *)arg1)->GetCanonicalName();
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 {
8218 #if wxUSE_UNICODE
8219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8220 #else
8221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8222 #endif
8223 }
8224 return resultobj;
8225 fail:
8226 return NULL;
8227 }
8228
8229
8230 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8231 PyObject *resultobj;
8232 wxString *arg1 = 0 ;
8233 bool temp1 = False ;
8234 PyObject * obj0 = 0 ;
8235 char *kwnames[] = {
8236 (char *) "prefix", NULL
8237 };
8238
8239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8240 {
8241 arg1 = wxString_in_helper(obj0);
8242 if (arg1 == NULL) SWIG_fail;
8243 temp1 = True;
8244 }
8245 {
8246 PyThreadState* __tstate = wxPyBeginAllowThreads();
8247 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8248
8249 wxPyEndAllowThreads(__tstate);
8250 if (PyErr_Occurred()) SWIG_fail;
8251 }
8252 Py_INCREF(Py_None); resultobj = Py_None;
8253 {
8254 if (temp1)
8255 delete arg1;
8256 }
8257 return resultobj;
8258 fail:
8259 {
8260 if (temp1)
8261 delete arg1;
8262 }
8263 return NULL;
8264 }
8265
8266
8267 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8268 PyObject *resultobj;
8269 wxLocale *arg1 = (wxLocale *) 0 ;
8270 wxString *arg2 = 0 ;
8271 bool result;
8272 bool temp2 = False ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self",(char *) "szDomain", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8281 {
8282 arg2 = wxString_in_helper(obj1);
8283 if (arg2 == NULL) SWIG_fail;
8284 temp2 = True;
8285 }
8286 {
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8289
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 resultobj = PyInt_FromLong((long)result);
8294 {
8295 if (temp2)
8296 delete arg2;
8297 }
8298 return resultobj;
8299 fail:
8300 {
8301 if (temp2)
8302 delete arg2;
8303 }
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8309 PyObject *resultobj;
8310 wxLocale *arg1 = (wxLocale *) 0 ;
8311 wxString *arg2 = 0 ;
8312 bool result;
8313 bool temp2 = False ;
8314 PyObject * obj0 = 0 ;
8315 PyObject * obj1 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self",(char *) "szDomain", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8322 {
8323 arg2 = wxString_in_helper(obj1);
8324 if (arg2 == NULL) SWIG_fail;
8325 temp2 = True;
8326 }
8327 {
8328 PyThreadState* __tstate = wxPyBeginAllowThreads();
8329 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8330
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = PyInt_FromLong((long)result);
8335 {
8336 if (temp2)
8337 delete arg2;
8338 }
8339 return resultobj;
8340 fail:
8341 {
8342 if (temp2)
8343 delete arg2;
8344 }
8345 return NULL;
8346 }
8347
8348
8349 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj;
8351 int arg1 ;
8352 wxLanguageInfo *result;
8353 char *kwnames[] = {
8354 (char *) "lang", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8358 {
8359 PyThreadState* __tstate = wxPyBeginAllowThreads();
8360 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8361
8362 wxPyEndAllowThreads(__tstate);
8363 if (PyErr_Occurred()) SWIG_fail;
8364 }
8365 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8366 return resultobj;
8367 fail:
8368 return NULL;
8369 }
8370
8371
8372 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj;
8374 int arg1 ;
8375 wxString result;
8376 char *kwnames[] = {
8377 (char *) "lang", NULL
8378 };
8379
8380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 result = wxLocale::GetLanguageName(arg1);
8384
8385 wxPyEndAllowThreads(__tstate);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 {
8389 #if wxUSE_UNICODE
8390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8391 #else
8392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8393 #endif
8394 }
8395 return resultobj;
8396 fail:
8397 return NULL;
8398 }
8399
8400
8401 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 wxString *arg1 = 0 ;
8404 wxLanguageInfo *result;
8405 bool temp1 = False ;
8406 PyObject * obj0 = 0 ;
8407 char *kwnames[] = {
8408 (char *) "locale", NULL
8409 };
8410
8411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8412 {
8413 arg1 = wxString_in_helper(obj0);
8414 if (arg1 == NULL) SWIG_fail;
8415 temp1 = True;
8416 }
8417 {
8418 PyThreadState* __tstate = wxPyBeginAllowThreads();
8419 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8420
8421 wxPyEndAllowThreads(__tstate);
8422 if (PyErr_Occurred()) SWIG_fail;
8423 }
8424 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8425 {
8426 if (temp1)
8427 delete arg1;
8428 }
8429 return resultobj;
8430 fail:
8431 {
8432 if (temp1)
8433 delete arg1;
8434 }
8435 return NULL;
8436 }
8437
8438
8439 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj;
8441 wxLanguageInfo *arg1 = 0 ;
8442 PyObject * obj0 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "info", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8449 if (arg1 == NULL) {
8450 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8451 }
8452 {
8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
8454 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8455
8456 wxPyEndAllowThreads(__tstate);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 Py_INCREF(Py_None); resultobj = Py_None;
8460 return resultobj;
8461 fail:
8462 return NULL;
8463 }
8464
8465
8466 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8467 PyObject *resultobj;
8468 wxLocale *arg1 = (wxLocale *) 0 ;
8469 wxString *arg2 = 0 ;
8470 wxString const &arg3_defvalue = wxPyEmptyString ;
8471 wxString *arg3 = (wxString *) &arg3_defvalue ;
8472 wxString result;
8473 bool temp2 = False ;
8474 bool temp3 = False ;
8475 PyObject * obj0 = 0 ;
8476 PyObject * obj1 = 0 ;
8477 PyObject * obj2 = 0 ;
8478 char *kwnames[] = {
8479 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8480 };
8481
8482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8484 {
8485 arg2 = wxString_in_helper(obj1);
8486 if (arg2 == NULL) SWIG_fail;
8487 temp2 = True;
8488 }
8489 if (obj2) {
8490 {
8491 arg3 = wxString_in_helper(obj2);
8492 if (arg3 == NULL) SWIG_fail;
8493 temp3 = True;
8494 }
8495 }
8496 {
8497 PyThreadState* __tstate = wxPyBeginAllowThreads();
8498 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8499
8500 wxPyEndAllowThreads(__tstate);
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 {
8504 #if wxUSE_UNICODE
8505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8506 #else
8507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8508 #endif
8509 }
8510 {
8511 if (temp2)
8512 delete arg2;
8513 }
8514 {
8515 if (temp3)
8516 delete arg3;
8517 }
8518 return resultobj;
8519 fail:
8520 {
8521 if (temp2)
8522 delete arg2;
8523 }
8524 {
8525 if (temp3)
8526 delete arg3;
8527 }
8528 return NULL;
8529 }
8530
8531
8532 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8533 PyObject *resultobj;
8534 wxLocale *arg1 = (wxLocale *) 0 ;
8535 wxString *result;
8536 PyObject * obj0 = 0 ;
8537 char *kwnames[] = {
8538 (char *) "self", NULL
8539 };
8540
8541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 {
8546 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8547 result = (wxString *) &_result_ref;
8548 }
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 {
8554 #if wxUSE_UNICODE
8555 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8556 #else
8557 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8558 #endif
8559 }
8560 return resultobj;
8561 fail:
8562 return NULL;
8563 }
8564
8565
8566 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8567 PyObject *obj;
8568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8569 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8570 Py_INCREF(obj);
8571 return Py_BuildValue((char *)"");
8572 }
8573 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8574 PyObject *resultobj;
8575 wxLocale *result;
8576 char *kwnames[] = {
8577 NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 result = (wxLocale *)wxGetLocale();
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8596 PyObject *resultobj;
8597 wxString *arg1 = 0 ;
8598 wxString result;
8599 bool temp1 = False ;
8600 PyObject * obj0 = 0 ;
8601
8602 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8603 {
8604 arg1 = wxString_in_helper(obj0);
8605 if (arg1 == NULL) SWIG_fail;
8606 temp1 = True;
8607 }
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 result = wxGetTranslation((wxString const &)*arg1);
8611
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 {
8616 #if wxUSE_UNICODE
8617 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8618 #else
8619 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8620 #endif
8621 }
8622 {
8623 if (temp1)
8624 delete arg1;
8625 }
8626 return resultobj;
8627 fail:
8628 {
8629 if (temp1)
8630 delete arg1;
8631 }
8632 return NULL;
8633 }
8634
8635
8636 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8637 PyObject *resultobj;
8638 wxString *arg1 = 0 ;
8639 wxString *arg2 = 0 ;
8640 size_t arg3 ;
8641 wxString result;
8642 bool temp1 = False ;
8643 bool temp2 = False ;
8644 PyObject * obj0 = 0 ;
8645 PyObject * obj1 = 0 ;
8646 PyObject * obj2 = 0 ;
8647
8648 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8649 {
8650 arg1 = wxString_in_helper(obj0);
8651 if (arg1 == NULL) SWIG_fail;
8652 temp1 = True;
8653 }
8654 {
8655 arg2 = wxString_in_helper(obj1);
8656 if (arg2 == NULL) SWIG_fail;
8657 temp2 = True;
8658 }
8659 arg3 = (size_t) PyInt_AsLong(obj2);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 {
8669 #if wxUSE_UNICODE
8670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8671 #else
8672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8673 #endif
8674 }
8675 {
8676 if (temp1)
8677 delete arg1;
8678 }
8679 {
8680 if (temp2)
8681 delete arg2;
8682 }
8683 return resultobj;
8684 fail:
8685 {
8686 if (temp1)
8687 delete arg1;
8688 }
8689 {
8690 if (temp2)
8691 delete arg2;
8692 }
8693 return NULL;
8694 }
8695
8696
8697 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8698 int argc;
8699 PyObject *argv[4];
8700 int ii;
8701
8702 argc = PyObject_Length(args);
8703 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8704 argv[ii] = PyTuple_GetItem(args,ii);
8705 }
8706 if (argc == 1) {
8707 int _v;
8708 {
8709 void *ptr;
8710 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8711 _v = 0;
8712 PyErr_Clear();
8713 } else {
8714 _v = 1;
8715 }
8716 }
8717 if (_v) {
8718 return _wrap_GetTranslation__SWIG_0(self,args);
8719 }
8720 }
8721 if (argc == 3) {
8722 int _v;
8723 {
8724 void *ptr;
8725 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8726 _v = 0;
8727 PyErr_Clear();
8728 } else {
8729 _v = 1;
8730 }
8731 }
8732 if (_v) {
8733 {
8734 void *ptr;
8735 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8736 _v = 0;
8737 PyErr_Clear();
8738 } else {
8739 _v = 1;
8740 }
8741 }
8742 if (_v) {
8743 {
8744 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8745 }
8746 if (_v) {
8747 return _wrap_GetTranslation__SWIG_1(self,args);
8748 }
8749 }
8750 }
8751 }
8752
8753 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8754 return NULL;
8755 }
8756
8757
8758 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj;
8760 wxEncodingConverter *result;
8761 char *kwnames[] = {
8762 NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = (wxEncodingConverter *)new wxEncodingConverter();
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8774 return resultobj;
8775 fail:
8776 return NULL;
8777 }
8778
8779
8780 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8781 PyObject *resultobj;
8782 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8783 PyObject * obj0 = 0 ;
8784 char *kwnames[] = {
8785 (char *) "self", NULL
8786 };
8787
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8790 {
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 delete arg1;
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 Py_INCREF(Py_None); resultobj = Py_None;
8798 return resultobj;
8799 fail:
8800 return NULL;
8801 }
8802
8803
8804 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8805 PyObject *resultobj;
8806 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8807 int arg2 ;
8808 int arg3 ;
8809 int arg4 = (int) wxCONVERT_STRICT ;
8810 bool result;
8811 PyObject * obj0 = 0 ;
8812 char *kwnames[] = {
8813 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8814 };
8815
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = PyInt_FromLong((long)result);
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8835 wxString *arg2 = 0 ;
8836 wxString result;
8837 bool temp2 = False ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 char *kwnames[] = {
8841 (char *) "self",(char *) "input", NULL
8842 };
8843
8844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8846 {
8847 arg2 = wxString_in_helper(obj1);
8848 if (arg2 == NULL) SWIG_fail;
8849 temp2 = True;
8850 }
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (arg1)->Convert((wxString const &)*arg2);
8854
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 {
8859 #if wxUSE_UNICODE
8860 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8861 #else
8862 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8863 #endif
8864 }
8865 {
8866 if (temp2)
8867 delete arg2;
8868 }
8869 return resultobj;
8870 fail:
8871 {
8872 if (temp2)
8873 delete arg2;
8874 }
8875 return NULL;
8876 }
8877
8878
8879 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8880 PyObject *resultobj;
8881 int arg1 ;
8882 int arg2 = (int) wxPLATFORM_CURRENT ;
8883 wxFontEncodingArray result;
8884 char *kwnames[] = {
8885 (char *) "enc",(char *) "platform", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8889 {
8890 PyThreadState* __tstate = wxPyBeginAllowThreads();
8891 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8892
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 {
8897 resultobj = PyList_New(0);
8898 for (size_t i=0; i < (&result)->GetCount(); i++) {
8899 PyObject* number = PyInt_FromLong((&result)->Item(i));
8900 PyList_Append(resultobj, number);
8901 Py_DECREF(number);
8902 }
8903 }
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj;
8912 int arg1 ;
8913 wxFontEncodingArray result;
8914 char *kwnames[] = {
8915 (char *) "enc", NULL
8916 };
8917
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8919 {
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8922
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 {
8927 resultobj = PyList_New(0);
8928 for (size_t i=0; i < (&result)->GetCount(); i++) {
8929 PyObject* number = PyInt_FromLong((&result)->Item(i));
8930 PyList_Append(resultobj, number);
8931 Py_DECREF(number);
8932 }
8933 }
8934 return resultobj;
8935 fail:
8936 return NULL;
8937 }
8938
8939
8940 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 int arg1 ;
8943 int arg2 ;
8944 bool result;
8945 char *kwnames[] = {
8946 (char *) "encIn",(char *) "encOut", NULL
8947 };
8948
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8953
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 resultobj = PyInt_FromLong((long)result);
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8965 PyObject *obj;
8966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8967 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8968 Py_INCREF(obj);
8969 return Py_BuildValue((char *)"");
8970 }
8971 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj;
8973 wxDC *arg1 = (wxDC *) 0 ;
8974 PyObject * obj0 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 delete arg1;
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
8988 Py_INCREF(Py_None); resultobj = Py_None;
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
8996 PyObject *resultobj;
8997 wxDC *arg1 = (wxDC *) 0 ;
8998 PyObject * obj0 = 0 ;
8999 char *kwnames[] = {
9000 (char *) "self", NULL
9001 };
9002
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9005 {
9006 PyThreadState* __tstate = wxPyBeginAllowThreads();
9007 (arg1)->BeginDrawing();
9008
9009 wxPyEndAllowThreads(__tstate);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 }
9012 Py_INCREF(Py_None); resultobj = Py_None;
9013 return resultobj;
9014 fail:
9015 return NULL;
9016 }
9017
9018
9019 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9020 PyObject *resultobj;
9021 wxDC *arg1 = (wxDC *) 0 ;
9022 PyObject * obj0 = 0 ;
9023 char *kwnames[] = {
9024 (char *) "self", NULL
9025 };
9026
9027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 (arg1)->EndDrawing();
9032
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 Py_INCREF(Py_None); resultobj = Py_None;
9037 return resultobj;
9038 fail:
9039 return NULL;
9040 }
9041
9042
9043 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj;
9045 wxDC *arg1 = (wxDC *) 0 ;
9046 int arg2 ;
9047 int arg3 ;
9048 wxColour *arg4 = 0 ;
9049 int arg5 = (int) wxFLOOD_SURFACE ;
9050 bool result;
9051 wxColour temp4 ;
9052 PyObject * obj0 = 0 ;
9053 PyObject * obj3 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9060 {
9061 arg4 = &temp4;
9062 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 resultobj = PyInt_FromLong((long)result);
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxDC *arg1 = (wxDC *) 0 ;
9081 wxPoint *arg2 = 0 ;
9082 wxColour *arg3 = 0 ;
9083 int arg4 = (int) wxFLOOD_SURFACE ;
9084 bool result;
9085 wxPoint temp2 ;
9086 wxColour temp3 ;
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 PyObject * obj2 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9096 {
9097 arg2 = &temp2;
9098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9099 }
9100 {
9101 arg3 = &temp3;
9102 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9103 }
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9107
9108 wxPyEndAllowThreads(__tstate);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 resultobj = PyInt_FromLong((long)result);
9112 return resultobj;
9113 fail:
9114 return NULL;
9115 }
9116
9117
9118 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxDC *arg1 = (wxDC *) 0 ;
9121 int arg2 ;
9122 int arg3 ;
9123 wxColour result;
9124 PyObject * obj0 = 0 ;
9125 char *kwnames[] = {
9126 (char *) "self",(char *) "x",(char *) "y", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9131 {
9132 PyThreadState* __tstate = wxPyBeginAllowThreads();
9133 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9134
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 {
9139 wxColour * resultptr;
9140 resultptr = new wxColour((wxColour &) result);
9141 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9142 }
9143 return resultobj;
9144 fail:
9145 return NULL;
9146 }
9147
9148
9149 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj;
9151 wxDC *arg1 = (wxDC *) 0 ;
9152 wxPoint *arg2 = 0 ;
9153 wxColour result;
9154 wxPoint temp2 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 char *kwnames[] = {
9158 (char *) "self",(char *) "pt", NULL
9159 };
9160
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9163 {
9164 arg2 = &temp2;
9165 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9166 }
9167 {
9168 PyThreadState* __tstate = wxPyBeginAllowThreads();
9169 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9170
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 {
9175 wxColour * resultptr;
9176 resultptr = new wxColour((wxColour &) result);
9177 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9178 }
9179 return resultobj;
9180 fail:
9181 return NULL;
9182 }
9183
9184
9185 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj;
9187 wxDC *arg1 = (wxDC *) 0 ;
9188 int arg2 ;
9189 int arg3 ;
9190 int arg4 ;
9191 int arg5 ;
9192 PyObject * obj0 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9202
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 Py_INCREF(Py_None); resultobj = Py_None;
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj;
9215 wxDC *arg1 = (wxDC *) 0 ;
9216 wxPoint *arg2 = 0 ;
9217 wxPoint *arg3 = 0 ;
9218 wxPoint temp2 ;
9219 wxPoint temp3 ;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 PyObject * obj2 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9229 {
9230 arg2 = &temp2;
9231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9232 }
9233 {
9234 arg3 = &temp3;
9235 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9236 }
9237 {
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9240
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 Py_INCREF(Py_None); resultobj = Py_None;
9245 return resultobj;
9246 fail:
9247 return NULL;
9248 }
9249
9250
9251 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj;
9253 wxDC *arg1 = (wxDC *) 0 ;
9254 int arg2 ;
9255 int arg3 ;
9256 PyObject * obj0 = 0 ;
9257 char *kwnames[] = {
9258 (char *) "self",(char *) "x",(char *) "y", NULL
9259 };
9260
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 (arg1)->CrossHair(arg2,arg3);
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 Py_INCREF(Py_None); resultobj = Py_None;
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj;
9279 wxDC *arg1 = (wxDC *) 0 ;
9280 wxPoint *arg2 = 0 ;
9281 wxPoint temp2 ;
9282 PyObject * obj0 = 0 ;
9283 PyObject * obj1 = 0 ;
9284 char *kwnames[] = {
9285 (char *) "self",(char *) "pt", NULL
9286 };
9287
9288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9290 {
9291 arg2 = &temp2;
9292 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9293 }
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 (arg1)->CrossHair((wxPoint const &)*arg2);
9297
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
9301 Py_INCREF(Py_None); resultobj = Py_None;
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj;
9310 wxDC *arg1 = (wxDC *) 0 ;
9311 int arg2 ;
9312 int arg3 ;
9313 int arg4 ;
9314 int arg5 ;
9315 int arg6 ;
9316 int arg7 ;
9317 PyObject * obj0 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9320 };
9321
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9327
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 Py_INCREF(Py_None); resultobj = Py_None;
9332 return resultobj;
9333 fail:
9334 return NULL;
9335 }
9336
9337
9338 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj;
9340 wxDC *arg1 = (wxDC *) 0 ;
9341 wxPoint *arg2 = 0 ;
9342 wxPoint *arg3 = 0 ;
9343 wxPoint *arg4 = 0 ;
9344 wxPoint temp2 ;
9345 wxPoint temp3 ;
9346 wxPoint temp4 ;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 PyObject * obj2 = 0 ;
9350 PyObject * obj3 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9357 {
9358 arg2 = &temp2;
9359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9360 }
9361 {
9362 arg3 = &temp3;
9363 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9364 }
9365 {
9366 arg4 = &temp4;
9367 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9368 }
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 Py_INCREF(Py_None); resultobj = Py_None;
9377 return resultobj;
9378 fail:
9379 return NULL;
9380 }
9381
9382
9383 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj;
9385 wxDC *arg1 = (wxDC *) 0 ;
9386 int arg2 ;
9387 int arg3 ;
9388 int arg4 ;
9389 int arg5 ;
9390 PyObject * obj0 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 Py_INCREF(Py_None); resultobj = Py_None;
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj;
9413 wxDC *arg1 = (wxDC *) 0 ;
9414 wxRect *arg2 = 0 ;
9415 wxRect temp2 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char *kwnames[] = {
9419 (char *) "self",(char *) "rect", NULL
9420 };
9421
9422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9424 {
9425 arg2 = &temp2;
9426 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9427 }
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9431
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 Py_INCREF(Py_None); resultobj = Py_None;
9436 return resultobj;
9437 fail:
9438 return NULL;
9439 }
9440
9441
9442 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj;
9444 wxDC *arg1 = (wxDC *) 0 ;
9445 int arg2 ;
9446 int arg3 ;
9447 int arg4 ;
9448 int arg5 ;
9449 double arg6 ;
9450 double arg7 ;
9451 PyObject * obj0 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9461
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 Py_INCREF(Py_None); resultobj = Py_None;
9466 return resultobj;
9467 fail:
9468 return NULL;
9469 }
9470
9471
9472 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9473 PyObject *resultobj;
9474 wxDC *arg1 = (wxDC *) 0 ;
9475 wxPoint *arg2 = 0 ;
9476 wxSize *arg3 = 0 ;
9477 double arg4 ;
9478 double arg5 ;
9479 wxPoint temp2 ;
9480 wxSize temp3 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 PyObject * obj2 = 0 ;
9484 char *kwnames[] = {
9485 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9486 };
9487
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9490 {
9491 arg2 = &temp2;
9492 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9493 }
9494 {
9495 arg3 = &temp3;
9496 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9497 }
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 Py_INCREF(Py_None); resultobj = Py_None;
9506 return resultobj;
9507 fail:
9508 return NULL;
9509 }
9510
9511
9512 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 wxDC *arg1 = (wxDC *) 0 ;
9515 int arg2 ;
9516 int arg3 ;
9517 PyObject * obj0 = 0 ;
9518 char *kwnames[] = {
9519 (char *) "self",(char *) "x",(char *) "y", NULL
9520 };
9521
9522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 (arg1)->DrawPoint(arg2,arg3);
9527
9528 wxPyEndAllowThreads(__tstate);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 Py_INCREF(Py_None); resultobj = Py_None;
9532 return resultobj;
9533 fail:
9534 return NULL;
9535 }
9536
9537
9538 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9539 PyObject *resultobj;
9540 wxDC *arg1 = (wxDC *) 0 ;
9541 wxPoint *arg2 = 0 ;
9542 wxPoint temp2 ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self",(char *) "pt", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9551 {
9552 arg2 = &temp2;
9553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9554 }
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 (arg1)->DrawPoint((wxPoint const &)*arg2);
9558
9559 wxPyEndAllowThreads(__tstate);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 Py_INCREF(Py_None); resultobj = Py_None;
9563 return resultobj;
9564 fail:
9565 return NULL;
9566 }
9567
9568
9569 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9570 PyObject *resultobj;
9571 wxDC *arg1 = (wxDC *) 0 ;
9572 int arg2 ;
9573 int arg3 ;
9574 int arg4 ;
9575 int arg5 ;
9576 PyObject * obj0 = 0 ;
9577 char *kwnames[] = {
9578 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9579 };
9580
9581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9586
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 Py_INCREF(Py_None); resultobj = Py_None;
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxDC *arg1 = (wxDC *) 0 ;
9600 wxPoint *arg2 = 0 ;
9601 wxSize *arg3 = 0 ;
9602 wxPoint temp2 ;
9603 wxSize temp3 ;
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 PyObject * obj2 = 0 ;
9607 char *kwnames[] = {
9608 (char *) "self",(char *) "pt",(char *) "sz", NULL
9609 };
9610
9611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9613 {
9614 arg2 = &temp2;
9615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9616 }
9617 {
9618 arg3 = &temp3;
9619 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9620 }
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9624
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 Py_INCREF(Py_None); resultobj = Py_None;
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 wxDC *arg1 = (wxDC *) 0 ;
9638 wxRect *arg2 = 0 ;
9639 wxRect temp2 ;
9640 PyObject * obj0 = 0 ;
9641 PyObject * obj1 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self",(char *) "rect", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9648 {
9649 arg2 = &temp2;
9650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9651 }
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->DrawRectangle((wxRect const &)*arg2);
9655
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 Py_INCREF(Py_None); resultobj = Py_None;
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 wxDC *arg1 = (wxDC *) 0 ;
9669 int arg2 ;
9670 int arg3 ;
9671 int arg4 ;
9672 int arg5 ;
9673 double arg6 ;
9674 PyObject * obj0 = 0 ;
9675 char *kwnames[] = {
9676 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9677 };
9678
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 Py_INCREF(Py_None); resultobj = Py_None;
9689 return resultobj;
9690 fail:
9691 return NULL;
9692 }
9693
9694
9695 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj;
9697 wxDC *arg1 = (wxDC *) 0 ;
9698 wxPoint *arg2 = 0 ;
9699 wxSize *arg3 = 0 ;
9700 double arg4 ;
9701 wxPoint temp2 ;
9702 wxSize temp3 ;
9703 PyObject * obj0 = 0 ;
9704 PyObject * obj1 = 0 ;
9705 PyObject * obj2 = 0 ;
9706 char *kwnames[] = {
9707 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9708 };
9709
9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9712 {
9713 arg2 = &temp2;
9714 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9715 }
9716 {
9717 arg3 = &temp3;
9718 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9719 }
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9723
9724 wxPyEndAllowThreads(__tstate);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 }
9727 Py_INCREF(Py_None); resultobj = Py_None;
9728 return resultobj;
9729 fail:
9730 return NULL;
9731 }
9732
9733
9734 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj;
9736 wxDC *arg1 = (wxDC *) 0 ;
9737 wxRect *arg2 = 0 ;
9738 double arg3 ;
9739 wxRect temp2 ;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "self",(char *) "r",(char *) "radius", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9748 {
9749 arg2 = &temp2;
9750 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9751 }
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
9754 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9755
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 Py_INCREF(Py_None); resultobj = Py_None;
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj;
9768 wxDC *arg1 = (wxDC *) 0 ;
9769 int arg2 ;
9770 int arg3 ;
9771 int arg4 ;
9772 PyObject * obj0 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 (arg1)->DrawCircle(arg2,arg3,arg4);
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 Py_INCREF(Py_None); resultobj = Py_None;
9787 return resultobj;
9788 fail:
9789 return NULL;
9790 }
9791
9792
9793 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9794 PyObject *resultobj;
9795 wxDC *arg1 = (wxDC *) 0 ;
9796 wxPoint *arg2 = 0 ;
9797 int arg3 ;
9798 wxPoint temp2 ;
9799 PyObject * obj0 = 0 ;
9800 PyObject * obj1 = 0 ;
9801 char *kwnames[] = {
9802 (char *) "self",(char *) "pt",(char *) "radius", NULL
9803 };
9804
9805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9807 {
9808 arg2 = &temp2;
9809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9810 }
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 Py_INCREF(Py_None); resultobj = Py_None;
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj;
9827 wxDC *arg1 = (wxDC *) 0 ;
9828 int arg2 ;
9829 int arg3 ;
9830 int arg4 ;
9831 int arg5 ;
9832 PyObject * obj0 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9842
9843 wxPyEndAllowThreads(__tstate);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 }
9846 Py_INCREF(Py_None); resultobj = Py_None;
9847 return resultobj;
9848 fail:
9849 return NULL;
9850 }
9851
9852
9853 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9854 PyObject *resultobj;
9855 wxDC *arg1 = (wxDC *) 0 ;
9856 wxPoint *arg2 = 0 ;
9857 wxSize *arg3 = 0 ;
9858 wxPoint temp2 ;
9859 wxSize temp3 ;
9860 PyObject * obj0 = 0 ;
9861 PyObject * obj1 = 0 ;
9862 PyObject * obj2 = 0 ;
9863 char *kwnames[] = {
9864 (char *) "self",(char *) "pt",(char *) "sz", NULL
9865 };
9866
9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9869 {
9870 arg2 = &temp2;
9871 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9872 }
9873 {
9874 arg3 = &temp3;
9875 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9876 }
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
9879 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9880
9881 wxPyEndAllowThreads(__tstate);
9882 if (PyErr_Occurred()) SWIG_fail;
9883 }
9884 Py_INCREF(Py_None); resultobj = Py_None;
9885 return resultobj;
9886 fail:
9887 return NULL;
9888 }
9889
9890
9891 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9892 PyObject *resultobj;
9893 wxDC *arg1 = (wxDC *) 0 ;
9894 wxRect *arg2 = 0 ;
9895 wxRect temp2 ;
9896 PyObject * obj0 = 0 ;
9897 PyObject * obj1 = 0 ;
9898 char *kwnames[] = {
9899 (char *) "self",(char *) "rect", NULL
9900 };
9901
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9904 {
9905 arg2 = &temp2;
9906 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9907 }
9908 {
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 (arg1)->DrawEllipse((wxRect const &)*arg2);
9911
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) SWIG_fail;
9914 }
9915 Py_INCREF(Py_None); resultobj = Py_None;
9916 return resultobj;
9917 fail:
9918 return NULL;
9919 }
9920
9921
9922 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj;
9924 wxDC *arg1 = (wxDC *) 0 ;
9925 wxIcon *arg2 = 0 ;
9926 int arg3 ;
9927 int arg4 ;
9928 PyObject * obj0 = 0 ;
9929 PyObject * obj1 = 0 ;
9930 char *kwnames[] = {
9931 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9932 };
9933
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9936 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9937 if (arg2 == NULL) {
9938 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9939 }
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9943
9944 wxPyEndAllowThreads(__tstate);
9945 if (PyErr_Occurred()) SWIG_fail;
9946 }
9947 Py_INCREF(Py_None); resultobj = Py_None;
9948 return resultobj;
9949 fail:
9950 return NULL;
9951 }
9952
9953
9954 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj;
9956 wxDC *arg1 = (wxDC *) 0 ;
9957 wxIcon *arg2 = 0 ;
9958 wxPoint *arg3 = 0 ;
9959 wxPoint temp3 ;
9960 PyObject * obj0 = 0 ;
9961 PyObject * obj1 = 0 ;
9962 PyObject * obj2 = 0 ;
9963 char *kwnames[] = {
9964 (char *) "self",(char *) "icon",(char *) "pt", NULL
9965 };
9966
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9969 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9970 if (arg2 == NULL) {
9971 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9972 }
9973 {
9974 arg3 = &temp3;
9975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9976 }
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9980
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 Py_INCREF(Py_None); resultobj = Py_None;
9985 return resultobj;
9986 fail:
9987 return NULL;
9988 }
9989
9990
9991 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9992 PyObject *resultobj;
9993 wxDC *arg1 = (wxDC *) 0 ;
9994 wxBitmap *arg2 = 0 ;
9995 int arg3 ;
9996 int arg4 ;
9997 bool arg5 = (bool) False ;
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 PyObject * obj4 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10007 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10008 if (arg2 == NULL) {
10009 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10010 }
10011 if (obj4) {
10012 arg5 = PyInt_AsLong(obj4) ? true : false;
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 Py_INCREF(Py_None); resultobj = Py_None;
10023 return resultobj;
10024 fail:
10025 return NULL;
10026 }
10027
10028
10029 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10030 PyObject *resultobj;
10031 wxDC *arg1 = (wxDC *) 0 ;
10032 wxBitmap *arg2 = 0 ;
10033 wxPoint *arg3 = 0 ;
10034 bool arg4 = (bool) False ;
10035 wxPoint temp3 ;
10036 PyObject * obj0 = 0 ;
10037 PyObject * obj1 = 0 ;
10038 PyObject * obj2 = 0 ;
10039 PyObject * obj3 = 0 ;
10040 char *kwnames[] = {
10041 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10042 };
10043
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10046 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10047 if (arg2 == NULL) {
10048 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10049 }
10050 {
10051 arg3 = &temp3;
10052 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10053 }
10054 if (obj3) {
10055 arg4 = PyInt_AsLong(obj3) ? true : false;
10056 if (PyErr_Occurred()) SWIG_fail;
10057 }
10058 {
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10061
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) SWIG_fail;
10064 }
10065 Py_INCREF(Py_None); resultobj = Py_None;
10066 return resultobj;
10067 fail:
10068 return NULL;
10069 }
10070
10071
10072 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj;
10074 wxDC *arg1 = (wxDC *) 0 ;
10075 wxString *arg2 = 0 ;
10076 int arg3 ;
10077 int arg4 ;
10078 bool temp2 = False ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 char *kwnames[] = {
10082 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10083 };
10084
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10087 {
10088 arg2 = wxString_in_helper(obj1);
10089 if (arg2 == NULL) SWIG_fail;
10090 temp2 = True;
10091 }
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 Py_INCREF(Py_None); resultobj = Py_None;
10100 {
10101 if (temp2)
10102 delete arg2;
10103 }
10104 return resultobj;
10105 fail:
10106 {
10107 if (temp2)
10108 delete arg2;
10109 }
10110 return NULL;
10111 }
10112
10113
10114 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj;
10116 wxDC *arg1 = (wxDC *) 0 ;
10117 wxString *arg2 = 0 ;
10118 wxPoint *arg3 = 0 ;
10119 bool temp2 = False ;
10120 wxPoint temp3 ;
10121 PyObject * obj0 = 0 ;
10122 PyObject * obj1 = 0 ;
10123 PyObject * obj2 = 0 ;
10124 char *kwnames[] = {
10125 (char *) "self",(char *) "text",(char *) "pt", NULL
10126 };
10127
10128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10130 {
10131 arg2 = wxString_in_helper(obj1);
10132 if (arg2 == NULL) SWIG_fail;
10133 temp2 = True;
10134 }
10135 {
10136 arg3 = &temp3;
10137 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10138 }
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10142
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 Py_INCREF(Py_None); resultobj = Py_None;
10147 {
10148 if (temp2)
10149 delete arg2;
10150 }
10151 return resultobj;
10152 fail:
10153 {
10154 if (temp2)
10155 delete arg2;
10156 }
10157 return NULL;
10158 }
10159
10160
10161 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10162 PyObject *resultobj;
10163 wxDC *arg1 = (wxDC *) 0 ;
10164 wxString *arg2 = 0 ;
10165 int arg3 ;
10166 int arg4 ;
10167 double arg5 ;
10168 bool temp2 = False ;
10169 PyObject * obj0 = 0 ;
10170 PyObject * obj1 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10177 {
10178 arg2 = wxString_in_helper(obj1);
10179 if (arg2 == NULL) SWIG_fail;
10180 temp2 = True;
10181 }
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10185
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 Py_INCREF(Py_None); resultobj = Py_None;
10190 {
10191 if (temp2)
10192 delete arg2;
10193 }
10194 return resultobj;
10195 fail:
10196 {
10197 if (temp2)
10198 delete arg2;
10199 }
10200 return NULL;
10201 }
10202
10203
10204 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj;
10206 wxDC *arg1 = (wxDC *) 0 ;
10207 wxString *arg2 = 0 ;
10208 wxPoint *arg3 = 0 ;
10209 double arg4 ;
10210 bool temp2 = False ;
10211 wxPoint temp3 ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 PyObject * obj2 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10221 {
10222 arg2 = wxString_in_helper(obj1);
10223 if (arg2 == NULL) SWIG_fail;
10224 temp2 = True;
10225 }
10226 {
10227 arg3 = &temp3;
10228 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10229 }
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 Py_INCREF(Py_None); resultobj = Py_None;
10238 {
10239 if (temp2)
10240 delete arg2;
10241 }
10242 return resultobj;
10243 fail:
10244 {
10245 if (temp2)
10246 delete arg2;
10247 }
10248 return NULL;
10249 }
10250
10251
10252 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10253 PyObject *resultobj;
10254 wxDC *arg1 = (wxDC *) 0 ;
10255 int arg2 ;
10256 int arg3 ;
10257 int arg4 ;
10258 int arg5 ;
10259 wxDC *arg6 = (wxDC *) 0 ;
10260 int arg7 ;
10261 int arg8 ;
10262 int arg9 = (int) wxCOPY ;
10263 bool arg10 = (bool) False ;
10264 int arg11 = (int) -1 ;
10265 int arg12 = (int) -1 ;
10266 bool result;
10267 PyObject * obj0 = 0 ;
10268 PyObject * obj5 = 0 ;
10269 PyObject * obj9 = 0 ;
10270 char *kwnames[] = {
10271 (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
10272 };
10273
10274 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;
10275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10276 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10277 if (obj9) {
10278 arg10 = PyInt_AsLong(obj9) ? true : false;
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = PyInt_FromLong((long)result);
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxDC *arg1 = (wxDC *) 0 ;
10298 wxPoint *arg2 = 0 ;
10299 wxSize *arg3 = 0 ;
10300 wxDC *arg4 = (wxDC *) 0 ;
10301 wxPoint *arg5 = 0 ;
10302 int arg6 = (int) wxCOPY ;
10303 bool arg7 = (bool) False ;
10304 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10305 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10306 bool result;
10307 wxPoint temp2 ;
10308 wxSize temp3 ;
10309 wxPoint temp5 ;
10310 wxPoint temp8 ;
10311 PyObject * obj0 = 0 ;
10312 PyObject * obj1 = 0 ;
10313 PyObject * obj2 = 0 ;
10314 PyObject * obj3 = 0 ;
10315 PyObject * obj4 = 0 ;
10316 PyObject * obj6 = 0 ;
10317 PyObject * obj7 = 0 ;
10318 char *kwnames[] = {
10319 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10320 };
10321
10322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10324 {
10325 arg2 = &temp2;
10326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10327 }
10328 {
10329 arg3 = &temp3;
10330 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10331 }
10332 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10333 {
10334 arg5 = &temp5;
10335 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10336 }
10337 if (obj6) {
10338 arg7 = PyInt_AsLong(obj6) ? true : false;
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 if (obj7) {
10342 {
10343 arg8 = &temp8;
10344 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10345 }
10346 }
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10350
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 resultobj = PyInt_FromLong((long)result);
10355 return resultobj;
10356 fail:
10357 return NULL;
10358 }
10359
10360
10361 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10362 PyObject *resultobj;
10363 wxDC *arg1 = (wxDC *) 0 ;
10364 int arg2 ;
10365 wxPoint *arg3 = (wxPoint *) 0 ;
10366 int arg4 = (int) 0 ;
10367 int arg5 = (int) 0 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char *kwnames[] = {
10371 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10372 };
10373
10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10376 {
10377 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10378 if (arg3 == NULL) SWIG_fail;
10379 }
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10383
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 Py_INCREF(Py_None); resultobj = Py_None;
10388 {
10389 if (arg3) delete [] arg3;
10390 }
10391 return resultobj;
10392 fail:
10393 {
10394 if (arg3) delete [] arg3;
10395 }
10396 return NULL;
10397 }
10398
10399
10400 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj;
10402 wxDC *arg1 = (wxDC *) 0 ;
10403 int arg2 ;
10404 wxPoint *arg3 = (wxPoint *) 0 ;
10405 int arg4 = (int) 0 ;
10406 int arg5 = (int) 0 ;
10407 int arg6 = (int) wxODDEVEN_RULE ;
10408 PyObject * obj0 = 0 ;
10409 PyObject * obj1 = 0 ;
10410 char *kwnames[] = {
10411 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10412 };
10413
10414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10416 {
10417 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10418 if (arg3 == NULL) SWIG_fail;
10419 }
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10423
10424 wxPyEndAllowThreads(__tstate);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 Py_INCREF(Py_None); resultobj = Py_None;
10428 {
10429 if (arg3) delete [] arg3;
10430 }
10431 return resultobj;
10432 fail:
10433 {
10434 if (arg3) delete [] arg3;
10435 }
10436 return NULL;
10437 }
10438
10439
10440 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj;
10442 wxDC *arg1 = (wxDC *) 0 ;
10443 wxString *arg2 = 0 ;
10444 wxRect *arg3 = 0 ;
10445 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10446 int arg5 = (int) -1 ;
10447 bool temp2 = False ;
10448 wxRect temp3 ;
10449 PyObject * obj0 = 0 ;
10450 PyObject * obj1 = 0 ;
10451 PyObject * obj2 = 0 ;
10452 char *kwnames[] = {
10453 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10454 };
10455
10456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10458 {
10459 arg2 = wxString_in_helper(obj1);
10460 if (arg2 == NULL) SWIG_fail;
10461 temp2 = True;
10462 }
10463 {
10464 arg3 = &temp3;
10465 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10466 }
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 Py_INCREF(Py_None); resultobj = Py_None;
10475 {
10476 if (temp2)
10477 delete arg2;
10478 }
10479 return resultobj;
10480 fail:
10481 {
10482 if (temp2)
10483 delete arg2;
10484 }
10485 return NULL;
10486 }
10487
10488
10489 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject *resultobj;
10491 wxDC *arg1 = (wxDC *) 0 ;
10492 wxString *arg2 = 0 ;
10493 wxBitmap *arg3 = 0 ;
10494 wxRect *arg4 = 0 ;
10495 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10496 int arg6 = (int) -1 ;
10497 wxRect result;
10498 bool temp2 = False ;
10499 wxRect temp4 ;
10500 PyObject * obj0 = 0 ;
10501 PyObject * obj1 = 0 ;
10502 PyObject * obj2 = 0 ;
10503 PyObject * obj3 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10510 {
10511 arg2 = wxString_in_helper(obj1);
10512 if (arg2 == NULL) SWIG_fail;
10513 temp2 = True;
10514 }
10515 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10516 if (arg3 == NULL) {
10517 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10518 }
10519 {
10520 arg4 = &temp4;
10521 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10522 }
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10526
10527 wxPyEndAllowThreads(__tstate);
10528 if (PyErr_Occurred()) SWIG_fail;
10529 }
10530 {
10531 wxRect * resultptr;
10532 resultptr = new wxRect((wxRect &) result);
10533 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10534 }
10535 {
10536 if (temp2)
10537 delete arg2;
10538 }
10539 return resultobj;
10540 fail:
10541 {
10542 if (temp2)
10543 delete arg2;
10544 }
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxDC *arg1 = (wxDC *) 0 ;
10552 int arg2 ;
10553 wxPoint *arg3 = (wxPoint *) 0 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 char *kwnames[] = {
10557 (char *) "self",(char *) "points", NULL
10558 };
10559
10560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10562 {
10563 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10564 if (arg3 == NULL) SWIG_fail;
10565 }
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 (arg1)->DrawSpline(arg2,arg3);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 Py_INCREF(Py_None); resultobj = Py_None;
10574 {
10575 if (arg3) delete [] arg3;
10576 }
10577 return resultobj;
10578 fail:
10579 {
10580 if (arg3) delete [] arg3;
10581 }
10582 return NULL;
10583 }
10584
10585
10586 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10587 PyObject *resultobj;
10588 wxDC *arg1 = (wxDC *) 0 ;
10589 PyObject * obj0 = 0 ;
10590 char *kwnames[] = {
10591 (char *) "self", NULL
10592 };
10593
10594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 (arg1)->Clear();
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 Py_INCREF(Py_None); resultobj = Py_None;
10604 return resultobj;
10605 fail:
10606 return NULL;
10607 }
10608
10609
10610 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10611 PyObject *resultobj;
10612 wxDC *arg1 = (wxDC *) 0 ;
10613 wxString *arg2 = 0 ;
10614 bool result;
10615 bool temp2 = False ;
10616 PyObject * obj0 = 0 ;
10617 PyObject * obj1 = 0 ;
10618 char *kwnames[] = {
10619 (char *) "self",(char *) "message", NULL
10620 };
10621
10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10624 {
10625 arg2 = wxString_in_helper(obj1);
10626 if (arg2 == NULL) SWIG_fail;
10627 temp2 = True;
10628 }
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 resultobj = PyInt_FromLong((long)result);
10637 {
10638 if (temp2)
10639 delete arg2;
10640 }
10641 return resultobj;
10642 fail:
10643 {
10644 if (temp2)
10645 delete arg2;
10646 }
10647 return NULL;
10648 }
10649
10650
10651 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxDC *arg1 = (wxDC *) 0 ;
10654 PyObject * obj0 = 0 ;
10655 char *kwnames[] = {
10656 (char *) "self", NULL
10657 };
10658
10659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 (arg1)->EndDoc();
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 Py_INCREF(Py_None); resultobj = Py_None;
10669 return resultobj;
10670 fail:
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxDC *arg1 = (wxDC *) 0 ;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 (arg1)->StartPage();
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 Py_INCREF(Py_None); resultobj = Py_None;
10693 return resultobj;
10694 fail:
10695 return NULL;
10696 }
10697
10698
10699 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxDC *arg1 = (wxDC *) 0 ;
10702 PyObject * obj0 = 0 ;
10703 char *kwnames[] = {
10704 (char *) "self", NULL
10705 };
10706
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 (arg1)->EndPage();
10712
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 Py_INCREF(Py_None); resultobj = Py_None;
10717 return resultobj;
10718 fail:
10719 return NULL;
10720 }
10721
10722
10723 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj;
10725 wxDC *arg1 = (wxDC *) 0 ;
10726 wxFont *arg2 = 0 ;
10727 PyObject * obj0 = 0 ;
10728 PyObject * obj1 = 0 ;
10729 char *kwnames[] = {
10730 (char *) "self",(char *) "font", NULL
10731 };
10732
10733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10735 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10736 if (arg2 == NULL) {
10737 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10738 }
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->SetFont((wxFont const &)*arg2);
10742
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 Py_INCREF(Py_None); resultobj = Py_None;
10747 return resultobj;
10748 fail:
10749 return NULL;
10750 }
10751
10752
10753 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj;
10755 wxDC *arg1 = (wxDC *) 0 ;
10756 wxPen *arg2 = 0 ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self",(char *) "pen", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10765 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10766 if (arg2 == NULL) {
10767 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10768 }
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 (arg1)->SetPen((wxPen const &)*arg2);
10772
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 Py_INCREF(Py_None); resultobj = Py_None;
10777 return resultobj;
10778 fail:
10779 return NULL;
10780 }
10781
10782
10783 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 wxDC *arg1 = (wxDC *) 0 ;
10786 wxBrush *arg2 = 0 ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self",(char *) "brush", NULL
10791 };
10792
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10795 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10796 if (arg2 == NULL) {
10797 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10798 }
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 (arg1)->SetBrush((wxBrush const &)*arg2);
10802
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 Py_INCREF(Py_None); resultobj = Py_None;
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj;
10815 wxDC *arg1 = (wxDC *) 0 ;
10816 wxBrush *arg2 = 0 ;
10817 PyObject * obj0 = 0 ;
10818 PyObject * obj1 = 0 ;
10819 char *kwnames[] = {
10820 (char *) "self",(char *) "brush", NULL
10821 };
10822
10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10825 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10826 if (arg2 == NULL) {
10827 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10828 }
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->SetBackground((wxBrush const &)*arg2);
10832
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 Py_INCREF(Py_None); resultobj = Py_None;
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj;
10845 wxDC *arg1 = (wxDC *) 0 ;
10846 int arg2 ;
10847 PyObject * obj0 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self",(char *) "mode", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 (arg1)->SetBackgroundMode(arg2);
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 Py_INCREF(Py_None); resultobj = Py_None;
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj;
10870 wxDC *arg1 = (wxDC *) 0 ;
10871 wxPalette *arg2 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 char *kwnames[] = {
10875 (char *) "self",(char *) "palette", NULL
10876 };
10877
10878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10881 if (arg2 == NULL) {
10882 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10883 }
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 (arg1)->SetPalette((wxPalette const &)*arg2);
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 Py_INCREF(Py_None); resultobj = Py_None;
10892 return resultobj;
10893 fail:
10894 return NULL;
10895 }
10896
10897
10898 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10899 PyObject *resultobj;
10900 wxDC *arg1 = (wxDC *) 0 ;
10901 int arg2 ;
10902 int arg3 ;
10903 int arg4 ;
10904 int arg5 ;
10905 PyObject * obj0 = 0 ;
10906 char *kwnames[] = {
10907 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10908 };
10909
10910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10912 {
10913 PyThreadState* __tstate = wxPyBeginAllowThreads();
10914 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10915
10916 wxPyEndAllowThreads(__tstate);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 }
10919 Py_INCREF(Py_None); resultobj = Py_None;
10920 return resultobj;
10921 fail:
10922 return NULL;
10923 }
10924
10925
10926 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject *resultobj;
10928 wxDC *arg1 = (wxDC *) 0 ;
10929 wxPoint *arg2 = 0 ;
10930 wxSize *arg3 = 0 ;
10931 wxPoint temp2 ;
10932 wxSize temp3 ;
10933 PyObject * obj0 = 0 ;
10934 PyObject * obj1 = 0 ;
10935 PyObject * obj2 = 0 ;
10936 char *kwnames[] = {
10937 (char *) "self",(char *) "pt",(char *) "sz", NULL
10938 };
10939
10940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10942 {
10943 arg2 = &temp2;
10944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10945 }
10946 {
10947 arg3 = &temp3;
10948 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10949 }
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10953
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 Py_INCREF(Py_None); resultobj = Py_None;
10958 return resultobj;
10959 fail:
10960 return NULL;
10961 }
10962
10963
10964 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10965 PyObject *resultobj;
10966 wxDC *arg1 = (wxDC *) 0 ;
10967 wxRect *arg2 = 0 ;
10968 wxRect temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self",(char *) "rect", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10977 {
10978 arg2 = &temp2;
10979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10984
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 Py_INCREF(Py_None); resultobj = Py_None;
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj;
10997 wxDC *arg1 = (wxDC *) 0 ;
10998 wxRegion *arg2 = 0 ;
10999 PyObject * obj0 = 0 ;
11000 PyObject * obj1 = 0 ;
11001 char *kwnames[] = {
11002 (char *) "self",(char *) "region", NULL
11003 };
11004
11005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11007 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11008 if (arg2 == NULL) {
11009 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11010 }
11011 {
11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
11013 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11014
11015 wxPyEndAllowThreads(__tstate);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 }
11018 Py_INCREF(Py_None); resultobj = Py_None;
11019 return resultobj;
11020 fail:
11021 return NULL;
11022 }
11023
11024
11025 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11026 PyObject *resultobj;
11027 wxDC *arg1 = (wxDC *) 0 ;
11028 PyObject * obj0 = 0 ;
11029 char *kwnames[] = {
11030 (char *) "self", NULL
11031 };
11032
11033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->DestroyClippingRegion();
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 Py_INCREF(Py_None); resultobj = Py_None;
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxDC *arg1 = (wxDC *) 0 ;
11052 int *arg2 = (int *) 0 ;
11053 int *arg3 = (int *) 0 ;
11054 int *arg4 = (int *) 0 ;
11055 int *arg5 = (int *) 0 ;
11056 int temp2 ;
11057 int temp3 ;
11058 int temp4 ;
11059 int temp5 ;
11060 PyObject * obj0 = 0 ;
11061 char *kwnames[] = {
11062 (char *) "self", NULL
11063 };
11064
11065 arg2 = &temp2;
11066 arg3 = &temp3;
11067 arg4 = &temp4;
11068 arg5 = &temp5;
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11074
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 }
11078 Py_INCREF(Py_None); resultobj = Py_None;
11079 {
11080 PyObject *o = PyInt_FromLong((long) (*arg2));
11081 resultobj = t_output_helper(resultobj,o);
11082 }
11083 {
11084 PyObject *o = PyInt_FromLong((long) (*arg3));
11085 resultobj = t_output_helper(resultobj,o);
11086 }
11087 {
11088 PyObject *o = PyInt_FromLong((long) (*arg4));
11089 resultobj = t_output_helper(resultobj,o);
11090 }
11091 {
11092 PyObject *o = PyInt_FromLong((long) (*arg5));
11093 resultobj = t_output_helper(resultobj,o);
11094 }
11095 return resultobj;
11096 fail:
11097 return NULL;
11098 }
11099
11100
11101 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11102 PyObject *resultobj;
11103 wxDC *arg1 = (wxDC *) 0 ;
11104 wxRect result;
11105 PyObject * obj0 = 0 ;
11106 char *kwnames[] = {
11107 (char *) "self", NULL
11108 };
11109
11110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = wxDC_GetClippingRect(arg1);
11115
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 {
11120 wxRect * resultptr;
11121 resultptr = new wxRect((wxRect &) result);
11122 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11123 }
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxDC *arg1 = (wxDC *) 0 ;
11133 int result;
11134 PyObject * obj0 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (int)((wxDC const *)arg1)->GetCharHeight();
11144
11145 wxPyEndAllowThreads(__tstate);
11146 if (PyErr_Occurred()) SWIG_fail;
11147 }
11148 resultobj = PyInt_FromLong((long)result);
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11156 PyObject *resultobj;
11157 wxDC *arg1 = (wxDC *) 0 ;
11158 int result;
11159 PyObject * obj0 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "self", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11166 {
11167 PyThreadState* __tstate = wxPyBeginAllowThreads();
11168 result = (int)((wxDC const *)arg1)->GetCharWidth();
11169
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 resultobj = PyInt_FromLong((long)result);
11174 return resultobj;
11175 fail:
11176 return NULL;
11177 }
11178
11179
11180 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11181 PyObject *resultobj;
11182 wxDC *arg1 = (wxDC *) 0 ;
11183 wxString *arg2 = 0 ;
11184 int *arg3 = (int *) 0 ;
11185 int *arg4 = (int *) 0 ;
11186 bool temp2 = False ;
11187 int temp3 ;
11188 int temp4 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 char *kwnames[] = {
11192 (char *) "self",(char *) "string", NULL
11193 };
11194
11195 arg3 = &temp3;
11196 arg4 = &temp4;
11197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11199 {
11200 arg2 = wxString_in_helper(obj1);
11201 if (arg2 == NULL) SWIG_fail;
11202 temp2 = True;
11203 }
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11207
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 Py_INCREF(Py_None); resultobj = Py_None;
11212 {
11213 PyObject *o = PyInt_FromLong((long) (*arg3));
11214 resultobj = t_output_helper(resultobj,o);
11215 }
11216 {
11217 PyObject *o = PyInt_FromLong((long) (*arg4));
11218 resultobj = t_output_helper(resultobj,o);
11219 }
11220 {
11221 if (temp2)
11222 delete arg2;
11223 }
11224 return resultobj;
11225 fail:
11226 {
11227 if (temp2)
11228 delete arg2;
11229 }
11230 return NULL;
11231 }
11232
11233
11234 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj;
11236 wxDC *arg1 = (wxDC *) 0 ;
11237 wxString *arg2 = 0 ;
11238 int *arg3 = (int *) 0 ;
11239 int *arg4 = (int *) 0 ;
11240 int *arg5 = (int *) 0 ;
11241 int *arg6 = (int *) 0 ;
11242 wxFont *arg7 = (wxFont *) NULL ;
11243 bool temp2 = False ;
11244 int temp3 ;
11245 int temp4 ;
11246 int temp5 ;
11247 int temp6 ;
11248 PyObject * obj0 = 0 ;
11249 PyObject * obj1 = 0 ;
11250 PyObject * obj2 = 0 ;
11251 char *kwnames[] = {
11252 (char *) "self",(char *) "string",(char *) "font", NULL
11253 };
11254
11255 arg3 = &temp3;
11256 arg4 = &temp4;
11257 arg5 = &temp5;
11258 arg6 = &temp6;
11259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11261 {
11262 arg2 = wxString_in_helper(obj1);
11263 if (arg2 == NULL) SWIG_fail;
11264 temp2 = True;
11265 }
11266 if (obj2) {
11267 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11272
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 Py_INCREF(Py_None); resultobj = Py_None;
11277 {
11278 PyObject *o = PyInt_FromLong((long) (*arg3));
11279 resultobj = t_output_helper(resultobj,o);
11280 }
11281 {
11282 PyObject *o = PyInt_FromLong((long) (*arg4));
11283 resultobj = t_output_helper(resultobj,o);
11284 }
11285 {
11286 PyObject *o = PyInt_FromLong((long) (*arg5));
11287 resultobj = t_output_helper(resultobj,o);
11288 }
11289 {
11290 PyObject *o = PyInt_FromLong((long) (*arg6));
11291 resultobj = t_output_helper(resultobj,o);
11292 }
11293 {
11294 if (temp2)
11295 delete arg2;
11296 }
11297 return resultobj;
11298 fail:
11299 {
11300 if (temp2)
11301 delete arg2;
11302 }
11303 return NULL;
11304 }
11305
11306
11307 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11308 PyObject *resultobj;
11309 wxDC *arg1 = (wxDC *) 0 ;
11310 wxString *arg2 = 0 ;
11311 int *arg3 = (int *) 0 ;
11312 int *arg4 = (int *) 0 ;
11313 int *arg5 = (int *) 0 ;
11314 wxFont *arg6 = (wxFont *) NULL ;
11315 bool temp2 = False ;
11316 int temp3 ;
11317 int temp4 ;
11318 int temp5 ;
11319 PyObject * obj0 = 0 ;
11320 PyObject * obj1 = 0 ;
11321 PyObject * obj2 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self",(char *) "text",(char *) "font", NULL
11324 };
11325
11326 arg3 = &temp3;
11327 arg4 = &temp4;
11328 arg5 = &temp5;
11329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11331 {
11332 arg2 = wxString_in_helper(obj1);
11333 if (arg2 == NULL) SWIG_fail;
11334 temp2 = True;
11335 }
11336 if (obj2) {
11337 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11338 }
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
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) (*arg3));
11349 resultobj = t_output_helper(resultobj,o);
11350 }
11351 {
11352 PyObject *o = PyInt_FromLong((long) (*arg4));
11353 resultobj = t_output_helper(resultobj,o);
11354 }
11355 {
11356 PyObject *o = PyInt_FromLong((long) (*arg5));
11357 resultobj = t_output_helper(resultobj,o);
11358 }
11359 {
11360 if (temp2)
11361 delete arg2;
11362 }
11363 return resultobj;
11364 fail:
11365 {
11366 if (temp2)
11367 delete arg2;
11368 }
11369 return NULL;
11370 }
11371
11372
11373 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj;
11375 wxDC *arg1 = (wxDC *) 0 ;
11376 wxSize result;
11377 PyObject * obj0 = 0 ;
11378 char *kwnames[] = {
11379 (char *) "self", NULL
11380 };
11381
11382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (arg1)->GetSize();
11387
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 {
11392 wxSize * resultptr;
11393 resultptr = new wxSize((wxSize &) result);
11394 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11395 }
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj;
11404 wxDC *arg1 = (wxDC *) 0 ;
11405 int *arg2 = (int *) 0 ;
11406 int *arg3 = (int *) 0 ;
11407 int temp2 ;
11408 int temp3 ;
11409 PyObject * obj0 = 0 ;
11410 char *kwnames[] = {
11411 (char *) "self", NULL
11412 };
11413
11414 arg2 = &temp2;
11415 arg3 = &temp3;
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 (arg1)->GetSize(arg2,arg3);
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 Py_INCREF(Py_None); resultobj = Py_None;
11426 {
11427 PyObject *o = PyInt_FromLong((long) (*arg2));
11428 resultobj = t_output_helper(resultobj,o);
11429 }
11430 {
11431 PyObject *o = PyInt_FromLong((long) (*arg3));
11432 resultobj = t_output_helper(resultobj,o);
11433 }
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11441 PyObject *resultobj;
11442 wxDC *arg1 = (wxDC *) 0 ;
11443 wxSize result;
11444 PyObject * obj0 = 0 ;
11445 char *kwnames[] = {
11446 (char *) "self", NULL
11447 };
11448
11449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 result = ((wxDC const *)arg1)->GetSizeMM();
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 {
11459 wxSize * resultptr;
11460 resultptr = new wxSize((wxSize &) result);
11461 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11462 }
11463 return resultobj;
11464 fail:
11465 return NULL;
11466 }
11467
11468
11469 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj;
11471 wxDC *arg1 = (wxDC *) 0 ;
11472 int *arg2 = (int *) 0 ;
11473 int *arg3 = (int *) 0 ;
11474 int temp2 ;
11475 int temp3 ;
11476 PyObject * obj0 = 0 ;
11477 char *kwnames[] = {
11478 (char *) "self", NULL
11479 };
11480
11481 arg2 = &temp2;
11482 arg3 = &temp3;
11483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
11484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11488
11489 wxPyEndAllowThreads(__tstate);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 Py_INCREF(Py_None); resultobj = Py_None;
11493 {
11494 PyObject *o = PyInt_FromLong((long) (*arg2));
11495 resultobj = t_output_helper(resultobj,o);
11496 }
11497 {
11498 PyObject *o = PyInt_FromLong((long) (*arg3));
11499 resultobj = t_output_helper(resultobj,o);
11500 }
11501 return resultobj;
11502 fail:
11503 return NULL;
11504 }
11505
11506
11507 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11508 PyObject *resultobj;
11509 wxDC *arg1 = (wxDC *) 0 ;
11510 int arg2 ;
11511 int result;
11512 PyObject * obj0 = 0 ;
11513 char *kwnames[] = {
11514 (char *) "self",(char *) "x", NULL
11515 };
11516
11517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11519 {
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
11522
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 resultobj = PyInt_FromLong((long)result);
11527 return resultobj;
11528 fail:
11529 return NULL;
11530 }
11531
11532
11533 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11534 PyObject *resultobj;
11535 wxDC *arg1 = (wxDC *) 0 ;
11536 int arg2 ;
11537 int result;
11538 PyObject * obj0 = 0 ;
11539 char *kwnames[] = {
11540 (char *) "self",(char *) "y", NULL
11541 };
11542
11543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
11548
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 resultobj = PyInt_FromLong((long)result);
11553 return resultobj;
11554 fail:
11555 return NULL;
11556 }
11557
11558
11559 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 int arg2 ;
11563 int result;
11564 PyObject * obj0 = 0 ;
11565 char *kwnames[] = {
11566 (char *) "self",(char *) "x", NULL
11567 };
11568
11569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
11574
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 resultobj = PyInt_FromLong((long)result);
11579 return resultobj;
11580 fail:
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxDC *arg1 = (wxDC *) 0 ;
11588 int arg2 ;
11589 int result;
11590 PyObject * obj0 = 0 ;
11591 char *kwnames[] = {
11592 (char *) "self",(char *) "y", NULL
11593 };
11594
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = PyInt_FromLong((long)result);
11605 return resultobj;
11606 fail:
11607 return NULL;
11608 }
11609
11610
11611 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj;
11613 wxDC *arg1 = (wxDC *) 0 ;
11614 int arg2 ;
11615 int result;
11616 PyObject * obj0 = 0 ;
11617 char *kwnames[] = {
11618 (char *) "self",(char *) "x", NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
11626
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 resultobj = PyInt_FromLong((long)result);
11631 return resultobj;
11632 fail:
11633 return NULL;
11634 }
11635
11636
11637 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj;
11639 wxDC *arg1 = (wxDC *) 0 ;
11640 int arg2 ;
11641 int result;
11642 PyObject * obj0 = 0 ;
11643 char *kwnames[] = {
11644 (char *) "self",(char *) "y", NULL
11645 };
11646
11647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11649 {
11650 PyThreadState* __tstate = wxPyBeginAllowThreads();
11651 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
11652
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 resultobj = PyInt_FromLong((long)result);
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11664 PyObject *resultobj;
11665 wxDC *arg1 = (wxDC *) 0 ;
11666 int arg2 ;
11667 int result;
11668 PyObject * obj0 = 0 ;
11669 char *kwnames[] = {
11670 (char *) "self",(char *) "x", NULL
11671 };
11672
11673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
11678
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 resultobj = PyInt_FromLong((long)result);
11683 return resultobj;
11684 fail:
11685 return NULL;
11686 }
11687
11688
11689 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj;
11691 wxDC *arg1 = (wxDC *) 0 ;
11692 int arg2 ;
11693 int result;
11694 PyObject * obj0 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "self",(char *) "y", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 {
11702 PyThreadState* __tstate = wxPyBeginAllowThreads();
11703 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
11704
11705 wxPyEndAllowThreads(__tstate);
11706 if (PyErr_Occurred()) SWIG_fail;
11707 }
11708 resultobj = PyInt_FromLong((long)result);
11709 return resultobj;
11710 fail:
11711 return NULL;
11712 }
11713
11714
11715 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11716 PyObject *resultobj;
11717 wxDC *arg1 = (wxDC *) 0 ;
11718 bool result;
11719 PyObject * obj0 = 0 ;
11720 char *kwnames[] = {
11721 (char *) "self", NULL
11722 };
11723
11724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11729
11730 wxPyEndAllowThreads(__tstate);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 }
11733 resultobj = PyInt_FromLong((long)result);
11734 return resultobj;
11735 fail:
11736 return NULL;
11737 }
11738
11739
11740 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 wxDC *arg1 = (wxDC *) 0 ;
11743 bool result;
11744 PyObject * obj0 = 0 ;
11745 char *kwnames[] = {
11746 (char *) "self", NULL
11747 };
11748
11749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11754
11755 wxPyEndAllowThreads(__tstate);
11756 if (PyErr_Occurred()) SWIG_fail;
11757 }
11758 resultobj = PyInt_FromLong((long)result);
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11766 PyObject *resultobj;
11767 wxDC *arg1 = (wxDC *) 0 ;
11768 int result;
11769 PyObject * obj0 = 0 ;
11770 char *kwnames[] = {
11771 (char *) "self", NULL
11772 };
11773
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 result = (int)((wxDC const *)arg1)->GetDepth();
11779
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 resultobj = PyInt_FromLong((long)result);
11784 return resultobj;
11785 fail:
11786 return NULL;
11787 }
11788
11789
11790 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11791 PyObject *resultobj;
11792 wxDC *arg1 = (wxDC *) 0 ;
11793 wxSize result;
11794 PyObject * obj0 = 0 ;
11795 char *kwnames[] = {
11796 (char *) "self", NULL
11797 };
11798
11799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = ((wxDC const *)arg1)->GetPPI();
11804
11805 wxPyEndAllowThreads(__tstate);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 {
11809 wxSize * resultptr;
11810 resultptr = new wxSize((wxSize &) result);
11811 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11812 }
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11820 PyObject *resultobj;
11821 wxDC *arg1 = (wxDC *) 0 ;
11822 bool result;
11823 PyObject * obj0 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (bool)((wxDC const *)arg1)->Ok();
11833
11834 wxPyEndAllowThreads(__tstate);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 }
11837 resultobj = PyInt_FromLong((long)result);
11838 return resultobj;
11839 fail:
11840 return NULL;
11841 }
11842
11843
11844 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11845 PyObject *resultobj;
11846 wxDC *arg1 = (wxDC *) 0 ;
11847 int result;
11848 PyObject * obj0 = 0 ;
11849 char *kwnames[] = {
11850 (char *) "self", NULL
11851 };
11852
11853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11855 {
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11858
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 resultobj = PyInt_FromLong((long)result);
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj;
11871 wxDC *arg1 = (wxDC *) 0 ;
11872 wxBrush *result;
11873 PyObject * obj0 = 0 ;
11874 char *kwnames[] = {
11875 (char *) "self", NULL
11876 };
11877
11878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 {
11883 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11884 result = (wxBrush *) &_result_ref;
11885 }
11886
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj;
11899 wxDC *arg1 = (wxDC *) 0 ;
11900 wxBrush *result;
11901 PyObject * obj0 = 0 ;
11902 char *kwnames[] = {
11903 (char *) "self", NULL
11904 };
11905
11906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11908 {
11909 PyThreadState* __tstate = wxPyBeginAllowThreads();
11910 {
11911 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11912 result = (wxBrush *) &_result_ref;
11913 }
11914
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11919 return resultobj;
11920 fail:
11921 return NULL;
11922 }
11923
11924
11925 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11926 PyObject *resultobj;
11927 wxDC *arg1 = (wxDC *) 0 ;
11928 wxFont *result;
11929 PyObject * obj0 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 {
11939 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11940 result = (wxFont *) &_result_ref;
11941 }
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11947 return resultobj;
11948 fail:
11949 return NULL;
11950 }
11951
11952
11953 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxDC *arg1 = (wxDC *) 0 ;
11956 wxPen *result;
11957 PyObject * obj0 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 {
11967 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11968 result = (wxPen *) &_result_ref;
11969 }
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj;
11983 wxDC *arg1 = (wxDC *) 0 ;
11984 wxColour *result;
11985 PyObject * obj0 = 0 ;
11986 char *kwnames[] = {
11987 (char *) "self", NULL
11988 };
11989
11990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
11991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 {
11995 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
11996 result = (wxColour *) &_result_ref;
11997 }
11998
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12010 PyObject *resultobj;
12011 wxDC *arg1 = (wxDC *) 0 ;
12012 wxColour *result;
12013 PyObject * obj0 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "self", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 {
12023 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12024 result = (wxColour *) &_result_ref;
12025 }
12026
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12031 return resultobj;
12032 fail:
12033 return NULL;
12034 }
12035
12036
12037 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj;
12039 wxDC *arg1 = (wxDC *) 0 ;
12040 wxColour *arg2 = 0 ;
12041 wxColour temp2 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char *kwnames[] = {
12045 (char *) "self",(char *) "colour", NULL
12046 };
12047
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12050 {
12051 arg2 = &temp2;
12052 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12053 }
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 (arg1)->SetTextForeground((wxColour const &)*arg2);
12057
12058 wxPyEndAllowThreads(__tstate);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 Py_INCREF(Py_None); resultobj = Py_None;
12062 return resultobj;
12063 fail:
12064 return NULL;
12065 }
12066
12067
12068 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxDC *arg1 = (wxDC *) 0 ;
12071 wxColour *arg2 = 0 ;
12072 wxColour temp2 ;
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
12075 char *kwnames[] = {
12076 (char *) "self",(char *) "colour", NULL
12077 };
12078
12079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12081 {
12082 arg2 = &temp2;
12083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12084 }
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 (arg1)->SetTextBackground((wxColour const &)*arg2);
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 Py_INCREF(Py_None); resultobj = Py_None;
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxDC *arg1 = (wxDC *) 0 ;
12102 int result;
12103 PyObject * obj0 = 0 ;
12104 char *kwnames[] = {
12105 (char *) "self", NULL
12106 };
12107
12108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 result = (int)((wxDC const *)arg1)->GetMapMode();
12113
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) SWIG_fail;
12116 }
12117 resultobj = PyInt_FromLong((long)result);
12118 return resultobj;
12119 fail:
12120 return NULL;
12121 }
12122
12123
12124 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12125 PyObject *resultobj;
12126 wxDC *arg1 = (wxDC *) 0 ;
12127 int arg2 ;
12128 PyObject * obj0 = 0 ;
12129 char *kwnames[] = {
12130 (char *) "self",(char *) "mode", NULL
12131 };
12132
12133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 (arg1)->SetMapMode(arg2);
12138
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 Py_INCREF(Py_None); resultobj = Py_None;
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj;
12151 wxDC *arg1 = (wxDC *) 0 ;
12152 double *arg2 = (double *) 0 ;
12153 double *arg3 = (double *) 0 ;
12154 double temp2 ;
12155 double temp3 ;
12156 PyObject * obj0 = 0 ;
12157 char *kwnames[] = {
12158 (char *) "self", NULL
12159 };
12160
12161 arg2 = &temp2;
12162 arg3 = &temp3;
12163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12168
12169 wxPyEndAllowThreads(__tstate);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 }
12172 Py_INCREF(Py_None); resultobj = Py_None;
12173 {
12174 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12175 resultobj = t_output_helper(resultobj,o);
12176 }
12177 {
12178 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12179 resultobj = t_output_helper(resultobj,o);
12180 }
12181 return resultobj;
12182 fail:
12183 return NULL;
12184 }
12185
12186
12187 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12188 PyObject *resultobj;
12189 wxDC *arg1 = (wxDC *) 0 ;
12190 double arg2 ;
12191 double arg3 ;
12192 PyObject * obj0 = 0 ;
12193 char *kwnames[] = {
12194 (char *) "self",(char *) "x",(char *) "y", NULL
12195 };
12196
12197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 (arg1)->SetUserScale(arg2,arg3);
12202
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 Py_INCREF(Py_None); resultobj = Py_None;
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj;
12215 wxDC *arg1 = (wxDC *) 0 ;
12216 double *arg2 = (double *) 0 ;
12217 double *arg3 = (double *) 0 ;
12218 double temp2 ;
12219 double temp3 ;
12220 PyObject * obj0 = 0 ;
12221 char *kwnames[] = {
12222 (char *) "self", NULL
12223 };
12224
12225 arg2 = &temp2;
12226 arg3 = &temp3;
12227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 (arg1)->GetLogicalScale(arg2,arg3);
12232
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 Py_INCREF(Py_None); resultobj = Py_None;
12237 {
12238 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12239 resultobj = t_output_helper(resultobj,o);
12240 }
12241 {
12242 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12243 resultobj = t_output_helper(resultobj,o);
12244 }
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj;
12253 wxDC *arg1 = (wxDC *) 0 ;
12254 double arg2 ;
12255 double arg3 ;
12256 PyObject * obj0 = 0 ;
12257 char *kwnames[] = {
12258 (char *) "self",(char *) "x",(char *) "y", NULL
12259 };
12260
12261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12263 {
12264 PyThreadState* __tstate = wxPyBeginAllowThreads();
12265 (arg1)->SetLogicalScale(arg2,arg3);
12266
12267 wxPyEndAllowThreads(__tstate);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 Py_INCREF(Py_None); resultobj = Py_None;
12271 return resultobj;
12272 fail:
12273 return NULL;
12274 }
12275
12276
12277 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12278 PyObject *resultobj;
12279 wxDC *arg1 = (wxDC *) 0 ;
12280 wxPoint result;
12281 PyObject * obj0 = 0 ;
12282 char *kwnames[] = {
12283 (char *) "self", NULL
12284 };
12285
12286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12291
12292 wxPyEndAllowThreads(__tstate);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 }
12295 {
12296 wxPoint * resultptr;
12297 resultptr = new wxPoint((wxPoint &) result);
12298 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12299 }
12300 return resultobj;
12301 fail:
12302 return NULL;
12303 }
12304
12305
12306 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12307 PyObject *resultobj;
12308 wxDC *arg1 = (wxDC *) 0 ;
12309 int *arg2 = (int *) 0 ;
12310 int *arg3 = (int *) 0 ;
12311 int temp2 ;
12312 int temp3 ;
12313 PyObject * obj0 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self", NULL
12316 };
12317
12318 arg2 = &temp2;
12319 arg3 = &temp3;
12320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12325
12326 wxPyEndAllowThreads(__tstate);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 }
12329 Py_INCREF(Py_None); resultobj = Py_None;
12330 {
12331 PyObject *o = PyInt_FromLong((long) (*arg2));
12332 resultobj = t_output_helper(resultobj,o);
12333 }
12334 {
12335 PyObject *o = PyInt_FromLong((long) (*arg3));
12336 resultobj = t_output_helper(resultobj,o);
12337 }
12338 return resultobj;
12339 fail:
12340 return NULL;
12341 }
12342
12343
12344 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12345 PyObject *resultobj;
12346 wxDC *arg1 = (wxDC *) 0 ;
12347 int arg2 ;
12348 int arg3 ;
12349 PyObject * obj0 = 0 ;
12350 char *kwnames[] = {
12351 (char *) "self",(char *) "x",(char *) "y", NULL
12352 };
12353
12354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->SetLogicalOrigin(arg2,arg3);
12359
12360 wxPyEndAllowThreads(__tstate);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 }
12363 Py_INCREF(Py_None); resultobj = Py_None;
12364 return resultobj;
12365 fail:
12366 return NULL;
12367 }
12368
12369
12370 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12371 PyObject *resultobj;
12372 wxDC *arg1 = (wxDC *) 0 ;
12373 wxPoint result;
12374 PyObject * obj0 = 0 ;
12375 char *kwnames[] = {
12376 (char *) "self", NULL
12377 };
12378
12379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12384
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 {
12389 wxPoint * resultptr;
12390 resultptr = new wxPoint((wxPoint &) result);
12391 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12392 }
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxDC *arg1 = (wxDC *) 0 ;
12402 int *arg2 = (int *) 0 ;
12403 int *arg3 = (int *) 0 ;
12404 int temp2 ;
12405 int temp3 ;
12406 PyObject * obj0 = 0 ;
12407 char *kwnames[] = {
12408 (char *) "self", NULL
12409 };
12410
12411 arg2 = &temp2;
12412 arg3 = &temp3;
12413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12418
12419 wxPyEndAllowThreads(__tstate);
12420 if (PyErr_Occurred()) SWIG_fail;
12421 }
12422 Py_INCREF(Py_None); resultobj = Py_None;
12423 {
12424 PyObject *o = PyInt_FromLong((long) (*arg2));
12425 resultobj = t_output_helper(resultobj,o);
12426 }
12427 {
12428 PyObject *o = PyInt_FromLong((long) (*arg3));
12429 resultobj = t_output_helper(resultobj,o);
12430 }
12431 return resultobj;
12432 fail:
12433 return NULL;
12434 }
12435
12436
12437 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj;
12439 wxDC *arg1 = (wxDC *) 0 ;
12440 int arg2 ;
12441 int arg3 ;
12442 PyObject * obj0 = 0 ;
12443 char *kwnames[] = {
12444 (char *) "self",(char *) "x",(char *) "y", NULL
12445 };
12446
12447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 (arg1)->SetDeviceOrigin(arg2,arg3);
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 Py_INCREF(Py_None); resultobj = Py_None;
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj;
12465 wxDC *arg1 = (wxDC *) 0 ;
12466 bool arg2 ;
12467 bool arg3 ;
12468 PyObject * obj0 = 0 ;
12469 PyObject * obj1 = 0 ;
12470 PyObject * obj2 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12477 arg2 = PyInt_AsLong(obj1) ? true : false;
12478 if (PyErr_Occurred()) SWIG_fail;
12479 arg3 = PyInt_AsLong(obj2) ? true : false;
12480 if (PyErr_Occurred()) SWIG_fail;
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->SetAxisOrientation(arg2,arg3);
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 Py_INCREF(Py_None); resultobj = Py_None;
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 int result;
12499 PyObject * obj0 = 0 ;
12500 char *kwnames[] = {
12501 (char *) "self", NULL
12502 };
12503
12504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12509
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 resultobj = PyInt_FromLong((long)result);
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxDC *arg1 = (wxDC *) 0 ;
12523 int arg2 ;
12524 PyObject * obj0 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self",(char *) "function", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 (arg1)->SetLogicalFunction(arg2);
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 Py_INCREF(Py_None); resultobj = Py_None;
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12546 PyObject *resultobj;
12547 wxDC *arg1 = (wxDC *) 0 ;
12548 bool arg2 ;
12549 PyObject * obj0 = 0 ;
12550 PyObject * obj1 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self",(char *) "opt", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12557 arg2 = PyInt_AsLong(obj1) ? true : false;
12558 if (PyErr_Occurred()) SWIG_fail;
12559 {
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 (arg1)->SetOptimization(arg2);
12562
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
12566 Py_INCREF(Py_None); resultobj = Py_None;
12567 return resultobj;
12568 fail:
12569 return NULL;
12570 }
12571
12572
12573 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj;
12575 wxDC *arg1 = (wxDC *) 0 ;
12576 bool result;
12577 PyObject * obj0 = 0 ;
12578 char *kwnames[] = {
12579 (char *) "self", NULL
12580 };
12581
12582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 result = (bool)(arg1)->GetOptimization();
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = PyInt_FromLong((long)result);
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj;
12600 wxDC *arg1 = (wxDC *) 0 ;
12601 int arg2 ;
12602 int arg3 ;
12603 PyObject * obj0 = 0 ;
12604 char *kwnames[] = {
12605 (char *) "self",(char *) "x",(char *) "y", NULL
12606 };
12607
12608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 (arg1)->CalcBoundingBox(arg2,arg3);
12613
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 Py_INCREF(Py_None); resultobj = Py_None;
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 wxDC *arg1 = (wxDC *) 0 ;
12627 PyObject * obj0 = 0 ;
12628 char *kwnames[] = {
12629 (char *) "self", NULL
12630 };
12631
12632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12634 {
12635 PyThreadState* __tstate = wxPyBeginAllowThreads();
12636 (arg1)->ResetBoundingBox();
12637
12638 wxPyEndAllowThreads(__tstate);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 Py_INCREF(Py_None); resultobj = Py_None;
12642 return resultobj;
12643 fail:
12644 return NULL;
12645 }
12646
12647
12648 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxDC *arg1 = (wxDC *) 0 ;
12651 int result;
12652 PyObject * obj0 = 0 ;
12653 char *kwnames[] = {
12654 (char *) "self", NULL
12655 };
12656
12657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (int)((wxDC const *)arg1)->MinX();
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = PyInt_FromLong((long)result);
12667 return resultobj;
12668 fail:
12669 return NULL;
12670 }
12671
12672
12673 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12674 PyObject *resultobj;
12675 wxDC *arg1 = (wxDC *) 0 ;
12676 int result;
12677 PyObject * obj0 = 0 ;
12678 char *kwnames[] = {
12679 (char *) "self", NULL
12680 };
12681
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = (int)((wxDC const *)arg1)->MaxX();
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = PyInt_FromLong((long)result);
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxDC *arg1 = (wxDC *) 0 ;
12701 int result;
12702 PyObject * obj0 = 0 ;
12703 char *kwnames[] = {
12704 (char *) "self", NULL
12705 };
12706
12707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12709 {
12710 PyThreadState* __tstate = wxPyBeginAllowThreads();
12711 result = (int)((wxDC const *)arg1)->MinY();
12712
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 resultobj = PyInt_FromLong((long)result);
12717 return resultobj;
12718 fail:
12719 return NULL;
12720 }
12721
12722
12723 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj;
12725 wxDC *arg1 = (wxDC *) 0 ;
12726 int result;
12727 PyObject * obj0 = 0 ;
12728 char *kwnames[] = {
12729 (char *) "self", NULL
12730 };
12731
12732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12734 {
12735 PyThreadState* __tstate = wxPyBeginAllowThreads();
12736 result = (int)((wxDC const *)arg1)->MaxY();
12737
12738 wxPyEndAllowThreads(__tstate);
12739 if (PyErr_Occurred()) SWIG_fail;
12740 }
12741 resultobj = PyInt_FromLong((long)result);
12742 return resultobj;
12743 fail:
12744 return NULL;
12745 }
12746
12747
12748 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12749 PyObject *resultobj;
12750 wxDC *arg1 = (wxDC *) 0 ;
12751 int *arg2 = (int *) 0 ;
12752 int *arg3 = (int *) 0 ;
12753 int *arg4 = (int *) 0 ;
12754 int *arg5 = (int *) 0 ;
12755 int temp2 ;
12756 int temp3 ;
12757 int temp4 ;
12758 int temp5 ;
12759 PyObject * obj0 = 0 ;
12760 char *kwnames[] = {
12761 (char *) "self", NULL
12762 };
12763
12764 arg2 = &temp2;
12765 arg3 = &temp3;
12766 arg4 = &temp4;
12767 arg5 = &temp5;
12768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12773
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 Py_INCREF(Py_None); resultobj = Py_None;
12778 {
12779 PyObject *o = PyInt_FromLong((long) (*arg2));
12780 resultobj = t_output_helper(resultobj,o);
12781 }
12782 {
12783 PyObject *o = PyInt_FromLong((long) (*arg3));
12784 resultobj = t_output_helper(resultobj,o);
12785 }
12786 {
12787 PyObject *o = PyInt_FromLong((long) (*arg4));
12788 resultobj = t_output_helper(resultobj,o);
12789 }
12790 {
12791 PyObject *o = PyInt_FromLong((long) (*arg5));
12792 resultobj = t_output_helper(resultobj,o);
12793 }
12794 return resultobj;
12795 fail:
12796 return NULL;
12797 }
12798
12799
12800 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12801 PyObject *resultobj;
12802 wxDC *arg1 = (wxDC *) 0 ;
12803 PyObject *arg2 = (PyObject *) 0 ;
12804 PyObject *arg3 = (PyObject *) 0 ;
12805 PyObject *arg4 = (PyObject *) 0 ;
12806 PyObject *result;
12807 PyObject * obj0 = 0 ;
12808 PyObject * obj1 = 0 ;
12809 PyObject * obj2 = 0 ;
12810 PyObject * obj3 = 0 ;
12811 char *kwnames[] = {
12812 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12813 };
12814
12815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12817 arg2 = obj1;
12818 arg3 = obj2;
12819 arg4 = obj3;
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12823
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 resultobj = result;
12828 return resultobj;
12829 fail:
12830 return NULL;
12831 }
12832
12833
12834 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj;
12836 wxDC *arg1 = (wxDC *) 0 ;
12837 PyObject *arg2 = (PyObject *) 0 ;
12838 PyObject *arg3 = (PyObject *) 0 ;
12839 PyObject *arg4 = (PyObject *) 0 ;
12840 PyObject *result;
12841 PyObject * obj0 = 0 ;
12842 PyObject * obj1 = 0 ;
12843 PyObject * obj2 = 0 ;
12844 PyObject * obj3 = 0 ;
12845 char *kwnames[] = {
12846 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12847 };
12848
12849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12851 arg2 = obj1;
12852 arg3 = obj2;
12853 arg4 = obj3;
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12857
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 resultobj = result;
12862 return resultobj;
12863 fail:
12864 return NULL;
12865 }
12866
12867
12868 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj;
12870 wxDC *arg1 = (wxDC *) 0 ;
12871 PyObject *arg2 = (PyObject *) 0 ;
12872 PyObject *arg3 = (PyObject *) 0 ;
12873 PyObject *arg4 = (PyObject *) 0 ;
12874 PyObject *result;
12875 PyObject * obj0 = 0 ;
12876 PyObject * obj1 = 0 ;
12877 PyObject * obj2 = 0 ;
12878 PyObject * obj3 = 0 ;
12879 char *kwnames[] = {
12880 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12881 };
12882
12883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12885 arg2 = obj1;
12886 arg3 = obj2;
12887 arg4 = obj3;
12888 {
12889 PyThreadState* __tstate = wxPyBeginAllowThreads();
12890 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12891
12892 wxPyEndAllowThreads(__tstate);
12893 if (PyErr_Occurred()) SWIG_fail;
12894 }
12895 resultobj = result;
12896 return resultobj;
12897 fail:
12898 return NULL;
12899 }
12900
12901
12902 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12903 PyObject *resultobj;
12904 wxDC *arg1 = (wxDC *) 0 ;
12905 PyObject *arg2 = (PyObject *) 0 ;
12906 PyObject *arg3 = (PyObject *) 0 ;
12907 PyObject *arg4 = (PyObject *) 0 ;
12908 PyObject *result;
12909 PyObject * obj0 = 0 ;
12910 PyObject * obj1 = 0 ;
12911 PyObject * obj2 = 0 ;
12912 PyObject * obj3 = 0 ;
12913 char *kwnames[] = {
12914 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12915 };
12916
12917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12919 arg2 = obj1;
12920 arg3 = obj2;
12921 arg4 = obj3;
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12925
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 resultobj = result;
12930 return resultobj;
12931 fail:
12932 return NULL;
12933 }
12934
12935
12936 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj;
12938 wxDC *arg1 = (wxDC *) 0 ;
12939 PyObject *arg2 = (PyObject *) 0 ;
12940 PyObject *arg3 = (PyObject *) 0 ;
12941 PyObject *arg4 = (PyObject *) 0 ;
12942 PyObject *result;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 PyObject * obj2 = 0 ;
12946 PyObject * obj3 = 0 ;
12947 char *kwnames[] = {
12948 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12949 };
12950
12951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12953 arg2 = obj1;
12954 arg3 = obj2;
12955 arg4 = obj3;
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12959
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = result;
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj;
12972 wxDC *arg1 = (wxDC *) 0 ;
12973 PyObject *arg2 = (PyObject *) 0 ;
12974 PyObject *arg3 = (PyObject *) 0 ;
12975 PyObject *arg4 = (PyObject *) 0 ;
12976 PyObject *arg5 = (PyObject *) 0 ;
12977 PyObject *result;
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
12980 PyObject * obj2 = 0 ;
12981 PyObject * obj3 = 0 ;
12982 PyObject * obj4 = 0 ;
12983 char *kwnames[] = {
12984 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
12985 };
12986
12987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12989 arg2 = obj1;
12990 arg3 = obj2;
12991 arg4 = obj3;
12992 arg5 = obj4;
12993 {
12994 PyThreadState* __tstate = wxPyBeginAllowThreads();
12995 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
12996
12997 wxPyEndAllowThreads(__tstate);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 resultobj = result;
13001 return resultobj;
13002 fail:
13003 return NULL;
13004 }
13005
13006
13007 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13008 PyObject *obj;
13009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13010 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13011 Py_INCREF(obj);
13012 return Py_BuildValue((char *)"");
13013 }
13014 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13015 PyObject *resultobj;
13016 wxMemoryDC *result;
13017 char *kwnames[] = {
13018 NULL
13019 };
13020
13021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 result = (wxMemoryDC *)new wxMemoryDC();
13025
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj;
13038 wxDC *arg1 = (wxDC *) 0 ;
13039 wxMemoryDC *result;
13040 PyObject * obj0 = 0 ;
13041 char *kwnames[] = {
13042 (char *) "oldDC", NULL
13043 };
13044
13045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13047 {
13048 PyThreadState* __tstate = wxPyBeginAllowThreads();
13049 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13050
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13055 return resultobj;
13056 fail:
13057 return NULL;
13058 }
13059
13060
13061 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj;
13063 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13064 wxBitmap *arg2 = 0 ;
13065 PyObject * obj0 = 0 ;
13066 PyObject * obj1 = 0 ;
13067 char *kwnames[] = {
13068 (char *) "self",(char *) "bitmap", NULL
13069 };
13070
13071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13073 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13074 if (arg2 == NULL) {
13075 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13076 }
13077 {
13078 PyThreadState* __tstate = wxPyBeginAllowThreads();
13079 (arg1)->SelectObject((wxBitmap const &)*arg2);
13080
13081 wxPyEndAllowThreads(__tstate);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 Py_INCREF(Py_None); resultobj = Py_None;
13085 return resultobj;
13086 fail:
13087 return NULL;
13088 }
13089
13090
13091 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13092 PyObject *obj;
13093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13094 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13095 Py_INCREF(obj);
13096 return Py_BuildValue((char *)"");
13097 }
13098 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13099 PyObject *resultobj;
13100 wxDC *arg1 = (wxDC *) 0 ;
13101 wxBitmap *arg2 = 0 ;
13102 wxBufferedDC *result;
13103 PyObject * obj0 = 0 ;
13104 PyObject * obj1 = 0 ;
13105 char *kwnames[] = {
13106 (char *) "dc",(char *) "buffer", NULL
13107 };
13108
13109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13112 if (arg2 == NULL) {
13113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13114 }
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxDC *arg1 = (wxDC *) 0 ;
13132 wxSize *arg2 = 0 ;
13133 wxBufferedDC *result;
13134 wxSize temp2 ;
13135 PyObject * obj0 = 0 ;
13136 PyObject * obj1 = 0 ;
13137 char *kwnames[] = {
13138 (char *) "dc",(char *) "area", NULL
13139 };
13140
13141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13143 {
13144 arg2 = &temp2;
13145 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13150
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj;
13163 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13164 PyObject * obj0 = 0 ;
13165 char *kwnames[] = {
13166 (char *) "self", NULL
13167 };
13168
13169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 (arg1)->UnMask();
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 Py_INCREF(Py_None); resultobj = Py_None;
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13186 PyObject *obj;
13187 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13188 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13189 Py_INCREF(obj);
13190 return Py_BuildValue((char *)"");
13191 }
13192 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxWindow *arg1 = (wxWindow *) 0 ;
13195 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13196 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13197 wxBufferedPaintDC *result;
13198 PyObject * obj0 = 0 ;
13199 PyObject * obj1 = 0 ;
13200 char *kwnames[] = {
13201 (char *) "window",(char *) "buffer", NULL
13202 };
13203
13204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13206 if (obj1) {
13207 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13208 if (arg2 == NULL) {
13209 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13210 }
13211 }
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13215
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13227 PyObject *obj;
13228 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13229 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13230 Py_INCREF(obj);
13231 return Py_BuildValue((char *)"");
13232 }
13233 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13234 PyObject *resultobj;
13235 wxScreenDC *result;
13236 char *kwnames[] = {
13237 NULL
13238 };
13239
13240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 result = (wxScreenDC *)new wxScreenDC();
13244
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13258 wxWindow *arg2 = (wxWindow *) 0 ;
13259 bool result;
13260 PyObject * obj0 = 0 ;
13261 PyObject * obj1 = 0 ;
13262 char *kwnames[] = {
13263 (char *) "self",(char *) "window", NULL
13264 };
13265
13266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13268 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 resultobj = PyInt_FromLong((long)result);
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13286 wxRect *arg2 = (wxRect *) NULL ;
13287 bool result;
13288 PyObject * obj0 = 0 ;
13289 PyObject * obj1 = 0 ;
13290 char *kwnames[] = {
13291 (char *) "self",(char *) "rect", NULL
13292 };
13293
13294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13296 if (obj1) {
13297 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13298 }
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13302
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 resultobj = PyInt_FromLong((long)result);
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj;
13315 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13316 bool result;
13317 PyObject * obj0 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (bool)(arg1)->EndDrawingOnTop();
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 resultobj = PyInt_FromLong((long)result);
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13339 PyObject *obj;
13340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13341 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13342 Py_INCREF(obj);
13343 return Py_BuildValue((char *)"");
13344 }
13345 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxWindow *arg1 = (wxWindow *) 0 ;
13348 wxClientDC *result;
13349 PyObject * obj0 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "win", NULL
13352 };
13353
13354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 result = (wxClientDC *)new wxClientDC(arg1);
13359
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13364 return resultobj;
13365 fail:
13366 return NULL;
13367 }
13368
13369
13370 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13371 PyObject *obj;
13372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13373 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13374 Py_INCREF(obj);
13375 return Py_BuildValue((char *)"");
13376 }
13377 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13378 PyObject *resultobj;
13379 wxWindow *arg1 = (wxWindow *) 0 ;
13380 wxPaintDC *result;
13381 PyObject * obj0 = 0 ;
13382 char *kwnames[] = {
13383 (char *) "win", NULL
13384 };
13385
13386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (wxPaintDC *)new wxPaintDC(arg1);
13391
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13403 PyObject *obj;
13404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13405 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13406 Py_INCREF(obj);
13407 return Py_BuildValue((char *)"");
13408 }
13409 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj;
13411 wxWindow *arg1 = (wxWindow *) 0 ;
13412 wxWindowDC *result;
13413 PyObject * obj0 = 0 ;
13414 char *kwnames[] = {
13415 (char *) "win", NULL
13416 };
13417
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (wxWindowDC *)new wxWindowDC(arg1);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13435 PyObject *obj;
13436 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13437 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13438 Py_INCREF(obj);
13439 return Py_BuildValue((char *)"");
13440 }
13441 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13442 PyObject *resultobj;
13443 wxDC *arg1 = 0 ;
13444 bool arg2 ;
13445 wxMirrorDC *result;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "dc",(char *) "mirror", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13454 if (arg1 == NULL) {
13455 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13456 }
13457 arg2 = PyInt_AsLong(obj1) ? true : false;
13458 if (PyErr_Occurred()) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13474 PyObject *obj;
13475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13476 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13477 Py_INCREF(obj);
13478 return Py_BuildValue((char *)"");
13479 }
13480 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj;
13482 wxPrintData *arg1 = 0 ;
13483 wxPostScriptDC *result;
13484 PyObject * obj0 = 0 ;
13485 char *kwnames[] = {
13486 (char *) "printData", NULL
13487 };
13488
13489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13491 if (arg1 == NULL) {
13492 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13493 }
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13497
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj;
13510 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13511 wxPrintData *result;
13512 PyObject * obj0 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 {
13522 wxPrintData &_result_ref = (arg1)->GetPrintData();
13523 result = (wxPrintData *) &_result_ref;
13524 }
13525
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13530 return resultobj;
13531 fail:
13532 return NULL;
13533 }
13534
13535
13536 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj;
13538 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13539 wxPrintData *arg2 = 0 ;
13540 PyObject * obj0 = 0 ;
13541 PyObject * obj1 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self",(char *) "data", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13548 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13549 if (arg2 == NULL) {
13550 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13551 }
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13555
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 Py_INCREF(Py_None); resultobj = Py_None;
13560 return resultobj;
13561 fail:
13562 return NULL;
13563 }
13564
13565
13566 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj;
13568 int arg1 ;
13569 char *kwnames[] = {
13570 (char *) "ppi", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 wxPostScriptDC::SetResolution(arg1);
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 Py_INCREF(Py_None); resultobj = Py_None;
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 int result;
13591 char *kwnames[] = {
13592 NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13596 {
13597 PyThreadState* __tstate = wxPyBeginAllowThreads();
13598 result = (int)wxPostScriptDC::GetResolution();
13599
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 resultobj = PyInt_FromLong((long)result);
13604 return resultobj;
13605 fail:
13606 return NULL;
13607 }
13608
13609
13610 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13611 PyObject *obj;
13612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13613 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13614 Py_INCREF(obj);
13615 return Py_BuildValue((char *)"");
13616 }
13617 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxString const &arg1_defvalue = wxPyEmptyString ;
13620 wxString *arg1 = (wxString *) &arg1_defvalue ;
13621 wxMetaFile *result;
13622 bool temp1 = False ;
13623 PyObject * obj0 = 0 ;
13624 char *kwnames[] = {
13625 (char *) "filename", NULL
13626 };
13627
13628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13629 if (obj0) {
13630 {
13631 arg1 = wxString_in_helper(obj0);
13632 if (arg1 == NULL) SWIG_fail;
13633 temp1 = True;
13634 }
13635 }
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13644 {
13645 if (temp1)
13646 delete arg1;
13647 }
13648 return resultobj;
13649 fail:
13650 {
13651 if (temp1)
13652 delete arg1;
13653 }
13654 return NULL;
13655 }
13656
13657
13658 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13659 PyObject *obj;
13660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13661 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13662 Py_INCREF(obj);
13663 return Py_BuildValue((char *)"");
13664 }
13665 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13666 PyObject *resultobj;
13667 wxString const &arg1_defvalue = wxPyEmptyString ;
13668 wxString *arg1 = (wxString *) &arg1_defvalue ;
13669 int arg2 = (int) 0 ;
13670 int arg3 = (int) 0 ;
13671 wxString const &arg4_defvalue = wxPyEmptyString ;
13672 wxString *arg4 = (wxString *) &arg4_defvalue ;
13673 wxMetaFileDC *result;
13674 bool temp1 = False ;
13675 bool temp4 = False ;
13676 PyObject * obj0 = 0 ;
13677 PyObject * obj3 = 0 ;
13678 char *kwnames[] = {
13679 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13680 };
13681
13682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13683 if (obj0) {
13684 {
13685 arg1 = wxString_in_helper(obj0);
13686 if (arg1 == NULL) SWIG_fail;
13687 temp1 = True;
13688 }
13689 }
13690 if (obj3) {
13691 {
13692 arg4 = wxString_in_helper(obj3);
13693 if (arg4 == NULL) SWIG_fail;
13694 temp4 = True;
13695 }
13696 }
13697 {
13698 PyThreadState* __tstate = wxPyBeginAllowThreads();
13699 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13705 {
13706 if (temp1)
13707 delete arg1;
13708 }
13709 {
13710 if (temp4)
13711 delete arg4;
13712 }
13713 return resultobj;
13714 fail:
13715 {
13716 if (temp1)
13717 delete arg1;
13718 }
13719 {
13720 if (temp4)
13721 delete arg4;
13722 }
13723 return NULL;
13724 }
13725
13726
13727 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13728 PyObject *obj;
13729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13730 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13731 Py_INCREF(obj);
13732 return Py_BuildValue((char *)"");
13733 }
13734 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 wxPrintData *arg1 = 0 ;
13737 wxPrinterDC *result;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "printData", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13745 if (arg1 == NULL) {
13746 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13747 }
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13751
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13763 PyObject *obj;
13764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13765 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13766 Py_INCREF(obj);
13767 return Py_BuildValue((char *)"");
13768 }
13769 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj;
13771 int arg1 ;
13772 int arg2 ;
13773 int arg3 = (int) True ;
13774 int arg4 = (int) 1 ;
13775 wxImageList *result;
13776 char *kwnames[] = {
13777 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13778 };
13779
13780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13781 {
13782 PyThreadState* __tstate = wxPyBeginAllowThreads();
13783 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13784
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 {
13789 resultobj = wxPyMake_wxObject(result);
13790 }
13791 return resultobj;
13792 fail:
13793 return NULL;
13794 }
13795
13796
13797 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13798 PyObject *resultobj;
13799 wxImageList *arg1 = (wxImageList *) 0 ;
13800 PyObject * obj0 = 0 ;
13801 char *kwnames[] = {
13802 (char *) "self", NULL
13803 };
13804
13805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13807 {
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 delete arg1;
13810
13811 wxPyEndAllowThreads(__tstate);
13812 if (PyErr_Occurred()) SWIG_fail;
13813 }
13814 Py_INCREF(Py_None); resultobj = Py_None;
13815 return resultobj;
13816 fail:
13817 return NULL;
13818 }
13819
13820
13821 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13822 PyObject *resultobj;
13823 wxImageList *arg1 = (wxImageList *) 0 ;
13824 wxBitmap *arg2 = 0 ;
13825 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13826 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13827 int result;
13828 PyObject * obj0 = 0 ;
13829 PyObject * obj1 = 0 ;
13830 PyObject * obj2 = 0 ;
13831 char *kwnames[] = {
13832 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13833 };
13834
13835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13837 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13838 if (arg2 == NULL) {
13839 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13840 }
13841 if (obj2) {
13842 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13843 if (arg3 == NULL) {
13844 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13845 }
13846 }
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = PyInt_FromLong((long)result);
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxImageList *arg1 = (wxImageList *) 0 ;
13864 wxBitmap *arg2 = 0 ;
13865 wxColour *arg3 = 0 ;
13866 int result;
13867 wxColour temp3 ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 PyObject * obj2 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13877 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13878 if (arg2 == NULL) {
13879 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13880 }
13881 {
13882 arg3 = &temp3;
13883 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13884 }
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13888
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 resultobj = PyInt_FromLong((long)result);
13893 return resultobj;
13894 fail:
13895 return NULL;
13896 }
13897
13898
13899 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj;
13901 wxImageList *arg1 = (wxImageList *) 0 ;
13902 wxIcon *arg2 = 0 ;
13903 int result;
13904 PyObject * obj0 = 0 ;
13905 PyObject * obj1 = 0 ;
13906 char *kwnames[] = {
13907 (char *) "self",(char *) "icon", NULL
13908 };
13909
13910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13912 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13913 if (arg2 == NULL) {
13914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13915 }
13916 {
13917 PyThreadState* __tstate = wxPyBeginAllowThreads();
13918 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13919
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = PyInt_FromLong((long)result);
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj;
13932 wxImageList *arg1 = (wxImageList *) 0 ;
13933 int arg2 ;
13934 wxBitmap *arg3 = 0 ;
13935 bool result;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj2 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13944 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13945 if (arg3 == NULL) {
13946 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13947 }
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
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
13962 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxImageList *arg1 = (wxImageList *) 0 ;
13965 int arg2 ;
13966 wxDC *arg3 = 0 ;
13967 int arg4 ;
13968 int arg5 ;
13969 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
13970 bool arg7 = (bool) (bool)False ;
13971 bool result;
13972 PyObject * obj0 = 0 ;
13973 PyObject * obj2 = 0 ;
13974 PyObject * obj6 = 0 ;
13975 char *kwnames[] = {
13976 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13977 };
13978
13979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13981 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13982 if (arg3 == NULL) {
13983 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13984 }
13985 if (obj6) {
13986 arg7 = PyInt_AsLong(obj6) ? true : false;
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = PyInt_FromLong((long)result);
13997 return resultobj;
13998 fail:
13999 return NULL;
14000 }
14001
14002
14003 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj;
14005 wxImageList *arg1 = (wxImageList *) 0 ;
14006 int result;
14007 PyObject * obj0 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "self", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (int)(arg1)->GetImageCount();
14017
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 resultobj = PyInt_FromLong((long)result);
14022 return resultobj;
14023 fail:
14024 return NULL;
14025 }
14026
14027
14028 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14029 PyObject *resultobj;
14030 wxImageList *arg1 = (wxImageList *) 0 ;
14031 int arg2 ;
14032 bool result;
14033 PyObject * obj0 = 0 ;
14034 char *kwnames[] = {
14035 (char *) "self",(char *) "index", NULL
14036 };
14037
14038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (bool)(arg1)->Remove(arg2);
14043
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 resultobj = PyInt_FromLong((long)result);
14048 return resultobj;
14049 fail:
14050 return NULL;
14051 }
14052
14053
14054 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj;
14056 wxImageList *arg1 = (wxImageList *) 0 ;
14057 bool result;
14058 PyObject * obj0 = 0 ;
14059 char *kwnames[] = {
14060 (char *) "self", NULL
14061 };
14062
14063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14065 {
14066 PyThreadState* __tstate = wxPyBeginAllowThreads();
14067 result = (bool)(arg1)->RemoveAll();
14068
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 resultobj = PyInt_FromLong((long)result);
14073 return resultobj;
14074 fail:
14075 return NULL;
14076 }
14077
14078
14079 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14080 PyObject *resultobj;
14081 wxImageList *arg1 = (wxImageList *) 0 ;
14082 int arg2 ;
14083 int *arg3 = 0 ;
14084 int *arg4 = 0 ;
14085 int temp3 ;
14086 int temp4 ;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self",(char *) "index", NULL
14090 };
14091
14092 arg3 = &temp3;
14093 arg4 = &temp4;
14094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14096 {
14097 PyThreadState* __tstate = wxPyBeginAllowThreads();
14098 (arg1)->GetSize(arg2,*arg3,*arg4);
14099
14100 wxPyEndAllowThreads(__tstate);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 }
14103 Py_INCREF(Py_None); resultobj = Py_None;
14104 {
14105 PyObject *o = PyInt_FromLong((long) (*arg3));
14106 resultobj = t_output_helper(resultobj,o);
14107 }
14108 {
14109 PyObject *o = PyInt_FromLong((long) (*arg4));
14110 resultobj = t_output_helper(resultobj,o);
14111 }
14112 return resultobj;
14113 fail:
14114 return NULL;
14115 }
14116
14117
14118 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14119 PyObject *obj;
14120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14121 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14122 Py_INCREF(obj);
14123 return Py_BuildValue((char *)"");
14124 }
14125 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14126 PyObject *resultobj;
14127 wxPenList *arg1 = (wxPenList *) 0 ;
14128 wxPen *arg2 = (wxPen *) 0 ;
14129 PyObject * obj0 = 0 ;
14130 PyObject * obj1 = 0 ;
14131 char *kwnames[] = {
14132 (char *) "self",(char *) "pen", NULL
14133 };
14134
14135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14137 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14138 {
14139 PyThreadState* __tstate = wxPyBeginAllowThreads();
14140 (arg1)->AddPen(arg2);
14141
14142 wxPyEndAllowThreads(__tstate);
14143 if (PyErr_Occurred()) SWIG_fail;
14144 }
14145 Py_INCREF(Py_None); resultobj = Py_None;
14146 return resultobj;
14147 fail:
14148 return NULL;
14149 }
14150
14151
14152 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14153 PyObject *resultobj;
14154 wxPenList *arg1 = (wxPenList *) 0 ;
14155 wxColour *arg2 = 0 ;
14156 int arg3 ;
14157 int arg4 ;
14158 wxPen *result;
14159 wxColour temp2 ;
14160 PyObject * obj0 = 0 ;
14161 PyObject * obj1 = 0 ;
14162 char *kwnames[] = {
14163 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14164 };
14165
14166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14168 {
14169 arg2 = &temp2;
14170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14171 }
14172 {
14173 PyThreadState* __tstate = wxPyBeginAllowThreads();
14174 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14175
14176 wxPyEndAllowThreads(__tstate);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 }
14179 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14180 return resultobj;
14181 fail:
14182 return NULL;
14183 }
14184
14185
14186 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14187 PyObject *resultobj;
14188 wxPenList *arg1 = (wxPenList *) 0 ;
14189 wxPen *arg2 = (wxPen *) 0 ;
14190 PyObject * obj0 = 0 ;
14191 PyObject * obj1 = 0 ;
14192 char *kwnames[] = {
14193 (char *) "self",(char *) "pen", NULL
14194 };
14195
14196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14198 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14199 {
14200 PyThreadState* __tstate = wxPyBeginAllowThreads();
14201 (arg1)->RemovePen(arg2);
14202
14203 wxPyEndAllowThreads(__tstate);
14204 if (PyErr_Occurred()) SWIG_fail;
14205 }
14206 Py_INCREF(Py_None); resultobj = Py_None;
14207 return resultobj;
14208 fail:
14209 return NULL;
14210 }
14211
14212
14213 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14214 PyObject *resultobj;
14215 wxPenList *arg1 = (wxPenList *) 0 ;
14216 int result;
14217 PyObject * obj0 = 0 ;
14218 char *kwnames[] = {
14219 (char *) "self", NULL
14220 };
14221
14222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = (int)(arg1)->GetCount();
14227
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 resultobj = PyInt_FromLong((long)result);
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14239 PyObject *obj;
14240 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14241 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14242 Py_INCREF(obj);
14243 return Py_BuildValue((char *)"");
14244 }
14245 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj;
14247 wxBrushList *arg1 = (wxBrushList *) 0 ;
14248 wxBrush *arg2 = (wxBrush *) 0 ;
14249 PyObject * obj0 = 0 ;
14250 PyObject * obj1 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "self",(char *) "brush", NULL
14253 };
14254
14255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14257 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 (arg1)->AddBrush(arg2);
14261
14262 wxPyEndAllowThreads(__tstate);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 }
14265 Py_INCREF(Py_None); resultobj = Py_None;
14266 return resultobj;
14267 fail:
14268 return NULL;
14269 }
14270
14271
14272 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14273 PyObject *resultobj;
14274 wxBrushList *arg1 = (wxBrushList *) 0 ;
14275 wxColour *arg2 = 0 ;
14276 int arg3 ;
14277 wxBrush *result;
14278 wxColour temp2 ;
14279 PyObject * obj0 = 0 ;
14280 PyObject * obj1 = 0 ;
14281 char *kwnames[] = {
14282 (char *) "self",(char *) "colour",(char *) "style", NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14287 {
14288 arg2 = &temp2;
14289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14290 }
14291 {
14292 PyThreadState* __tstate = wxPyBeginAllowThreads();
14293 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14294
14295 wxPyEndAllowThreads(__tstate);
14296 if (PyErr_Occurred()) SWIG_fail;
14297 }
14298 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14299 return resultobj;
14300 fail:
14301 return NULL;
14302 }
14303
14304
14305 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14306 PyObject *resultobj;
14307 wxBrushList *arg1 = (wxBrushList *) 0 ;
14308 wxBrush *arg2 = (wxBrush *) 0 ;
14309 PyObject * obj0 = 0 ;
14310 PyObject * obj1 = 0 ;
14311 char *kwnames[] = {
14312 (char *) "self",(char *) "brush", NULL
14313 };
14314
14315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14317 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 (arg1)->RemoveBrush(arg2);
14321
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 Py_INCREF(Py_None); resultobj = Py_None;
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxBrushList *arg1 = (wxBrushList *) 0 ;
14335 int result;
14336 PyObject * obj0 = 0 ;
14337 char *kwnames[] = {
14338 (char *) "self", NULL
14339 };
14340
14341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 result = (int)(arg1)->GetCount();
14346
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = PyInt_FromLong((long)result);
14351 return resultobj;
14352 fail:
14353 return NULL;
14354 }
14355
14356
14357 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14358 PyObject *obj;
14359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14360 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14361 Py_INCREF(obj);
14362 return Py_BuildValue((char *)"");
14363 }
14364 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxColourDatabase *result;
14367 char *kwnames[] = {
14368 NULL
14369 };
14370
14371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14372 {
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = (wxColourDatabase *)new wxColourDatabase();
14375
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14380 return resultobj;
14381 fail:
14382 return NULL;
14383 }
14384
14385
14386 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14387 PyObject *resultobj;
14388 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14389 PyObject * obj0 = 0 ;
14390 char *kwnames[] = {
14391 (char *) "self", NULL
14392 };
14393
14394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 delete arg1;
14399
14400 wxPyEndAllowThreads(__tstate);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 }
14403 Py_INCREF(Py_None); resultobj = Py_None;
14404 return resultobj;
14405 fail:
14406 return NULL;
14407 }
14408
14409
14410 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14411 PyObject *resultobj;
14412 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14413 wxString *arg2 = 0 ;
14414 wxColour result;
14415 bool temp2 = False ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self",(char *) "name", NULL
14420 };
14421
14422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14424 {
14425 arg2 = wxString_in_helper(obj1);
14426 if (arg2 == NULL) SWIG_fail;
14427 temp2 = True;
14428 }
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14432
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 {
14437 wxColour * resultptr;
14438 resultptr = new wxColour((wxColour &) result);
14439 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14440 }
14441 {
14442 if (temp2)
14443 delete arg2;
14444 }
14445 return resultobj;
14446 fail:
14447 {
14448 if (temp2)
14449 delete arg2;
14450 }
14451 return NULL;
14452 }
14453
14454
14455 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14458 wxColour *arg2 = 0 ;
14459 wxString result;
14460 wxColour temp2 ;
14461 PyObject * obj0 = 0 ;
14462 PyObject * obj1 = 0 ;
14463 char *kwnames[] = {
14464 (char *) "self",(char *) "colour", NULL
14465 };
14466
14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14469 {
14470 arg2 = &temp2;
14471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14472 }
14473 {
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 {
14481 #if wxUSE_UNICODE
14482 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14483 #else
14484 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14485 #endif
14486 }
14487 return resultobj;
14488 fail:
14489 return NULL;
14490 }
14491
14492
14493 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14494 PyObject *resultobj;
14495 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14496 wxString *arg2 = 0 ;
14497 wxColour *arg3 = 0 ;
14498 bool temp2 = False ;
14499 wxColour temp3 ;
14500 PyObject * obj0 = 0 ;
14501 PyObject * obj1 = 0 ;
14502 PyObject * obj2 = 0 ;
14503 char *kwnames[] = {
14504 (char *) "self",(char *) "name",(char *) "colour", NULL
14505 };
14506
14507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14509 {
14510 arg2 = wxString_in_helper(obj1);
14511 if (arg2 == NULL) SWIG_fail;
14512 temp2 = True;
14513 }
14514 {
14515 arg3 = &temp3;
14516 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14517 }
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 {
14527 if (temp2)
14528 delete arg2;
14529 }
14530 return resultobj;
14531 fail:
14532 {
14533 if (temp2)
14534 delete arg2;
14535 }
14536 return NULL;
14537 }
14538
14539
14540 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14543 wxString *arg2 = 0 ;
14544 int arg3 ;
14545 int arg4 ;
14546 int arg5 ;
14547 bool temp2 = False ;
14548 PyObject * obj0 = 0 ;
14549 PyObject * obj1 = 0 ;
14550 char *kwnames[] = {
14551 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14552 };
14553
14554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14556 {
14557 arg2 = wxString_in_helper(obj1);
14558 if (arg2 == NULL) SWIG_fail;
14559 temp2 = True;
14560 }
14561 {
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14564
14565 wxPyEndAllowThreads(__tstate);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 }
14568 Py_INCREF(Py_None); resultobj = Py_None;
14569 {
14570 if (temp2)
14571 delete arg2;
14572 }
14573 return resultobj;
14574 fail:
14575 {
14576 if (temp2)
14577 delete arg2;
14578 }
14579 return NULL;
14580 }
14581
14582
14583 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14584 PyObject *obj;
14585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14586 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14587 Py_INCREF(obj);
14588 return Py_BuildValue((char *)"");
14589 }
14590 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxFontList *arg1 = (wxFontList *) 0 ;
14593 wxFont *arg2 = (wxFont *) 0 ;
14594 PyObject * obj0 = 0 ;
14595 PyObject * obj1 = 0 ;
14596 char *kwnames[] = {
14597 (char *) "self",(char *) "font", NULL
14598 };
14599
14600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14602 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14603 {
14604 PyThreadState* __tstate = wxPyBeginAllowThreads();
14605 (arg1)->AddFont(arg2);
14606
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 Py_INCREF(Py_None); resultobj = Py_None;
14611 return resultobj;
14612 fail:
14613 return NULL;
14614 }
14615
14616
14617 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14618 PyObject *resultobj;
14619 wxFontList *arg1 = (wxFontList *) 0 ;
14620 int arg2 ;
14621 int arg3 ;
14622 int arg4 ;
14623 int arg5 ;
14624 bool arg6 = (bool) False ;
14625 wxString const &arg7_defvalue = wxPyEmptyString ;
14626 wxString *arg7 = (wxString *) &arg7_defvalue ;
14627 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14628 wxFont *result;
14629 bool temp7 = False ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj5 = 0 ;
14632 PyObject * obj6 = 0 ;
14633 char *kwnames[] = {
14634 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14635 };
14636
14637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14639 if (obj5) {
14640 arg6 = PyInt_AsLong(obj5) ? true : false;
14641 if (PyErr_Occurred()) SWIG_fail;
14642 }
14643 if (obj6) {
14644 {
14645 arg7 = wxString_in_helper(obj6);
14646 if (arg7 == NULL) SWIG_fail;
14647 temp7 = True;
14648 }
14649 }
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14658 {
14659 if (temp7)
14660 delete arg7;
14661 }
14662 return resultobj;
14663 fail:
14664 {
14665 if (temp7)
14666 delete arg7;
14667 }
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxFontList *arg1 = (wxFontList *) 0 ;
14675 wxFont *arg2 = (wxFont *) 0 ;
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 char *kwnames[] = {
14679 (char *) "self",(char *) "font", NULL
14680 };
14681
14682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14684 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14685 {
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 (arg1)->RemoveFont(arg2);
14688
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 Py_INCREF(Py_None); resultobj = Py_None;
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 wxFontList *arg1 = (wxFontList *) 0 ;
14702 int result;
14703 PyObject * obj0 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (int)(arg1)->GetCount();
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = PyInt_FromLong((long)result);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14725 PyObject *obj;
14726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14727 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14728 Py_INCREF(obj);
14729 return Py_BuildValue((char *)"");
14730 }
14731 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14732 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14733 return 1;
14734 }
14735
14736
14737 static PyObject *_wrap_NORMAL_FONT_get() {
14738 PyObject *pyobj;
14739
14740 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14741 return pyobj;
14742 }
14743
14744
14745 static int _wrap_SMALL_FONT_set(PyObject *_val) {
14746 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14747 return 1;
14748 }
14749
14750
14751 static PyObject *_wrap_SMALL_FONT_get() {
14752 PyObject *pyobj;
14753
14754 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14755 return pyobj;
14756 }
14757
14758
14759 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14760 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14761 return 1;
14762 }
14763
14764
14765 static PyObject *_wrap_ITALIC_FONT_get() {
14766 PyObject *pyobj;
14767
14768 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14769 return pyobj;
14770 }
14771
14772
14773 static int _wrap_SWISS_FONT_set(PyObject *_val) {
14774 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14775 return 1;
14776 }
14777
14778
14779 static PyObject *_wrap_SWISS_FONT_get() {
14780 PyObject *pyobj;
14781
14782 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14783 return pyobj;
14784 }
14785
14786
14787 static int _wrap_RED_PEN_set(PyObject *_val) {
14788 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14789 return 1;
14790 }
14791
14792
14793 static PyObject *_wrap_RED_PEN_get() {
14794 PyObject *pyobj;
14795
14796 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14797 return pyobj;
14798 }
14799
14800
14801 static int _wrap_CYAN_PEN_set(PyObject *_val) {
14802 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14803 return 1;
14804 }
14805
14806
14807 static PyObject *_wrap_CYAN_PEN_get() {
14808 PyObject *pyobj;
14809
14810 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14811 return pyobj;
14812 }
14813
14814
14815 static int _wrap_GREEN_PEN_set(PyObject *_val) {
14816 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14817 return 1;
14818 }
14819
14820
14821 static PyObject *_wrap_GREEN_PEN_get() {
14822 PyObject *pyobj;
14823
14824 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14825 return pyobj;
14826 }
14827
14828
14829 static int _wrap_BLACK_PEN_set(PyObject *_val) {
14830 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14831 return 1;
14832 }
14833
14834
14835 static PyObject *_wrap_BLACK_PEN_get() {
14836 PyObject *pyobj;
14837
14838 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14839 return pyobj;
14840 }
14841
14842
14843 static int _wrap_WHITE_PEN_set(PyObject *_val) {
14844 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14845 return 1;
14846 }
14847
14848
14849 static PyObject *_wrap_WHITE_PEN_get() {
14850 PyObject *pyobj;
14851
14852 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14853 return pyobj;
14854 }
14855
14856
14857 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14858 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14859 return 1;
14860 }
14861
14862
14863 static PyObject *_wrap_TRANSPARENT_PEN_get() {
14864 PyObject *pyobj;
14865
14866 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14867 return pyobj;
14868 }
14869
14870
14871 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14872 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14873 return 1;
14874 }
14875
14876
14877 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14878 PyObject *pyobj;
14879
14880 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14881 return pyobj;
14882 }
14883
14884
14885 static int _wrap_GREY_PEN_set(PyObject *_val) {
14886 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14887 return 1;
14888 }
14889
14890
14891 static PyObject *_wrap_GREY_PEN_get() {
14892 PyObject *pyobj;
14893
14894 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14895 return pyobj;
14896 }
14897
14898
14899 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14900 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14901 return 1;
14902 }
14903
14904
14905 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14906 PyObject *pyobj;
14907
14908 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14909 return pyobj;
14910 }
14911
14912
14913 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14914 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14915 return 1;
14916 }
14917
14918
14919 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14920 PyObject *pyobj;
14921
14922 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14923 return pyobj;
14924 }
14925
14926
14927 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14928 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14929 return 1;
14930 }
14931
14932
14933 static PyObject *_wrap_BLUE_BRUSH_get() {
14934 PyObject *pyobj;
14935
14936 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14937 return pyobj;
14938 }
14939
14940
14941 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14942 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14943 return 1;
14944 }
14945
14946
14947 static PyObject *_wrap_GREEN_BRUSH_get() {
14948 PyObject *pyobj;
14949
14950 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14951 return pyobj;
14952 }
14953
14954
14955 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14956 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14957 return 1;
14958 }
14959
14960
14961 static PyObject *_wrap_WHITE_BRUSH_get() {
14962 PyObject *pyobj;
14963
14964 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14965 return pyobj;
14966 }
14967
14968
14969 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14970 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14971 return 1;
14972 }
14973
14974
14975 static PyObject *_wrap_BLACK_BRUSH_get() {
14976 PyObject *pyobj;
14977
14978 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14979 return pyobj;
14980 }
14981
14982
14983 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14984 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
14985 return 1;
14986 }
14987
14988
14989 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
14990 PyObject *pyobj;
14991
14992 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
14993 return pyobj;
14994 }
14995
14996
14997 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
14998 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
14999 return 1;
15000 }
15001
15002
15003 static PyObject *_wrap_CYAN_BRUSH_get() {
15004 PyObject *pyobj;
15005
15006 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15007 return pyobj;
15008 }
15009
15010
15011 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15012 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15013 return 1;
15014 }
15015
15016
15017 static PyObject *_wrap_RED_BRUSH_get() {
15018 PyObject *pyobj;
15019
15020 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15021 return pyobj;
15022 }
15023
15024
15025 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15026 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15027 return 1;
15028 }
15029
15030
15031 static PyObject *_wrap_GREY_BRUSH_get() {
15032 PyObject *pyobj;
15033
15034 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15035 return pyobj;
15036 }
15037
15038
15039 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15040 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15041 return 1;
15042 }
15043
15044
15045 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15046 PyObject *pyobj;
15047
15048 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15049 return pyobj;
15050 }
15051
15052
15053 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15054 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15055 return 1;
15056 }
15057
15058
15059 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15060 PyObject *pyobj;
15061
15062 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15063 return pyobj;
15064 }
15065
15066
15067 static int _wrap_BLACK_set(PyObject *_val) {
15068 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15069 return 1;
15070 }
15071
15072
15073 static PyObject *_wrap_BLACK_get() {
15074 PyObject *pyobj;
15075
15076 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15077 return pyobj;
15078 }
15079
15080
15081 static int _wrap_WHITE_set(PyObject *_val) {
15082 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15083 return 1;
15084 }
15085
15086
15087 static PyObject *_wrap_WHITE_get() {
15088 PyObject *pyobj;
15089
15090 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15091 return pyobj;
15092 }
15093
15094
15095 static int _wrap_RED_set(PyObject *_val) {
15096 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15097 return 1;
15098 }
15099
15100
15101 static PyObject *_wrap_RED_get() {
15102 PyObject *pyobj;
15103
15104 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15105 return pyobj;
15106 }
15107
15108
15109 static int _wrap_BLUE_set(PyObject *_val) {
15110 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15111 return 1;
15112 }
15113
15114
15115 static PyObject *_wrap_BLUE_get() {
15116 PyObject *pyobj;
15117
15118 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15119 return pyobj;
15120 }
15121
15122
15123 static int _wrap_GREEN_set(PyObject *_val) {
15124 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15125 return 1;
15126 }
15127
15128
15129 static PyObject *_wrap_GREEN_get() {
15130 PyObject *pyobj;
15131
15132 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15133 return pyobj;
15134 }
15135
15136
15137 static int _wrap_CYAN_set(PyObject *_val) {
15138 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15139 return 1;
15140 }
15141
15142
15143 static PyObject *_wrap_CYAN_get() {
15144 PyObject *pyobj;
15145
15146 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15147 return pyobj;
15148 }
15149
15150
15151 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15152 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15153 return 1;
15154 }
15155
15156
15157 static PyObject *_wrap_LIGHT_GREY_get() {
15158 PyObject *pyobj;
15159
15160 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15161 return pyobj;
15162 }
15163
15164
15165 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15166 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15167 return 1;
15168 }
15169
15170
15171 static PyObject *_wrap_STANDARD_CURSOR_get() {
15172 PyObject *pyobj;
15173
15174 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15175 return pyobj;
15176 }
15177
15178
15179 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15180 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15181 return 1;
15182 }
15183
15184
15185 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15186 PyObject *pyobj;
15187
15188 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15189 return pyobj;
15190 }
15191
15192
15193 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15194 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15195 return 1;
15196 }
15197
15198
15199 static PyObject *_wrap_CROSS_CURSOR_get() {
15200 PyObject *pyobj;
15201
15202 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15203 return pyobj;
15204 }
15205
15206
15207 static int _wrap_NullBitmap_set(PyObject *_val) {
15208 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15209 return 1;
15210 }
15211
15212
15213 static PyObject *_wrap_NullBitmap_get() {
15214 PyObject *pyobj;
15215
15216 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15217 return pyobj;
15218 }
15219
15220
15221 static int _wrap_NullIcon_set(PyObject *_val) {
15222 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15223 return 1;
15224 }
15225
15226
15227 static PyObject *_wrap_NullIcon_get() {
15228 PyObject *pyobj;
15229
15230 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15231 return pyobj;
15232 }
15233
15234
15235 static int _wrap_NullCursor_set(PyObject *_val) {
15236 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15237 return 1;
15238 }
15239
15240
15241 static PyObject *_wrap_NullCursor_get() {
15242 PyObject *pyobj;
15243
15244 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15245 return pyobj;
15246 }
15247
15248
15249 static int _wrap_NullPen_set(PyObject *_val) {
15250 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15251 return 1;
15252 }
15253
15254
15255 static PyObject *_wrap_NullPen_get() {
15256 PyObject *pyobj;
15257
15258 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15259 return pyobj;
15260 }
15261
15262
15263 static int _wrap_NullBrush_set(PyObject *_val) {
15264 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15265 return 1;
15266 }
15267
15268
15269 static PyObject *_wrap_NullBrush_get() {
15270 PyObject *pyobj;
15271
15272 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15273 return pyobj;
15274 }
15275
15276
15277 static int _wrap_NullPalette_set(PyObject *_val) {
15278 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15279 return 1;
15280 }
15281
15282
15283 static PyObject *_wrap_NullPalette_get() {
15284 PyObject *pyobj;
15285
15286 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15287 return pyobj;
15288 }
15289
15290
15291 static int _wrap_NullFont_set(PyObject *_val) {
15292 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15293 return 1;
15294 }
15295
15296
15297 static PyObject *_wrap_NullFont_get() {
15298 PyObject *pyobj;
15299
15300 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15301 return pyobj;
15302 }
15303
15304
15305 static int _wrap_NullColour_set(PyObject *_val) {
15306 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15307 return 1;
15308 }
15309
15310
15311 static PyObject *_wrap_NullColour_get() {
15312 PyObject *pyobj;
15313
15314 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15315 return pyobj;
15316 }
15317
15318
15319 static int _wrap_TheFontList_set(PyObject *_val) {
15320 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15321 return 1;
15322 }
15323
15324
15325 static PyObject *_wrap_TheFontList_get() {
15326 PyObject *pyobj;
15327
15328 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15329 return pyobj;
15330 }
15331
15332
15333 static int _wrap_ThePenList_set(PyObject *_val) {
15334 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15335 return 1;
15336 }
15337
15338
15339 static PyObject *_wrap_ThePenList_get() {
15340 PyObject *pyobj;
15341
15342 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15343 return pyobj;
15344 }
15345
15346
15347 static int _wrap_TheBrushList_set(PyObject *_val) {
15348 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15349 return 1;
15350 }
15351
15352
15353 static PyObject *_wrap_TheBrushList_get() {
15354 PyObject *pyobj;
15355
15356 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15357 return pyobj;
15358 }
15359
15360
15361 static int _wrap_TheColourDatabase_set(PyObject *_val) {
15362 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15363 return 1;
15364 }
15365
15366
15367 static PyObject *_wrap_TheColourDatabase_get() {
15368 PyObject *pyobj;
15369
15370 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15371 return pyobj;
15372 }
15373
15374
15375 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
15376 PyObject *resultobj;
15377 wxEffects *result;
15378 char *kwnames[] = {
15379 NULL
15380 };
15381
15382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
15383 {
15384 PyThreadState* __tstate = wxPyBeginAllowThreads();
15385 result = (wxEffects *)new wxEffects();
15386
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
15391 return resultobj;
15392 fail:
15393 return NULL;
15394 }
15395
15396
15397 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15398 PyObject *resultobj;
15399 wxEffects *arg1 = (wxEffects *) 0 ;
15400 wxColour result;
15401 PyObject * obj0 = 0 ;
15402 char *kwnames[] = {
15403 (char *) "self", NULL
15404 };
15405
15406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15408 {
15409 PyThreadState* __tstate = wxPyBeginAllowThreads();
15410 result = ((wxEffects const *)arg1)->GetHighlightColour();
15411
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 wxColour * resultptr;
15417 resultptr = new wxColour((wxColour &) result);
15418 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15419 }
15420 return resultobj;
15421 fail:
15422 return NULL;
15423 }
15424
15425
15426 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15427 PyObject *resultobj;
15428 wxEffects *arg1 = (wxEffects *) 0 ;
15429 wxColour result;
15430 PyObject * obj0 = 0 ;
15431 char *kwnames[] = {
15432 (char *) "self", NULL
15433 };
15434
15435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15437 {
15438 PyThreadState* __tstate = wxPyBeginAllowThreads();
15439 result = ((wxEffects const *)arg1)->GetLightShadow();
15440
15441 wxPyEndAllowThreads(__tstate);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 {
15445 wxColour * resultptr;
15446 resultptr = new wxColour((wxColour &) result);
15447 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15448 }
15449 return resultobj;
15450 fail:
15451 return NULL;
15452 }
15453
15454
15455 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15456 PyObject *resultobj;
15457 wxEffects *arg1 = (wxEffects *) 0 ;
15458 wxColour result;
15459 PyObject * obj0 = 0 ;
15460 char *kwnames[] = {
15461 (char *) "self", NULL
15462 };
15463
15464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = ((wxEffects const *)arg1)->GetFaceColour();
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 {
15474 wxColour * resultptr;
15475 resultptr = new wxColour((wxColour &) result);
15476 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15477 }
15478 return resultobj;
15479 fail:
15480 return NULL;
15481 }
15482
15483
15484 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15485 PyObject *resultobj;
15486 wxEffects *arg1 = (wxEffects *) 0 ;
15487 wxColour result;
15488 PyObject * obj0 = 0 ;
15489 char *kwnames[] = {
15490 (char *) "self", NULL
15491 };
15492
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = ((wxEffects const *)arg1)->GetMediumShadow();
15498
15499 wxPyEndAllowThreads(__tstate);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 {
15503 wxColour * resultptr;
15504 resultptr = new wxColour((wxColour &) result);
15505 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15506 }
15507 return resultobj;
15508 fail:
15509 return NULL;
15510 }
15511
15512
15513 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15514 PyObject *resultobj;
15515 wxEffects *arg1 = (wxEffects *) 0 ;
15516 wxColour result;
15517 PyObject * obj0 = 0 ;
15518 char *kwnames[] = {
15519 (char *) "self", NULL
15520 };
15521
15522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = ((wxEffects const *)arg1)->GetDarkShadow();
15527
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 {
15532 wxColour * resultptr;
15533 resultptr = new wxColour((wxColour &) result);
15534 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15535 }
15536 return resultobj;
15537 fail:
15538 return NULL;
15539 }
15540
15541
15542 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxEffects *arg1 = (wxEffects *) 0 ;
15545 wxColour *arg2 = 0 ;
15546 wxColour temp2 ;
15547 PyObject * obj0 = 0 ;
15548 PyObject * obj1 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self",(char *) "c", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15555 {
15556 arg2 = &temp2;
15557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15558 }
15559 {
15560 PyThreadState* __tstate = wxPyBeginAllowThreads();
15561 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15562
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 Py_INCREF(Py_None); resultobj = Py_None;
15567 return resultobj;
15568 fail:
15569 return NULL;
15570 }
15571
15572
15573 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15574 PyObject *resultobj;
15575 wxEffects *arg1 = (wxEffects *) 0 ;
15576 wxColour *arg2 = 0 ;
15577 wxColour temp2 ;
15578 PyObject * obj0 = 0 ;
15579 PyObject * obj1 = 0 ;
15580 char *kwnames[] = {
15581 (char *) "self",(char *) "c", NULL
15582 };
15583
15584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15586 {
15587 arg2 = &temp2;
15588 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 (arg1)->SetLightShadow((wxColour const &)*arg2);
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 Py_INCREF(Py_None); resultobj = Py_None;
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxEffects *arg1 = (wxEffects *) 0 ;
15607 wxColour *arg2 = 0 ;
15608 wxColour temp2 ;
15609 PyObject * obj0 = 0 ;
15610 PyObject * obj1 = 0 ;
15611 char *kwnames[] = {
15612 (char *) "self",(char *) "c", NULL
15613 };
15614
15615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15617 {
15618 arg2 = &temp2;
15619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15620 }
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 (arg1)->SetFaceColour((wxColour const &)*arg2);
15624
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 Py_INCREF(Py_None); resultobj = Py_None;
15629 return resultobj;
15630 fail:
15631 return NULL;
15632 }
15633
15634
15635 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15636 PyObject *resultobj;
15637 wxEffects *arg1 = (wxEffects *) 0 ;
15638 wxColour *arg2 = 0 ;
15639 wxColour temp2 ;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 char *kwnames[] = {
15643 (char *) "self",(char *) "c", NULL
15644 };
15645
15646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15648 {
15649 arg2 = &temp2;
15650 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15651 }
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15655
15656 wxPyEndAllowThreads(__tstate);
15657 if (PyErr_Occurred()) SWIG_fail;
15658 }
15659 Py_INCREF(Py_None); resultobj = Py_None;
15660 return resultobj;
15661 fail:
15662 return NULL;
15663 }
15664
15665
15666 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj;
15668 wxEffects *arg1 = (wxEffects *) 0 ;
15669 wxColour *arg2 = 0 ;
15670 wxColour temp2 ;
15671 PyObject * obj0 = 0 ;
15672 PyObject * obj1 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "self",(char *) "c", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15679 {
15680 arg2 = &temp2;
15681 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15682 }
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15686
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 Py_INCREF(Py_None); resultobj = Py_None;
15691 return resultobj;
15692 fail:
15693 return NULL;
15694 }
15695
15696
15697 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15698 PyObject *resultobj;
15699 wxEffects *arg1 = (wxEffects *) 0 ;
15700 wxColour *arg2 = 0 ;
15701 wxColour *arg3 = 0 ;
15702 wxColour *arg4 = 0 ;
15703 wxColour *arg5 = 0 ;
15704 wxColour *arg6 = 0 ;
15705 wxColour temp2 ;
15706 wxColour temp3 ;
15707 wxColour temp4 ;
15708 wxColour temp5 ;
15709 wxColour temp6 ;
15710 PyObject * obj0 = 0 ;
15711 PyObject * obj1 = 0 ;
15712 PyObject * obj2 = 0 ;
15713 PyObject * obj3 = 0 ;
15714 PyObject * obj4 = 0 ;
15715 PyObject * obj5 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15722 {
15723 arg2 = &temp2;
15724 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15725 }
15726 {
15727 arg3 = &temp3;
15728 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15729 }
15730 {
15731 arg4 = &temp4;
15732 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15733 }
15734 {
15735 arg5 = &temp5;
15736 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15737 }
15738 {
15739 arg6 = &temp6;
15740 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15741 }
15742 {
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15745
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 Py_INCREF(Py_None); resultobj = Py_None;
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxEffects *arg1 = (wxEffects *) 0 ;
15759 wxDC *arg2 = 0 ;
15760 wxRect *arg3 = 0 ;
15761 int arg4 = (int) 1 ;
15762 wxRect temp3 ;
15763 PyObject * obj0 = 0 ;
15764 PyObject * obj1 = 0 ;
15765 PyObject * obj2 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15772 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15773 if (arg2 == NULL) {
15774 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15775 }
15776 {
15777 arg3 = &temp3;
15778 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15779 }
15780 {
15781 PyThreadState* __tstate = wxPyBeginAllowThreads();
15782 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15783
15784 wxPyEndAllowThreads(__tstate);
15785 if (PyErr_Occurred()) SWIG_fail;
15786 }
15787 Py_INCREF(Py_None); resultobj = Py_None;
15788 return resultobj;
15789 fail:
15790 return NULL;
15791 }
15792
15793
15794 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15795 PyObject *resultobj;
15796 wxEffects *arg1 = (wxEffects *) 0 ;
15797 wxRect *arg2 = 0 ;
15798 wxDC *arg3 = 0 ;
15799 wxBitmap *arg4 = 0 ;
15800 bool result;
15801 wxRect temp2 ;
15802 PyObject * obj0 = 0 ;
15803 PyObject * obj1 = 0 ;
15804 PyObject * obj2 = 0 ;
15805 PyObject * obj3 = 0 ;
15806 char *kwnames[] = {
15807 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15808 };
15809
15810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15812 {
15813 arg2 = &temp2;
15814 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15815 }
15816 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15817 if (arg3 == NULL) {
15818 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15819 }
15820 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15821 if (arg4 == NULL) {
15822 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15823 }
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15827
15828 wxPyEndAllowThreads(__tstate);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 }
15831 resultobj = PyInt_FromLong((long)result);
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15839 PyObject *obj;
15840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15841 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15842 Py_INCREF(obj);
15843 return Py_BuildValue((char *)"");
15844 }
15845 static PyMethodDef SwigMethods[] = {
15846 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15847 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15848 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15849 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15850 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15851 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15852 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15853 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15854 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15855 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15856 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15857 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15858 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15859 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15860 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
15861 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15867 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15873 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15876 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15877 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15879 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15880 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15882 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15888 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15890 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15893 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15894 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15896 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15904 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15908 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15911 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15920 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15927 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15930 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15943 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15946 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15954 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15961 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15962 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15969 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15977 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15984 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
15996 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16010 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16024 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16034 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16043 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16048 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16056 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16057 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16062 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16076 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16078 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16085 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16099 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16107 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16113 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16114 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16121 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16128 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16136 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16138 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16146 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16150 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16152 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16160 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16216 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16217 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16228 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16229 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16230 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16231 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16232 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16260 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16261 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16262 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16263 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16264 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16265 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16270 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16271 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16275 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16279 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16281 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16285 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16286 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16288 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16289 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16290 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16292 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16293 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16294 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16295 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16300 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16302 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16304 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16306 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16307 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16308 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16314 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16316 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16318 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16319 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16320 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16321 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16322 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16323 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16324 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16325 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16326 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16327 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16328 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16329 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16330 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16331 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16332 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16333 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16334 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16335 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16336 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16337 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
16340 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16342 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16344 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16345 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16346 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16349 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16351 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16353 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16354 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16355 { NULL, NULL }
16356 };
16357
16358
16359 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16360
16361 static void *_p_wxControlTo_p_wxWindow(void *x) {
16362 return (void *)((wxWindow *) ((wxControl *) x));
16363 }
16364 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16365 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16366 }
16367 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16368 return (void *)((wxWindow *) ((wxMenuBar *) x));
16369 }
16370 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16371 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16372 }
16373 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16374 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16375 }
16376 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16377 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16378 }
16379 static void *_p_wxPenTo_p_wxObject(void *x) {
16380 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16381 }
16382 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16383 return (void *)((wxObject *) ((wxRegionIterator *) x));
16384 }
16385 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16386 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16387 }
16388 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16389 return (void *)((wxObject *) ((wxSizerItem *) x));
16390 }
16391 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16392 return (void *)((wxObject *) ((wxColourDatabase *) x));
16393 }
16394 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16395 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16396 }
16397 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16398 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16399 }
16400 static void *_p_wxIconTo_p_wxObject(void *x) {
16401 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16402 }
16403 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16404 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16405 }
16406 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16407 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16408 }
16409 static void *_p_wxSizerTo_p_wxObject(void *x) {
16410 return (void *)((wxObject *) ((wxSizer *) x));
16411 }
16412 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16413 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16414 }
16415 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16417 }
16418 static void *_p_wxPenListTo_p_wxObject(void *x) {
16419 return (void *)((wxObject *) ((wxPenList *) x));
16420 }
16421 static void *_p_wxEventTo_p_wxObject(void *x) {
16422 return (void *)((wxObject *) ((wxEvent *) x));
16423 }
16424 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16425 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16426 }
16427 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16428 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16429 }
16430 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16431 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16432 }
16433 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16434 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16435 }
16436 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16437 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16438 }
16439 static void *_p_wxDCTo_p_wxObject(void *x) {
16440 return (void *)((wxObject *) ((wxDC *) x));
16441 }
16442 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16443 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16444 }
16445 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16446 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16447 }
16448 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16449 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16450 }
16451 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16452 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16453 }
16454 static void *_p_wxControlTo_p_wxObject(void *x) {
16455 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16456 }
16457 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16458 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16459 }
16460 static void *_p_wxClientDCTo_p_wxObject(void *x) {
16461 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16462 }
16463 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16464 return (void *)((wxObject *) ((wxFSFile *) x));
16465 }
16466 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16467 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16468 }
16469 static void *_p_wxRegionTo_p_wxObject(void *x) {
16470 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16471 }
16472 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16473 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16474 }
16475 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16476 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16477 }
16478 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16479 return (void *)((wxObject *) ((wxGDIObject *) x));
16480 }
16481 static void *_p_wxEffectsTo_p_wxObject(void *x) {
16482 return (void *)((wxObject *) ((wxEffects *) x));
16483 }
16484 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16485 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16486 }
16487 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16488 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16489 }
16490 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16491 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16492 }
16493 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16494 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16495 }
16496 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16497 return (void *)((wxObject *) ((wxMenuItem *) x));
16498 }
16499 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16500 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16501 }
16502 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16503 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16504 }
16505 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16506 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16507 }
16508 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16509 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16510 }
16511 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16512 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16513 }
16514 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16515 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16516 }
16517 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16518 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16519 }
16520 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16521 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16522 }
16523 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16524 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16525 }
16526 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16527 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16528 }
16529 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16530 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16531 }
16532 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16533 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16534 }
16535 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16536 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16537 }
16538 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16539 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16540 }
16541 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16542 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16543 }
16544 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16545 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16546 }
16547 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16548 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16549 }
16550 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16551 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16552 }
16553 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16554 return (void *)((wxObject *) ((wxImageHandler *) x));
16555 }
16556 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16557 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16558 }
16559 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16560 return (void *)((wxObject *) ((wxEvtHandler *) x));
16561 }
16562 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16563 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16564 }
16565 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16566 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16567 }
16568 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16569 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16570 }
16571 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16572 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16573 }
16574 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16575 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16576 }
16577 static void *_p_wxImageTo_p_wxObject(void *x) {
16578 return (void *)((wxObject *) ((wxImage *) x));
16579 }
16580 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16581 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16582 }
16583 static void *_p_wxPaletteTo_p_wxObject(void *x) {
16584 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16585 }
16586 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16587 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16588 }
16589 static void *_p_wxImageListTo_p_wxObject(void *x) {
16590 return (void *)((wxObject *) ((wxImageList *) x));
16591 }
16592 static void *_p_wxCursorTo_p_wxObject(void *x) {
16593 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16594 }
16595 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16596 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16597 }
16598 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16599 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16600 }
16601 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16603 }
16604 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16605 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16606 }
16607 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16608 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16609 }
16610 static void *_p_wxWindowTo_p_wxObject(void *x) {
16611 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16612 }
16613 static void *_p_wxMenuTo_p_wxObject(void *x) {
16614 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16615 }
16616 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16617 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16618 }
16619 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16620 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16621 }
16622 static void *_p_wxBrushListTo_p_wxObject(void *x) {
16623 return (void *)((wxObject *) ((wxBrushList *) x));
16624 }
16625 static void *_p_wxPyPenTo_p_wxObject(void *x) {
16626 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16627 }
16628 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16629 return (void *)((wxObject *) ((wxFileSystem *) x));
16630 }
16631 static void *_p_wxBitmapTo_p_wxObject(void *x) {
16632 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16633 }
16634 static void *_p_wxMaskTo_p_wxObject(void *x) {
16635 return (void *)((wxObject *) ((wxMask *) x));
16636 }
16637 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16638 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16639 }
16640 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16641 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16642 }
16643 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16644 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16645 }
16646 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16647 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16648 }
16649 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16650 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16651 }
16652 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16653 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16654 }
16655 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16656 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16657 }
16658 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16659 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16660 }
16661 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16662 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16663 }
16664 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16665 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16666 }
16667 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16668 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16669 }
16670 static void *_p_wxFontTo_p_wxObject(void *x) {
16671 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16672 }
16673 static void *_p_wxBrushTo_p_wxObject(void *x) {
16674 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16675 }
16676 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16677 return (void *)((wxObject *) ((wxMetaFile *) x));
16678 }
16679 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16681 }
16682 static void *_p_wxColourTo_p_wxObject(void *x) {
16683 return (void *)((wxObject *) ((wxColour *) x));
16684 }
16685 static void *_p_wxFontListTo_p_wxObject(void *x) {
16686 return (void *)((wxObject *) ((wxFontList *) x));
16687 }
16688 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16689 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16690 }
16691 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16692 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16693 }
16694 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16695 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
16696 }
16697 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16698 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
16699 }
16700 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16701 return (void *)((wxDC *) ((wxScreenDC *) x));
16702 }
16703 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16704 return (void *)((wxDC *) ((wxMirrorDC *) x));
16705 }
16706 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16707 return (void *)((wxDC *) ((wxMemoryDC *) x));
16708 }
16709 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16710 return (void *)((wxDC *) ((wxWindowDC *) x));
16711 }
16712 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16713 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16714 }
16715 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16716 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16717 }
16718 static void *_p_wxClientDCTo_p_wxDC(void *x) {
16719 return (void *)((wxDC *) ((wxClientDC *) x));
16720 }
16721 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16722 return (void *)((wxDC *) ((wxPaintDC *) x));
16723 }
16724 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16725 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16726 }
16727 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16728 return (void *)((wxDC *) ((wxPrinterDC *) x));
16729 }
16730 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16731 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16732 }
16733 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16734 return (void *)((wxGDIObject *) ((wxIcon *) x));
16735 }
16736 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16737 return (void *)((wxGDIObject *) ((wxPalette *) x));
16738 }
16739 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16740 return (void *)((wxGDIObject *) ((wxPen *) x));
16741 }
16742 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16743 return (void *)((wxGDIObject *) ((wxFont *) x));
16744 }
16745 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16746 return (void *)((wxGDIObject *) ((wxCursor *) x));
16747 }
16748 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16749 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16750 }
16751 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16752 return (void *)((wxGDIObject *) ((wxRegion *) x));
16753 }
16754 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16755 return (void *)((wxGDIObject *) ((wxBrush *) x));
16756 }
16757 static void *_p_wxPyPenTo_p_wxPen(void *x) {
16758 return (void *)((wxPen *) ((wxPyPen *) x));
16759 }
16760 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
16761 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16762 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16763 static 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}};
16764 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16765 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16766 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16767 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16768 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16769 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16770 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16771 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16772 static 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}};
16773 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16774 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16775 static 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}};
16776 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
16777 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16778 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16779 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16780 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
16781 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
16782 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16783 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16784 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16785 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16786 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16787 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16788 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16789 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16790 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16791 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
16792 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16793 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16794 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16795 static 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}};
16796 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16797 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16798 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16799 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16800 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16801 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16802 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16803 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16804 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16805 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16806 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16807 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16808 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
16809 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
16810 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16811 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16812 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16813 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16814 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16815
16816 static swig_type_info *swig_types_initial[] = {
16817 _swigt__p_wxPostScriptDC,
16818 _swigt__p_wxBrush,
16819 _swigt__p_wxColour,
16820 _swigt__p_wxDC,
16821 _swigt__p_wxMirrorDC,
16822 _swigt__p_byte,
16823 _swigt__p_wxPyFontEnumerator,
16824 _swigt__p_wxIconLocation,
16825 _swigt__p_wxImage,
16826 _swigt__p_wxMetaFileDC,
16827 _swigt__p_wxMask,
16828 _swigt__p_wxFont,
16829 _swigt__p_wxWindow,
16830 _swigt__p_wxSize,
16831 _swigt__p_double,
16832 _swigt__p_wxMemoryDC,
16833 _swigt__p_wxFontMapper,
16834 _swigt__p_wxEffects,
16835 _swigt__p_wxNativeEncodingInfo,
16836 _swigt__p_wxPalette,
16837 _swigt__p_wxBitmap,
16838 _swigt__p_wxObject,
16839 _swigt__p_wxRegionIterator,
16840 _swigt__p_wxRect,
16841 _swigt__p_wxString,
16842 _swigt__p_wxPrinterDC,
16843 _swigt__p_wxIconBundle,
16844 _swigt__p_wxPoint,
16845 _swigt__p_wxDash,
16846 _swigt__p_wxScreenDC,
16847 _swigt__p_wxCursor,
16848 _swigt__p_wxClientDC,
16849 _swigt__p_wxBufferedDC,
16850 _swigt__p_wxImageList,
16851 _swigt__p_unsigned_char,
16852 _swigt__p_wxGDIObject,
16853 _swigt__p_wxLocale,
16854 _swigt__p_wxIcon,
16855 _swigt__p_wxRegion,
16856 _swigt__p_wxLanguageInfo,
16857 _swigt__p_wxConfigBase,
16858 _swigt__p_wxWindowDC,
16859 _swigt__p_wxPrintData,
16860 _swigt__p_wxBrushList,
16861 _swigt__p_wxFontList,
16862 _swigt__p_wxPen,
16863 _swigt__p_wxBufferedPaintDC,
16864 _swigt__p_wxPaintDC,
16865 _swigt__p_wxPenList,
16866 _swigt__p_wxPyPen,
16867 _swigt__p_int,
16868 _swigt__p_wxMetaFile,
16869 _swigt__p_wxNativeFontInfo,
16870 _swigt__p_wxEncodingConverter,
16871 _swigt__p_wxColourDatabase,
16872 0
16873 };
16874
16875
16876 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16877
16878 static swig_const_info swig_const_table[] = {
16879 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16880 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16881 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16882 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16883 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16884 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16885 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16886 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16887 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16888 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16889 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16890 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16891 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16892 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16893 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16894 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16895 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16896 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16897 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16898 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16899 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16900 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16901 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16902 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16903 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16904 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16905 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16906 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16907 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16908 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16909 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16910 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16911 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16912 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16913 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16914 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16915 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16916 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16917 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16918 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16919 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16920 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16921 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16922 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16923 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16924 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16925 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16926 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16927 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16928 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16929 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16930 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16931 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16932 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16933 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16934 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16935 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16936 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16937 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16938 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16939 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16940 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16941 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16942 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16943 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16944 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16945 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16946 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16947 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16948 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16949 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16950 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16951 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16952 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16953 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16954 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16955 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16956 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16957 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16958 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16959 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16960 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16961 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16962 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16963 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16964 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16965 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16966 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16967 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16968 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16969 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16970 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16971 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16972 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16973 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16974 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16975 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16976 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16977 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16978 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16979 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16980 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16981 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16982 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16983 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16984 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16985 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
16986 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
16987 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
16988 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
16989 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
16990 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
16991 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
16992 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
16993 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
16994 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
16995 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
16996 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
16997 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
16998 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
16999 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17000 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17001 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17002 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17003 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17004 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17005 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17006 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17007 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17008 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17009 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17010 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17011 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17012 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17013 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17014 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17015 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17016 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17017 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17018 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17019 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17020 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17021 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17022 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17023 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17024 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17025 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17026 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17027 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17028 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17029 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17030 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17031 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17032 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17033 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17034 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17035 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17036 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17037 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17038 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17039 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17040 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17041 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17042 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17043 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17044 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17045 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17046 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17047 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17048 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17049 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17050 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17051 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17052 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17053 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17054 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17055 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17056 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17057 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17058 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17059 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17060 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17061 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17062 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17063 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17064 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17065 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17066 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17067 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17068 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17069 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17070 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17071 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17072 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17073 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17074 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17075 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17076 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17077 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17078 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17079 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17080 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17081 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17082 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17083 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17084 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17085 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17086 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17087 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17088 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17089 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17090 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17091 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17092 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17093 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17094 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17095 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17096 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17097 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17098 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17099 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17100 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17101 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17102 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17103 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17104 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17105 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17106 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17107 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17108 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17109 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17110 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17111 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17112 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17113 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17114 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17115 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17116 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17117 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17118 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17119 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17120 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17121 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17122 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17123 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17124 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17125 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17126 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17127 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17128 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17129 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17130 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17131 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17132 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17133 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17134 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17135 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17136 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17137 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17138 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17139 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17140 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17141 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17142 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17143 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17144 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17145 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17146 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17147 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17148 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17149 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17150 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17151 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17152 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17153 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17154 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17155 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17156 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17157 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17158 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17159 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17160 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17161 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17162 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17163 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17164 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17165 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17166 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17167 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17168 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17169 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17170 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17171 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17172 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17173 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17174 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17175 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17176 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17177 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17178 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17179 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17180 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17181 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17182 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17183 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17184 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17185 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17186 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17187 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17188 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17189 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17190 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17191 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17192 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17193 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17194 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17195 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17196 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17197 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17198 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17199 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17200 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17201 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17202 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17203 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17204 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17205 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17206 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17207 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17208 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17209 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17210 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17211 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17212 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17213 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17214 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17215 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17216 {0}};
17217
17218 #ifdef __cplusplus
17219 }
17220 #endif
17221
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 SWIGEXPORT(void) SWIG_init(void) {
17226 static PyObject *SWIG_globals = 0;
17227 static int typeinit = 0;
17228 PyObject *m, *d;
17229 int i;
17230 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17231 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17232 d = PyModule_GetDict(m);
17233
17234 if (!typeinit) {
17235 for (i = 0; swig_types_initial[i]; i++) {
17236 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17237 }
17238 typeinit = 1;
17239 }
17240 SWIG_InstallConstants(d,swig_const_table);
17241
17242
17243 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17244
17245 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17246 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17247 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17248 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17249 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17250 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17251 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17252 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17253 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17254 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17255 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17256 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17257 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17258 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17259 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17260 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17261 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17262 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17263 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17264 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17265 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17266 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17267 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17268 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17269 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17270 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17271 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17272 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17273 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17274 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17275 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17276 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17277 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17278 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17279 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17280 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17281 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17282 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17283 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17284 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17285 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17286 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17287 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17288 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17289 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17290 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17291 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
17292
17293 // Work around a chicken/egg problem in drawlist.cpp
17294 wxPyDrawList_SetAPIPtr();
17295
17296 }
17297