]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / src / msw / 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 DECLARE_DEF_STRING(EmptyString);
283
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 return new wxIconLocation(*filename, num);
419
420
421
422 }
423 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
424
425 self->SetIndex(num);
426
427
428
429 }
430 int wxIconLocation_GetIndex(wxIconLocation *self){
431
432 return self->GetIndex();
433
434
435
436 }
437 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
438
439
440
441
442 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
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 { PyErr_SetNone(PyExc_NotImplementedError); return NULL; }
473
474 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
475 { PyErr_SetNone(PyExc_NotImplementedError); return False; }
476
477 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
478 wxFontEncoding alt_enc;
479 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
480 return PyInt_FromLong(alt_enc);
481 else {
482 Py_INCREF(Py_None);
483 return Py_None;
484 }
485 }
486 wxFont *new_wxFont(wxString const &info){
487 wxNativeFontInfo nfi;
488 nfi.FromString(info);
489 return new wxFont(nfi);
490 }
491 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
492 return wxFont::New(pointSize, family, flags, face, encoding);
493 }
494
495 class wxPyFontEnumerator : public wxFontEnumerator {
496 public:
497 wxPyFontEnumerator() {}
498 ~wxPyFontEnumerator() {}
499
500 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
501 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
502
503 PYPRIVATE;
504 };
505
506 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
507 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
508
509
510 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
511 wxArrayString* arr = self->GetEncodings();
512 return wxArrayString2PyList_helper(*arr);
513 }
514 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
515 wxArrayString* arr = self->GetFacenames();
516 return wxArrayString2PyList_helper(*arr);
517 }
518
519
520
521 #include "wx/wxPython/pydrawxxx.h"
522
523 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
524 wxColour col;
525 self->GetPixel(x, y, &col);
526 return col;
527 }
528 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
529 wxColour col;
530 self->GetPixel(pt, &col);
531 return col;
532 }
533 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
534 wxRect rv;
535 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
536 return rv;
537 }
538 wxRect wxDC_GetClippingRect(wxDC *self){
539 wxRect rect;
540 self->GetClippingBox(rect);
541 return rect;
542 }
543 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
544 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
545 }
546 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
547 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
548 }
549 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
550 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
551 }
552 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
553 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
554 }
555 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
556 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
557 }
558 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
559 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
560 }
561
562 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
563 *x1 = dc->MinX();
564 *y1 = dc->MinY();
565 *x2 = dc->MaxX();
566 *y2 = dc->MaxY();
567 }
568
569
570 #include <wx/dcps.h>
571
572
573 #include <wx/metafile.h>
574
575
576
577 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
578 self->AddColour(name, wxColour(red, green, blue));
579 }
580
581 #include <wx/effects.h>
582
583 #ifdef __cplusplus
584 extern "C" {
585 #endif
586 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
587 PyObject *resultobj;
588 wxGDIObject *result;
589 char *kwnames[] = {
590 NULL
591 };
592
593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
594 {
595 PyThreadState* __tstate = wxPyBeginAllowThreads();
596 result = (wxGDIObject *)new wxGDIObject();
597
598 wxPyEndAllowThreads(__tstate);
599 if (PyErr_Occurred()) SWIG_fail;
600 }
601 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
602 return resultobj;
603 fail:
604 return NULL;
605 }
606
607
608 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject *resultobj;
610 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
611 PyObject * obj0 = 0 ;
612 char *kwnames[] = {
613 (char *) "self", NULL
614 };
615
616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
618 {
619 PyThreadState* __tstate = wxPyBeginAllowThreads();
620 delete arg1;
621
622 wxPyEndAllowThreads(__tstate);
623 if (PyErr_Occurred()) SWIG_fail;
624 }
625 Py_INCREF(Py_None); resultobj = Py_None;
626 return resultobj;
627 fail:
628 return NULL;
629 }
630
631
632 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
633 PyObject *resultobj;
634 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
635 bool result;
636 PyObject * obj0 = 0 ;
637 char *kwnames[] = {
638 (char *) "self", NULL
639 };
640
641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
643 {
644 PyThreadState* __tstate = wxPyBeginAllowThreads();
645 result = (bool)(arg1)->GetVisible();
646
647 wxPyEndAllowThreads(__tstate);
648 if (PyErr_Occurred()) SWIG_fail;
649 }
650 resultobj = PyInt_FromLong((long)result);
651 return resultobj;
652 fail:
653 return NULL;
654 }
655
656
657 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
658 PyObject *resultobj;
659 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
660 bool arg2 ;
661 PyObject * obj0 = 0 ;
662 PyObject * obj1 = 0 ;
663 char *kwnames[] = {
664 (char *) "self",(char *) "visible", NULL
665 };
666
667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
669 arg2 = PyInt_AsLong(obj1) ? true : false;
670 if (PyErr_Occurred()) SWIG_fail;
671 {
672 PyThreadState* __tstate = wxPyBeginAllowThreads();
673 (arg1)->SetVisible(arg2);
674
675 wxPyEndAllowThreads(__tstate);
676 if (PyErr_Occurred()) SWIG_fail;
677 }
678 Py_INCREF(Py_None); resultobj = Py_None;
679 return resultobj;
680 fail:
681 return NULL;
682 }
683
684
685 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
686 PyObject *resultobj;
687 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
688 bool result;
689 PyObject * obj0 = 0 ;
690 char *kwnames[] = {
691 (char *) "self", NULL
692 };
693
694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
696 {
697 PyThreadState* __tstate = wxPyBeginAllowThreads();
698 result = (bool)(arg1)->IsNull();
699
700 wxPyEndAllowThreads(__tstate);
701 if (PyErr_Occurred()) SWIG_fail;
702 }
703 resultobj = PyInt_FromLong((long)result);
704 return resultobj;
705 fail:
706 return NULL;
707 }
708
709
710 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
711 PyObject *obj;
712 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
713 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
714 Py_INCREF(obj);
715 return Py_BuildValue((char *)"");
716 }
717 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
718 PyObject *resultobj;
719 unsigned char arg1 = (unsigned char) 0 ;
720 unsigned char arg2 = (unsigned char) 0 ;
721 unsigned char arg3 = (unsigned char) 0 ;
722 wxColour *result;
723 PyObject * obj0 = 0 ;
724 PyObject * obj1 = 0 ;
725 PyObject * obj2 = 0 ;
726 char *kwnames[] = {
727 (char *) "red",(char *) "green",(char *) "blue", NULL
728 };
729
730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
731 if (obj0) {
732 arg1 = (unsigned char) PyInt_AsLong(obj0);
733 if (PyErr_Occurred()) SWIG_fail;
734 }
735 if (obj1) {
736 arg2 = (unsigned char) PyInt_AsLong(obj1);
737 if (PyErr_Occurred()) SWIG_fail;
738 }
739 if (obj2) {
740 arg3 = (unsigned char) PyInt_AsLong(obj2);
741 if (PyErr_Occurred()) SWIG_fail;
742 }
743 {
744 PyThreadState* __tstate = wxPyBeginAllowThreads();
745 result = (wxColour *)new wxColour(arg1,arg2,arg3);
746
747 wxPyEndAllowThreads(__tstate);
748 if (PyErr_Occurred()) SWIG_fail;
749 }
750 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
751 return resultobj;
752 fail:
753 return NULL;
754 }
755
756
757 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
758 PyObject *resultobj;
759 wxColour *arg1 = (wxColour *) 0 ;
760 PyObject * obj0 = 0 ;
761 char *kwnames[] = {
762 (char *) "self", NULL
763 };
764
765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
767 {
768 PyThreadState* __tstate = wxPyBeginAllowThreads();
769 delete arg1;
770
771 wxPyEndAllowThreads(__tstate);
772 if (PyErr_Occurred()) SWIG_fail;
773 }
774 Py_INCREF(Py_None); resultobj = Py_None;
775 return resultobj;
776 fail:
777 return NULL;
778 }
779
780
781 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
782 PyObject *resultobj;
783 wxString *arg1 = 0 ;
784 wxColour *result;
785 bool temp1 = False ;
786 PyObject * obj0 = 0 ;
787 char *kwnames[] = {
788 (char *) "colorName", NULL
789 };
790
791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
792 {
793 arg1 = wxString_in_helper(obj0);
794 if (arg1 == NULL) SWIG_fail;
795 temp1 = True;
796 }
797 {
798 PyThreadState* __tstate = wxPyBeginAllowThreads();
799 result = (wxColour *)new wxColour((wxString const &)*arg1);
800
801 wxPyEndAllowThreads(__tstate);
802 if (PyErr_Occurred()) SWIG_fail;
803 }
804 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
805 {
806 if (temp1)
807 delete arg1;
808 }
809 return resultobj;
810 fail:
811 {
812 if (temp1)
813 delete arg1;
814 }
815 return NULL;
816 }
817
818
819 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
820 PyObject *resultobj;
821 unsigned long arg1 ;
822 wxColour *result;
823 PyObject * obj0 = 0 ;
824 char *kwnames[] = {
825 (char *) "colRGB", NULL
826 };
827
828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
829 arg1 = (unsigned long) PyInt_AsLong(obj0);
830 if (PyErr_Occurred()) SWIG_fail;
831 {
832 PyThreadState* __tstate = wxPyBeginAllowThreads();
833 result = (wxColour *)new wxColour(arg1);
834
835 wxPyEndAllowThreads(__tstate);
836 if (PyErr_Occurred()) SWIG_fail;
837 }
838 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
839 return resultobj;
840 fail:
841 return NULL;
842 }
843
844
845 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
846 PyObject *resultobj;
847 wxColour *arg1 = (wxColour *) 0 ;
848 unsigned char result;
849 PyObject * obj0 = 0 ;
850 char *kwnames[] = {
851 (char *) "self", NULL
852 };
853
854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
856 {
857 PyThreadState* __tstate = wxPyBeginAllowThreads();
858 result = (unsigned char)(arg1)->Red();
859
860 wxPyEndAllowThreads(__tstate);
861 if (PyErr_Occurred()) SWIG_fail;
862 }
863 resultobj = PyInt_FromLong((long)result);
864 return resultobj;
865 fail:
866 return NULL;
867 }
868
869
870 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
871 PyObject *resultobj;
872 wxColour *arg1 = (wxColour *) 0 ;
873 unsigned char result;
874 PyObject * obj0 = 0 ;
875 char *kwnames[] = {
876 (char *) "self", NULL
877 };
878
879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
881 {
882 PyThreadState* __tstate = wxPyBeginAllowThreads();
883 result = (unsigned char)(arg1)->Green();
884
885 wxPyEndAllowThreads(__tstate);
886 if (PyErr_Occurred()) SWIG_fail;
887 }
888 resultobj = PyInt_FromLong((long)result);
889 return resultobj;
890 fail:
891 return NULL;
892 }
893
894
895 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject *resultobj;
897 wxColour *arg1 = (wxColour *) 0 ;
898 unsigned char result;
899 PyObject * obj0 = 0 ;
900 char *kwnames[] = {
901 (char *) "self", NULL
902 };
903
904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
906 {
907 PyThreadState* __tstate = wxPyBeginAllowThreads();
908 result = (unsigned char)(arg1)->Blue();
909
910 wxPyEndAllowThreads(__tstate);
911 if (PyErr_Occurred()) SWIG_fail;
912 }
913 resultobj = PyInt_FromLong((long)result);
914 return resultobj;
915 fail:
916 return NULL;
917 }
918
919
920 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
921 PyObject *resultobj;
922 wxColour *arg1 = (wxColour *) 0 ;
923 bool result;
924 PyObject * obj0 = 0 ;
925 char *kwnames[] = {
926 (char *) "self", NULL
927 };
928
929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
931 {
932 PyThreadState* __tstate = wxPyBeginAllowThreads();
933 result = (bool)(arg1)->Ok();
934
935 wxPyEndAllowThreads(__tstate);
936 if (PyErr_Occurred()) SWIG_fail;
937 }
938 resultobj = PyInt_FromLong((long)result);
939 return resultobj;
940 fail:
941 return NULL;
942 }
943
944
945 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
946 PyObject *resultobj;
947 wxColour *arg1 = (wxColour *) 0 ;
948 unsigned char arg2 ;
949 unsigned char arg3 ;
950 unsigned char arg4 ;
951 PyObject * obj0 = 0 ;
952 PyObject * obj1 = 0 ;
953 PyObject * obj2 = 0 ;
954 PyObject * obj3 = 0 ;
955 char *kwnames[] = {
956 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
961 arg2 = (unsigned char) PyInt_AsLong(obj1);
962 if (PyErr_Occurred()) SWIG_fail;
963 arg3 = (unsigned char) PyInt_AsLong(obj2);
964 if (PyErr_Occurred()) SWIG_fail;
965 arg4 = (unsigned char) PyInt_AsLong(obj3);
966 if (PyErr_Occurred()) SWIG_fail;
967 {
968 PyThreadState* __tstate = wxPyBeginAllowThreads();
969 (arg1)->Set(arg2,arg3,arg4);
970
971 wxPyEndAllowThreads(__tstate);
972 if (PyErr_Occurred()) SWIG_fail;
973 }
974 Py_INCREF(Py_None); resultobj = Py_None;
975 return resultobj;
976 fail:
977 return NULL;
978 }
979
980
981 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
982 PyObject *resultobj;
983 wxColour *arg1 = (wxColour *) 0 ;
984 unsigned long arg2 ;
985 PyObject * obj0 = 0 ;
986 PyObject * obj1 = 0 ;
987 char *kwnames[] = {
988 (char *) "self",(char *) "colRGB", NULL
989 };
990
991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
993 arg2 = (unsigned long) PyInt_AsLong(obj1);
994 if (PyErr_Occurred()) SWIG_fail;
995 {
996 PyThreadState* __tstate = wxPyBeginAllowThreads();
997 (arg1)->Set(arg2);
998
999 wxPyEndAllowThreads(__tstate);
1000 if (PyErr_Occurred()) SWIG_fail;
1001 }
1002 Py_INCREF(Py_None); resultobj = Py_None;
1003 return resultobj;
1004 fail:
1005 return NULL;
1006 }
1007
1008
1009 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1010 PyObject *resultobj;
1011 wxColour *arg1 = (wxColour *) 0 ;
1012 wxColour *arg2 = 0 ;
1013 bool result;
1014 wxColour temp2 ;
1015 PyObject * obj0 = 0 ;
1016 PyObject * obj1 = 0 ;
1017 char *kwnames[] = {
1018 (char *) "self",(char *) "colour", NULL
1019 };
1020
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1023 {
1024 arg2 = &temp2;
1025 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1026 }
1027 {
1028 PyThreadState* __tstate = wxPyBeginAllowThreads();
1029 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1030
1031 wxPyEndAllowThreads(__tstate);
1032 if (PyErr_Occurred()) SWIG_fail;
1033 }
1034 resultobj = PyInt_FromLong((long)result);
1035 return resultobj;
1036 fail:
1037 return NULL;
1038 }
1039
1040
1041 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject *resultobj;
1043 wxColour *arg1 = (wxColour *) 0 ;
1044 wxColour *arg2 = 0 ;
1045 bool result;
1046 wxColour temp2 ;
1047 PyObject * obj0 = 0 ;
1048 PyObject * obj1 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "self",(char *) "colour", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1055 {
1056 arg2 = &temp2;
1057 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1058 }
1059 {
1060 PyThreadState* __tstate = wxPyBeginAllowThreads();
1061 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1062
1063 wxPyEndAllowThreads(__tstate);
1064 if (PyErr_Occurred()) SWIG_fail;
1065 }
1066 resultobj = PyInt_FromLong((long)result);
1067 return resultobj;
1068 fail:
1069 return NULL;
1070 }
1071
1072
1073 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1074 PyObject *resultobj;
1075 wxColour *arg1 = (wxColour *) 0 ;
1076 wxString *arg2 = 0 ;
1077 bool temp2 = False ;
1078 PyObject * obj0 = 0 ;
1079 PyObject * obj1 = 0 ;
1080 char *kwnames[] = {
1081 (char *) "self",(char *) "colourName", NULL
1082 };
1083
1084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1086 {
1087 arg2 = wxString_in_helper(obj1);
1088 if (arg2 == NULL) SWIG_fail;
1089 temp2 = True;
1090 }
1091 {
1092 PyThreadState* __tstate = wxPyBeginAllowThreads();
1093 (arg1)->InitFromName((wxString const &)*arg2);
1094
1095 wxPyEndAllowThreads(__tstate);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 Py_INCREF(Py_None); resultobj = Py_None;
1099 {
1100 if (temp2)
1101 delete arg2;
1102 }
1103 return resultobj;
1104 fail:
1105 {
1106 if (temp2)
1107 delete arg2;
1108 }
1109 return NULL;
1110 }
1111
1112
1113 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1114 PyObject *resultobj;
1115 wxColour *arg1 = (wxColour *) 0 ;
1116 PyObject *result;
1117 PyObject * obj0 = 0 ;
1118 char *kwnames[] = {
1119 (char *) "self", NULL
1120 };
1121
1122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1124 {
1125 PyThreadState* __tstate = wxPyBeginAllowThreads();
1126 result = (PyObject *)wxColour_Get(arg1);
1127
1128 wxPyEndAllowThreads(__tstate);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 resultobj = result;
1132 return resultobj;
1133 fail:
1134 return NULL;
1135 }
1136
1137
1138 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1139 PyObject *obj;
1140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1141 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1142 Py_INCREF(obj);
1143 return Py_BuildValue((char *)"");
1144 }
1145 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 int arg1 ;
1148 unsigned char *arg2 = (unsigned char *) 0 ;
1149 unsigned char *arg3 = (unsigned char *) 0 ;
1150 unsigned char *arg4 = (unsigned char *) 0 ;
1151 wxPalette *result;
1152 PyObject * obj1 = 0 ;
1153 PyObject * obj2 = 0 ;
1154 PyObject * obj3 = 0 ;
1155 char *kwnames[] = {
1156 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1157 };
1158
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1160 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1161 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1162 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1163 {
1164 PyThreadState* __tstate = wxPyBeginAllowThreads();
1165 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1166
1167 wxPyEndAllowThreads(__tstate);
1168 if (PyErr_Occurred()) SWIG_fail;
1169 }
1170 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1171 return resultobj;
1172 fail:
1173 return NULL;
1174 }
1175
1176
1177 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1178 PyObject *resultobj;
1179 wxPalette *arg1 = (wxPalette *) 0 ;
1180 PyObject * obj0 = 0 ;
1181 char *kwnames[] = {
1182 (char *) "self", NULL
1183 };
1184
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1187 {
1188 PyThreadState* __tstate = wxPyBeginAllowThreads();
1189 delete arg1;
1190
1191 wxPyEndAllowThreads(__tstate);
1192 if (PyErr_Occurred()) SWIG_fail;
1193 }
1194 Py_INCREF(Py_None); resultobj = Py_None;
1195 return resultobj;
1196 fail:
1197 return NULL;
1198 }
1199
1200
1201 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1202 PyObject *resultobj;
1203 wxPalette *arg1 = (wxPalette *) 0 ;
1204 byte arg2 ;
1205 byte arg3 ;
1206 byte arg4 ;
1207 int result;
1208 PyObject * obj0 = 0 ;
1209 PyObject * obj1 = 0 ;
1210 PyObject * obj2 = 0 ;
1211 PyObject * obj3 = 0 ;
1212 char *kwnames[] = {
1213 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1214 };
1215
1216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1218 arg2 = (byte) PyInt_AsLong(obj1);
1219 if (PyErr_Occurred()) SWIG_fail;
1220 arg3 = (byte) PyInt_AsLong(obj2);
1221 if (PyErr_Occurred()) SWIG_fail;
1222 arg4 = (byte) PyInt_AsLong(obj3);
1223 if (PyErr_Occurred()) SWIG_fail;
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) SWIG_fail;
1230 }
1231 resultobj = PyInt_FromLong((long)result);
1232 return resultobj;
1233 fail:
1234 return NULL;
1235 }
1236
1237
1238 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1239 PyObject *resultobj;
1240 wxPalette *arg1 = (wxPalette *) 0 ;
1241 int arg2 ;
1242 byte *arg3 = (byte *) 0 ;
1243 byte *arg4 = (byte *) 0 ;
1244 byte *arg5 = (byte *) 0 ;
1245 bool result;
1246 byte temp3 ;
1247 byte temp4 ;
1248 byte temp5 ;
1249 PyObject * obj0 = 0 ;
1250 char *kwnames[] = {
1251 (char *) "self",(char *) "pixel", NULL
1252 };
1253
1254 arg3 = &temp3;
1255 arg4 = &temp4;
1256 arg5 = &temp5;
1257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 }
1266 resultobj = PyInt_FromLong((long)result);
1267 {
1268 PyObject *o = PyInt_FromLong((long) (*arg3));
1269 resultobj = t_output_helper(resultobj,o);
1270 }
1271 {
1272 PyObject *o = PyInt_FromLong((long) (*arg4));
1273 resultobj = t_output_helper(resultobj,o);
1274 }
1275 {
1276 PyObject *o = PyInt_FromLong((long) (*arg5));
1277 resultobj = t_output_helper(resultobj,o);
1278 }
1279 return resultobj;
1280 fail:
1281 return NULL;
1282 }
1283
1284
1285 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1286 PyObject *resultobj;
1287 wxPalette *arg1 = (wxPalette *) 0 ;
1288 bool result;
1289 PyObject * obj0 = 0 ;
1290 char *kwnames[] = {
1291 (char *) "self", NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1296 {
1297 PyThreadState* __tstate = wxPyBeginAllowThreads();
1298 result = (bool)(arg1)->Ok();
1299
1300 wxPyEndAllowThreads(__tstate);
1301 if (PyErr_Occurred()) SWIG_fail;
1302 }
1303 resultobj = PyInt_FromLong((long)result);
1304 return resultobj;
1305 fail:
1306 return NULL;
1307 }
1308
1309
1310 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1311 PyObject *obj;
1312 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1313 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1314 Py_INCREF(obj);
1315 return Py_BuildValue((char *)"");
1316 }
1317 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1318 PyObject *resultobj;
1319 wxColour *arg1 = 0 ;
1320 int arg2 = (int) 1 ;
1321 int arg3 = (int) wxSOLID ;
1322 wxPen *result;
1323 wxColour temp1 ;
1324 PyObject * obj0 = 0 ;
1325 char *kwnames[] = {
1326 (char *) "colour",(char *) "width",(char *) "style", NULL
1327 };
1328
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1330 {
1331 arg1 = &temp1;
1332 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1333 }
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) SWIG_fail;
1340 }
1341 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1342 return resultobj;
1343 fail:
1344 return NULL;
1345 }
1346
1347
1348 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject *resultobj;
1350 wxPen *arg1 = (wxPen *) 0 ;
1351 PyObject * obj0 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self", NULL
1354 };
1355
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1358 {
1359 PyThreadState* __tstate = wxPyBeginAllowThreads();
1360 delete arg1;
1361
1362 wxPyEndAllowThreads(__tstate);
1363 if (PyErr_Occurred()) SWIG_fail;
1364 }
1365 Py_INCREF(Py_None); resultobj = Py_None;
1366 return resultobj;
1367 fail:
1368 return NULL;
1369 }
1370
1371
1372 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1373 PyObject *resultobj;
1374 wxPen *arg1 = (wxPen *) 0 ;
1375 int result;
1376 PyObject * obj0 = 0 ;
1377 char *kwnames[] = {
1378 (char *) "self", NULL
1379 };
1380
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1383 {
1384 PyThreadState* __tstate = wxPyBeginAllowThreads();
1385 result = (int)(arg1)->GetCap();
1386
1387 wxPyEndAllowThreads(__tstate);
1388 if (PyErr_Occurred()) SWIG_fail;
1389 }
1390 resultobj = PyInt_FromLong((long)result);
1391 return resultobj;
1392 fail:
1393 return NULL;
1394 }
1395
1396
1397 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1398 PyObject *resultobj;
1399 wxPen *arg1 = (wxPen *) 0 ;
1400 wxColour result;
1401 PyObject * obj0 = 0 ;
1402 char *kwnames[] = {
1403 (char *) "self", NULL
1404 };
1405
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1408 {
1409 PyThreadState* __tstate = wxPyBeginAllowThreads();
1410 result = (arg1)->GetColour();
1411
1412 wxPyEndAllowThreads(__tstate);
1413 if (PyErr_Occurred()) SWIG_fail;
1414 }
1415 {
1416 wxColour * resultptr;
1417 resultptr = new wxColour((wxColour &) result);
1418 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1419 }
1420 return resultobj;
1421 fail:
1422 return NULL;
1423 }
1424
1425
1426 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1427 PyObject *resultobj;
1428 wxPen *arg1 = (wxPen *) 0 ;
1429 int result;
1430 PyObject * obj0 = 0 ;
1431 char *kwnames[] = {
1432 (char *) "self", NULL
1433 };
1434
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1437 {
1438 PyThreadState* __tstate = wxPyBeginAllowThreads();
1439 result = (int)(arg1)->GetJoin();
1440
1441 wxPyEndAllowThreads(__tstate);
1442 if (PyErr_Occurred()) SWIG_fail;
1443 }
1444 resultobj = PyInt_FromLong((long)result);
1445 return resultobj;
1446 fail:
1447 return NULL;
1448 }
1449
1450
1451 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1452 PyObject *resultobj;
1453 wxPen *arg1 = (wxPen *) 0 ;
1454 int result;
1455 PyObject * obj0 = 0 ;
1456 char *kwnames[] = {
1457 (char *) "self", NULL
1458 };
1459
1460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1462 {
1463 PyThreadState* __tstate = wxPyBeginAllowThreads();
1464 result = (int)(arg1)->GetStyle();
1465
1466 wxPyEndAllowThreads(__tstate);
1467 if (PyErr_Occurred()) SWIG_fail;
1468 }
1469 resultobj = PyInt_FromLong((long)result);
1470 return resultobj;
1471 fail:
1472 return NULL;
1473 }
1474
1475
1476 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1477 PyObject *resultobj;
1478 wxPen *arg1 = (wxPen *) 0 ;
1479 int result;
1480 PyObject * obj0 = 0 ;
1481 char *kwnames[] = {
1482 (char *) "self", NULL
1483 };
1484
1485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1487 {
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 result = (int)(arg1)->GetWidth();
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 resultobj = PyInt_FromLong((long)result);
1495 return resultobj;
1496 fail:
1497 return NULL;
1498 }
1499
1500
1501 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1502 PyObject *resultobj;
1503 wxPen *arg1 = (wxPen *) 0 ;
1504 bool result;
1505 PyObject * obj0 = 0 ;
1506 char *kwnames[] = {
1507 (char *) "self", NULL
1508 };
1509
1510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1512 {
1513 PyThreadState* __tstate = wxPyBeginAllowThreads();
1514 result = (bool)(arg1)->Ok();
1515
1516 wxPyEndAllowThreads(__tstate);
1517 if (PyErr_Occurred()) SWIG_fail;
1518 }
1519 resultobj = PyInt_FromLong((long)result);
1520 return resultobj;
1521 fail:
1522 return NULL;
1523 }
1524
1525
1526 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1527 PyObject *resultobj;
1528 wxPen *arg1 = (wxPen *) 0 ;
1529 int arg2 ;
1530 PyObject * obj0 = 0 ;
1531 char *kwnames[] = {
1532 (char *) "self",(char *) "cap_style", NULL
1533 };
1534
1535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail;
1536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1537 {
1538 PyThreadState* __tstate = wxPyBeginAllowThreads();
1539 (arg1)->SetCap(arg2);
1540
1541 wxPyEndAllowThreads(__tstate);
1542 if (PyErr_Occurred()) SWIG_fail;
1543 }
1544 Py_INCREF(Py_None); resultobj = Py_None;
1545 return resultobj;
1546 fail:
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxPen *arg1 = (wxPen *) 0 ;
1554 wxColour *arg2 = 0 ;
1555 wxColour temp2 ;
1556 PyObject * obj0 = 0 ;
1557 PyObject * obj1 = 0 ;
1558 char *kwnames[] = {
1559 (char *) "self",(char *) "colour", NULL
1560 };
1561
1562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1564 {
1565 arg2 = &temp2;
1566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1567 }
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 (arg1)->SetColour(*arg2);
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 Py_INCREF(Py_None); resultobj = Py_None;
1576 return resultobj;
1577 fail:
1578 return NULL;
1579 }
1580
1581
1582 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject *resultobj;
1584 wxPen *arg1 = (wxPen *) 0 ;
1585 int arg2 ;
1586 PyObject * obj0 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self",(char *) "join_style", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1593 {
1594 PyThreadState* __tstate = wxPyBeginAllowThreads();
1595 (arg1)->SetJoin(arg2);
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) SWIG_fail;
1599 }
1600 Py_INCREF(Py_None); resultobj = Py_None;
1601 return resultobj;
1602 fail:
1603 return NULL;
1604 }
1605
1606
1607 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject *resultobj;
1609 wxPen *arg1 = (wxPen *) 0 ;
1610 int arg2 ;
1611 PyObject * obj0 = 0 ;
1612 char *kwnames[] = {
1613 (char *) "self",(char *) "style", NULL
1614 };
1615
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1618 {
1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
1620 (arg1)->SetStyle(arg2);
1621
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 }
1625 Py_INCREF(Py_None); resultobj = Py_None;
1626 return resultobj;
1627 fail:
1628 return NULL;
1629 }
1630
1631
1632 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1633 PyObject *resultobj;
1634 wxPen *arg1 = (wxPen *) 0 ;
1635 int arg2 ;
1636 PyObject * obj0 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "self",(char *) "width", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1643 {
1644 PyThreadState* __tstate = wxPyBeginAllowThreads();
1645 (arg1)->SetWidth(arg2);
1646
1647 wxPyEndAllowThreads(__tstate);
1648 if (PyErr_Occurred()) SWIG_fail;
1649 }
1650 Py_INCREF(Py_None); resultobj = Py_None;
1651 return resultobj;
1652 fail:
1653 return NULL;
1654 }
1655
1656
1657 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1658 PyObject *resultobj;
1659 wxPen *arg1 = (wxPen *) 0 ;
1660 int arg2 ;
1661 wxDash *arg3 = (wxDash *) 0 ;
1662 PyObject * obj0 = 0 ;
1663 PyObject * obj1 = 0 ;
1664 char *kwnames[] = {
1665 (char *) "self",(char *) "dashes", NULL
1666 };
1667
1668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1670 {
1671 arg2 = PyList_Size(obj1);
1672 arg3 = (wxDash*)byte_LIST_helper(obj1);
1673 if (arg3 == NULL) SWIG_fail;
1674 }
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 (arg1)->SetDashes(arg2,arg3);
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 Py_INCREF(Py_None); resultobj = Py_None;
1683 {
1684 if (arg3) delete [] arg3;
1685 }
1686 return resultobj;
1687 fail:
1688 {
1689 if (arg3) delete [] arg3;
1690 }
1691 return NULL;
1692 }
1693
1694
1695 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1696 PyObject *resultobj;
1697 wxPen *arg1 = (wxPen *) 0 ;
1698 PyObject *result;
1699 PyObject * obj0 = 0 ;
1700 char *kwnames[] = {
1701 (char *) "self", NULL
1702 };
1703
1704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1706 {
1707 PyThreadState* __tstate = wxPyBeginAllowThreads();
1708 result = (PyObject *)wxPen_GetDashes(arg1);
1709
1710 wxPyEndAllowThreads(__tstate);
1711 if (PyErr_Occurred()) SWIG_fail;
1712 }
1713 resultobj = result;
1714 return resultobj;
1715 fail:
1716 return NULL;
1717 }
1718
1719
1720 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1721 PyObject *resultobj;
1722 wxPen *arg1 = (wxPen *) 0 ;
1723 int result;
1724 PyObject * obj0 = 0 ;
1725 char *kwnames[] = {
1726 (char *) "self", NULL
1727 };
1728
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 result = (int)((wxPen const *)arg1)->GetDashCount();
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 resultobj = PyInt_FromLong((long)result);
1739 return resultobj;
1740 fail:
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxPen *arg1 = (wxPen *) 0 ;
1748 wxBitmap *result;
1749 PyObject * obj0 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
1755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (wxBitmap *)(arg1)->GetStipple();
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
1764 return resultobj;
1765 fail:
1766 return NULL;
1767 }
1768
1769
1770 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1771 PyObject *resultobj;
1772 wxPen *arg1 = (wxPen *) 0 ;
1773 wxBitmap *arg2 = 0 ;
1774 PyObject * obj0 = 0 ;
1775 PyObject * obj1 = 0 ;
1776 char *kwnames[] = {
1777 (char *) "self",(char *) "stipple", NULL
1778 };
1779
1780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1782 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1783 if (arg2 == NULL) {
1784 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1785 }
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 (arg1)->SetStipple(*arg2);
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 Py_INCREF(Py_None); resultobj = Py_None;
1794 return resultobj;
1795 fail:
1796 return NULL;
1797 }
1798
1799
1800 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1801 PyObject *obj;
1802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1803 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1804 Py_INCREF(obj);
1805 return Py_BuildValue((char *)"");
1806 }
1807 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject *resultobj;
1809 wxColour *arg1 = 0 ;
1810 int arg2 = (int) 1 ;
1811 int arg3 = (int) wxSOLID ;
1812 wxPyPen *result;
1813 wxColour temp1 ;
1814 PyObject * obj0 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "colour",(char *) "width",(char *) "style", NULL
1817 };
1818
1819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1820 {
1821 arg1 = &temp1;
1822 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1823 }
1824 {
1825 PyThreadState* __tstate = wxPyBeginAllowThreads();
1826 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1827
1828 wxPyEndAllowThreads(__tstate);
1829 if (PyErr_Occurred()) SWIG_fail;
1830 }
1831 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1832 return resultobj;
1833 fail:
1834 return NULL;
1835 }
1836
1837
1838 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1839 PyObject *resultobj;
1840 wxPyPen *arg1 = (wxPyPen *) 0 ;
1841 PyObject * obj0 = 0 ;
1842 char *kwnames[] = {
1843 (char *) "self", NULL
1844 };
1845
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 delete arg1;
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) SWIG_fail;
1854 }
1855 Py_INCREF(Py_None); resultobj = Py_None;
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxPyPen *arg1 = (wxPyPen *) 0 ;
1865 int arg2 ;
1866 wxDash *arg3 = (wxDash *) 0 ;
1867 PyObject * obj0 = 0 ;
1868 PyObject * obj1 = 0 ;
1869 char *kwnames[] = {
1870 (char *) "self",(char *) "dashes", NULL
1871 };
1872
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1875 {
1876 arg2 = PyList_Size(obj1);
1877 arg3 = (wxDash*)byte_LIST_helper(obj1);
1878 if (arg3 == NULL) SWIG_fail;
1879 }
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 (arg1)->SetDashes(arg2,arg3);
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 Py_INCREF(Py_None); resultobj = Py_None;
1888 {
1889 if (arg3) delete [] arg3;
1890 }
1891 return resultobj;
1892 fail:
1893 {
1894 if (arg3) delete [] arg3;
1895 }
1896 return NULL;
1897 }
1898
1899
1900 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1901 PyObject *obj;
1902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1903 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1904 Py_INCREF(obj);
1905 return Py_BuildValue((char *)"");
1906 }
1907 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxColour *arg1 = 0 ;
1910 int arg2 = (int) wxSOLID ;
1911 wxBrush *result;
1912 wxColour temp1 ;
1913 PyObject * obj0 = 0 ;
1914 char *kwnames[] = {
1915 (char *) "colour",(char *) "style", NULL
1916 };
1917
1918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1919 {
1920 arg1 = &temp1;
1921 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1922 }
1923 {
1924 PyThreadState* __tstate = wxPyBeginAllowThreads();
1925 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1926
1927 wxPyEndAllowThreads(__tstate);
1928 if (PyErr_Occurred()) SWIG_fail;
1929 }
1930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1931 return resultobj;
1932 fail:
1933 return NULL;
1934 }
1935
1936
1937 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1938 PyObject *resultobj;
1939 wxBrush *arg1 = (wxBrush *) 0 ;
1940 PyObject * obj0 = 0 ;
1941 char *kwnames[] = {
1942 (char *) "self", NULL
1943 };
1944
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1947 {
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 delete arg1;
1950
1951 wxPyEndAllowThreads(__tstate);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 }
1954 Py_INCREF(Py_None); resultobj = Py_None;
1955 return resultobj;
1956 fail:
1957 return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxBrush *arg1 = (wxBrush *) 0 ;
1964 wxColour *arg2 = 0 ;
1965 wxColour temp2 ;
1966 PyObject * obj0 = 0 ;
1967 PyObject * obj1 = 0 ;
1968 char *kwnames[] = {
1969 (char *) "self",(char *) "col", NULL
1970 };
1971
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1974 {
1975 arg2 = &temp2;
1976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1977 }
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 (arg1)->SetColour((wxColour const &)*arg2);
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) SWIG_fail;
1984 }
1985 Py_INCREF(Py_None); resultobj = Py_None;
1986 return resultobj;
1987 fail:
1988 return NULL;
1989 }
1990
1991
1992 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1993 PyObject *resultobj;
1994 wxBrush *arg1 = (wxBrush *) 0 ;
1995 int arg2 ;
1996 PyObject * obj0 = 0 ;
1997 char *kwnames[] = {
1998 (char *) "self",(char *) "style", NULL
1999 };
2000
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
2002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 (arg1)->SetStyle(arg2);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014 }
2015
2016
2017 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 wxBrush *arg1 = (wxBrush *) 0 ;
2020 wxBitmap *arg2 = 0 ;
2021 PyObject * obj0 = 0 ;
2022 PyObject * obj1 = 0 ;
2023 char *kwnames[] = {
2024 (char *) "self",(char *) "stipple", NULL
2025 };
2026
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2029 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2030 if (arg2 == NULL) {
2031 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2032 }
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 (arg1)->SetStipple((wxBitmap const &)*arg2);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 }
2040 Py_INCREF(Py_None); resultobj = Py_None;
2041 return resultobj;
2042 fail:
2043 return NULL;
2044 }
2045
2046
2047 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2048 PyObject *resultobj;
2049 wxBrush *arg1 = (wxBrush *) 0 ;
2050 wxColour result;
2051 PyObject * obj0 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self", NULL
2054 };
2055
2056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 result = ((wxBrush const *)arg1)->GetColour();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 {
2066 wxColour * resultptr;
2067 resultptr = new wxColour((wxColour &) result);
2068 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2069 }
2070 return resultobj;
2071 fail:
2072 return NULL;
2073 }
2074
2075
2076 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2077 PyObject *resultobj;
2078 wxBrush *arg1 = (wxBrush *) 0 ;
2079 int result;
2080 PyObject * obj0 = 0 ;
2081 char *kwnames[] = {
2082 (char *) "self", NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2087 {
2088 PyThreadState* __tstate = wxPyBeginAllowThreads();
2089 result = (int)((wxBrush const *)arg1)->GetStyle();
2090
2091 wxPyEndAllowThreads(__tstate);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 }
2094 resultobj = PyInt_FromLong((long)result);
2095 return resultobj;
2096 fail:
2097 return NULL;
2098 }
2099
2100
2101 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2102 PyObject *resultobj;
2103 wxBrush *arg1 = (wxBrush *) 0 ;
2104 wxBitmap *result;
2105 PyObject * obj0 = 0 ;
2106 char *kwnames[] = {
2107 (char *) "self", NULL
2108 };
2109
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2112 {
2113 PyThreadState* __tstate = wxPyBeginAllowThreads();
2114 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2115
2116 wxPyEndAllowThreads(__tstate);
2117 if (PyErr_Occurred()) SWIG_fail;
2118 }
2119 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2120 return resultobj;
2121 fail:
2122 return NULL;
2123 }
2124
2125
2126 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject *resultobj;
2128 wxBrush *arg1 = (wxBrush *) 0 ;
2129 bool result;
2130 PyObject * obj0 = 0 ;
2131 char *kwnames[] = {
2132 (char *) "self", NULL
2133 };
2134
2135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 result = (bool)(arg1)->Ok();
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) SWIG_fail;
2143 }
2144 resultobj = PyInt_FromLong((long)result);
2145 return resultobj;
2146 fail:
2147 return NULL;
2148 }
2149
2150
2151 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2152 PyObject *obj;
2153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2154 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2155 Py_INCREF(obj);
2156 return Py_BuildValue((char *)"");
2157 }
2158 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2159 PyObject *resultobj;
2160 wxString *arg1 = 0 ;
2161 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2162 wxBitmap *result;
2163 bool temp1 = False ;
2164 PyObject * obj0 = 0 ;
2165 char *kwnames[] = {
2166 (char *) "name",(char *) "type", NULL
2167 };
2168
2169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2170 {
2171 arg1 = wxString_in_helper(obj0);
2172 if (arg1 == NULL) SWIG_fail;
2173 temp1 = True;
2174 }
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2183 {
2184 if (temp1)
2185 delete arg1;
2186 }
2187 return resultobj;
2188 fail:
2189 {
2190 if (temp1)
2191 delete arg1;
2192 }
2193 return NULL;
2194 }
2195
2196
2197 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject *resultobj;
2199 wxBitmap *arg1 = (wxBitmap *) 0 ;
2200 PyObject * obj0 = 0 ;
2201 char *kwnames[] = {
2202 (char *) "self", NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 delete arg1;
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 Py_INCREF(Py_None); resultobj = Py_None;
2215 return resultobj;
2216 fail:
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 int arg1 ;
2224 int arg2 ;
2225 int arg3 = (int) -1 ;
2226 wxBitmap *result;
2227 char *kwnames[] = {
2228 (char *) "width",(char *) "height",(char *) "depth", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2232 {
2233 PyThreadState* __tstate = wxPyBeginAllowThreads();
2234 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2235
2236 wxPyEndAllowThreads(__tstate);
2237 if (PyErr_Occurred()) SWIG_fail;
2238 }
2239 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2240 return resultobj;
2241 fail:
2242 return NULL;
2243 }
2244
2245
2246 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2247 PyObject *resultobj;
2248 wxIcon *arg1 = 0 ;
2249 wxBitmap *result;
2250 PyObject * obj0 = 0 ;
2251 char *kwnames[] = {
2252 (char *) "icon", NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2257 if (arg1 == NULL) {
2258 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2259 }
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
2262 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 }
2267 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2268 return resultobj;
2269 fail:
2270 return NULL;
2271 }
2272
2273
2274 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2275 PyObject *resultobj;
2276 wxImage *arg1 = 0 ;
2277 int arg2 = (int) -1 ;
2278 wxBitmap *result;
2279 PyObject * obj0 = 0 ;
2280 char *kwnames[] = {
2281 (char *) "image",(char *) "depth", NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2286 if (arg1 == NULL) {
2287 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2288 }
2289 {
2290 PyThreadState* __tstate = wxPyBeginAllowThreads();
2291 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2292
2293 wxPyEndAllowThreads(__tstate);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 }
2296 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2297 return resultobj;
2298 fail:
2299 return NULL;
2300 }
2301
2302
2303 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2304 PyObject *resultobj;
2305 PyObject *arg1 = (PyObject *) 0 ;
2306 wxBitmap *result;
2307 PyObject * obj0 = 0 ;
2308 char *kwnames[] = {
2309 (char *) "listOfStrings", NULL
2310 };
2311
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2313 arg1 = obj0;
2314 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 result = (wxBitmap *)new_wxBitmap(arg1);
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 }
2321 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2322 return resultobj;
2323 fail:
2324 return NULL;
2325 }
2326
2327
2328 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject *resultobj;
2330 PyObject *arg1 = (PyObject *) 0 ;
2331 int arg2 ;
2332 int arg3 ;
2333 int arg4 = (int) 1 ;
2334 wxBitmap *result;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2341 arg1 = obj0;
2342 {
2343 PyThreadState* __tstate = wxPyBeginAllowThreads();
2344 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2345
2346 wxPyEndAllowThreads(__tstate);
2347 if (PyErr_Occurred()) SWIG_fail;
2348 }
2349 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2350 return resultobj;
2351 fail:
2352 return NULL;
2353 }
2354
2355
2356 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2357 PyObject *resultobj;
2358 wxBitmap *arg1 = (wxBitmap *) 0 ;
2359 wxPalette *arg2 = 0 ;
2360 PyObject * obj0 = 0 ;
2361 PyObject * obj1 = 0 ;
2362 char *kwnames[] = {
2363 (char *) "self",(char *) "palette", NULL
2364 };
2365
2366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2368 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2369 if (arg2 == NULL) {
2370 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2371 }
2372 {
2373 PyThreadState* __tstate = wxPyBeginAllowThreads();
2374 (arg1)->SetPalette(*arg2);
2375
2376 wxPyEndAllowThreads(__tstate);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 Py_INCREF(Py_None); resultobj = Py_None;
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxBitmap *arg1 = (wxBitmap *) 0 ;
2389 long result;
2390 PyObject * obj0 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2397 {
2398 PyThreadState* __tstate = wxPyBeginAllowThreads();
2399 result = (long)(arg1)->GetHandle();
2400
2401 wxPyEndAllowThreads(__tstate);
2402 if (PyErr_Occurred()) SWIG_fail;
2403 }
2404 resultobj = PyInt_FromLong((long)result);
2405 return resultobj;
2406 fail:
2407 return NULL;
2408 }
2409
2410
2411 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2412 PyObject *resultobj;
2413 wxBitmap *arg1 = (wxBitmap *) 0 ;
2414 long arg2 ;
2415 PyObject * obj0 = 0 ;
2416 char *kwnames[] = {
2417 (char *) "self",(char *) "handle", NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) goto fail;
2421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 (arg1)->SetHandle(arg2);
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) SWIG_fail;
2428 }
2429 Py_INCREF(Py_None); resultobj = Py_None;
2430 return resultobj;
2431 fail:
2432 return NULL;
2433 }
2434
2435
2436 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2437 PyObject *resultobj;
2438 wxBitmap *arg1 = (wxBitmap *) 0 ;
2439 bool result;
2440 PyObject * obj0 = 0 ;
2441 char *kwnames[] = {
2442 (char *) "self", NULL
2443 };
2444
2445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2447 {
2448 PyThreadState* __tstate = wxPyBeginAllowThreads();
2449 result = (bool)(arg1)->Ok();
2450
2451 wxPyEndAllowThreads(__tstate);
2452 if (PyErr_Occurred()) SWIG_fail;
2453 }
2454 resultobj = PyInt_FromLong((long)result);
2455 return resultobj;
2456 fail:
2457 return NULL;
2458 }
2459
2460
2461 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2462 PyObject *resultobj;
2463 wxBitmap *arg1 = (wxBitmap *) 0 ;
2464 int result;
2465 PyObject * obj0 = 0 ;
2466 char *kwnames[] = {
2467 (char *) "self", NULL
2468 };
2469
2470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 result = (int)(arg1)->GetWidth();
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 resultobj = PyInt_FromLong((long)result);
2480 return resultobj;
2481 fail:
2482 return NULL;
2483 }
2484
2485
2486 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2487 PyObject *resultobj;
2488 wxBitmap *arg1 = (wxBitmap *) 0 ;
2489 int result;
2490 PyObject * obj0 = 0 ;
2491 char *kwnames[] = {
2492 (char *) "self", NULL
2493 };
2494
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2497 {
2498 PyThreadState* __tstate = wxPyBeginAllowThreads();
2499 result = (int)(arg1)->GetHeight();
2500
2501 wxPyEndAllowThreads(__tstate);
2502 if (PyErr_Occurred()) SWIG_fail;
2503 }
2504 resultobj = PyInt_FromLong((long)result);
2505 return resultobj;
2506 fail:
2507 return NULL;
2508 }
2509
2510
2511 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject *resultobj;
2513 wxBitmap *arg1 = (wxBitmap *) 0 ;
2514 int result;
2515 PyObject * obj0 = 0 ;
2516 char *kwnames[] = {
2517 (char *) "self", NULL
2518 };
2519
2520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2522 {
2523 PyThreadState* __tstate = wxPyBeginAllowThreads();
2524 result = (int)(arg1)->GetDepth();
2525
2526 wxPyEndAllowThreads(__tstate);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 }
2529 resultobj = PyInt_FromLong((long)result);
2530 return resultobj;
2531 fail:
2532 return NULL;
2533 }
2534
2535
2536 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxBitmap *arg1 = (wxBitmap *) 0 ;
2539 SwigValueWrapper< wxImage > result;
2540 PyObject * obj0 = 0 ;
2541 char *kwnames[] = {
2542 (char *) "self", NULL
2543 };
2544
2545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2547 {
2548 PyThreadState* __tstate = wxPyBeginAllowThreads();
2549 result = ((wxBitmap const *)arg1)->ConvertToImage();
2550
2551 wxPyEndAllowThreads(__tstate);
2552 if (PyErr_Occurred()) SWIG_fail;
2553 }
2554 {
2555 wxImage * resultptr;
2556 resultptr = new wxImage((wxImage &) result);
2557 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2558 }
2559 return resultobj;
2560 fail:
2561 return NULL;
2562 }
2563
2564
2565 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2566 PyObject *resultobj;
2567 wxBitmap *arg1 = (wxBitmap *) 0 ;
2568 wxMask *result;
2569 PyObject * obj0 = 0 ;
2570 char *kwnames[] = {
2571 (char *) "self", NULL
2572 };
2573
2574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2576 {
2577 PyThreadState* __tstate = wxPyBeginAllowThreads();
2578 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2579
2580 wxPyEndAllowThreads(__tstate);
2581 if (PyErr_Occurred()) SWIG_fail;
2582 }
2583 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj;
2592 wxBitmap *arg1 = (wxBitmap *) 0 ;
2593 wxMask *arg2 = (wxMask *) 0 ;
2594 PyObject * obj0 = 0 ;
2595 PyObject * obj1 = 0 ;
2596 char *kwnames[] = {
2597 (char *) "self",(char *) "mask", NULL
2598 };
2599
2600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2602 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2603 {
2604 PyThreadState* __tstate = wxPyBeginAllowThreads();
2605 (arg1)->SetMask(arg2);
2606
2607 wxPyEndAllowThreads(__tstate);
2608 if (PyErr_Occurred()) SWIG_fail;
2609 }
2610 Py_INCREF(Py_None); resultobj = Py_None;
2611 return resultobj;
2612 fail:
2613 return NULL;
2614 }
2615
2616
2617 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxBitmap *arg1 = (wxBitmap *) 0 ;
2620 wxColour *arg2 = 0 ;
2621 wxColour temp2 ;
2622 PyObject * obj0 = 0 ;
2623 PyObject * obj1 = 0 ;
2624 char *kwnames[] = {
2625 (char *) "self",(char *) "colour", NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2630 {
2631 arg2 = &temp2;
2632 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2633 }
2634 {
2635 PyThreadState* __tstate = wxPyBeginAllowThreads();
2636 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2637
2638 wxPyEndAllowThreads(__tstate);
2639 if (PyErr_Occurred()) SWIG_fail;
2640 }
2641 Py_INCREF(Py_None); resultobj = Py_None;
2642 return resultobj;
2643 fail:
2644 return NULL;
2645 }
2646
2647
2648 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2649 PyObject *resultobj;
2650 wxBitmap *arg1 = (wxBitmap *) 0 ;
2651 wxRect *arg2 = 0 ;
2652 SwigValueWrapper< wxBitmap > result;
2653 wxRect temp2 ;
2654 PyObject * obj0 = 0 ;
2655 PyObject * obj1 = 0 ;
2656 char *kwnames[] = {
2657 (char *) "self",(char *) "rect", NULL
2658 };
2659
2660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2662 {
2663 arg2 = &temp2;
2664 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2665 }
2666 {
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
2668 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) SWIG_fail;
2672 }
2673 {
2674 wxBitmap * resultptr;
2675 resultptr = new wxBitmap((wxBitmap &) result);
2676 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2677 }
2678 return resultobj;
2679 fail:
2680 return NULL;
2681 }
2682
2683
2684 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject *resultobj;
2686 wxBitmap *arg1 = (wxBitmap *) 0 ;
2687 wxString *arg2 = 0 ;
2688 int arg3 ;
2689 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2690 bool result;
2691 bool temp2 = False ;
2692 PyObject * obj0 = 0 ;
2693 PyObject * obj1 = 0 ;
2694 PyObject * obj3 = 0 ;
2695 char *kwnames[] = {
2696 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2697 };
2698
2699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2701 {
2702 arg2 = wxString_in_helper(obj1);
2703 if (arg2 == NULL) SWIG_fail;
2704 temp2 = True;
2705 }
2706 if (obj3) {
2707 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2708 }
2709 {
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 resultobj = PyInt_FromLong((long)result);
2717 {
2718 if (temp2)
2719 delete arg2;
2720 }
2721 return resultobj;
2722 fail:
2723 {
2724 if (temp2)
2725 delete arg2;
2726 }
2727 return NULL;
2728 }
2729
2730
2731 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject *resultobj;
2733 wxBitmap *arg1 = (wxBitmap *) 0 ;
2734 wxString *arg2 = 0 ;
2735 int arg3 ;
2736 bool result;
2737 bool temp2 = False ;
2738 PyObject * obj0 = 0 ;
2739 PyObject * obj1 = 0 ;
2740 char *kwnames[] = {
2741 (char *) "self",(char *) "name",(char *) "type", NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2746 {
2747 arg2 = wxString_in_helper(obj1);
2748 if (arg2 == NULL) SWIG_fail;
2749 temp2 = True;
2750 }
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 resultobj = PyInt_FromLong((long)result);
2759 {
2760 if (temp2)
2761 delete arg2;
2762 }
2763 return resultobj;
2764 fail:
2765 {
2766 if (temp2)
2767 delete arg2;
2768 }
2769 return NULL;
2770 }
2771
2772
2773 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2774 PyObject *resultobj;
2775 wxBitmap *arg1 = (wxBitmap *) 0 ;
2776 wxIcon *arg2 = 0 ;
2777 bool result;
2778 PyObject * obj0 = 0 ;
2779 PyObject * obj1 = 0 ;
2780 char *kwnames[] = {
2781 (char *) "self",(char *) "icon", NULL
2782 };
2783
2784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2787 if (arg2 == NULL) {
2788 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2789 }
2790 {
2791 PyThreadState* __tstate = wxPyBeginAllowThreads();
2792 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2793
2794 wxPyEndAllowThreads(__tstate);
2795 if (PyErr_Occurred()) SWIG_fail;
2796 }
2797 resultobj = PyInt_FromLong((long)result);
2798 return resultobj;
2799 fail:
2800 return NULL;
2801 }
2802
2803
2804 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2805 PyObject *resultobj;
2806 wxBitmap *arg1 = (wxBitmap *) 0 ;
2807 int arg2 ;
2808 PyObject * obj0 = 0 ;
2809 char *kwnames[] = {
2810 (char *) "self",(char *) "height", NULL
2811 };
2812
2813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2815 {
2816 PyThreadState* __tstate = wxPyBeginAllowThreads();
2817 (arg1)->SetHeight(arg2);
2818
2819 wxPyEndAllowThreads(__tstate);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 Py_INCREF(Py_None); resultobj = Py_None;
2823 return resultobj;
2824 fail:
2825 return NULL;
2826 }
2827
2828
2829 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2830 PyObject *resultobj;
2831 wxBitmap *arg1 = (wxBitmap *) 0 ;
2832 int arg2 ;
2833 PyObject * obj0 = 0 ;
2834 char *kwnames[] = {
2835 (char *) "self",(char *) "width", NULL
2836 };
2837
2838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2840 {
2841 PyThreadState* __tstate = wxPyBeginAllowThreads();
2842 (arg1)->SetWidth(arg2);
2843
2844 wxPyEndAllowThreads(__tstate);
2845 if (PyErr_Occurred()) SWIG_fail;
2846 }
2847 Py_INCREF(Py_None); resultobj = Py_None;
2848 return resultobj;
2849 fail:
2850 return NULL;
2851 }
2852
2853
2854 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2855 PyObject *resultobj;
2856 wxBitmap *arg1 = (wxBitmap *) 0 ;
2857 int arg2 ;
2858 PyObject * obj0 = 0 ;
2859 char *kwnames[] = {
2860 (char *) "self",(char *) "depth", NULL
2861 };
2862
2863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2865 {
2866 PyThreadState* __tstate = wxPyBeginAllowThreads();
2867 (arg1)->SetDepth(arg2);
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) SWIG_fail;
2871 }
2872 Py_INCREF(Py_None); resultobj = Py_None;
2873 return resultobj;
2874 fail:
2875 return NULL;
2876 }
2877
2878
2879 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2880 PyObject *resultobj;
2881 wxBitmap *arg1 = (wxBitmap *) 0 ;
2882 wxCursor *arg2 = 0 ;
2883 bool result;
2884 PyObject * obj0 = 0 ;
2885 PyObject * obj1 = 0 ;
2886 char *kwnames[] = {
2887 (char *) "self",(char *) "cursor", NULL
2888 };
2889
2890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
2891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2893 if (arg2 == NULL) {
2894 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2895 }
2896 {
2897 PyThreadState* __tstate = wxPyBeginAllowThreads();
2898 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
2899
2900 wxPyEndAllowThreads(__tstate);
2901 if (PyErr_Occurred()) SWIG_fail;
2902 }
2903 resultobj = PyInt_FromLong((long)result);
2904 return resultobj;
2905 fail:
2906 return NULL;
2907 }
2908
2909
2910 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2911 PyObject *resultobj;
2912 wxBitmap *arg1 = (wxBitmap *) 0 ;
2913 int result;
2914 PyObject * obj0 = 0 ;
2915 char *kwnames[] = {
2916 (char *) "self", NULL
2917 };
2918
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
2920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2921 {
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 result = (int)(arg1)->GetQuality();
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) SWIG_fail;
2927 }
2928 resultobj = PyInt_FromLong((long)result);
2929 return resultobj;
2930 fail:
2931 return NULL;
2932 }
2933
2934
2935 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2936 PyObject *resultobj;
2937 wxBitmap *arg1 = (wxBitmap *) 0 ;
2938 int arg2 ;
2939 PyObject * obj0 = 0 ;
2940 char *kwnames[] = {
2941 (char *) "self",(char *) "q", NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail;
2945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2946 {
2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
2948 (arg1)->SetQuality(arg2);
2949
2950 wxPyEndAllowThreads(__tstate);
2951 if (PyErr_Occurred()) SWIG_fail;
2952 }
2953 Py_INCREF(Py_None); resultobj = Py_None;
2954 return resultobj;
2955 fail:
2956 return NULL;
2957 }
2958
2959
2960 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2961 PyObject *obj;
2962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2963 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2964 Py_INCREF(obj);
2965 return Py_BuildValue((char *)"");
2966 }
2967 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2968 PyObject *resultobj;
2969 wxBitmap *arg1 = 0 ;
2970 wxMask *result;
2971 PyObject * obj0 = 0 ;
2972 char *kwnames[] = {
2973 (char *) "bitmap", NULL
2974 };
2975
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2978 if (arg1 == NULL) {
2979 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2989 return resultobj;
2990 fail:
2991 return NULL;
2992 }
2993
2994
2995 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 wxBitmap *arg1 = 0 ;
2998 wxColour *arg2 = 0 ;
2999 wxMask *result;
3000 wxColour temp2 ;
3001 PyObject * obj0 = 0 ;
3002 PyObject * obj1 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "bitmap",(char *) "colour", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3009 if (arg1 == NULL) {
3010 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3011 }
3012 {
3013 arg2 = &temp2;
3014 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3015 }
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3024 return resultobj;
3025 fail:
3026 return NULL;
3027 }
3028
3029
3030 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3031 PyObject *obj;
3032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3033 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3034 Py_INCREF(obj);
3035 return Py_BuildValue((char *)"");
3036 }
3037 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3038 PyObject *resultobj;
3039 wxString *arg1 = 0 ;
3040 long arg2 ;
3041 int arg3 = (int) -1 ;
3042 int arg4 = (int) -1 ;
3043 wxIcon *result;
3044 bool temp1 = False ;
3045 PyObject * obj0 = 0 ;
3046 char *kwnames[] = {
3047 (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3048 };
3049
3050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3051 {
3052 arg1 = wxString_in_helper(obj0);
3053 if (arg1 == NULL) SWIG_fail;
3054 temp1 = True;
3055 }
3056 {
3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
3058 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
3059
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3064 {
3065 if (temp1)
3066 delete arg1;
3067 }
3068 return resultobj;
3069 fail:
3070 {
3071 if (temp1)
3072 delete arg1;
3073 }
3074 return NULL;
3075 }
3076
3077
3078 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3079 PyObject *resultobj;
3080 wxIcon *arg1 = (wxIcon *) 0 ;
3081 PyObject * obj0 = 0 ;
3082 char *kwnames[] = {
3083 (char *) "self", NULL
3084 };
3085
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 delete arg1;
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
3095 Py_INCREF(Py_None); resultobj = Py_None;
3096 return resultobj;
3097 fail:
3098 return NULL;
3099 }
3100
3101
3102 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxIcon *result;
3105 char *kwnames[] = {
3106 NULL
3107 };
3108
3109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = (wxIcon *)new wxIcon();
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxIconLocation *arg1 = 0 ;
3127 wxIcon *result;
3128 PyObject * obj0 = 0 ;
3129 char *kwnames[] = {
3130 (char *) "loc", NULL
3131 };
3132
3133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3135 if (arg1 == NULL) {
3136 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3137 }
3138 {
3139 PyThreadState* __tstate = wxPyBeginAllowThreads();
3140 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3141
3142 wxPyEndAllowThreads(__tstate);
3143 if (PyErr_Occurred()) SWIG_fail;
3144 }
3145 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3146 return resultobj;
3147 fail:
3148 return NULL;
3149 }
3150
3151
3152 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3153 PyObject *resultobj;
3154 wxBitmap *arg1 = 0 ;
3155 wxIcon *result;
3156 PyObject * obj0 = 0 ;
3157 char *kwnames[] = {
3158 (char *) "bmp", NULL
3159 };
3160
3161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3163 if (arg1 == NULL) {
3164 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3165 }
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3174 return resultobj;
3175 fail:
3176 return NULL;
3177 }
3178
3179
3180 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3181 PyObject *resultobj;
3182 PyObject *arg1 = (PyObject *) 0 ;
3183 wxIcon *result;
3184 PyObject * obj0 = 0 ;
3185 char *kwnames[] = {
3186 (char *) "listOfStrings", NULL
3187 };
3188
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3190 arg1 = obj0;
3191 {
3192 PyThreadState* __tstate = wxPyBeginAllowThreads();
3193 result = (wxIcon *)new_wxIcon(arg1);
3194
3195 wxPyEndAllowThreads(__tstate);
3196 if (PyErr_Occurred()) SWIG_fail;
3197 }
3198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3199 return resultobj;
3200 fail:
3201 return NULL;
3202 }
3203
3204
3205 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3206 PyObject *resultobj;
3207 wxIcon *arg1 = (wxIcon *) 0 ;
3208 wxString *arg2 = 0 ;
3209 long arg3 ;
3210 bool result;
3211 bool temp2 = False ;
3212 PyObject * obj0 = 0 ;
3213 PyObject * obj1 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "self",(char *) "name",(char *) "flags", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3220 {
3221 arg2 = wxString_in_helper(obj1);
3222 if (arg2 == NULL) SWIG_fail;
3223 temp2 = True;
3224 }
3225 {
3226 PyThreadState* __tstate = wxPyBeginAllowThreads();
3227 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
3228
3229 wxPyEndAllowThreads(__tstate);
3230 if (PyErr_Occurred()) SWIG_fail;
3231 }
3232 resultobj = PyInt_FromLong((long)result);
3233 {
3234 if (temp2)
3235 delete arg2;
3236 }
3237 return resultobj;
3238 fail:
3239 {
3240 if (temp2)
3241 delete arg2;
3242 }
3243 return NULL;
3244 }
3245
3246
3247 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3248 PyObject *resultobj;
3249 wxIcon *arg1 = (wxIcon *) 0 ;
3250 long result;
3251 PyObject * obj0 = 0 ;
3252 char *kwnames[] = {
3253 (char *) "self", NULL
3254 };
3255
3256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (long)(arg1)->GetHandle();
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 resultobj = PyInt_FromLong((long)result);
3266 return resultobj;
3267 fail:
3268 return NULL;
3269 }
3270
3271
3272 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3273 PyObject *resultobj;
3274 wxIcon *arg1 = (wxIcon *) 0 ;
3275 long arg2 ;
3276 PyObject * obj0 = 0 ;
3277 char *kwnames[] = {
3278 (char *) "self",(char *) "handle", NULL
3279 };
3280
3281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail;
3282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3283 {
3284 PyThreadState* __tstate = wxPyBeginAllowThreads();
3285 (arg1)->SetHandle(arg2);
3286
3287 wxPyEndAllowThreads(__tstate);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 Py_INCREF(Py_None); resultobj = Py_None;
3291 return resultobj;
3292 fail:
3293 return NULL;
3294 }
3295
3296
3297 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3298 PyObject *resultobj;
3299 wxIcon *arg1 = (wxIcon *) 0 ;
3300 bool result;
3301 PyObject * obj0 = 0 ;
3302 char *kwnames[] = {
3303 (char *) "self", NULL
3304 };
3305
3306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 result = (bool)(arg1)->Ok();
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 resultobj = PyInt_FromLong((long)result);
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3323 PyObject *resultobj;
3324 wxIcon *arg1 = (wxIcon *) 0 ;
3325 int result;
3326 PyObject * obj0 = 0 ;
3327 char *kwnames[] = {
3328 (char *) "self", NULL
3329 };
3330
3331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3333 {
3334 PyThreadState* __tstate = wxPyBeginAllowThreads();
3335 result = (int)(arg1)->GetWidth();
3336
3337 wxPyEndAllowThreads(__tstate);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 }
3340 resultobj = PyInt_FromLong((long)result);
3341 return resultobj;
3342 fail:
3343 return NULL;
3344 }
3345
3346
3347 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3348 PyObject *resultobj;
3349 wxIcon *arg1 = (wxIcon *) 0 ;
3350 int result;
3351 PyObject * obj0 = 0 ;
3352 char *kwnames[] = {
3353 (char *) "self", NULL
3354 };
3355
3356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3358 {
3359 PyThreadState* __tstate = wxPyBeginAllowThreads();
3360 result = (int)(arg1)->GetHeight();
3361
3362 wxPyEndAllowThreads(__tstate);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 resultobj = PyInt_FromLong((long)result);
3366 return resultobj;
3367 fail:
3368 return NULL;
3369 }
3370
3371
3372 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject *resultobj;
3374 wxIcon *arg1 = (wxIcon *) 0 ;
3375 int result;
3376 PyObject * obj0 = 0 ;
3377 char *kwnames[] = {
3378 (char *) "self", NULL
3379 };
3380
3381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3383 {
3384 PyThreadState* __tstate = wxPyBeginAllowThreads();
3385 result = (int)(arg1)->GetDepth();
3386
3387 wxPyEndAllowThreads(__tstate);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 }
3390 resultobj = PyInt_FromLong((long)result);
3391 return resultobj;
3392 fail:
3393 return NULL;
3394 }
3395
3396
3397 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj;
3399 wxIcon *arg1 = (wxIcon *) 0 ;
3400 int arg2 ;
3401 PyObject * obj0 = 0 ;
3402 char *kwnames[] = {
3403 (char *) "self",(char *) "w", NULL
3404 };
3405
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3408 {
3409 PyThreadState* __tstate = wxPyBeginAllowThreads();
3410 (arg1)->SetWidth(arg2);
3411
3412 wxPyEndAllowThreads(__tstate);
3413 if (PyErr_Occurred()) SWIG_fail;
3414 }
3415 Py_INCREF(Py_None); resultobj = Py_None;
3416 return resultobj;
3417 fail:
3418 return NULL;
3419 }
3420
3421
3422 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxIcon *arg1 = (wxIcon *) 0 ;
3425 int arg2 ;
3426 PyObject * obj0 = 0 ;
3427 char *kwnames[] = {
3428 (char *) "self",(char *) "h", NULL
3429 };
3430
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 (arg1)->SetHeight(arg2);
3436
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 }
3440 Py_INCREF(Py_None); resultobj = Py_None;
3441 return resultobj;
3442 fail:
3443 return NULL;
3444 }
3445
3446
3447 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj;
3449 wxIcon *arg1 = (wxIcon *) 0 ;
3450 int arg2 ;
3451 PyObject * obj0 = 0 ;
3452 char *kwnames[] = {
3453 (char *) "self",(char *) "d", NULL
3454 };
3455
3456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 (arg1)->SetDepth(arg2);
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 Py_INCREF(Py_None); resultobj = Py_None;
3466 return resultobj;
3467 fail:
3468 return NULL;
3469 }
3470
3471
3472 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject *resultobj;
3474 wxIcon *arg1 = (wxIcon *) 0 ;
3475 wxSize *arg2 = 0 ;
3476 wxSize temp2 ;
3477 PyObject * obj0 = 0 ;
3478 PyObject * obj1 = 0 ;
3479 char *kwnames[] = {
3480 (char *) "self",(char *) "size", NULL
3481 };
3482
3483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
3484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3485 {
3486 arg2 = &temp2;
3487 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3488 }
3489 {
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 (arg1)->SetSize((wxSize const &)*arg2);
3492
3493 wxPyEndAllowThreads(__tstate);
3494 if (PyErr_Occurred()) SWIG_fail;
3495 }
3496 Py_INCREF(Py_None); resultobj = Py_None;
3497 return resultobj;
3498 fail:
3499 return NULL;
3500 }
3501
3502
3503 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject *resultobj;
3505 wxIcon *arg1 = (wxIcon *) 0 ;
3506 wxBitmap *arg2 = 0 ;
3507 PyObject * obj0 = 0 ;
3508 PyObject * obj1 = 0 ;
3509 char *kwnames[] = {
3510 (char *) "self",(char *) "bmp", NULL
3511 };
3512
3513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3515 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3516 if (arg2 == NULL) {
3517 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3518 }
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3522
3523 wxPyEndAllowThreads(__tstate);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 Py_INCREF(Py_None); resultobj = Py_None;
3527 return resultobj;
3528 fail:
3529 return NULL;
3530 }
3531
3532
3533 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3534 PyObject *obj;
3535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3536 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3537 Py_INCREF(obj);
3538 return Py_BuildValue((char *)"");
3539 }
3540 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3541 PyObject *resultobj;
3542 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3543 int arg2 = (int) 0 ;
3544 wxIconLocation *result;
3545 PyObject * obj0 = 0 ;
3546 char *kwnames[] = {
3547 (char *) "filename",(char *) "num", NULL
3548 };
3549
3550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3551 if (obj0) {
3552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3553 }
3554 {
3555 PyThreadState* __tstate = wxPyBeginAllowThreads();
3556 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3557
3558 wxPyEndAllowThreads(__tstate);
3559 if (PyErr_Occurred()) SWIG_fail;
3560 }
3561 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3562 return resultobj;
3563 fail:
3564 return NULL;
3565 }
3566
3567
3568 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3569 PyObject *resultobj;
3570 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3571 PyObject * obj0 = 0 ;
3572 char *kwnames[] = {
3573 (char *) "self", NULL
3574 };
3575
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3578 {
3579 PyThreadState* __tstate = wxPyBeginAllowThreads();
3580 delete arg1;
3581
3582 wxPyEndAllowThreads(__tstate);
3583 if (PyErr_Occurred()) SWIG_fail;
3584 }
3585 Py_INCREF(Py_None); resultobj = Py_None;
3586 return resultobj;
3587 fail:
3588 return NULL;
3589 }
3590
3591
3592 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject *resultobj;
3594 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3595 bool result;
3596 PyObject * obj0 = 0 ;
3597 char *kwnames[] = {
3598 (char *) "self", NULL
3599 };
3600
3601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 resultobj = PyInt_FromLong((long)result);
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3620 wxString *arg2 = 0 ;
3621 bool temp2 = False ;
3622 PyObject * obj0 = 0 ;
3623 PyObject * obj1 = 0 ;
3624 char *kwnames[] = {
3625 (char *) "self",(char *) "filename", NULL
3626 };
3627
3628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3630 {
3631 arg2 = wxString_in_helper(obj1);
3632 if (arg2 == NULL) SWIG_fail;
3633 temp2 = True;
3634 }
3635 {
3636 PyThreadState* __tstate = wxPyBeginAllowThreads();
3637 (arg1)->SetFileName((wxString const &)*arg2);
3638
3639 wxPyEndAllowThreads(__tstate);
3640 if (PyErr_Occurred()) SWIG_fail;
3641 }
3642 Py_INCREF(Py_None); resultobj = Py_None;
3643 {
3644 if (temp2)
3645 delete arg2;
3646 }
3647 return resultobj;
3648 fail:
3649 {
3650 if (temp2)
3651 delete arg2;
3652 }
3653 return NULL;
3654 }
3655
3656
3657 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3658 PyObject *resultobj;
3659 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3660 wxString *result;
3661 PyObject * obj0 = 0 ;
3662 char *kwnames[] = {
3663 (char *) "self", NULL
3664 };
3665
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3668 {
3669 PyThreadState* __tstate = wxPyBeginAllowThreads();
3670 {
3671 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3672 result = (wxString *) &_result_ref;
3673 }
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 {
3679 #if wxUSE_UNICODE
3680 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3681 #else
3682 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3683 #endif
3684 }
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3694 int arg2 ;
3695 PyObject * obj0 = 0 ;
3696 char *kwnames[] = {
3697 (char *) "self",(char *) "num", NULL
3698 };
3699
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 wxIconLocation_SetIndex(arg1,arg2);
3705
3706 wxPyEndAllowThreads(__tstate);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
3709 Py_INCREF(Py_None); resultobj = Py_None;
3710 return resultobj;
3711 fail:
3712 return NULL;
3713 }
3714
3715
3716 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3717 PyObject *resultobj;
3718 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3719 int result;
3720 PyObject * obj0 = 0 ;
3721 char *kwnames[] = {
3722 (char *) "self", NULL
3723 };
3724
3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (int)wxIconLocation_GetIndex(arg1);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 resultobj = PyInt_FromLong((long)result);
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3742 PyObject *obj;
3743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3744 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3745 Py_INCREF(obj);
3746 return Py_BuildValue((char *)"");
3747 }
3748 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3749 PyObject *resultobj;
3750 wxIconBundle *result;
3751 char *kwnames[] = {
3752 NULL
3753 };
3754
3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = (wxIconBundle *)new wxIconBundle();
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3764 return resultobj;
3765 fail:
3766 return NULL;
3767 }
3768
3769
3770 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj;
3772 wxString *arg1 = 0 ;
3773 long arg2 ;
3774 wxIconBundle *result;
3775 bool temp1 = False ;
3776 PyObject * obj0 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "file",(char *) "type", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3782 {
3783 arg1 = wxString_in_helper(obj0);
3784 if (arg1 == NULL) SWIG_fail;
3785 temp1 = True;
3786 }
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3795 {
3796 if (temp1)
3797 delete arg1;
3798 }
3799 return resultobj;
3800 fail:
3801 {
3802 if (temp1)
3803 delete arg1;
3804 }
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxIcon *arg1 = 0 ;
3812 wxIconBundle *result;
3813 PyObject * obj0 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "icon", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3820 if (arg1 == NULL) {
3821 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3822 }
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3840 PyObject * obj0 = 0 ;
3841 char *kwnames[] = {
3842 (char *) "self", NULL
3843 };
3844
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 delete arg1;
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 Py_INCREF(Py_None); resultobj = Py_None;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3864 wxIcon *arg2 = 0 ;
3865 PyObject * obj0 = 0 ;
3866 PyObject * obj1 = 0 ;
3867 char *kwnames[] = {
3868 (char *) "self",(char *) "icon", NULL
3869 };
3870
3871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3873 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3874 if (arg2 == NULL) {
3875 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3876 }
3877 {
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 (arg1)->AddIcon((wxIcon const &)*arg2);
3880
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 Py_INCREF(Py_None); resultobj = Py_None;
3885 return resultobj;
3886 fail:
3887 return NULL;
3888 }
3889
3890
3891 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3892 PyObject *resultobj;
3893 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3894 wxString *arg2 = 0 ;
3895 long arg3 ;
3896 bool temp2 = False ;
3897 PyObject * obj0 = 0 ;
3898 PyObject * obj1 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "self",(char *) "file",(char *) "type", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3905 {
3906 arg2 = wxString_in_helper(obj1);
3907 if (arg2 == NULL) SWIG_fail;
3908 temp2 = True;
3909 }
3910 {
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 Py_INCREF(Py_None); resultobj = Py_None;
3918 {
3919 if (temp2)
3920 delete arg2;
3921 }
3922 return resultobj;
3923 fail:
3924 {
3925 if (temp2)
3926 delete arg2;
3927 }
3928 return NULL;
3929 }
3930
3931
3932 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3933 PyObject *resultobj;
3934 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3935 wxSize *arg2 = 0 ;
3936 wxIcon *result;
3937 wxSize temp2 ;
3938 PyObject * obj0 = 0 ;
3939 PyObject * obj1 = 0 ;
3940 char *kwnames[] = {
3941 (char *) "self",(char *) "size", NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3946 {
3947 arg2 = &temp2;
3948 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3949 }
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 {
3953 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3954 result = (wxIcon *) &_result_ref;
3955 }
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3968 PyObject *obj;
3969 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3970 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3971 Py_INCREF(obj);
3972 return Py_BuildValue((char *)"");
3973 }
3974 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj;
3976 wxString *arg1 = (wxString *) 0 ;
3977 long arg2 ;
3978 int arg3 = (int) 0 ;
3979 int arg4 = (int) 0 ;
3980 wxCursor *result;
3981 PyObject * obj0 = 0 ;
3982 char *kwnames[] = {
3983 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3984 };
3985
3986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
3987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3991
3992 wxPyEndAllowThreads(__tstate);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3996 return resultobj;
3997 fail:
3998 return NULL;
3999 }
4000
4001
4002 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4003 PyObject *resultobj;
4004 wxCursor *arg1 = (wxCursor *) 0 ;
4005 PyObject * obj0 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "self", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 delete arg1;
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 Py_INCREF(Py_None); resultobj = Py_None;
4020 return resultobj;
4021 fail:
4022 return NULL;
4023 }
4024
4025
4026 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4027 PyObject *resultobj;
4028 int arg1 ;
4029 wxCursor *result;
4030 char *kwnames[] = {
4031 (char *) "id", NULL
4032 };
4033
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (wxCursor *)new wxCursor(arg1);
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4043 return resultobj;
4044 fail:
4045 return NULL;
4046 }
4047
4048
4049 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxImage *arg1 = 0 ;
4052 wxCursor *result;
4053 PyObject * obj0 = 0 ;
4054 char *kwnames[] = {
4055 (char *) "image", NULL
4056 };
4057
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4060 if (arg1 == NULL) {
4061 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4062 }
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4071 return resultobj;
4072 fail:
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 PyObject *arg1 = (PyObject *) 0 ;
4080 int arg2 ;
4081 int arg3 ;
4082 int arg4 = (int) -1 ;
4083 int arg5 = (int) -1 ;
4084 PyObject *arg6 = (PyObject *) 0 ;
4085 wxCursor *result;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj5 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
4093 arg1 = obj0;
4094 if (obj5) {
4095 arg6 = obj5;
4096 }
4097 {
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
4099 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4100
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4104 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4105 return resultobj;
4106 fail:
4107 return NULL;
4108 }
4109
4110
4111 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4112 PyObject *resultobj;
4113 wxCursor *arg1 = (wxCursor *) 0 ;
4114 long result;
4115 PyObject * obj0 = 0 ;
4116 char *kwnames[] = {
4117 (char *) "self", NULL
4118 };
4119
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
4124 result = (long)(arg1)->GetHandle();
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_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxCursor *arg1 = (wxCursor *) 0 ;
4139 long arg2 ;
4140 PyObject * obj0 = 0 ;
4141 char *kwnames[] = {
4142 (char *) "self",(char *) "handle", NULL
4143 };
4144
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail;
4146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 (arg1)->SetHandle(arg2);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 Py_INCREF(Py_None); resultobj = Py_None;
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj;
4163 wxCursor *arg1 = (wxCursor *) 0 ;
4164 bool result;
4165 PyObject * obj0 = 0 ;
4166 char *kwnames[] = {
4167 (char *) "self", NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = (bool)(arg1)->Ok();
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = PyInt_FromLong((long)result);
4180 return resultobj;
4181 fail:
4182 return NULL;
4183 }
4184
4185
4186 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj;
4188 wxCursor *arg1 = (wxCursor *) 0 ;
4189 int result;
4190 PyObject * obj0 = 0 ;
4191 char *kwnames[] = {
4192 (char *) "self", NULL
4193 };
4194
4195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (int)(arg1)->GetWidth();
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 resultobj = PyInt_FromLong((long)result);
4205 return resultobj;
4206 fail:
4207 return NULL;
4208 }
4209
4210
4211 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj;
4213 wxCursor *arg1 = (wxCursor *) 0 ;
4214 int result;
4215 PyObject * obj0 = 0 ;
4216 char *kwnames[] = {
4217 (char *) "self", NULL
4218 };
4219
4220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (int)(arg1)->GetHeight();
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = PyInt_FromLong((long)result);
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj;
4238 wxCursor *arg1 = (wxCursor *) 0 ;
4239 int result;
4240 PyObject * obj0 = 0 ;
4241 char *kwnames[] = {
4242 (char *) "self", NULL
4243 };
4244
4245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 result = (int)(arg1)->GetDepth();
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 resultobj = PyInt_FromLong((long)result);
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxCursor *arg1 = (wxCursor *) 0 ;
4264 int arg2 ;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self",(char *) "w", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail;
4271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4272 {
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 (arg1)->SetWidth(arg2);
4275
4276 wxPyEndAllowThreads(__tstate);
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 Py_INCREF(Py_None); resultobj = Py_None;
4280 return resultobj;
4281 fail:
4282 return NULL;
4283 }
4284
4285
4286 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj;
4288 wxCursor *arg1 = (wxCursor *) 0 ;
4289 int arg2 ;
4290 PyObject * obj0 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "self",(char *) "h", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail;
4296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 (arg1)->SetHeight(arg2);
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 Py_INCREF(Py_None); resultobj = Py_None;
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxCursor *arg1 = (wxCursor *) 0 ;
4314 int arg2 ;
4315 PyObject * obj0 = 0 ;
4316 char *kwnames[] = {
4317 (char *) "self",(char *) "d", NULL
4318 };
4319
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail;
4321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 (arg1)->SetDepth(arg2);
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 Py_INCREF(Py_None); resultobj = Py_None;
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4337 PyObject *resultobj;
4338 wxCursor *arg1 = (wxCursor *) 0 ;
4339 wxSize *arg2 = 0 ;
4340 wxSize temp2 ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 char *kwnames[] = {
4344 (char *) "self",(char *) "size", NULL
4345 };
4346
4347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4349 {
4350 arg2 = &temp2;
4351 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4352 }
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 (arg1)->SetSize((wxSize const &)*arg2);
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 Py_INCREF(Py_None); resultobj = Py_None;
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4368 PyObject *obj;
4369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4370 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4371 Py_INCREF(obj);
4372 return Py_BuildValue((char *)"");
4373 }
4374 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj;
4376 int arg1 = (int) 0 ;
4377 int arg2 = (int) 0 ;
4378 int arg3 = (int) 0 ;
4379 int arg4 = (int) 0 ;
4380 wxRegion *result;
4381 char *kwnames[] = {
4382 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4383 };
4384
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4389
4390 wxPyEndAllowThreads(__tstate);
4391 if (PyErr_Occurred()) SWIG_fail;
4392 }
4393 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4394 return resultobj;
4395 fail:
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxBitmap *arg1 = 0 ;
4403 wxColour const &arg2_defvalue = wxNullColour ;
4404 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4405 int arg3 = (int) 0 ;
4406 wxRegion *result;
4407 wxColour temp2 ;
4408 PyObject * obj0 = 0 ;
4409 PyObject * obj1 = 0 ;
4410 char *kwnames[] = {
4411 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4412 };
4413
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
4415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4416 if (arg1 == NULL) {
4417 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4418 }
4419 if (obj1) {
4420 {
4421 arg2 = &temp2;
4422 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4423 }
4424 }
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4428
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4433 return resultobj;
4434 fail:
4435 return NULL;
4436 }
4437
4438
4439 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj;
4441 int arg1 ;
4442 wxPoint *arg2 = (wxPoint *) 0 ;
4443 int arg3 = (int) wxWINDING_RULE ;
4444 wxRegion *result;
4445 PyObject * obj0 = 0 ;
4446 char *kwnames[] = {
4447 (char *) "points",(char *) "fillStyle", NULL
4448 };
4449
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
4451 {
4452 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4453 if (arg2 == NULL) SWIG_fail;
4454 }
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4463 {
4464 if (arg2) delete [] arg2;
4465 }
4466 return resultobj;
4467 fail:
4468 {
4469 if (arg2) delete [] arg2;
4470 }
4471 return NULL;
4472 }
4473
4474
4475 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4476 PyObject *resultobj;
4477 wxRegion *arg1 = (wxRegion *) 0 ;
4478 PyObject * obj0 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "self", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 delete arg1;
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 Py_INCREF(Py_None); resultobj = Py_None;
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 wxRegion *arg1 = (wxRegion *) 0 ;
4502 PyObject * obj0 = 0 ;
4503 char *kwnames[] = {
4504 (char *) "self", NULL
4505 };
4506
4507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4509 {
4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
4511 (arg1)->Clear();
4512
4513 wxPyEndAllowThreads(__tstate);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 Py_INCREF(Py_None); resultobj = Py_None;
4517 return resultobj;
4518 fail:
4519 return NULL;
4520 }
4521
4522
4523 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj;
4525 wxRegion *arg1 = (wxRegion *) 0 ;
4526 int arg2 ;
4527 int arg3 ;
4528 bool result;
4529 PyObject * obj0 = 0 ;
4530 char *kwnames[] = {
4531 (char *) "self",(char *) "x",(char *) "y", NULL
4532 };
4533
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
4535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 result = (bool)(arg1)->Offset(arg2,arg3);
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = PyInt_FromLong((long)result);
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxRegion *arg1 = (wxRegion *) 0 ;
4553 int arg2 ;
4554 int arg3 ;
4555 int result;
4556 PyObject * obj0 = 0 ;
4557 char *kwnames[] = {
4558 (char *) "self",(char *) "x",(char *) "y", NULL
4559 };
4560
4561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4563 {
4564 PyThreadState* __tstate = wxPyBeginAllowThreads();
4565 result = (int)(arg1)->Contains(arg2,arg3);
4566
4567 wxPyEndAllowThreads(__tstate);
4568 if (PyErr_Occurred()) SWIG_fail;
4569 }
4570 resultobj = PyInt_FromLong((long)result);
4571 return resultobj;
4572 fail:
4573 return NULL;
4574 }
4575
4576
4577 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4578 PyObject *resultobj;
4579 wxRegion *arg1 = (wxRegion *) 0 ;
4580 wxPoint *arg2 = 0 ;
4581 int result;
4582 wxPoint temp2 ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 char *kwnames[] = {
4586 (char *) "self",(char *) "pt", NULL
4587 };
4588
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4591 {
4592 arg2 = &temp2;
4593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4594 }
4595 {
4596 PyThreadState* __tstate = wxPyBeginAllowThreads();
4597 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4598
4599 wxPyEndAllowThreads(__tstate);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 }
4602 resultobj = PyInt_FromLong((long)result);
4603 return resultobj;
4604 fail:
4605 return NULL;
4606 }
4607
4608
4609 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4610 PyObject *resultobj;
4611 wxRegion *arg1 = (wxRegion *) 0 ;
4612 wxRect *arg2 = 0 ;
4613 int result;
4614 wxRect temp2 ;
4615 PyObject * obj0 = 0 ;
4616 PyObject * obj1 = 0 ;
4617 char *kwnames[] = {
4618 (char *) "self",(char *) "rect", NULL
4619 };
4620
4621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4623 {
4624 arg2 = &temp2;
4625 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4626 }
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 resultobj = PyInt_FromLong((long)result);
4635 return resultobj;
4636 fail:
4637 return NULL;
4638 }
4639
4640
4641 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj;
4643 wxRegion *arg1 = (wxRegion *) 0 ;
4644 int arg2 ;
4645 int arg3 ;
4646 int arg4 ;
4647 int arg5 ;
4648 int result;
4649 PyObject * obj0 = 0 ;
4650 char *kwnames[] = {
4651 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4652 };
4653
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4656 {
4657 PyThreadState* __tstate = wxPyBeginAllowThreads();
4658 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4659
4660 wxPyEndAllowThreads(__tstate);
4661 if (PyErr_Occurred()) SWIG_fail;
4662 }
4663 resultobj = PyInt_FromLong((long)result);
4664 return resultobj;
4665 fail:
4666 return NULL;
4667 }
4668
4669
4670 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4671 PyObject *resultobj;
4672 wxRegion *arg1 = (wxRegion *) 0 ;
4673 wxRect result;
4674 PyObject * obj0 = 0 ;
4675 char *kwnames[] = {
4676 (char *) "self", NULL
4677 };
4678
4679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4681 {
4682 PyThreadState* __tstate = wxPyBeginAllowThreads();
4683 result = (arg1)->GetBox();
4684
4685 wxPyEndAllowThreads(__tstate);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 wxRect * resultptr;
4690 resultptr = new wxRect((wxRect &) result);
4691 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4692 }
4693 return resultobj;
4694 fail:
4695 return NULL;
4696 }
4697
4698
4699 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj;
4701 wxRegion *arg1 = (wxRegion *) 0 ;
4702 int arg2 ;
4703 int arg3 ;
4704 int arg4 ;
4705 int arg5 ;
4706 bool result;
4707 PyObject * obj0 = 0 ;
4708 char *kwnames[] = {
4709 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4710 };
4711
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4717
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = PyInt_FromLong((long)result);
4722 return resultobj;
4723 fail:
4724 return NULL;
4725 }
4726
4727
4728 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4729 PyObject *resultobj;
4730 wxRegion *arg1 = (wxRegion *) 0 ;
4731 wxRect *arg2 = 0 ;
4732 bool result;
4733 wxRect temp2 ;
4734 PyObject * obj0 = 0 ;
4735 PyObject * obj1 = 0 ;
4736 char *kwnames[] = {
4737 (char *) "self",(char *) "rect", NULL
4738 };
4739
4740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4742 {
4743 arg2 = &temp2;
4744 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4745 }
4746 {
4747 PyThreadState* __tstate = wxPyBeginAllowThreads();
4748 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4749
4750 wxPyEndAllowThreads(__tstate);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 resultobj = PyInt_FromLong((long)result);
4754 return resultobj;
4755 fail:
4756 return NULL;
4757 }
4758
4759
4760 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4761 PyObject *resultobj;
4762 wxRegion *arg1 = (wxRegion *) 0 ;
4763 wxRegion *arg2 = 0 ;
4764 bool result;
4765 PyObject * obj0 = 0 ;
4766 PyObject * obj1 = 0 ;
4767 char *kwnames[] = {
4768 (char *) "self",(char *) "region", NULL
4769 };
4770
4771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4773 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4774 if (arg2 == NULL) {
4775 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4776 }
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4780
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 resultobj = PyInt_FromLong((long)result);
4785 return resultobj;
4786 fail:
4787 return NULL;
4788 }
4789
4790
4791 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4792 PyObject *resultobj;
4793 wxRegion *arg1 = (wxRegion *) 0 ;
4794 bool result;
4795 PyObject * obj0 = 0 ;
4796 char *kwnames[] = {
4797 (char *) "self", NULL
4798 };
4799
4800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4802 {
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (bool)(arg1)->IsEmpty();
4805
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 resultobj = PyInt_FromLong((long)result);
4810 return resultobj;
4811 fail:
4812 return NULL;
4813 }
4814
4815
4816 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4817 PyObject *resultobj;
4818 wxRegion *arg1 = (wxRegion *) 0 ;
4819 int arg2 ;
4820 int arg3 ;
4821 int arg4 ;
4822 int arg5 ;
4823 bool result;
4824 PyObject * obj0 = 0 ;
4825 char *kwnames[] = {
4826 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4827 };
4828
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4831 {
4832 PyThreadState* __tstate = wxPyBeginAllowThreads();
4833 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4834
4835 wxPyEndAllowThreads(__tstate);
4836 if (PyErr_Occurred()) SWIG_fail;
4837 }
4838 resultobj = PyInt_FromLong((long)result);
4839 return resultobj;
4840 fail:
4841 return NULL;
4842 }
4843
4844
4845 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject *resultobj;
4847 wxRegion *arg1 = (wxRegion *) 0 ;
4848 wxRect *arg2 = 0 ;
4849 bool result;
4850 wxRect temp2 ;
4851 PyObject * obj0 = 0 ;
4852 PyObject * obj1 = 0 ;
4853 char *kwnames[] = {
4854 (char *) "self",(char *) "rect", NULL
4855 };
4856
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4859 {
4860 arg2 = &temp2;
4861 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4862 }
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = PyInt_FromLong((long)result);
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj;
4879 wxRegion *arg1 = (wxRegion *) 0 ;
4880 wxRegion *arg2 = 0 ;
4881 bool result;
4882 PyObject * obj0 = 0 ;
4883 PyObject * obj1 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self",(char *) "region", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4890 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4891 if (arg2 == NULL) {
4892 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4893 }
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4897
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 resultobj = PyInt_FromLong((long)result);
4902 return resultobj;
4903 fail:
4904 return NULL;
4905 }
4906
4907
4908 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4909 PyObject *resultobj;
4910 wxRegion *arg1 = (wxRegion *) 0 ;
4911 int arg2 ;
4912 int arg3 ;
4913 int arg4 ;
4914 int arg5 ;
4915 bool result;
4916 PyObject * obj0 = 0 ;
4917 char *kwnames[] = {
4918 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4919 };
4920
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4923 {
4924 PyThreadState* __tstate = wxPyBeginAllowThreads();
4925 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4926
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = PyInt_FromLong((long)result);
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject *resultobj;
4939 wxRegion *arg1 = (wxRegion *) 0 ;
4940 wxRect *arg2 = 0 ;
4941 bool result;
4942 wxRect temp2 ;
4943 PyObject * obj0 = 0 ;
4944 PyObject * obj1 = 0 ;
4945 char *kwnames[] = {
4946 (char *) "self",(char *) "rect", NULL
4947 };
4948
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4951 {
4952 arg2 = &temp2;
4953 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4954 }
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 resultobj = PyInt_FromLong((long)result);
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4970 PyObject *resultobj;
4971 wxRegion *arg1 = (wxRegion *) 0 ;
4972 wxRegion *arg2 = 0 ;
4973 bool result;
4974 PyObject * obj0 = 0 ;
4975 PyObject * obj1 = 0 ;
4976 char *kwnames[] = {
4977 (char *) "self",(char *) "region", NULL
4978 };
4979
4980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4982 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4983 if (arg2 == NULL) {
4984 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4985 }
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4989
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 resultobj = PyInt_FromLong((long)result);
4994 return resultobj;
4995 fail:
4996 return NULL;
4997 }
4998
4999
5000 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5001 PyObject *resultobj;
5002 wxRegion *arg1 = (wxRegion *) 0 ;
5003 int arg2 ;
5004 int arg3 ;
5005 int arg4 ;
5006 int arg5 ;
5007 bool result;
5008 PyObject * obj0 = 0 ;
5009 char *kwnames[] = {
5010 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5011 };
5012
5013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
5014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5015 {
5016 PyThreadState* __tstate = wxPyBeginAllowThreads();
5017 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5018
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 resultobj = PyInt_FromLong((long)result);
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5030 PyObject *resultobj;
5031 wxRegion *arg1 = (wxRegion *) 0 ;
5032 wxRect *arg2 = 0 ;
5033 bool result;
5034 wxRect temp2 ;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5037 char *kwnames[] = {
5038 (char *) "self",(char *) "rect", NULL
5039 };
5040
5041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5043 {
5044 arg2 = &temp2;
5045 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5046 }
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = PyInt_FromLong((long)result);
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxRegion *arg1 = (wxRegion *) 0 ;
5064 wxRegion *arg2 = 0 ;
5065 bool result;
5066 PyObject * obj0 = 0 ;
5067 PyObject * obj1 = 0 ;
5068 char *kwnames[] = {
5069 (char *) "self",(char *) "region", NULL
5070 };
5071
5072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5074 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5075 if (arg2 == NULL) {
5076 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5077 }
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5081
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = PyInt_FromLong((long)result);
5086 return resultobj;
5087 fail:
5088 return NULL;
5089 }
5090
5091
5092 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj;
5094 wxRegion *arg1 = (wxRegion *) 0 ;
5095 SwigValueWrapper< wxBitmap > result;
5096 PyObject * obj0 = 0 ;
5097 char *kwnames[] = {
5098 (char *) "self", NULL
5099 };
5100
5101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 result = (arg1)->ConvertToBitmap();
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 {
5111 wxBitmap * resultptr;
5112 resultptr = new wxBitmap((wxBitmap &) result);
5113 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5114 }
5115 return resultobj;
5116 fail:
5117 return NULL;
5118 }
5119
5120
5121 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5122 PyObject *resultobj;
5123 wxRegion *arg1 = (wxRegion *) 0 ;
5124 wxBitmap *arg2 = 0 ;
5125 wxColour const &arg3_defvalue = wxNullColour ;
5126 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5127 int arg4 = (int) 0 ;
5128 bool result;
5129 wxColour temp3 ;
5130 PyObject * obj0 = 0 ;
5131 PyObject * obj1 = 0 ;
5132 PyObject * obj2 = 0 ;
5133 char *kwnames[] = {
5134 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5135 };
5136
5137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
5138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5139 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5140 if (arg2 == NULL) {
5141 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5142 }
5143 if (obj2) {
5144 {
5145 arg3 = &temp3;
5146 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5147 }
5148 }
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 }
5156 resultobj = PyInt_FromLong((long)result);
5157 return resultobj;
5158 fail:
5159 return NULL;
5160 }
5161
5162
5163 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5164 PyObject *obj;
5165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5166 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5167 Py_INCREF(obj);
5168 return Py_BuildValue((char *)"");
5169 }
5170 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj;
5172 wxRegion *arg1 = 0 ;
5173 wxRegionIterator *result;
5174 PyObject * obj0 = 0 ;
5175 char *kwnames[] = {
5176 (char *) "region", NULL
5177 };
5178
5179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5181 if (arg1 == NULL) {
5182 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5183 }
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5187
5188 wxPyEndAllowThreads(__tstate);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5192 return resultobj;
5193 fail:
5194 return NULL;
5195 }
5196
5197
5198 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject *resultobj;
5200 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5201 PyObject * obj0 = 0 ;
5202 char *kwnames[] = {
5203 (char *) "self", NULL
5204 };
5205
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 delete arg1;
5211
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 Py_INCREF(Py_None); resultobj = Py_None;
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5223 PyObject *resultobj;
5224 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5225 int result;
5226 PyObject * obj0 = 0 ;
5227 char *kwnames[] = {
5228 (char *) "self", NULL
5229 };
5230
5231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (int)(arg1)->GetX();
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = PyInt_FromLong((long)result);
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj;
5249 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5250 int result;
5251 PyObject * obj0 = 0 ;
5252 char *kwnames[] = {
5253 (char *) "self", NULL
5254 };
5255
5256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5258 {
5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
5260 result = (int)(arg1)->GetY();
5261
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 }
5265 resultobj = PyInt_FromLong((long)result);
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5273 PyObject *resultobj;
5274 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5275 int result;
5276 PyObject * obj0 = 0 ;
5277 char *kwnames[] = {
5278 (char *) "self", NULL
5279 };
5280
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5283 {
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 result = (int)(arg1)->GetW();
5286
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
5290 resultobj = PyInt_FromLong((long)result);
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj;
5299 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5300 int result;
5301 PyObject * obj0 = 0 ;
5302 char *kwnames[] = {
5303 (char *) "self", NULL
5304 };
5305
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 result = (int)(arg1)->GetWidth();
5311
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 resultobj = PyInt_FromLong((long)result);
5316 return resultobj;
5317 fail:
5318 return NULL;
5319 }
5320
5321
5322 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5325 int result;
5326 PyObject * obj0 = 0 ;
5327 char *kwnames[] = {
5328 (char *) "self", NULL
5329 };
5330
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (int)(arg1)->GetH();
5336
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 resultobj = PyInt_FromLong((long)result);
5341 return resultobj;
5342 fail:
5343 return NULL;
5344 }
5345
5346
5347 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5350 int result;
5351 PyObject * obj0 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "self", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 result = (int)(arg1)->GetHeight();
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 resultobj = PyInt_FromLong((long)result);
5366 return resultobj;
5367 fail:
5368 return NULL;
5369 }
5370
5371
5372 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5373 PyObject *resultobj;
5374 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5375 wxRect result;
5376 PyObject * obj0 = 0 ;
5377 char *kwnames[] = {
5378 (char *) "self", NULL
5379 };
5380
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5383 {
5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
5385 result = (arg1)->GetRect();
5386
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 {
5391 wxRect * resultptr;
5392 resultptr = new wxRect((wxRect &) result);
5393 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5394 }
5395 return resultobj;
5396 fail:
5397 return NULL;
5398 }
5399
5400
5401 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5404 bool result;
5405 PyObject * obj0 = 0 ;
5406 char *kwnames[] = {
5407 (char *) "self", NULL
5408 };
5409
5410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = (bool)(arg1)->HaveRects();
5415
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 resultobj = PyInt_FromLong((long)result);
5420 return resultobj;
5421 fail:
5422 return NULL;
5423 }
5424
5425
5426 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj;
5428 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5429 PyObject * obj0 = 0 ;
5430 char *kwnames[] = {
5431 (char *) "self", NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 (arg1)->Reset();
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 Py_INCREF(Py_None); resultobj = Py_None;
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5453 PyObject * obj0 = 0 ;
5454 char *kwnames[] = {
5455 (char *) "self", NULL
5456 };
5457
5458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 wxRegionIterator_Next(arg1);
5463
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 Py_INCREF(Py_None); resultobj = Py_None;
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5477 bool result;
5478 PyObject * obj0 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "self", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = (bool)wxRegionIterator___nonzero__(arg1);
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 resultobj = PyInt_FromLong((long)result);
5493 return resultobj;
5494 fail:
5495 return NULL;
5496 }
5497
5498
5499 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5500 PyObject *obj;
5501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5502 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5503 Py_INCREF(obj);
5504 return Py_BuildValue((char *)"");
5505 }
5506 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj;
5508 wxNativeFontInfo *result;
5509 char *kwnames[] = {
5510 NULL
5511 };
5512
5513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5514 {
5515 PyThreadState* __tstate = wxPyBeginAllowThreads();
5516 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5517
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5522 return resultobj;
5523 fail:
5524 return NULL;
5525 }
5526
5527
5528 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5531 PyObject * obj0 = 0 ;
5532 char *kwnames[] = {
5533 (char *) "self", NULL
5534 };
5535
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5538 {
5539 PyThreadState* __tstate = wxPyBeginAllowThreads();
5540 delete arg1;
5541
5542 wxPyEndAllowThreads(__tstate);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 }
5545 Py_INCREF(Py_None); resultobj = Py_None;
5546 return resultobj;
5547 fail:
5548 return NULL;
5549 }
5550
5551
5552 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5553 PyObject *resultobj;
5554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5555 PyObject * obj0 = 0 ;
5556 char *kwnames[] = {
5557 (char *) "self", NULL
5558 };
5559
5560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5562 {
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 (arg1)->Init();
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 Py_INCREF(Py_None); resultobj = Py_None;
5570 return resultobj;
5571 fail:
5572 return NULL;
5573 }
5574
5575
5576 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5577 PyObject *resultobj;
5578 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5579 wxFont *arg2 = 0 ;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 char *kwnames[] = {
5583 (char *) "self",(char *) "font", NULL
5584 };
5585
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5588 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5589 if (arg2 == NULL) {
5590 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5591 }
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 (arg1)->InitFromFont((wxFont const &)*arg2);
5595
5596 wxPyEndAllowThreads(__tstate);
5597 if (PyErr_Occurred()) SWIG_fail;
5598 }
5599 Py_INCREF(Py_None); resultobj = Py_None;
5600 return resultobj;
5601 fail:
5602 return NULL;
5603 }
5604
5605
5606 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5607 PyObject *resultobj;
5608 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5609 int result;
5610 PyObject * obj0 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5617 {
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5620
5621 wxPyEndAllowThreads(__tstate);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 resultobj = PyInt_FromLong((long)result);
5625 return resultobj;
5626 fail:
5627 return NULL;
5628 }
5629
5630
5631 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5632 PyObject *resultobj;
5633 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5634 int result;
5635 PyObject * obj0 = 0 ;
5636 char *kwnames[] = {
5637 (char *) "self", NULL
5638 };
5639
5640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = PyInt_FromLong((long)result);
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5659 int result;
5660 PyObject * obj0 = 0 ;
5661 char *kwnames[] = {
5662 (char *) "self", NULL
5663 };
5664
5665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 resultobj = PyInt_FromLong((long)result);
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj;
5683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5684 bool result;
5685 PyObject * obj0 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = PyInt_FromLong((long)result);
5700 return resultobj;
5701 fail:
5702 return NULL;
5703 }
5704
5705
5706 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5709 wxString result;
5710 PyObject * obj0 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "self", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5720
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 {
5725 #if wxUSE_UNICODE
5726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5727 #else
5728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5729 #endif
5730 }
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj;
5739 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5740 int result;
5741 PyObject * obj0 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5748 {
5749 PyThreadState* __tstate = wxPyBeginAllowThreads();
5750 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5751
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 resultobj = PyInt_FromLong((long)result);
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5763 PyObject *resultobj;
5764 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5765 int result;
5766 PyObject * obj0 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 resultobj = PyInt_FromLong((long)result);
5781 return resultobj;
5782 fail:
5783 return NULL;
5784 }
5785
5786
5787 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj;
5789 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5790 int arg2 ;
5791 PyObject * obj0 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self",(char *) "pointsize", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 (arg1)->SetPointSize(arg2);
5801
5802 wxPyEndAllowThreads(__tstate);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 }
5805 Py_INCREF(Py_None); resultobj = Py_None;
5806 return resultobj;
5807 fail:
5808 return NULL;
5809 }
5810
5811
5812 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5813 PyObject *resultobj;
5814 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5815 int arg2 ;
5816 PyObject * obj0 = 0 ;
5817 char *kwnames[] = {
5818 (char *) "self",(char *) "style", NULL
5819 };
5820
5821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 (arg1)->SetStyle((wxFontStyle )arg2);
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 Py_INCREF(Py_None); resultobj = Py_None;
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj;
5839 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5840 int arg2 ;
5841 PyObject * obj0 = 0 ;
5842 char *kwnames[] = {
5843 (char *) "self",(char *) "weight", NULL
5844 };
5845
5846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->SetWeight((wxFontWeight )arg2);
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 Py_INCREF(Py_None); resultobj = Py_None;
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5865 bool arg2 ;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj1 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self",(char *) "underlined", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 arg2 = PyInt_AsLong(obj1) ? true : false;
5875 if (PyErr_Occurred()) SWIG_fail;
5876 {
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 (arg1)->SetUnderlined(arg2);
5879
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) SWIG_fail;
5882 }
5883 Py_INCREF(Py_None); resultobj = Py_None;
5884 return resultobj;
5885 fail:
5886 return NULL;
5887 }
5888
5889
5890 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj;
5892 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5893 wxString arg2 ;
5894 PyObject * obj0 = 0 ;
5895 PyObject * obj1 = 0 ;
5896 char *kwnames[] = {
5897 (char *) "self",(char *) "facename", NULL
5898 };
5899
5900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5902 {
5903 wxString* sptr = wxString_in_helper(obj1);
5904 if (sptr == NULL) SWIG_fail;
5905 arg2 = *sptr;
5906 delete sptr;
5907 }
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 (arg1)->SetFaceName(arg2);
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 Py_INCREF(Py_None); resultobj = Py_None;
5916 return resultobj;
5917 fail:
5918 return NULL;
5919 }
5920
5921
5922 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5923 PyObject *resultobj;
5924 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5925 int arg2 ;
5926 PyObject * obj0 = 0 ;
5927 char *kwnames[] = {
5928 (char *) "self",(char *) "family", NULL
5929 };
5930
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetFamily((wxFontFamily )arg2);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 Py_INCREF(Py_None); resultobj = Py_None;
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj;
5949 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5950 int arg2 ;
5951 PyObject * obj0 = 0 ;
5952 char *kwnames[] = {
5953 (char *) "self",(char *) "encoding", NULL
5954 };
5955
5956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 (arg1)->SetEncoding((wxFontEncoding )arg2);
5961
5962 wxPyEndAllowThreads(__tstate);
5963 if (PyErr_Occurred()) SWIG_fail;
5964 }
5965 Py_INCREF(Py_None); resultobj = Py_None;
5966 return resultobj;
5967 fail:
5968 return NULL;
5969 }
5970
5971
5972 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5973 PyObject *resultobj;
5974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5975 wxString *arg2 = 0 ;
5976 bool result;
5977 bool temp2 = False ;
5978 PyObject * obj0 = 0 ;
5979 PyObject * obj1 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self",(char *) "s", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5986 {
5987 arg2 = wxString_in_helper(obj1);
5988 if (arg2 == NULL) SWIG_fail;
5989 temp2 = True;
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 resultobj = PyInt_FromLong((long)result);
5999 {
6000 if (temp2)
6001 delete arg2;
6002 }
6003 return resultobj;
6004 fail:
6005 {
6006 if (temp2)
6007 delete arg2;
6008 }
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6016 wxString result;
6017 PyObject * obj0 = 0 ;
6018 char *kwnames[] = {
6019 (char *) "self", NULL
6020 };
6021
6022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6024 {
6025 PyThreadState* __tstate = wxPyBeginAllowThreads();
6026 result = ((wxNativeFontInfo const *)arg1)->ToString();
6027
6028 wxPyEndAllowThreads(__tstate);
6029 if (PyErr_Occurred()) SWIG_fail;
6030 }
6031 {
6032 #if wxUSE_UNICODE
6033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6034 #else
6035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6036 #endif
6037 }
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj;
6046 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6047 wxString result;
6048 PyObject * obj0 = 0 ;
6049 char *kwnames[] = {
6050 (char *) "self", NULL
6051 };
6052
6053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6055 {
6056 PyThreadState* __tstate = wxPyBeginAllowThreads();
6057 result = wxNativeFontInfo___str__(arg1);
6058
6059 wxPyEndAllowThreads(__tstate);
6060 if (PyErr_Occurred()) SWIG_fail;
6061 }
6062 {
6063 #if wxUSE_UNICODE
6064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6065 #else
6066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6067 #endif
6068 }
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj;
6077 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6078 wxString *arg2 = 0 ;
6079 bool result;
6080 bool temp2 = False ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 char *kwnames[] = {
6084 (char *) "self",(char *) "s", NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6089 {
6090 arg2 = wxString_in_helper(obj1);
6091 if (arg2 == NULL) SWIG_fail;
6092 temp2 = True;
6093 }
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 resultobj = PyInt_FromLong((long)result);
6102 {
6103 if (temp2)
6104 delete arg2;
6105 }
6106 return resultobj;
6107 fail:
6108 {
6109 if (temp2)
6110 delete arg2;
6111 }
6112 return NULL;
6113 }
6114
6115
6116 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject *resultobj;
6118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6119 wxString result;
6120 PyObject * obj0 = 0 ;
6121 char *kwnames[] = {
6122 (char *) "self", NULL
6123 };
6124
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 {
6135 #if wxUSE_UNICODE
6136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6137 #else
6138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6139 #endif
6140 }
6141 return resultobj;
6142 fail:
6143 return NULL;
6144 }
6145
6146
6147 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6148 PyObject *obj;
6149 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6150 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6151 Py_INCREF(obj);
6152 return Py_BuildValue((char *)"");
6153 }
6154 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6155 PyObject *resultobj;
6156 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6157 wxString arg2 ;
6158 PyObject * obj0 = 0 ;
6159 PyObject * obj1 = 0 ;
6160 char *kwnames[] = {
6161 (char *) "self",(char *) "facename", NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6166 {
6167 wxString* sptr = wxString_in_helper(obj1);
6168 if (sptr == NULL) SWIG_fail;
6169 arg2 = *sptr;
6170 delete sptr;
6171 }
6172 if (arg1) (arg1)->facename = arg2;
6173
6174 Py_INCREF(Py_None); resultobj = Py_None;
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj;
6183 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6184 wxString result;
6185 PyObject * obj0 = 0 ;
6186 char *kwnames[] = {
6187 (char *) "self", NULL
6188 };
6189
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6192 result = ((arg1)->facename);
6193
6194 {
6195 #if wxUSE_UNICODE
6196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6197 #else
6198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6199 #endif
6200 }
6201 return resultobj;
6202 fail:
6203 return NULL;
6204 }
6205
6206
6207 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj;
6209 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6210 int arg2 ;
6211 PyObject * obj0 = 0 ;
6212 char *kwnames[] = {
6213 (char *) "self",(char *) "encoding", NULL
6214 };
6215
6216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
6217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6218 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6219
6220 Py_INCREF(Py_None); resultobj = Py_None;
6221 return resultobj;
6222 fail:
6223 return NULL;
6224 }
6225
6226
6227 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject *resultobj;
6229 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6230 int result;
6231 PyObject * obj0 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6238 result = (int) ((arg1)->encoding);
6239
6240 resultobj = PyInt_FromLong((long)result);
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxNativeEncodingInfo *result;
6250 char *kwnames[] = {
6251 NULL
6252 };
6253
6254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6255 {
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6258
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj;
6271 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 delete arg1;
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 Py_INCREF(Py_None); resultobj = Py_None;
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6296 wxString *arg2 = 0 ;
6297 bool result;
6298 bool temp2 = False ;
6299 PyObject * obj0 = 0 ;
6300 PyObject * obj1 = 0 ;
6301 char *kwnames[] = {
6302 (char *) "self",(char *) "s", NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6307 {
6308 arg2 = wxString_in_helper(obj1);
6309 if (arg2 == NULL) SWIG_fail;
6310 temp2 = True;
6311 }
6312 {
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6315
6316 wxPyEndAllowThreads(__tstate);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 resultobj = PyInt_FromLong((long)result);
6320 {
6321 if (temp2)
6322 delete arg2;
6323 }
6324 return resultobj;
6325 fail:
6326 {
6327 if (temp2)
6328 delete arg2;
6329 }
6330 return NULL;
6331 }
6332
6333
6334 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6335 PyObject *resultobj;
6336 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6337 wxString result;
6338 PyObject * obj0 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6348
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 {
6353 #if wxUSE_UNICODE
6354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6355 #else
6356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6357 #endif
6358 }
6359 return resultobj;
6360 fail:
6361 return NULL;
6362 }
6363
6364
6365 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6366 PyObject *obj;
6367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6368 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6369 Py_INCREF(obj);
6370 return Py_BuildValue((char *)"");
6371 }
6372 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj;
6374 int arg1 ;
6375 wxNativeEncodingInfo *result;
6376 char *kwnames[] = {
6377 (char *) "encoding", NULL
6378 };
6379
6380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
6381 {
6382 PyThreadState* __tstate = wxPyBeginAllowThreads();
6383 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6384
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj;
6397 wxNativeEncodingInfo *arg1 = 0 ;
6398 bool result;
6399 PyObject * obj0 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "info", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6406 if (arg1 == NULL) {
6407 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6408 }
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = PyInt_FromLong((long)result);
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj;
6425 wxFontMapper *result;
6426 char *kwnames[] = {
6427 NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6431 {
6432 PyThreadState* __tstate = wxPyBeginAllowThreads();
6433 result = (wxFontMapper *)new wxFontMapper();
6434
6435 wxPyEndAllowThreads(__tstate);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 }
6438 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6439 return resultobj;
6440 fail:
6441 return NULL;
6442 }
6443
6444
6445 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6446 PyObject *resultobj;
6447 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6448 PyObject * obj0 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "self", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 delete arg1;
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 Py_INCREF(Py_None); resultobj = Py_None;
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxFontMapper *result;
6472 char *kwnames[] = {
6473 NULL
6474 };
6475
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 result = (wxFontMapper *)wxFontMapper::Get();
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6494 wxFontMapper *result;
6495 PyObject * obj0 = 0 ;
6496 char *kwnames[] = {
6497 (char *) "mapper", NULL
6498 };
6499
6500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6505
6506 wxPyEndAllowThreads(__tstate);
6507 if (PyErr_Occurred()) SWIG_fail;
6508 }
6509 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6510 return resultobj;
6511 fail:
6512 return NULL;
6513 }
6514
6515
6516 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6517 PyObject *resultobj;
6518 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6519 wxString *arg2 = 0 ;
6520 bool arg3 = (bool) True ;
6521 int result;
6522 bool temp2 = False ;
6523 PyObject * obj0 = 0 ;
6524 PyObject * obj1 = 0 ;
6525 PyObject * obj2 = 0 ;
6526 char *kwnames[] = {
6527 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6528 };
6529
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6532 {
6533 arg2 = wxString_in_helper(obj1);
6534 if (arg2 == NULL) SWIG_fail;
6535 temp2 = True;
6536 }
6537 if (obj2) {
6538 arg3 = PyInt_AsLong(obj2) ? true : false;
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 resultobj = PyInt_FromLong((long)result);
6549 {
6550 if (temp2)
6551 delete arg2;
6552 }
6553 return resultobj;
6554 fail:
6555 {
6556 if (temp2)
6557 delete arg2;
6558 }
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 size_t result;
6566 char *kwnames[] = {
6567 NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = PyInt_FromLong((long)result);
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6586 PyObject *resultobj;
6587 size_t arg1 ;
6588 int result;
6589 PyObject * obj0 = 0 ;
6590 char *kwnames[] = {
6591 (char *) "n", NULL
6592 };
6593
6594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6595 arg1 = (size_t) PyInt_AsLong(obj0);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 {
6598 PyThreadState* __tstate = wxPyBeginAllowThreads();
6599 result = (int)wxFontMapper::GetEncoding(arg1);
6600
6601 wxPyEndAllowThreads(__tstate);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 resultobj = PyInt_FromLong((long)result);
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 int arg1 ;
6614 wxString result;
6615 char *kwnames[] = {
6616 (char *) "encoding", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 {
6628 #if wxUSE_UNICODE
6629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6630 #else
6631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6632 #endif
6633 }
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj;
6642 int arg1 ;
6643 wxString result;
6644 char *kwnames[] = {
6645 (char *) "encoding", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6649 {
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 {
6657 #if wxUSE_UNICODE
6658 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6659 #else
6660 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6661 #endif
6662 }
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6672 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6673 PyObject * obj0 = 0 ;
6674 PyObject * obj1 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self",(char *) "config", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6681 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 (arg1)->SetConfig(arg2);
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 Py_INCREF(Py_None); resultobj = Py_None;
6690 return resultobj;
6691 fail:
6692 return NULL;
6693 }
6694
6695
6696 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6697 PyObject *resultobj;
6698 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6699 wxString *arg2 = 0 ;
6700 bool temp2 = False ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self",(char *) "prefix", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6709 {
6710 arg2 = wxString_in_helper(obj1);
6711 if (arg2 == NULL) SWIG_fail;
6712 temp2 = True;
6713 }
6714 {
6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
6716 (arg1)->SetConfigPath((wxString const &)*arg2);
6717
6718 wxPyEndAllowThreads(__tstate);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 Py_INCREF(Py_None); resultobj = Py_None;
6722 {
6723 if (temp2)
6724 delete arg2;
6725 }
6726 return resultobj;
6727 fail:
6728 {
6729 if (temp2)
6730 delete arg2;
6731 }
6732 return NULL;
6733 }
6734
6735
6736 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6737 PyObject *resultobj;
6738 wxString result;
6739 char *kwnames[] = {
6740 NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6744 {
6745 PyThreadState* __tstate = wxPyBeginAllowThreads();
6746 result = wxFontMapper::GetDefaultConfigPath();
6747
6748 wxPyEndAllowThreads(__tstate);
6749 if (PyErr_Occurred()) SWIG_fail;
6750 }
6751 {
6752 #if wxUSE_UNICODE
6753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6754 #else
6755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6756 #endif
6757 }
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6767 int arg2 ;
6768 wxString const &arg3_defvalue = wxPyEmptyString ;
6769 wxString *arg3 = (wxString *) &arg3_defvalue ;
6770 bool arg4 = (bool) True ;
6771 PyObject *result;
6772 bool temp3 = False ;
6773 PyObject * obj0 = 0 ;
6774 PyObject * obj2 = 0 ;
6775 PyObject * obj3 = 0 ;
6776 char *kwnames[] = {
6777 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6778 };
6779
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6782 if (obj2) {
6783 {
6784 arg3 = wxString_in_helper(obj2);
6785 if (arg3 == NULL) SWIG_fail;
6786 temp3 = True;
6787 }
6788 }
6789 if (obj3) {
6790 arg4 = PyInt_AsLong(obj3) ? true : false;
6791 if (PyErr_Occurred()) SWIG_fail;
6792 }
6793 {
6794 PyThreadState* __tstate = wxPyBeginAllowThreads();
6795 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6796
6797 wxPyEndAllowThreads(__tstate);
6798 if (PyErr_Occurred()) SWIG_fail;
6799 }
6800 resultobj = result;
6801 {
6802 if (temp3)
6803 delete arg3;
6804 }
6805 return resultobj;
6806 fail:
6807 {
6808 if (temp3)
6809 delete arg3;
6810 }
6811 return NULL;
6812 }
6813
6814
6815 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6816 PyObject *resultobj;
6817 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6818 int arg2 ;
6819 wxString const &arg3_defvalue = wxPyEmptyString ;
6820 wxString *arg3 = (wxString *) &arg3_defvalue ;
6821 bool result;
6822 bool temp3 = False ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj2 = 0 ;
6825 char *kwnames[] = {
6826 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6827 };
6828
6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6831 if (obj2) {
6832 {
6833 arg3 = wxString_in_helper(obj2);
6834 if (arg3 == NULL) SWIG_fail;
6835 temp3 = True;
6836 }
6837 }
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = PyInt_FromLong((long)result);
6846 {
6847 if (temp3)
6848 delete arg3;
6849 }
6850 return resultobj;
6851 fail:
6852 {
6853 if (temp3)
6854 delete arg3;
6855 }
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6863 wxWindow *arg2 = (wxWindow *) 0 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 char *kwnames[] = {
6867 (char *) "self",(char *) "parent", NULL
6868 };
6869
6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6872 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6873 {
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 (arg1)->SetDialogParent(arg2);
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 Py_INCREF(Py_None); resultobj = Py_None;
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6888 PyObject *resultobj;
6889 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6890 wxString *arg2 = 0 ;
6891 bool temp2 = False ;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6894 char *kwnames[] = {
6895 (char *) "self",(char *) "title", NULL
6896 };
6897
6898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6900 {
6901 arg2 = wxString_in_helper(obj1);
6902 if (arg2 == NULL) SWIG_fail;
6903 temp2 = True;
6904 }
6905 {
6906 PyThreadState* __tstate = wxPyBeginAllowThreads();
6907 (arg1)->SetDialogTitle((wxString const &)*arg2);
6908
6909 wxPyEndAllowThreads(__tstate);
6910 if (PyErr_Occurred()) SWIG_fail;
6911 }
6912 Py_INCREF(Py_None); resultobj = Py_None;
6913 {
6914 if (temp2)
6915 delete arg2;
6916 }
6917 return resultobj;
6918 fail:
6919 {
6920 if (temp2)
6921 delete arg2;
6922 }
6923 return NULL;
6924 }
6925
6926
6927 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6928 PyObject *obj;
6929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6930 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6931 Py_INCREF(obj);
6932 return Py_BuildValue((char *)"");
6933 }
6934 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj;
6936 int arg1 ;
6937 int arg2 ;
6938 int arg3 ;
6939 int arg4 ;
6940 bool arg5 = (bool) False ;
6941 wxString const &arg6_defvalue = wxPyEmptyString ;
6942 wxString *arg6 = (wxString *) &arg6_defvalue ;
6943 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6944 wxFont *result;
6945 bool temp6 = False ;
6946 PyObject * obj4 = 0 ;
6947 PyObject * obj5 = 0 ;
6948 char *kwnames[] = {
6949 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6950 };
6951
6952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6953 if (obj4) {
6954 arg5 = PyInt_AsLong(obj4) ? true : false;
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 if (obj5) {
6958 {
6959 arg6 = wxString_in_helper(obj5);
6960 if (arg6 == NULL) SWIG_fail;
6961 temp6 = True;
6962 }
6963 }
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6972 {
6973 if (temp6)
6974 delete arg6;
6975 }
6976 return resultobj;
6977 fail:
6978 {
6979 if (temp6)
6980 delete arg6;
6981 }
6982 return NULL;
6983 }
6984
6985
6986 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj;
6988 wxFont *arg1 = (wxFont *) 0 ;
6989 PyObject * obj0 = 0 ;
6990 char *kwnames[] = {
6991 (char *) "self", NULL
6992 };
6993
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6996 {
6997 PyThreadState* __tstate = wxPyBeginAllowThreads();
6998 delete arg1;
6999
7000 wxPyEndAllowThreads(__tstate);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 Py_INCREF(Py_None); resultobj = Py_None;
7004 return resultobj;
7005 fail:
7006 return NULL;
7007 }
7008
7009
7010 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7011 PyObject *resultobj;
7012 wxNativeFontInfo *arg1 = 0 ;
7013 wxFont *result;
7014 PyObject * obj0 = 0 ;
7015 char *kwnames[] = {
7016 (char *) "info", NULL
7017 };
7018
7019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7021 if (arg1 == NULL) {
7022 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7023 }
7024 {
7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
7026 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7027
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj;
7040 wxString *arg1 = 0 ;
7041 wxFont *result;
7042 bool temp1 = False ;
7043 PyObject * obj0 = 0 ;
7044 char *kwnames[] = {
7045 (char *) "info", NULL
7046 };
7047
7048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7049 {
7050 arg1 = wxString_in_helper(obj0);
7051 if (arg1 == NULL) SWIG_fail;
7052 temp1 = True;
7053 }
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7062 {
7063 if (temp1)
7064 delete arg1;
7065 }
7066 return resultobj;
7067 fail:
7068 {
7069 if (temp1)
7070 delete arg1;
7071 }
7072 return NULL;
7073 }
7074
7075
7076 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj;
7078 int arg1 ;
7079 int arg2 ;
7080 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7081 wxString const &arg4_defvalue = wxPyEmptyString ;
7082 wxString *arg4 = (wxString *) &arg4_defvalue ;
7083 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7084 wxFont *result;
7085 bool temp4 = False ;
7086 PyObject * obj3 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
7092 if (obj3) {
7093 {
7094 arg4 = wxString_in_helper(obj3);
7095 if (arg4 == NULL) SWIG_fail;
7096 temp4 = True;
7097 }
7098 }
7099 {
7100 PyThreadState* __tstate = wxPyBeginAllowThreads();
7101 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7102
7103 wxPyEndAllowThreads(__tstate);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7107 {
7108 if (temp4)
7109 delete arg4;
7110 }
7111 return resultobj;
7112 fail:
7113 {
7114 if (temp4)
7115 delete arg4;
7116 }
7117 return NULL;
7118 }
7119
7120
7121 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 wxFont *arg1 = (wxFont *) 0 ;
7124 bool result;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (bool)((wxFont const *)arg1)->Ok();
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = PyInt_FromLong((long)result);
7140 return resultobj;
7141 fail:
7142 return NULL;
7143 }
7144
7145
7146 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj;
7148 wxFont *arg1 = (wxFont *) 0 ;
7149 wxFont *arg2 = 0 ;
7150 bool result;
7151 PyObject * obj0 = 0 ;
7152 PyObject * obj1 = 0 ;
7153 char *kwnames[] = {
7154 (char *) "self",(char *) "font", NULL
7155 };
7156
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7159 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7160 if (arg2 == NULL) {
7161 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7162 }
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7166
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 resultobj = PyInt_FromLong((long)result);
7171 return resultobj;
7172 fail:
7173 return NULL;
7174 }
7175
7176
7177 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7178 PyObject *resultobj;
7179 wxFont *arg1 = (wxFont *) 0 ;
7180 wxFont *arg2 = 0 ;
7181 bool result;
7182 PyObject * obj0 = 0 ;
7183 PyObject * obj1 = 0 ;
7184 char *kwnames[] = {
7185 (char *) "self",(char *) "font", NULL
7186 };
7187
7188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7190 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7191 if (arg2 == NULL) {
7192 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7193 }
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7197
7198 wxPyEndAllowThreads(__tstate);
7199 if (PyErr_Occurred()) SWIG_fail;
7200 }
7201 resultobj = PyInt_FromLong((long)result);
7202 return resultobj;
7203 fail:
7204 return NULL;
7205 }
7206
7207
7208 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7209 PyObject *resultobj;
7210 wxFont *arg1 = (wxFont *) 0 ;
7211 int result;
7212 PyObject * obj0 = 0 ;
7213 char *kwnames[] = {
7214 (char *) "self", NULL
7215 };
7216
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7219 {
7220 PyThreadState* __tstate = wxPyBeginAllowThreads();
7221 result = (int)((wxFont const *)arg1)->GetPointSize();
7222
7223 wxPyEndAllowThreads(__tstate);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = PyInt_FromLong((long)result);
7227 return resultobj;
7228 fail:
7229 return NULL;
7230 }
7231
7232
7233 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7234 PyObject *resultobj;
7235 wxFont *arg1 = (wxFont *) 0 ;
7236 int result;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "self", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = (int)((wxFont const *)arg1)->GetFamily();
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = PyInt_FromLong((long)result);
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxFont *arg1 = (wxFont *) 0 ;
7261 int result;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 result = (int)((wxFont const *)arg1)->GetStyle();
7272
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 resultobj = PyInt_FromLong((long)result);
7277 return resultobj;
7278 fail:
7279 return NULL;
7280 }
7281
7282
7283 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7284 PyObject *resultobj;
7285 wxFont *arg1 = (wxFont *) 0 ;
7286 int result;
7287 PyObject * obj0 = 0 ;
7288 char *kwnames[] = {
7289 (char *) "self", NULL
7290 };
7291
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = (int)((wxFont const *)arg1)->GetWeight();
7297
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 resultobj = PyInt_FromLong((long)result);
7302 return resultobj;
7303 fail:
7304 return NULL;
7305 }
7306
7307
7308 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj;
7310 wxFont *arg1 = (wxFont *) 0 ;
7311 bool result;
7312 PyObject * obj0 = 0 ;
7313 char *kwnames[] = {
7314 (char *) "self", NULL
7315 };
7316
7317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7322
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 resultobj = PyInt_FromLong((long)result);
7327 return resultobj;
7328 fail:
7329 return NULL;
7330 }
7331
7332
7333 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7334 PyObject *resultobj;
7335 wxFont *arg1 = (wxFont *) 0 ;
7336 wxString result;
7337 PyObject * obj0 = 0 ;
7338 char *kwnames[] = {
7339 (char *) "self", NULL
7340 };
7341
7342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 result = ((wxFont const *)arg1)->GetFaceName();
7347
7348 wxPyEndAllowThreads(__tstate);
7349 if (PyErr_Occurred()) SWIG_fail;
7350 }
7351 {
7352 #if wxUSE_UNICODE
7353 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7354 #else
7355 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7356 #endif
7357 }
7358 return resultobj;
7359 fail:
7360 return NULL;
7361 }
7362
7363
7364 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7365 PyObject *resultobj;
7366 wxFont *arg1 = (wxFont *) 0 ;
7367 int result;
7368 PyObject * obj0 = 0 ;
7369 char *kwnames[] = {
7370 (char *) "self", NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = (int)((wxFont const *)arg1)->GetEncoding();
7378
7379 wxPyEndAllowThreads(__tstate);
7380 if (PyErr_Occurred()) SWIG_fail;
7381 }
7382 resultobj = PyInt_FromLong((long)result);
7383 return resultobj;
7384 fail:
7385 return NULL;
7386 }
7387
7388
7389 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7390 PyObject *resultobj;
7391 wxFont *arg1 = (wxFont *) 0 ;
7392 wxNativeFontInfo *result;
7393 PyObject * obj0 = 0 ;
7394 char *kwnames[] = {
7395 (char *) "self", NULL
7396 };
7397
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj;
7416 wxFont *arg1 = (wxFont *) 0 ;
7417 bool result;
7418 PyObject * obj0 = 0 ;
7419 char *kwnames[] = {
7420 (char *) "self", NULL
7421 };
7422
7423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = PyInt_FromLong((long)result);
7433 return resultobj;
7434 fail:
7435 return NULL;
7436 }
7437
7438
7439 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj;
7441 wxFont *arg1 = (wxFont *) 0 ;
7442 wxString result;
7443 PyObject * obj0 = 0 ;
7444 char *kwnames[] = {
7445 (char *) "self", NULL
7446 };
7447
7448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7450 {
7451 PyThreadState* __tstate = wxPyBeginAllowThreads();
7452 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7453
7454 wxPyEndAllowThreads(__tstate);
7455 if (PyErr_Occurred()) SWIG_fail;
7456 }
7457 {
7458 #if wxUSE_UNICODE
7459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7460 #else
7461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7462 #endif
7463 }
7464 return resultobj;
7465 fail:
7466 return NULL;
7467 }
7468
7469
7470 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj;
7472 wxFont *arg1 = (wxFont *) 0 ;
7473 wxString result;
7474 PyObject * obj0 = 0 ;
7475 char *kwnames[] = {
7476 (char *) "self", NULL
7477 };
7478
7479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 {
7489 #if wxUSE_UNICODE
7490 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7491 #else
7492 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7493 #endif
7494 }
7495 return resultobj;
7496 fail:
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxFont *arg1 = (wxFont *) 0 ;
7504 int arg2 ;
7505 PyObject * obj0 = 0 ;
7506 char *kwnames[] = {
7507 (char *) "self",(char *) "pointSize", NULL
7508 };
7509
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7512 {
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 (arg1)->SetPointSize(arg2);
7515
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 Py_INCREF(Py_None); resultobj = Py_None;
7520 return resultobj;
7521 fail:
7522 return NULL;
7523 }
7524
7525
7526 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7527 PyObject *resultobj;
7528 wxFont *arg1 = (wxFont *) 0 ;
7529 int arg2 ;
7530 PyObject * obj0 = 0 ;
7531 char *kwnames[] = {
7532 (char *) "self",(char *) "family", NULL
7533 };
7534
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7537 {
7538 PyThreadState* __tstate = wxPyBeginAllowThreads();
7539 (arg1)->SetFamily(arg2);
7540
7541 wxPyEndAllowThreads(__tstate);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 }
7544 Py_INCREF(Py_None); resultobj = Py_None;
7545 return resultobj;
7546 fail:
7547 return NULL;
7548 }
7549
7550
7551 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxFont *arg1 = (wxFont *) 0 ;
7554 int arg2 ;
7555 PyObject * obj0 = 0 ;
7556 char *kwnames[] = {
7557 (char *) "self",(char *) "style", NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 (arg1)->SetStyle(arg2);
7565
7566 wxPyEndAllowThreads(__tstate);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 Py_INCREF(Py_None); resultobj = Py_None;
7570 return resultobj;
7571 fail:
7572 return NULL;
7573 }
7574
7575
7576 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj;
7578 wxFont *arg1 = (wxFont *) 0 ;
7579 int arg2 ;
7580 PyObject * obj0 = 0 ;
7581 char *kwnames[] = {
7582 (char *) "self",(char *) "weight", NULL
7583 };
7584
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7587 {
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 (arg1)->SetWeight(arg2);
7590
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 Py_INCREF(Py_None); resultobj = Py_None;
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj;
7603 wxFont *arg1 = (wxFont *) 0 ;
7604 wxString *arg2 = 0 ;
7605 bool temp2 = False ;
7606 PyObject * obj0 = 0 ;
7607 PyObject * obj1 = 0 ;
7608 char *kwnames[] = {
7609 (char *) "self",(char *) "faceName", NULL
7610 };
7611
7612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7614 {
7615 arg2 = wxString_in_helper(obj1);
7616 if (arg2 == NULL) SWIG_fail;
7617 temp2 = True;
7618 }
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 (arg1)->SetFaceName((wxString const &)*arg2);
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 Py_INCREF(Py_None); resultobj = Py_None;
7627 {
7628 if (temp2)
7629 delete arg2;
7630 }
7631 return resultobj;
7632 fail:
7633 {
7634 if (temp2)
7635 delete arg2;
7636 }
7637 return NULL;
7638 }
7639
7640
7641 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7642 PyObject *resultobj;
7643 wxFont *arg1 = (wxFont *) 0 ;
7644 bool arg2 ;
7645 PyObject * obj0 = 0 ;
7646 PyObject * obj1 = 0 ;
7647 char *kwnames[] = {
7648 (char *) "self",(char *) "underlined", NULL
7649 };
7650
7651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7653 arg2 = PyInt_AsLong(obj1) ? true : false;
7654 if (PyErr_Occurred()) SWIG_fail;
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 (arg1)->SetUnderlined(arg2);
7658
7659 wxPyEndAllowThreads(__tstate);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 Py_INCREF(Py_None); resultobj = Py_None;
7663 return resultobj;
7664 fail:
7665 return NULL;
7666 }
7667
7668
7669 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7670 PyObject *resultobj;
7671 wxFont *arg1 = (wxFont *) 0 ;
7672 int arg2 ;
7673 PyObject * obj0 = 0 ;
7674 char *kwnames[] = {
7675 (char *) "self",(char *) "encoding", NULL
7676 };
7677
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7680 {
7681 PyThreadState* __tstate = wxPyBeginAllowThreads();
7682 (arg1)->SetEncoding((wxFontEncoding )arg2);
7683
7684 wxPyEndAllowThreads(__tstate);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 Py_INCREF(Py_None); resultobj = Py_None;
7688 return resultobj;
7689 fail:
7690 return NULL;
7691 }
7692
7693
7694 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7695 PyObject *resultobj;
7696 wxFont *arg1 = (wxFont *) 0 ;
7697 wxNativeFontInfo *arg2 = 0 ;
7698 PyObject * obj0 = 0 ;
7699 PyObject * obj1 = 0 ;
7700 char *kwnames[] = {
7701 (char *) "self",(char *) "info", NULL
7702 };
7703
7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7706 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7707 if (arg2 == NULL) {
7708 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7709 }
7710 {
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7713
7714 wxPyEndAllowThreads(__tstate);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 Py_INCREF(Py_None); resultobj = Py_None;
7718 return resultobj;
7719 fail:
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxFont *arg1 = (wxFont *) 0 ;
7727 wxString *arg2 = 0 ;
7728 bool temp2 = False ;
7729 PyObject * obj0 = 0 ;
7730 PyObject * obj1 = 0 ;
7731 char *kwnames[] = {
7732 (char *) "self",(char *) "info", NULL
7733 };
7734
7735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7737 {
7738 arg2 = wxString_in_helper(obj1);
7739 if (arg2 == NULL) SWIG_fail;
7740 temp2 = True;
7741 }
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 Py_INCREF(Py_None); resultobj = Py_None;
7750 {
7751 if (temp2)
7752 delete arg2;
7753 }
7754 return resultobj;
7755 fail:
7756 {
7757 if (temp2)
7758 delete arg2;
7759 }
7760 return NULL;
7761 }
7762
7763
7764 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7765 PyObject *resultobj;
7766 wxFont *arg1 = (wxFont *) 0 ;
7767 wxString *arg2 = 0 ;
7768 bool temp2 = False ;
7769 PyObject * obj0 = 0 ;
7770 PyObject * obj1 = 0 ;
7771 char *kwnames[] = {
7772 (char *) "self",(char *) "info", NULL
7773 };
7774
7775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7777 {
7778 arg2 = wxString_in_helper(obj1);
7779 if (arg2 == NULL) SWIG_fail;
7780 temp2 = True;
7781 }
7782 {
7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
7784 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7785
7786 wxPyEndAllowThreads(__tstate);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 Py_INCREF(Py_None); resultobj = Py_None;
7790 {
7791 if (temp2)
7792 delete arg2;
7793 }
7794 return resultobj;
7795 fail:
7796 {
7797 if (temp2)
7798 delete arg2;
7799 }
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj;
7806 wxFont *arg1 = (wxFont *) 0 ;
7807 wxString result;
7808 PyObject * obj0 = 0 ;
7809 char *kwnames[] = {
7810 (char *) "self", NULL
7811 };
7812
7813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 result = ((wxFont const *)arg1)->GetFamilyString();
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 {
7823 #if wxUSE_UNICODE
7824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7825 #else
7826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7827 #endif
7828 }
7829 return resultobj;
7830 fail:
7831 return NULL;
7832 }
7833
7834
7835 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj;
7837 wxFont *arg1 = (wxFont *) 0 ;
7838 wxString result;
7839 PyObject * obj0 = 0 ;
7840 char *kwnames[] = {
7841 (char *) "self", NULL
7842 };
7843
7844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7846 {
7847 PyThreadState* __tstate = wxPyBeginAllowThreads();
7848 result = ((wxFont const *)arg1)->GetStyleString();
7849
7850 wxPyEndAllowThreads(__tstate);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 {
7854 #if wxUSE_UNICODE
7855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7856 #else
7857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7858 #endif
7859 }
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7867 PyObject *resultobj;
7868 wxFont *arg1 = (wxFont *) 0 ;
7869 wxString result;
7870 PyObject * obj0 = 0 ;
7871 char *kwnames[] = {
7872 (char *) "self", NULL
7873 };
7874
7875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 result = ((wxFont const *)arg1)->GetWeightString();
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 {
7885 #if wxUSE_UNICODE
7886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7887 #else
7888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7889 #endif
7890 }
7891 return resultobj;
7892 fail:
7893 return NULL;
7894 }
7895
7896
7897 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj;
7899 wxFont *arg1 = (wxFont *) 0 ;
7900 bool arg2 = (bool) True ;
7901 PyObject * obj0 = 0 ;
7902 PyObject * obj1 = 0 ;
7903 char *kwnames[] = {
7904 (char *) "self",(char *) "no", NULL
7905 };
7906
7907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7909 if (obj1) {
7910 arg2 = PyInt_AsLong(obj1) ? true : false;
7911 if (PyErr_Occurred()) SWIG_fail;
7912 }
7913 {
7914 PyThreadState* __tstate = wxPyBeginAllowThreads();
7915 (arg1)->SetNoAntiAliasing(arg2);
7916
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 Py_INCREF(Py_None); resultobj = Py_None;
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxFont *arg1 = (wxFont *) 0 ;
7930 bool result;
7931 PyObject * obj0 = 0 ;
7932 char *kwnames[] = {
7933 (char *) "self", NULL
7934 };
7935
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (bool)(arg1)->GetNoAntiAliasing();
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = PyInt_FromLong((long)result);
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj;
7954 int result;
7955 char *kwnames[] = {
7956 NULL
7957 };
7958
7959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7960 {
7961 PyThreadState* __tstate = wxPyBeginAllowThreads();
7962 result = (int)wxFont::GetDefaultEncoding();
7963
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = PyInt_FromLong((long)result);
7968 return resultobj;
7969 fail:
7970 return NULL;
7971 }
7972
7973
7974 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7975 PyObject *resultobj;
7976 int arg1 ;
7977 char *kwnames[] = {
7978 (char *) "encoding", NULL
7979 };
7980
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 Py_INCREF(Py_None); resultobj = Py_None;
7990 return resultobj;
7991 fail:
7992 return NULL;
7993 }
7994
7995
7996 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7997 PyObject *obj;
7998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7999 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8000 Py_INCREF(obj);
8001 return Py_BuildValue((char *)"");
8002 }
8003 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxPyFontEnumerator *result;
8006 char *kwnames[] = {
8007 NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8019 return resultobj;
8020 fail:
8021 return NULL;
8022 }
8023
8024
8025 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8026 PyObject *resultobj;
8027 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8028 PyObject * obj0 = 0 ;
8029 char *kwnames[] = {
8030 (char *) "self", NULL
8031 };
8032
8033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 delete arg1;
8038
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 Py_INCREF(Py_None); resultobj = Py_None;
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj;
8051 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8052 PyObject *arg2 = (PyObject *) 0 ;
8053 PyObject *arg3 = (PyObject *) 0 ;
8054 bool arg4 ;
8055 PyObject * obj0 = 0 ;
8056 PyObject * obj1 = 0 ;
8057 PyObject * obj2 = 0 ;
8058 PyObject * obj3 = 0 ;
8059 char *kwnames[] = {
8060 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8061 };
8062
8063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8065 arg2 = obj1;
8066 arg3 = obj2;
8067 arg4 = PyInt_AsLong(obj3) ? true : false;
8068 if (PyErr_Occurred()) SWIG_fail;
8069 {
8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
8071 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8072
8073 wxPyEndAllowThreads(__tstate);
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 Py_INCREF(Py_None); resultobj = Py_None;
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8086 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8087 bool arg3 = (bool) False ;
8088 bool result;
8089 PyObject * obj0 = 0 ;
8090 PyObject * obj2 = 0 ;
8091 char *kwnames[] = {
8092 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
8096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8097 if (obj2) {
8098 arg3 = PyInt_AsLong(obj2) ? true : false;
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8104
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 resultobj = PyInt_FromLong((long)result);
8109 return resultobj;
8110 fail:
8111 return NULL;
8112 }
8113
8114
8115 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8116 PyObject *resultobj;
8117 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8118 wxString const &arg2_defvalue = wxPyEmptyString ;
8119 wxString *arg2 = (wxString *) &arg2_defvalue ;
8120 bool result;
8121 bool temp2 = False ;
8122 PyObject * obj0 = 0 ;
8123 PyObject * obj1 = 0 ;
8124 char *kwnames[] = {
8125 (char *) "self",(char *) "facename", NULL
8126 };
8127
8128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8130 if (obj1) {
8131 {
8132 arg2 = wxString_in_helper(obj1);
8133 if (arg2 == NULL) SWIG_fail;
8134 temp2 = True;
8135 }
8136 }
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 resultobj = PyInt_FromLong((long)result);
8145 {
8146 if (temp2)
8147 delete arg2;
8148 }
8149 return resultobj;
8150 fail:
8151 {
8152 if (temp2)
8153 delete arg2;
8154 }
8155 return NULL;
8156 }
8157
8158
8159 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8160 PyObject *resultobj;
8161 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8162 PyObject *result;
8163 PyObject * obj0 = 0 ;
8164 char *kwnames[] = {
8165 (char *) "self", NULL
8166 };
8167
8168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 resultobj = result;
8178 return resultobj;
8179 fail:
8180 return NULL;
8181 }
8182
8183
8184 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8185 PyObject *resultobj;
8186 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8187 PyObject *result;
8188 PyObject * obj0 = 0 ;
8189 char *kwnames[] = {
8190 (char *) "self", NULL
8191 };
8192
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 resultobj = result;
8203 return resultobj;
8204 fail:
8205 return NULL;
8206 }
8207
8208
8209 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8210 PyObject *obj;
8211 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8212 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8213 Py_INCREF(obj);
8214 return Py_BuildValue((char *)"");
8215 }
8216 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8217 PyObject *resultobj;
8218 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8219 int arg2 ;
8220 PyObject * obj0 = 0 ;
8221 char *kwnames[] = {
8222 (char *) "self",(char *) "Language", NULL
8223 };
8224
8225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
8226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8227 if (arg1) (arg1)->Language = arg2;
8228
8229 Py_INCREF(Py_None); resultobj = Py_None;
8230 return resultobj;
8231 fail:
8232 return NULL;
8233 }
8234
8235
8236 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8237 PyObject *resultobj;
8238 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8239 int result;
8240 PyObject * obj0 = 0 ;
8241 char *kwnames[] = {
8242 (char *) "self", NULL
8243 };
8244
8245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8247 result = (int) ((arg1)->Language);
8248
8249 resultobj = PyInt_FromLong((long)result);
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj;
8258 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8259 wxString arg2 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "self",(char *) "CanonicalName", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8268 {
8269 wxString* sptr = wxString_in_helper(obj1);
8270 if (sptr == NULL) SWIG_fail;
8271 arg2 = *sptr;
8272 delete sptr;
8273 }
8274 if (arg1) (arg1)->CanonicalName = arg2;
8275
8276 Py_INCREF(Py_None); resultobj = Py_None;
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8284 PyObject *resultobj;
8285 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8286 wxString result;
8287 PyObject * obj0 = 0 ;
8288 char *kwnames[] = {
8289 (char *) "self", NULL
8290 };
8291
8292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8294 result = ((arg1)->CanonicalName);
8295
8296 {
8297 #if wxUSE_UNICODE
8298 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8299 #else
8300 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8301 #endif
8302 }
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8310 PyObject *resultobj;
8311 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8312 wxString arg2 ;
8313 PyObject * obj0 = 0 ;
8314 PyObject * obj1 = 0 ;
8315 char *kwnames[] = {
8316 (char *) "self",(char *) "Description", NULL
8317 };
8318
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8321 {
8322 wxString* sptr = wxString_in_helper(obj1);
8323 if (sptr == NULL) SWIG_fail;
8324 arg2 = *sptr;
8325 delete sptr;
8326 }
8327 if (arg1) (arg1)->Description = arg2;
8328
8329 Py_INCREF(Py_None); resultobj = Py_None;
8330 return resultobj;
8331 fail:
8332 return NULL;
8333 }
8334
8335
8336 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8337 PyObject *resultobj;
8338 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8339 wxString result;
8340 PyObject * obj0 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8347 result = ((arg1)->Description);
8348
8349 {
8350 #if wxUSE_UNICODE
8351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8352 #else
8353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8354 #endif
8355 }
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8363 PyObject *obj;
8364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8365 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8366 Py_INCREF(obj);
8367 return Py_BuildValue((char *)"");
8368 }
8369 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8370 PyObject *resultobj;
8371 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8372 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8373 wxLocale *result;
8374 char *kwnames[] = {
8375 (char *) "language",(char *) "flags", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
8379 {
8380 PyThreadState* __tstate = wxPyBeginAllowThreads();
8381 result = (wxLocale *)new wxLocale(arg1,arg2);
8382
8383 wxPyEndAllowThreads(__tstate);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj;
8395 wxLocale *arg1 = (wxLocale *) 0 ;
8396 PyObject * obj0 = 0 ;
8397 char *kwnames[] = {
8398 (char *) "self", NULL
8399 };
8400
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8403 {
8404 PyThreadState* __tstate = wxPyBeginAllowThreads();
8405 delete arg1;
8406
8407 wxPyEndAllowThreads(__tstate);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 Py_INCREF(Py_None); resultobj = Py_None;
8411 return resultobj;
8412 fail:
8413 return NULL;
8414 }
8415
8416
8417 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8418 PyObject *resultobj;
8419 wxLocale *arg1 = (wxLocale *) 0 ;
8420 wxString *arg2 = 0 ;
8421 wxString const &arg3_defvalue = wxPyEmptyString ;
8422 wxString *arg3 = (wxString *) &arg3_defvalue ;
8423 wxString const &arg4_defvalue = wxPyEmptyString ;
8424 wxString *arg4 = (wxString *) &arg4_defvalue ;
8425 bool arg5 = (bool) True ;
8426 bool arg6 = (bool) False ;
8427 bool result;
8428 bool temp2 = False ;
8429 bool temp3 = False ;
8430 bool temp4 = False ;
8431 PyObject * obj0 = 0 ;
8432 PyObject * obj1 = 0 ;
8433 PyObject * obj2 = 0 ;
8434 PyObject * obj3 = 0 ;
8435 PyObject * obj4 = 0 ;
8436 PyObject * obj5 = 0 ;
8437 char *kwnames[] = {
8438 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8439 };
8440
8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8443 {
8444 arg2 = wxString_in_helper(obj1);
8445 if (arg2 == NULL) SWIG_fail;
8446 temp2 = True;
8447 }
8448 if (obj2) {
8449 {
8450 arg3 = wxString_in_helper(obj2);
8451 if (arg3 == NULL) SWIG_fail;
8452 temp3 = True;
8453 }
8454 }
8455 if (obj3) {
8456 {
8457 arg4 = wxString_in_helper(obj3);
8458 if (arg4 == NULL) SWIG_fail;
8459 temp4 = True;
8460 }
8461 }
8462 if (obj4) {
8463 arg5 = PyInt_AsLong(obj4) ? true : false;
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 if (obj5) {
8467 arg6 = PyInt_AsLong(obj5) ? true : false;
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
8471 PyThreadState* __tstate = wxPyBeginAllowThreads();
8472 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8473
8474 wxPyEndAllowThreads(__tstate);
8475 if (PyErr_Occurred()) SWIG_fail;
8476 }
8477 resultobj = PyInt_FromLong((long)result);
8478 {
8479 if (temp2)
8480 delete arg2;
8481 }
8482 {
8483 if (temp3)
8484 delete arg3;
8485 }
8486 {
8487 if (temp4)
8488 delete arg4;
8489 }
8490 return resultobj;
8491 fail:
8492 {
8493 if (temp2)
8494 delete arg2;
8495 }
8496 {
8497 if (temp3)
8498 delete arg3;
8499 }
8500 {
8501 if (temp4)
8502 delete arg4;
8503 }
8504 return NULL;
8505 }
8506
8507
8508 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8509 PyObject *resultobj;
8510 wxLocale *arg1 = (wxLocale *) 0 ;
8511 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8512 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8513 bool result;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "self",(char *) "language",(char *) "flags", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
8523 result = (bool)(arg1)->Init(arg2,arg3);
8524
8525 wxPyEndAllowThreads(__tstate);
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 resultobj = PyInt_FromLong((long)result);
8529 return resultobj;
8530 fail:
8531 return NULL;
8532 }
8533
8534
8535 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj;
8537 int result;
8538 char *kwnames[] = {
8539 NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 result = (int)wxLocale::GetSystemLanguage();
8546
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 resultobj = PyInt_FromLong((long)result);
8551 return resultobj;
8552 fail:
8553 return NULL;
8554 }
8555
8556
8557 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8558 PyObject *resultobj;
8559 int result;
8560 char *kwnames[] = {
8561 NULL
8562 };
8563
8564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8565 {
8566 PyThreadState* __tstate = wxPyBeginAllowThreads();
8567 result = (int)wxLocale::GetSystemEncoding();
8568
8569 wxPyEndAllowThreads(__tstate);
8570 if (PyErr_Occurred()) SWIG_fail;
8571 }
8572 resultobj = PyInt_FromLong((long)result);
8573 return resultobj;
8574 fail:
8575 return NULL;
8576 }
8577
8578
8579 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8580 PyObject *resultobj;
8581 wxString result;
8582 char *kwnames[] = {
8583 NULL
8584 };
8585
8586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8587 {
8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
8589 result = wxLocale::GetSystemEncodingName();
8590
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 {
8595 #if wxUSE_UNICODE
8596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8597 #else
8598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8599 #endif
8600 }
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 wxLocale *arg1 = (wxLocale *) 0 ;
8610 bool result;
8611 PyObject * obj0 = 0 ;
8612 char *kwnames[] = {
8613 (char *) "self", NULL
8614 };
8615
8616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 result = (bool)((wxLocale const *)arg1)->IsOk();
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 resultobj = PyInt_FromLong((long)result);
8626 return resultobj;
8627 fail:
8628 return NULL;
8629 }
8630
8631
8632 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8633 PyObject *resultobj;
8634 wxLocale *arg1 = (wxLocale *) 0 ;
8635 wxString result;
8636 PyObject * obj0 = 0 ;
8637 char *kwnames[] = {
8638 (char *) "self", NULL
8639 };
8640
8641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8643 {
8644 PyThreadState* __tstate = wxPyBeginAllowThreads();
8645 result = ((wxLocale const *)arg1)->GetLocale();
8646
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 {
8651 #if wxUSE_UNICODE
8652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8653 #else
8654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8655 #endif
8656 }
8657 return resultobj;
8658 fail:
8659 return NULL;
8660 }
8661
8662
8663 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj;
8665 wxLocale *arg1 = (wxLocale *) 0 ;
8666 int result;
8667 PyObject * obj0 = 0 ;
8668 char *kwnames[] = {
8669 (char *) "self", NULL
8670 };
8671
8672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 result = (int)((wxLocale const *)arg1)->GetLanguage();
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 resultobj = PyInt_FromLong((long)result);
8682 return resultobj;
8683 fail:
8684 return NULL;
8685 }
8686
8687
8688 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject *resultobj;
8690 wxLocale *arg1 = (wxLocale *) 0 ;
8691 wxString result;
8692 PyObject * obj0 = 0 ;
8693 char *kwnames[] = {
8694 (char *) "self", NULL
8695 };
8696
8697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 result = ((wxLocale const *)arg1)->GetSysName();
8702
8703 wxPyEndAllowThreads(__tstate);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 {
8707 #if wxUSE_UNICODE
8708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8709 #else
8710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8711 #endif
8712 }
8713 return resultobj;
8714 fail:
8715 return NULL;
8716 }
8717
8718
8719 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8720 PyObject *resultobj;
8721 wxLocale *arg1 = (wxLocale *) 0 ;
8722 wxString result;
8723 PyObject * obj0 = 0 ;
8724 char *kwnames[] = {
8725 (char *) "self", NULL
8726 };
8727
8728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8730 {
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 result = ((wxLocale const *)arg1)->GetCanonicalName();
8733
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 {
8738 #if wxUSE_UNICODE
8739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8740 #else
8741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8742 #endif
8743 }
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8751 PyObject *resultobj;
8752 wxString *arg1 = 0 ;
8753 bool temp1 = False ;
8754 PyObject * obj0 = 0 ;
8755 char *kwnames[] = {
8756 (char *) "prefix", NULL
8757 };
8758
8759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8760 {
8761 arg1 = wxString_in_helper(obj0);
8762 if (arg1 == NULL) SWIG_fail;
8763 temp1 = True;
8764 }
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8768
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 Py_INCREF(Py_None); resultobj = Py_None;
8773 {
8774 if (temp1)
8775 delete arg1;
8776 }
8777 return resultobj;
8778 fail:
8779 {
8780 if (temp1)
8781 delete arg1;
8782 }
8783 return NULL;
8784 }
8785
8786
8787 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8788 PyObject *resultobj;
8789 wxLocale *arg1 = (wxLocale *) 0 ;
8790 wxString *arg2 = 0 ;
8791 bool result;
8792 bool temp2 = False ;
8793 PyObject * obj0 = 0 ;
8794 PyObject * obj1 = 0 ;
8795 char *kwnames[] = {
8796 (char *) "self",(char *) "szDomain", NULL
8797 };
8798
8799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8801 {
8802 arg2 = wxString_in_helper(obj1);
8803 if (arg2 == NULL) SWIG_fail;
8804 temp2 = True;
8805 }
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 resultobj = PyInt_FromLong((long)result);
8814 {
8815 if (temp2)
8816 delete arg2;
8817 }
8818 return resultobj;
8819 fail:
8820 {
8821 if (temp2)
8822 delete arg2;
8823 }
8824 return NULL;
8825 }
8826
8827
8828 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 wxLocale *arg1 = (wxLocale *) 0 ;
8831 wxString *arg2 = 0 ;
8832 bool result;
8833 bool temp2 = False ;
8834 PyObject * obj0 = 0 ;
8835 PyObject * obj1 = 0 ;
8836 char *kwnames[] = {
8837 (char *) "self",(char *) "szDomain", NULL
8838 };
8839
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8842 {
8843 arg2 = wxString_in_helper(obj1);
8844 if (arg2 == NULL) SWIG_fail;
8845 temp2 = True;
8846 }
8847 {
8848 PyThreadState* __tstate = wxPyBeginAllowThreads();
8849 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8850
8851 wxPyEndAllowThreads(__tstate);
8852 if (PyErr_Occurred()) SWIG_fail;
8853 }
8854 resultobj = PyInt_FromLong((long)result);
8855 {
8856 if (temp2)
8857 delete arg2;
8858 }
8859 return resultobj;
8860 fail:
8861 {
8862 if (temp2)
8863 delete arg2;
8864 }
8865 return NULL;
8866 }
8867
8868
8869 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8870 PyObject *resultobj;
8871 int arg1 ;
8872 wxLanguageInfo *result;
8873 char *kwnames[] = {
8874 (char *) "lang", NULL
8875 };
8876
8877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8878 {
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8881
8882 wxPyEndAllowThreads(__tstate);
8883 if (PyErr_Occurred()) SWIG_fail;
8884 }
8885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8886 return resultobj;
8887 fail:
8888 return NULL;
8889 }
8890
8891
8892 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8893 PyObject *resultobj;
8894 int arg1 ;
8895 wxString result;
8896 char *kwnames[] = {
8897 (char *) "lang", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = wxLocale::GetLanguageName(arg1);
8904
8905 wxPyEndAllowThreads(__tstate);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 }
8908 {
8909 #if wxUSE_UNICODE
8910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8911 #else
8912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8913 #endif
8914 }
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 wxString *arg1 = 0 ;
8924 wxLanguageInfo *result;
8925 bool temp1 = False ;
8926 PyObject * obj0 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "locale", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8932 {
8933 arg1 = wxString_in_helper(obj0);
8934 if (arg1 == NULL) SWIG_fail;
8935 temp1 = True;
8936 }
8937 {
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8940
8941 wxPyEndAllowThreads(__tstate);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
8944 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8945 {
8946 if (temp1)
8947 delete arg1;
8948 }
8949 return resultobj;
8950 fail:
8951 {
8952 if (temp1)
8953 delete arg1;
8954 }
8955 return NULL;
8956 }
8957
8958
8959 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj;
8961 wxLanguageInfo *arg1 = 0 ;
8962 PyObject * obj0 = 0 ;
8963 char *kwnames[] = {
8964 (char *) "info", NULL
8965 };
8966
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8969 if (arg1 == NULL) {
8970 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8971 }
8972 {
8973 PyThreadState* __tstate = wxPyBeginAllowThreads();
8974 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8975
8976 wxPyEndAllowThreads(__tstate);
8977 if (PyErr_Occurred()) SWIG_fail;
8978 }
8979 Py_INCREF(Py_None); resultobj = Py_None;
8980 return resultobj;
8981 fail:
8982 return NULL;
8983 }
8984
8985
8986 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8987 PyObject *resultobj;
8988 wxLocale *arg1 = (wxLocale *) 0 ;
8989 wxString *arg2 = 0 ;
8990 wxString const &arg3_defvalue = wxPyEmptyString ;
8991 wxString *arg3 = (wxString *) &arg3_defvalue ;
8992 wxString result;
8993 bool temp2 = False ;
8994 bool temp3 = False ;
8995 PyObject * obj0 = 0 ;
8996 PyObject * obj1 = 0 ;
8997 PyObject * obj2 = 0 ;
8998 char *kwnames[] = {
8999 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9000 };
9001
9002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9004 {
9005 arg2 = wxString_in_helper(obj1);
9006 if (arg2 == NULL) SWIG_fail;
9007 temp2 = True;
9008 }
9009 if (obj2) {
9010 {
9011 arg3 = wxString_in_helper(obj2);
9012 if (arg3 == NULL) SWIG_fail;
9013 temp3 = True;
9014 }
9015 }
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 {
9024 #if wxUSE_UNICODE
9025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9026 #else
9027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9028 #endif
9029 }
9030 {
9031 if (temp2)
9032 delete arg2;
9033 }
9034 {
9035 if (temp3)
9036 delete arg3;
9037 }
9038 return resultobj;
9039 fail:
9040 {
9041 if (temp2)
9042 delete arg2;
9043 }
9044 {
9045 if (temp3)
9046 delete arg3;
9047 }
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxLocale *arg1 = (wxLocale *) 0 ;
9055 wxString *result;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9063 {
9064 PyThreadState* __tstate = wxPyBeginAllowThreads();
9065 {
9066 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9067 result = (wxString *) &_result_ref;
9068 }
9069
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 {
9074 #if wxUSE_UNICODE
9075 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9076 #else
9077 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9078 #endif
9079 }
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9087 PyObject *obj;
9088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9089 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9090 Py_INCREF(obj);
9091 return Py_BuildValue((char *)"");
9092 }
9093 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxLocale *result;
9096 char *kwnames[] = {
9097 NULL
9098 };
9099
9100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = (wxLocale *)wxGetLocale();
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9109 return resultobj;
9110 fail:
9111 return NULL;
9112 }
9113
9114
9115 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9116 PyObject *resultobj;
9117 wxString *arg1 = 0 ;
9118 wxString result;
9119 bool temp1 = False ;
9120 PyObject * obj0 = 0 ;
9121
9122 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9123 {
9124 arg1 = wxString_in_helper(obj0);
9125 if (arg1 == NULL) SWIG_fail;
9126 temp1 = True;
9127 }
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 result = wxGetTranslation((wxString const &)*arg1);
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 {
9136 #if wxUSE_UNICODE
9137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9138 #else
9139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9140 #endif
9141 }
9142 {
9143 if (temp1)
9144 delete arg1;
9145 }
9146 return resultobj;
9147 fail:
9148 {
9149 if (temp1)
9150 delete arg1;
9151 }
9152 return NULL;
9153 }
9154
9155
9156 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9157 PyObject *resultobj;
9158 wxString *arg1 = 0 ;
9159 wxString *arg2 = 0 ;
9160 size_t arg3 ;
9161 wxString result;
9162 bool temp1 = False ;
9163 bool temp2 = False ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 PyObject * obj2 = 0 ;
9167
9168 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9169 {
9170 arg1 = wxString_in_helper(obj0);
9171 if (arg1 == NULL) SWIG_fail;
9172 temp1 = True;
9173 }
9174 {
9175 arg2 = wxString_in_helper(obj1);
9176 if (arg2 == NULL) SWIG_fail;
9177 temp2 = True;
9178 }
9179 arg3 = (size_t) PyInt_AsLong(obj2);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 {
9182 PyThreadState* __tstate = wxPyBeginAllowThreads();
9183 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9184
9185 wxPyEndAllowThreads(__tstate);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 }
9188 {
9189 #if wxUSE_UNICODE
9190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9191 #else
9192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9193 #endif
9194 }
9195 {
9196 if (temp1)
9197 delete arg1;
9198 }
9199 {
9200 if (temp2)
9201 delete arg2;
9202 }
9203 return resultobj;
9204 fail:
9205 {
9206 if (temp1)
9207 delete arg1;
9208 }
9209 {
9210 if (temp2)
9211 delete arg2;
9212 }
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9218 int argc;
9219 PyObject *argv[4];
9220 int ii;
9221
9222 argc = PyObject_Length(args);
9223 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9224 argv[ii] = PyTuple_GetItem(args,ii);
9225 }
9226 if (argc == 1) {
9227 int _v;
9228 {
9229 void *ptr;
9230 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9231 _v = 0;
9232 PyErr_Clear();
9233 } else {
9234 _v = 1;
9235 }
9236 }
9237 if (_v) {
9238 return _wrap_GetTranslation__SWIG_0(self,args);
9239 }
9240 }
9241 if (argc == 3) {
9242 int _v;
9243 {
9244 void *ptr;
9245 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9246 _v = 0;
9247 PyErr_Clear();
9248 } else {
9249 _v = 1;
9250 }
9251 }
9252 if (_v) {
9253 {
9254 void *ptr;
9255 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9256 _v = 0;
9257 PyErr_Clear();
9258 } else {
9259 _v = 1;
9260 }
9261 }
9262 if (_v) {
9263 {
9264 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
9265 }
9266 if (_v) {
9267 return _wrap_GetTranslation__SWIG_1(self,args);
9268 }
9269 }
9270 }
9271 }
9272
9273 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9274 return NULL;
9275 }
9276
9277
9278 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject *resultobj;
9280 wxEncodingConverter *result;
9281 char *kwnames[] = {
9282 NULL
9283 };
9284
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (wxEncodingConverter *)new wxEncodingConverter();
9289
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9301 PyObject *resultobj;
9302 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9303 PyObject * obj0 = 0 ;
9304 char *kwnames[] = {
9305 (char *) "self", NULL
9306 };
9307
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 delete arg1;
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 Py_INCREF(Py_None); resultobj = Py_None;
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9327 int arg2 ;
9328 int arg3 ;
9329 int arg4 = (int) wxCONVERT_STRICT ;
9330 bool result;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = PyInt_FromLong((long)result);
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9355 wxString *arg2 = 0 ;
9356 wxString result;
9357 bool temp2 = False ;
9358 PyObject * obj0 = 0 ;
9359 PyObject * obj1 = 0 ;
9360 char *kwnames[] = {
9361 (char *) "self",(char *) "input", NULL
9362 };
9363
9364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9366 {
9367 arg2 = wxString_in_helper(obj1);
9368 if (arg2 == NULL) SWIG_fail;
9369 temp2 = True;
9370 }
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (arg1)->Convert((wxString const &)*arg2);
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 {
9379 #if wxUSE_UNICODE
9380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9381 #else
9382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9383 #endif
9384 }
9385 {
9386 if (temp2)
9387 delete arg2;
9388 }
9389 return resultobj;
9390 fail:
9391 {
9392 if (temp2)
9393 delete arg2;
9394 }
9395 return NULL;
9396 }
9397
9398
9399 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj;
9401 int arg1 ;
9402 int arg2 = (int) wxPLATFORM_CURRENT ;
9403 wxFontEncodingArray result;
9404 char *kwnames[] = {
9405 (char *) "enc",(char *) "platform", NULL
9406 };
9407
9408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9412
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 {
9417 resultobj = PyList_New(0);
9418 for (size_t i=0; i < (&result)->GetCount(); i++) {
9419 PyObject* number = PyInt_FromLong((&result)->Item(i));
9420 PyList_Append(resultobj, number);
9421 Py_DECREF(number);
9422 }
9423 }
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj;
9432 int arg1 ;
9433 wxFontEncodingArray result;
9434 char *kwnames[] = {
9435 (char *) "enc", NULL
9436 };
9437
9438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9442
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 {
9447 resultobj = PyList_New(0);
9448 for (size_t i=0; i < (&result)->GetCount(); i++) {
9449 PyObject* number = PyInt_FromLong((&result)->Item(i));
9450 PyList_Append(resultobj, number);
9451 Py_DECREF(number);
9452 }
9453 }
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj;
9462 int arg1 ;
9463 int arg2 ;
9464 bool result;
9465 char *kwnames[] = {
9466 (char *) "encIn",(char *) "encOut", NULL
9467 };
9468
9469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9473
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = PyInt_FromLong((long)result);
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9485 PyObject *obj;
9486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9487 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9488 Py_INCREF(obj);
9489 return Py_BuildValue((char *)"");
9490 }
9491 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj;
9493 wxDC *arg1 = (wxDC *) 0 ;
9494 PyObject * obj0 = 0 ;
9495 char *kwnames[] = {
9496 (char *) "self", NULL
9497 };
9498
9499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 delete arg1;
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 Py_INCREF(Py_None); resultobj = Py_None;
9509 return resultobj;
9510 fail:
9511 return NULL;
9512 }
9513
9514
9515 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9516 PyObject *resultobj;
9517 wxDC *arg1 = (wxDC *) 0 ;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 (arg1)->BeginDrawing();
9528
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 Py_INCREF(Py_None); resultobj = Py_None;
9533 return resultobj;
9534 fail:
9535 return NULL;
9536 }
9537
9538
9539 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj;
9541 wxDC *arg1 = (wxDC *) 0 ;
9542 PyObject * obj0 = 0 ;
9543 char *kwnames[] = {
9544 (char *) "self", NULL
9545 };
9546
9547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 (arg1)->EndDrawing();
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 Py_INCREF(Py_None); resultobj = Py_None;
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxDC *arg1 = (wxDC *) 0 ;
9566 int arg2 ;
9567 int arg3 ;
9568 wxColour *arg4 = 0 ;
9569 int arg5 = (int) wxFLOOD_SURFACE ;
9570 bool result;
9571 wxColour temp4 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj3 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9580 {
9581 arg4 = &temp4;
9582 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9583 }
9584 {
9585 PyThreadState* __tstate = wxPyBeginAllowThreads();
9586 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9587
9588 wxPyEndAllowThreads(__tstate);
9589 if (PyErr_Occurred()) SWIG_fail;
9590 }
9591 resultobj = PyInt_FromLong((long)result);
9592 return resultobj;
9593 fail:
9594 return NULL;
9595 }
9596
9597
9598 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj;
9600 wxDC *arg1 = (wxDC *) 0 ;
9601 wxPoint *arg2 = 0 ;
9602 wxColour *arg3 = 0 ;
9603 int arg4 = (int) wxFLOOD_SURFACE ;
9604 bool result;
9605 wxPoint temp2 ;
9606 wxColour temp3 ;
9607 PyObject * obj0 = 0 ;
9608 PyObject * obj1 = 0 ;
9609 PyObject * obj2 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9612 };
9613
9614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9616 {
9617 arg2 = &temp2;
9618 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9619 }
9620 {
9621 arg3 = &temp3;
9622 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9623 }
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 resultobj = PyInt_FromLong((long)result);
9632 return resultobj;
9633 fail:
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxDC *arg1 = (wxDC *) 0 ;
9641 int arg2 ;
9642 int arg3 ;
9643 wxColour result;
9644 PyObject * obj0 = 0 ;
9645 char *kwnames[] = {
9646 (char *) "self",(char *) "x",(char *) "y", NULL
9647 };
9648
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9654
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 {
9659 wxColour * resultptr;
9660 resultptr = new wxColour((wxColour &) result);
9661 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9662 }
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9670 PyObject *resultobj;
9671 wxDC *arg1 = (wxDC *) 0 ;
9672 wxPoint *arg2 = 0 ;
9673 wxColour result;
9674 wxPoint temp2 ;
9675 PyObject * obj0 = 0 ;
9676 PyObject * obj1 = 0 ;
9677 char *kwnames[] = {
9678 (char *) "self",(char *) "pt", NULL
9679 };
9680
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9683 {
9684 arg2 = &temp2;
9685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9686 }
9687 {
9688 PyThreadState* __tstate = wxPyBeginAllowThreads();
9689 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9690
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 {
9695 wxColour * resultptr;
9696 resultptr = new wxColour((wxColour &) result);
9697 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9698 }
9699 return resultobj;
9700 fail:
9701 return NULL;
9702 }
9703
9704
9705 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj;
9707 wxDC *arg1 = (wxDC *) 0 ;
9708 int arg2 ;
9709 int arg3 ;
9710 int arg4 ;
9711 int arg5 ;
9712 PyObject * obj0 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9722
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 Py_INCREF(Py_None); resultobj = Py_None;
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj;
9735 wxDC *arg1 = (wxDC *) 0 ;
9736 wxPoint *arg2 = 0 ;
9737 wxPoint *arg3 = 0 ;
9738 wxPoint temp2 ;
9739 wxPoint temp3 ;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 PyObject * obj2 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9749 {
9750 arg2 = &temp2;
9751 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9752 }
9753 {
9754 arg3 = &temp3;
9755 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 Py_INCREF(Py_None); resultobj = Py_None;
9765 return resultobj;
9766 fail:
9767 return NULL;
9768 }
9769
9770
9771 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj;
9773 wxDC *arg1 = (wxDC *) 0 ;
9774 int arg2 ;
9775 int arg3 ;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self",(char *) "x",(char *) "y", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9783 {
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 (arg1)->CrossHair(arg2,arg3);
9786
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 Py_INCREF(Py_None); resultobj = Py_None;
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9798 PyObject *resultobj;
9799 wxDC *arg1 = (wxDC *) 0 ;
9800 wxPoint *arg2 = 0 ;
9801 wxPoint temp2 ;
9802 PyObject * obj0 = 0 ;
9803 PyObject * obj1 = 0 ;
9804 char *kwnames[] = {
9805 (char *) "self",(char *) "pt", NULL
9806 };
9807
9808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9810 {
9811 arg2 = &temp2;
9812 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9813 }
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 (arg1)->CrossHair((wxPoint const &)*arg2);
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 Py_INCREF(Py_None); resultobj = Py_None;
9822 return resultobj;
9823 fail:
9824 return NULL;
9825 }
9826
9827
9828 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxDC *arg1 = (wxDC *) 0 ;
9831 int arg2 ;
9832 int arg3 ;
9833 int arg4 ;
9834 int arg5 ;
9835 int arg6 ;
9836 int arg7 ;
9837 PyObject * obj0 = 0 ;
9838 char *kwnames[] = {
9839 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9840 };
9841
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 Py_INCREF(Py_None); resultobj = Py_None;
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj;
9860 wxDC *arg1 = (wxDC *) 0 ;
9861 wxPoint *arg2 = 0 ;
9862 wxPoint *arg3 = 0 ;
9863 wxPoint *arg4 = 0 ;
9864 wxPoint temp2 ;
9865 wxPoint temp3 ;
9866 wxPoint temp4 ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 PyObject * obj2 = 0 ;
9870 PyObject * obj3 = 0 ;
9871 char *kwnames[] = {
9872 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9877 {
9878 arg2 = &temp2;
9879 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9880 }
9881 {
9882 arg3 = &temp3;
9883 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9884 }
9885 {
9886 arg4 = &temp4;
9887 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9888 }
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 Py_INCREF(Py_None); resultobj = Py_None;
9897 return resultobj;
9898 fail:
9899 return NULL;
9900 }
9901
9902
9903 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj;
9905 wxDC *arg1 = (wxDC *) 0 ;
9906 int arg2 ;
9907 int arg3 ;
9908 int arg4 ;
9909 int arg5 ;
9910 PyObject * obj0 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9920
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 Py_INCREF(Py_None); resultobj = Py_None;
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj;
9933 wxDC *arg1 = (wxDC *) 0 ;
9934 wxRect *arg2 = 0 ;
9935 wxRect temp2 ;
9936 PyObject * obj0 = 0 ;
9937 PyObject * obj1 = 0 ;
9938 char *kwnames[] = {
9939 (char *) "self",(char *) "rect", NULL
9940 };
9941
9942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9944 {
9945 arg2 = &temp2;
9946 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9947 }
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 Py_INCREF(Py_None); resultobj = Py_None;
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj;
9964 wxDC *arg1 = (wxDC *) 0 ;
9965 int arg2 ;
9966 int arg3 ;
9967 int arg4 ;
9968 int arg5 ;
9969 double arg6 ;
9970 double arg7 ;
9971 PyObject * obj0 = 0 ;
9972 char *kwnames[] = {
9973 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9974 };
9975
9976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9981
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 Py_INCREF(Py_None); resultobj = Py_None;
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj;
9994 wxDC *arg1 = (wxDC *) 0 ;
9995 wxPoint *arg2 = 0 ;
9996 wxSize *arg3 = 0 ;
9997 double arg4 ;
9998 double arg5 ;
9999 wxPoint temp2 ;
10000 wxSize temp3 ;
10001 PyObject * obj0 = 0 ;
10002 PyObject * obj1 = 0 ;
10003 PyObject * obj2 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10010 {
10011 arg2 = &temp2;
10012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10013 }
10014 {
10015 arg3 = &temp3;
10016 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10017 }
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10021
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 Py_INCREF(Py_None); resultobj = Py_None;
10026 return resultobj;
10027 fail:
10028 return NULL;
10029 }
10030
10031
10032 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj;
10034 wxDC *arg1 = (wxDC *) 0 ;
10035 int arg2 ;
10036 int arg3 ;
10037 PyObject * obj0 = 0 ;
10038 char *kwnames[] = {
10039 (char *) "self",(char *) "x",(char *) "y", NULL
10040 };
10041
10042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
10043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 (arg1)->DrawPoint(arg2,arg3);
10047
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 Py_INCREF(Py_None); resultobj = Py_None;
10052 return resultobj;
10053 fail:
10054 return NULL;
10055 }
10056
10057
10058 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxDC *arg1 = (wxDC *) 0 ;
10061 wxPoint *arg2 = 0 ;
10062 wxPoint temp2 ;
10063 PyObject * obj0 = 0 ;
10064 PyObject * obj1 = 0 ;
10065 char *kwnames[] = {
10066 (char *) "self",(char *) "pt", NULL
10067 };
10068
10069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10071 {
10072 arg2 = &temp2;
10073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10074 }
10075 {
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 (arg1)->DrawPoint((wxPoint const &)*arg2);
10078
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 Py_INCREF(Py_None); resultobj = Py_None;
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj;
10091 wxDC *arg1 = (wxDC *) 0 ;
10092 int arg2 ;
10093 int arg3 ;
10094 int arg4 ;
10095 int arg5 ;
10096 PyObject * obj0 = 0 ;
10097 char *kwnames[] = {
10098 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10099 };
10100
10101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 Py_INCREF(Py_None); resultobj = Py_None;
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj;
10119 wxDC *arg1 = (wxDC *) 0 ;
10120 wxPoint *arg2 = 0 ;
10121 wxSize *arg3 = 0 ;
10122 wxPoint temp2 ;
10123 wxSize temp3 ;
10124 PyObject * obj0 = 0 ;
10125 PyObject * obj1 = 0 ;
10126 PyObject * obj2 = 0 ;
10127 char *kwnames[] = {
10128 (char *) "self",(char *) "pt",(char *) "sz", NULL
10129 };
10130
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10133 {
10134 arg2 = &temp2;
10135 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10136 }
10137 {
10138 arg3 = &temp3;
10139 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10140 }
10141 {
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10144
10145 wxPyEndAllowThreads(__tstate);
10146 if (PyErr_Occurred()) SWIG_fail;
10147 }
10148 Py_INCREF(Py_None); resultobj = Py_None;
10149 return resultobj;
10150 fail:
10151 return NULL;
10152 }
10153
10154
10155 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10156 PyObject *resultobj;
10157 wxDC *arg1 = (wxDC *) 0 ;
10158 wxRect *arg2 = 0 ;
10159 wxRect temp2 ;
10160 PyObject * obj0 = 0 ;
10161 PyObject * obj1 = 0 ;
10162 char *kwnames[] = {
10163 (char *) "self",(char *) "rect", NULL
10164 };
10165
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10168 {
10169 arg2 = &temp2;
10170 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10171 }
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 (arg1)->DrawRectangle((wxRect const &)*arg2);
10175
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 Py_INCREF(Py_None); resultobj = Py_None;
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxDC *arg1 = (wxDC *) 0 ;
10189 int arg2 ;
10190 int arg3 ;
10191 int arg4 ;
10192 int arg5 ;
10193 double arg6 ;
10194 PyObject * obj0 = 0 ;
10195 char *kwnames[] = {
10196 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10197 };
10198
10199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
10200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 Py_INCREF(Py_None); resultobj = Py_None;
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxDC *arg1 = (wxDC *) 0 ;
10218 wxPoint *arg2 = 0 ;
10219 wxSize *arg3 = 0 ;
10220 double arg4 ;
10221 wxPoint temp2 ;
10222 wxSize temp3 ;
10223 PyObject * obj0 = 0 ;
10224 PyObject * obj1 = 0 ;
10225 PyObject * obj2 = 0 ;
10226 char *kwnames[] = {
10227 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10232 {
10233 arg2 = &temp2;
10234 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10235 }
10236 {
10237 arg3 = &temp3;
10238 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10239 }
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 Py_INCREF(Py_None); resultobj = Py_None;
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj;
10256 wxDC *arg1 = (wxDC *) 0 ;
10257 wxRect *arg2 = 0 ;
10258 double arg3 ;
10259 wxRect temp2 ;
10260 PyObject * obj0 = 0 ;
10261 PyObject * obj1 = 0 ;
10262 char *kwnames[] = {
10263 (char *) "self",(char *) "r",(char *) "radius", NULL
10264 };
10265
10266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
10267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10268 {
10269 arg2 = &temp2;
10270 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 Py_INCREF(Py_None); resultobj = Py_None;
10280 return resultobj;
10281 fail:
10282 return NULL;
10283 }
10284
10285
10286 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10287 PyObject *resultobj;
10288 wxDC *arg1 = (wxDC *) 0 ;
10289 int arg2 ;
10290 int arg3 ;
10291 int arg4 ;
10292 PyObject * obj0 = 0 ;
10293 char *kwnames[] = {
10294 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 (arg1)->DrawCircle(arg2,arg3,arg4);
10302
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 Py_INCREF(Py_None); resultobj = Py_None;
10307 return resultobj;
10308 fail:
10309 return NULL;
10310 }
10311
10312
10313 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10314 PyObject *resultobj;
10315 wxDC *arg1 = (wxDC *) 0 ;
10316 wxPoint *arg2 = 0 ;
10317 int arg3 ;
10318 wxPoint temp2 ;
10319 PyObject * obj0 = 0 ;
10320 PyObject * obj1 = 0 ;
10321 char *kwnames[] = {
10322 (char *) "self",(char *) "pt",(char *) "radius", NULL
10323 };
10324
10325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
10326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10327 {
10328 arg2 = &temp2;
10329 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10330 }
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 Py_INCREF(Py_None); resultobj = Py_None;
10339 return resultobj;
10340 fail:
10341 return NULL;
10342 }
10343
10344
10345 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj;
10347 wxDC *arg1 = (wxDC *) 0 ;
10348 int arg2 ;
10349 int arg3 ;
10350 int arg4 ;
10351 int arg5 ;
10352 PyObject * obj0 = 0 ;
10353 char *kwnames[] = {
10354 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10355 };
10356
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 Py_INCREF(Py_None); resultobj = Py_None;
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxDC *arg1 = (wxDC *) 0 ;
10376 wxPoint *arg2 = 0 ;
10377 wxSize *arg3 = 0 ;
10378 wxPoint temp2 ;
10379 wxSize temp3 ;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 PyObject * obj2 = 0 ;
10383 char *kwnames[] = {
10384 (char *) "self",(char *) "pt",(char *) "sz", NULL
10385 };
10386
10387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10389 {
10390 arg2 = &temp2;
10391 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10392 }
10393 {
10394 arg3 = &temp3;
10395 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10396 }
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 Py_INCREF(Py_None); resultobj = Py_None;
10405 return resultobj;
10406 fail:
10407 return NULL;
10408 }
10409
10410
10411 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10412 PyObject *resultobj;
10413 wxDC *arg1 = (wxDC *) 0 ;
10414 wxRect *arg2 = 0 ;
10415 wxRect temp2 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 char *kwnames[] = {
10419 (char *) "self",(char *) "rect", NULL
10420 };
10421
10422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10424 {
10425 arg2 = &temp2;
10426 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10427 }
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 (arg1)->DrawEllipse((wxRect const &)*arg2);
10431
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 Py_INCREF(Py_None); resultobj = Py_None;
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj;
10444 wxDC *arg1 = (wxDC *) 0 ;
10445 wxIcon *arg2 = 0 ;
10446 int arg3 ;
10447 int arg4 ;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
10452 };
10453
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10456 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10457 if (arg2 == NULL) {
10458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10459 }
10460 {
10461 PyThreadState* __tstate = wxPyBeginAllowThreads();
10462 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
10463
10464 wxPyEndAllowThreads(__tstate);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 }
10467 Py_INCREF(Py_None); resultobj = Py_None;
10468 return resultobj;
10469 fail:
10470 return NULL;
10471 }
10472
10473
10474 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10475 PyObject *resultobj;
10476 wxDC *arg1 = (wxDC *) 0 ;
10477 wxIcon *arg2 = 0 ;
10478 wxPoint *arg3 = 0 ;
10479 wxPoint temp3 ;
10480 PyObject * obj0 = 0 ;
10481 PyObject * obj1 = 0 ;
10482 PyObject * obj2 = 0 ;
10483 char *kwnames[] = {
10484 (char *) "self",(char *) "icon",(char *) "pt", NULL
10485 };
10486
10487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
10488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10489 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10490 if (arg2 == NULL) {
10491 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10492 }
10493 {
10494 arg3 = &temp3;
10495 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10496 }
10497 {
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
10500
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 Py_INCREF(Py_None); resultobj = Py_None;
10505 return resultobj;
10506 fail:
10507 return NULL;
10508 }
10509
10510
10511 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10512 PyObject *resultobj;
10513 wxDC *arg1 = (wxDC *) 0 ;
10514 wxBitmap *arg2 = 0 ;
10515 int arg3 ;
10516 int arg4 ;
10517 bool arg5 = (bool) False ;
10518 PyObject * obj0 = 0 ;
10519 PyObject * obj1 = 0 ;
10520 PyObject * obj4 = 0 ;
10521 char *kwnames[] = {
10522 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10523 };
10524
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10527 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10528 if (arg2 == NULL) {
10529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10530 }
10531 if (obj4) {
10532 arg5 = PyInt_AsLong(obj4) ? true : false;
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 Py_INCREF(Py_None); resultobj = Py_None;
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxDC *arg1 = (wxDC *) 0 ;
10552 wxBitmap *arg2 = 0 ;
10553 wxPoint *arg3 = 0 ;
10554 bool arg4 = (bool) False ;
10555 wxPoint temp3 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 PyObject * obj2 = 0 ;
10559 PyObject * obj3 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10566 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10567 if (arg2 == NULL) {
10568 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10569 }
10570 {
10571 arg3 = &temp3;
10572 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10573 }
10574 if (obj3) {
10575 arg4 = PyInt_AsLong(obj3) ? true : false;
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10581
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 Py_INCREF(Py_None); resultobj = Py_None;
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj;
10594 wxDC *arg1 = (wxDC *) 0 ;
10595 wxString *arg2 = 0 ;
10596 int arg3 ;
10597 int arg4 ;
10598 bool temp2 = False ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 char *kwnames[] = {
10602 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10603 };
10604
10605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10607 {
10608 arg2 = wxString_in_helper(obj1);
10609 if (arg2 == NULL) SWIG_fail;
10610 temp2 = True;
10611 }
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10615
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 Py_INCREF(Py_None); resultobj = Py_None;
10620 {
10621 if (temp2)
10622 delete arg2;
10623 }
10624 return resultobj;
10625 fail:
10626 {
10627 if (temp2)
10628 delete arg2;
10629 }
10630 return NULL;
10631 }
10632
10633
10634 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj;
10636 wxDC *arg1 = (wxDC *) 0 ;
10637 wxString *arg2 = 0 ;
10638 wxPoint *arg3 = 0 ;
10639 bool temp2 = False ;
10640 wxPoint temp3 ;
10641 PyObject * obj0 = 0 ;
10642 PyObject * obj1 = 0 ;
10643 PyObject * obj2 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "self",(char *) "text",(char *) "pt", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10650 {
10651 arg2 = wxString_in_helper(obj1);
10652 if (arg2 == NULL) SWIG_fail;
10653 temp2 = True;
10654 }
10655 {
10656 arg3 = &temp3;
10657 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 Py_INCREF(Py_None); resultobj = Py_None;
10667 {
10668 if (temp2)
10669 delete arg2;
10670 }
10671 return resultobj;
10672 fail:
10673 {
10674 if (temp2)
10675 delete arg2;
10676 }
10677 return NULL;
10678 }
10679
10680
10681 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj;
10683 wxDC *arg1 = (wxDC *) 0 ;
10684 wxString *arg2 = 0 ;
10685 int arg3 ;
10686 int arg4 ;
10687 double arg5 ;
10688 bool temp2 = False ;
10689 PyObject * obj0 = 0 ;
10690 PyObject * obj1 = 0 ;
10691 char *kwnames[] = {
10692 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10693 };
10694
10695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10697 {
10698 arg2 = wxString_in_helper(obj1);
10699 if (arg2 == NULL) SWIG_fail;
10700 temp2 = True;
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10705
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 Py_INCREF(Py_None); resultobj = Py_None;
10710 {
10711 if (temp2)
10712 delete arg2;
10713 }
10714 return resultobj;
10715 fail:
10716 {
10717 if (temp2)
10718 delete arg2;
10719 }
10720 return NULL;
10721 }
10722
10723
10724 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject *resultobj;
10726 wxDC *arg1 = (wxDC *) 0 ;
10727 wxString *arg2 = 0 ;
10728 wxPoint *arg3 = 0 ;
10729 double arg4 ;
10730 bool temp2 = False ;
10731 wxPoint temp3 ;
10732 PyObject * obj0 = 0 ;
10733 PyObject * obj1 = 0 ;
10734 PyObject * obj2 = 0 ;
10735 char *kwnames[] = {
10736 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10737 };
10738
10739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10741 {
10742 arg2 = wxString_in_helper(obj1);
10743 if (arg2 == NULL) SWIG_fail;
10744 temp2 = True;
10745 }
10746 {
10747 arg3 = &temp3;
10748 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10749 }
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 Py_INCREF(Py_None); resultobj = Py_None;
10758 {
10759 if (temp2)
10760 delete arg2;
10761 }
10762 return resultobj;
10763 fail:
10764 {
10765 if (temp2)
10766 delete arg2;
10767 }
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxDC *arg1 = (wxDC *) 0 ;
10775 int arg2 ;
10776 int arg3 ;
10777 int arg4 ;
10778 int arg5 ;
10779 wxDC *arg6 = (wxDC *) 0 ;
10780 int arg7 ;
10781 int arg8 ;
10782 int arg9 = (int) wxCOPY ;
10783 bool arg10 = (bool) False ;
10784 int arg11 = (int) -1 ;
10785 int arg12 = (int) -1 ;
10786 bool result;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj5 = 0 ;
10789 PyObject * obj9 = 0 ;
10790 char *kwnames[] = {
10791 (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
10792 };
10793
10794 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;
10795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10796 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10797 if (obj9) {
10798 arg10 = PyInt_AsLong(obj9) ? true : false;
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10804
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = PyInt_FromLong((long)result);
10809 return resultobj;
10810 fail:
10811 return NULL;
10812 }
10813
10814
10815 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj;
10817 wxDC *arg1 = (wxDC *) 0 ;
10818 wxPoint *arg2 = 0 ;
10819 wxSize *arg3 = 0 ;
10820 wxDC *arg4 = (wxDC *) 0 ;
10821 wxPoint *arg5 = 0 ;
10822 int arg6 = (int) wxCOPY ;
10823 bool arg7 = (bool) False ;
10824 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10825 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10826 bool result;
10827 wxPoint temp2 ;
10828 wxSize temp3 ;
10829 wxPoint temp5 ;
10830 wxPoint temp8 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 PyObject * obj2 = 0 ;
10834 PyObject * obj3 = 0 ;
10835 PyObject * obj4 = 0 ;
10836 PyObject * obj6 = 0 ;
10837 PyObject * obj7 = 0 ;
10838 char *kwnames[] = {
10839 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10840 };
10841
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10844 {
10845 arg2 = &temp2;
10846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10847 }
10848 {
10849 arg3 = &temp3;
10850 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10851 }
10852 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10853 {
10854 arg5 = &temp5;
10855 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10856 }
10857 if (obj6) {
10858 arg7 = PyInt_AsLong(obj6) ? true : false;
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 if (obj7) {
10862 {
10863 arg8 = &temp8;
10864 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10865 }
10866 }
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 resultobj = PyInt_FromLong((long)result);
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj;
10883 wxDC *arg1 = (wxDC *) 0 ;
10884 int arg2 ;
10885 wxPoint *arg3 = (wxPoint *) 0 ;
10886 int arg4 = (int) 0 ;
10887 int arg5 = (int) 0 ;
10888 PyObject * obj0 = 0 ;
10889 PyObject * obj1 = 0 ;
10890 char *kwnames[] = {
10891 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10892 };
10893
10894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10896 {
10897 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10898 if (arg3 == NULL) SWIG_fail;
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 Py_INCREF(Py_None); resultobj = Py_None;
10908 {
10909 if (arg3) delete [] arg3;
10910 }
10911 return resultobj;
10912 fail:
10913 {
10914 if (arg3) delete [] arg3;
10915 }
10916 return NULL;
10917 }
10918
10919
10920 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxDC *arg1 = (wxDC *) 0 ;
10923 int arg2 ;
10924 wxPoint *arg3 = (wxPoint *) 0 ;
10925 int arg4 = (int) 0 ;
10926 int arg5 = (int) 0 ;
10927 int arg6 = (int) wxODDEVEN_RULE ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char *kwnames[] = {
10931 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10932 };
10933
10934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10936 {
10937 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10938 if (arg3 == NULL) SWIG_fail;
10939 }
10940 {
10941 PyThreadState* __tstate = wxPyBeginAllowThreads();
10942 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10943
10944 wxPyEndAllowThreads(__tstate);
10945 if (PyErr_Occurred()) SWIG_fail;
10946 }
10947 Py_INCREF(Py_None); resultobj = Py_None;
10948 {
10949 if (arg3) delete [] arg3;
10950 }
10951 return resultobj;
10952 fail:
10953 {
10954 if (arg3) delete [] arg3;
10955 }
10956 return NULL;
10957 }
10958
10959
10960 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10961 PyObject *resultobj;
10962 wxDC *arg1 = (wxDC *) 0 ;
10963 wxString *arg2 = 0 ;
10964 wxRect *arg3 = 0 ;
10965 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10966 int arg5 = (int) -1 ;
10967 bool temp2 = False ;
10968 wxRect temp3 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 PyObject * obj2 = 0 ;
10972 char *kwnames[] = {
10973 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10974 };
10975
10976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10978 {
10979 arg2 = wxString_in_helper(obj1);
10980 if (arg2 == NULL) SWIG_fail;
10981 temp2 = True;
10982 }
10983 {
10984 arg3 = &temp3;
10985 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10986 }
10987 {
10988 PyThreadState* __tstate = wxPyBeginAllowThreads();
10989 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10990
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 Py_INCREF(Py_None); resultobj = Py_None;
10995 {
10996 if (temp2)
10997 delete arg2;
10998 }
10999 return resultobj;
11000 fail:
11001 {
11002 if (temp2)
11003 delete arg2;
11004 }
11005 return NULL;
11006 }
11007
11008
11009 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11010 PyObject *resultobj;
11011 wxDC *arg1 = (wxDC *) 0 ;
11012 wxString *arg2 = 0 ;
11013 wxBitmap *arg3 = 0 ;
11014 wxRect *arg4 = 0 ;
11015 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11016 int arg6 = (int) -1 ;
11017 wxRect result;
11018 bool temp2 = False ;
11019 wxRect temp4 ;
11020 PyObject * obj0 = 0 ;
11021 PyObject * obj1 = 0 ;
11022 PyObject * obj2 = 0 ;
11023 PyObject * obj3 = 0 ;
11024 char *kwnames[] = {
11025 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11026 };
11027
11028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
11029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11030 {
11031 arg2 = wxString_in_helper(obj1);
11032 if (arg2 == NULL) SWIG_fail;
11033 temp2 = True;
11034 }
11035 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11036 if (arg3 == NULL) {
11037 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11038 }
11039 {
11040 arg4 = &temp4;
11041 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11042 }
11043 {
11044 PyThreadState* __tstate = wxPyBeginAllowThreads();
11045 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11046
11047 wxPyEndAllowThreads(__tstate);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 wxRect * resultptr;
11052 resultptr = new wxRect((wxRect &) result);
11053 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11054 }
11055 {
11056 if (temp2)
11057 delete arg2;
11058 }
11059 return resultobj;
11060 fail:
11061 {
11062 if (temp2)
11063 delete arg2;
11064 }
11065 return NULL;
11066 }
11067
11068
11069 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11070 PyObject *resultobj;
11071 wxDC *arg1 = (wxDC *) 0 ;
11072 int arg2 ;
11073 wxPoint *arg3 = (wxPoint *) 0 ;
11074 PyObject * obj0 = 0 ;
11075 PyObject * obj1 = 0 ;
11076 char *kwnames[] = {
11077 (char *) "self",(char *) "points", NULL
11078 };
11079
11080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11082 {
11083 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11084 if (arg3 == NULL) SWIG_fail;
11085 }
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 (arg1)->DrawSpline(arg2,arg3);
11089
11090 wxPyEndAllowThreads(__tstate);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 Py_INCREF(Py_None); resultobj = Py_None;
11094 {
11095 if (arg3) delete [] arg3;
11096 }
11097 return resultobj;
11098 fail:
11099 {
11100 if (arg3) delete [] arg3;
11101 }
11102 return NULL;
11103 }
11104
11105
11106 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj;
11108 wxDC *arg1 = (wxDC *) 0 ;
11109 PyObject * obj0 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "self", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 (arg1)->Clear();
11119
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 Py_INCREF(Py_None); resultobj = Py_None;
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxDC *arg1 = (wxDC *) 0 ;
11133 wxString *arg2 = 0 ;
11134 bool result;
11135 bool temp2 = False ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "self",(char *) "message", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11144 {
11145 arg2 = wxString_in_helper(obj1);
11146 if (arg2 == NULL) SWIG_fail;
11147 temp2 = True;
11148 }
11149 {
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
11151 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11152
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 resultobj = PyInt_FromLong((long)result);
11157 {
11158 if (temp2)
11159 delete arg2;
11160 }
11161 return resultobj;
11162 fail:
11163 {
11164 if (temp2)
11165 delete arg2;
11166 }
11167 return NULL;
11168 }
11169
11170
11171 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj;
11173 wxDC *arg1 = (wxDC *) 0 ;
11174 PyObject * obj0 = 0 ;
11175 char *kwnames[] = {
11176 (char *) "self", NULL
11177 };
11178
11179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
11183 (arg1)->EndDoc();
11184
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 Py_INCREF(Py_None); resultobj = Py_None;
11189 return resultobj;
11190 fail:
11191 return NULL;
11192 }
11193
11194
11195 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj;
11197 wxDC *arg1 = (wxDC *) 0 ;
11198 PyObject * obj0 = 0 ;
11199 char *kwnames[] = {
11200 (char *) "self", NULL
11201 };
11202
11203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 (arg1)->StartPage();
11208
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 Py_INCREF(Py_None); resultobj = Py_None;
11213 return resultobj;
11214 fail:
11215 return NULL;
11216 }
11217
11218
11219 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj;
11221 wxDC *arg1 = (wxDC *) 0 ;
11222 PyObject * obj0 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
11231 (arg1)->EndPage();
11232
11233 wxPyEndAllowThreads(__tstate);
11234 if (PyErr_Occurred()) SWIG_fail;
11235 }
11236 Py_INCREF(Py_None); resultobj = Py_None;
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj;
11245 wxDC *arg1 = (wxDC *) 0 ;
11246 wxFont *arg2 = 0 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 char *kwnames[] = {
11250 (char *) "self",(char *) "font", NULL
11251 };
11252
11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11255 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11256 if (arg2 == NULL) {
11257 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11258 }
11259 {
11260 PyThreadState* __tstate = wxPyBeginAllowThreads();
11261 (arg1)->SetFont((wxFont const &)*arg2);
11262
11263 wxPyEndAllowThreads(__tstate);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 }
11266 Py_INCREF(Py_None); resultobj = Py_None;
11267 return resultobj;
11268 fail:
11269 return NULL;
11270 }
11271
11272
11273 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxDC *arg1 = (wxDC *) 0 ;
11276 wxPen *arg2 = 0 ;
11277 PyObject * obj0 = 0 ;
11278 PyObject * obj1 = 0 ;
11279 char *kwnames[] = {
11280 (char *) "self",(char *) "pen", NULL
11281 };
11282
11283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
11284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11285 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11286 if (arg2 == NULL) {
11287 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11288 }
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 (arg1)->SetPen((wxPen const &)*arg2);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 Py_INCREF(Py_None); resultobj = Py_None;
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11304 PyObject *resultobj;
11305 wxDC *arg1 = (wxDC *) 0 ;
11306 wxBrush *arg2 = 0 ;
11307 PyObject * obj0 = 0 ;
11308 PyObject * obj1 = 0 ;
11309 char *kwnames[] = {
11310 (char *) "self",(char *) "brush", NULL
11311 };
11312
11313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
11314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11315 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11316 if (arg2 == NULL) {
11317 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11318 }
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 (arg1)->SetBrush((wxBrush const &)*arg2);
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 Py_INCREF(Py_None); resultobj = Py_None;
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj;
11335 wxDC *arg1 = (wxDC *) 0 ;
11336 wxBrush *arg2 = 0 ;
11337 PyObject * obj0 = 0 ;
11338 PyObject * obj1 = 0 ;
11339 char *kwnames[] = {
11340 (char *) "self",(char *) "brush", NULL
11341 };
11342
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
11344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11345 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11346 if (arg2 == NULL) {
11347 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11348 }
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 (arg1)->SetBackground((wxBrush const &)*arg2);
11352
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 Py_INCREF(Py_None); resultobj = Py_None;
11357 return resultobj;
11358 fail:
11359 return NULL;
11360 }
11361
11362
11363 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11364 PyObject *resultobj;
11365 wxDC *arg1 = (wxDC *) 0 ;
11366 int arg2 ;
11367 PyObject * obj0 = 0 ;
11368 char *kwnames[] = {
11369 (char *) "self",(char *) "mode", NULL
11370 };
11371
11372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
11373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11374 {
11375 PyThreadState* __tstate = wxPyBeginAllowThreads();
11376 (arg1)->SetBackgroundMode(arg2);
11377
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 Py_INCREF(Py_None); resultobj = Py_None;
11382 return resultobj;
11383 fail:
11384 return NULL;
11385 }
11386
11387
11388 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11389 PyObject *resultobj;
11390 wxDC *arg1 = (wxDC *) 0 ;
11391 wxPalette *arg2 = 0 ;
11392 PyObject * obj0 = 0 ;
11393 PyObject * obj1 = 0 ;
11394 char *kwnames[] = {
11395 (char *) "self",(char *) "palette", NULL
11396 };
11397
11398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
11399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11400 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11401 if (arg2 == NULL) {
11402 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11403 }
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 (arg1)->SetPalette((wxPalette const &)*arg2);
11407
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 Py_INCREF(Py_None); resultobj = Py_None;
11412 return resultobj;
11413 fail:
11414 return NULL;
11415 }
11416
11417
11418 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11419 PyObject *resultobj;
11420 wxDC *arg1 = (wxDC *) 0 ;
11421 int arg2 ;
11422 int arg3 ;
11423 int arg4 ;
11424 int arg5 ;
11425 PyObject * obj0 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11435
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 Py_INCREF(Py_None); resultobj = Py_None;
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11447 PyObject *resultobj;
11448 wxDC *arg1 = (wxDC *) 0 ;
11449 wxPoint *arg2 = 0 ;
11450 wxSize *arg3 = 0 ;
11451 wxPoint temp2 ;
11452 wxSize temp3 ;
11453 PyObject * obj0 = 0 ;
11454 PyObject * obj1 = 0 ;
11455 PyObject * obj2 = 0 ;
11456 char *kwnames[] = {
11457 (char *) "self",(char *) "pt",(char *) "sz", NULL
11458 };
11459
11460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
11461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11462 {
11463 arg2 = &temp2;
11464 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11465 }
11466 {
11467 arg3 = &temp3;
11468 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11469 }
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11473
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 Py_INCREF(Py_None); resultobj = Py_None;
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj;
11486 wxDC *arg1 = (wxDC *) 0 ;
11487 wxRect *arg2 = 0 ;
11488 wxRect temp2 ;
11489 PyObject * obj0 = 0 ;
11490 PyObject * obj1 = 0 ;
11491 char *kwnames[] = {
11492 (char *) "self",(char *) "rect", NULL
11493 };
11494
11495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11497 {
11498 arg2 = &temp2;
11499 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11500 }
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11504
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 Py_INCREF(Py_None); resultobj = Py_None;
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj;
11517 wxDC *arg1 = (wxDC *) 0 ;
11518 wxRegion *arg2 = 0 ;
11519 PyObject * obj0 = 0 ;
11520 PyObject * obj1 = 0 ;
11521 char *kwnames[] = {
11522 (char *) "self",(char *) "region", NULL
11523 };
11524
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11527 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11528 if (arg2 == NULL) {
11529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11530 }
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 Py_INCREF(Py_None); resultobj = Py_None;
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj;
11547 wxDC *arg1 = (wxDC *) 0 ;
11548 PyObject * obj0 = 0 ;
11549 char *kwnames[] = {
11550 (char *) "self", NULL
11551 };
11552
11553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 (arg1)->DestroyClippingRegion();
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 Py_INCREF(Py_None); resultobj = Py_None;
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj;
11571 wxDC *arg1 = (wxDC *) 0 ;
11572 int *arg2 = (int *) 0 ;
11573 int *arg3 = (int *) 0 ;
11574 int *arg4 = (int *) 0 ;
11575 int *arg5 = (int *) 0 ;
11576 int temp2 ;
11577 int temp3 ;
11578 int temp4 ;
11579 int temp5 ;
11580 PyObject * obj0 = 0 ;
11581 char *kwnames[] = {
11582 (char *) "self", NULL
11583 };
11584
11585 arg2 = &temp2;
11586 arg3 = &temp3;
11587 arg4 = &temp4;
11588 arg5 = &temp5;
11589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11594
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 Py_INCREF(Py_None); resultobj = Py_None;
11599 {
11600 PyObject *o = PyInt_FromLong((long) (*arg2));
11601 resultobj = t_output_helper(resultobj,o);
11602 }
11603 {
11604 PyObject *o = PyInt_FromLong((long) (*arg3));
11605 resultobj = t_output_helper(resultobj,o);
11606 }
11607 {
11608 PyObject *o = PyInt_FromLong((long) (*arg4));
11609 resultobj = t_output_helper(resultobj,o);
11610 }
11611 {
11612 PyObject *o = PyInt_FromLong((long) (*arg5));
11613 resultobj = t_output_helper(resultobj,o);
11614 }
11615 return resultobj;
11616 fail:
11617 return NULL;
11618 }
11619
11620
11621 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11622 PyObject *resultobj;
11623 wxDC *arg1 = (wxDC *) 0 ;
11624 wxRect result;
11625 PyObject * obj0 = 0 ;
11626 char *kwnames[] = {
11627 (char *) "self", NULL
11628 };
11629
11630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 result = wxDC_GetClippingRect(arg1);
11635
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 {
11640 wxRect * resultptr;
11641 resultptr = new wxRect((wxRect &) result);
11642 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11643 }
11644 return resultobj;
11645 fail:
11646 return NULL;
11647 }
11648
11649
11650 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj;
11652 wxDC *arg1 = (wxDC *) 0 ;
11653 int result;
11654 PyObject * obj0 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "self", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 result = (int)((wxDC const *)arg1)->GetCharHeight();
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 resultobj = PyInt_FromLong((long)result);
11669 return resultobj;
11670 fail:
11671 return NULL;
11672 }
11673
11674
11675 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj;
11677 wxDC *arg1 = (wxDC *) 0 ;
11678 int result;
11679 PyObject * obj0 = 0 ;
11680 char *kwnames[] = {
11681 (char *) "self", NULL
11682 };
11683
11684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11686 {
11687 PyThreadState* __tstate = wxPyBeginAllowThreads();
11688 result = (int)((wxDC const *)arg1)->GetCharWidth();
11689
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 resultobj = PyInt_FromLong((long)result);
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj;
11702 wxDC *arg1 = (wxDC *) 0 ;
11703 wxString *arg2 = 0 ;
11704 int *arg3 = (int *) 0 ;
11705 int *arg4 = (int *) 0 ;
11706 bool temp2 = False ;
11707 int temp3 ;
11708 int temp4 ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 char *kwnames[] = {
11712 (char *) "self",(char *) "string", NULL
11713 };
11714
11715 arg3 = &temp3;
11716 arg4 = &temp4;
11717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11719 {
11720 arg2 = wxString_in_helper(obj1);
11721 if (arg2 == NULL) SWIG_fail;
11722 temp2 = True;
11723 }
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11727
11728 wxPyEndAllowThreads(__tstate);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 Py_INCREF(Py_None); resultobj = Py_None;
11732 {
11733 PyObject *o = PyInt_FromLong((long) (*arg3));
11734 resultobj = t_output_helper(resultobj,o);
11735 }
11736 {
11737 PyObject *o = PyInt_FromLong((long) (*arg4));
11738 resultobj = t_output_helper(resultobj,o);
11739 }
11740 {
11741 if (temp2)
11742 delete arg2;
11743 }
11744 return resultobj;
11745 fail:
11746 {
11747 if (temp2)
11748 delete arg2;
11749 }
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 wxString *arg2 = 0 ;
11758 int *arg3 = (int *) 0 ;
11759 int *arg4 = (int *) 0 ;
11760 int *arg5 = (int *) 0 ;
11761 int *arg6 = (int *) 0 ;
11762 wxFont *arg7 = (wxFont *) NULL ;
11763 bool temp2 = False ;
11764 int temp3 ;
11765 int temp4 ;
11766 int temp5 ;
11767 int temp6 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 char *kwnames[] = {
11772 (char *) "self",(char *) "string",(char *) "font", NULL
11773 };
11774
11775 arg3 = &temp3;
11776 arg4 = &temp4;
11777 arg5 = &temp5;
11778 arg6 = &temp6;
11779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11781 {
11782 arg2 = wxString_in_helper(obj1);
11783 if (arg2 == NULL) SWIG_fail;
11784 temp2 = True;
11785 }
11786 if (obj2) {
11787 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11788 }
11789 {
11790 PyThreadState* __tstate = wxPyBeginAllowThreads();
11791 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11792
11793 wxPyEndAllowThreads(__tstate);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 Py_INCREF(Py_None); resultobj = Py_None;
11797 {
11798 PyObject *o = PyInt_FromLong((long) (*arg3));
11799 resultobj = t_output_helper(resultobj,o);
11800 }
11801 {
11802 PyObject *o = PyInt_FromLong((long) (*arg4));
11803 resultobj = t_output_helper(resultobj,o);
11804 }
11805 {
11806 PyObject *o = PyInt_FromLong((long) (*arg5));
11807 resultobj = t_output_helper(resultobj,o);
11808 }
11809 {
11810 PyObject *o = PyInt_FromLong((long) (*arg6));
11811 resultobj = t_output_helper(resultobj,o);
11812 }
11813 {
11814 if (temp2)
11815 delete arg2;
11816 }
11817 return resultobj;
11818 fail:
11819 {
11820 if (temp2)
11821 delete arg2;
11822 }
11823 return NULL;
11824 }
11825
11826
11827 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11828 PyObject *resultobj;
11829 wxDC *arg1 = (wxDC *) 0 ;
11830 wxString *arg2 = 0 ;
11831 int *arg3 = (int *) 0 ;
11832 int *arg4 = (int *) 0 ;
11833 int *arg5 = (int *) 0 ;
11834 wxFont *arg6 = (wxFont *) NULL ;
11835 bool temp2 = False ;
11836 int temp3 ;
11837 int temp4 ;
11838 int temp5 ;
11839 PyObject * obj0 = 0 ;
11840 PyObject * obj1 = 0 ;
11841 PyObject * obj2 = 0 ;
11842 char *kwnames[] = {
11843 (char *) "self",(char *) "text",(char *) "font", NULL
11844 };
11845
11846 arg3 = &temp3;
11847 arg4 = &temp4;
11848 arg5 = &temp5;
11849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11851 {
11852 arg2 = wxString_in_helper(obj1);
11853 if (arg2 == NULL) SWIG_fail;
11854 temp2 = True;
11855 }
11856 if (obj2) {
11857 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11858 }
11859 {
11860 PyThreadState* __tstate = wxPyBeginAllowThreads();
11861 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11862
11863 wxPyEndAllowThreads(__tstate);
11864 if (PyErr_Occurred()) SWIG_fail;
11865 }
11866 Py_INCREF(Py_None); resultobj = Py_None;
11867 {
11868 PyObject *o = PyInt_FromLong((long) (*arg3));
11869 resultobj = t_output_helper(resultobj,o);
11870 }
11871 {
11872 PyObject *o = PyInt_FromLong((long) (*arg4));
11873 resultobj = t_output_helper(resultobj,o);
11874 }
11875 {
11876 PyObject *o = PyInt_FromLong((long) (*arg5));
11877 resultobj = t_output_helper(resultobj,o);
11878 }
11879 {
11880 if (temp2)
11881 delete arg2;
11882 }
11883 return resultobj;
11884 fail:
11885 {
11886 if (temp2)
11887 delete arg2;
11888 }
11889 return NULL;
11890 }
11891
11892
11893 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11894 PyObject *resultobj;
11895 wxDC *arg1 = (wxDC *) 0 ;
11896 wxSize result;
11897 PyObject * obj0 = 0 ;
11898 char *kwnames[] = {
11899 (char *) "self", NULL
11900 };
11901
11902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (arg1)->GetSize();
11907
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 {
11912 wxSize * resultptr;
11913 resultptr = new wxSize((wxSize &) result);
11914 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11915 }
11916 return resultobj;
11917 fail:
11918 return NULL;
11919 }
11920
11921
11922 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11923 PyObject *resultobj;
11924 wxDC *arg1 = (wxDC *) 0 ;
11925 int *arg2 = (int *) 0 ;
11926 int *arg3 = (int *) 0 ;
11927 int temp2 ;
11928 int temp3 ;
11929 PyObject * obj0 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self", NULL
11932 };
11933
11934 arg2 = &temp2;
11935 arg3 = &temp3;
11936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11938 {
11939 PyThreadState* __tstate = wxPyBeginAllowThreads();
11940 (arg1)->GetSize(arg2,arg3);
11941
11942 wxPyEndAllowThreads(__tstate);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 Py_INCREF(Py_None); resultobj = Py_None;
11946 {
11947 PyObject *o = PyInt_FromLong((long) (*arg2));
11948 resultobj = t_output_helper(resultobj,o);
11949 }
11950 {
11951 PyObject *o = PyInt_FromLong((long) (*arg3));
11952 resultobj = t_output_helper(resultobj,o);
11953 }
11954 return resultobj;
11955 fail:
11956 return NULL;
11957 }
11958
11959
11960 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
11961 PyObject *resultobj;
11962 wxDC *arg1 = (wxDC *) 0 ;
11963 wxSize result;
11964 PyObject * obj0 = 0 ;
11965 char *kwnames[] = {
11966 (char *) "self", NULL
11967 };
11968
11969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
11970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = ((wxDC const *)arg1)->GetSizeMM();
11974
11975 wxPyEndAllowThreads(__tstate);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 {
11979 wxSize * resultptr;
11980 resultptr = new wxSize((wxSize &) result);
11981 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11982 }
11983 return resultobj;
11984 fail:
11985 return NULL;
11986 }
11987
11988
11989 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11990 PyObject *resultobj;
11991 wxDC *arg1 = (wxDC *) 0 ;
11992 int *arg2 = (int *) 0 ;
11993 int *arg3 = (int *) 0 ;
11994 int temp2 ;
11995 int temp3 ;
11996 PyObject * obj0 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self", NULL
11999 };
12000
12001 arg2 = &temp2;
12002 arg3 = &temp3;
12003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12008
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 Py_INCREF(Py_None); resultobj = Py_None;
12013 {
12014 PyObject *o = PyInt_FromLong((long) (*arg2));
12015 resultobj = t_output_helper(resultobj,o);
12016 }
12017 {
12018 PyObject *o = PyInt_FromLong((long) (*arg3));
12019 resultobj = t_output_helper(resultobj,o);
12020 }
12021 return resultobj;
12022 fail:
12023 return NULL;
12024 }
12025
12026
12027 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12028 PyObject *resultobj;
12029 wxDC *arg1 = (wxDC *) 0 ;
12030 int arg2 ;
12031 int result;
12032 PyObject * obj0 = 0 ;
12033 char *kwnames[] = {
12034 (char *) "self",(char *) "x", NULL
12035 };
12036
12037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
12038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12039 {
12040 PyThreadState* __tstate = wxPyBeginAllowThreads();
12041 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12042
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 resultobj = PyInt_FromLong((long)result);
12047 return resultobj;
12048 fail:
12049 return NULL;
12050 }
12051
12052
12053 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj;
12055 wxDC *arg1 = (wxDC *) 0 ;
12056 int arg2 ;
12057 int result;
12058 PyObject * obj0 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "self",(char *) "y", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
12064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12068
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 resultobj = PyInt_FromLong((long)result);
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxDC *arg1 = (wxDC *) 0 ;
12082 int arg2 ;
12083 int result;
12084 PyObject * obj0 = 0 ;
12085 char *kwnames[] = {
12086 (char *) "self",(char *) "x", NULL
12087 };
12088
12089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
12090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12094
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 resultobj = PyInt_FromLong((long)result);
12099 return resultobj;
12100 fail:
12101 return NULL;
12102 }
12103
12104
12105 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12106 PyObject *resultobj;
12107 wxDC *arg1 = (wxDC *) 0 ;
12108 int arg2 ;
12109 int result;
12110 PyObject * obj0 = 0 ;
12111 char *kwnames[] = {
12112 (char *) "self",(char *) "y", NULL
12113 };
12114
12115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
12116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12120
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 resultobj = PyInt_FromLong((long)result);
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj;
12133 wxDC *arg1 = (wxDC *) 0 ;
12134 int arg2 ;
12135 int result;
12136 PyObject * obj0 = 0 ;
12137 char *kwnames[] = {
12138 (char *) "self",(char *) "x", NULL
12139 };
12140
12141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
12142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 resultobj = PyInt_FromLong((long)result);
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxDC *arg1 = (wxDC *) 0 ;
12160 int arg2 ;
12161 int result;
12162 PyObject * obj0 = 0 ;
12163 char *kwnames[] = {
12164 (char *) "self",(char *) "y", NULL
12165 };
12166
12167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
12168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12169 {
12170 PyThreadState* __tstate = wxPyBeginAllowThreads();
12171 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
12172
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = PyInt_FromLong((long)result);
12177 return resultobj;
12178 fail:
12179 return NULL;
12180 }
12181
12182
12183 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12184 PyObject *resultobj;
12185 wxDC *arg1 = (wxDC *) 0 ;
12186 int arg2 ;
12187 int result;
12188 PyObject * obj0 = 0 ;
12189 char *kwnames[] = {
12190 (char *) "self",(char *) "x", NULL
12191 };
12192
12193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
12194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12195 {
12196 PyThreadState* __tstate = wxPyBeginAllowThreads();
12197 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
12198
12199 wxPyEndAllowThreads(__tstate);
12200 if (PyErr_Occurred()) SWIG_fail;
12201 }
12202 resultobj = PyInt_FromLong((long)result);
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj;
12211 wxDC *arg1 = (wxDC *) 0 ;
12212 int arg2 ;
12213 int result;
12214 PyObject * obj0 = 0 ;
12215 char *kwnames[] = {
12216 (char *) "self",(char *) "y", NULL
12217 };
12218
12219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
12220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
12224
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = PyInt_FromLong((long)result);
12229 return resultobj;
12230 fail:
12231 return NULL;
12232 }
12233
12234
12235 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12236 PyObject *resultobj;
12237 wxDC *arg1 = (wxDC *) 0 ;
12238 bool result;
12239 PyObject * obj0 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
12249
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 resultobj = PyInt_FromLong((long)result);
12254 return resultobj;
12255 fail:
12256 return NULL;
12257 }
12258
12259
12260 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12261 PyObject *resultobj;
12262 wxDC *arg1 = (wxDC *) 0 ;
12263 bool result;
12264 PyObject * obj0 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
12274
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 resultobj = PyInt_FromLong((long)result);
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
12286 PyObject *resultobj;
12287 wxDC *arg1 = (wxDC *) 0 ;
12288 int result;
12289 PyObject * obj0 = 0 ;
12290 char *kwnames[] = {
12291 (char *) "self", NULL
12292 };
12293
12294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
12295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 result = (int)((wxDC const *)arg1)->GetDepth();
12299
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = PyInt_FromLong((long)result);
12304 return resultobj;
12305 fail:
12306 return NULL;
12307 }
12308
12309
12310 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
12311 PyObject *resultobj;
12312 wxDC *arg1 = (wxDC *) 0 ;
12313 wxSize result;
12314 PyObject * obj0 = 0 ;
12315 char *kwnames[] = {
12316 (char *) "self", NULL
12317 };
12318
12319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
12320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = ((wxDC const *)arg1)->GetPPI();
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 {
12329 wxSize * resultptr;
12330 resultptr = new wxSize((wxSize &) result);
12331 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12332 }
12333 return resultobj;
12334 fail:
12335 return NULL;
12336 }
12337
12338
12339 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
12340 PyObject *resultobj;
12341 wxDC *arg1 = (wxDC *) 0 ;
12342 bool result;
12343 PyObject * obj0 = 0 ;
12344 char *kwnames[] = {
12345 (char *) "self", NULL
12346 };
12347
12348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
12349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (bool)((wxDC const *)arg1)->Ok();
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 resultobj = PyInt_FromLong((long)result);
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
12367 int result;
12368 PyObject * obj0 = 0 ;
12369 char *kwnames[] = {
12370 (char *) "self", NULL
12371 };
12372
12373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
12374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
12378
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = PyInt_FromLong((long)result);
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12390 PyObject *resultobj;
12391 wxDC *arg1 = (wxDC *) 0 ;
12392 wxBrush *result;
12393 PyObject * obj0 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 {
12403 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
12404 result = (wxBrush *) &_result_ref;
12405 }
12406
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj;
12419 wxDC *arg1 = (wxDC *) 0 ;
12420 wxBrush *result;
12421 PyObject * obj0 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "self", NULL
12424 };
12425
12426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
12427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 {
12431 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
12432 result = (wxBrush *) &_result_ref;
12433 }
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj;
12447 wxDC *arg1 = (wxDC *) 0 ;
12448 wxFont *result;
12449 PyObject * obj0 = 0 ;
12450 char *kwnames[] = {
12451 (char *) "self", NULL
12452 };
12453
12454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
12455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 {
12459 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
12460 result = (wxFont *) &_result_ref;
12461 }
12462
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
12467 return resultobj;
12468 fail:
12469 return NULL;
12470 }
12471
12472
12473 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj;
12475 wxDC *arg1 = (wxDC *) 0 ;
12476 wxPen *result;
12477 PyObject * obj0 = 0 ;
12478 char *kwnames[] = {
12479 (char *) "self", NULL
12480 };
12481
12482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
12483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 {
12487 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
12488 result = (wxPen *) &_result_ref;
12489 }
12490
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
12495 return resultobj;
12496 fail:
12497 return NULL;
12498 }
12499
12500
12501 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12502 PyObject *resultobj;
12503 wxDC *arg1 = (wxDC *) 0 ;
12504 wxColour *result;
12505 PyObject * obj0 = 0 ;
12506 char *kwnames[] = {
12507 (char *) "self", NULL
12508 };
12509
12510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 {
12515 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12516 result = (wxColour *) &_result_ref;
12517 }
12518
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12523 return resultobj;
12524 fail:
12525 return NULL;
12526 }
12527
12528
12529 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj;
12531 wxDC *arg1 = (wxDC *) 0 ;
12532 wxColour *result;
12533 PyObject * obj0 = 0 ;
12534 char *kwnames[] = {
12535 (char *) "self", NULL
12536 };
12537
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 {
12543 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12544 result = (wxColour *) &_result_ref;
12545 }
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12558 PyObject *resultobj;
12559 wxDC *arg1 = (wxDC *) 0 ;
12560 wxColour *arg2 = 0 ;
12561 wxColour temp2 ;
12562 PyObject * obj0 = 0 ;
12563 PyObject * obj1 = 0 ;
12564 char *kwnames[] = {
12565 (char *) "self",(char *) "colour", NULL
12566 };
12567
12568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12570 {
12571 arg2 = &temp2;
12572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12573 }
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetTextForeground((wxColour const &)*arg2);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 Py_INCREF(Py_None); resultobj = Py_None;
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 wxDC *arg1 = (wxDC *) 0 ;
12591 wxColour *arg2 = 0 ;
12592 wxColour temp2 ;
12593 PyObject * obj0 = 0 ;
12594 PyObject * obj1 = 0 ;
12595 char *kwnames[] = {
12596 (char *) "self",(char *) "colour", NULL
12597 };
12598
12599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12601 {
12602 arg2 = &temp2;
12603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12604 }
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->SetTextBackground((wxColour const &)*arg2);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxDC *arg1 = (wxDC *) 0 ;
12622 int result;
12623 PyObject * obj0 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "self", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (int)((wxDC const *)arg1)->GetMapMode();
12633
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = PyInt_FromLong((long)result);
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj;
12646 wxDC *arg1 = (wxDC *) 0 ;
12647 int arg2 ;
12648 PyObject * obj0 = 0 ;
12649 char *kwnames[] = {
12650 (char *) "self",(char *) "mode", NULL
12651 };
12652
12653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->SetMapMode(arg2);
12658
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 Py_INCREF(Py_None); resultobj = Py_None;
12663 return resultobj;
12664 fail:
12665 return NULL;
12666 }
12667
12668
12669 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj;
12671 wxDC *arg1 = (wxDC *) 0 ;
12672 double *arg2 = (double *) 0 ;
12673 double *arg3 = (double *) 0 ;
12674 double temp2 ;
12675 double temp3 ;
12676 PyObject * obj0 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self", NULL
12679 };
12680
12681 arg2 = &temp2;
12682 arg3 = &temp3;
12683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 Py_INCREF(Py_None); resultobj = Py_None;
12693 {
12694 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12695 resultobj = t_output_helper(resultobj,o);
12696 }
12697 {
12698 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12699 resultobj = t_output_helper(resultobj,o);
12700 }
12701 return resultobj;
12702 fail:
12703 return NULL;
12704 }
12705
12706
12707 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12708 PyObject *resultobj;
12709 wxDC *arg1 = (wxDC *) 0 ;
12710 double arg2 ;
12711 double arg3 ;
12712 PyObject * obj0 = 0 ;
12713 char *kwnames[] = {
12714 (char *) "self",(char *) "x",(char *) "y", NULL
12715 };
12716
12717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 (arg1)->SetUserScale(arg2,arg3);
12722
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 Py_INCREF(Py_None); resultobj = Py_None;
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj;
12735 wxDC *arg1 = (wxDC *) 0 ;
12736 double *arg2 = (double *) 0 ;
12737 double *arg3 = (double *) 0 ;
12738 double temp2 ;
12739 double temp3 ;
12740 PyObject * obj0 = 0 ;
12741 char *kwnames[] = {
12742 (char *) "self", NULL
12743 };
12744
12745 arg2 = &temp2;
12746 arg3 = &temp3;
12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12749 {
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
12751 (arg1)->GetLogicalScale(arg2,arg3);
12752
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 Py_INCREF(Py_None); resultobj = Py_None;
12757 {
12758 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12759 resultobj = t_output_helper(resultobj,o);
12760 }
12761 {
12762 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12763 resultobj = t_output_helper(resultobj,o);
12764 }
12765 return resultobj;
12766 fail:
12767 return NULL;
12768 }
12769
12770
12771 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12772 PyObject *resultobj;
12773 wxDC *arg1 = (wxDC *) 0 ;
12774 double arg2 ;
12775 double arg3 ;
12776 PyObject * obj0 = 0 ;
12777 char *kwnames[] = {
12778 (char *) "self",(char *) "x",(char *) "y", NULL
12779 };
12780
12781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 (arg1)->SetLogicalScale(arg2,arg3);
12786
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 Py_INCREF(Py_None); resultobj = Py_None;
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 wxDC *arg1 = (wxDC *) 0 ;
12800 wxPoint result;
12801 PyObject * obj0 = 0 ;
12802 char *kwnames[] = {
12803 (char *) "self", NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12808 {
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12811
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 {
12816 wxPoint * resultptr;
12817 resultptr = new wxPoint((wxPoint &) result);
12818 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12819 }
12820 return resultobj;
12821 fail:
12822 return NULL;
12823 }
12824
12825
12826 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12827 PyObject *resultobj;
12828 wxDC *arg1 = (wxDC *) 0 ;
12829 int *arg2 = (int *) 0 ;
12830 int *arg3 = (int *) 0 ;
12831 int temp2 ;
12832 int temp3 ;
12833 PyObject * obj0 = 0 ;
12834 char *kwnames[] = {
12835 (char *) "self", NULL
12836 };
12837
12838 arg2 = &temp2;
12839 arg3 = &temp3;
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12845
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 Py_INCREF(Py_None); resultobj = Py_None;
12850 {
12851 PyObject *o = PyInt_FromLong((long) (*arg2));
12852 resultobj = t_output_helper(resultobj,o);
12853 }
12854 {
12855 PyObject *o = PyInt_FromLong((long) (*arg3));
12856 resultobj = t_output_helper(resultobj,o);
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxDC *arg1 = (wxDC *) 0 ;
12867 int arg2 ;
12868 int arg3 ;
12869 PyObject * obj0 = 0 ;
12870 char *kwnames[] = {
12871 (char *) "self",(char *) "x",(char *) "y", NULL
12872 };
12873
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 (arg1)->SetLogicalOrigin(arg2,arg3);
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 Py_INCREF(Py_None); resultobj = Py_None;
12884 return resultobj;
12885 fail:
12886 return NULL;
12887 }
12888
12889
12890 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj;
12892 wxDC *arg1 = (wxDC *) 0 ;
12893 wxPoint result;
12894 PyObject * obj0 = 0 ;
12895 char *kwnames[] = {
12896 (char *) "self", NULL
12897 };
12898
12899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12901 {
12902 PyThreadState* __tstate = wxPyBeginAllowThreads();
12903 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12904
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 {
12909 wxPoint * resultptr;
12910 resultptr = new wxPoint((wxPoint &) result);
12911 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12912 }
12913 return resultobj;
12914 fail:
12915 return NULL;
12916 }
12917
12918
12919 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject *resultobj;
12921 wxDC *arg1 = (wxDC *) 0 ;
12922 int *arg2 = (int *) 0 ;
12923 int *arg3 = (int *) 0 ;
12924 int temp2 ;
12925 int temp3 ;
12926 PyObject * obj0 = 0 ;
12927 char *kwnames[] = {
12928 (char *) "self", NULL
12929 };
12930
12931 arg2 = &temp2;
12932 arg3 = &temp3;
12933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12938
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 Py_INCREF(Py_None); resultobj = Py_None;
12943 {
12944 PyObject *o = PyInt_FromLong((long) (*arg2));
12945 resultobj = t_output_helper(resultobj,o);
12946 }
12947 {
12948 PyObject *o = PyInt_FromLong((long) (*arg3));
12949 resultobj = t_output_helper(resultobj,o);
12950 }
12951 return resultobj;
12952 fail:
12953 return NULL;
12954 }
12955
12956
12957 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxDC *arg1 = (wxDC *) 0 ;
12960 int arg2 ;
12961 int arg3 ;
12962 PyObject * obj0 = 0 ;
12963 char *kwnames[] = {
12964 (char *) "self",(char *) "x",(char *) "y", NULL
12965 };
12966
12967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 (arg1)->SetDeviceOrigin(arg2,arg3);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 Py_INCREF(Py_None); resultobj = Py_None;
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12984 PyObject *resultobj;
12985 wxDC *arg1 = (wxDC *) 0 ;
12986 bool arg2 ;
12987 bool arg3 ;
12988 PyObject * obj0 = 0 ;
12989 PyObject * obj1 = 0 ;
12990 PyObject * obj2 = 0 ;
12991 char *kwnames[] = {
12992 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12993 };
12994
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12997 arg2 = PyInt_AsLong(obj1) ? true : false;
12998 if (PyErr_Occurred()) SWIG_fail;
12999 arg3 = PyInt_AsLong(obj2) ? true : false;
13000 if (PyErr_Occurred()) SWIG_fail;
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 (arg1)->SetAxisOrientation(arg2,arg3);
13004
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 Py_INCREF(Py_None); resultobj = Py_None;
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxDC *arg1 = (wxDC *) 0 ;
13018 int result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "self", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13029
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 resultobj = PyInt_FromLong((long)result);
13034 return resultobj;
13035 fail:
13036 return NULL;
13037 }
13038
13039
13040 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj;
13042 wxDC *arg1 = (wxDC *) 0 ;
13043 int arg2 ;
13044 PyObject * obj0 = 0 ;
13045 char *kwnames[] = {
13046 (char *) "self",(char *) "function", NULL
13047 };
13048
13049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
13050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 (arg1)->SetLogicalFunction(arg2);
13054
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 Py_INCREF(Py_None); resultobj = Py_None;
13059 return resultobj;
13060 fail:
13061 return NULL;
13062 }
13063
13064
13065 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj;
13067 wxDC *arg1 = (wxDC *) 0 ;
13068 bool arg2 ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 char *kwnames[] = {
13072 (char *) "self",(char *) "opt", NULL
13073 };
13074
13075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13077 arg2 = PyInt_AsLong(obj1) ? true : false;
13078 if (PyErr_Occurred()) SWIG_fail;
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 (arg1)->SetOptimization(arg2);
13082
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 Py_INCREF(Py_None); resultobj = Py_None;
13087 return resultobj;
13088 fail:
13089 return NULL;
13090 }
13091
13092
13093 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13094 PyObject *resultobj;
13095 wxDC *arg1 = (wxDC *) 0 ;
13096 bool result;
13097 PyObject * obj0 = 0 ;
13098 char *kwnames[] = {
13099 (char *) "self", NULL
13100 };
13101
13102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
13103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (bool)(arg1)->GetOptimization();
13107
13108 wxPyEndAllowThreads(__tstate);
13109 if (PyErr_Occurred()) SWIG_fail;
13110 }
13111 resultobj = PyInt_FromLong((long)result);
13112 return resultobj;
13113 fail:
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxDC *arg1 = (wxDC *) 0 ;
13121 int arg2 ;
13122 int arg3 ;
13123 PyObject * obj0 = 0 ;
13124 char *kwnames[] = {
13125 (char *) "self",(char *) "x",(char *) "y", NULL
13126 };
13127
13128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
13129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 (arg1)->CalcBoundingBox(arg2,arg3);
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 Py_INCREF(Py_None); resultobj = Py_None;
13138 return resultobj;
13139 fail:
13140 return NULL;
13141 }
13142
13143
13144 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxDC *arg1 = (wxDC *) 0 ;
13147 PyObject * obj0 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
13153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 (arg1)->ResetBoundingBox();
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 Py_INCREF(Py_None); resultobj = Py_None;
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxDC *arg1 = (wxDC *) 0 ;
13171 int result;
13172 PyObject * obj0 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 result = (int)((wxDC const *)arg1)->MinX();
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = PyInt_FromLong((long)result);
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj;
13195 wxDC *arg1 = (wxDC *) 0 ;
13196 int result;
13197 PyObject * obj0 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
13203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (int)((wxDC const *)arg1)->MaxX();
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 resultobj = PyInt_FromLong((long)result);
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
13219 PyObject *resultobj;
13220 wxDC *arg1 = (wxDC *) 0 ;
13221 int result;
13222 PyObject * obj0 = 0 ;
13223 char *kwnames[] = {
13224 (char *) "self", NULL
13225 };
13226
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
13228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13229 {
13230 PyThreadState* __tstate = wxPyBeginAllowThreads();
13231 result = (int)((wxDC const *)arg1)->MinY();
13232
13233 wxPyEndAllowThreads(__tstate);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 resultobj = PyInt_FromLong((long)result);
13237 return resultobj;
13238 fail:
13239 return NULL;
13240 }
13241
13242
13243 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
13244 PyObject *resultobj;
13245 wxDC *arg1 = (wxDC *) 0 ;
13246 int result;
13247 PyObject * obj0 = 0 ;
13248 char *kwnames[] = {
13249 (char *) "self", NULL
13250 };
13251
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
13253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13254 {
13255 PyThreadState* __tstate = wxPyBeginAllowThreads();
13256 result = (int)((wxDC const *)arg1)->MaxY();
13257
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = PyInt_FromLong((long)result);
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj;
13270 wxDC *arg1 = (wxDC *) 0 ;
13271 int *arg2 = (int *) 0 ;
13272 int *arg3 = (int *) 0 ;
13273 int *arg4 = (int *) 0 ;
13274 int *arg5 = (int *) 0 ;
13275 int temp2 ;
13276 int temp3 ;
13277 int temp4 ;
13278 int temp5 ;
13279 PyObject * obj0 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self", NULL
13282 };
13283
13284 arg2 = &temp2;
13285 arg3 = &temp3;
13286 arg4 = &temp4;
13287 arg5 = &temp5;
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
13289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 Py_INCREF(Py_None); resultobj = Py_None;
13298 {
13299 PyObject *o = PyInt_FromLong((long) (*arg2));
13300 resultobj = t_output_helper(resultobj,o);
13301 }
13302 {
13303 PyObject *o = PyInt_FromLong((long) (*arg3));
13304 resultobj = t_output_helper(resultobj,o);
13305 }
13306 {
13307 PyObject *o = PyInt_FromLong((long) (*arg4));
13308 resultobj = t_output_helper(resultobj,o);
13309 }
13310 {
13311 PyObject *o = PyInt_FromLong((long) (*arg5));
13312 resultobj = t_output_helper(resultobj,o);
13313 }
13314 return resultobj;
13315 fail:
13316 return NULL;
13317 }
13318
13319
13320 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj;
13322 wxDC *arg1 = (wxDC *) 0 ;
13323 PyObject *arg2 = (PyObject *) 0 ;
13324 PyObject *arg3 = (PyObject *) 0 ;
13325 PyObject *arg4 = (PyObject *) 0 ;
13326 PyObject *result;
13327 PyObject * obj0 = 0 ;
13328 PyObject * obj1 = 0 ;
13329 PyObject * obj2 = 0 ;
13330 PyObject * obj3 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13337 arg2 = obj1;
13338 arg3 = obj2;
13339 arg4 = obj3;
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = result;
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxDC *arg1 = (wxDC *) 0 ;
13357 PyObject *arg2 = (PyObject *) 0 ;
13358 PyObject *arg3 = (PyObject *) 0 ;
13359 PyObject *arg4 = (PyObject *) 0 ;
13360 PyObject *result;
13361 PyObject * obj0 = 0 ;
13362 PyObject * obj1 = 0 ;
13363 PyObject * obj2 = 0 ;
13364 PyObject * obj3 = 0 ;
13365 char *kwnames[] = {
13366 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13367 };
13368
13369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13371 arg2 = obj1;
13372 arg3 = obj2;
13373 arg4 = obj3;
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 resultobj = result;
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj;
13390 wxDC *arg1 = (wxDC *) 0 ;
13391 PyObject *arg2 = (PyObject *) 0 ;
13392 PyObject *arg3 = (PyObject *) 0 ;
13393 PyObject *arg4 = (PyObject *) 0 ;
13394 PyObject *result;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 PyObject * obj2 = 0 ;
13398 PyObject * obj3 = 0 ;
13399 char *kwnames[] = {
13400 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13405 arg2 = obj1;
13406 arg3 = obj2;
13407 arg4 = obj3;
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
13411
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = result;
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxDC *arg1 = (wxDC *) 0 ;
13425 PyObject *arg2 = (PyObject *) 0 ;
13426 PyObject *arg3 = (PyObject *) 0 ;
13427 PyObject *arg4 = (PyObject *) 0 ;
13428 PyObject *result;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 PyObject * obj2 = 0 ;
13432 PyObject * obj3 = 0 ;
13433 char *kwnames[] = {
13434 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13435 };
13436
13437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13439 arg2 = obj1;
13440 arg3 = obj2;
13441 arg4 = obj3;
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
13445
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 resultobj = result;
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj;
13458 wxDC *arg1 = (wxDC *) 0 ;
13459 PyObject *arg2 = (PyObject *) 0 ;
13460 PyObject *arg3 = (PyObject *) 0 ;
13461 PyObject *arg4 = (PyObject *) 0 ;
13462 PyObject *result;
13463 PyObject * obj0 = 0 ;
13464 PyObject * obj1 = 0 ;
13465 PyObject * obj2 = 0 ;
13466 PyObject * obj3 = 0 ;
13467 char *kwnames[] = {
13468 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13469 };
13470
13471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13473 arg2 = obj1;
13474 arg3 = obj2;
13475 arg4 = obj3;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = result;
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
13491 PyObject *resultobj;
13492 wxDC *arg1 = (wxDC *) 0 ;
13493 PyObject *arg2 = (PyObject *) 0 ;
13494 PyObject *arg3 = (PyObject *) 0 ;
13495 PyObject *arg4 = (PyObject *) 0 ;
13496 PyObject *arg5 = (PyObject *) 0 ;
13497 PyObject *result;
13498 PyObject * obj0 = 0 ;
13499 PyObject * obj1 = 0 ;
13500 PyObject * obj2 = 0 ;
13501 PyObject * obj3 = 0 ;
13502 PyObject * obj4 = 0 ;
13503 char *kwnames[] = {
13504 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13505 };
13506
13507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13509 arg2 = obj1;
13510 arg3 = obj2;
13511 arg4 = obj3;
13512 arg5 = obj4;
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13516
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = result;
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13528 PyObject *obj;
13529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13530 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13531 Py_INCREF(obj);
13532 return Py_BuildValue((char *)"");
13533 }
13534 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxMemoryDC *result;
13537 char *kwnames[] = {
13538 NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (wxMemoryDC *)new wxMemoryDC();
13545
13546 wxPyEndAllowThreads(__tstate);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13550 return resultobj;
13551 fail:
13552 return NULL;
13553 }
13554
13555
13556 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13557 PyObject *resultobj;
13558 wxDC *arg1 = (wxDC *) 0 ;
13559 wxMemoryDC *result;
13560 PyObject * obj0 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "oldDC", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13567 {
13568 PyThreadState* __tstate = wxPyBeginAllowThreads();
13569 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13570
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj;
13583 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13584 wxBitmap *arg2 = 0 ;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 char *kwnames[] = {
13588 (char *) "self",(char *) "bitmap", NULL
13589 };
13590
13591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13593 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13594 if (arg2 == NULL) {
13595 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13596 }
13597 {
13598 PyThreadState* __tstate = wxPyBeginAllowThreads();
13599 (arg1)->SelectObject((wxBitmap const &)*arg2);
13600
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 Py_INCREF(Py_None); resultobj = Py_None;
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13612 PyObject *obj;
13613 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13614 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13615 Py_INCREF(obj);
13616 return Py_BuildValue((char *)"");
13617 }
13618 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxDC *arg1 = (wxDC *) 0 ;
13621 wxBitmap *arg2 = 0 ;
13622 wxBufferedDC *result;
13623 PyObject * obj0 = 0 ;
13624 PyObject * obj1 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "dc",(char *) "buffer", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13631 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13632 if (arg2 == NULL) {
13633 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13634 }
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxDC *arg1 = (wxDC *) 0 ;
13652 wxSize *arg2 = 0 ;
13653 wxBufferedDC *result;
13654 wxSize temp2 ;
13655 PyObject * obj0 = 0 ;
13656 PyObject * obj1 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "dc",(char *) "area", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13663 {
13664 arg2 = &temp2;
13665 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13666 }
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj;
13683 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13684 PyObject * obj0 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 (arg1)->UnMask();
13694
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 Py_INCREF(Py_None); resultobj = Py_None;
13699 return resultobj;
13700 fail:
13701 return NULL;
13702 }
13703
13704
13705 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13706 PyObject *obj;
13707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13708 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13709 Py_INCREF(obj);
13710 return Py_BuildValue((char *)"");
13711 }
13712 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxWindow *arg1 = (wxWindow *) 0 ;
13715 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13716 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13717 wxBufferedPaintDC *result;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "window",(char *) "buffer", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13726 if (obj1) {
13727 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13728 if (arg2 == NULL) {
13729 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13730 }
13731 }
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13735
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13747 PyObject *obj;
13748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13749 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13750 Py_INCREF(obj);
13751 return Py_BuildValue((char *)"");
13752 }
13753 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj;
13755 wxScreenDC *result;
13756 char *kwnames[] = {
13757 NULL
13758 };
13759
13760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 result = (wxScreenDC *)new wxScreenDC();
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13778 wxWindow *arg2 = (wxWindow *) 0 ;
13779 bool result;
13780 PyObject * obj0 = 0 ;
13781 PyObject * obj1 = 0 ;
13782 char *kwnames[] = {
13783 (char *) "self",(char *) "window", NULL
13784 };
13785
13786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13788 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13789 {
13790 PyThreadState* __tstate = wxPyBeginAllowThreads();
13791 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13792
13793 wxPyEndAllowThreads(__tstate);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 }
13796 resultobj = PyInt_FromLong((long)result);
13797 return resultobj;
13798 fail:
13799 return NULL;
13800 }
13801
13802
13803 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj;
13805 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13806 wxRect *arg2 = (wxRect *) NULL ;
13807 bool result;
13808 PyObject * obj0 = 0 ;
13809 PyObject * obj1 = 0 ;
13810 char *kwnames[] = {
13811 (char *) "self",(char *) "rect", NULL
13812 };
13813
13814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13816 if (obj1) {
13817 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13818 }
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13822
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = PyInt_FromLong((long)result);
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj;
13835 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13836 bool result;
13837 PyObject * obj0 = 0 ;
13838 char *kwnames[] = {
13839 (char *) "self", NULL
13840 };
13841
13842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13844 {
13845 PyThreadState* __tstate = wxPyBeginAllowThreads();
13846 result = (bool)(arg1)->EndDrawingOnTop();
13847
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 resultobj = PyInt_FromLong((long)result);
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13859 PyObject *obj;
13860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13861 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13862 Py_INCREF(obj);
13863 return Py_BuildValue((char *)"");
13864 }
13865 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj;
13867 wxWindow *arg1 = (wxWindow *) 0 ;
13868 wxClientDC *result;
13869 PyObject * obj0 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "win", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 result = (wxClientDC *)new wxClientDC(arg1);
13879
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13884 return resultobj;
13885 fail:
13886 return NULL;
13887 }
13888
13889
13890 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13891 PyObject *obj;
13892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13893 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13894 Py_INCREF(obj);
13895 return Py_BuildValue((char *)"");
13896 }
13897 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13898 PyObject *resultobj;
13899 wxWindow *arg1 = (wxWindow *) 0 ;
13900 wxPaintDC *result;
13901 PyObject * obj0 = 0 ;
13902 char *kwnames[] = {
13903 (char *) "win", NULL
13904 };
13905
13906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 result = (wxPaintDC *)new wxPaintDC(arg1);
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13923 PyObject *obj;
13924 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13925 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13926 Py_INCREF(obj);
13927 return Py_BuildValue((char *)"");
13928 }
13929 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13930 PyObject *resultobj;
13931 wxWindow *arg1 = (wxWindow *) 0 ;
13932 wxWindowDC *result;
13933 PyObject * obj0 = 0 ;
13934 char *kwnames[] = {
13935 (char *) "win", NULL
13936 };
13937
13938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 result = (wxWindowDC *)new wxWindowDC(arg1);
13943
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13948 return resultobj;
13949 fail:
13950 return NULL;
13951 }
13952
13953
13954 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13955 PyObject *obj;
13956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13957 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13958 Py_INCREF(obj);
13959 return Py_BuildValue((char *)"");
13960 }
13961 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13962 PyObject *resultobj;
13963 wxDC *arg1 = 0 ;
13964 bool arg2 ;
13965 wxMirrorDC *result;
13966 PyObject * obj0 = 0 ;
13967 PyObject * obj1 = 0 ;
13968 char *kwnames[] = {
13969 (char *) "dc",(char *) "mirror", NULL
13970 };
13971
13972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13974 if (arg1 == NULL) {
13975 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13976 }
13977 arg2 = PyInt_AsLong(obj1) ? true : false;
13978 if (PyErr_Occurred()) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13994 PyObject *obj;
13995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13996 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13997 Py_INCREF(obj);
13998 return Py_BuildValue((char *)"");
13999 }
14000 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxPrintData *arg1 = 0 ;
14003 wxPostScriptDC *result;
14004 PyObject * obj0 = 0 ;
14005 char *kwnames[] = {
14006 (char *) "printData", NULL
14007 };
14008
14009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
14010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14011 if (arg1 == NULL) {
14012 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14013 }
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
14017
14018 wxPyEndAllowThreads(__tstate);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 }
14021 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
14022 return resultobj;
14023 fail:
14024 return NULL;
14025 }
14026
14027
14028 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14029 PyObject *resultobj;
14030 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14031 wxPrintData *result;
14032 PyObject * obj0 = 0 ;
14033 char *kwnames[] = {
14034 (char *) "self", NULL
14035 };
14036
14037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
14038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 {
14042 wxPrintData &_result_ref = (arg1)->GetPrintData();
14043 result = (wxPrintData *) &_result_ref;
14044 }
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj;
14058 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14059 wxPrintData *arg2 = 0 ;
14060 PyObject * obj0 = 0 ;
14061 PyObject * obj1 = 0 ;
14062 char *kwnames[] = {
14063 (char *) "self",(char *) "data", NULL
14064 };
14065
14066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
14067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14069 if (arg2 == NULL) {
14070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14071 }
14072 {
14073 PyThreadState* __tstate = wxPyBeginAllowThreads();
14074 (arg1)->SetPrintData((wxPrintData const &)*arg2);
14075
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 Py_INCREF(Py_None); resultobj = Py_None;
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14087 PyObject *resultobj;
14088 int arg1 ;
14089 char *kwnames[] = {
14090 (char *) "ppi", NULL
14091 };
14092
14093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 wxPostScriptDC::SetResolution(arg1);
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 Py_INCREF(Py_None); resultobj = Py_None;
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 int result;
14111 char *kwnames[] = {
14112 NULL
14113 };
14114
14115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (int)wxPostScriptDC::GetResolution();
14119
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 resultobj = PyInt_FromLong((long)result);
14124 return resultobj;
14125 fail:
14126 return NULL;
14127 }
14128
14129
14130 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
14131 PyObject *obj;
14132 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14133 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
14134 Py_INCREF(obj);
14135 return Py_BuildValue((char *)"");
14136 }
14137 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxString const &arg1_defvalue = wxPyEmptyString ;
14140 wxString *arg1 = (wxString *) &arg1_defvalue ;
14141 wxMetaFile *result;
14142 bool temp1 = False ;
14143 PyObject * obj0 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "filename", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
14149 if (obj0) {
14150 {
14151 arg1 = wxString_in_helper(obj0);
14152 if (arg1 == NULL) SWIG_fail;
14153 temp1 = True;
14154 }
14155 }
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
14159
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
14164 {
14165 if (temp1)
14166 delete arg1;
14167 }
14168 return resultobj;
14169 fail:
14170 {
14171 if (temp1)
14172 delete arg1;
14173 }
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14181 PyObject * obj0 = 0 ;
14182 char *kwnames[] = {
14183 (char *) "self", NULL
14184 };
14185
14186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
14187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 delete arg1;
14191
14192 wxPyEndAllowThreads(__tstate);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 Py_INCREF(Py_None); resultobj = Py_None;
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj;
14204 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14205 bool result;
14206 PyObject * obj0 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 result = (bool)(arg1)->Ok();
14216
14217 wxPyEndAllowThreads(__tstate);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 }
14220 resultobj = PyInt_FromLong((long)result);
14221 return resultobj;
14222 fail:
14223 return NULL;
14224 }
14225
14226
14227 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
14228 PyObject *resultobj;
14229 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14230 int arg2 = (int) 0 ;
14231 int arg3 = (int) 0 ;
14232 bool result;
14233 PyObject * obj0 = 0 ;
14234 char *kwnames[] = {
14235 (char *) "self",(char *) "width",(char *) "height", NULL
14236 };
14237
14238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail;
14239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14240 {
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (bool)(arg1)->SetClipboard(arg2,arg3);
14243
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 resultobj = PyInt_FromLong((long)result);
14248 return resultobj;
14249 fail:
14250 return NULL;
14251 }
14252
14253
14254 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14255 PyObject *resultobj;
14256 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14257 wxSize result;
14258 PyObject * obj0 = 0 ;
14259 char *kwnames[] = {
14260 (char *) "self", NULL
14261 };
14262
14263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
14264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 result = (arg1)->GetSize();
14268
14269 wxPyEndAllowThreads(__tstate);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 }
14272 {
14273 wxSize * resultptr;
14274 resultptr = new wxSize((wxSize &) result);
14275 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14276 }
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj;
14285 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14286 int result;
14287 PyObject * obj0 = 0 ;
14288 char *kwnames[] = {
14289 (char *) "self", NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
14293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14294 {
14295 PyThreadState* __tstate = wxPyBeginAllowThreads();
14296 result = (int)(arg1)->GetWidth();
14297
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 resultobj = PyInt_FromLong((long)result);
14302 return resultobj;
14303 fail:
14304 return NULL;
14305 }
14306
14307
14308 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
14309 PyObject *resultobj;
14310 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14311 int result;
14312 PyObject * obj0 = 0 ;
14313 char *kwnames[] = {
14314 (char *) "self", NULL
14315 };
14316
14317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
14318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = (int)(arg1)->GetHeight();
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = PyInt_FromLong((long)result);
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14336 wxString *result;
14337 PyObject * obj0 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
14343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 {
14347 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
14348 result = (wxString *) &_result_ref;
14349 }
14350
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 {
14355 #if wxUSE_UNICODE
14356 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14357 #else
14358 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14359 #endif
14360 }
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
14368 PyObject *obj;
14369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14370 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
14371 Py_INCREF(obj);
14372 return Py_BuildValue((char *)"");
14373 }
14374 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj;
14376 wxString const &arg1_defvalue = wxPyEmptyString ;
14377 wxString *arg1 = (wxString *) &arg1_defvalue ;
14378 int arg2 = (int) 0 ;
14379 int arg3 = (int) 0 ;
14380 wxString const &arg4_defvalue = wxPyEmptyString ;
14381 wxString *arg4 = (wxString *) &arg4_defvalue ;
14382 wxMetaFileDC *result;
14383 bool temp1 = False ;
14384 bool temp4 = False ;
14385 PyObject * obj0 = 0 ;
14386 PyObject * obj3 = 0 ;
14387 char *kwnames[] = {
14388 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
14389 };
14390
14391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
14392 if (obj0) {
14393 {
14394 arg1 = wxString_in_helper(obj0);
14395 if (arg1 == NULL) SWIG_fail;
14396 temp1 = True;
14397 }
14398 }
14399 if (obj3) {
14400 {
14401 arg4 = wxString_in_helper(obj3);
14402 if (arg4 == NULL) SWIG_fail;
14403 temp4 = True;
14404 }
14405 }
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
14414 {
14415 if (temp1)
14416 delete arg1;
14417 }
14418 {
14419 if (temp4)
14420 delete arg4;
14421 }
14422 return resultobj;
14423 fail:
14424 {
14425 if (temp1)
14426 delete arg1;
14427 }
14428 {
14429 if (temp4)
14430 delete arg4;
14431 }
14432 return NULL;
14433 }
14434
14435
14436 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj;
14438 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
14439 wxMetaFile *result;
14440 PyObject * obj0 = 0 ;
14441 char *kwnames[] = {
14442 (char *) "self", NULL
14443 };
14444
14445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
14446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (wxMetaFile *)(arg1)->Close();
14450
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
14455 return resultobj;
14456 fail:
14457 return NULL;
14458 }
14459
14460
14461 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
14462 PyObject *obj;
14463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14464 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
14465 Py_INCREF(obj);
14466 return Py_BuildValue((char *)"");
14467 }
14468 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj;
14470 wxPrintData *arg1 = 0 ;
14471 wxPrinterDC *result;
14472 PyObject * obj0 = 0 ;
14473 char *kwnames[] = {
14474 (char *) "printData", NULL
14475 };
14476
14477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
14478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14479 if (arg1 == NULL) {
14480 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14481 }
14482 {
14483 PyThreadState* __tstate = wxPyBeginAllowThreads();
14484 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
14485
14486 wxPyEndAllowThreads(__tstate);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
14490 return resultobj;
14491 fail:
14492 return NULL;
14493 }
14494
14495
14496 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
14497 PyObject *obj;
14498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14499 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
14500 Py_INCREF(obj);
14501 return Py_BuildValue((char *)"");
14502 }
14503 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj;
14505 int arg1 ;
14506 int arg2 ;
14507 int arg3 = (int) True ;
14508 int arg4 = (int) 1 ;
14509 wxImageList *result;
14510 char *kwnames[] = {
14511 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
14512 };
14513
14514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 {
14523 resultobj = wxPyMake_wxObject(result);
14524 }
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxImageList *arg1 = (wxImageList *) 0 ;
14534 PyObject * obj0 = 0 ;
14535 char *kwnames[] = {
14536 (char *) "self", NULL
14537 };
14538
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
14540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14541 {
14542 PyThreadState* __tstate = wxPyBeginAllowThreads();
14543 delete arg1;
14544
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 Py_INCREF(Py_None); resultobj = Py_None;
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxImageList *arg1 = (wxImageList *) 0 ;
14558 wxBitmap *arg2 = 0 ;
14559 wxBitmap const &arg3_defvalue = wxNullBitmap ;
14560 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
14561 int result;
14562 PyObject * obj0 = 0 ;
14563 PyObject * obj1 = 0 ;
14564 PyObject * obj2 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14571 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14572 if (arg2 == NULL) {
14573 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14574 }
14575 if (obj2) {
14576 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14577 if (arg3 == NULL) {
14578 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14579 }
14580 }
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 resultobj = PyInt_FromLong((long)result);
14589 return resultobj;
14590 fail:
14591 return NULL;
14592 }
14593
14594
14595 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj;
14597 wxImageList *arg1 = (wxImageList *) 0 ;
14598 wxBitmap *arg2 = 0 ;
14599 wxColour *arg3 = 0 ;
14600 int result;
14601 wxColour temp3 ;
14602 PyObject * obj0 = 0 ;
14603 PyObject * obj1 = 0 ;
14604 PyObject * obj2 = 0 ;
14605 char *kwnames[] = {
14606 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
14607 };
14608
14609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
14610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14612 if (arg2 == NULL) {
14613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14614 }
14615 {
14616 arg3 = &temp3;
14617 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14618 }
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
14622
14623 wxPyEndAllowThreads(__tstate);
14624 if (PyErr_Occurred()) SWIG_fail;
14625 }
14626 resultobj = PyInt_FromLong((long)result);
14627 return resultobj;
14628 fail:
14629 return NULL;
14630 }
14631
14632
14633 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14634 PyObject *resultobj;
14635 wxImageList *arg1 = (wxImageList *) 0 ;
14636 wxIcon *arg2 = 0 ;
14637 int result;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 char *kwnames[] = {
14641 (char *) "self",(char *) "icon", NULL
14642 };
14643
14644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
14645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14646 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14647 if (arg2 == NULL) {
14648 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14649 }
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (int)(arg1)->Add((wxIcon const &)*arg2);
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = PyInt_FromLong((long)result);
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxImageList *arg1 = (wxImageList *) 0 ;
14667 int arg2 ;
14668 wxBitmap *arg3 = 0 ;
14669 wxBitmap const &arg4_defvalue = wxNullBitmap ;
14670 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
14671 bool result;
14672 PyObject * obj0 = 0 ;
14673 PyObject * obj2 = 0 ;
14674 PyObject * obj3 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
14677 };
14678
14679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
14680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14681 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14682 if (arg3 == NULL) {
14683 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14684 }
14685 if (obj3) {
14686 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14687 if (arg4 == NULL) {
14688 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14689 }
14690 }
14691 {
14692 PyThreadState* __tstate = wxPyBeginAllowThreads();
14693 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
14694
14695 wxPyEndAllowThreads(__tstate);
14696 if (PyErr_Occurred()) SWIG_fail;
14697 }
14698 resultobj = PyInt_FromLong((long)result);
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxImageList *arg1 = (wxImageList *) 0 ;
14708 int arg2 ;
14709 wxDC *arg3 = 0 ;
14710 int arg4 ;
14711 int arg5 ;
14712 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
14713 bool arg7 = (bool) (bool)False ;
14714 bool result;
14715 PyObject * obj0 = 0 ;
14716 PyObject * obj2 = 0 ;
14717 PyObject * obj6 = 0 ;
14718 char *kwnames[] = {
14719 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
14720 };
14721
14722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
14723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14724 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14725 if (arg3 == NULL) {
14726 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14727 }
14728 if (obj6) {
14729 arg7 = PyInt_AsLong(obj6) ? true : false;
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 resultobj = PyInt_FromLong((long)result);
14740 return resultobj;
14741 fail:
14742 return NULL;
14743 }
14744
14745
14746 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14747 PyObject *resultobj;
14748 wxImageList *arg1 = (wxImageList *) 0 ;
14749 int result;
14750 PyObject * obj0 = 0 ;
14751 char *kwnames[] = {
14752 (char *) "self", NULL
14753 };
14754
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14757 {
14758 PyThreadState* __tstate = wxPyBeginAllowThreads();
14759 result = (int)(arg1)->GetImageCount();
14760
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 resultobj = PyInt_FromLong((long)result);
14765 return resultobj;
14766 fail:
14767 return NULL;
14768 }
14769
14770
14771 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj;
14773 wxImageList *arg1 = (wxImageList *) 0 ;
14774 int arg2 ;
14775 bool result;
14776 PyObject * obj0 = 0 ;
14777 char *kwnames[] = {
14778 (char *) "self",(char *) "index", NULL
14779 };
14780
14781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14783 {
14784 PyThreadState* __tstate = wxPyBeginAllowThreads();
14785 result = (bool)(arg1)->Remove(arg2);
14786
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 resultobj = PyInt_FromLong((long)result);
14791 return resultobj;
14792 fail:
14793 return NULL;
14794 }
14795
14796
14797 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14798 PyObject *resultobj;
14799 wxImageList *arg1 = (wxImageList *) 0 ;
14800 bool result;
14801 PyObject * obj0 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 result = (bool)(arg1)->RemoveAll();
14811
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 resultobj = PyInt_FromLong((long)result);
14816 return resultobj;
14817 fail:
14818 return NULL;
14819 }
14820
14821
14822 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14823 PyObject *resultobj;
14824 wxImageList *arg1 = (wxImageList *) 0 ;
14825 int arg2 ;
14826 int *arg3 = 0 ;
14827 int *arg4 = 0 ;
14828 int temp3 ;
14829 int temp4 ;
14830 PyObject * obj0 = 0 ;
14831 char *kwnames[] = {
14832 (char *) "self",(char *) "index", NULL
14833 };
14834
14835 arg3 = &temp3;
14836 arg4 = &temp4;
14837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14839 {
14840 PyThreadState* __tstate = wxPyBeginAllowThreads();
14841 (arg1)->GetSize(arg2,*arg3,*arg4);
14842
14843 wxPyEndAllowThreads(__tstate);
14844 if (PyErr_Occurred()) SWIG_fail;
14845 }
14846 Py_INCREF(Py_None); resultobj = Py_None;
14847 {
14848 PyObject *o = PyInt_FromLong((long) (*arg3));
14849 resultobj = t_output_helper(resultobj,o);
14850 }
14851 {
14852 PyObject *o = PyInt_FromLong((long) (*arg4));
14853 resultobj = t_output_helper(resultobj,o);
14854 }
14855 return resultobj;
14856 fail:
14857 return NULL;
14858 }
14859
14860
14861 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14862 PyObject *obj;
14863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14864 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14865 Py_INCREF(obj);
14866 return Py_BuildValue((char *)"");
14867 }
14868 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14869 PyObject *resultobj;
14870 wxPenList *arg1 = (wxPenList *) 0 ;
14871 wxPen *arg2 = (wxPen *) 0 ;
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 char *kwnames[] = {
14875 (char *) "self",(char *) "pen", NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14881 {
14882 PyThreadState* __tstate = wxPyBeginAllowThreads();
14883 (arg1)->AddPen(arg2);
14884
14885 wxPyEndAllowThreads(__tstate);
14886 if (PyErr_Occurred()) SWIG_fail;
14887 }
14888 Py_INCREF(Py_None); resultobj = Py_None;
14889 return resultobj;
14890 fail:
14891 return NULL;
14892 }
14893
14894
14895 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14896 PyObject *resultobj;
14897 wxPenList *arg1 = (wxPenList *) 0 ;
14898 wxColour *arg2 = 0 ;
14899 int arg3 ;
14900 int arg4 ;
14901 wxPen *result;
14902 wxColour temp2 ;
14903 PyObject * obj0 = 0 ;
14904 PyObject * obj1 = 0 ;
14905 char *kwnames[] = {
14906 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14907 };
14908
14909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14911 {
14912 arg2 = &temp2;
14913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14914 }
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14918
14919 wxPyEndAllowThreads(__tstate);
14920 if (PyErr_Occurred()) SWIG_fail;
14921 }
14922 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14923 return resultobj;
14924 fail:
14925 return NULL;
14926 }
14927
14928
14929 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14930 PyObject *resultobj;
14931 wxPenList *arg1 = (wxPenList *) 0 ;
14932 wxPen *arg2 = (wxPen *) 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 char *kwnames[] = {
14936 (char *) "self",(char *) "pen", NULL
14937 };
14938
14939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14941 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14942 {
14943 PyThreadState* __tstate = wxPyBeginAllowThreads();
14944 (arg1)->RemovePen(arg2);
14945
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 Py_INCREF(Py_None); resultobj = Py_None;
14950 return resultobj;
14951 fail:
14952 return NULL;
14953 }
14954
14955
14956 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14957 PyObject *resultobj;
14958 wxPenList *arg1 = (wxPenList *) 0 ;
14959 int result;
14960 PyObject * obj0 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14967 {
14968 PyThreadState* __tstate = wxPyBeginAllowThreads();
14969 result = (int)(arg1)->GetCount();
14970
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 resultobj = PyInt_FromLong((long)result);
14975 return resultobj;
14976 fail:
14977 return NULL;
14978 }
14979
14980
14981 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14982 PyObject *obj;
14983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14984 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14985 Py_INCREF(obj);
14986 return Py_BuildValue((char *)"");
14987 }
14988 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj;
14990 wxBrushList *arg1 = (wxBrushList *) 0 ;
14991 wxBrush *arg2 = (wxBrush *) 0 ;
14992 PyObject * obj0 = 0 ;
14993 PyObject * obj1 = 0 ;
14994 char *kwnames[] = {
14995 (char *) "self",(char *) "brush", NULL
14996 };
14997
14998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15000 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 (arg1)->AddBrush(arg2);
15004
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 Py_INCREF(Py_None); resultobj = Py_None;
15009 return resultobj;
15010 fail:
15011 return NULL;
15012 }
15013
15014
15015 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj;
15017 wxBrushList *arg1 = (wxBrushList *) 0 ;
15018 wxColour *arg2 = 0 ;
15019 int arg3 ;
15020 wxBrush *result;
15021 wxColour temp2 ;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self",(char *) "colour",(char *) "style", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15030 {
15031 arg2 = &temp2;
15032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15033 }
15034 {
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
15037
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
15042 return resultobj;
15043 fail:
15044 return NULL;
15045 }
15046
15047
15048 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
15049 PyObject *resultobj;
15050 wxBrushList *arg1 = (wxBrushList *) 0 ;
15051 wxBrush *arg2 = (wxBrush *) 0 ;
15052 PyObject * obj0 = 0 ;
15053 PyObject * obj1 = 0 ;
15054 char *kwnames[] = {
15055 (char *) "self",(char *) "brush", NULL
15056 };
15057
15058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
15059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15060 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15061 {
15062 PyThreadState* __tstate = wxPyBeginAllowThreads();
15063 (arg1)->RemoveBrush(arg2);
15064
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 Py_INCREF(Py_None); resultobj = Py_None;
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj;
15077 wxBrushList *arg1 = (wxBrushList *) 0 ;
15078 int result;
15079 PyObject * obj0 = 0 ;
15080 char *kwnames[] = {
15081 (char *) "self", NULL
15082 };
15083
15084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
15085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15086 {
15087 PyThreadState* __tstate = wxPyBeginAllowThreads();
15088 result = (int)(arg1)->GetCount();
15089
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 resultobj = PyInt_FromLong((long)result);
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
15101 PyObject *obj;
15102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15103 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
15104 Py_INCREF(obj);
15105 return Py_BuildValue((char *)"");
15106 }
15107 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
15108 PyObject *resultobj;
15109 wxColourDatabase *result;
15110 char *kwnames[] = {
15111 NULL
15112 };
15113
15114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 result = (wxColourDatabase *)new wxColourDatabase();
15118
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj;
15131 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15132 PyObject * obj0 = 0 ;
15133 char *kwnames[] = {
15134 (char *) "self", NULL
15135 };
15136
15137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
15138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15139 {
15140 PyThreadState* __tstate = wxPyBeginAllowThreads();
15141 delete arg1;
15142
15143 wxPyEndAllowThreads(__tstate);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 }
15146 Py_INCREF(Py_None); resultobj = Py_None;
15147 return resultobj;
15148 fail:
15149 return NULL;
15150 }
15151
15152
15153 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj;
15155 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15156 wxString *arg2 = 0 ;
15157 wxColour result;
15158 bool temp2 = False ;
15159 PyObject * obj0 = 0 ;
15160 PyObject * obj1 = 0 ;
15161 char *kwnames[] = {
15162 (char *) "self",(char *) "name", NULL
15163 };
15164
15165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
15166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15167 {
15168 arg2 = wxString_in_helper(obj1);
15169 if (arg2 == NULL) SWIG_fail;
15170 temp2 = True;
15171 }
15172 {
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
15175
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 {
15180 wxColour * resultptr;
15181 resultptr = new wxColour((wxColour &) result);
15182 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15183 }
15184 {
15185 if (temp2)
15186 delete arg2;
15187 }
15188 return resultobj;
15189 fail:
15190 {
15191 if (temp2)
15192 delete arg2;
15193 }
15194 return NULL;
15195 }
15196
15197
15198 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15201 wxColour *arg2 = 0 ;
15202 wxString result;
15203 wxColour temp2 ;
15204 PyObject * obj0 = 0 ;
15205 PyObject * obj1 = 0 ;
15206 char *kwnames[] = {
15207 (char *) "self",(char *) "colour", NULL
15208 };
15209
15210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
15211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15212 {
15213 arg2 = &temp2;
15214 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15215 }
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 {
15224 #if wxUSE_UNICODE
15225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15226 #else
15227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15228 #endif
15229 }
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj;
15238 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15239 wxString *arg2 = 0 ;
15240 wxColour *arg3 = 0 ;
15241 bool temp2 = False ;
15242 wxColour temp3 ;
15243 PyObject * obj0 = 0 ;
15244 PyObject * obj1 = 0 ;
15245 PyObject * obj2 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "self",(char *) "name",(char *) "colour", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15252 {
15253 arg2 = wxString_in_helper(obj1);
15254 if (arg2 == NULL) SWIG_fail;
15255 temp2 = True;
15256 }
15257 {
15258 arg3 = &temp3;
15259 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15260 }
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
15264
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 Py_INCREF(Py_None); resultobj = Py_None;
15269 {
15270 if (temp2)
15271 delete arg2;
15272 }
15273 return resultobj;
15274 fail:
15275 {
15276 if (temp2)
15277 delete arg2;
15278 }
15279 return NULL;
15280 }
15281
15282
15283 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
15284 PyObject *resultobj;
15285 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15286 wxString *arg2 = 0 ;
15287 int arg3 ;
15288 int arg4 ;
15289 int arg5 ;
15290 bool temp2 = False ;
15291 PyObject * obj0 = 0 ;
15292 PyObject * obj1 = 0 ;
15293 char *kwnames[] = {
15294 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
15295 };
15296
15297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
15298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15299 {
15300 arg2 = wxString_in_helper(obj1);
15301 if (arg2 == NULL) SWIG_fail;
15302 temp2 = True;
15303 }
15304 {
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
15307
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 Py_INCREF(Py_None); resultobj = Py_None;
15312 {
15313 if (temp2)
15314 delete arg2;
15315 }
15316 return resultobj;
15317 fail:
15318 {
15319 if (temp2)
15320 delete arg2;
15321 }
15322 return NULL;
15323 }
15324
15325
15326 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
15327 PyObject *obj;
15328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15329 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
15330 Py_INCREF(obj);
15331 return Py_BuildValue((char *)"");
15332 }
15333 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15334 PyObject *resultobj;
15335 wxFontList *arg1 = (wxFontList *) 0 ;
15336 wxFont *arg2 = (wxFont *) 0 ;
15337 PyObject * obj0 = 0 ;
15338 PyObject * obj1 = 0 ;
15339 char *kwnames[] = {
15340 (char *) "self",(char *) "font", NULL
15341 };
15342
15343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
15344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15345 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15346 {
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 (arg1)->AddFont(arg2);
15349
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 Py_INCREF(Py_None); resultobj = Py_None;
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj;
15362 wxFontList *arg1 = (wxFontList *) 0 ;
15363 int arg2 ;
15364 int arg3 ;
15365 int arg4 ;
15366 int arg5 ;
15367 bool arg6 = (bool) False ;
15368 wxString const &arg7_defvalue = wxPyEmptyString ;
15369 wxString *arg7 = (wxString *) &arg7_defvalue ;
15370 int arg8 = (int) wxFONTENCODING_DEFAULT ;
15371 wxFont *result;
15372 bool temp7 = False ;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj5 = 0 ;
15375 PyObject * obj6 = 0 ;
15376 char *kwnames[] = {
15377 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
15378 };
15379
15380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
15381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15382 if (obj5) {
15383 arg6 = PyInt_AsLong(obj5) ? true : false;
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 if (obj6) {
15387 {
15388 arg7 = wxString_in_helper(obj6);
15389 if (arg7 == NULL) SWIG_fail;
15390 temp7 = True;
15391 }
15392 }
15393 {
15394 PyThreadState* __tstate = wxPyBeginAllowThreads();
15395 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
15396
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
15401 {
15402 if (temp7)
15403 delete arg7;
15404 }
15405 return resultobj;
15406 fail:
15407 {
15408 if (temp7)
15409 delete arg7;
15410 }
15411 return NULL;
15412 }
15413
15414
15415 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxFontList *arg1 = (wxFontList *) 0 ;
15418 wxFont *arg2 = (wxFont *) 0 ;
15419 PyObject * obj0 = 0 ;
15420 PyObject * obj1 = 0 ;
15421 char *kwnames[] = {
15422 (char *) "self",(char *) "font", NULL
15423 };
15424
15425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
15426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15427 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15428 {
15429 PyThreadState* __tstate = wxPyBeginAllowThreads();
15430 (arg1)->RemoveFont(arg2);
15431
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 Py_INCREF(Py_None); resultobj = Py_None;
15436 return resultobj;
15437 fail:
15438 return NULL;
15439 }
15440
15441
15442 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj;
15444 wxFontList *arg1 = (wxFontList *) 0 ;
15445 int result;
15446 PyObject * obj0 = 0 ;
15447 char *kwnames[] = {
15448 (char *) "self", NULL
15449 };
15450
15451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15453 {
15454 PyThreadState* __tstate = wxPyBeginAllowThreads();
15455 result = (int)(arg1)->GetCount();
15456
15457 wxPyEndAllowThreads(__tstate);
15458 if (PyErr_Occurred()) SWIG_fail;
15459 }
15460 resultobj = PyInt_FromLong((long)result);
15461 return resultobj;
15462 fail:
15463 return NULL;
15464 }
15465
15466
15467 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
15468 PyObject *obj;
15469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15470 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
15471 Py_INCREF(obj);
15472 return Py_BuildValue((char *)"");
15473 }
15474 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15475 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15476 return 1;
15477 }
15478
15479
15480 static PyObject *_wrap_NORMAL_FONT_get() {
15481 PyObject *pyobj;
15482
15483 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15484 return pyobj;
15485 }
15486
15487
15488 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15489 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15490 return 1;
15491 }
15492
15493
15494 static PyObject *_wrap_SMALL_FONT_get() {
15495 PyObject *pyobj;
15496
15497 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15498 return pyobj;
15499 }
15500
15501
15502 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15503 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15504 return 1;
15505 }
15506
15507
15508 static PyObject *_wrap_ITALIC_FONT_get() {
15509 PyObject *pyobj;
15510
15511 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15512 return pyobj;
15513 }
15514
15515
15516 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15517 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15518 return 1;
15519 }
15520
15521
15522 static PyObject *_wrap_SWISS_FONT_get() {
15523 PyObject *pyobj;
15524
15525 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15526 return pyobj;
15527 }
15528
15529
15530 static int _wrap_RED_PEN_set(PyObject *_val) {
15531 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15532 return 1;
15533 }
15534
15535
15536 static PyObject *_wrap_RED_PEN_get() {
15537 PyObject *pyobj;
15538
15539 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15540 return pyobj;
15541 }
15542
15543
15544 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15545 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15546 return 1;
15547 }
15548
15549
15550 static PyObject *_wrap_CYAN_PEN_get() {
15551 PyObject *pyobj;
15552
15553 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15554 return pyobj;
15555 }
15556
15557
15558 static int _wrap_GREEN_PEN_set(PyObject *_val) {
15559 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15560 return 1;
15561 }
15562
15563
15564 static PyObject *_wrap_GREEN_PEN_get() {
15565 PyObject *pyobj;
15566
15567 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15568 return pyobj;
15569 }
15570
15571
15572 static int _wrap_BLACK_PEN_set(PyObject *_val) {
15573 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15574 return 1;
15575 }
15576
15577
15578 static PyObject *_wrap_BLACK_PEN_get() {
15579 PyObject *pyobj;
15580
15581 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15582 return pyobj;
15583 }
15584
15585
15586 static int _wrap_WHITE_PEN_set(PyObject *_val) {
15587 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15588 return 1;
15589 }
15590
15591
15592 static PyObject *_wrap_WHITE_PEN_get() {
15593 PyObject *pyobj;
15594
15595 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15596 return pyobj;
15597 }
15598
15599
15600 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
15601 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15602 return 1;
15603 }
15604
15605
15606 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15607 PyObject *pyobj;
15608
15609 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15610 return pyobj;
15611 }
15612
15613
15614 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
15615 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15616 return 1;
15617 }
15618
15619
15620 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15621 PyObject *pyobj;
15622
15623 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15624 return pyobj;
15625 }
15626
15627
15628 static int _wrap_GREY_PEN_set(PyObject *_val) {
15629 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15630 return 1;
15631 }
15632
15633
15634 static PyObject *_wrap_GREY_PEN_get() {
15635 PyObject *pyobj;
15636
15637 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15638 return pyobj;
15639 }
15640
15641
15642 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
15643 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15644 return 1;
15645 }
15646
15647
15648 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15649 PyObject *pyobj;
15650
15651 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15652 return pyobj;
15653 }
15654
15655
15656 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
15657 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15658 return 1;
15659 }
15660
15661
15662 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15663 PyObject *pyobj;
15664
15665 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15666 return pyobj;
15667 }
15668
15669
15670 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
15671 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15672 return 1;
15673 }
15674
15675
15676 static PyObject *_wrap_BLUE_BRUSH_get() {
15677 PyObject *pyobj;
15678
15679 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15680 return pyobj;
15681 }
15682
15683
15684 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15685 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15686 return 1;
15687 }
15688
15689
15690 static PyObject *_wrap_GREEN_BRUSH_get() {
15691 PyObject *pyobj;
15692
15693 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15694 return pyobj;
15695 }
15696
15697
15698 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15699 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15700 return 1;
15701 }
15702
15703
15704 static PyObject *_wrap_WHITE_BRUSH_get() {
15705 PyObject *pyobj;
15706
15707 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15708 return pyobj;
15709 }
15710
15711
15712 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15713 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15714 return 1;
15715 }
15716
15717
15718 static PyObject *_wrap_BLACK_BRUSH_get() {
15719 PyObject *pyobj;
15720
15721 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15722 return pyobj;
15723 }
15724
15725
15726 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15727 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15728 return 1;
15729 }
15730
15731
15732 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15733 PyObject *pyobj;
15734
15735 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15736 return pyobj;
15737 }
15738
15739
15740 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15741 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15742 return 1;
15743 }
15744
15745
15746 static PyObject *_wrap_CYAN_BRUSH_get() {
15747 PyObject *pyobj;
15748
15749 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15750 return pyobj;
15751 }
15752
15753
15754 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15755 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15756 return 1;
15757 }
15758
15759
15760 static PyObject *_wrap_RED_BRUSH_get() {
15761 PyObject *pyobj;
15762
15763 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15764 return pyobj;
15765 }
15766
15767
15768 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15769 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15770 return 1;
15771 }
15772
15773
15774 static PyObject *_wrap_GREY_BRUSH_get() {
15775 PyObject *pyobj;
15776
15777 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15778 return pyobj;
15779 }
15780
15781
15782 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15783 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15784 return 1;
15785 }
15786
15787
15788 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15789 PyObject *pyobj;
15790
15791 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15792 return pyobj;
15793 }
15794
15795
15796 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15797 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15798 return 1;
15799 }
15800
15801
15802 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15803 PyObject *pyobj;
15804
15805 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15806 return pyobj;
15807 }
15808
15809
15810 static int _wrap_BLACK_set(PyObject *_val) {
15811 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15812 return 1;
15813 }
15814
15815
15816 static PyObject *_wrap_BLACK_get() {
15817 PyObject *pyobj;
15818
15819 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15820 return pyobj;
15821 }
15822
15823
15824 static int _wrap_WHITE_set(PyObject *_val) {
15825 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15826 return 1;
15827 }
15828
15829
15830 static PyObject *_wrap_WHITE_get() {
15831 PyObject *pyobj;
15832
15833 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15834 return pyobj;
15835 }
15836
15837
15838 static int _wrap_RED_set(PyObject *_val) {
15839 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15840 return 1;
15841 }
15842
15843
15844 static PyObject *_wrap_RED_get() {
15845 PyObject *pyobj;
15846
15847 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15848 return pyobj;
15849 }
15850
15851
15852 static int _wrap_BLUE_set(PyObject *_val) {
15853 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15854 return 1;
15855 }
15856
15857
15858 static PyObject *_wrap_BLUE_get() {
15859 PyObject *pyobj;
15860
15861 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15862 return pyobj;
15863 }
15864
15865
15866 static int _wrap_GREEN_set(PyObject *_val) {
15867 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15868 return 1;
15869 }
15870
15871
15872 static PyObject *_wrap_GREEN_get() {
15873 PyObject *pyobj;
15874
15875 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15876 return pyobj;
15877 }
15878
15879
15880 static int _wrap_CYAN_set(PyObject *_val) {
15881 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15882 return 1;
15883 }
15884
15885
15886 static PyObject *_wrap_CYAN_get() {
15887 PyObject *pyobj;
15888
15889 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15890 return pyobj;
15891 }
15892
15893
15894 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15895 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15896 return 1;
15897 }
15898
15899
15900 static PyObject *_wrap_LIGHT_GREY_get() {
15901 PyObject *pyobj;
15902
15903 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15904 return pyobj;
15905 }
15906
15907
15908 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15909 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15910 return 1;
15911 }
15912
15913
15914 static PyObject *_wrap_STANDARD_CURSOR_get() {
15915 PyObject *pyobj;
15916
15917 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15918 return pyobj;
15919 }
15920
15921
15922 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15923 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15924 return 1;
15925 }
15926
15927
15928 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15929 PyObject *pyobj;
15930
15931 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15932 return pyobj;
15933 }
15934
15935
15936 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15937 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15938 return 1;
15939 }
15940
15941
15942 static PyObject *_wrap_CROSS_CURSOR_get() {
15943 PyObject *pyobj;
15944
15945 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15946 return pyobj;
15947 }
15948
15949
15950 static int _wrap_NullBitmap_set(PyObject *_val) {
15951 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15952 return 1;
15953 }
15954
15955
15956 static PyObject *_wrap_NullBitmap_get() {
15957 PyObject *pyobj;
15958
15959 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15960 return pyobj;
15961 }
15962
15963
15964 static int _wrap_NullIcon_set(PyObject *_val) {
15965 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15966 return 1;
15967 }
15968
15969
15970 static PyObject *_wrap_NullIcon_get() {
15971 PyObject *pyobj;
15972
15973 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15974 return pyobj;
15975 }
15976
15977
15978 static int _wrap_NullCursor_set(PyObject *_val) {
15979 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15980 return 1;
15981 }
15982
15983
15984 static PyObject *_wrap_NullCursor_get() {
15985 PyObject *pyobj;
15986
15987 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15988 return pyobj;
15989 }
15990
15991
15992 static int _wrap_NullPen_set(PyObject *_val) {
15993 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15994 return 1;
15995 }
15996
15997
15998 static PyObject *_wrap_NullPen_get() {
15999 PyObject *pyobj;
16000
16001 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16002 return pyobj;
16003 }
16004
16005
16006 static int _wrap_NullBrush_set(PyObject *_val) {
16007 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16008 return 1;
16009 }
16010
16011
16012 static PyObject *_wrap_NullBrush_get() {
16013 PyObject *pyobj;
16014
16015 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16016 return pyobj;
16017 }
16018
16019
16020 static int _wrap_NullPalette_set(PyObject *_val) {
16021 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16022 return 1;
16023 }
16024
16025
16026 static PyObject *_wrap_NullPalette_get() {
16027 PyObject *pyobj;
16028
16029 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16030 return pyobj;
16031 }
16032
16033
16034 static int _wrap_NullFont_set(PyObject *_val) {
16035 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16036 return 1;
16037 }
16038
16039
16040 static PyObject *_wrap_NullFont_get() {
16041 PyObject *pyobj;
16042
16043 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16044 return pyobj;
16045 }
16046
16047
16048 static int _wrap_NullColour_set(PyObject *_val) {
16049 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16050 return 1;
16051 }
16052
16053
16054 static PyObject *_wrap_NullColour_get() {
16055 PyObject *pyobj;
16056
16057 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16058 return pyobj;
16059 }
16060
16061
16062 static int _wrap_TheFontList_set(PyObject *_val) {
16063 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
16064 return 1;
16065 }
16066
16067
16068 static PyObject *_wrap_TheFontList_get() {
16069 PyObject *pyobj;
16070
16071 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
16072 return pyobj;
16073 }
16074
16075
16076 static int _wrap_ThePenList_set(PyObject *_val) {
16077 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
16078 return 1;
16079 }
16080
16081
16082 static PyObject *_wrap_ThePenList_get() {
16083 PyObject *pyobj;
16084
16085 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
16086 return pyobj;
16087 }
16088
16089
16090 static int _wrap_TheBrushList_set(PyObject *_val) {
16091 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
16092 return 1;
16093 }
16094
16095
16096 static PyObject *_wrap_TheBrushList_get() {
16097 PyObject *pyobj;
16098
16099 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
16100 return pyobj;
16101 }
16102
16103
16104 static int _wrap_TheColourDatabase_set(PyObject *_val) {
16105 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
16106 return 1;
16107 }
16108
16109
16110 static PyObject *_wrap_TheColourDatabase_get() {
16111 PyObject *pyobj;
16112
16113 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
16114 return pyobj;
16115 }
16116
16117
16118 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj;
16120 wxEffects *result;
16121 char *kwnames[] = {
16122 NULL
16123 };
16124
16125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (wxEffects *)new wxEffects();
16129
16130 wxPyEndAllowThreads(__tstate);
16131 if (PyErr_Occurred()) SWIG_fail;
16132 }
16133 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
16134 return resultobj;
16135 fail:
16136 return NULL;
16137 }
16138
16139
16140 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj;
16142 wxEffects *arg1 = (wxEffects *) 0 ;
16143 wxColour result;
16144 PyObject * obj0 = 0 ;
16145 char *kwnames[] = {
16146 (char *) "self", NULL
16147 };
16148
16149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
16150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16151 {
16152 PyThreadState* __tstate = wxPyBeginAllowThreads();
16153 result = ((wxEffects const *)arg1)->GetHighlightColour();
16154
16155 wxPyEndAllowThreads(__tstate);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 }
16158 {
16159 wxColour * resultptr;
16160 resultptr = new wxColour((wxColour &) result);
16161 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16162 }
16163 return resultobj;
16164 fail:
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxEffects *arg1 = (wxEffects *) 0 ;
16172 wxColour result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = ((wxEffects const *)arg1)->GetLightShadow();
16183
16184 wxPyEndAllowThreads(__tstate);
16185 if (PyErr_Occurred()) SWIG_fail;
16186 }
16187 {
16188 wxColour * resultptr;
16189 resultptr = new wxColour((wxColour &) result);
16190 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16191 }
16192 return resultobj;
16193 fail:
16194 return NULL;
16195 }
16196
16197
16198 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16199 PyObject *resultobj;
16200 wxEffects *arg1 = (wxEffects *) 0 ;
16201 wxColour result;
16202 PyObject * obj0 = 0 ;
16203 char *kwnames[] = {
16204 (char *) "self", NULL
16205 };
16206
16207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
16208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16209 {
16210 PyThreadState* __tstate = wxPyBeginAllowThreads();
16211 result = ((wxEffects const *)arg1)->GetFaceColour();
16212
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217 wxColour * resultptr;
16218 resultptr = new wxColour((wxColour &) result);
16219 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16220 }
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj;
16229 wxEffects *arg1 = (wxEffects *) 0 ;
16230 wxColour result;
16231 PyObject * obj0 = 0 ;
16232 char *kwnames[] = {
16233 (char *) "self", NULL
16234 };
16235
16236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
16237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 result = ((wxEffects const *)arg1)->GetMediumShadow();
16241
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 {
16246 wxColour * resultptr;
16247 resultptr = new wxColour((wxColour &) result);
16248 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16249 }
16250 return resultobj;
16251 fail:
16252 return NULL;
16253 }
16254
16255
16256 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16257 PyObject *resultobj;
16258 wxEffects *arg1 = (wxEffects *) 0 ;
16259 wxColour result;
16260 PyObject * obj0 = 0 ;
16261 char *kwnames[] = {
16262 (char *) "self", NULL
16263 };
16264
16265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
16266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = ((wxEffects const *)arg1)->GetDarkShadow();
16270
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 {
16275 wxColour * resultptr;
16276 resultptr = new wxColour((wxColour &) result);
16277 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16278 }
16279 return resultobj;
16280 fail:
16281 return NULL;
16282 }
16283
16284
16285 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj;
16287 wxEffects *arg1 = (wxEffects *) 0 ;
16288 wxColour *arg2 = 0 ;
16289 wxColour temp2 ;
16290 PyObject * obj0 = 0 ;
16291 PyObject * obj1 = 0 ;
16292 char *kwnames[] = {
16293 (char *) "self",(char *) "c", NULL
16294 };
16295
16296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
16297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16298 {
16299 arg2 = &temp2;
16300 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16301 }
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 (arg1)->SetHighlightColour((wxColour const &)*arg2);
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 Py_INCREF(Py_None); resultobj = Py_None;
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxEffects *arg1 = (wxEffects *) 0 ;
16319 wxColour *arg2 = 0 ;
16320 wxColour temp2 ;
16321 PyObject * obj0 = 0 ;
16322 PyObject * obj1 = 0 ;
16323 char *kwnames[] = {
16324 (char *) "self",(char *) "c", NULL
16325 };
16326
16327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
16328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16329 {
16330 arg2 = &temp2;
16331 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16332 }
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 (arg1)->SetLightShadow((wxColour const &)*arg2);
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj;
16349 wxEffects *arg1 = (wxEffects *) 0 ;
16350 wxColour *arg2 = 0 ;
16351 wxColour temp2 ;
16352 PyObject * obj0 = 0 ;
16353 PyObject * obj1 = 0 ;
16354 char *kwnames[] = {
16355 (char *) "self",(char *) "c", NULL
16356 };
16357
16358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
16359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16360 {
16361 arg2 = &temp2;
16362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 (arg1)->SetFaceColour((wxColour const &)*arg2);
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 Py_INCREF(Py_None); resultobj = Py_None;
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj;
16380 wxEffects *arg1 = (wxEffects *) 0 ;
16381 wxColour *arg2 = 0 ;
16382 wxColour temp2 ;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 char *kwnames[] = {
16386 (char *) "self",(char *) "c", NULL
16387 };
16388
16389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
16390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16391 {
16392 arg2 = &temp2;
16393 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16394 }
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 (arg1)->SetMediumShadow((wxColour const &)*arg2);
16398
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 Py_INCREF(Py_None); resultobj = Py_None;
16403 return resultobj;
16404 fail:
16405 return NULL;
16406 }
16407
16408
16409 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16410 PyObject *resultobj;
16411 wxEffects *arg1 = (wxEffects *) 0 ;
16412 wxColour *arg2 = 0 ;
16413 wxColour temp2 ;
16414 PyObject * obj0 = 0 ;
16415 PyObject * obj1 = 0 ;
16416 char *kwnames[] = {
16417 (char *) "self",(char *) "c", NULL
16418 };
16419
16420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
16421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16422 {
16423 arg2 = &temp2;
16424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16425 }
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 (arg1)->SetDarkShadow((wxColour const &)*arg2);
16429
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 Py_INCREF(Py_None); resultobj = Py_None;
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
16441 PyObject *resultobj;
16442 wxEffects *arg1 = (wxEffects *) 0 ;
16443 wxColour *arg2 = 0 ;
16444 wxColour *arg3 = 0 ;
16445 wxColour *arg4 = 0 ;
16446 wxColour *arg5 = 0 ;
16447 wxColour *arg6 = 0 ;
16448 wxColour temp2 ;
16449 wxColour temp3 ;
16450 wxColour temp4 ;
16451 wxColour temp5 ;
16452 wxColour temp6 ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 PyObject * obj2 = 0 ;
16456 PyObject * obj3 = 0 ;
16457 PyObject * obj4 = 0 ;
16458 PyObject * obj5 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16465 {
16466 arg2 = &temp2;
16467 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16468 }
16469 {
16470 arg3 = &temp3;
16471 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16472 }
16473 {
16474 arg4 = &temp4;
16475 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
16476 }
16477 {
16478 arg5 = &temp5;
16479 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
16480 }
16481 {
16482 arg6 = &temp6;
16483 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
16484 }
16485 {
16486 PyThreadState* __tstate = wxPyBeginAllowThreads();
16487 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
16488
16489 wxPyEndAllowThreads(__tstate);
16490 if (PyErr_Occurred()) SWIG_fail;
16491 }
16492 Py_INCREF(Py_None); resultobj = Py_None;
16493 return resultobj;
16494 fail:
16495 return NULL;
16496 }
16497
16498
16499 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
16500 PyObject *resultobj;
16501 wxEffects *arg1 = (wxEffects *) 0 ;
16502 wxDC *arg2 = 0 ;
16503 wxRect *arg3 = 0 ;
16504 int arg4 = (int) 1 ;
16505 wxRect temp3 ;
16506 PyObject * obj0 = 0 ;
16507 PyObject * obj1 = 0 ;
16508 PyObject * obj2 = 0 ;
16509 char *kwnames[] = {
16510 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
16511 };
16512
16513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
16514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16515 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16516 if (arg2 == NULL) {
16517 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16518 }
16519 {
16520 arg3 = &temp3;
16521 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
16522 }
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
16526
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 Py_INCREF(Py_None); resultobj = Py_None;
16531 return resultobj;
16532 fail:
16533 return NULL;
16534 }
16535
16536
16537 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16538 PyObject *resultobj;
16539 wxEffects *arg1 = (wxEffects *) 0 ;
16540 wxRect *arg2 = 0 ;
16541 wxDC *arg3 = 0 ;
16542 wxBitmap *arg4 = 0 ;
16543 bool result;
16544 wxRect temp2 ;
16545 PyObject * obj0 = 0 ;
16546 PyObject * obj1 = 0 ;
16547 PyObject * obj2 = 0 ;
16548 PyObject * obj3 = 0 ;
16549 char *kwnames[] = {
16550 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
16551 };
16552
16553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16555 {
16556 arg2 = &temp2;
16557 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16558 }
16559 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16560 if (arg3 == NULL) {
16561 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16562 }
16563 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16564 if (arg4 == NULL) {
16565 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16566 }
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
16570
16571 wxPyEndAllowThreads(__tstate);
16572 if (PyErr_Occurred()) SWIG_fail;
16573 }
16574 resultobj = PyInt_FromLong((long)result);
16575 return resultobj;
16576 fail:
16577 return NULL;
16578 }
16579
16580
16581 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
16582 PyObject *obj;
16583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16584 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
16585 Py_INCREF(obj);
16586 return Py_BuildValue((char *)"");
16587 }
16588 static PyMethodDef SwigMethods[] = {
16589 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
16590 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
16591 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
16592 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
16593 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
16594 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
16595 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
16596 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
16597 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
16598 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
16599 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
16600 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
16601 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
16602 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
16603 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
16604 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
16605 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
16606 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
16607 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
16608 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
16609 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
16610 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
16611 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
16612 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
16613 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
16614 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
16615 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
16616 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
16617 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
16618 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
16619 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
16620 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
16621 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
16622 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
16623 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
16624 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
16625 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
16626 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
16627 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
16628 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
16629 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16630 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
16631 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
16632 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
16633 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
16634 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
16635 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
16636 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
16637 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16638 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
16639 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
16640 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
16641 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
16642 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
16643 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
16644 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
16645 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
16646 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
16647 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
16648 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
16649 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
16650 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
16651 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
16652 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
16653 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
16654 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
16655 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
16656 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
16657 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
16658 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
16659 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
16660 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
16661 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
16662 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
16663 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
16664 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
16665 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
16666 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
16667 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
16668 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
16669 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
16670 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
16671 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
16672 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
16673 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
16674 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
16675 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
16676 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
16677 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
16678 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
16679 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
16680 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
16681 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
16682 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
16683 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
16684 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
16685 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16686 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16687 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
16688 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
16689 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
16690 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16691 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16692 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16693 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16694 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16695 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16696 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16697 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
16698 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16699 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16700 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16701 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16702 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16703 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16704 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16705 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16706 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16707 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16708 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16709 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16710 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16711 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16712 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16713 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16714 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16715 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16716 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16717 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16718 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16719 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16720 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16721 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
16722 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
16723 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16724 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
16725 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
16726 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
16727 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
16728 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
16729 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
16730 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
16731 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16732 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16733 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16734 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16735 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16736 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16737 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
16738 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16739 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16740 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16741 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16742 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16743 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16744 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16745 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16746 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16747 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16748 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16749 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16750 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16751 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16752 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16753 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16754 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16755 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16756 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16757 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16758 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16759 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16760 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16761 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16762 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16763 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16764 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16765 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16766 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16767 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16768 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16769 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16770 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16771 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16772 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16773 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16774 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16775 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16776 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16777 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16778 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16779 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16780 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16781 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16782 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16783 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16784 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16785 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16786 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16787 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16788 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16789 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16790 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16791 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16792 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16793 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16794 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16795 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16796 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16797 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16798 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16799 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16800 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16801 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16802 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16803 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16804 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16805 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16806 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16807 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16808 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16809 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16810 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16811 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16812 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16813 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16814 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16815 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16816 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16817 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16818 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16819 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16820 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16821 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16822 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16823 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16824 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16825 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16826 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16827 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16828 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16829 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16830 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16831 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16832 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16833 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16834 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16835 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16836 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16837 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16838 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16839 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16840 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16841 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16842 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16843 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16844 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16845 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16846 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16847 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16848 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16849 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16850 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16851 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16852 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16853 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16854 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16855 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16856 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16857 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16858 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16859 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16860 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16861 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16862 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16863 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16864 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16865 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16866 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16867 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16868 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16869 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16870 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16871 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16872 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16873 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16874 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16875 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16876 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16877 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16878 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16879 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16880 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16881 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16882 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16883 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16884 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16885 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16886 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16887 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16888 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16889 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16890 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16891 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16892 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16893 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16894 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16895 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16896 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16897 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16898 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16899 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16900 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16901 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16902 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16903 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16904 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16905 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16906 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16907 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16908 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16909 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16910 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16911 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16912 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16913 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16914 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16915 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16916 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16917 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16918 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16919 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16920 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16921 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16922 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16923 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16924 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16925 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16926 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16927 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16928 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16929 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16930 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16931 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16932 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16933 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16934 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16935 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16936 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16937 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16938 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16939 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16940 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16941 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16942 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16943 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16944 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16945 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16946 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16947 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16948 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16949 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16950 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16951 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16952 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16953 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16954 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16955 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16956 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16957 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16958 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16959 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16960 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16961 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16962 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16963 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16964 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
16965 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
16966 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16967 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16968 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16969 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16970 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16971 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16972 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16973 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16974 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16975 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16976 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
16977 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
16978 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
16979 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
16980 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
16981 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16982 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16983 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16984 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16985 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16986 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16987 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16988 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16989 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16990 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16991 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16992 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16993 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16994 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16995 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16996 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16997 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16998 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16999 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
17000 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
17001 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
17002 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
17003 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
17004 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
17005 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
17006 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
17007 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17008 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17009 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17010 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
17011 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17012 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17013 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
17014 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17015 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
17016 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17017 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17018 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
17019 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
17020 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
17021 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17022 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
17023 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
17024 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
17025 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
17026 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17027 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
17028 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
17029 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
17030 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
17031 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
17032 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
17033 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
17034 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
17035 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
17036 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
17037 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
17038 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
17039 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
17040 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
17041 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
17042 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
17043 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
17044 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
17045 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
17046 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17047 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17048 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
17049 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
17050 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
17051 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
17052 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
17053 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
17054 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
17055 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
17056 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
17057 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
17058 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
17059 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
17060 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
17061 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
17062 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
17063 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
17064 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
17065 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
17066 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
17067 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
17068 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
17069 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
17070 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
17071 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
17072 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
17073 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
17074 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
17075 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
17076 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
17077 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
17078 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
17079 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
17080 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
17081 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
17082 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
17083 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
17084 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
17085 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
17086 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
17087 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
17088 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
17089 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
17090 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
17091 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
17092 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
17093 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
17094 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
17095 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
17096 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
17097 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
17098 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
17099 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17100 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17101 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
17102 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
17103 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
17104 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
17105 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
17106 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
17107 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
17108 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
17109 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
17110 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
17111 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
17112 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17113 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
17114 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
17115 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17116 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17117 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17118 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
17119 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
17120 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17121 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17122 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
17123 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
17124 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
17125 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
17126 { NULL, NULL }
17127 };
17128
17129
17130 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17131
17132 static void *_p_wxControlTo_p_wxWindow(void *x) {
17133 return (void *)((wxWindow *) ((wxControl *) x));
17134 }
17135 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17136 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17137 }
17138 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17139 return (void *)((wxWindow *) ((wxMenuBar *) x));
17140 }
17141 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
17142 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
17143 }
17144 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
17145 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
17146 }
17147 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
17148 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
17149 }
17150 static void *_p_wxPenTo_p_wxObject(void *x) {
17151 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
17152 }
17153 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
17154 return (void *)((wxObject *) ((wxRegionIterator *) x));
17155 }
17156 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
17157 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
17158 }
17159 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
17160 return (void *)((wxObject *) ((wxSizerItem *) x));
17161 }
17162 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
17163 return (void *)((wxObject *) ((wxColourDatabase *) x));
17164 }
17165 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
17166 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
17167 }
17168 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
17169 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
17170 }
17171 static void *_p_wxIconTo_p_wxObject(void *x) {
17172 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
17173 }
17174 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
17175 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
17176 }
17177 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
17178 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
17179 }
17180 static void *_p_wxSizerTo_p_wxObject(void *x) {
17181 return (void *)((wxObject *) ((wxSizer *) x));
17182 }
17183 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
17184 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
17185 }
17186 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
17187 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
17188 }
17189 static void *_p_wxPenListTo_p_wxObject(void *x) {
17190 return (void *)((wxObject *) ((wxPenList *) x));
17191 }
17192 static void *_p_wxEventTo_p_wxObject(void *x) {
17193 return (void *)((wxObject *) ((wxEvent *) x));
17194 }
17195 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
17196 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
17197 }
17198 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
17199 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
17200 }
17201 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
17202 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
17203 }
17204 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
17205 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
17206 }
17207 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
17208 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
17209 }
17210 static void *_p_wxDCTo_p_wxObject(void *x) {
17211 return (void *)((wxObject *) ((wxDC *) x));
17212 }
17213 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
17214 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
17215 }
17216 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
17217 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
17218 }
17219 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
17220 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
17221 }
17222 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
17223 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
17224 }
17225 static void *_p_wxControlTo_p_wxObject(void *x) {
17226 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
17227 }
17228 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
17229 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
17230 }
17231 static void *_p_wxClientDCTo_p_wxObject(void *x) {
17232 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
17233 }
17234 static void *_p_wxFSFileTo_p_wxObject(void *x) {
17235 return (void *)((wxObject *) ((wxFSFile *) x));
17236 }
17237 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
17238 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
17239 }
17240 static void *_p_wxRegionTo_p_wxObject(void *x) {
17241 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
17242 }
17243 static void *_p_wxPySizerTo_p_wxObject(void *x) {
17244 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
17245 }
17246 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
17247 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
17248 }
17249 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
17250 return (void *)((wxObject *) ((wxGDIObject *) x));
17251 }
17252 static void *_p_wxEffectsTo_p_wxObject(void *x) {
17253 return (void *)((wxObject *) ((wxEffects *) x));
17254 }
17255 static void *_p_wxPyEventTo_p_wxObject(void *x) {
17256 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
17257 }
17258 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
17259 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
17260 }
17261 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
17262 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
17263 }
17264 static void *_p_wxShowEventTo_p_wxObject(void *x) {
17265 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
17266 }
17267 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
17268 return (void *)((wxObject *) ((wxMenuItem *) x));
17269 }
17270 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
17271 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
17272 }
17273 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
17274 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
17275 }
17276 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
17277 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
17278 }
17279 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
17280 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
17281 }
17282 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
17283 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
17284 }
17285 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
17286 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
17287 }
17288 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
17289 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
17290 }
17291 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
17292 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
17293 }
17294 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
17295 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
17296 }
17297 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
17298 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
17299 }
17300 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
17301 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
17302 }
17303 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
17304 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
17305 }
17306 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
17307 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
17308 }
17309 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
17310 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
17311 }
17312 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
17313 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
17314 }
17315 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
17316 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
17317 }
17318 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
17319 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
17320 }
17321 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
17322 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
17323 }
17324 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
17325 return (void *)((wxObject *) ((wxImageHandler *) x));
17326 }
17327 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
17328 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
17329 }
17330 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
17331 return (void *)((wxObject *) ((wxEvtHandler *) x));
17332 }
17333 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
17334 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17335 }
17336 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
17337 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
17338 }
17339 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
17340 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
17341 }
17342 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
17343 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
17344 }
17345 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
17346 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
17347 }
17348 static void *_p_wxImageTo_p_wxObject(void *x) {
17349 return (void *)((wxObject *) ((wxImage *) x));
17350 }
17351 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
17352 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
17353 }
17354 static void *_p_wxPaletteTo_p_wxObject(void *x) {
17355 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
17356 }
17357 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
17358 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
17359 }
17360 static void *_p_wxImageListTo_p_wxObject(void *x) {
17361 return (void *)((wxObject *) ((wxImageList *) x));
17362 }
17363 static void *_p_wxCursorTo_p_wxObject(void *x) {
17364 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
17365 }
17366 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
17367 return (void *)((wxObject *) ((wxEncodingConverter *) x));
17368 }
17369 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
17370 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
17371 }
17372 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
17373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
17374 }
17375 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
17376 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
17377 }
17378 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
17379 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
17380 }
17381 static void *_p_wxWindowTo_p_wxObject(void *x) {
17382 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
17383 }
17384 static void *_p_wxMenuTo_p_wxObject(void *x) {
17385 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
17386 }
17387 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
17388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
17389 }
17390 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
17391 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
17392 }
17393 static void *_p_wxBrushListTo_p_wxObject(void *x) {
17394 return (void *)((wxObject *) ((wxBrushList *) x));
17395 }
17396 static void *_p_wxPyPenTo_p_wxObject(void *x) {
17397 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
17398 }
17399 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
17400 return (void *)((wxObject *) ((wxFileSystem *) x));
17401 }
17402 static void *_p_wxBitmapTo_p_wxObject(void *x) {
17403 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
17404 }
17405 static void *_p_wxMaskTo_p_wxObject(void *x) {
17406 return (void *)((wxObject *) ((wxMask *) x));
17407 }
17408 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
17409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
17410 }
17411 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
17412 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
17413 }
17414 static void *_p_wxPyAppTo_p_wxObject(void *x) {
17415 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
17416 }
17417 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
17418 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
17419 }
17420 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
17421 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
17422 }
17423 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
17424 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
17425 }
17426 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
17427 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
17428 }
17429 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
17430 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
17431 }
17432 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
17433 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
17434 }
17435 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
17436 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
17437 }
17438 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
17439 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
17440 }
17441 static void *_p_wxFontTo_p_wxObject(void *x) {
17442 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
17443 }
17444 static void *_p_wxBrushTo_p_wxObject(void *x) {
17445 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
17446 }
17447 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
17448 return (void *)((wxObject *) ((wxMetaFile *) x));
17449 }
17450 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
17451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
17452 }
17453 static void *_p_wxColourTo_p_wxObject(void *x) {
17454 return (void *)((wxObject *) ((wxColour *) x));
17455 }
17456 static void *_p_wxFontListTo_p_wxObject(void *x) {
17457 return (void *)((wxObject *) ((wxFontList *) x));
17458 }
17459 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
17460 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
17461 }
17462 static void *_p_wxValidatorTo_p_wxObject(void *x) {
17463 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
17464 }
17465 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
17466 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
17467 }
17468 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
17469 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
17470 }
17471 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
17472 return (void *)((wxDC *) ((wxScreenDC *) x));
17473 }
17474 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
17475 return (void *)((wxDC *) ((wxMirrorDC *) x));
17476 }
17477 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
17478 return (void *)((wxDC *) ((wxMemoryDC *) x));
17479 }
17480 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
17481 return (void *)((wxDC *) ((wxWindowDC *) x));
17482 }
17483 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
17484 return (void *)((wxDC *) ((wxMetaFileDC *) x));
17485 }
17486 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
17487 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17488 }
17489 static void *_p_wxClientDCTo_p_wxDC(void *x) {
17490 return (void *)((wxDC *) ((wxClientDC *) x));
17491 }
17492 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
17493 return (void *)((wxDC *) ((wxPaintDC *) x));
17494 }
17495 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
17496 return (void *)((wxDC *) ((wxPostScriptDC *) x));
17497 }
17498 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
17499 return (void *)((wxDC *) ((wxPrinterDC *) x));
17500 }
17501 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
17502 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
17503 }
17504 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
17505 return (void *)((wxGDIObject *) ((wxIcon *) x));
17506 }
17507 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
17508 return (void *)((wxGDIObject *) ((wxPalette *) x));
17509 }
17510 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
17511 return (void *)((wxGDIObject *) ((wxPen *) x));
17512 }
17513 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
17514 return (void *)((wxGDIObject *) ((wxFont *) x));
17515 }
17516 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
17517 return (void *)((wxGDIObject *) ((wxCursor *) x));
17518 }
17519 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
17520 return (void *)((wxGDIObject *) ((wxBitmap *) x));
17521 }
17522 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
17523 return (void *)((wxGDIObject *) ((wxRegion *) x));
17524 }
17525 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
17526 return (void *)((wxGDIObject *) ((wxBrush *) x));
17527 }
17528 static void *_p_wxPyPenTo_p_wxPen(void *x) {
17529 return (void *)((wxPen *) ((wxPyPen *) x));
17530 }
17531 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
17532 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
17533 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
17534 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}};
17535 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
17536 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17537 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
17538 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
17539 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
17540 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
17541 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
17542 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
17543 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}};
17544 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
17545 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
17546 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}};
17547 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
17548 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
17549 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
17550 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
17551 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
17552 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}};
17553 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
17554 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
17555 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
17556 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
17557 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
17558 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
17559 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
17560 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
17561 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
17562 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
17563 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
17564 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
17565 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17566 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}};
17567 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
17568 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
17569 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
17570 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
17571 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
17572 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
17573 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
17574 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
17575 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
17576 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
17577 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
17578 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
17579 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
17580 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
17581 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
17582 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
17583 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
17584 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
17585 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
17586
17587 static swig_type_info *swig_types_initial[] = {
17588 _swigt__p_wxPostScriptDC,
17589 _swigt__p_wxBrush,
17590 _swigt__p_wxColour,
17591 _swigt__p_wxDC,
17592 _swigt__p_wxMirrorDC,
17593 _swigt__p_byte,
17594 _swigt__p_wxPyFontEnumerator,
17595 _swigt__p_wxIconLocation,
17596 _swigt__p_wxImage,
17597 _swigt__p_wxMetaFileDC,
17598 _swigt__p_wxMask,
17599 _swigt__p_wxFont,
17600 _swigt__p_wxWindow,
17601 _swigt__p_wxSize,
17602 _swigt__p_double,
17603 _swigt__p_wxMemoryDC,
17604 _swigt__p_wxFontMapper,
17605 _swigt__p_wxEffects,
17606 _swigt__p_wxNativeEncodingInfo,
17607 _swigt__p_wxPalette,
17608 _swigt__p_wxBitmap,
17609 _swigt__p_wxObject,
17610 _swigt__p_wxRegionIterator,
17611 _swigt__p_wxRect,
17612 _swigt__p_wxString,
17613 _swigt__p_wxPrinterDC,
17614 _swigt__p_wxIconBundle,
17615 _swigt__p_wxPoint,
17616 _swigt__p_wxDash,
17617 _swigt__p_wxScreenDC,
17618 _swigt__p_wxCursor,
17619 _swigt__p_wxClientDC,
17620 _swigt__p_wxBufferedDC,
17621 _swigt__p_wxImageList,
17622 _swigt__p_unsigned_char,
17623 _swigt__p_wxGDIObject,
17624 _swigt__p_wxLocale,
17625 _swigt__p_wxIcon,
17626 _swigt__p_wxRegion,
17627 _swigt__p_wxLanguageInfo,
17628 _swigt__p_wxConfigBase,
17629 _swigt__p_wxWindowDC,
17630 _swigt__p_wxPrintData,
17631 _swigt__p_wxBrushList,
17632 _swigt__p_wxFontList,
17633 _swigt__p_wxPen,
17634 _swigt__p_wxBufferedPaintDC,
17635 _swigt__p_wxPaintDC,
17636 _swigt__p_wxPenList,
17637 _swigt__p_wxPyPen,
17638 _swigt__p_int,
17639 _swigt__p_wxMetaFile,
17640 _swigt__p_wxNativeFontInfo,
17641 _swigt__p_wxEncodingConverter,
17642 _swigt__p_wxColourDatabase,
17643 0
17644 };
17645
17646
17647 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17648
17649 static swig_const_info swig_const_table[] = {
17650 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
17651 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
17652 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
17653 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
17654 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
17655 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
17656 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
17657 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
17658 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
17659 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
17660 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
17661 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
17662 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
17663 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
17664 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
17665 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
17666 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
17667 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
17668 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
17669 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
17670 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
17671 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
17672 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
17673 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
17674 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
17675 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
17676 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
17677 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
17678 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
17679 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
17680 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
17681 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
17682 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
17683 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
17684 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
17685 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
17686 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
17687 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
17688 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
17689 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
17690 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
17691 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
17692 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
17693 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
17694 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
17695 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
17696 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
17697 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
17698 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
17699 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
17700 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
17701 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
17702 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
17703 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
17704 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
17705 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17706 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17707 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17708 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17709 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17710 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17711 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17712 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17713 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17714 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17715 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17716 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17717 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17718 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17719 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17720 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17721 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17722 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17723 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17724 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17725 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17726 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17727 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17728 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17729 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17730 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17731 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17732 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17733 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17734 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17735 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17736 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17737 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17738 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17739 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17740 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17741 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17742 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17743 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17744 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17745 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17746 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17747 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17748 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17749 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17750 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17751 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17752 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17753 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17754 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17755 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17756 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17757 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17758 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17759 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17760 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17761 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17762 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17763 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17764 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17765 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17766 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17767 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17768 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17769 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17770 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17771 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17772 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17773 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17774 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17775 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17776 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17777 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17778 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17779 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17780 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17781 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17782 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17783 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17784 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17785 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17786 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17787 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17788 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17789 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17790 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17791 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17792 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17793 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17794 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17795 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17796 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17797 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17798 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17799 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17800 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17801 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17802 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17803 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17804 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17805 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17806 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17807 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17808 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17809 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17810 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17811 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17812 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17813 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17814 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17815 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17816 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17817 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17818 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17819 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17820 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17821 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17822 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17823 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17824 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17825 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17826 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17827 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17828 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17829 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17830 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17831 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17832 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17833 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17834 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17835 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17836 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17837 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17838 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17839 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17840 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17841 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17842 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17843 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17844 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17845 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17846 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17847 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17848 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17849 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17850 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17851 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17852 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17853 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17854 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17855 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17856 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17857 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17858 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17859 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17860 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17861 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17862 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17863 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17864 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17865 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17866 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17867 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17868 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17869 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17870 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17871 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17872 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17873 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17874 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17875 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17876 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17877 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17878 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17879 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17880 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17881 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17882 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17883 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17884 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17885 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17886 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17887 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17888 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17889 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17890 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17891 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17892 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17893 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17894 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17895 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17896 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17897 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17898 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17899 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17900 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17901 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17902 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17903 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17904 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17905 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17906 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17907 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17908 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17909 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17910 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17911 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17912 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17913 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17914 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17915 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17916 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17917 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17918 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17919 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17920 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17921 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17922 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17923 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17924 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17925 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17926 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17927 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17928 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17929 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17930 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17931 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17932 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17933 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17934 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17935 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17936 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17937 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17938 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17939 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17940 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17941 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17942 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17943 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17944 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17945 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17946 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17947 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17948 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17949 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17950 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17951 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17952 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17953 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17954 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17955 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17956 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17957 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17958 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17959 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17960 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17961 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17962 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17963 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17964 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17965 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17966 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17967 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17968 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17969 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17970 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17971 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17972 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17973 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17974 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17975 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17976 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17977 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17978 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17979 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17980 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17981 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17982 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17983 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17984 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17985 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17986 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17987 {0}};
17988
17989 #ifdef __cplusplus
17990 }
17991 #endif
17992
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 SWIGEXPORT(void) SWIG_init(void) {
17997 static PyObject *SWIG_globals = 0;
17998 static int typeinit = 0;
17999 PyObject *m, *d;
18000 int i;
18001 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18002 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18003 d = PyModule_GetDict(m);
18004
18005 if (!typeinit) {
18006 for (i = 0; swig_types_initial[i]; i++) {
18007 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18008 }
18009 typeinit = 1;
18010 }
18011 SWIG_InstallConstants(d,swig_const_table);
18012
18013
18014 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18015
18016 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
18017 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
18018 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
18019 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
18020 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
18021 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
18022 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
18023 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
18024 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
18025 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
18026 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
18027 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
18028 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
18029 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
18030 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
18031 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
18032 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
18033 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
18034 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
18035 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
18036 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
18037 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
18038 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
18039 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
18040 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
18041 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
18042 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
18043 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
18044 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
18045 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
18046 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
18047 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
18048 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
18049 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
18050 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
18051 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
18052 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
18053 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
18054 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
18055 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
18056 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
18057 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
18058 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
18059 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
18060 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
18061 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
18062 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
18063
18064 // Work around a chicken/egg problem in drawlist.cpp
18065 wxPyDrawList_SetAPIPtr();
18066
18067 }
18068