]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
Ensure we have the capture before releasing it.
[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
283 static const wxString wxPyEmptyString(wxEmptyString);
284 PyObject *wxColour_Get(wxColour *self){
285 PyObject* rv = PyTuple_New(3);
286 int red = -1;
287 int green = -1;
288 int blue = -1;
289 if (self->Ok()) {
290 red = self->Red();
291 green = self->Green();
292 blue = self->Blue();
293 }
294 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
295 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
296 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
297 return rv;
298 }
299
300 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
301 PyObject* o2;
302 PyObject* o3;
303
304 if (!target) {
305 target = o;
306 } else if (target == Py_None) {
307 Py_DECREF(Py_None);
308 target = o;
309 } else {
310 if (!PyTuple_Check(target)) {
311 o2 = target;
312 target = PyTuple_New(1);
313 PyTuple_SetItem(target, 0, o2);
314 }
315 o3 = PyTuple_New(1);
316 PyTuple_SetItem(o3, 0, o);
317
318 o2 = target;
319 target = PySequence_Concat(o2, o3);
320 Py_DECREF(o2);
321 Py_DECREF(o3);
322 }
323 return target;
324 }
325
326 PyObject *wxPen_GetDashes(wxPen *self){
327 wxDash* dashes;
328 int count = self->GetDashes(&dashes);
329 wxPyBeginBlockThreads();
330 PyObject* retval = PyList_New(0);
331 for (int x=0; x<count; x++)
332 PyList_Append(retval, PyInt_FromLong(dashes[x]));
333 wxPyEndBlockThreads();
334 return retval;
335 }
336
337 wxPyPen::~wxPyPen()
338 {
339 if (m_dash)
340 delete [] m_dash;
341 }
342
343 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
344 {
345 if (m_dash)
346 delete [] m_dash;
347 m_dash = new wxDash[nb_dashes];
348 for (int i=0; i<nb_dashes; i++) {
349 m_dash[i] = dash[i];
350 }
351 wxPen::SetDashes(nb_dashes, m_dash);
352 }
353
354
355 #include <wx/image.h>
356
357 static char** ConvertListOfStrings(PyObject* listOfStrings) {
358 char** cArray = NULL;
359 int count;
360
361 if (!PyList_Check(listOfStrings)) {
362 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
363 return NULL;
364 }
365 count = PyList_Size(listOfStrings);
366 cArray = new char*[count];
367
368 for(int x=0; x<count; x++) {
369 // TODO: Need some validation and error checking here
370 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
371 }
372 return cArray;
373 }
374
375
376 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
377 char** cArray = NULL;
378 wxBitmap* bmp;
379
380 cArray = ConvertListOfStrings(listOfStrings);
381 if (! cArray)
382 return NULL;
383 bmp = new wxBitmap(cArray);
384 delete [] cArray;
385 return bmp;
386 }
387 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
388 char* buf;
389 int length;
390 PyString_AsStringAndSize(bits, &buf, &length);
391 return new wxBitmap(buf, width, height, depth);
392 }
393 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
394 wxMask *mask = new wxMask(*self, colour);
395 self->SetMask(mask);
396 }
397
398 #include <wx/iconbndl.h>
399
400 wxIcon *new_wxIcon(wxBitmap const &bmp){
401 wxIcon* icon = new wxIcon();
402 icon->CopyFromBitmap(bmp);
403 return icon;
404 }
405 wxIcon *new_wxIcon(PyObject *listOfStrings){
406 char** cArray = NULL;
407 wxIcon* icon;
408
409 cArray = ConvertListOfStrings(listOfStrings);
410 if (! cArray)
411 return NULL;
412 icon = new wxIcon(cArray);
413 delete [] cArray;
414 return icon;
415 }
416 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
417
418 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 { wxPyRaiseNotImplemented(); return NULL; }
473
474 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
475 { wxPyRaiseNotImplemented(); 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 bool temp1 = False ;
3546 PyObject * obj0 = 0 ;
3547 char *kwnames[] = {
3548 (char *) "filename",(char *) "num", NULL
3549 };
3550
3551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3552 if (obj0) {
3553 {
3554 arg1 = wxString_in_helper(obj0);
3555 if (arg1 == NULL) SWIG_fail;
3556 temp1 = True;
3557 }
3558 }
3559 {
3560 PyThreadState* __tstate = wxPyBeginAllowThreads();
3561 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3562
3563 wxPyEndAllowThreads(__tstate);
3564 if (PyErr_Occurred()) SWIG_fail;
3565 }
3566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3567 {
3568 if (temp1)
3569 delete arg1;
3570 }
3571 return resultobj;
3572 fail:
3573 {
3574 if (temp1)
3575 delete arg1;
3576 }
3577 return NULL;
3578 }
3579
3580
3581 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3584 PyObject * obj0 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "self", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3591 {
3592 PyThreadState* __tstate = wxPyBeginAllowThreads();
3593 delete arg1;
3594
3595 wxPyEndAllowThreads(__tstate);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 Py_INCREF(Py_None); resultobj = Py_None;
3599 return resultobj;
3600 fail:
3601 return NULL;
3602 }
3603
3604
3605 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3606 PyObject *resultobj;
3607 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3608 bool result;
3609 PyObject * obj0 = 0 ;
3610 char *kwnames[] = {
3611 (char *) "self", NULL
3612 };
3613
3614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 resultobj = PyInt_FromLong((long)result);
3624 return resultobj;
3625 fail:
3626 return NULL;
3627 }
3628
3629
3630 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj;
3632 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3633 wxString *arg2 = 0 ;
3634 bool temp2 = False ;
3635 PyObject * obj0 = 0 ;
3636 PyObject * obj1 = 0 ;
3637 char *kwnames[] = {
3638 (char *) "self",(char *) "filename", NULL
3639 };
3640
3641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3643 {
3644 arg2 = wxString_in_helper(obj1);
3645 if (arg2 == NULL) SWIG_fail;
3646 temp2 = True;
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 (arg1)->SetFileName((wxString const &)*arg2);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 Py_INCREF(Py_None); resultobj = Py_None;
3656 {
3657 if (temp2)
3658 delete arg2;
3659 }
3660 return resultobj;
3661 fail:
3662 {
3663 if (temp2)
3664 delete arg2;
3665 }
3666 return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj;
3672 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3673 wxString *result;
3674 PyObject * obj0 = 0 ;
3675 char *kwnames[] = {
3676 (char *) "self", NULL
3677 };
3678
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 {
3684 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3685 result = (wxString *) &_result_ref;
3686 }
3687
3688 wxPyEndAllowThreads(__tstate);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 }
3691 {
3692 #if wxUSE_UNICODE
3693 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3694 #else
3695 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3696 #endif
3697 }
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj;
3706 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3707 int arg2 ;
3708 PyObject * obj0 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "self",(char *) "num", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 wxIconLocation_SetIndex(arg1,arg2);
3718
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 Py_INCREF(Py_None); resultobj = Py_None;
3723 return resultobj;
3724 fail:
3725 return NULL;
3726 }
3727
3728
3729 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3730 PyObject *resultobj;
3731 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3732 int result;
3733 PyObject * obj0 = 0 ;
3734 char *kwnames[] = {
3735 (char *) "self", NULL
3736 };
3737
3738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (int)wxIconLocation_GetIndex(arg1);
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = PyInt_FromLong((long)result);
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3755 PyObject *obj;
3756 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3757 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3758 Py_INCREF(obj);
3759 return Py_BuildValue((char *)"");
3760 }
3761 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3762 PyObject *resultobj;
3763 wxIconBundle *result;
3764 char *kwnames[] = {
3765 NULL
3766 };
3767
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 result = (wxIconBundle *)new wxIconBundle();
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxString *arg1 = 0 ;
3786 long arg2 ;
3787 wxIconBundle *result;
3788 bool temp1 = False ;
3789 PyObject * obj0 = 0 ;
3790 char *kwnames[] = {
3791 (char *) "file",(char *) "type", NULL
3792 };
3793
3794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3795 {
3796 arg1 = wxString_in_helper(obj0);
3797 if (arg1 == NULL) SWIG_fail;
3798 temp1 = True;
3799 }
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3808 {
3809 if (temp1)
3810 delete arg1;
3811 }
3812 return resultobj;
3813 fail:
3814 {
3815 if (temp1)
3816 delete arg1;
3817 }
3818 return NULL;
3819 }
3820
3821
3822 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj;
3824 wxIcon *arg1 = 0 ;
3825 wxIconBundle *result;
3826 PyObject * obj0 = 0 ;
3827 char *kwnames[] = {
3828 (char *) "icon", NULL
3829 };
3830
3831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3833 if (arg1 == NULL) {
3834 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3835 }
3836 {
3837 PyThreadState* __tstate = wxPyBeginAllowThreads();
3838 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3839
3840 wxPyEndAllowThreads(__tstate);
3841 if (PyErr_Occurred()) SWIG_fail;
3842 }
3843 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3844 return resultobj;
3845 fail:
3846 return NULL;
3847 }
3848
3849
3850 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3851 PyObject *resultobj;
3852 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3853 PyObject * obj0 = 0 ;
3854 char *kwnames[] = {
3855 (char *) "self", NULL
3856 };
3857
3858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 delete arg1;
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 Py_INCREF(Py_None); resultobj = Py_None;
3868 return resultobj;
3869 fail:
3870 return NULL;
3871 }
3872
3873
3874 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3877 wxIcon *arg2 = 0 ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 char *kwnames[] = {
3881 (char *) "self",(char *) "icon", NULL
3882 };
3883
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3886 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3887 if (arg2 == NULL) {
3888 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3889 }
3890 {
3891 PyThreadState* __tstate = wxPyBeginAllowThreads();
3892 (arg1)->AddIcon((wxIcon const &)*arg2);
3893
3894 wxPyEndAllowThreads(__tstate);
3895 if (PyErr_Occurred()) SWIG_fail;
3896 }
3897 Py_INCREF(Py_None); resultobj = Py_None;
3898 return resultobj;
3899 fail:
3900 return NULL;
3901 }
3902
3903
3904 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3905 PyObject *resultobj;
3906 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3907 wxString *arg2 = 0 ;
3908 long arg3 ;
3909 bool temp2 = False ;
3910 PyObject * obj0 = 0 ;
3911 PyObject * obj1 = 0 ;
3912 char *kwnames[] = {
3913 (char *) "self",(char *) "file",(char *) "type", NULL
3914 };
3915
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3918 {
3919 arg2 = wxString_in_helper(obj1);
3920 if (arg2 == NULL) SWIG_fail;
3921 temp2 = True;
3922 }
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 {
3932 if (temp2)
3933 delete arg2;
3934 }
3935 return resultobj;
3936 fail:
3937 {
3938 if (temp2)
3939 delete arg2;
3940 }
3941 return NULL;
3942 }
3943
3944
3945 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3946 PyObject *resultobj;
3947 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3948 wxSize *arg2 = 0 ;
3949 wxIcon *result;
3950 wxSize temp2 ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953 char *kwnames[] = {
3954 (char *) "self",(char *) "size", NULL
3955 };
3956
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3959 {
3960 arg2 = &temp2;
3961 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3962 }
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 {
3966 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3967 result = (wxIcon *) &_result_ref;
3968 }
3969
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3974 return resultobj;
3975 fail:
3976 return NULL;
3977 }
3978
3979
3980 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3981 PyObject *obj;
3982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3983 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3984 Py_INCREF(obj);
3985 return Py_BuildValue((char *)"");
3986 }
3987 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3988 PyObject *resultobj;
3989 wxString *arg1 = (wxString *) 0 ;
3990 long arg2 ;
3991 int arg3 = (int) 0 ;
3992 int arg4 = (int) 0 ;
3993 wxCursor *result;
3994 bool temp1 = False ;
3995 PyObject * obj0 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4001 {
4002 arg1 = wxString_in_helper(obj0);
4003 if (arg1 == NULL) SWIG_fail;
4004 temp1 = True;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4014 {
4015 if (temp1)
4016 delete arg1;
4017 }
4018 return resultobj;
4019 fail:
4020 {
4021 if (temp1)
4022 delete arg1;
4023 }
4024 return NULL;
4025 }
4026
4027
4028 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj;
4030 wxCursor *arg1 = (wxCursor *) 0 ;
4031 PyObject * obj0 = 0 ;
4032 char *kwnames[] = {
4033 (char *) "self", NULL
4034 };
4035
4036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 delete arg1;
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 Py_INCREF(Py_None); resultobj = Py_None;
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 int arg1 ;
4055 wxCursor *result;
4056 char *kwnames[] = {
4057 (char *) "id", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (wxCursor *)new wxCursor(arg1);
4064
4065 wxPyEndAllowThreads(__tstate);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4069 return resultobj;
4070 fail:
4071 return NULL;
4072 }
4073
4074
4075 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4076 PyObject *resultobj;
4077 wxImage *arg1 = 0 ;
4078 wxCursor *result;
4079 PyObject * obj0 = 0 ;
4080 char *kwnames[] = {
4081 (char *) "image", NULL
4082 };
4083
4084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4086 if (arg1 == NULL) {
4087 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4088 }
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj;
4105 PyObject *arg1 = (PyObject *) 0 ;
4106 int arg2 ;
4107 int arg3 ;
4108 int arg4 = (int) -1 ;
4109 int arg5 = (int) -1 ;
4110 PyObject *arg6 = (PyObject *) 0 ;
4111 wxCursor *result;
4112 PyObject * obj0 = 0 ;
4113 PyObject * obj5 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
4119 arg1 = obj0;
4120 if (obj5) {
4121 arg6 = obj5;
4122 }
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4131 return resultobj;
4132 fail:
4133 return NULL;
4134 }
4135
4136
4137 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4138 PyObject *resultobj;
4139 wxCursor *arg1 = (wxCursor *) 0 ;
4140 long result;
4141 PyObject * obj0 = 0 ;
4142 char *kwnames[] = {
4143 (char *) "self", NULL
4144 };
4145
4146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 result = (long)(arg1)->GetHandle();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 resultobj = PyInt_FromLong((long)result);
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxCursor *arg1 = (wxCursor *) 0 ;
4165 long arg2 ;
4166 PyObject * obj0 = 0 ;
4167 char *kwnames[] = {
4168 (char *) "self",(char *) "handle", NULL
4169 };
4170
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail;
4172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 (arg1)->SetHandle(arg2);
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 Py_INCREF(Py_None); resultobj = Py_None;
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj;
4189 wxCursor *arg1 = (wxCursor *) 0 ;
4190 bool result;
4191 PyObject * obj0 = 0 ;
4192 char *kwnames[] = {
4193 (char *) "self", NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 result = (bool)(arg1)->Ok();
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 resultobj = PyInt_FromLong((long)result);
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj;
4214 wxCursor *arg1 = (wxCursor *) 0 ;
4215 int result;
4216 PyObject * obj0 = 0 ;
4217 char *kwnames[] = {
4218 (char *) "self", NULL
4219 };
4220
4221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 result = (int)(arg1)->GetWidth();
4226
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = PyInt_FromLong((long)result);
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj;
4239 wxCursor *arg1 = (wxCursor *) 0 ;
4240 int result;
4241 PyObject * obj0 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 result = (int)(arg1)->GetHeight();
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = PyInt_FromLong((long)result);
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj;
4264 wxCursor *arg1 = (wxCursor *) 0 ;
4265 int result;
4266 PyObject * obj0 = 0 ;
4267 char *kwnames[] = {
4268 (char *) "self", NULL
4269 };
4270
4271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (int)(arg1)->GetDepth();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = PyInt_FromLong((long)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxCursor *arg1 = (wxCursor *) 0 ;
4290 int arg2 ;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "self",(char *) "w", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail;
4297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 (arg1)->SetWidth(arg2);
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 Py_INCREF(Py_None); resultobj = Py_None;
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxCursor *arg1 = (wxCursor *) 0 ;
4315 int arg2 ;
4316 PyObject * obj0 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "self",(char *) "h", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail;
4322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 (arg1)->SetHeight(arg2);
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 Py_INCREF(Py_None); resultobj = Py_None;
4331 return resultobj;
4332 fail:
4333 return NULL;
4334 }
4335
4336
4337 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject *resultobj;
4339 wxCursor *arg1 = (wxCursor *) 0 ;
4340 int arg2 ;
4341 PyObject * obj0 = 0 ;
4342 char *kwnames[] = {
4343 (char *) "self",(char *) "d", NULL
4344 };
4345
4346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail;
4347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4348 {
4349 PyThreadState* __tstate = wxPyBeginAllowThreads();
4350 (arg1)->SetDepth(arg2);
4351
4352 wxPyEndAllowThreads(__tstate);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 }
4355 Py_INCREF(Py_None); resultobj = Py_None;
4356 return resultobj;
4357 fail:
4358 return NULL;
4359 }
4360
4361
4362 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4363 PyObject *resultobj;
4364 wxCursor *arg1 = (wxCursor *) 0 ;
4365 wxSize *arg2 = 0 ;
4366 wxSize temp2 ;
4367 PyObject * obj0 = 0 ;
4368 PyObject * obj1 = 0 ;
4369 char *kwnames[] = {
4370 (char *) "self",(char *) "size", NULL
4371 };
4372
4373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4375 {
4376 arg2 = &temp2;
4377 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4378 }
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 (arg1)->SetSize((wxSize const &)*arg2);
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 Py_INCREF(Py_None); resultobj = Py_None;
4387 return resultobj;
4388 fail:
4389 return NULL;
4390 }
4391
4392
4393 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4394 PyObject *obj;
4395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4396 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4397 Py_INCREF(obj);
4398 return Py_BuildValue((char *)"");
4399 }
4400 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 int arg1 = (int) 0 ;
4403 int arg2 = (int) 0 ;
4404 int arg3 = (int) 0 ;
4405 int arg4 = (int) 0 ;
4406 wxRegion *result;
4407 char *kwnames[] = {
4408 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4409 };
4410
4411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 wxBitmap *arg1 = 0 ;
4429 wxColour const &arg2_defvalue = wxNullColour ;
4430 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4431 int arg3 = (int) 0 ;
4432 wxRegion *result;
4433 wxColour temp2 ;
4434 PyObject * obj0 = 0 ;
4435 PyObject * obj1 = 0 ;
4436 char *kwnames[] = {
4437 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4438 };
4439
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
4441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4442 if (arg1 == NULL) {
4443 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4444 }
4445 if (obj1) {
4446 {
4447 arg2 = &temp2;
4448 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4449 }
4450 }
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4454
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj;
4467 int arg1 ;
4468 wxPoint *arg2 = (wxPoint *) 0 ;
4469 int arg3 = (int) wxWINDING_RULE ;
4470 wxRegion *result;
4471 PyObject * obj0 = 0 ;
4472 char *kwnames[] = {
4473 (char *) "points",(char *) "fillStyle", NULL
4474 };
4475
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
4477 {
4478 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4479 if (arg2 == NULL) SWIG_fail;
4480 }
4481 {
4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
4483 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4484
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4489 {
4490 if (arg2) delete [] arg2;
4491 }
4492 return resultobj;
4493 fail:
4494 {
4495 if (arg2) delete [] arg2;
4496 }
4497 return NULL;
4498 }
4499
4500
4501 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj;
4503 wxRegion *arg1 = (wxRegion *) 0 ;
4504 PyObject * obj0 = 0 ;
4505 char *kwnames[] = {
4506 (char *) "self", NULL
4507 };
4508
4509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4511 {
4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
4513 delete arg1;
4514
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 Py_INCREF(Py_None); resultobj = Py_None;
4519 return resultobj;
4520 fail:
4521 return NULL;
4522 }
4523
4524
4525 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxRegion *arg1 = (wxRegion *) 0 ;
4528 PyObject * obj0 = 0 ;
4529 char *kwnames[] = {
4530 (char *) "self", NULL
4531 };
4532
4533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 (arg1)->Clear();
4538
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 Py_INCREF(Py_None); resultobj = Py_None;
4543 return resultobj;
4544 fail:
4545 return NULL;
4546 }
4547
4548
4549 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4550 PyObject *resultobj;
4551 wxRegion *arg1 = (wxRegion *) 0 ;
4552 int arg2 ;
4553 int arg3 ;
4554 bool result;
4555 PyObject * obj0 = 0 ;
4556 char *kwnames[] = {
4557 (char *) "self",(char *) "x",(char *) "y", NULL
4558 };
4559
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail;
4561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 result = (bool)(arg1)->Offset(arg2,arg3);
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 resultobj = PyInt_FromLong((long)result);
4570 return resultobj;
4571 fail:
4572 return NULL;
4573 }
4574
4575
4576 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj;
4578 wxRegion *arg1 = (wxRegion *) 0 ;
4579 int arg2 ;
4580 int arg3 ;
4581 int result;
4582 PyObject * obj0 = 0 ;
4583 char *kwnames[] = {
4584 (char *) "self",(char *) "x",(char *) "y", NULL
4585 };
4586
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4589 {
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (int)(arg1)->Contains(arg2,arg3);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = PyInt_FromLong((long)result);
4597 return resultobj;
4598 fail:
4599 return NULL;
4600 }
4601
4602
4603 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxRegion *arg1 = (wxRegion *) 0 ;
4606 wxPoint *arg2 = 0 ;
4607 int result;
4608 wxPoint temp2 ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "self",(char *) "pt", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4617 {
4618 arg2 = &temp2;
4619 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4620 }
4621 {
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4624
4625 wxPyEndAllowThreads(__tstate);
4626 if (PyErr_Occurred()) SWIG_fail;
4627 }
4628 resultobj = PyInt_FromLong((long)result);
4629 return resultobj;
4630 fail:
4631 return NULL;
4632 }
4633
4634
4635 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4636 PyObject *resultobj;
4637 wxRegion *arg1 = (wxRegion *) 0 ;
4638 wxRect *arg2 = 0 ;
4639 int result;
4640 wxRect temp2 ;
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 char *kwnames[] = {
4644 (char *) "self",(char *) "rect", NULL
4645 };
4646
4647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4649 {
4650 arg2 = &temp2;
4651 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = PyInt_FromLong((long)result);
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj;
4669 wxRegion *arg1 = (wxRegion *) 0 ;
4670 int arg2 ;
4671 int arg3 ;
4672 int arg4 ;
4673 int arg5 ;
4674 int result;
4675 PyObject * obj0 = 0 ;
4676 char *kwnames[] = {
4677 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4678 };
4679
4680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4682 {
4683 PyThreadState* __tstate = wxPyBeginAllowThreads();
4684 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4685
4686 wxPyEndAllowThreads(__tstate);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 resultobj = PyInt_FromLong((long)result);
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4697 PyObject *resultobj;
4698 wxRegion *arg1 = (wxRegion *) 0 ;
4699 wxRect result;
4700 PyObject * obj0 = 0 ;
4701 char *kwnames[] = {
4702 (char *) "self", NULL
4703 };
4704
4705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 result = (arg1)->GetBox();
4710
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 {
4715 wxRect * resultptr;
4716 resultptr = new wxRect((wxRect &) result);
4717 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4718 }
4719 return resultobj;
4720 fail:
4721 return NULL;
4722 }
4723
4724
4725 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4726 PyObject *resultobj;
4727 wxRegion *arg1 = (wxRegion *) 0 ;
4728 int arg2 ;
4729 int arg3 ;
4730 int arg4 ;
4731 int arg5 ;
4732 bool result;
4733 PyObject * obj0 = 0 ;
4734 char *kwnames[] = {
4735 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4736 };
4737
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 resultobj = PyInt_FromLong((long)result);
4748 return resultobj;
4749 fail:
4750 return NULL;
4751 }
4752
4753
4754 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 wxRegion *arg1 = (wxRegion *) 0 ;
4757 wxRect *arg2 = 0 ;
4758 bool result;
4759 wxRect temp2 ;
4760 PyObject * obj0 = 0 ;
4761 PyObject * obj1 = 0 ;
4762 char *kwnames[] = {
4763 (char *) "self",(char *) "rect", NULL
4764 };
4765
4766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4768 {
4769 arg2 = &temp2;
4770 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4771 }
4772 {
4773 PyThreadState* __tstate = wxPyBeginAllowThreads();
4774 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4775
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = PyInt_FromLong((long)result);
4780 return resultobj;
4781 fail:
4782 return NULL;
4783 }
4784
4785
4786 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4787 PyObject *resultobj;
4788 wxRegion *arg1 = (wxRegion *) 0 ;
4789 wxRegion *arg2 = 0 ;
4790 bool result;
4791 PyObject * obj0 = 0 ;
4792 PyObject * obj1 = 0 ;
4793 char *kwnames[] = {
4794 (char *) "self",(char *) "region", NULL
4795 };
4796
4797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4799 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4800 if (arg2 == NULL) {
4801 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4802 }
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4806
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = PyInt_FromLong((long)result);
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj;
4819 wxRegion *arg1 = (wxRegion *) 0 ;
4820 bool result;
4821 PyObject * obj0 = 0 ;
4822 char *kwnames[] = {
4823 (char *) "self", NULL
4824 };
4825
4826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 result = (bool)(arg1)->IsEmpty();
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 resultobj = PyInt_FromLong((long)result);
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 wxRegion *arg1 = (wxRegion *) 0 ;
4845 int arg2 ;
4846 int arg3 ;
4847 int arg4 ;
4848 int arg5 ;
4849 bool result;
4850 PyObject * obj0 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4853 };
4854
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4860
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = PyInt_FromLong((long)result);
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj;
4873 wxRegion *arg1 = (wxRegion *) 0 ;
4874 wxRect *arg2 = 0 ;
4875 bool result;
4876 wxRect temp2 ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 char *kwnames[] = {
4880 (char *) "self",(char *) "rect", NULL
4881 };
4882
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4885 {
4886 arg2 = &temp2;
4887 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4888 }
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4892
4893 wxPyEndAllowThreads(__tstate);
4894 if (PyErr_Occurred()) SWIG_fail;
4895 }
4896 resultobj = PyInt_FromLong((long)result);
4897 return resultobj;
4898 fail:
4899 return NULL;
4900 }
4901
4902
4903 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4904 PyObject *resultobj;
4905 wxRegion *arg1 = (wxRegion *) 0 ;
4906 wxRegion *arg2 = 0 ;
4907 bool result;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char *kwnames[] = {
4911 (char *) "self",(char *) "region", NULL
4912 };
4913
4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4916 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4917 if (arg2 == NULL) {
4918 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4919 }
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4923
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = PyInt_FromLong((long)result);
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4935 PyObject *resultobj;
4936 wxRegion *arg1 = (wxRegion *) 0 ;
4937 int arg2 ;
4938 int arg3 ;
4939 int arg4 ;
4940 int arg5 ;
4941 bool result;
4942 PyObject * obj0 = 0 ;
4943 char *kwnames[] = {
4944 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4945 };
4946
4947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4952
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 resultobj = PyInt_FromLong((long)result);
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj;
4965 wxRegion *arg1 = (wxRegion *) 0 ;
4966 wxRect *arg2 = 0 ;
4967 bool result;
4968 wxRect temp2 ;
4969 PyObject * obj0 = 0 ;
4970 PyObject * obj1 = 0 ;
4971 char *kwnames[] = {
4972 (char *) "self",(char *) "rect", NULL
4973 };
4974
4975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4977 {
4978 arg2 = &temp2;
4979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4980 }
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 resultobj = PyInt_FromLong((long)result);
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxRegion *arg1 = (wxRegion *) 0 ;
4998 wxRegion *arg2 = 0 ;
4999 bool result;
5000 PyObject * obj0 = 0 ;
5001 PyObject * obj1 = 0 ;
5002 char *kwnames[] = {
5003 (char *) "self",(char *) "region", NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5008 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5009 if (arg2 == NULL) {
5010 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 resultobj = PyInt_FromLong((long)result);
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj;
5028 wxRegion *arg1 = (wxRegion *) 0 ;
5029 int arg2 ;
5030 int arg3 ;
5031 int arg4 ;
5032 int arg5 ;
5033 bool result;
5034 PyObject * obj0 = 0 ;
5035 char *kwnames[] = {
5036 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5037 };
5038
5039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
5040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 resultobj = PyInt_FromLong((long)result);
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5056 PyObject *resultobj;
5057 wxRegion *arg1 = (wxRegion *) 0 ;
5058 wxRect *arg2 = 0 ;
5059 bool result;
5060 wxRect temp2 ;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 char *kwnames[] = {
5064 (char *) "self",(char *) "rect", NULL
5065 };
5066
5067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5069 {
5070 arg2 = &temp2;
5071 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5072 }
5073 {
5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
5075 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5076
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 resultobj = PyInt_FromLong((long)result);
5081 return resultobj;
5082 fail:
5083 return NULL;
5084 }
5085
5086
5087 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj;
5089 wxRegion *arg1 = (wxRegion *) 0 ;
5090 wxRegion *arg2 = 0 ;
5091 bool result;
5092 PyObject * obj0 = 0 ;
5093 PyObject * obj1 = 0 ;
5094 char *kwnames[] = {
5095 (char *) "self",(char *) "region", NULL
5096 };
5097
5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5100 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5101 if (arg2 == NULL) {
5102 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5103 }
5104 {
5105 PyThreadState* __tstate = wxPyBeginAllowThreads();
5106 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5107
5108 wxPyEndAllowThreads(__tstate);
5109 if (PyErr_Occurred()) SWIG_fail;
5110 }
5111 resultobj = PyInt_FromLong((long)result);
5112 return resultobj;
5113 fail:
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxRegion *arg1 = (wxRegion *) 0 ;
5121 SwigValueWrapper< wxBitmap > result;
5122 PyObject * obj0 = 0 ;
5123 char *kwnames[] = {
5124 (char *) "self", NULL
5125 };
5126
5127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 result = (arg1)->ConvertToBitmap();
5132
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 {
5137 wxBitmap * resultptr;
5138 resultptr = new wxBitmap((wxBitmap &) result);
5139 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5140 }
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj;
5149 wxRegion *arg1 = (wxRegion *) 0 ;
5150 wxBitmap *arg2 = 0 ;
5151 wxColour const &arg3_defvalue = wxNullColour ;
5152 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5153 int arg4 = (int) 0 ;
5154 bool result;
5155 wxColour temp3 ;
5156 PyObject * obj0 = 0 ;
5157 PyObject * obj1 = 0 ;
5158 PyObject * obj2 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5165 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5166 if (arg2 == NULL) {
5167 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5168 }
5169 if (obj2) {
5170 {
5171 arg3 = &temp3;
5172 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5173 }
5174 }
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5178
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = PyInt_FromLong((long)result);
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5190 PyObject *obj;
5191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5192 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5193 Py_INCREF(obj);
5194 return Py_BuildValue((char *)"");
5195 }
5196 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5197 PyObject *resultobj;
5198 wxRegion *arg1 = 0 ;
5199 wxRegionIterator *result;
5200 PyObject * obj0 = 0 ;
5201 char *kwnames[] = {
5202 (char *) "region", NULL
5203 };
5204
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5207 if (arg1 == NULL) {
5208 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5209 }
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj;
5226 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5227 PyObject * obj0 = 0 ;
5228 char *kwnames[] = {
5229 (char *) "self", NULL
5230 };
5231
5232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5234 {
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 delete arg1;
5237
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 Py_INCREF(Py_None); resultobj = Py_None;
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj;
5250 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5251 int result;
5252 PyObject * obj0 = 0 ;
5253 char *kwnames[] = {
5254 (char *) "self", NULL
5255 };
5256
5257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (int)(arg1)->GetX();
5262
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = PyInt_FromLong((long)result);
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5276 int result;
5277 PyObject * obj0 = 0 ;
5278 char *kwnames[] = {
5279 (char *) "self", NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (int)(arg1)->GetY();
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = PyInt_FromLong((long)result);
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5301 int result;
5302 PyObject * obj0 = 0 ;
5303 char *kwnames[] = {
5304 (char *) "self", NULL
5305 };
5306
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 result = (int)(arg1)->GetW();
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = PyInt_FromLong((long)result);
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5326 int result;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "self", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (int)(arg1)->GetWidth();
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 resultobj = PyInt_FromLong((long)result);
5342 return resultobj;
5343 fail:
5344 return NULL;
5345 }
5346
5347
5348 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5351 int result;
5352 PyObject * obj0 = 0 ;
5353 char *kwnames[] = {
5354 (char *) "self", NULL
5355 };
5356
5357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 result = (int)(arg1)->GetH();
5362
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 resultobj = PyInt_FromLong((long)result);
5367 return resultobj;
5368 fail:
5369 return NULL;
5370 }
5371
5372
5373 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5374 PyObject *resultobj;
5375 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5376 int result;
5377 PyObject * obj0 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 result = (int)(arg1)->GetHeight();
5387
5388 wxPyEndAllowThreads(__tstate);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 }
5391 resultobj = PyInt_FromLong((long)result);
5392 return resultobj;
5393 fail:
5394 return NULL;
5395 }
5396
5397
5398 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5401 wxRect result;
5402 PyObject * obj0 = 0 ;
5403 char *kwnames[] = {
5404 (char *) "self", NULL
5405 };
5406
5407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5409 {
5410 PyThreadState* __tstate = wxPyBeginAllowThreads();
5411 result = (arg1)->GetRect();
5412
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 {
5417 wxRect * resultptr;
5418 resultptr = new wxRect((wxRect &) result);
5419 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5420 }
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5430 bool result;
5431 PyObject * obj0 = 0 ;
5432 char *kwnames[] = {
5433 (char *) "self", NULL
5434 };
5435
5436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 result = (bool)(arg1)->HaveRects();
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 resultobj = PyInt_FromLong((long)result);
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5455 PyObject * obj0 = 0 ;
5456 char *kwnames[] = {
5457 (char *) "self", NULL
5458 };
5459
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 (arg1)->Reset();
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 Py_INCREF(Py_None); resultobj = Py_None;
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5479 PyObject * obj0 = 0 ;
5480 char *kwnames[] = {
5481 (char *) "self", NULL
5482 };
5483
5484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 wxRegionIterator_Next(arg1);
5489
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 Py_INCREF(Py_None); resultobj = Py_None;
5494 return resultobj;
5495 fail:
5496 return NULL;
5497 }
5498
5499
5500 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5501 PyObject *resultobj;
5502 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5503 bool result;
5504 PyObject * obj0 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "self", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 result = (bool)wxRegionIterator___nonzero__(arg1);
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = PyInt_FromLong((long)result);
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5526 PyObject *obj;
5527 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5528 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5529 Py_INCREF(obj);
5530 return Py_BuildValue((char *)"");
5531 }
5532 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj;
5534 wxNativeFontInfo *result;
5535 char *kwnames[] = {
5536 NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5557 PyObject * obj0 = 0 ;
5558 char *kwnames[] = {
5559 (char *) "self", NULL
5560 };
5561
5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 delete arg1;
5567
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 Py_INCREF(Py_None); resultobj = Py_None;
5572 return resultobj;
5573 fail:
5574 return NULL;
5575 }
5576
5577
5578 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj;
5580 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5581 PyObject * obj0 = 0 ;
5582 char *kwnames[] = {
5583 (char *) "self", NULL
5584 };
5585
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 (arg1)->Init();
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 Py_INCREF(Py_None); resultobj = Py_None;
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj;
5604 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5605 wxFont *arg2 = 0 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char *kwnames[] = {
5609 (char *) "self",(char *) "font", NULL
5610 };
5611
5612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5614 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5615 if (arg2 == NULL) {
5616 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5617 }
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 (arg1)->InitFromFont((wxFont const &)*arg2);
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 Py_INCREF(Py_None); resultobj = Py_None;
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5633 PyObject *resultobj;
5634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5635 int result;
5636 PyObject * obj0 = 0 ;
5637 char *kwnames[] = {
5638 (char *) "self", NULL
5639 };
5640
5641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5643 {
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5646
5647 wxPyEndAllowThreads(__tstate);
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 resultobj = PyInt_FromLong((long)result);
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj;
5659 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5660 int result;
5661 PyObject * obj0 = 0 ;
5662 char *kwnames[] = {
5663 (char *) "self", NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 resultobj = PyInt_FromLong((long)result);
5676 return resultobj;
5677 fail:
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5685 int result;
5686 PyObject * obj0 = 0 ;
5687 char *kwnames[] = {
5688 (char *) "self", NULL
5689 };
5690
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = PyInt_FromLong((long)result);
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5710 bool result;
5711 PyObject * obj0 = 0 ;
5712 char *kwnames[] = {
5713 (char *) "self", NULL
5714 };
5715
5716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5718 {
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5721
5722 wxPyEndAllowThreads(__tstate);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 resultobj = PyInt_FromLong((long)result);
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5735 wxString result;
5736 PyObject * obj0 = 0 ;
5737 char *kwnames[] = {
5738 (char *) "self", NULL
5739 };
5740
5741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5743 {
5744 PyThreadState* __tstate = wxPyBeginAllowThreads();
5745 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5746
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 {
5751 #if wxUSE_UNICODE
5752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5753 #else
5754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5755 #endif
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5766 int result;
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 resultobj = PyInt_FromLong((long)result);
5782 return resultobj;
5783 fail:
5784 return NULL;
5785 }
5786
5787
5788 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5791 int result;
5792 PyObject * obj0 = 0 ;
5793 char *kwnames[] = {
5794 (char *) "self", NULL
5795 };
5796
5797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = PyInt_FromLong((long)result);
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5816 int arg2 ;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self",(char *) "pointsize", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 (arg1)->SetPointSize(arg2);
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 Py_INCREF(Py_None); resultobj = Py_None;
5832 return resultobj;
5833 fail:
5834 return NULL;
5835 }
5836
5837
5838 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5839 PyObject *resultobj;
5840 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5841 int arg2 ;
5842 PyObject * obj0 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self",(char *) "style", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 (arg1)->SetStyle((wxFontStyle )arg2);
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 Py_INCREF(Py_None); resultobj = Py_None;
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5866 int arg2 ;
5867 PyObject * obj0 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self",(char *) "weight", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 (arg1)->SetWeight((wxFontWeight )arg2);
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 Py_INCREF(Py_None); resultobj = Py_None;
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5891 bool arg2 ;
5892 PyObject * obj0 = 0 ;
5893 PyObject * obj1 = 0 ;
5894 char *kwnames[] = {
5895 (char *) "self",(char *) "underlined", NULL
5896 };
5897
5898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5900 arg2 = PyInt_AsLong(obj1) ? true : false;
5901 if (PyErr_Occurred()) SWIG_fail;
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->SetUnderlined(arg2);
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 Py_INCREF(Py_None); resultobj = Py_None;
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj;
5918 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5919 wxString arg2 ;
5920 PyObject * obj0 = 0 ;
5921 PyObject * obj1 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "self",(char *) "facename", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5928 {
5929 wxString* sptr = wxString_in_helper(obj1);
5930 if (sptr == NULL) SWIG_fail;
5931 arg2 = *sptr;
5932 delete sptr;
5933 }
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 (arg1)->SetFaceName(arg2);
5937
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 Py_INCREF(Py_None); resultobj = Py_None;
5942 return resultobj;
5943 fail:
5944 return NULL;
5945 }
5946
5947
5948 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5949 PyObject *resultobj;
5950 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5951 int arg2 ;
5952 PyObject * obj0 = 0 ;
5953 char *kwnames[] = {
5954 (char *) "self",(char *) "family", NULL
5955 };
5956
5957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5959 {
5960 PyThreadState* __tstate = wxPyBeginAllowThreads();
5961 (arg1)->SetFamily((wxFontFamily )arg2);
5962
5963 wxPyEndAllowThreads(__tstate);
5964 if (PyErr_Occurred()) SWIG_fail;
5965 }
5966 Py_INCREF(Py_None); resultobj = Py_None;
5967 return resultobj;
5968 fail:
5969 return NULL;
5970 }
5971
5972
5973 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5974 PyObject *resultobj;
5975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5976 int arg2 ;
5977 PyObject * obj0 = 0 ;
5978 char *kwnames[] = {
5979 (char *) "self",(char *) "encoding", NULL
5980 };
5981
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 (arg1)->SetEncoding((wxFontEncoding )arg2);
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 Py_INCREF(Py_None); resultobj = Py_None;
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6001 wxString *arg2 = 0 ;
6002 bool result;
6003 bool temp2 = False ;
6004 PyObject * obj0 = 0 ;
6005 PyObject * obj1 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "self",(char *) "s", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6012 {
6013 arg2 = wxString_in_helper(obj1);
6014 if (arg2 == NULL) SWIG_fail;
6015 temp2 = True;
6016 }
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = PyInt_FromLong((long)result);
6025 {
6026 if (temp2)
6027 delete arg2;
6028 }
6029 return resultobj;
6030 fail:
6031 {
6032 if (temp2)
6033 delete arg2;
6034 }
6035 return NULL;
6036 }
6037
6038
6039 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6040 PyObject *resultobj;
6041 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6042 wxString result;
6043 PyObject * obj0 = 0 ;
6044 char *kwnames[] = {
6045 (char *) "self", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6050 {
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 result = ((wxNativeFontInfo const *)arg1)->ToString();
6053
6054 wxPyEndAllowThreads(__tstate);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 }
6057 {
6058 #if wxUSE_UNICODE
6059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6060 #else
6061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6062 #endif
6063 }
6064 return resultobj;
6065 fail:
6066 return NULL;
6067 }
6068
6069
6070 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6073 wxString result;
6074 PyObject * obj0 = 0 ;
6075 char *kwnames[] = {
6076 (char *) "self", NULL
6077 };
6078
6079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6081 {
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 result = wxNativeFontInfo___str__(arg1);
6084
6085 wxPyEndAllowThreads(__tstate);
6086 if (PyErr_Occurred()) SWIG_fail;
6087 }
6088 {
6089 #if wxUSE_UNICODE
6090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6091 #else
6092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6093 #endif
6094 }
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6102 PyObject *resultobj;
6103 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6104 wxString *arg2 = 0 ;
6105 bool result;
6106 bool temp2 = False ;
6107 PyObject * obj0 = 0 ;
6108 PyObject * obj1 = 0 ;
6109 char *kwnames[] = {
6110 (char *) "self",(char *) "s", NULL
6111 };
6112
6113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6115 {
6116 arg2 = wxString_in_helper(obj1);
6117 if (arg2 == NULL) SWIG_fail;
6118 temp2 = True;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6123
6124 wxPyEndAllowThreads(__tstate);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 resultobj = PyInt_FromLong((long)result);
6128 {
6129 if (temp2)
6130 delete arg2;
6131 }
6132 return resultobj;
6133 fail:
6134 {
6135 if (temp2)
6136 delete arg2;
6137 }
6138 return NULL;
6139 }
6140
6141
6142 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj;
6144 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6145 wxString result;
6146 PyObject * obj0 = 0 ;
6147 char *kwnames[] = {
6148 (char *) "self", NULL
6149 };
6150
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6153 {
6154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6155 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6156
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 {
6161 #if wxUSE_UNICODE
6162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6163 #else
6164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6165 #endif
6166 }
6167 return resultobj;
6168 fail:
6169 return NULL;
6170 }
6171
6172
6173 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6174 PyObject *obj;
6175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6176 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6177 Py_INCREF(obj);
6178 return Py_BuildValue((char *)"");
6179 }
6180 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6181 PyObject *resultobj;
6182 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6183 wxString *arg2 = (wxString *) 0 ;
6184 bool temp2 = False ;
6185 PyObject * obj0 = 0 ;
6186 PyObject * obj1 = 0 ;
6187 char *kwnames[] = {
6188 (char *) "self",(char *) "facename", NULL
6189 };
6190
6191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6193 {
6194 arg2 = wxString_in_helper(obj1);
6195 if (arg2 == NULL) SWIG_fail;
6196 temp2 = True;
6197 }
6198 if (arg1) (arg1)->facename = *arg2;
6199
6200 Py_INCREF(Py_None); resultobj = Py_None;
6201 {
6202 if (temp2)
6203 delete arg2;
6204 }
6205 return resultobj;
6206 fail:
6207 {
6208 if (temp2)
6209 delete arg2;
6210 }
6211 return NULL;
6212 }
6213
6214
6215 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj;
6217 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6218 wxString *result;
6219 PyObject * obj0 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6226 result = (wxString *)& ((arg1)->facename);
6227
6228 {
6229 #if wxUSE_UNICODE
6230 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6231 #else
6232 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6233 #endif
6234 }
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj;
6243 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6244 int arg2 ;
6245 PyObject * obj0 = 0 ;
6246 char *kwnames[] = {
6247 (char *) "self",(char *) "encoding", NULL
6248 };
6249
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
6251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6252 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6253
6254 Py_INCREF(Py_None); resultobj = Py_None;
6255 return resultobj;
6256 fail:
6257 return NULL;
6258 }
6259
6260
6261 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj;
6263 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6264 int result;
6265 PyObject * obj0 = 0 ;
6266 char *kwnames[] = {
6267 (char *) "self", NULL
6268 };
6269
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6272 result = (int) ((arg1)->encoding);
6273
6274 resultobj = PyInt_FromLong((long)result);
6275 return resultobj;
6276 fail:
6277 return NULL;
6278 }
6279
6280
6281 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxNativeEncodingInfo *result;
6284 char *kwnames[] = {
6285 NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6292
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6297 return resultobj;
6298 fail:
6299 return NULL;
6300 }
6301
6302
6303 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj;
6305 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6306 PyObject * obj0 = 0 ;
6307 char *kwnames[] = {
6308 (char *) "self", NULL
6309 };
6310
6311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6313 {
6314 PyThreadState* __tstate = wxPyBeginAllowThreads();
6315 delete arg1;
6316
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 Py_INCREF(Py_None); resultobj = Py_None;
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6330 wxString *arg2 = 0 ;
6331 bool result;
6332 bool temp2 = False ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self",(char *) "s", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6341 {
6342 arg2 = wxString_in_helper(obj1);
6343 if (arg2 == NULL) SWIG_fail;
6344 temp2 = True;
6345 }
6346 {
6347 PyThreadState* __tstate = wxPyBeginAllowThreads();
6348 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6349
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = PyInt_FromLong((long)result);
6354 {
6355 if (temp2)
6356 delete arg2;
6357 }
6358 return resultobj;
6359 fail:
6360 {
6361 if (temp2)
6362 delete arg2;
6363 }
6364 return NULL;
6365 }
6366
6367
6368 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj;
6370 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6371 wxString result;
6372 PyObject * obj0 = 0 ;
6373 char *kwnames[] = {
6374 (char *) "self", NULL
6375 };
6376
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 {
6387 #if wxUSE_UNICODE
6388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6389 #else
6390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6391 #endif
6392 }
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6400 PyObject *obj;
6401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6402 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6403 Py_INCREF(obj);
6404 return Py_BuildValue((char *)"");
6405 }
6406 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6407 PyObject *resultobj;
6408 int arg1 ;
6409 wxNativeEncodingInfo *result;
6410 char *kwnames[] = {
6411 (char *) "encoding", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6430 PyObject *resultobj;
6431 wxNativeEncodingInfo *arg1 = 0 ;
6432 bool result;
6433 PyObject * obj0 = 0 ;
6434 char *kwnames[] = {
6435 (char *) "info", NULL
6436 };
6437
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6440 if (arg1 == NULL) {
6441 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6442 }
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 resultobj = PyInt_FromLong((long)result);
6451 return resultobj;
6452 fail:
6453 return NULL;
6454 }
6455
6456
6457 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6458 PyObject *resultobj;
6459 wxFontMapper *result;
6460 char *kwnames[] = {
6461 NULL
6462 };
6463
6464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6465 {
6466 PyThreadState* __tstate = wxPyBeginAllowThreads();
6467 result = (wxFontMapper *)new wxFontMapper();
6468
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6473 return resultobj;
6474 fail:
6475 return NULL;
6476 }
6477
6478
6479 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6480 PyObject *resultobj;
6481 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6482 PyObject * obj0 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 delete arg1;
6492
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 Py_INCREF(Py_None); resultobj = Py_None;
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj;
6505 wxFontMapper *result;
6506 char *kwnames[] = {
6507 NULL
6508 };
6509
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 result = (wxFontMapper *)wxFontMapper::Get();
6514
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj;
6527 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6528 wxFontMapper *result;
6529 PyObject * obj0 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "mapper", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6536 {
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6539
6540 wxPyEndAllowThreads(__tstate);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 }
6543 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6544 return resultobj;
6545 fail:
6546 return NULL;
6547 }
6548
6549
6550 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6551 PyObject *resultobj;
6552 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6553 wxString *arg2 = 0 ;
6554 bool arg3 = (bool) True ;
6555 int result;
6556 bool temp2 = False ;
6557 PyObject * obj0 = 0 ;
6558 PyObject * obj1 = 0 ;
6559 PyObject * obj2 = 0 ;
6560 char *kwnames[] = {
6561 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6562 };
6563
6564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6566 {
6567 arg2 = wxString_in_helper(obj1);
6568 if (arg2 == NULL) SWIG_fail;
6569 temp2 = True;
6570 }
6571 if (obj2) {
6572 arg3 = PyInt_AsLong(obj2) ? true : false;
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 resultobj = PyInt_FromLong((long)result);
6583 {
6584 if (temp2)
6585 delete arg2;
6586 }
6587 return resultobj;
6588 fail:
6589 {
6590 if (temp2)
6591 delete arg2;
6592 }
6593 return NULL;
6594 }
6595
6596
6597 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj;
6599 size_t result;
6600 char *kwnames[] = {
6601 NULL
6602 };
6603
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6605 {
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6608
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 resultobj = PyInt_FromLong((long)result);
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6620 PyObject *resultobj;
6621 size_t arg1 ;
6622 int result;
6623 PyObject * obj0 = 0 ;
6624 char *kwnames[] = {
6625 (char *) "n", NULL
6626 };
6627
6628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6629 arg1 = (size_t) PyInt_AsLong(obj0);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 {
6632 PyThreadState* __tstate = wxPyBeginAllowThreads();
6633 result = (int)wxFontMapper::GetEncoding(arg1);
6634
6635 wxPyEndAllowThreads(__tstate);
6636 if (PyErr_Occurred()) SWIG_fail;
6637 }
6638 resultobj = PyInt_FromLong((long)result);
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject *resultobj;
6647 int arg1 ;
6648 wxString result;
6649 char *kwnames[] = {
6650 (char *) "encoding", NULL
6651 };
6652
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6654 {
6655 PyThreadState* __tstate = wxPyBeginAllowThreads();
6656 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6657
6658 wxPyEndAllowThreads(__tstate);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 {
6662 #if wxUSE_UNICODE
6663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6664 #else
6665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6666 #endif
6667 }
6668 return resultobj;
6669 fail:
6670 return NULL;
6671 }
6672
6673
6674 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj;
6676 int arg1 ;
6677 wxString result;
6678 char *kwnames[] = {
6679 (char *) "encoding", NULL
6680 };
6681
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
6685 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6686
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 {
6691 #if wxUSE_UNICODE
6692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6693 #else
6694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6695 #endif
6696 }
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj;
6705 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6706 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6707 PyObject * obj0 = 0 ;
6708 PyObject * obj1 = 0 ;
6709 char *kwnames[] = {
6710 (char *) "self",(char *) "config", NULL
6711 };
6712
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6715 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 (arg1)->SetConfig(arg2);
6719
6720 wxPyEndAllowThreads(__tstate);
6721 if (PyErr_Occurred()) SWIG_fail;
6722 }
6723 Py_INCREF(Py_None); resultobj = Py_None;
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj;
6732 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6733 wxString *arg2 = 0 ;
6734 bool temp2 = False ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 char *kwnames[] = {
6738 (char *) "self",(char *) "prefix", NULL
6739 };
6740
6741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6743 {
6744 arg2 = wxString_in_helper(obj1);
6745 if (arg2 == NULL) SWIG_fail;
6746 temp2 = True;
6747 }
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 (arg1)->SetConfigPath((wxString const &)*arg2);
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 Py_INCREF(Py_None); resultobj = Py_None;
6756 {
6757 if (temp2)
6758 delete arg2;
6759 }
6760 return resultobj;
6761 fail:
6762 {
6763 if (temp2)
6764 delete arg2;
6765 }
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxString result;
6773 char *kwnames[] = {
6774 NULL
6775 };
6776
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6778 {
6779 PyThreadState* __tstate = wxPyBeginAllowThreads();
6780 result = wxFontMapper::GetDefaultConfigPath();
6781
6782 wxPyEndAllowThreads(__tstate);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 #if wxUSE_UNICODE
6787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6788 #else
6789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6790 #endif
6791 }
6792 return resultobj;
6793 fail:
6794 return NULL;
6795 }
6796
6797
6798 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj;
6800 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6801 int arg2 ;
6802 wxString const &arg3_defvalue = wxPyEmptyString ;
6803 wxString *arg3 = (wxString *) &arg3_defvalue ;
6804 bool arg4 = (bool) True ;
6805 PyObject *result;
6806 bool temp3 = False ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj2 = 0 ;
6809 PyObject * obj3 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6816 if (obj2) {
6817 {
6818 arg3 = wxString_in_helper(obj2);
6819 if (arg3 == NULL) SWIG_fail;
6820 temp3 = True;
6821 }
6822 }
6823 if (obj3) {
6824 arg4 = PyInt_AsLong(obj3) ? true : false;
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 {
6828 PyThreadState* __tstate = wxPyBeginAllowThreads();
6829 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6830
6831 wxPyEndAllowThreads(__tstate);
6832 if (PyErr_Occurred()) SWIG_fail;
6833 }
6834 resultobj = result;
6835 {
6836 if (temp3)
6837 delete arg3;
6838 }
6839 return resultobj;
6840 fail:
6841 {
6842 if (temp3)
6843 delete arg3;
6844 }
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6852 int arg2 ;
6853 wxString const &arg3_defvalue = wxPyEmptyString ;
6854 wxString *arg3 = (wxString *) &arg3_defvalue ;
6855 bool result;
6856 bool temp3 = False ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj2 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6865 if (obj2) {
6866 {
6867 arg3 = wxString_in_helper(obj2);
6868 if (arg3 == NULL) SWIG_fail;
6869 temp3 = True;
6870 }
6871 }
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = PyInt_FromLong((long)result);
6880 {
6881 if (temp3)
6882 delete arg3;
6883 }
6884 return resultobj;
6885 fail:
6886 {
6887 if (temp3)
6888 delete arg3;
6889 }
6890 return NULL;
6891 }
6892
6893
6894 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj;
6896 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6897 wxWindow *arg2 = (wxWindow *) 0 ;
6898 PyObject * obj0 = 0 ;
6899 PyObject * obj1 = 0 ;
6900 char *kwnames[] = {
6901 (char *) "self",(char *) "parent", NULL
6902 };
6903
6904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6906 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6907 {
6908 PyThreadState* __tstate = wxPyBeginAllowThreads();
6909 (arg1)->SetDialogParent(arg2);
6910
6911 wxPyEndAllowThreads(__tstate);
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 Py_INCREF(Py_None); resultobj = Py_None;
6915 return resultobj;
6916 fail:
6917 return NULL;
6918 }
6919
6920
6921 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6922 PyObject *resultobj;
6923 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6924 wxString *arg2 = 0 ;
6925 bool temp2 = False ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 char *kwnames[] = {
6929 (char *) "self",(char *) "title", NULL
6930 };
6931
6932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6934 {
6935 arg2 = wxString_in_helper(obj1);
6936 if (arg2 == NULL) SWIG_fail;
6937 temp2 = True;
6938 }
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 (arg1)->SetDialogTitle((wxString const &)*arg2);
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 Py_INCREF(Py_None); resultobj = Py_None;
6947 {
6948 if (temp2)
6949 delete arg2;
6950 }
6951 return resultobj;
6952 fail:
6953 {
6954 if (temp2)
6955 delete arg2;
6956 }
6957 return NULL;
6958 }
6959
6960
6961 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6962 PyObject *obj;
6963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6964 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6965 Py_INCREF(obj);
6966 return Py_BuildValue((char *)"");
6967 }
6968 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 int arg1 ;
6971 int arg2 ;
6972 int arg3 ;
6973 int arg4 ;
6974 bool arg5 = (bool) False ;
6975 wxString const &arg6_defvalue = wxPyEmptyString ;
6976 wxString *arg6 = (wxString *) &arg6_defvalue ;
6977 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6978 wxFont *result;
6979 bool temp6 = False ;
6980 PyObject * obj4 = 0 ;
6981 PyObject * obj5 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6987 if (obj4) {
6988 arg5 = PyInt_AsLong(obj4) ? true : false;
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 if (obj5) {
6992 {
6993 arg6 = wxString_in_helper(obj5);
6994 if (arg6 == NULL) SWIG_fail;
6995 temp6 = True;
6996 }
6997 }
6998 {
6999 PyThreadState* __tstate = wxPyBeginAllowThreads();
7000 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7001
7002 wxPyEndAllowThreads(__tstate);
7003 if (PyErr_Occurred()) SWIG_fail;
7004 }
7005 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7006 {
7007 if (temp6)
7008 delete arg6;
7009 }
7010 return resultobj;
7011 fail:
7012 {
7013 if (temp6)
7014 delete arg6;
7015 }
7016 return NULL;
7017 }
7018
7019
7020 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj;
7022 wxFont *arg1 = (wxFont *) 0 ;
7023 PyObject * obj0 = 0 ;
7024 char *kwnames[] = {
7025 (char *) "self", NULL
7026 };
7027
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7030 {
7031 PyThreadState* __tstate = wxPyBeginAllowThreads();
7032 delete arg1;
7033
7034 wxPyEndAllowThreads(__tstate);
7035 if (PyErr_Occurred()) SWIG_fail;
7036 }
7037 Py_INCREF(Py_None); resultobj = Py_None;
7038 return resultobj;
7039 fail:
7040 return NULL;
7041 }
7042
7043
7044 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj;
7046 wxNativeFontInfo *arg1 = 0 ;
7047 wxFont *result;
7048 PyObject * obj0 = 0 ;
7049 char *kwnames[] = {
7050 (char *) "info", NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7055 if (arg1 == NULL) {
7056 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7057 }
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7061
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj;
7074 wxString *arg1 = 0 ;
7075 wxFont *result;
7076 bool temp1 = False ;
7077 PyObject * obj0 = 0 ;
7078 char *kwnames[] = {
7079 (char *) "info", NULL
7080 };
7081
7082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7083 {
7084 arg1 = wxString_in_helper(obj0);
7085 if (arg1 == NULL) SWIG_fail;
7086 temp1 = True;
7087 }
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7091
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7096 {
7097 if (temp1)
7098 delete arg1;
7099 }
7100 return resultobj;
7101 fail:
7102 {
7103 if (temp1)
7104 delete arg1;
7105 }
7106 return NULL;
7107 }
7108
7109
7110 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 int arg1 ;
7113 int arg2 ;
7114 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7115 wxString const &arg4_defvalue = wxPyEmptyString ;
7116 wxString *arg4 = (wxString *) &arg4_defvalue ;
7117 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7118 wxFont *result;
7119 bool temp4 = False ;
7120 PyObject * obj3 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
7126 if (obj3) {
7127 {
7128 arg4 = wxString_in_helper(obj3);
7129 if (arg4 == NULL) SWIG_fail;
7130 temp4 = True;
7131 }
7132 }
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7141 {
7142 if (temp4)
7143 delete arg4;
7144 }
7145 return resultobj;
7146 fail:
7147 {
7148 if (temp4)
7149 delete arg4;
7150 }
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxFont *arg1 = (wxFont *) 0 ;
7158 bool result;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = (bool)((wxFont const *)arg1)->Ok();
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 resultobj = PyInt_FromLong((long)result);
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxFont *arg1 = (wxFont *) 0 ;
7183 wxFont *arg2 = 0 ;
7184 bool result;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self",(char *) "font", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7193 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7194 if (arg2 == NULL) {
7195 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7196 }
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 resultobj = PyInt_FromLong((long)result);
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj;
7213 wxFont *arg1 = (wxFont *) 0 ;
7214 wxFont *arg2 = 0 ;
7215 bool result;
7216 PyObject * obj0 = 0 ;
7217 PyObject * obj1 = 0 ;
7218 char *kwnames[] = {
7219 (char *) "self",(char *) "font", NULL
7220 };
7221
7222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7224 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7225 if (arg2 == NULL) {
7226 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7227 }
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7231
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = PyInt_FromLong((long)result);
7236 return resultobj;
7237 fail:
7238 return NULL;
7239 }
7240
7241
7242 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7243 PyObject *resultobj;
7244 wxFont *arg1 = (wxFont *) 0 ;
7245 int result;
7246 PyObject * obj0 = 0 ;
7247 char *kwnames[] = {
7248 (char *) "self", NULL
7249 };
7250
7251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (int)((wxFont const *)arg1)->GetPointSize();
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 resultobj = PyInt_FromLong((long)result);
7261 return resultobj;
7262 fail:
7263 return NULL;
7264 }
7265
7266
7267 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxFont *arg1 = (wxFont *) 0 ;
7270 int result;
7271 PyObject * obj0 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "self", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (int)((wxFont const *)arg1)->GetFamily();
7281
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = PyInt_FromLong((long)result);
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 wxFont *arg1 = (wxFont *) 0 ;
7295 int result;
7296 PyObject * obj0 = 0 ;
7297 char *kwnames[] = {
7298 (char *) "self", NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = (int)((wxFont const *)arg1)->GetStyle();
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = PyInt_FromLong((long)result);
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 wxFont *arg1 = (wxFont *) 0 ;
7320 int result;
7321 PyObject * obj0 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7328 {
7329 PyThreadState* __tstate = wxPyBeginAllowThreads();
7330 result = (int)((wxFont const *)arg1)->GetWeight();
7331
7332 wxPyEndAllowThreads(__tstate);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 resultobj = PyInt_FromLong((long)result);
7336 return resultobj;
7337 fail:
7338 return NULL;
7339 }
7340
7341
7342 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj;
7344 wxFont *arg1 = (wxFont *) 0 ;
7345 bool result;
7346 PyObject * obj0 = 0 ;
7347 char *kwnames[] = {
7348 (char *) "self", NULL
7349 };
7350
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7353 {
7354 PyThreadState* __tstate = wxPyBeginAllowThreads();
7355 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7356
7357 wxPyEndAllowThreads(__tstate);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = PyInt_FromLong((long)result);
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj;
7369 wxFont *arg1 = (wxFont *) 0 ;
7370 wxString result;
7371 PyObject * obj0 = 0 ;
7372 char *kwnames[] = {
7373 (char *) "self", NULL
7374 };
7375
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = ((wxFont const *)arg1)->GetFaceName();
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 {
7386 #if wxUSE_UNICODE
7387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7388 #else
7389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7390 #endif
7391 }
7392 return resultobj;
7393 fail:
7394 return NULL;
7395 }
7396
7397
7398 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7399 PyObject *resultobj;
7400 wxFont *arg1 = (wxFont *) 0 ;
7401 int result;
7402 PyObject * obj0 = 0 ;
7403 char *kwnames[] = {
7404 (char *) "self", NULL
7405 };
7406
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 result = (int)((wxFont const *)arg1)->GetEncoding();
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = PyInt_FromLong((long)result);
7417 return resultobj;
7418 fail:
7419 return NULL;
7420 }
7421
7422
7423 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj;
7425 wxFont *arg1 = (wxFont *) 0 ;
7426 wxNativeFontInfo *result;
7427 PyObject * obj0 = 0 ;
7428 char *kwnames[] = {
7429 (char *) "self", NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxFont *arg1 = (wxFont *) 0 ;
7451 bool result;
7452 PyObject * obj0 = 0 ;
7453 char *kwnames[] = {
7454 (char *) "self", NULL
7455 };
7456
7457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 resultobj = PyInt_FromLong((long)result);
7467 return resultobj;
7468 fail:
7469 return NULL;
7470 }
7471
7472
7473 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 wxFont *arg1 = (wxFont *) 0 ;
7476 wxString result;
7477 PyObject * obj0 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7484 {
7485 PyThreadState* __tstate = wxPyBeginAllowThreads();
7486 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7487
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 {
7492 #if wxUSE_UNICODE
7493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7494 #else
7495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7496 #endif
7497 }
7498 return resultobj;
7499 fail:
7500 return NULL;
7501 }
7502
7503
7504 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 wxFont *arg1 = (wxFont *) 0 ;
7507 wxString result;
7508 PyObject * obj0 = 0 ;
7509 char *kwnames[] = {
7510 (char *) "self", NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7518
7519 wxPyEndAllowThreads(__tstate);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 {
7523 #if wxUSE_UNICODE
7524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7525 #else
7526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7527 #endif
7528 }
7529 return resultobj;
7530 fail:
7531 return NULL;
7532 }
7533
7534
7535 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj;
7537 wxFont *arg1 = (wxFont *) 0 ;
7538 int arg2 ;
7539 PyObject * obj0 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "self",(char *) "pointSize", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
7545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 (arg1)->SetPointSize(arg2);
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 Py_INCREF(Py_None); resultobj = Py_None;
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxFont *arg1 = (wxFont *) 0 ;
7563 int arg2 ;
7564 PyObject * obj0 = 0 ;
7565 char *kwnames[] = {
7566 (char *) "self",(char *) "family", NULL
7567 };
7568
7569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7571 {
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 (arg1)->SetFamily(arg2);
7574
7575 wxPyEndAllowThreads(__tstate);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 Py_INCREF(Py_None); resultobj = Py_None;
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj;
7587 wxFont *arg1 = (wxFont *) 0 ;
7588 int arg2 ;
7589 PyObject * obj0 = 0 ;
7590 char *kwnames[] = {
7591 (char *) "self",(char *) "style", NULL
7592 };
7593
7594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 (arg1)->SetStyle(arg2);
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 Py_INCREF(Py_None); resultobj = Py_None;
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj;
7612 wxFont *arg1 = (wxFont *) 0 ;
7613 int arg2 ;
7614 PyObject * obj0 = 0 ;
7615 char *kwnames[] = {
7616 (char *) "self",(char *) "weight", NULL
7617 };
7618
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7621 {
7622 PyThreadState* __tstate = wxPyBeginAllowThreads();
7623 (arg1)->SetWeight(arg2);
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 Py_INCREF(Py_None); resultobj = Py_None;
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxFont *arg1 = (wxFont *) 0 ;
7638 wxString *arg2 = 0 ;
7639 bool temp2 = False ;
7640 PyObject * obj0 = 0 ;
7641 PyObject * obj1 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "self",(char *) "faceName", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7648 {
7649 arg2 = wxString_in_helper(obj1);
7650 if (arg2 == NULL) SWIG_fail;
7651 temp2 = True;
7652 }
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 (arg1)->SetFaceName((wxString const &)*arg2);
7656
7657 wxPyEndAllowThreads(__tstate);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 Py_INCREF(Py_None); resultobj = Py_None;
7661 {
7662 if (temp2)
7663 delete arg2;
7664 }
7665 return resultobj;
7666 fail:
7667 {
7668 if (temp2)
7669 delete arg2;
7670 }
7671 return NULL;
7672 }
7673
7674
7675 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj;
7677 wxFont *arg1 = (wxFont *) 0 ;
7678 bool arg2 ;
7679 PyObject * obj0 = 0 ;
7680 PyObject * obj1 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "self",(char *) "underlined", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7687 arg2 = PyInt_AsLong(obj1) ? true : false;
7688 if (PyErr_Occurred()) SWIG_fail;
7689 {
7690 PyThreadState* __tstate = wxPyBeginAllowThreads();
7691 (arg1)->SetUnderlined(arg2);
7692
7693 wxPyEndAllowThreads(__tstate);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 Py_INCREF(Py_None); resultobj = Py_None;
7697 return resultobj;
7698 fail:
7699 return NULL;
7700 }
7701
7702
7703 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7704 PyObject *resultobj;
7705 wxFont *arg1 = (wxFont *) 0 ;
7706 int arg2 ;
7707 PyObject * obj0 = 0 ;
7708 char *kwnames[] = {
7709 (char *) "self",(char *) "encoding", NULL
7710 };
7711
7712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7714 {
7715 PyThreadState* __tstate = wxPyBeginAllowThreads();
7716 (arg1)->SetEncoding((wxFontEncoding )arg2);
7717
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 Py_INCREF(Py_None); resultobj = Py_None;
7722 return resultobj;
7723 fail:
7724 return NULL;
7725 }
7726
7727
7728 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7729 PyObject *resultobj;
7730 wxFont *arg1 = (wxFont *) 0 ;
7731 wxNativeFontInfo *arg2 = 0 ;
7732 PyObject * obj0 = 0 ;
7733 PyObject * obj1 = 0 ;
7734 char *kwnames[] = {
7735 (char *) "self",(char *) "info", NULL
7736 };
7737
7738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7740 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7741 if (arg2 == NULL) {
7742 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7743 }
7744 {
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7747
7748 wxPyEndAllowThreads(__tstate);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 Py_INCREF(Py_None); resultobj = Py_None;
7752 return resultobj;
7753 fail:
7754 return NULL;
7755 }
7756
7757
7758 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7759 PyObject *resultobj;
7760 wxFont *arg1 = (wxFont *) 0 ;
7761 wxString *arg2 = 0 ;
7762 bool temp2 = False ;
7763 PyObject * obj0 = 0 ;
7764 PyObject * obj1 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "self",(char *) "info", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7771 {
7772 arg2 = wxString_in_helper(obj1);
7773 if (arg2 == NULL) SWIG_fail;
7774 temp2 = True;
7775 }
7776 {
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7779
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 Py_INCREF(Py_None); resultobj = Py_None;
7784 {
7785 if (temp2)
7786 delete arg2;
7787 }
7788 return resultobj;
7789 fail:
7790 {
7791 if (temp2)
7792 delete arg2;
7793 }
7794 return NULL;
7795 }
7796
7797
7798 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj;
7800 wxFont *arg1 = (wxFont *) 0 ;
7801 wxString *arg2 = 0 ;
7802 bool temp2 = False ;
7803 PyObject * obj0 = 0 ;
7804 PyObject * obj1 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "self",(char *) "info", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7811 {
7812 arg2 = wxString_in_helper(obj1);
7813 if (arg2 == NULL) SWIG_fail;
7814 temp2 = True;
7815 }
7816 {
7817 PyThreadState* __tstate = wxPyBeginAllowThreads();
7818 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7819
7820 wxPyEndAllowThreads(__tstate);
7821 if (PyErr_Occurred()) SWIG_fail;
7822 }
7823 Py_INCREF(Py_None); resultobj = Py_None;
7824 {
7825 if (temp2)
7826 delete arg2;
7827 }
7828 return resultobj;
7829 fail:
7830 {
7831 if (temp2)
7832 delete arg2;
7833 }
7834 return NULL;
7835 }
7836
7837
7838 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7839 PyObject *resultobj;
7840 wxFont *arg1 = (wxFont *) 0 ;
7841 wxString result;
7842 PyObject * obj0 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "self", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7849 {
7850 PyThreadState* __tstate = wxPyBeginAllowThreads();
7851 result = ((wxFont const *)arg1)->GetFamilyString();
7852
7853 wxPyEndAllowThreads(__tstate);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 {
7857 #if wxUSE_UNICODE
7858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7859 #else
7860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7861 #endif
7862 }
7863 return resultobj;
7864 fail:
7865 return NULL;
7866 }
7867
7868
7869 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7870 PyObject *resultobj;
7871 wxFont *arg1 = (wxFont *) 0 ;
7872 wxString result;
7873 PyObject * obj0 = 0 ;
7874 char *kwnames[] = {
7875 (char *) "self", NULL
7876 };
7877
7878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = ((wxFont const *)arg1)->GetStyleString();
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 {
7888 #if wxUSE_UNICODE
7889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7890 #else
7891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7892 #endif
7893 }
7894 return resultobj;
7895 fail:
7896 return NULL;
7897 }
7898
7899
7900 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7901 PyObject *resultobj;
7902 wxFont *arg1 = (wxFont *) 0 ;
7903 wxString result;
7904 PyObject * obj0 = 0 ;
7905 char *kwnames[] = {
7906 (char *) "self", NULL
7907 };
7908
7909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 result = ((wxFont const *)arg1)->GetWeightString();
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 {
7919 #if wxUSE_UNICODE
7920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7921 #else
7922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7923 #endif
7924 }
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxFont *arg1 = (wxFont *) 0 ;
7934 bool arg2 = (bool) True ;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 char *kwnames[] = {
7938 (char *) "self",(char *) "no", NULL
7939 };
7940
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7943 if (obj1) {
7944 arg2 = PyInt_AsLong(obj1) ? true : false;
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 (arg1)->SetNoAntiAliasing(arg2);
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 Py_INCREF(Py_None); resultobj = Py_None;
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 wxFont *arg1 = (wxFont *) 0 ;
7964 bool result;
7965 PyObject * obj0 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "self", NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (bool)(arg1)->GetNoAntiAliasing();
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 resultobj = PyInt_FromLong((long)result);
7980 return resultobj;
7981 fail:
7982 return NULL;
7983 }
7984
7985
7986 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 int result;
7989 char *kwnames[] = {
7990 NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (int)wxFont::GetDefaultEncoding();
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 resultobj = PyInt_FromLong((long)result);
8002 return resultobj;
8003 fail:
8004 return NULL;
8005 }
8006
8007
8008 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8009 PyObject *resultobj;
8010 int arg1 ;
8011 char *kwnames[] = {
8012 (char *) "encoding", NULL
8013 };
8014
8015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 Py_INCREF(Py_None); resultobj = Py_None;
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8031 PyObject *obj;
8032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8033 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8034 Py_INCREF(obj);
8035 return Py_BuildValue((char *)"");
8036 }
8037 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxPyFontEnumerator *result;
8040 char *kwnames[] = {
8041 NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8062 PyObject * obj0 = 0 ;
8063 char *kwnames[] = {
8064 (char *) "self", NULL
8065 };
8066
8067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8069 {
8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
8071 delete arg1;
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__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8086 PyObject *arg2 = (PyObject *) 0 ;
8087 PyObject *arg3 = (PyObject *) 0 ;
8088 bool arg4 ;
8089 PyObject * obj0 = 0 ;
8090 PyObject * obj1 = 0 ;
8091 PyObject * obj2 = 0 ;
8092 PyObject * obj3 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8099 arg2 = obj1;
8100 arg3 = obj2;
8101 arg4 = PyInt_AsLong(obj3) ? true : false;
8102 if (PyErr_Occurred()) SWIG_fail;
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 Py_INCREF(Py_None); resultobj = Py_None;
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8120 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8121 bool arg3 = (bool) False ;
8122 bool result;
8123 PyObject * obj0 = 0 ;
8124 PyObject * obj2 = 0 ;
8125 char *kwnames[] = {
8126 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8127 };
8128
8129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
8130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8131 if (obj2) {
8132 arg3 = PyInt_AsLong(obj2) ? true : false;
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 {
8136 PyThreadState* __tstate = wxPyBeginAllowThreads();
8137 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8138
8139 wxPyEndAllowThreads(__tstate);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 resultobj = PyInt_FromLong((long)result);
8143 return resultobj;
8144 fail:
8145 return NULL;
8146 }
8147
8148
8149 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject *resultobj;
8151 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8152 wxString const &arg2_defvalue = wxPyEmptyString ;
8153 wxString *arg2 = (wxString *) &arg2_defvalue ;
8154 bool result;
8155 bool temp2 = False ;
8156 PyObject * obj0 = 0 ;
8157 PyObject * obj1 = 0 ;
8158 char *kwnames[] = {
8159 (char *) "self",(char *) "facename", NULL
8160 };
8161
8162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8164 if (obj1) {
8165 {
8166 arg2 = wxString_in_helper(obj1);
8167 if (arg2 == NULL) SWIG_fail;
8168 temp2 = True;
8169 }
8170 }
8171 {
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = PyInt_FromLong((long)result);
8179 {
8180 if (temp2)
8181 delete arg2;
8182 }
8183 return resultobj;
8184 fail:
8185 {
8186 if (temp2)
8187 delete arg2;
8188 }
8189 return NULL;
8190 }
8191
8192
8193 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8194 PyObject *resultobj;
8195 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8196 PyObject *result;
8197 PyObject * obj0 = 0 ;
8198 char *kwnames[] = {
8199 (char *) "self", NULL
8200 };
8201
8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8204 {
8205 PyThreadState* __tstate = wxPyBeginAllowThreads();
8206 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8207
8208 wxPyEndAllowThreads(__tstate);
8209 if (PyErr_Occurred()) SWIG_fail;
8210 }
8211 resultobj = result;
8212 return resultobj;
8213 fail:
8214 return NULL;
8215 }
8216
8217
8218 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8219 PyObject *resultobj;
8220 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8221 PyObject *result;
8222 PyObject * obj0 = 0 ;
8223 char *kwnames[] = {
8224 (char *) "self", NULL
8225 };
8226
8227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8232
8233 wxPyEndAllowThreads(__tstate);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = result;
8237 return resultobj;
8238 fail:
8239 return NULL;
8240 }
8241
8242
8243 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8244 PyObject *obj;
8245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8246 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8247 Py_INCREF(obj);
8248 return Py_BuildValue((char *)"");
8249 }
8250 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8251 PyObject *resultobj;
8252 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8253 int arg2 ;
8254 PyObject * obj0 = 0 ;
8255 char *kwnames[] = {
8256 (char *) "self",(char *) "Language", NULL
8257 };
8258
8259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
8260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8261 if (arg1) (arg1)->Language = arg2;
8262
8263 Py_INCREF(Py_None); resultobj = Py_None;
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj;
8272 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8273 int result;
8274 PyObject * obj0 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8281 result = (int) ((arg1)->Language);
8282
8283 resultobj = PyInt_FromLong((long)result);
8284 return resultobj;
8285 fail:
8286 return NULL;
8287 }
8288
8289
8290 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj;
8292 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8293 wxString *arg2 = (wxString *) 0 ;
8294 bool temp2 = False ;
8295 PyObject * obj0 = 0 ;
8296 PyObject * obj1 = 0 ;
8297 char *kwnames[] = {
8298 (char *) "self",(char *) "CanonicalName", NULL
8299 };
8300
8301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8303 {
8304 arg2 = wxString_in_helper(obj1);
8305 if (arg2 == NULL) SWIG_fail;
8306 temp2 = True;
8307 }
8308 if (arg1) (arg1)->CanonicalName = *arg2;
8309
8310 Py_INCREF(Py_None); resultobj = Py_None;
8311 {
8312 if (temp2)
8313 delete arg2;
8314 }
8315 return resultobj;
8316 fail:
8317 {
8318 if (temp2)
8319 delete arg2;
8320 }
8321 return NULL;
8322 }
8323
8324
8325 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj;
8327 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8328 wxString *result;
8329 PyObject * obj0 = 0 ;
8330 char *kwnames[] = {
8331 (char *) "self", NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8336 result = (wxString *)& ((arg1)->CanonicalName);
8337
8338 {
8339 #if wxUSE_UNICODE
8340 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8341 #else
8342 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8343 #endif
8344 }
8345 return resultobj;
8346 fail:
8347 return NULL;
8348 }
8349
8350
8351 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj;
8353 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8354 wxString *arg2 = (wxString *) 0 ;
8355 bool temp2 = False ;
8356 PyObject * obj0 = 0 ;
8357 PyObject * obj1 = 0 ;
8358 char *kwnames[] = {
8359 (char *) "self",(char *) "Description", NULL
8360 };
8361
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8364 {
8365 arg2 = wxString_in_helper(obj1);
8366 if (arg2 == NULL) SWIG_fail;
8367 temp2 = True;
8368 }
8369 if (arg1) (arg1)->Description = *arg2;
8370
8371 Py_INCREF(Py_None); resultobj = Py_None;
8372 {
8373 if (temp2)
8374 delete arg2;
8375 }
8376 return resultobj;
8377 fail:
8378 {
8379 if (temp2)
8380 delete arg2;
8381 }
8382 return NULL;
8383 }
8384
8385
8386 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8387 PyObject *resultobj;
8388 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8389 wxString *result;
8390 PyObject * obj0 = 0 ;
8391 char *kwnames[] = {
8392 (char *) "self", NULL
8393 };
8394
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8397 result = (wxString *)& ((arg1)->Description);
8398
8399 {
8400 #if wxUSE_UNICODE
8401 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8402 #else
8403 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8404 #endif
8405 }
8406 return resultobj;
8407 fail:
8408 return NULL;
8409 }
8410
8411
8412 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8413 PyObject *obj;
8414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8415 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8416 Py_INCREF(obj);
8417 return Py_BuildValue((char *)"");
8418 }
8419 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8422 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8423 wxLocale *result;
8424 char *kwnames[] = {
8425 (char *) "language",(char *) "flags", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
8429 {
8430 PyThreadState* __tstate = wxPyBeginAllowThreads();
8431 result = (wxLocale *)new wxLocale(arg1,arg2);
8432
8433 wxPyEndAllowThreads(__tstate);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8437 return resultobj;
8438 fail:
8439 return NULL;
8440 }
8441
8442
8443 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8444 PyObject *resultobj;
8445 wxLocale *arg1 = (wxLocale *) 0 ;
8446 PyObject * obj0 = 0 ;
8447 char *kwnames[] = {
8448 (char *) "self", NULL
8449 };
8450
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8453 {
8454 PyThreadState* __tstate = wxPyBeginAllowThreads();
8455 delete arg1;
8456
8457 wxPyEndAllowThreads(__tstate);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 Py_INCREF(Py_None); resultobj = Py_None;
8461 return resultobj;
8462 fail:
8463 return NULL;
8464 }
8465
8466
8467 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8468 PyObject *resultobj;
8469 wxLocale *arg1 = (wxLocale *) 0 ;
8470 wxString *arg2 = 0 ;
8471 wxString const &arg3_defvalue = wxPyEmptyString ;
8472 wxString *arg3 = (wxString *) &arg3_defvalue ;
8473 wxString const &arg4_defvalue = wxPyEmptyString ;
8474 wxString *arg4 = (wxString *) &arg4_defvalue ;
8475 bool arg5 = (bool) True ;
8476 bool arg6 = (bool) False ;
8477 bool result;
8478 bool temp2 = False ;
8479 bool temp3 = False ;
8480 bool temp4 = False ;
8481 PyObject * obj0 = 0 ;
8482 PyObject * obj1 = 0 ;
8483 PyObject * obj2 = 0 ;
8484 PyObject * obj3 = 0 ;
8485 PyObject * obj4 = 0 ;
8486 PyObject * obj5 = 0 ;
8487 char *kwnames[] = {
8488 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8489 };
8490
8491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8493 {
8494 arg2 = wxString_in_helper(obj1);
8495 if (arg2 == NULL) SWIG_fail;
8496 temp2 = True;
8497 }
8498 if (obj2) {
8499 {
8500 arg3 = wxString_in_helper(obj2);
8501 if (arg3 == NULL) SWIG_fail;
8502 temp3 = True;
8503 }
8504 }
8505 if (obj3) {
8506 {
8507 arg4 = wxString_in_helper(obj3);
8508 if (arg4 == NULL) SWIG_fail;
8509 temp4 = True;
8510 }
8511 }
8512 if (obj4) {
8513 arg5 = PyInt_AsLong(obj4) ? true : false;
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 if (obj5) {
8517 arg6 = PyInt_AsLong(obj5) ? true : false;
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8523
8524 wxPyEndAllowThreads(__tstate);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 resultobj = PyInt_FromLong((long)result);
8528 {
8529 if (temp2)
8530 delete arg2;
8531 }
8532 {
8533 if (temp3)
8534 delete arg3;
8535 }
8536 {
8537 if (temp4)
8538 delete arg4;
8539 }
8540 return resultobj;
8541 fail:
8542 {
8543 if (temp2)
8544 delete arg2;
8545 }
8546 {
8547 if (temp3)
8548 delete arg3;
8549 }
8550 {
8551 if (temp4)
8552 delete arg4;
8553 }
8554 return NULL;
8555 }
8556
8557
8558 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj;
8560 wxLocale *arg1 = (wxLocale *) 0 ;
8561 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8562 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8563 bool result;
8564 PyObject * obj0 = 0 ;
8565 char *kwnames[] = {
8566 (char *) "self",(char *) "language",(char *) "flags", NULL
8567 };
8568
8569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 result = (bool)(arg1)->Init(arg2,arg3);
8574
8575 wxPyEndAllowThreads(__tstate);
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 resultobj = PyInt_FromLong((long)result);
8579 return resultobj;
8580 fail:
8581 return NULL;
8582 }
8583
8584
8585 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8586 PyObject *resultobj;
8587 int result;
8588 char *kwnames[] = {
8589 NULL
8590 };
8591
8592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 result = (int)wxLocale::GetSystemLanguage();
8596
8597 wxPyEndAllowThreads(__tstate);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 resultobj = PyInt_FromLong((long)result);
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 int result;
8610 char *kwnames[] = {
8611 NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (int)wxLocale::GetSystemEncoding();
8618
8619 wxPyEndAllowThreads(__tstate);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = PyInt_FromLong((long)result);
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8630 PyObject *resultobj;
8631 wxString result;
8632 char *kwnames[] = {
8633 NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8637 {
8638 PyThreadState* __tstate = wxPyBeginAllowThreads();
8639 result = wxLocale::GetSystemEncodingName();
8640
8641 wxPyEndAllowThreads(__tstate);
8642 if (PyErr_Occurred()) SWIG_fail;
8643 }
8644 {
8645 #if wxUSE_UNICODE
8646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8647 #else
8648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8649 #endif
8650 }
8651 return resultobj;
8652 fail:
8653 return NULL;
8654 }
8655
8656
8657 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8658 PyObject *resultobj;
8659 wxLocale *arg1 = (wxLocale *) 0 ;
8660 bool result;
8661 PyObject * obj0 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "self", NULL
8664 };
8665
8666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 result = (bool)((wxLocale const *)arg1)->IsOk();
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 resultobj = PyInt_FromLong((long)result);
8676 return resultobj;
8677 fail:
8678 return NULL;
8679 }
8680
8681
8682 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj;
8684 wxLocale *arg1 = (wxLocale *) 0 ;
8685 wxString result;
8686 PyObject * obj0 = 0 ;
8687 char *kwnames[] = {
8688 (char *) "self", NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = ((wxLocale const *)arg1)->GetLocale();
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 {
8701 #if wxUSE_UNICODE
8702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8703 #else
8704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8705 #endif
8706 }
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 wxLocale *arg1 = (wxLocale *) 0 ;
8716 int result;
8717 PyObject * obj0 = 0 ;
8718 char *kwnames[] = {
8719 (char *) "self", NULL
8720 };
8721
8722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8724 {
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 result = (int)((wxLocale const *)arg1)->GetLanguage();
8727
8728 wxPyEndAllowThreads(__tstate);
8729 if (PyErr_Occurred()) SWIG_fail;
8730 }
8731 resultobj = PyInt_FromLong((long)result);
8732 return resultobj;
8733 fail:
8734 return NULL;
8735 }
8736
8737
8738 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj;
8740 wxLocale *arg1 = (wxLocale *) 0 ;
8741 wxString result;
8742 PyObject * obj0 = 0 ;
8743 char *kwnames[] = {
8744 (char *) "self", NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8749 {
8750 PyThreadState* __tstate = wxPyBeginAllowThreads();
8751 result = ((wxLocale const *)arg1)->GetSysName();
8752
8753 wxPyEndAllowThreads(__tstate);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 {
8757 #if wxUSE_UNICODE
8758 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8759 #else
8760 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8761 #endif
8762 }
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj;
8771 wxLocale *arg1 = (wxLocale *) 0 ;
8772 wxString result;
8773 PyObject * obj0 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "self", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 result = ((wxLocale const *)arg1)->GetCanonicalName();
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 {
8788 #if wxUSE_UNICODE
8789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8790 #else
8791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8792 #endif
8793 }
8794 return resultobj;
8795 fail:
8796 return NULL;
8797 }
8798
8799
8800 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj;
8802 wxString *arg1 = 0 ;
8803 bool temp1 = False ;
8804 PyObject * obj0 = 0 ;
8805 char *kwnames[] = {
8806 (char *) "prefix", NULL
8807 };
8808
8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8810 {
8811 arg1 = wxString_in_helper(obj0);
8812 if (arg1 == NULL) SWIG_fail;
8813 temp1 = True;
8814 }
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 Py_INCREF(Py_None); resultobj = Py_None;
8823 {
8824 if (temp1)
8825 delete arg1;
8826 }
8827 return resultobj;
8828 fail:
8829 {
8830 if (temp1)
8831 delete arg1;
8832 }
8833 return NULL;
8834 }
8835
8836
8837 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8838 PyObject *resultobj;
8839 wxLocale *arg1 = (wxLocale *) 0 ;
8840 wxString *arg2 = 0 ;
8841 bool result;
8842 bool temp2 = False ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 char *kwnames[] = {
8846 (char *) "self",(char *) "szDomain", NULL
8847 };
8848
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8851 {
8852 arg2 = wxString_in_helper(obj1);
8853 if (arg2 == NULL) SWIG_fail;
8854 temp2 = True;
8855 }
8856 {
8857 PyThreadState* __tstate = wxPyBeginAllowThreads();
8858 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8859
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = PyInt_FromLong((long)result);
8864 {
8865 if (temp2)
8866 delete arg2;
8867 }
8868 return resultobj;
8869 fail:
8870 {
8871 if (temp2)
8872 delete arg2;
8873 }
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj;
8880 wxLocale *arg1 = (wxLocale *) 0 ;
8881 wxString *arg2 = 0 ;
8882 bool result;
8883 bool temp2 = False ;
8884 PyObject * obj0 = 0 ;
8885 PyObject * obj1 = 0 ;
8886 char *kwnames[] = {
8887 (char *) "self",(char *) "szDomain", NULL
8888 };
8889
8890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8892 {
8893 arg2 = wxString_in_helper(obj1);
8894 if (arg2 == NULL) SWIG_fail;
8895 temp2 = True;
8896 }
8897 {
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8900
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = PyInt_FromLong((long)result);
8905 {
8906 if (temp2)
8907 delete arg2;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp2)
8913 delete arg2;
8914 }
8915 return NULL;
8916 }
8917
8918
8919 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj;
8921 int arg1 ;
8922 wxLanguageInfo *result;
8923 char *kwnames[] = {
8924 (char *) "lang", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8943 PyObject *resultobj;
8944 int arg1 ;
8945 wxString result;
8946 char *kwnames[] = {
8947 (char *) "lang", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = wxLocale::GetLanguageName(arg1);
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 {
8959 #if wxUSE_UNICODE
8960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8961 #else
8962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8963 #endif
8964 }
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj;
8973 wxString *arg1 = 0 ;
8974 wxLanguageInfo *result;
8975 bool temp1 = False ;
8976 PyObject * obj0 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "locale", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8982 {
8983 arg1 = wxString_in_helper(obj0);
8984 if (arg1 == NULL) SWIG_fail;
8985 temp1 = True;
8986 }
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8990
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8995 {
8996 if (temp1)
8997 delete arg1;
8998 }
8999 return resultobj;
9000 fail:
9001 {
9002 if (temp1)
9003 delete arg1;
9004 }
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxLanguageInfo *arg1 = 0 ;
9012 PyObject * obj0 = 0 ;
9013 char *kwnames[] = {
9014 (char *) "info", NULL
9015 };
9016
9017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9019 if (arg1 == NULL) {
9020 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9021 }
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 Py_INCREF(Py_None); resultobj = Py_None;
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 wxLocale *arg1 = (wxLocale *) 0 ;
9039 wxString *arg2 = 0 ;
9040 wxString const &arg3_defvalue = wxPyEmptyString ;
9041 wxString *arg3 = (wxString *) &arg3_defvalue ;
9042 wxString result;
9043 bool temp2 = False ;
9044 bool temp3 = False ;
9045 PyObject * obj0 = 0 ;
9046 PyObject * obj1 = 0 ;
9047 PyObject * obj2 = 0 ;
9048 char *kwnames[] = {
9049 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9054 {
9055 arg2 = wxString_in_helper(obj1);
9056 if (arg2 == NULL) SWIG_fail;
9057 temp2 = True;
9058 }
9059 if (obj2) {
9060 {
9061 arg3 = wxString_in_helper(obj2);
9062 if (arg3 == NULL) SWIG_fail;
9063 temp3 = True;
9064 }
9065 }
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
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 {
9081 if (temp2)
9082 delete arg2;
9083 }
9084 {
9085 if (temp3)
9086 delete arg3;
9087 }
9088 return resultobj;
9089 fail:
9090 {
9091 if (temp2)
9092 delete arg2;
9093 }
9094 {
9095 if (temp3)
9096 delete arg3;
9097 }
9098 return NULL;
9099 }
9100
9101
9102 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
9104 wxLocale *arg1 = (wxLocale *) 0 ;
9105 wxString *result;
9106 PyObject * obj0 = 0 ;
9107 char *kwnames[] = {
9108 (char *) "self", NULL
9109 };
9110
9111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9113 {
9114 PyThreadState* __tstate = wxPyBeginAllowThreads();
9115 {
9116 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9117 result = (wxString *) &_result_ref;
9118 }
9119
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 {
9124 #if wxUSE_UNICODE
9125 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9126 #else
9127 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9128 #endif
9129 }
9130 return resultobj;
9131 fail:
9132 return NULL;
9133 }
9134
9135
9136 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9137 PyObject *obj;
9138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9139 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9140 Py_INCREF(obj);
9141 return Py_BuildValue((char *)"");
9142 }
9143 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj;
9145 wxLocale *result;
9146 char *kwnames[] = {
9147 NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 result = (wxLocale *)wxGetLocale();
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9166 PyObject *resultobj;
9167 wxString *arg1 = 0 ;
9168 wxString result;
9169 bool temp1 = False ;
9170 PyObject * obj0 = 0 ;
9171
9172 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9173 {
9174 arg1 = wxString_in_helper(obj0);
9175 if (arg1 == NULL) SWIG_fail;
9176 temp1 = True;
9177 }
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = wxGetTranslation((wxString const &)*arg1);
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 {
9186 #if wxUSE_UNICODE
9187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9188 #else
9189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9190 #endif
9191 }
9192 {
9193 if (temp1)
9194 delete arg1;
9195 }
9196 return resultobj;
9197 fail:
9198 {
9199 if (temp1)
9200 delete arg1;
9201 }
9202 return NULL;
9203 }
9204
9205
9206 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9207 PyObject *resultobj;
9208 wxString *arg1 = 0 ;
9209 wxString *arg2 = 0 ;
9210 size_t arg3 ;
9211 wxString result;
9212 bool temp1 = False ;
9213 bool temp2 = False ;
9214 PyObject * obj0 = 0 ;
9215 PyObject * obj1 = 0 ;
9216 PyObject * obj2 = 0 ;
9217
9218 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9219 {
9220 arg1 = wxString_in_helper(obj0);
9221 if (arg1 == NULL) SWIG_fail;
9222 temp1 = True;
9223 }
9224 {
9225 arg2 = wxString_in_helper(obj1);
9226 if (arg2 == NULL) SWIG_fail;
9227 temp2 = True;
9228 }
9229 arg3 = (size_t) PyInt_AsLong(obj2);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9234
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 {
9239 #if wxUSE_UNICODE
9240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9241 #else
9242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9243 #endif
9244 }
9245 {
9246 if (temp1)
9247 delete arg1;
9248 }
9249 {
9250 if (temp2)
9251 delete arg2;
9252 }
9253 return resultobj;
9254 fail:
9255 {
9256 if (temp1)
9257 delete arg1;
9258 }
9259 {
9260 if (temp2)
9261 delete arg2;
9262 }
9263 return NULL;
9264 }
9265
9266
9267 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9268 int argc;
9269 PyObject *argv[4];
9270 int ii;
9271
9272 argc = PyObject_Length(args);
9273 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9274 argv[ii] = PyTuple_GetItem(args,ii);
9275 }
9276 if (argc == 1) {
9277 int _v;
9278 {
9279 void *ptr;
9280 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9281 _v = 0;
9282 PyErr_Clear();
9283 } else {
9284 _v = 1;
9285 }
9286 }
9287 if (_v) {
9288 return _wrap_GetTranslation__SWIG_0(self,args);
9289 }
9290 }
9291 if (argc == 3) {
9292 int _v;
9293 {
9294 void *ptr;
9295 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9296 _v = 0;
9297 PyErr_Clear();
9298 } else {
9299 _v = 1;
9300 }
9301 }
9302 if (_v) {
9303 {
9304 void *ptr;
9305 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9306 _v = 0;
9307 PyErr_Clear();
9308 } else {
9309 _v = 1;
9310 }
9311 }
9312 if (_v) {
9313 {
9314 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
9315 }
9316 if (_v) {
9317 return _wrap_GetTranslation__SWIG_1(self,args);
9318 }
9319 }
9320 }
9321 }
9322
9323 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9324 return NULL;
9325 }
9326
9327
9328 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9329 PyObject *resultobj;
9330 wxEncodingConverter *result;
9331 char *kwnames[] = {
9332 NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (wxEncodingConverter *)new wxEncodingConverter();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9353 PyObject * obj0 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 delete arg1;
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 Py_INCREF(Py_None); resultobj = Py_None;
9368 return resultobj;
9369 fail:
9370 return NULL;
9371 }
9372
9373
9374 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9377 int arg2 ;
9378 int arg3 ;
9379 int arg4 = (int) wxCONVERT_STRICT ;
9380 bool result;
9381 PyObject * obj0 = 0 ;
9382 char *kwnames[] = {
9383 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9384 };
9385
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9391
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 resultobj = PyInt_FromLong((long)result);
9396 return resultobj;
9397 fail:
9398 return NULL;
9399 }
9400
9401
9402 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9403 PyObject *resultobj;
9404 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9405 wxString *arg2 = 0 ;
9406 wxString result;
9407 bool temp2 = False ;
9408 PyObject * obj0 = 0 ;
9409 PyObject * obj1 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self",(char *) "input", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9416 {
9417 arg2 = wxString_in_helper(obj1);
9418 if (arg2 == NULL) SWIG_fail;
9419 temp2 = True;
9420 }
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 result = (arg1)->Convert((wxString const &)*arg2);
9424
9425 wxPyEndAllowThreads(__tstate);
9426 if (PyErr_Occurred()) SWIG_fail;
9427 }
9428 {
9429 #if wxUSE_UNICODE
9430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9431 #else
9432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9433 #endif
9434 }
9435 {
9436 if (temp2)
9437 delete arg2;
9438 }
9439 return resultobj;
9440 fail:
9441 {
9442 if (temp2)
9443 delete arg2;
9444 }
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 int arg1 ;
9452 int arg2 = (int) wxPLATFORM_CURRENT ;
9453 wxFontEncodingArray result;
9454 char *kwnames[] = {
9455 (char *) "enc",(char *) "platform", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
9466 {
9467 resultobj = PyList_New(0);
9468 for (size_t i=0; i < (&result)->GetCount(); i++) {
9469 PyObject* number = PyInt_FromLong((&result)->Item(i));
9470 PyList_Append(resultobj, number);
9471 Py_DECREF(number);
9472 }
9473 }
9474 return resultobj;
9475 fail:
9476 return NULL;
9477 }
9478
9479
9480 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9481 PyObject *resultobj;
9482 int arg1 ;
9483 wxFontEncodingArray result;
9484 char *kwnames[] = {
9485 (char *) "enc", NULL
9486 };
9487
9488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9492
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 {
9497 resultobj = PyList_New(0);
9498 for (size_t i=0; i < (&result)->GetCount(); i++) {
9499 PyObject* number = PyInt_FromLong((&result)->Item(i));
9500 PyList_Append(resultobj, number);
9501 Py_DECREF(number);
9502 }
9503 }
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 int arg1 ;
9513 int arg2 ;
9514 bool result;
9515 char *kwnames[] = {
9516 (char *) "encIn",(char *) "encOut", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9523
9524 wxPyEndAllowThreads(__tstate);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 resultobj = PyInt_FromLong((long)result);
9528 return resultobj;
9529 fail:
9530 return NULL;
9531 }
9532
9533
9534 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9535 PyObject *obj;
9536 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9537 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9538 Py_INCREF(obj);
9539 return Py_BuildValue((char *)"");
9540 }
9541 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj;
9543 wxDC *arg1 = (wxDC *) 0 ;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 delete arg1;
9554
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 Py_INCREF(Py_None); resultobj = Py_None;
9559 return resultobj;
9560 fail:
9561 return NULL;
9562 }
9563
9564
9565 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9566 PyObject *resultobj;
9567 wxDC *arg1 = (wxDC *) 0 ;
9568 PyObject * obj0 = 0 ;
9569 char *kwnames[] = {
9570 (char *) "self", NULL
9571 };
9572
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 (arg1)->BeginDrawing();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 Py_INCREF(Py_None); resultobj = Py_None;
9583 return resultobj;
9584 fail:
9585 return NULL;
9586 }
9587
9588
9589 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxDC *arg1 = (wxDC *) 0 ;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "self", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 (arg1)->EndDrawing();
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 Py_INCREF(Py_None); resultobj = Py_None;
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj;
9615 wxDC *arg1 = (wxDC *) 0 ;
9616 int arg2 ;
9617 int arg3 ;
9618 wxColour *arg4 = 0 ;
9619 int arg5 = (int) wxFLOOD_SURFACE ;
9620 bool result;
9621 wxColour temp4 ;
9622 PyObject * obj0 = 0 ;
9623 PyObject * obj3 = 0 ;
9624 char *kwnames[] = {
9625 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9626 };
9627
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9630 {
9631 arg4 = &temp4;
9632 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9633 }
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) SWIG_fail;
9640 }
9641 resultobj = PyInt_FromLong((long)result);
9642 return resultobj;
9643 fail:
9644 return NULL;
9645 }
9646
9647
9648 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxDC *arg1 = (wxDC *) 0 ;
9651 wxPoint *arg2 = 0 ;
9652 wxColour *arg3 = 0 ;
9653 int arg4 = (int) wxFLOOD_SURFACE ;
9654 bool result;
9655 wxPoint temp2 ;
9656 wxColour temp3 ;
9657 PyObject * obj0 = 0 ;
9658 PyObject * obj1 = 0 ;
9659 PyObject * obj2 = 0 ;
9660 char *kwnames[] = {
9661 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9662 };
9663
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9666 {
9667 arg2 = &temp2;
9668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9669 }
9670 {
9671 arg3 = &temp3;
9672 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9673 }
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = PyInt_FromLong((long)result);
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj;
9690 wxDC *arg1 = (wxDC *) 0 ;
9691 int arg2 ;
9692 int arg3 ;
9693 wxColour result;
9694 PyObject * obj0 = 0 ;
9695 char *kwnames[] = {
9696 (char *) "self",(char *) "x",(char *) "y", NULL
9697 };
9698
9699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9701 {
9702 PyThreadState* __tstate = wxPyBeginAllowThreads();
9703 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9704
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 {
9709 wxColour * resultptr;
9710 resultptr = new wxColour((wxColour &) result);
9711 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9712 }
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj;
9721 wxDC *arg1 = (wxDC *) 0 ;
9722 wxPoint *arg2 = 0 ;
9723 wxColour result;
9724 wxPoint temp2 ;
9725 PyObject * obj0 = 0 ;
9726 PyObject * obj1 = 0 ;
9727 char *kwnames[] = {
9728 (char *) "self",(char *) "pt", NULL
9729 };
9730
9731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9733 {
9734 arg2 = &temp2;
9735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9736 }
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 {
9745 wxColour * resultptr;
9746 resultptr = new wxColour((wxColour &) result);
9747 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9748 }
9749 return resultobj;
9750 fail:
9751 return NULL;
9752 }
9753
9754
9755 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj;
9757 wxDC *arg1 = (wxDC *) 0 ;
9758 int arg2 ;
9759 int arg3 ;
9760 int arg4 ;
9761 int arg5 ;
9762 PyObject * obj0 = 0 ;
9763 char *kwnames[] = {
9764 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9765 };
9766
9767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9769 {
9770 PyThreadState* __tstate = wxPyBeginAllowThreads();
9771 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9772
9773 wxPyEndAllowThreads(__tstate);
9774 if (PyErr_Occurred()) SWIG_fail;
9775 }
9776 Py_INCREF(Py_None); resultobj = Py_None;
9777 return resultobj;
9778 fail:
9779 return NULL;
9780 }
9781
9782
9783 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9784 PyObject *resultobj;
9785 wxDC *arg1 = (wxDC *) 0 ;
9786 wxPoint *arg2 = 0 ;
9787 wxPoint *arg3 = 0 ;
9788 wxPoint temp2 ;
9789 wxPoint temp3 ;
9790 PyObject * obj0 = 0 ;
9791 PyObject * obj1 = 0 ;
9792 PyObject * obj2 = 0 ;
9793 char *kwnames[] = {
9794 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9795 };
9796
9797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9799 {
9800 arg2 = &temp2;
9801 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9802 }
9803 {
9804 arg3 = &temp3;
9805 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 Py_INCREF(Py_None); resultobj = Py_None;
9815 return resultobj;
9816 fail:
9817 return NULL;
9818 }
9819
9820
9821 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9822 PyObject *resultobj;
9823 wxDC *arg1 = (wxDC *) 0 ;
9824 int arg2 ;
9825 int arg3 ;
9826 PyObject * obj0 = 0 ;
9827 char *kwnames[] = {
9828 (char *) "self",(char *) "x",(char *) "y", NULL
9829 };
9830
9831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 (arg1)->CrossHair(arg2,arg3);
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 Py_INCREF(Py_None); resultobj = Py_None;
9841 return resultobj;
9842 fail:
9843 return NULL;
9844 }
9845
9846
9847 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj;
9849 wxDC *arg1 = (wxDC *) 0 ;
9850 wxPoint *arg2 = 0 ;
9851 wxPoint temp2 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "self",(char *) "pt", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9860 {
9861 arg2 = &temp2;
9862 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9863 }
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 (arg1)->CrossHair((wxPoint const &)*arg2);
9867
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 Py_INCREF(Py_None); resultobj = Py_None;
9872 return resultobj;
9873 fail:
9874 return NULL;
9875 }
9876
9877
9878 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj;
9880 wxDC *arg1 = (wxDC *) 0 ;
9881 int arg2 ;
9882 int arg3 ;
9883 int arg4 ;
9884 int arg5 ;
9885 int arg6 ;
9886 int arg7 ;
9887 PyObject * obj0 = 0 ;
9888 char *kwnames[] = {
9889 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9890 };
9891
9892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 Py_INCREF(Py_None); resultobj = Py_None;
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxDC *arg1 = (wxDC *) 0 ;
9911 wxPoint *arg2 = 0 ;
9912 wxPoint *arg3 = 0 ;
9913 wxPoint *arg4 = 0 ;
9914 wxPoint temp2 ;
9915 wxPoint temp3 ;
9916 wxPoint temp4 ;
9917 PyObject * obj0 = 0 ;
9918 PyObject * obj1 = 0 ;
9919 PyObject * obj2 = 0 ;
9920 PyObject * obj3 = 0 ;
9921 char *kwnames[] = {
9922 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9923 };
9924
9925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9927 {
9928 arg2 = &temp2;
9929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9930 }
9931 {
9932 arg3 = &temp3;
9933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9934 }
9935 {
9936 arg4 = &temp4;
9937 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9938 }
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9942
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 Py_INCREF(Py_None); resultobj = Py_None;
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj;
9955 wxDC *arg1 = (wxDC *) 0 ;
9956 int arg2 ;
9957 int arg3 ;
9958 int arg4 ;
9959 int arg5 ;
9960 PyObject * obj0 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9970
9971 wxPyEndAllowThreads(__tstate);
9972 if (PyErr_Occurred()) SWIG_fail;
9973 }
9974 Py_INCREF(Py_None); resultobj = Py_None;
9975 return resultobj;
9976 fail:
9977 return NULL;
9978 }
9979
9980
9981 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj;
9983 wxDC *arg1 = (wxDC *) 0 ;
9984 wxRect *arg2 = 0 ;
9985 wxRect temp2 ;
9986 PyObject * obj0 = 0 ;
9987 PyObject * obj1 = 0 ;
9988 char *kwnames[] = {
9989 (char *) "self",(char *) "rect", NULL
9990 };
9991
9992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9994 {
9995 arg2 = &temp2;
9996 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9997 }
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) SWIG_fail;
10004 }
10005 Py_INCREF(Py_None); resultobj = Py_None;
10006 return resultobj;
10007 fail:
10008 return NULL;
10009 }
10010
10011
10012 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10013 PyObject *resultobj;
10014 wxDC *arg1 = (wxDC *) 0 ;
10015 int arg2 ;
10016 int arg3 ;
10017 int arg4 ;
10018 int arg5 ;
10019 double arg6 ;
10020 double arg7 ;
10021 PyObject * obj0 = 0 ;
10022 char *kwnames[] = {
10023 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10024 };
10025
10026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
10027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10031
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 Py_INCREF(Py_None); resultobj = Py_None;
10036 return resultobj;
10037 fail:
10038 return NULL;
10039 }
10040
10041
10042 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10043 PyObject *resultobj;
10044 wxDC *arg1 = (wxDC *) 0 ;
10045 wxPoint *arg2 = 0 ;
10046 wxSize *arg3 = 0 ;
10047 double arg4 ;
10048 double arg5 ;
10049 wxPoint temp2 ;
10050 wxSize temp3 ;
10051 PyObject * obj0 = 0 ;
10052 PyObject * obj1 = 0 ;
10053 PyObject * obj2 = 0 ;
10054 char *kwnames[] = {
10055 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10056 };
10057
10058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10060 {
10061 arg2 = &temp2;
10062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10063 }
10064 {
10065 arg3 = &temp3;
10066 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10067 }
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 Py_INCREF(Py_None); resultobj = Py_None;
10076 return resultobj;
10077 fail:
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxDC *arg1 = (wxDC *) 0 ;
10085 int arg2 ;
10086 int arg3 ;
10087 PyObject * obj0 = 0 ;
10088 char *kwnames[] = {
10089 (char *) "self",(char *) "x",(char *) "y", NULL
10090 };
10091
10092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
10093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 (arg1)->DrawPoint(arg2,arg3);
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 Py_INCREF(Py_None); resultobj = Py_None;
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxDC *arg1 = (wxDC *) 0 ;
10111 wxPoint *arg2 = 0 ;
10112 wxPoint temp2 ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self",(char *) "pt", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10121 {
10122 arg2 = &temp2;
10123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10124 }
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 (arg1)->DrawPoint((wxPoint const &)*arg2);
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 Py_INCREF(Py_None); resultobj = Py_None;
10133 return resultobj;
10134 fail:
10135 return NULL;
10136 }
10137
10138
10139 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10140 PyObject *resultobj;
10141 wxDC *arg1 = (wxDC *) 0 ;
10142 int arg2 ;
10143 int arg3 ;
10144 int arg4 ;
10145 int arg5 ;
10146 PyObject * obj0 = 0 ;
10147 char *kwnames[] = {
10148 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10149 };
10150
10151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 Py_INCREF(Py_None); resultobj = Py_None;
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxDC *arg1 = (wxDC *) 0 ;
10170 wxPoint *arg2 = 0 ;
10171 wxSize *arg3 = 0 ;
10172 wxPoint temp2 ;
10173 wxSize temp3 ;
10174 PyObject * obj0 = 0 ;
10175 PyObject * obj1 = 0 ;
10176 PyObject * obj2 = 0 ;
10177 char *kwnames[] = {
10178 (char *) "self",(char *) "pt",(char *) "sz", NULL
10179 };
10180
10181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10183 {
10184 arg2 = &temp2;
10185 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10186 }
10187 {
10188 arg3 = &temp3;
10189 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10194
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 }
10198 Py_INCREF(Py_None); resultobj = Py_None;
10199 return resultobj;
10200 fail:
10201 return NULL;
10202 }
10203
10204
10205 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10206 PyObject *resultobj;
10207 wxDC *arg1 = (wxDC *) 0 ;
10208 wxRect *arg2 = 0 ;
10209 wxRect temp2 ;
10210 PyObject * obj0 = 0 ;
10211 PyObject * obj1 = 0 ;
10212 char *kwnames[] = {
10213 (char *) "self",(char *) "rect", NULL
10214 };
10215
10216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10218 {
10219 arg2 = &temp2;
10220 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10221 }
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 (arg1)->DrawRectangle((wxRect const &)*arg2);
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 Py_INCREF(Py_None); resultobj = Py_None;
10230 return resultobj;
10231 fail:
10232 return NULL;
10233 }
10234
10235
10236 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10237 PyObject *resultobj;
10238 wxDC *arg1 = (wxDC *) 0 ;
10239 int arg2 ;
10240 int arg3 ;
10241 int arg4 ;
10242 int arg5 ;
10243 double arg6 ;
10244 PyObject * obj0 = 0 ;
10245 char *kwnames[] = {
10246 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10247 };
10248
10249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
10250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10251 {
10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
10253 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10254
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 Py_INCREF(Py_None); resultobj = Py_None;
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj;
10267 wxDC *arg1 = (wxDC *) 0 ;
10268 wxPoint *arg2 = 0 ;
10269 wxSize *arg3 = 0 ;
10270 double arg4 ;
10271 wxPoint temp2 ;
10272 wxSize temp3 ;
10273 PyObject * obj0 = 0 ;
10274 PyObject * obj1 = 0 ;
10275 PyObject * obj2 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10282 {
10283 arg2 = &temp2;
10284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10285 }
10286 {
10287 arg3 = &temp3;
10288 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10289 }
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
10292 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10293
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 Py_INCREF(Py_None); resultobj = Py_None;
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj;
10306 wxDC *arg1 = (wxDC *) 0 ;
10307 wxRect *arg2 = 0 ;
10308 double arg3 ;
10309 wxRect temp2 ;
10310 PyObject * obj0 = 0 ;
10311 PyObject * obj1 = 0 ;
10312 char *kwnames[] = {
10313 (char *) "self",(char *) "r",(char *) "radius", NULL
10314 };
10315
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10318 {
10319 arg2 = &temp2;
10320 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10321 }
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10325
10326 wxPyEndAllowThreads(__tstate);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 Py_INCREF(Py_None); resultobj = Py_None;
10330 return resultobj;
10331 fail:
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 wxDC *arg1 = (wxDC *) 0 ;
10339 int arg2 ;
10340 int arg3 ;
10341 int arg4 ;
10342 PyObject * obj0 = 0 ;
10343 char *kwnames[] = {
10344 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 (arg1)->DrawCircle(arg2,arg3,arg4);
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 Py_INCREF(Py_None); resultobj = Py_None;
10357 return resultobj;
10358 fail:
10359 return NULL;
10360 }
10361
10362
10363 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj;
10365 wxDC *arg1 = (wxDC *) 0 ;
10366 wxPoint *arg2 = 0 ;
10367 int arg3 ;
10368 wxPoint temp2 ;
10369 PyObject * obj0 = 0 ;
10370 PyObject * obj1 = 0 ;
10371 char *kwnames[] = {
10372 (char *) "self",(char *) "pt",(char *) "radius", NULL
10373 };
10374
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
10376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10377 {
10378 arg2 = &temp2;
10379 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10380 }
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10384
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 Py_INCREF(Py_None); resultobj = Py_None;
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10396 PyObject *resultobj;
10397 wxDC *arg1 = (wxDC *) 0 ;
10398 int arg2 ;
10399 int arg3 ;
10400 int arg4 ;
10401 int arg5 ;
10402 PyObject * obj0 = 0 ;
10403 char *kwnames[] = {
10404 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10405 };
10406
10407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
10408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10409 {
10410 PyThreadState* __tstate = wxPyBeginAllowThreads();
10411 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10412
10413 wxPyEndAllowThreads(__tstate);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 }
10416 Py_INCREF(Py_None); resultobj = Py_None;
10417 return resultobj;
10418 fail:
10419 return NULL;
10420 }
10421
10422
10423 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10424 PyObject *resultobj;
10425 wxDC *arg1 = (wxDC *) 0 ;
10426 wxPoint *arg2 = 0 ;
10427 wxSize *arg3 = 0 ;
10428 wxPoint temp2 ;
10429 wxSize temp3 ;
10430 PyObject * obj0 = 0 ;
10431 PyObject * obj1 = 0 ;
10432 PyObject * obj2 = 0 ;
10433 char *kwnames[] = {
10434 (char *) "self",(char *) "pt",(char *) "sz", NULL
10435 };
10436
10437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10439 {
10440 arg2 = &temp2;
10441 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10442 }
10443 {
10444 arg3 = &temp3;
10445 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10446 }
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 Py_INCREF(Py_None); resultobj = Py_None;
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj;
10463 wxDC *arg1 = (wxDC *) 0 ;
10464 wxRect *arg2 = 0 ;
10465 wxRect temp2 ;
10466 PyObject * obj0 = 0 ;
10467 PyObject * obj1 = 0 ;
10468 char *kwnames[] = {
10469 (char *) "self",(char *) "rect", NULL
10470 };
10471
10472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10474 {
10475 arg2 = &temp2;
10476 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10477 }
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 (arg1)->DrawEllipse((wxRect const &)*arg2);
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 Py_INCREF(Py_None); resultobj = Py_None;
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj;
10494 wxDC *arg1 = (wxDC *) 0 ;
10495 wxIcon *arg2 = 0 ;
10496 int arg3 ;
10497 int arg4 ;
10498 PyObject * obj0 = 0 ;
10499 PyObject * obj1 = 0 ;
10500 char *kwnames[] = {
10501 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
10502 };
10503
10504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10506 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10507 if (arg2 == NULL) {
10508 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10509 }
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
10513
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 Py_INCREF(Py_None); resultobj = Py_None;
10518 return resultobj;
10519 fail:
10520 return NULL;
10521 }
10522
10523
10524 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10525 PyObject *resultobj;
10526 wxDC *arg1 = (wxDC *) 0 ;
10527 wxIcon *arg2 = 0 ;
10528 wxPoint *arg3 = 0 ;
10529 wxPoint temp3 ;
10530 PyObject * obj0 = 0 ;
10531 PyObject * obj1 = 0 ;
10532 PyObject * obj2 = 0 ;
10533 char *kwnames[] = {
10534 (char *) "self",(char *) "icon",(char *) "pt", NULL
10535 };
10536
10537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
10538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10539 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10540 if (arg2 == NULL) {
10541 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10542 }
10543 {
10544 arg3 = &temp3;
10545 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10546 }
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 Py_INCREF(Py_None); resultobj = Py_None;
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj;
10563 wxDC *arg1 = (wxDC *) 0 ;
10564 wxBitmap *arg2 = 0 ;
10565 int arg3 ;
10566 int arg4 ;
10567 bool arg5 = (bool) False ;
10568 PyObject * obj0 = 0 ;
10569 PyObject * obj1 = 0 ;
10570 PyObject * obj4 = 0 ;
10571 char *kwnames[] = {
10572 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10573 };
10574
10575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10577 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10578 if (arg2 == NULL) {
10579 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10580 }
10581 if (obj4) {
10582 arg5 = PyInt_AsLong(obj4) ? true : false;
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10588
10589 wxPyEndAllowThreads(__tstate);
10590 if (PyErr_Occurred()) SWIG_fail;
10591 }
10592 Py_INCREF(Py_None); resultobj = Py_None;
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxDC *arg1 = (wxDC *) 0 ;
10602 wxBitmap *arg2 = 0 ;
10603 wxPoint *arg3 = 0 ;
10604 bool arg4 = (bool) False ;
10605 wxPoint temp3 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 PyObject * obj3 = 0 ;
10610 char *kwnames[] = {
10611 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10612 };
10613
10614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10616 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10617 if (arg2 == NULL) {
10618 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10619 }
10620 {
10621 arg3 = &temp3;
10622 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10623 }
10624 if (obj3) {
10625 arg4 = PyInt_AsLong(obj3) ? true : false;
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10631
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 Py_INCREF(Py_None); resultobj = Py_None;
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj;
10644 wxDC *arg1 = (wxDC *) 0 ;
10645 wxString *arg2 = 0 ;
10646 int arg3 ;
10647 int arg4 ;
10648 bool temp2 = False ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 char *kwnames[] = {
10652 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10653 };
10654
10655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10657 {
10658 arg2 = wxString_in_helper(obj1);
10659 if (arg2 == NULL) SWIG_fail;
10660 temp2 = True;
10661 }
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10665
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 Py_INCREF(Py_None); resultobj = Py_None;
10670 {
10671 if (temp2)
10672 delete arg2;
10673 }
10674 return resultobj;
10675 fail:
10676 {
10677 if (temp2)
10678 delete arg2;
10679 }
10680 return NULL;
10681 }
10682
10683
10684 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj;
10686 wxDC *arg1 = (wxDC *) 0 ;
10687 wxString *arg2 = 0 ;
10688 wxPoint *arg3 = 0 ;
10689 bool temp2 = False ;
10690 wxPoint temp3 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 PyObject * obj2 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self",(char *) "text",(char *) "pt", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10700 {
10701 arg2 = wxString_in_helper(obj1);
10702 if (arg2 == NULL) SWIG_fail;
10703 temp2 = True;
10704 }
10705 {
10706 arg3 = &temp3;
10707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10708 }
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10712
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 Py_INCREF(Py_None); resultobj = Py_None;
10717 {
10718 if (temp2)
10719 delete arg2;
10720 }
10721 return resultobj;
10722 fail:
10723 {
10724 if (temp2)
10725 delete arg2;
10726 }
10727 return NULL;
10728 }
10729
10730
10731 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10732 PyObject *resultobj;
10733 wxDC *arg1 = (wxDC *) 0 ;
10734 wxString *arg2 = 0 ;
10735 int arg3 ;
10736 int arg4 ;
10737 double arg5 ;
10738 bool temp2 = False ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char *kwnames[] = {
10742 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10743 };
10744
10745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10747 {
10748 arg2 = wxString_in_helper(obj1);
10749 if (arg2 == NULL) SWIG_fail;
10750 temp2 = True;
10751 }
10752 {
10753 PyThreadState* __tstate = wxPyBeginAllowThreads();
10754 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10755
10756 wxPyEndAllowThreads(__tstate);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 }
10759 Py_INCREF(Py_None); resultobj = Py_None;
10760 {
10761 if (temp2)
10762 delete arg2;
10763 }
10764 return resultobj;
10765 fail:
10766 {
10767 if (temp2)
10768 delete arg2;
10769 }
10770 return NULL;
10771 }
10772
10773
10774 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj;
10776 wxDC *arg1 = (wxDC *) 0 ;
10777 wxString *arg2 = 0 ;
10778 wxPoint *arg3 = 0 ;
10779 double arg4 ;
10780 bool temp2 = False ;
10781 wxPoint temp3 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 PyObject * obj2 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10791 {
10792 arg2 = wxString_in_helper(obj1);
10793 if (arg2 == NULL) SWIG_fail;
10794 temp2 = True;
10795 }
10796 {
10797 arg3 = &temp3;
10798 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10799 }
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 Py_INCREF(Py_None); resultobj = Py_None;
10808 {
10809 if (temp2)
10810 delete arg2;
10811 }
10812 return resultobj;
10813 fail:
10814 {
10815 if (temp2)
10816 delete arg2;
10817 }
10818 return NULL;
10819 }
10820
10821
10822 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj;
10824 wxDC *arg1 = (wxDC *) 0 ;
10825 int arg2 ;
10826 int arg3 ;
10827 int arg4 ;
10828 int arg5 ;
10829 wxDC *arg6 = (wxDC *) 0 ;
10830 int arg7 ;
10831 int arg8 ;
10832 int arg9 = (int) wxCOPY ;
10833 bool arg10 = (bool) False ;
10834 int arg11 = (int) -1 ;
10835 int arg12 = (int) -1 ;
10836 bool result;
10837 PyObject * obj0 = 0 ;
10838 PyObject * obj5 = 0 ;
10839 PyObject * obj9 = 0 ;
10840 char *kwnames[] = {
10841 (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
10842 };
10843
10844 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;
10845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10846 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10847 if (obj9) {
10848 arg10 = PyInt_AsLong(obj9) ? true : false;
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10854
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 resultobj = PyInt_FromLong((long)result);
10859 return resultobj;
10860 fail:
10861 return NULL;
10862 }
10863
10864
10865 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10866 PyObject *resultobj;
10867 wxDC *arg1 = (wxDC *) 0 ;
10868 wxPoint *arg2 = 0 ;
10869 wxSize *arg3 = 0 ;
10870 wxDC *arg4 = (wxDC *) 0 ;
10871 wxPoint *arg5 = 0 ;
10872 int arg6 = (int) wxCOPY ;
10873 bool arg7 = (bool) False ;
10874 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10875 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10876 bool result;
10877 wxPoint temp2 ;
10878 wxSize temp3 ;
10879 wxPoint temp5 ;
10880 wxPoint temp8 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 PyObject * obj2 = 0 ;
10884 PyObject * obj3 = 0 ;
10885 PyObject * obj4 = 0 ;
10886 PyObject * obj6 = 0 ;
10887 PyObject * obj7 = 0 ;
10888 char *kwnames[] = {
10889 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10890 };
10891
10892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10894 {
10895 arg2 = &temp2;
10896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10897 }
10898 {
10899 arg3 = &temp3;
10900 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10901 }
10902 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10903 {
10904 arg5 = &temp5;
10905 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10906 }
10907 if (obj6) {
10908 arg7 = PyInt_AsLong(obj6) ? true : false;
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 if (obj7) {
10912 {
10913 arg8 = &temp8;
10914 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10915 }
10916 }
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 resultobj = PyInt_FromLong((long)result);
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj;
10933 wxDC *arg1 = (wxDC *) 0 ;
10934 int arg2 ;
10935 wxPoint *arg3 = (wxPoint *) 0 ;
10936 int arg4 = (int) 0 ;
10937 int arg5 = (int) 0 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char *kwnames[] = {
10941 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10942 };
10943
10944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10946 {
10947 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10948 if (arg3 == NULL) SWIG_fail;
10949 }
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10953
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 Py_INCREF(Py_None); resultobj = Py_None;
10958 {
10959 if (arg3) delete [] arg3;
10960 }
10961 return resultobj;
10962 fail:
10963 {
10964 if (arg3) delete [] arg3;
10965 }
10966 return NULL;
10967 }
10968
10969
10970 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject *resultobj;
10972 wxDC *arg1 = (wxDC *) 0 ;
10973 int arg2 ;
10974 wxPoint *arg3 = (wxPoint *) 0 ;
10975 int arg4 = (int) 0 ;
10976 int arg5 = (int) 0 ;
10977 int arg6 = (int) wxODDEVEN_RULE ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 char *kwnames[] = {
10981 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10982 };
10983
10984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10986 {
10987 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10988 if (arg3 == NULL) SWIG_fail;
10989 }
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10993
10994 wxPyEndAllowThreads(__tstate);
10995 if (PyErr_Occurred()) SWIG_fail;
10996 }
10997 Py_INCREF(Py_None); resultobj = Py_None;
10998 {
10999 if (arg3) delete [] arg3;
11000 }
11001 return resultobj;
11002 fail:
11003 {
11004 if (arg3) delete [] arg3;
11005 }
11006 return NULL;
11007 }
11008
11009
11010 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxDC *arg1 = (wxDC *) 0 ;
11013 wxString *arg2 = 0 ;
11014 wxRect *arg3 = 0 ;
11015 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11016 int arg5 = (int) -1 ;
11017 bool temp2 = False ;
11018 wxRect temp3 ;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 PyObject * obj2 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11024 };
11025
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
11027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11028 {
11029 arg2 = wxString_in_helper(obj1);
11030 if (arg2 == NULL) SWIG_fail;
11031 temp2 = True;
11032 }
11033 {
11034 arg3 = &temp3;
11035 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11036 }
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11040
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 Py_INCREF(Py_None); resultobj = Py_None;
11045 {
11046 if (temp2)
11047 delete arg2;
11048 }
11049 return resultobj;
11050 fail:
11051 {
11052 if (temp2)
11053 delete arg2;
11054 }
11055 return NULL;
11056 }
11057
11058
11059 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11060 PyObject *resultobj;
11061 wxDC *arg1 = (wxDC *) 0 ;
11062 wxString *arg2 = 0 ;
11063 wxBitmap *arg3 = 0 ;
11064 wxRect *arg4 = 0 ;
11065 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11066 int arg6 = (int) -1 ;
11067 wxRect result;
11068 bool temp2 = False ;
11069 wxRect temp4 ;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 PyObject * obj2 = 0 ;
11073 PyObject * obj3 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11080 {
11081 arg2 = wxString_in_helper(obj1);
11082 if (arg2 == NULL) SWIG_fail;
11083 temp2 = True;
11084 }
11085 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11086 if (arg3 == NULL) {
11087 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11088 }
11089 {
11090 arg4 = &temp4;
11091 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11092 }
11093 {
11094 PyThreadState* __tstate = wxPyBeginAllowThreads();
11095 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11096
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 wxRect * resultptr;
11102 resultptr = new wxRect((wxRect &) result);
11103 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11104 }
11105 {
11106 if (temp2)
11107 delete arg2;
11108 }
11109 return resultobj;
11110 fail:
11111 {
11112 if (temp2)
11113 delete arg2;
11114 }
11115 return NULL;
11116 }
11117
11118
11119 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj;
11121 wxDC *arg1 = (wxDC *) 0 ;
11122 int arg2 ;
11123 wxPoint *arg3 = (wxPoint *) 0 ;
11124 PyObject * obj0 = 0 ;
11125 PyObject * obj1 = 0 ;
11126 char *kwnames[] = {
11127 (char *) "self",(char *) "points", NULL
11128 };
11129
11130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11132 {
11133 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11134 if (arg3 == NULL) SWIG_fail;
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 (arg1)->DrawSpline(arg2,arg3);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 Py_INCREF(Py_None); resultobj = Py_None;
11144 {
11145 if (arg3) delete [] arg3;
11146 }
11147 return resultobj;
11148 fail:
11149 {
11150 if (arg3) delete [] arg3;
11151 }
11152 return NULL;
11153 }
11154
11155
11156 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11157 PyObject *resultobj;
11158 wxDC *arg1 = (wxDC *) 0 ;
11159 PyObject * obj0 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "self", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11166 {
11167 PyThreadState* __tstate = wxPyBeginAllowThreads();
11168 (arg1)->Clear();
11169
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 Py_INCREF(Py_None); resultobj = Py_None;
11174 return resultobj;
11175 fail:
11176 return NULL;
11177 }
11178
11179
11180 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11181 PyObject *resultobj;
11182 wxDC *arg1 = (wxDC *) 0 ;
11183 wxString *arg2 = 0 ;
11184 bool result;
11185 bool temp2 = False ;
11186 PyObject * obj0 = 0 ;
11187 PyObject * obj1 = 0 ;
11188 char *kwnames[] = {
11189 (char *) "self",(char *) "message", NULL
11190 };
11191
11192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11194 {
11195 arg2 = wxString_in_helper(obj1);
11196 if (arg2 == NULL) SWIG_fail;
11197 temp2 = True;
11198 }
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11202
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 resultobj = PyInt_FromLong((long)result);
11207 {
11208 if (temp2)
11209 delete arg2;
11210 }
11211 return resultobj;
11212 fail:
11213 {
11214 if (temp2)
11215 delete arg2;
11216 }
11217 return NULL;
11218 }
11219
11220
11221 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11222 PyObject *resultobj;
11223 wxDC *arg1 = (wxDC *) 0 ;
11224 PyObject * obj0 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 (arg1)->EndDoc();
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 Py_INCREF(Py_None); resultobj = Py_None;
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11246 PyObject *resultobj;
11247 wxDC *arg1 = (wxDC *) 0 ;
11248 PyObject * obj0 = 0 ;
11249 char *kwnames[] = {
11250 (char *) "self", NULL
11251 };
11252
11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 (arg1)->StartPage();
11258
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 Py_INCREF(Py_None); resultobj = Py_None;
11263 return resultobj;
11264 fail:
11265 return NULL;
11266 }
11267
11268
11269 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj;
11271 wxDC *arg1 = (wxDC *) 0 ;
11272 PyObject * obj0 = 0 ;
11273 char *kwnames[] = {
11274 (char *) "self", NULL
11275 };
11276
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 (arg1)->EndPage();
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 Py_INCREF(Py_None); resultobj = Py_None;
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj;
11295 wxDC *arg1 = (wxDC *) 0 ;
11296 wxFont *arg2 = 0 ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 char *kwnames[] = {
11300 (char *) "self",(char *) "font", NULL
11301 };
11302
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
11304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11305 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11306 if (arg2 == NULL) {
11307 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11308 }
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 (arg1)->SetFont((wxFont const &)*arg2);
11312
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 Py_INCREF(Py_None); resultobj = Py_None;
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxDC *arg1 = (wxDC *) 0 ;
11326 wxPen *arg2 = 0 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char *kwnames[] = {
11330 (char *) "self",(char *) "pen", NULL
11331 };
11332
11333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
11334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11335 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11336 if (arg2 == NULL) {
11337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11338 }
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 (arg1)->SetPen((wxPen const &)*arg2);
11342
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 Py_INCREF(Py_None); resultobj = Py_None;
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj;
11355 wxDC *arg1 = (wxDC *) 0 ;
11356 wxBrush *arg2 = 0 ;
11357 PyObject * obj0 = 0 ;
11358 PyObject * obj1 = 0 ;
11359 char *kwnames[] = {
11360 (char *) "self",(char *) "brush", NULL
11361 };
11362
11363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
11364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11365 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11366 if (arg2 == NULL) {
11367 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11368 }
11369 {
11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
11371 (arg1)->SetBrush((wxBrush const &)*arg2);
11372
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 Py_INCREF(Py_None); resultobj = Py_None;
11377 return resultobj;
11378 fail:
11379 return NULL;
11380 }
11381
11382
11383 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11384 PyObject *resultobj;
11385 wxDC *arg1 = (wxDC *) 0 ;
11386 wxBrush *arg2 = 0 ;
11387 PyObject * obj0 = 0 ;
11388 PyObject * obj1 = 0 ;
11389 char *kwnames[] = {
11390 (char *) "self",(char *) "brush", NULL
11391 };
11392
11393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
11394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11395 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11396 if (arg2 == NULL) {
11397 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11398 }
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 (arg1)->SetBackground((wxBrush const &)*arg2);
11402
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 Py_INCREF(Py_None); resultobj = Py_None;
11407 return resultobj;
11408 fail:
11409 return NULL;
11410 }
11411
11412
11413 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11414 PyObject *resultobj;
11415 wxDC *arg1 = (wxDC *) 0 ;
11416 int arg2 ;
11417 PyObject * obj0 = 0 ;
11418 char *kwnames[] = {
11419 (char *) "self",(char *) "mode", NULL
11420 };
11421
11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
11423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 (arg1)->SetBackgroundMode(arg2);
11427
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 Py_INCREF(Py_None); resultobj = Py_None;
11432 return resultobj;
11433 fail:
11434 return NULL;
11435 }
11436
11437
11438 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
11439 PyObject *resultobj;
11440 wxDC *arg1 = (wxDC *) 0 ;
11441 wxPalette *arg2 = 0 ;
11442 PyObject * obj0 = 0 ;
11443 PyObject * obj1 = 0 ;
11444 char *kwnames[] = {
11445 (char *) "self",(char *) "palette", NULL
11446 };
11447
11448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
11449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11450 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11451 if (arg2 == NULL) {
11452 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11453 }
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 (arg1)->SetPalette((wxPalette const &)*arg2);
11457
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 Py_INCREF(Py_None); resultobj = Py_None;
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj;
11470 wxDC *arg1 = (wxDC *) 0 ;
11471 int arg2 ;
11472 int arg3 ;
11473 int arg4 ;
11474 int arg5 ;
11475 PyObject * obj0 = 0 ;
11476 char *kwnames[] = {
11477 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11478 };
11479
11480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11482 {
11483 PyThreadState* __tstate = wxPyBeginAllowThreads();
11484 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11485
11486 wxPyEndAllowThreads(__tstate);
11487 if (PyErr_Occurred()) SWIG_fail;
11488 }
11489 Py_INCREF(Py_None); resultobj = Py_None;
11490 return resultobj;
11491 fail:
11492 return NULL;
11493 }
11494
11495
11496 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11497 PyObject *resultobj;
11498 wxDC *arg1 = (wxDC *) 0 ;
11499 wxPoint *arg2 = 0 ;
11500 wxSize *arg3 = 0 ;
11501 wxPoint temp2 ;
11502 wxSize temp3 ;
11503 PyObject * obj0 = 0 ;
11504 PyObject * obj1 = 0 ;
11505 PyObject * obj2 = 0 ;
11506 char *kwnames[] = {
11507 (char *) "self",(char *) "pt",(char *) "sz", NULL
11508 };
11509
11510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
11511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11512 {
11513 arg2 = &temp2;
11514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11515 }
11516 {
11517 arg3 = &temp3;
11518 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11519 }
11520 {
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11523
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 Py_INCREF(Py_None); resultobj = Py_None;
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11535 PyObject *resultobj;
11536 wxDC *arg1 = (wxDC *) 0 ;
11537 wxRect *arg2 = 0 ;
11538 wxRect temp2 ;
11539 PyObject * obj0 = 0 ;
11540 PyObject * obj1 = 0 ;
11541 char *kwnames[] = {
11542 (char *) "self",(char *) "rect", NULL
11543 };
11544
11545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11547 {
11548 arg2 = &temp2;
11549 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11550 }
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11554
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 Py_INCREF(Py_None); resultobj = Py_None;
11559 return resultobj;
11560 fail:
11561 return NULL;
11562 }
11563
11564
11565 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11566 PyObject *resultobj;
11567 wxDC *arg1 = (wxDC *) 0 ;
11568 wxRegion *arg2 = 0 ;
11569 PyObject * obj0 = 0 ;
11570 PyObject * obj1 = 0 ;
11571 char *kwnames[] = {
11572 (char *) "self",(char *) "region", NULL
11573 };
11574
11575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11577 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11578 if (arg2 == NULL) {
11579 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11580 }
11581 {
11582 PyThreadState* __tstate = wxPyBeginAllowThreads();
11583 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11584
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 Py_INCREF(Py_None); resultobj = Py_None;
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj;
11597 wxDC *arg1 = (wxDC *) 0 ;
11598 PyObject * obj0 = 0 ;
11599 char *kwnames[] = {
11600 (char *) "self", NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 (arg1)->DestroyClippingRegion();
11608
11609 wxPyEndAllowThreads(__tstate);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 Py_INCREF(Py_None); resultobj = Py_None;
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxDC *arg1 = (wxDC *) 0 ;
11622 int *arg2 = (int *) 0 ;
11623 int *arg3 = (int *) 0 ;
11624 int *arg4 = (int *) 0 ;
11625 int *arg5 = (int *) 0 ;
11626 int temp2 ;
11627 int temp3 ;
11628 int temp4 ;
11629 int temp5 ;
11630 PyObject * obj0 = 0 ;
11631 char *kwnames[] = {
11632 (char *) "self", NULL
11633 };
11634
11635 arg2 = &temp2;
11636 arg3 = &temp3;
11637 arg4 = &temp4;
11638 arg5 = &temp5;
11639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11641 {
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11644
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 Py_INCREF(Py_None); resultobj = Py_None;
11649 {
11650 PyObject *o = PyInt_FromLong((long) (*arg2));
11651 resultobj = t_output_helper(resultobj,o);
11652 }
11653 {
11654 PyObject *o = PyInt_FromLong((long) (*arg3));
11655 resultobj = t_output_helper(resultobj,o);
11656 }
11657 {
11658 PyObject *o = PyInt_FromLong((long) (*arg4));
11659 resultobj = t_output_helper(resultobj,o);
11660 }
11661 {
11662 PyObject *o = PyInt_FromLong((long) (*arg5));
11663 resultobj = t_output_helper(resultobj,o);
11664 }
11665 return resultobj;
11666 fail:
11667 return NULL;
11668 }
11669
11670
11671 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj;
11673 wxDC *arg1 = (wxDC *) 0 ;
11674 wxRect result;
11675 PyObject * obj0 = 0 ;
11676 char *kwnames[] = {
11677 (char *) "self", NULL
11678 };
11679
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11682 {
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = wxDC_GetClippingRect(arg1);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 {
11690 wxRect * resultptr;
11691 resultptr = new wxRect((wxRect &) result);
11692 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11693 }
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj;
11702 wxDC *arg1 = (wxDC *) 0 ;
11703 int result;
11704 PyObject * obj0 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (int)((wxDC const *)arg1)->GetCharHeight();
11714
11715 wxPyEndAllowThreads(__tstate);
11716 if (PyErr_Occurred()) SWIG_fail;
11717 }
11718 resultobj = PyInt_FromLong((long)result);
11719 return resultobj;
11720 fail:
11721 return NULL;
11722 }
11723
11724
11725 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj;
11727 wxDC *arg1 = (wxDC *) 0 ;
11728 int result;
11729 PyObject * obj0 = 0 ;
11730 char *kwnames[] = {
11731 (char *) "self", NULL
11732 };
11733
11734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 result = (int)((wxDC const *)arg1)->GetCharWidth();
11739
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 resultobj = PyInt_FromLong((long)result);
11744 return resultobj;
11745 fail:
11746 return NULL;
11747 }
11748
11749
11750 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11751 PyObject *resultobj;
11752 wxDC *arg1 = (wxDC *) 0 ;
11753 wxString *arg2 = 0 ;
11754 int *arg3 = (int *) 0 ;
11755 int *arg4 = (int *) 0 ;
11756 bool temp2 = False ;
11757 int temp3 ;
11758 int temp4 ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 char *kwnames[] = {
11762 (char *) "self",(char *) "string", NULL
11763 };
11764
11765 arg3 = &temp3;
11766 arg4 = &temp4;
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11769 {
11770 arg2 = wxString_in_helper(obj1);
11771 if (arg2 == NULL) SWIG_fail;
11772 temp2 = True;
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 {
11783 PyObject *o = PyInt_FromLong((long) (*arg3));
11784 resultobj = t_output_helper(resultobj,o);
11785 }
11786 {
11787 PyObject *o = PyInt_FromLong((long) (*arg4));
11788 resultobj = t_output_helper(resultobj,o);
11789 }
11790 {
11791 if (temp2)
11792 delete arg2;
11793 }
11794 return resultobj;
11795 fail:
11796 {
11797 if (temp2)
11798 delete arg2;
11799 }
11800 return NULL;
11801 }
11802
11803
11804 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11805 PyObject *resultobj;
11806 wxDC *arg1 = (wxDC *) 0 ;
11807 wxString *arg2 = 0 ;
11808 int *arg3 = (int *) 0 ;
11809 int *arg4 = (int *) 0 ;
11810 int *arg5 = (int *) 0 ;
11811 int *arg6 = (int *) 0 ;
11812 wxFont *arg7 = (wxFont *) NULL ;
11813 bool temp2 = False ;
11814 int temp3 ;
11815 int temp4 ;
11816 int temp5 ;
11817 int temp6 ;
11818 PyObject * obj0 = 0 ;
11819 PyObject * obj1 = 0 ;
11820 PyObject * obj2 = 0 ;
11821 char *kwnames[] = {
11822 (char *) "self",(char *) "string",(char *) "font", NULL
11823 };
11824
11825 arg3 = &temp3;
11826 arg4 = &temp4;
11827 arg5 = &temp5;
11828 arg6 = &temp6;
11829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11831 {
11832 arg2 = wxString_in_helper(obj1);
11833 if (arg2 == NULL) SWIG_fail;
11834 temp2 = True;
11835 }
11836 if (obj2) {
11837 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11838 }
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11842
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 Py_INCREF(Py_None); resultobj = Py_None;
11847 {
11848 PyObject *o = PyInt_FromLong((long) (*arg3));
11849 resultobj = t_output_helper(resultobj,o);
11850 }
11851 {
11852 PyObject *o = PyInt_FromLong((long) (*arg4));
11853 resultobj = t_output_helper(resultobj,o);
11854 }
11855 {
11856 PyObject *o = PyInt_FromLong((long) (*arg5));
11857 resultobj = t_output_helper(resultobj,o);
11858 }
11859 {
11860 PyObject *o = PyInt_FromLong((long) (*arg6));
11861 resultobj = t_output_helper(resultobj,o);
11862 }
11863 {
11864 if (temp2)
11865 delete arg2;
11866 }
11867 return resultobj;
11868 fail:
11869 {
11870 if (temp2)
11871 delete arg2;
11872 }
11873 return NULL;
11874 }
11875
11876
11877 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11878 PyObject *resultobj;
11879 wxDC *arg1 = (wxDC *) 0 ;
11880 wxString *arg2 = 0 ;
11881 int *arg3 = (int *) 0 ;
11882 int *arg4 = (int *) 0 ;
11883 int *arg5 = (int *) 0 ;
11884 wxFont *arg6 = (wxFont *) NULL ;
11885 bool temp2 = False ;
11886 int temp3 ;
11887 int temp4 ;
11888 int temp5 ;
11889 PyObject * obj0 = 0 ;
11890 PyObject * obj1 = 0 ;
11891 PyObject * obj2 = 0 ;
11892 char *kwnames[] = {
11893 (char *) "self",(char *) "text",(char *) "font", NULL
11894 };
11895
11896 arg3 = &temp3;
11897 arg4 = &temp4;
11898 arg5 = &temp5;
11899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11901 {
11902 arg2 = wxString_in_helper(obj1);
11903 if (arg2 == NULL) SWIG_fail;
11904 temp2 = True;
11905 }
11906 if (obj2) {
11907 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11908 }
11909 {
11910 PyThreadState* __tstate = wxPyBeginAllowThreads();
11911 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11912
11913 wxPyEndAllowThreads(__tstate);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 Py_INCREF(Py_None); resultobj = Py_None;
11917 {
11918 PyObject *o = PyInt_FromLong((long) (*arg3));
11919 resultobj = t_output_helper(resultobj,o);
11920 }
11921 {
11922 PyObject *o = PyInt_FromLong((long) (*arg4));
11923 resultobj = t_output_helper(resultobj,o);
11924 }
11925 {
11926 PyObject *o = PyInt_FromLong((long) (*arg5));
11927 resultobj = t_output_helper(resultobj,o);
11928 }
11929 {
11930 if (temp2)
11931 delete arg2;
11932 }
11933 return resultobj;
11934 fail:
11935 {
11936 if (temp2)
11937 delete arg2;
11938 }
11939 return NULL;
11940 }
11941
11942
11943 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11944 PyObject *resultobj;
11945 wxDC *arg1 = (wxDC *) 0 ;
11946 wxSize result;
11947 PyObject * obj0 = 0 ;
11948 char *kwnames[] = {
11949 (char *) "self", NULL
11950 };
11951
11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 result = (arg1)->GetSize();
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 wxSize * resultptr;
11963 resultptr = new wxSize((wxSize &) result);
11964 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11965 }
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11973 PyObject *resultobj;
11974 wxDC *arg1 = (wxDC *) 0 ;
11975 int *arg2 = (int *) 0 ;
11976 int *arg3 = (int *) 0 ;
11977 int temp2 ;
11978 int temp3 ;
11979 PyObject * obj0 = 0 ;
11980 char *kwnames[] = {
11981 (char *) "self", NULL
11982 };
11983
11984 arg2 = &temp2;
11985 arg3 = &temp3;
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 (arg1)->GetSize(arg2,arg3);
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 Py_INCREF(Py_None); resultobj = Py_None;
11996 {
11997 PyObject *o = PyInt_FromLong((long) (*arg2));
11998 resultobj = t_output_helper(resultobj,o);
11999 }
12000 {
12001 PyObject *o = PyInt_FromLong((long) (*arg3));
12002 resultobj = t_output_helper(resultobj,o);
12003 }
12004 return resultobj;
12005 fail:
12006 return NULL;
12007 }
12008
12009
12010 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12011 PyObject *resultobj;
12012 wxDC *arg1 = (wxDC *) 0 ;
12013 wxSize result;
12014 PyObject * obj0 = 0 ;
12015 char *kwnames[] = {
12016 (char *) "self", NULL
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = ((wxDC const *)arg1)->GetSizeMM();
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 {
12029 wxSize * resultptr;
12030 resultptr = new wxSize((wxSize &) result);
12031 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12032 }
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj;
12041 wxDC *arg1 = (wxDC *) 0 ;
12042 int *arg2 = (int *) 0 ;
12043 int *arg3 = (int *) 0 ;
12044 int temp2 ;
12045 int temp3 ;
12046 PyObject * obj0 = 0 ;
12047 char *kwnames[] = {
12048 (char *) "self", NULL
12049 };
12050
12051 arg2 = &temp2;
12052 arg3 = &temp3;
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12058
12059 wxPyEndAllowThreads(__tstate);
12060 if (PyErr_Occurred()) SWIG_fail;
12061 }
12062 Py_INCREF(Py_None); resultobj = Py_None;
12063 {
12064 PyObject *o = PyInt_FromLong((long) (*arg2));
12065 resultobj = t_output_helper(resultobj,o);
12066 }
12067 {
12068 PyObject *o = PyInt_FromLong((long) (*arg3));
12069 resultobj = t_output_helper(resultobj,o);
12070 }
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj;
12079 wxDC *arg1 = (wxDC *) 0 ;
12080 int arg2 ;
12081 int result;
12082 PyObject * obj0 = 0 ;
12083 char *kwnames[] = {
12084 (char *) "self",(char *) "x", NULL
12085 };
12086
12087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
12088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 resultobj = PyInt_FromLong((long)result);
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj;
12105 wxDC *arg1 = (wxDC *) 0 ;
12106 int arg2 ;
12107 int result;
12108 PyObject * obj0 = 0 ;
12109 char *kwnames[] = {
12110 (char *) "self",(char *) "y", NULL
12111 };
12112
12113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
12114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = PyInt_FromLong((long)result);
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj;
12131 wxDC *arg1 = (wxDC *) 0 ;
12132 int arg2 ;
12133 int result;
12134 PyObject * obj0 = 0 ;
12135 char *kwnames[] = {
12136 (char *) "self",(char *) "x", NULL
12137 };
12138
12139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
12140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12144
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = PyInt_FromLong((long)result);
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12156 PyObject *resultobj;
12157 wxDC *arg1 = (wxDC *) 0 ;
12158 int arg2 ;
12159 int result;
12160 PyObject * obj0 = 0 ;
12161 char *kwnames[] = {
12162 (char *) "self",(char *) "y", NULL
12163 };
12164
12165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
12166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12167 {
12168 PyThreadState* __tstate = wxPyBeginAllowThreads();
12169 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12170
12171 wxPyEndAllowThreads(__tstate);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 resultobj = PyInt_FromLong((long)result);
12175 return resultobj;
12176 fail:
12177 return NULL;
12178 }
12179
12180
12181 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12182 PyObject *resultobj;
12183 wxDC *arg1 = (wxDC *) 0 ;
12184 int arg2 ;
12185 int result;
12186 PyObject * obj0 = 0 ;
12187 char *kwnames[] = {
12188 (char *) "self",(char *) "x", NULL
12189 };
12190
12191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
12192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12196
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 resultobj = PyInt_FromLong((long)result);
12201 return resultobj;
12202 fail:
12203 return NULL;
12204 }
12205
12206
12207 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj;
12209 wxDC *arg1 = (wxDC *) 0 ;
12210 int arg2 ;
12211 int result;
12212 PyObject * obj0 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self",(char *) "y", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
12222
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 resultobj = PyInt_FromLong((long)result);
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj;
12235 wxDC *arg1 = (wxDC *) 0 ;
12236 int arg2 ;
12237 int result;
12238 PyObject * obj0 = 0 ;
12239 char *kwnames[] = {
12240 (char *) "self",(char *) "x", NULL
12241 };
12242
12243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
12244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
12248
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 resultobj = PyInt_FromLong((long)result);
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj;
12261 wxDC *arg1 = (wxDC *) 0 ;
12262 int arg2 ;
12263 int result;
12264 PyObject * obj0 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "y", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) 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 = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
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_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12286 PyObject *resultobj;
12287 wxDC *arg1 = (wxDC *) 0 ;
12288 bool result;
12289 PyObject * obj0 = 0 ;
12290 char *kwnames[] = {
12291 (char *) "self", NULL
12292 };
12293
12294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",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 = (bool)((wxDC const *)arg1)->CanDrawBitmap();
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_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12311 PyObject *resultobj;
12312 wxDC *arg1 = (wxDC *) 0 ;
12313 bool result;
12314 PyObject * obj0 = 0 ;
12315 char *kwnames[] = {
12316 (char *) "self", NULL
12317 };
12318
12319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",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 = (bool)((wxDC const *)arg1)->CanGetTextExtent();
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = PyInt_FromLong((long)result);
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
12336 PyObject *resultobj;
12337 wxDC *arg1 = (wxDC *) 0 ;
12338 int result;
12339 PyObject * obj0 = 0 ;
12340 char *kwnames[] = {
12341 (char *) "self", NULL
12342 };
12343
12344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
12345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (int)((wxDC const *)arg1)->GetDepth();
12349
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = PyInt_FromLong((long)result);
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj;
12362 wxDC *arg1 = (wxDC *) 0 ;
12363 wxSize result;
12364 PyObject * obj0 = 0 ;
12365 char *kwnames[] = {
12366 (char *) "self", NULL
12367 };
12368
12369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
12370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 result = ((wxDC const *)arg1)->GetPPI();
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 {
12379 wxSize * resultptr;
12380 resultptr = new wxSize((wxSize &) result);
12381 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12382 }
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
12390 PyObject *resultobj;
12391 wxDC *arg1 = (wxDC *) 0 ;
12392 bool result;
12393 PyObject * obj0 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",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 result = (bool)((wxDC const *)arg1)->Ok();
12403
12404 wxPyEndAllowThreads(__tstate);
12405 if (PyErr_Occurred()) SWIG_fail;
12406 }
12407 resultobj = PyInt_FromLong((long)result);
12408 return resultobj;
12409 fail:
12410 return NULL;
12411 }
12412
12413
12414 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
12417 int result;
12418 PyObject * obj0 = 0 ;
12419 char *kwnames[] = {
12420 (char *) "self", NULL
12421 };
12422
12423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
12424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = PyInt_FromLong((long)result);
12433 return resultobj;
12434 fail:
12435 return NULL;
12436 }
12437
12438
12439 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxDC *arg1 = (wxDC *) 0 ;
12442 wxBrush *result;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 {
12453 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
12454 result = (wxBrush *) &_result_ref;
12455 }
12456
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12468 PyObject *resultobj;
12469 wxDC *arg1 = (wxDC *) 0 ;
12470 wxBrush *result;
12471 PyObject * obj0 = 0 ;
12472 char *kwnames[] = {
12473 (char *) "self", NULL
12474 };
12475
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
12477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 {
12481 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
12482 result = (wxBrush *) &_result_ref;
12483 }
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
12489 return resultobj;
12490 fail:
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 wxFont *result;
12499 PyObject * obj0 = 0 ;
12500 char *kwnames[] = {
12501 (char *) "self", NULL
12502 };
12503
12504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
12505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 {
12509 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
12510 result = (wxFont *) &_result_ref;
12511 }
12512
12513 wxPyEndAllowThreads(__tstate);
12514 if (PyErr_Occurred()) SWIG_fail;
12515 }
12516 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12524 PyObject *resultobj;
12525 wxDC *arg1 = (wxDC *) 0 ;
12526 wxPen *result;
12527 PyObject * obj0 = 0 ;
12528 char *kwnames[] = {
12529 (char *) "self", NULL
12530 };
12531
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
12533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 {
12537 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
12538 result = (wxPen *) &_result_ref;
12539 }
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12552 PyObject *resultobj;
12553 wxDC *arg1 = (wxDC *) 0 ;
12554 wxColour *result;
12555 PyObject * obj0 = 0 ;
12556 char *kwnames[] = {
12557 (char *) "self", NULL
12558 };
12559
12560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12562 {
12563 PyThreadState* __tstate = wxPyBeginAllowThreads();
12564 {
12565 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12566 result = (wxColour *) &_result_ref;
12567 }
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12573 return resultobj;
12574 fail:
12575 return NULL;
12576 }
12577
12578
12579 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj;
12581 wxDC *arg1 = (wxDC *) 0 ;
12582 wxColour *result;
12583 PyObject * obj0 = 0 ;
12584 char *kwnames[] = {
12585 (char *) "self", NULL
12586 };
12587
12588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12590 {
12591 PyThreadState* __tstate = wxPyBeginAllowThreads();
12592 {
12593 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12594 result = (wxColour *) &_result_ref;
12595 }
12596
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj;
12609 wxDC *arg1 = (wxDC *) 0 ;
12610 wxColour *arg2 = 0 ;
12611 wxColour temp2 ;
12612 PyObject * obj0 = 0 ;
12613 PyObject * obj1 = 0 ;
12614 char *kwnames[] = {
12615 (char *) "self",(char *) "colour", NULL
12616 };
12617
12618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12620 {
12621 arg2 = &temp2;
12622 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12623 }
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 (arg1)->SetTextForeground((wxColour const &)*arg2);
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 Py_INCREF(Py_None); resultobj = Py_None;
12632 return resultobj;
12633 fail:
12634 return NULL;
12635 }
12636
12637
12638 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12639 PyObject *resultobj;
12640 wxDC *arg1 = (wxDC *) 0 ;
12641 wxColour *arg2 = 0 ;
12642 wxColour temp2 ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645 char *kwnames[] = {
12646 (char *) "self",(char *) "colour", NULL
12647 };
12648
12649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12651 {
12652 arg2 = &temp2;
12653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12654 }
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 (arg1)->SetTextBackground((wxColour const &)*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_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj;
12671 wxDC *arg1 = (wxDC *) 0 ;
12672 int result;
12673 PyObject * obj0 = 0 ;
12674 char *kwnames[] = {
12675 (char *) "self", NULL
12676 };
12677
12678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 result = (int)((wxDC const *)arg1)->GetMapMode();
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = PyInt_FromLong((long)result);
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj;
12696 wxDC *arg1 = (wxDC *) 0 ;
12697 int arg2 ;
12698 PyObject * obj0 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self",(char *) "mode", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 (arg1)->SetMapMode(arg2);
12708
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 Py_INCREF(Py_None); resultobj = Py_None;
12713 return resultobj;
12714 fail:
12715 return NULL;
12716 }
12717
12718
12719 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj;
12721 wxDC *arg1 = (wxDC *) 0 ;
12722 double *arg2 = (double *) 0 ;
12723 double *arg3 = (double *) 0 ;
12724 double temp2 ;
12725 double temp3 ;
12726 PyObject * obj0 = 0 ;
12727 char *kwnames[] = {
12728 (char *) "self", NULL
12729 };
12730
12731 arg2 = &temp2;
12732 arg3 = &temp3;
12733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12738
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 Py_INCREF(Py_None); resultobj = Py_None;
12743 {
12744 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12745 resultobj = t_output_helper(resultobj,o);
12746 }
12747 {
12748 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12749 resultobj = t_output_helper(resultobj,o);
12750 }
12751 return resultobj;
12752 fail:
12753 return NULL;
12754 }
12755
12756
12757 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj;
12759 wxDC *arg1 = (wxDC *) 0 ;
12760 double arg2 ;
12761 double arg3 ;
12762 PyObject * obj0 = 0 ;
12763 char *kwnames[] = {
12764 (char *) "self",(char *) "x",(char *) "y", NULL
12765 };
12766
12767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->SetUserScale(arg2,arg3);
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 Py_INCREF(Py_None); resultobj = Py_None;
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxDC *arg1 = (wxDC *) 0 ;
12786 double *arg2 = (double *) 0 ;
12787 double *arg3 = (double *) 0 ;
12788 double temp2 ;
12789 double temp3 ;
12790 PyObject * obj0 = 0 ;
12791 char *kwnames[] = {
12792 (char *) "self", NULL
12793 };
12794
12795 arg2 = &temp2;
12796 arg3 = &temp3;
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 (arg1)->GetLogicalScale(arg2,arg3);
12802
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 Py_INCREF(Py_None); resultobj = Py_None;
12807 {
12808 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12809 resultobj = t_output_helper(resultobj,o);
12810 }
12811 {
12812 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12813 resultobj = t_output_helper(resultobj,o);
12814 }
12815 return resultobj;
12816 fail:
12817 return NULL;
12818 }
12819
12820
12821 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12822 PyObject *resultobj;
12823 wxDC *arg1 = (wxDC *) 0 ;
12824 double arg2 ;
12825 double arg3 ;
12826 PyObject * obj0 = 0 ;
12827 char *kwnames[] = {
12828 (char *) "self",(char *) "x",(char *) "y", NULL
12829 };
12830
12831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12833 {
12834 PyThreadState* __tstate = wxPyBeginAllowThreads();
12835 (arg1)->SetLogicalScale(arg2,arg3);
12836
12837 wxPyEndAllowThreads(__tstate);
12838 if (PyErr_Occurred()) SWIG_fail;
12839 }
12840 Py_INCREF(Py_None); resultobj = Py_None;
12841 return resultobj;
12842 fail:
12843 return NULL;
12844 }
12845
12846
12847 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12848 PyObject *resultobj;
12849 wxDC *arg1 = (wxDC *) 0 ;
12850 wxPoint result;
12851 PyObject * obj0 = 0 ;
12852 char *kwnames[] = {
12853 (char *) "self", NULL
12854 };
12855
12856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
12857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 result = ((wxDC const *)arg1)->GetLogicalOrigin();
12861
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 {
12866 wxPoint * resultptr;
12867 resultptr = new wxPoint((wxPoint &) result);
12868 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12869 }
12870 return resultobj;
12871 fail:
12872 return NULL;
12873 }
12874
12875
12876 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12877 PyObject *resultobj;
12878 wxDC *arg1 = (wxDC *) 0 ;
12879 int *arg2 = (int *) 0 ;
12880 int *arg3 = (int *) 0 ;
12881 int temp2 ;
12882 int temp3 ;
12883 PyObject * obj0 = 0 ;
12884 char *kwnames[] = {
12885 (char *) "self", NULL
12886 };
12887
12888 arg2 = &temp2;
12889 arg3 = &temp3;
12890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
12891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
12895
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 Py_INCREF(Py_None); resultobj = Py_None;
12900 {
12901 PyObject *o = PyInt_FromLong((long) (*arg2));
12902 resultobj = t_output_helper(resultobj,o);
12903 }
12904 {
12905 PyObject *o = PyInt_FromLong((long) (*arg3));
12906 resultobj = t_output_helper(resultobj,o);
12907 }
12908 return resultobj;
12909 fail:
12910 return NULL;
12911 }
12912
12913
12914 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj;
12916 wxDC *arg1 = (wxDC *) 0 ;
12917 int arg2 ;
12918 int arg3 ;
12919 PyObject * obj0 = 0 ;
12920 char *kwnames[] = {
12921 (char *) "self",(char *) "x",(char *) "y", NULL
12922 };
12923
12924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 (arg1)->SetLogicalOrigin(arg2,arg3);
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 Py_INCREF(Py_None); resultobj = Py_None;
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxDC *arg1 = (wxDC *) 0 ;
12943 wxPoint result;
12944 PyObject * obj0 = 0 ;
12945 char *kwnames[] = {
12946 (char *) "self", NULL
12947 };
12948
12949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
12950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = ((wxDC const *)arg1)->GetDeviceOrigin();
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 {
12959 wxPoint * resultptr;
12960 resultptr = new wxPoint((wxPoint &) result);
12961 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12962 }
12963 return resultobj;
12964 fail:
12965 return NULL;
12966 }
12967
12968
12969 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxDC *arg1 = (wxDC *) 0 ;
12972 int *arg2 = (int *) 0 ;
12973 int *arg3 = (int *) 0 ;
12974 int temp2 ;
12975 int temp3 ;
12976 PyObject * obj0 = 0 ;
12977 char *kwnames[] = {
12978 (char *) "self", NULL
12979 };
12980
12981 arg2 = &temp2;
12982 arg3 = &temp3;
12983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
12984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
12988
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 Py_INCREF(Py_None); resultobj = Py_None;
12993 {
12994 PyObject *o = PyInt_FromLong((long) (*arg2));
12995 resultobj = t_output_helper(resultobj,o);
12996 }
12997 {
12998 PyObject *o = PyInt_FromLong((long) (*arg3));
12999 resultobj = t_output_helper(resultobj,o);
13000 }
13001 return resultobj;
13002 fail:
13003 return NULL;
13004 }
13005
13006
13007 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13008 PyObject *resultobj;
13009 wxDC *arg1 = (wxDC *) 0 ;
13010 int arg2 ;
13011 int arg3 ;
13012 PyObject * obj0 = 0 ;
13013 char *kwnames[] = {
13014 (char *) "self",(char *) "x",(char *) "y", NULL
13015 };
13016
13017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
13018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13019 {
13020 PyThreadState* __tstate = wxPyBeginAllowThreads();
13021 (arg1)->SetDeviceOrigin(arg2,arg3);
13022
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 Py_INCREF(Py_None); resultobj = Py_None;
13027 return resultobj;
13028 fail:
13029 return NULL;
13030 }
13031
13032
13033 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj;
13035 wxDC *arg1 = (wxDC *) 0 ;
13036 bool arg2 ;
13037 bool arg3 ;
13038 PyObject * obj0 = 0 ;
13039 PyObject * obj1 = 0 ;
13040 PyObject * obj2 = 0 ;
13041 char *kwnames[] = {
13042 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13043 };
13044
13045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13047 arg2 = PyInt_AsLong(obj1) ? true : false;
13048 if (PyErr_Occurred()) SWIG_fail;
13049 arg3 = PyInt_AsLong(obj2) ? true : false;
13050 if (PyErr_Occurred()) SWIG_fail;
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 (arg1)->SetAxisOrientation(arg2,arg3);
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_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj;
13067 wxDC *arg1 = (wxDC *) 0 ;
13068 int result;
13069 PyObject * obj0 = 0 ;
13070 char *kwnames[] = {
13071 (char *) "self", NULL
13072 };
13073
13074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13076 {
13077 PyThreadState* __tstate = wxPyBeginAllowThreads();
13078 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13079
13080 wxPyEndAllowThreads(__tstate);
13081 if (PyErr_Occurred()) SWIG_fail;
13082 }
13083 resultobj = PyInt_FromLong((long)result);
13084 return resultobj;
13085 fail:
13086 return NULL;
13087 }
13088
13089
13090 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13091 PyObject *resultobj;
13092 wxDC *arg1 = (wxDC *) 0 ;
13093 int arg2 ;
13094 PyObject * obj0 = 0 ;
13095 char *kwnames[] = {
13096 (char *) "self",(char *) "function", NULL
13097 };
13098
13099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
13100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->SetLogicalFunction(arg2);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 Py_INCREF(Py_None); resultobj = Py_None;
13109 return resultobj;
13110 fail:
13111 return NULL;
13112 }
13113
13114
13115 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13116 PyObject *resultobj;
13117 wxDC *arg1 = (wxDC *) 0 ;
13118 bool arg2 ;
13119 PyObject * obj0 = 0 ;
13120 PyObject * obj1 = 0 ;
13121 char *kwnames[] = {
13122 (char *) "self",(char *) "opt", NULL
13123 };
13124
13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13127 arg2 = PyInt_AsLong(obj1) ? true : false;
13128 if (PyErr_Occurred()) SWIG_fail;
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 (arg1)->SetOptimization(arg2);
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 Py_INCREF(Py_None); resultobj = Py_None;
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj;
13145 wxDC *arg1 = (wxDC *) 0 ;
13146 bool result;
13147 PyObject * obj0 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",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 result = (bool)(arg1)->GetOptimization();
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = PyInt_FromLong((long)result);
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxDC *arg1 = (wxDC *) 0 ;
13171 int arg2 ;
13172 int arg3 ;
13173 PyObject * obj0 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self",(char *) "x",(char *) "y", NULL
13176 };
13177
13178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
13179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->CalcBoundingBox(arg2,arg3);
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 Py_INCREF(Py_None); resultobj = Py_None;
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxDC *arg1 = (wxDC *) 0 ;
13197 PyObject * obj0 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",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 (arg1)->ResetBoundingBox();
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 Py_INCREF(Py_None); resultobj = Py_None;
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 static PyObject *_wrap_DC_MinX(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_MinX",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)->MinX();
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_MaxX(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_MaxX",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)->MaxX();
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_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj;
13270 wxDC *arg1 = (wxDC *) 0 ;
13271 int result;
13272 PyObject * obj0 = 0 ;
13273 char *kwnames[] = {
13274 (char *) "self", NULL
13275 };
13276
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
13278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (int)((wxDC const *)arg1)->MinY();
13282
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 resultobj = PyInt_FromLong((long)result);
13287 return resultobj;
13288 fail:
13289 return NULL;
13290 }
13291
13292
13293 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
13294 PyObject *resultobj;
13295 wxDC *arg1 = (wxDC *) 0 ;
13296 int result;
13297 PyObject * obj0 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "self", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
13303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13304 {
13305 PyThreadState* __tstate = wxPyBeginAllowThreads();
13306 result = (int)((wxDC const *)arg1)->MaxY();
13307
13308 wxPyEndAllowThreads(__tstate);
13309 if (PyErr_Occurred()) SWIG_fail;
13310 }
13311 resultobj = PyInt_FromLong((long)result);
13312 return resultobj;
13313 fail:
13314 return NULL;
13315 }
13316
13317
13318 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13319 PyObject *resultobj;
13320 wxDC *arg1 = (wxDC *) 0 ;
13321 int *arg2 = (int *) 0 ;
13322 int *arg3 = (int *) 0 ;
13323 int *arg4 = (int *) 0 ;
13324 int *arg5 = (int *) 0 ;
13325 int temp2 ;
13326 int temp3 ;
13327 int temp4 ;
13328 int temp5 ;
13329 PyObject * obj0 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self", NULL
13332 };
13333
13334 arg2 = &temp2;
13335 arg3 = &temp3;
13336 arg4 = &temp4;
13337 arg5 = &temp5;
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 Py_INCREF(Py_None); resultobj = Py_None;
13348 {
13349 PyObject *o = PyInt_FromLong((long) (*arg2));
13350 resultobj = t_output_helper(resultobj,o);
13351 }
13352 {
13353 PyObject *o = PyInt_FromLong((long) (*arg3));
13354 resultobj = t_output_helper(resultobj,o);
13355 }
13356 {
13357 PyObject *o = PyInt_FromLong((long) (*arg4));
13358 resultobj = t_output_helper(resultobj,o);
13359 }
13360 {
13361 PyObject *o = PyInt_FromLong((long) (*arg5));
13362 resultobj = t_output_helper(resultobj,o);
13363 }
13364 return resultobj;
13365 fail:
13366 return NULL;
13367 }
13368
13369
13370 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
13371 PyObject *resultobj;
13372 wxDC *arg1 = (wxDC *) 0 ;
13373 PyObject *arg2 = (PyObject *) 0 ;
13374 PyObject *arg3 = (PyObject *) 0 ;
13375 PyObject *arg4 = (PyObject *) 0 ;
13376 PyObject *result;
13377 PyObject * obj0 = 0 ;
13378 PyObject * obj1 = 0 ;
13379 PyObject * obj2 = 0 ;
13380 PyObject * obj3 = 0 ;
13381 char *kwnames[] = {
13382 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13383 };
13384
13385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13387 arg2 = obj1;
13388 arg3 = obj2;
13389 arg4 = obj3;
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
13393
13394 wxPyEndAllowThreads(__tstate);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 resultobj = result;
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
13405 PyObject *resultobj;
13406 wxDC *arg1 = (wxDC *) 0 ;
13407 PyObject *arg2 = (PyObject *) 0 ;
13408 PyObject *arg3 = (PyObject *) 0 ;
13409 PyObject *arg4 = (PyObject *) 0 ;
13410 PyObject *result;
13411 PyObject * obj0 = 0 ;
13412 PyObject * obj1 = 0 ;
13413 PyObject * obj2 = 0 ;
13414 PyObject * obj3 = 0 ;
13415 char *kwnames[] = {
13416 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13417 };
13418
13419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13421 arg2 = obj1;
13422 arg3 = obj2;
13423 arg4 = obj3;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = result;
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj;
13440 wxDC *arg1 = (wxDC *) 0 ;
13441 PyObject *arg2 = (PyObject *) 0 ;
13442 PyObject *arg3 = (PyObject *) 0 ;
13443 PyObject *arg4 = (PyObject *) 0 ;
13444 PyObject *result;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 PyObject * obj2 = 0 ;
13448 PyObject * obj3 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13455 arg2 = obj1;
13456 arg3 = obj2;
13457 arg4 = obj3;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = result;
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxDC *arg1 = (wxDC *) 0 ;
13475 PyObject *arg2 = (PyObject *) 0 ;
13476 PyObject *arg3 = (PyObject *) 0 ;
13477 PyObject *arg4 = (PyObject *) 0 ;
13478 PyObject *result;
13479 PyObject * obj0 = 0 ;
13480 PyObject * obj1 = 0 ;
13481 PyObject * obj2 = 0 ;
13482 PyObject * obj3 = 0 ;
13483 char *kwnames[] = {
13484 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13485 };
13486
13487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13489 arg2 = obj1;
13490 arg3 = obj2;
13491 arg4 = obj3;
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 resultobj = result;
13500 return resultobj;
13501 fail:
13502 return NULL;
13503 }
13504
13505
13506 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
13507 PyObject *resultobj;
13508 wxDC *arg1 = (wxDC *) 0 ;
13509 PyObject *arg2 = (PyObject *) 0 ;
13510 PyObject *arg3 = (PyObject *) 0 ;
13511 PyObject *arg4 = (PyObject *) 0 ;
13512 PyObject *result;
13513 PyObject * obj0 = 0 ;
13514 PyObject * obj1 = 0 ;
13515 PyObject * obj2 = 0 ;
13516 PyObject * obj3 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
13519 };
13520
13521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13523 arg2 = obj1;
13524 arg3 = obj2;
13525 arg4 = obj3;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = result;
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj;
13542 wxDC *arg1 = (wxDC *) 0 ;
13543 PyObject *arg2 = (PyObject *) 0 ;
13544 PyObject *arg3 = (PyObject *) 0 ;
13545 PyObject *arg4 = (PyObject *) 0 ;
13546 PyObject *arg5 = (PyObject *) 0 ;
13547 PyObject *result;
13548 PyObject * obj0 = 0 ;
13549 PyObject * obj1 = 0 ;
13550 PyObject * obj2 = 0 ;
13551 PyObject * obj3 = 0 ;
13552 PyObject * obj4 = 0 ;
13553 char *kwnames[] = {
13554 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13555 };
13556
13557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13559 arg2 = obj1;
13560 arg3 = obj2;
13561 arg4 = obj3;
13562 arg5 = obj4;
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 resultobj = result;
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13578 PyObject *obj;
13579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13580 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13581 Py_INCREF(obj);
13582 return Py_BuildValue((char *)"");
13583 }
13584 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13585 PyObject *resultobj;
13586 wxMemoryDC *result;
13587 char *kwnames[] = {
13588 NULL
13589 };
13590
13591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13592 {
13593 PyThreadState* __tstate = wxPyBeginAllowThreads();
13594 result = (wxMemoryDC *)new wxMemoryDC();
13595
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13600 return resultobj;
13601 fail:
13602 return NULL;
13603 }
13604
13605
13606 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj;
13608 wxDC *arg1 = (wxDC *) 0 ;
13609 wxMemoryDC *result;
13610 PyObject * obj0 = 0 ;
13611 char *kwnames[] = {
13612 (char *) "oldDC", NULL
13613 };
13614
13615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
13616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13617 {
13618 PyThreadState* __tstate = wxPyBeginAllowThreads();
13619 result = (wxMemoryDC *)new wxMemoryDC(arg1);
13620
13621 wxPyEndAllowThreads(__tstate);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13625 return resultobj;
13626 fail:
13627 return NULL;
13628 }
13629
13630
13631 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj;
13633 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13634 wxBitmap *arg2 = 0 ;
13635 PyObject * obj0 = 0 ;
13636 PyObject * obj1 = 0 ;
13637 char *kwnames[] = {
13638 (char *) "self",(char *) "bitmap", NULL
13639 };
13640
13641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13643 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13644 if (arg2 == NULL) {
13645 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13646 }
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 (arg1)->SelectObject((wxBitmap const &)*arg2);
13650
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 Py_INCREF(Py_None); resultobj = Py_None;
13655 return resultobj;
13656 fail:
13657 return NULL;
13658 }
13659
13660
13661 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13662 PyObject *obj;
13663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13664 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13665 Py_INCREF(obj);
13666 return Py_BuildValue((char *)"");
13667 }
13668 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13669 PyObject *resultobj;
13670 wxDC *arg1 = (wxDC *) 0 ;
13671 wxBitmap *arg2 = 0 ;
13672 wxBufferedDC *result;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 char *kwnames[] = {
13676 (char *) "dc",(char *) "buffer", NULL
13677 };
13678
13679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13681 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13682 if (arg2 == NULL) {
13683 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13684 }
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj;
13701 wxDC *arg1 = (wxDC *) 0 ;
13702 wxSize *arg2 = 0 ;
13703 wxBufferedDC *result;
13704 wxSize temp2 ;
13705 PyObject * obj0 = 0 ;
13706 PyObject * obj1 = 0 ;
13707 char *kwnames[] = {
13708 (char *) "dc",(char *) "area", NULL
13709 };
13710
13711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13713 {
13714 arg2 = &temp2;
13715 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13716 }
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13720
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13725 return resultobj;
13726 fail:
13727 return NULL;
13728 }
13729
13730
13731 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj;
13733 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13734 PyObject * obj0 = 0 ;
13735 char *kwnames[] = {
13736 (char *) "self", NULL
13737 };
13738
13739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13741 {
13742 PyThreadState* __tstate = wxPyBeginAllowThreads();
13743 (arg1)->UnMask();
13744
13745 wxPyEndAllowThreads(__tstate);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
13748 Py_INCREF(Py_None); resultobj = Py_None;
13749 return resultobj;
13750 fail:
13751 return NULL;
13752 }
13753
13754
13755 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13756 PyObject *obj;
13757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13758 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13759 Py_INCREF(obj);
13760 return Py_BuildValue((char *)"");
13761 }
13762 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxWindow *arg1 = (wxWindow *) 0 ;
13765 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13766 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13767 wxBufferedPaintDC *result;
13768 PyObject * obj0 = 0 ;
13769 PyObject * obj1 = 0 ;
13770 char *kwnames[] = {
13771 (char *) "window",(char *) "buffer", NULL
13772 };
13773
13774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13776 if (obj1) {
13777 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13778 if (arg2 == NULL) {
13779 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13780 }
13781 }
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13797 PyObject *obj;
13798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13799 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13800 Py_INCREF(obj);
13801 return Py_BuildValue((char *)"");
13802 }
13803 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj;
13805 wxScreenDC *result;
13806 char *kwnames[] = {
13807 NULL
13808 };
13809
13810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 result = (wxScreenDC *)new wxScreenDC();
13814
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13819 return resultobj;
13820 fail:
13821 return NULL;
13822 }
13823
13824
13825 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13826 PyObject *resultobj;
13827 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13828 wxWindow *arg2 = (wxWindow *) 0 ;
13829 bool result;
13830 PyObject * obj0 = 0 ;
13831 PyObject * obj1 = 0 ;
13832 char *kwnames[] = {
13833 (char *) "self",(char *) "window", NULL
13834 };
13835
13836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13838 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13842
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = PyInt_FromLong((long)result);
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13854 PyObject *resultobj;
13855 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13856 wxRect *arg2 = (wxRect *) NULL ;
13857 bool result;
13858 PyObject * obj0 = 0 ;
13859 PyObject * obj1 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self",(char *) "rect", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13866 if (obj1) {
13867 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13868 }
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13872
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = PyInt_FromLong((long)result);
13877 return resultobj;
13878 fail:
13879 return NULL;
13880 }
13881
13882
13883 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj;
13885 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13886 bool result;
13887 PyObject * obj0 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 result = (bool)(arg1)->EndDrawingOnTop();
13897
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 resultobj = PyInt_FromLong((long)result);
13902 return resultobj;
13903 fail:
13904 return NULL;
13905 }
13906
13907
13908 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13909 PyObject *obj;
13910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13911 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13912 Py_INCREF(obj);
13913 return Py_BuildValue((char *)"");
13914 }
13915 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj;
13917 wxWindow *arg1 = (wxWindow *) 0 ;
13918 wxClientDC *result;
13919 PyObject * obj0 = 0 ;
13920 char *kwnames[] = {
13921 (char *) "win", NULL
13922 };
13923
13924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (wxClientDC *)new wxClientDC(arg1);
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13934 return resultobj;
13935 fail:
13936 return NULL;
13937 }
13938
13939
13940 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13941 PyObject *obj;
13942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13943 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13944 Py_INCREF(obj);
13945 return Py_BuildValue((char *)"");
13946 }
13947 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxWindow *arg1 = (wxWindow *) 0 ;
13950 wxPaintDC *result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "win", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (wxPaintDC *)new wxPaintDC(arg1);
13961
13962 wxPyEndAllowThreads(__tstate);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13966 return resultobj;
13967 fail:
13968 return NULL;
13969 }
13970
13971
13972 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13973 PyObject *obj;
13974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13975 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13976 Py_INCREF(obj);
13977 return Py_BuildValue((char *)"");
13978 }
13979 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13980 PyObject *resultobj;
13981 wxWindow *arg1 = (wxWindow *) 0 ;
13982 wxWindowDC *result;
13983 PyObject * obj0 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "win", NULL
13986 };
13987
13988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (wxWindowDC *)new wxWindowDC(arg1);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
14005 PyObject *obj;
14006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14007 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
14008 Py_INCREF(obj);
14009 return Py_BuildValue((char *)"");
14010 }
14011 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxDC *arg1 = 0 ;
14014 bool arg2 ;
14015 wxMirrorDC *result;
14016 PyObject * obj0 = 0 ;
14017 PyObject * obj1 = 0 ;
14018 char *kwnames[] = {
14019 (char *) "dc",(char *) "mirror", NULL
14020 };
14021
14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
14023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14024 if (arg1 == NULL) {
14025 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14026 }
14027 arg2 = PyInt_AsLong(obj1) ? true : false;
14028 if (PyErr_Occurred()) SWIG_fail;
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
14032
14033 wxPyEndAllowThreads(__tstate);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
14037 return resultobj;
14038 fail:
14039 return NULL;
14040 }
14041
14042
14043 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
14044 PyObject *obj;
14045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14046 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
14047 Py_INCREF(obj);
14048 return Py_BuildValue((char *)"");
14049 }
14050 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14051 PyObject *resultobj;
14052 wxPrintData *arg1 = 0 ;
14053 wxPostScriptDC *result;
14054 PyObject * obj0 = 0 ;
14055 char *kwnames[] = {
14056 (char *) "printData", NULL
14057 };
14058
14059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
14060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14061 if (arg1 == NULL) {
14062 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14063 }
14064 {
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
14067
14068 wxPyEndAllowThreads(__tstate);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 }
14071 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
14072 return resultobj;
14073 fail:
14074 return NULL;
14075 }
14076
14077
14078 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14079 PyObject *resultobj;
14080 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14081 wxPrintData *result;
14082 PyObject * obj0 = 0 ;
14083 char *kwnames[] = {
14084 (char *) "self", NULL
14085 };
14086
14087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
14088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 {
14092 wxPrintData &_result_ref = (arg1)->GetPrintData();
14093 result = (wxPrintData *) &_result_ref;
14094 }
14095
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj;
14108 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14109 wxPrintData *arg2 = 0 ;
14110 PyObject * obj0 = 0 ;
14111 PyObject * obj1 = 0 ;
14112 char *kwnames[] = {
14113 (char *) "self",(char *) "data", NULL
14114 };
14115
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14118 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14119 if (arg2 == NULL) {
14120 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14121 }
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 (arg1)->SetPrintData((wxPrintData const &)*arg2);
14125
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 Py_INCREF(Py_None); resultobj = Py_None;
14130 return resultobj;
14131 fail:
14132 return NULL;
14133 }
14134
14135
14136 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj;
14138 int arg1 ;
14139 char *kwnames[] = {
14140 (char *) "ppi", NULL
14141 };
14142
14143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 wxPostScriptDC::SetResolution(arg1);
14147
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 Py_INCREF(Py_None); resultobj = Py_None;
14152 return resultobj;
14153 fail:
14154 return NULL;
14155 }
14156
14157
14158 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj;
14160 int result;
14161 char *kwnames[] = {
14162 NULL
14163 };
14164
14165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = (int)wxPostScriptDC::GetResolution();
14169
14170 wxPyEndAllowThreads(__tstate);
14171 if (PyErr_Occurred()) SWIG_fail;
14172 }
14173 resultobj = PyInt_FromLong((long)result);
14174 return resultobj;
14175 fail:
14176 return NULL;
14177 }
14178
14179
14180 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
14181 PyObject *obj;
14182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14183 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
14184 Py_INCREF(obj);
14185 return Py_BuildValue((char *)"");
14186 }
14187 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 wxString const &arg1_defvalue = wxPyEmptyString ;
14190 wxString *arg1 = (wxString *) &arg1_defvalue ;
14191 wxMetaFile *result;
14192 bool temp1 = False ;
14193 PyObject * obj0 = 0 ;
14194 char *kwnames[] = {
14195 (char *) "filename", NULL
14196 };
14197
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
14199 if (obj0) {
14200 {
14201 arg1 = wxString_in_helper(obj0);
14202 if (arg1 == NULL) SWIG_fail;
14203 temp1 = True;
14204 }
14205 }
14206 {
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
14208 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
14209
14210 wxPyEndAllowThreads(__tstate);
14211 if (PyErr_Occurred()) SWIG_fail;
14212 }
14213 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
14214 {
14215 if (temp1)
14216 delete arg1;
14217 }
14218 return resultobj;
14219 fail:
14220 {
14221 if (temp1)
14222 delete arg1;
14223 }
14224 return NULL;
14225 }
14226
14227
14228 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
14229 PyObject *resultobj;
14230 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14231 PyObject * obj0 = 0 ;
14232 char *kwnames[] = {
14233 (char *) "self", NULL
14234 };
14235
14236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
14237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 delete arg1;
14241
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 Py_INCREF(Py_None); resultobj = Py_None;
14246 return resultobj;
14247 fail:
14248 return NULL;
14249 }
14250
14251
14252 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14253 PyObject *resultobj;
14254 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14255 bool result;
14256 PyObject * obj0 = 0 ;
14257 char *kwnames[] = {
14258 (char *) "self", NULL
14259 };
14260
14261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
14262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (bool)(arg1)->Ok();
14266
14267 wxPyEndAllowThreads(__tstate);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 resultobj = PyInt_FromLong((long)result);
14271 return resultobj;
14272 fail:
14273 return NULL;
14274 }
14275
14276
14277 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
14278 PyObject *resultobj;
14279 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14280 int arg2 = (int) 0 ;
14281 int arg3 = (int) 0 ;
14282 bool result;
14283 PyObject * obj0 = 0 ;
14284 char *kwnames[] = {
14285 (char *) "self",(char *) "width",(char *) "height", NULL
14286 };
14287
14288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail;
14289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)(arg1)->SetClipboard(arg2,arg3);
14293
14294 wxPyEndAllowThreads(__tstate);
14295 if (PyErr_Occurred()) SWIG_fail;
14296 }
14297 resultobj = PyInt_FromLong((long)result);
14298 return resultobj;
14299 fail:
14300 return NULL;
14301 }
14302
14303
14304 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj;
14306 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14307 wxSize result;
14308 PyObject * obj0 = 0 ;
14309 char *kwnames[] = {
14310 (char *) "self", NULL
14311 };
14312
14313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
14314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (arg1)->GetSize();
14318
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 {
14323 wxSize * resultptr;
14324 resultptr = new wxSize((wxSize &) result);
14325 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
14326 }
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14336 int result;
14337 PyObject * obj0 = 0 ;
14338 char *kwnames[] = {
14339 (char *) "self", NULL
14340 };
14341
14342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",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 result = (int)(arg1)->GetWidth();
14347
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 resultobj = PyInt_FromLong((long)result);
14352 return resultobj;
14353 fail:
14354 return NULL;
14355 }
14356
14357
14358 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
14359 PyObject *resultobj;
14360 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14361 int result;
14362 PyObject * obj0 = 0 ;
14363 char *kwnames[] = {
14364 (char *) "self", NULL
14365 };
14366
14367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
14368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = (int)(arg1)->GetHeight();
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = PyInt_FromLong((long)result);
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
14386 wxString *result;
14387 PyObject * obj0 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 {
14397 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
14398 result = (wxString *) &_result_ref;
14399 }
14400
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 {
14405 #if wxUSE_UNICODE
14406 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14407 #else
14408 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14409 #endif
14410 }
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
14418 PyObject *obj;
14419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14420 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
14421 Py_INCREF(obj);
14422 return Py_BuildValue((char *)"");
14423 }
14424 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj;
14426 wxString const &arg1_defvalue = wxPyEmptyString ;
14427 wxString *arg1 = (wxString *) &arg1_defvalue ;
14428 int arg2 = (int) 0 ;
14429 int arg3 = (int) 0 ;
14430 wxString const &arg4_defvalue = wxPyEmptyString ;
14431 wxString *arg4 = (wxString *) &arg4_defvalue ;
14432 wxMetaFileDC *result;
14433 bool temp1 = False ;
14434 bool temp4 = False ;
14435 PyObject * obj0 = 0 ;
14436 PyObject * obj3 = 0 ;
14437 char *kwnames[] = {
14438 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
14439 };
14440
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
14442 if (obj0) {
14443 {
14444 arg1 = wxString_in_helper(obj0);
14445 if (arg1 == NULL) SWIG_fail;
14446 temp1 = True;
14447 }
14448 }
14449 if (obj3) {
14450 {
14451 arg4 = wxString_in_helper(obj3);
14452 if (arg4 == NULL) SWIG_fail;
14453 temp4 = True;
14454 }
14455 }
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
14459
14460 wxPyEndAllowThreads(__tstate);
14461 if (PyErr_Occurred()) SWIG_fail;
14462 }
14463 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
14464 {
14465 if (temp1)
14466 delete arg1;
14467 }
14468 {
14469 if (temp4)
14470 delete arg4;
14471 }
14472 return resultobj;
14473 fail:
14474 {
14475 if (temp1)
14476 delete arg1;
14477 }
14478 {
14479 if (temp4)
14480 delete arg4;
14481 }
14482 return NULL;
14483 }
14484
14485
14486 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
14487 PyObject *resultobj;
14488 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
14489 wxMetaFile *result;
14490 PyObject * obj0 = 0 ;
14491 char *kwnames[] = {
14492 (char *) "self", NULL
14493 };
14494
14495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
14496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14497 {
14498 PyThreadState* __tstate = wxPyBeginAllowThreads();
14499 result = (wxMetaFile *)(arg1)->Close();
14500
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
14505 return resultobj;
14506 fail:
14507 return NULL;
14508 }
14509
14510
14511 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
14512 PyObject *obj;
14513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14514 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
14515 Py_INCREF(obj);
14516 return Py_BuildValue((char *)"");
14517 }
14518 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj;
14520 wxPrintData *arg1 = 0 ;
14521 wxPrinterDC *result;
14522 PyObject * obj0 = 0 ;
14523 char *kwnames[] = {
14524 (char *) "printData", NULL
14525 };
14526
14527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
14528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14529 if (arg1 == NULL) {
14530 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14531 }
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
14540 return resultobj;
14541 fail:
14542 return NULL;
14543 }
14544
14545
14546 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
14547 PyObject *obj;
14548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14549 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
14550 Py_INCREF(obj);
14551 return Py_BuildValue((char *)"");
14552 }
14553 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14554 PyObject *resultobj;
14555 int arg1 ;
14556 int arg2 ;
14557 int arg3 = (int) True ;
14558 int arg4 = (int) 1 ;
14559 wxImageList *result;
14560 char *kwnames[] = {
14561 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
14565 {
14566 PyThreadState* __tstate = wxPyBeginAllowThreads();
14567 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
14568
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 {
14573 resultobj = wxPyMake_wxObject(result);
14574 }
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxImageList *arg1 = (wxImageList *) 0 ;
14584 PyObject * obj0 = 0 ;
14585 char *kwnames[] = {
14586 (char *) "self", NULL
14587 };
14588
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
14590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 delete arg1;
14594
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 Py_INCREF(Py_None); resultobj = Py_None;
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxImageList *arg1 = (wxImageList *) 0 ;
14608 wxBitmap *arg2 = 0 ;
14609 wxBitmap const &arg3_defvalue = wxNullBitmap ;
14610 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
14611 int result;
14612 PyObject * obj0 = 0 ;
14613 PyObject * obj1 = 0 ;
14614 PyObject * obj2 = 0 ;
14615 char *kwnames[] = {
14616 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
14617 };
14618
14619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
14620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14621 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14622 if (arg2 == NULL) {
14623 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14624 }
14625 if (obj2) {
14626 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14627 if (arg3 == NULL) {
14628 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14629 }
14630 }
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = PyInt_FromLong((long)result);
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj;
14647 wxImageList *arg1 = (wxImageList *) 0 ;
14648 wxBitmap *arg2 = 0 ;
14649 wxColour *arg3 = 0 ;
14650 int result;
14651 wxColour temp3 ;
14652 PyObject * obj0 = 0 ;
14653 PyObject * obj1 = 0 ;
14654 PyObject * obj2 = 0 ;
14655 char *kwnames[] = {
14656 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
14657 };
14658
14659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
14660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14662 if (arg2 == NULL) {
14663 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14664 }
14665 {
14666 arg3 = &temp3;
14667 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14668 }
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
14672
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = PyInt_FromLong((long)result);
14677 return resultobj;
14678 fail:
14679 return NULL;
14680 }
14681
14682
14683 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14684 PyObject *resultobj;
14685 wxImageList *arg1 = (wxImageList *) 0 ;
14686 wxIcon *arg2 = 0 ;
14687 int result;
14688 PyObject * obj0 = 0 ;
14689 PyObject * obj1 = 0 ;
14690 char *kwnames[] = {
14691 (char *) "self",(char *) "icon", NULL
14692 };
14693
14694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
14695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14696 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14697 if (arg2 == NULL) {
14698 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14699 }
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = (int)(arg1)->Add((wxIcon const &)*arg2);
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = PyInt_FromLong((long)result);
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxImageList *arg1 = (wxImageList *) 0 ;
14717 int arg2 ;
14718 wxBitmap *arg3 = 0 ;
14719 wxBitmap const &arg4_defvalue = wxNullBitmap ;
14720 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
14721 bool result;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj2 = 0 ;
14724 PyObject * obj3 = 0 ;
14725 char *kwnames[] = {
14726 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
14727 };
14728
14729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
14730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14731 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14732 if (arg3 == NULL) {
14733 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14734 }
14735 if (obj3) {
14736 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14737 if (arg4 == NULL) {
14738 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14739 }
14740 }
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
14744
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 resultobj = PyInt_FromLong((long)result);
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxImageList *arg1 = (wxImageList *) 0 ;
14758 int arg2 ;
14759 wxDC *arg3 = 0 ;
14760 int arg4 ;
14761 int arg5 ;
14762 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
14763 bool arg7 = (bool) (bool)False ;
14764 bool result;
14765 PyObject * obj0 = 0 ;
14766 PyObject * obj2 = 0 ;
14767 PyObject * obj6 = 0 ;
14768 char *kwnames[] = {
14769 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
14770 };
14771
14772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
14773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14774 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14775 if (arg3 == NULL) {
14776 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14777 }
14778 if (obj6) {
14779 arg7 = PyInt_AsLong(obj6) ? true : false;
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14785
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 resultobj = PyInt_FromLong((long)result);
14790 return resultobj;
14791 fail:
14792 return NULL;
14793 }
14794
14795
14796 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14797 PyObject *resultobj;
14798 wxImageList *arg1 = (wxImageList *) 0 ;
14799 int result;
14800 PyObject * obj0 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "self", NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14807 {
14808 PyThreadState* __tstate = wxPyBeginAllowThreads();
14809 result = (int)(arg1)->GetImageCount();
14810
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 resultobj = PyInt_FromLong((long)result);
14815 return resultobj;
14816 fail:
14817 return NULL;
14818 }
14819
14820
14821 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14822 PyObject *resultobj;
14823 wxImageList *arg1 = (wxImageList *) 0 ;
14824 int arg2 ;
14825 bool result;
14826 PyObject * obj0 = 0 ;
14827 char *kwnames[] = {
14828 (char *) "self",(char *) "index", NULL
14829 };
14830
14831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 result = (bool)(arg1)->Remove(arg2);
14836
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = PyInt_FromLong((long)result);
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxImageList *arg1 = (wxImageList *) 0 ;
14850 bool result;
14851 PyObject * obj0 = 0 ;
14852 char *kwnames[] = {
14853 (char *) "self", NULL
14854 };
14855
14856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = (bool)(arg1)->RemoveAll();
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 resultobj = PyInt_FromLong((long)result);
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14873 PyObject *resultobj;
14874 wxImageList *arg1 = (wxImageList *) 0 ;
14875 int arg2 ;
14876 int *arg3 = 0 ;
14877 int *arg4 = 0 ;
14878 int temp3 ;
14879 int temp4 ;
14880 PyObject * obj0 = 0 ;
14881 char *kwnames[] = {
14882 (char *) "self",(char *) "index", NULL
14883 };
14884
14885 arg3 = &temp3;
14886 arg4 = &temp4;
14887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14889 {
14890 PyThreadState* __tstate = wxPyBeginAllowThreads();
14891 (arg1)->GetSize(arg2,*arg3,*arg4);
14892
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 Py_INCREF(Py_None); resultobj = Py_None;
14897 {
14898 PyObject *o = PyInt_FromLong((long) (*arg3));
14899 resultobj = t_output_helper(resultobj,o);
14900 }
14901 {
14902 PyObject *o = PyInt_FromLong((long) (*arg4));
14903 resultobj = t_output_helper(resultobj,o);
14904 }
14905 return resultobj;
14906 fail:
14907 return NULL;
14908 }
14909
14910
14911 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14912 PyObject *obj;
14913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14914 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14915 Py_INCREF(obj);
14916 return Py_BuildValue((char *)"");
14917 }
14918 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj;
14920 wxPenList *arg1 = (wxPenList *) 0 ;
14921 wxPen *arg2 = (wxPen *) 0 ;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 char *kwnames[] = {
14925 (char *) "self",(char *) "pen", NULL
14926 };
14927
14928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14930 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 (arg1)->AddPen(arg2);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 Py_INCREF(Py_None); resultobj = Py_None;
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxPenList *arg1 = (wxPenList *) 0 ;
14948 wxColour *arg2 = 0 ;
14949 int arg3 ;
14950 int arg4 ;
14951 wxPen *result;
14952 wxColour temp2 ;
14953 PyObject * obj0 = 0 ;
14954 PyObject * obj1 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14957 };
14958
14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14961 {
14962 arg2 = &temp2;
14963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14964 }
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14968
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14973 return resultobj;
14974 fail:
14975 return NULL;
14976 }
14977
14978
14979 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj;
14981 wxPenList *arg1 = (wxPenList *) 0 ;
14982 wxPen *arg2 = (wxPen *) 0 ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self",(char *) "pen", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14991 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 (arg1)->RemovePen(arg2);
14995
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 Py_INCREF(Py_None); resultobj = Py_None;
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15007 PyObject *resultobj;
15008 wxPenList *arg1 = (wxPenList *) 0 ;
15009 int result;
15010 PyObject * obj0 = 0 ;
15011 char *kwnames[] = {
15012 (char *) "self", NULL
15013 };
15014
15015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
15016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = (int)(arg1)->GetCount();
15020
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = PyInt_FromLong((long)result);
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
15032 PyObject *obj;
15033 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15034 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
15035 Py_INCREF(obj);
15036 return Py_BuildValue((char *)"");
15037 }
15038 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj;
15040 wxBrushList *arg1 = (wxBrushList *) 0 ;
15041 wxBrush *arg2 = (wxBrush *) 0 ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044 char *kwnames[] = {
15045 (char *) "self",(char *) "brush", NULL
15046 };
15047
15048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
15049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15050 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15051 {
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 (arg1)->AddBrush(arg2);
15054
15055 wxPyEndAllowThreads(__tstate);
15056 if (PyErr_Occurred()) SWIG_fail;
15057 }
15058 Py_INCREF(Py_None); resultobj = Py_None;
15059 return resultobj;
15060 fail:
15061 return NULL;
15062 }
15063
15064
15065 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj;
15067 wxBrushList *arg1 = (wxBrushList *) 0 ;
15068 wxColour *arg2 = 0 ;
15069 int arg3 ;
15070 wxBrush *result;
15071 wxColour temp2 ;
15072 PyObject * obj0 = 0 ;
15073 PyObject * obj1 = 0 ;
15074 char *kwnames[] = {
15075 (char *) "self",(char *) "colour",(char *) "style", NULL
15076 };
15077
15078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
15079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15080 {
15081 arg2 = &temp2;
15082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15083 }
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
15087
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
15092 return resultobj;
15093 fail:
15094 return NULL;
15095 }
15096
15097
15098 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj;
15100 wxBrushList *arg1 = (wxBrushList *) 0 ;
15101 wxBrush *arg2 = (wxBrush *) 0 ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char *kwnames[] = {
15105 (char *) "self",(char *) "brush", NULL
15106 };
15107
15108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15110 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 (arg1)->RemoveBrush(arg2);
15114
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 Py_INCREF(Py_None); resultobj = Py_None;
15119 return resultobj;
15120 fail:
15121 return NULL;
15122 }
15123
15124
15125 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15126 PyObject *resultobj;
15127 wxBrushList *arg1 = (wxBrushList *) 0 ;
15128 int result;
15129 PyObject * obj0 = 0 ;
15130 char *kwnames[] = {
15131 (char *) "self", NULL
15132 };
15133
15134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
15135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 result = (int)(arg1)->GetCount();
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 resultobj = PyInt_FromLong((long)result);
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
15151 PyObject *obj;
15152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15153 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
15154 Py_INCREF(obj);
15155 return Py_BuildValue((char *)"");
15156 }
15157 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj;
15159 wxColourDatabase *result;
15160 char *kwnames[] = {
15161 NULL
15162 };
15163
15164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
15165 {
15166 PyThreadState* __tstate = wxPyBeginAllowThreads();
15167 result = (wxColourDatabase *)new wxColourDatabase();
15168
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
15173 return resultobj;
15174 fail:
15175 return NULL;
15176 }
15177
15178
15179 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
15180 PyObject *resultobj;
15181 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15182 PyObject * obj0 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 delete arg1;
15192
15193 wxPyEndAllowThreads(__tstate);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 Py_INCREF(Py_None); resultobj = Py_None;
15197 return resultobj;
15198 fail:
15199 return NULL;
15200 }
15201
15202
15203 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
15204 PyObject *resultobj;
15205 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15206 wxString *arg2 = 0 ;
15207 wxColour result;
15208 bool temp2 = False ;
15209 PyObject * obj0 = 0 ;
15210 PyObject * obj1 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "self",(char *) "name", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
15216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15217 {
15218 arg2 = wxString_in_helper(obj1);
15219 if (arg2 == NULL) SWIG_fail;
15220 temp2 = True;
15221 }
15222 {
15223 PyThreadState* __tstate = wxPyBeginAllowThreads();
15224 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
15225
15226 wxPyEndAllowThreads(__tstate);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 {
15230 wxColour * resultptr;
15231 resultptr = new wxColour((wxColour &) result);
15232 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15233 }
15234 {
15235 if (temp2)
15236 delete arg2;
15237 }
15238 return resultobj;
15239 fail:
15240 {
15241 if (temp2)
15242 delete arg2;
15243 }
15244 return NULL;
15245 }
15246
15247
15248 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj;
15250 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15251 wxColour *arg2 = 0 ;
15252 wxString result;
15253 wxColour temp2 ;
15254 PyObject * obj0 = 0 ;
15255 PyObject * obj1 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "self",(char *) "colour", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15262 {
15263 arg2 = &temp2;
15264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15265 }
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 {
15274 #if wxUSE_UNICODE
15275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15276 #else
15277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15278 #endif
15279 }
15280 return resultobj;
15281 fail:
15282 return NULL;
15283 }
15284
15285
15286 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15287 PyObject *resultobj;
15288 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15289 wxString *arg2 = 0 ;
15290 wxColour *arg3 = 0 ;
15291 bool temp2 = False ;
15292 wxColour temp3 ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295 PyObject * obj2 = 0 ;
15296 char *kwnames[] = {
15297 (char *) "self",(char *) "name",(char *) "colour", NULL
15298 };
15299
15300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
15301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15302 {
15303 arg2 = wxString_in_helper(obj1);
15304 if (arg2 == NULL) SWIG_fail;
15305 temp2 = True;
15306 }
15307 {
15308 arg3 = &temp3;
15309 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15310 }
15311 {
15312 PyThreadState* __tstate = wxPyBeginAllowThreads();
15313 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
15314
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 Py_INCREF(Py_None); resultobj = Py_None;
15319 {
15320 if (temp2)
15321 delete arg2;
15322 }
15323 return resultobj;
15324 fail:
15325 {
15326 if (temp2)
15327 delete arg2;
15328 }
15329 return NULL;
15330 }
15331
15332
15333 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
15334 PyObject *resultobj;
15335 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
15336 wxString *arg2 = 0 ;
15337 int arg3 ;
15338 int arg4 ;
15339 int arg5 ;
15340 bool temp2 = False ;
15341 PyObject * obj0 = 0 ;
15342 PyObject * obj1 = 0 ;
15343 char *kwnames[] = {
15344 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
15345 };
15346
15347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
15348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15349 {
15350 arg2 = wxString_in_helper(obj1);
15351 if (arg2 == NULL) SWIG_fail;
15352 temp2 = True;
15353 }
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
15357
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 Py_INCREF(Py_None); resultobj = Py_None;
15362 {
15363 if (temp2)
15364 delete arg2;
15365 }
15366 return resultobj;
15367 fail:
15368 {
15369 if (temp2)
15370 delete arg2;
15371 }
15372 return NULL;
15373 }
15374
15375
15376 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
15377 PyObject *obj;
15378 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15379 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
15380 Py_INCREF(obj);
15381 return Py_BuildValue((char *)"");
15382 }
15383 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15384 PyObject *resultobj;
15385 wxFontList *arg1 = (wxFontList *) 0 ;
15386 wxFont *arg2 = (wxFont *) 0 ;
15387 PyObject * obj0 = 0 ;
15388 PyObject * obj1 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "self",(char *) "font", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15395 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 (arg1)->AddFont(arg2);
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 Py_INCREF(Py_None); resultobj = Py_None;
15404 return resultobj;
15405 fail:
15406 return NULL;
15407 }
15408
15409
15410 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxFontList *arg1 = (wxFontList *) 0 ;
15413 int arg2 ;
15414 int arg3 ;
15415 int arg4 ;
15416 int arg5 ;
15417 bool arg6 = (bool) False ;
15418 wxString const &arg7_defvalue = wxPyEmptyString ;
15419 wxString *arg7 = (wxString *) &arg7_defvalue ;
15420 int arg8 = (int) wxFONTENCODING_DEFAULT ;
15421 wxFont *result;
15422 bool temp7 = False ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj5 = 0 ;
15425 PyObject * obj6 = 0 ;
15426 char *kwnames[] = {
15427 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
15428 };
15429
15430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
15431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15432 if (obj5) {
15433 arg6 = PyInt_AsLong(obj5) ? true : false;
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 if (obj6) {
15437 {
15438 arg7 = wxString_in_helper(obj6);
15439 if (arg7 == NULL) SWIG_fail;
15440 temp7 = True;
15441 }
15442 }
15443 {
15444 PyThreadState* __tstate = wxPyBeginAllowThreads();
15445 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
15446
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
15450 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
15451 {
15452 if (temp7)
15453 delete arg7;
15454 }
15455 return resultobj;
15456 fail:
15457 {
15458 if (temp7)
15459 delete arg7;
15460 }
15461 return NULL;
15462 }
15463
15464
15465 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj;
15467 wxFontList *arg1 = (wxFontList *) 0 ;
15468 wxFont *arg2 = (wxFont *) 0 ;
15469 PyObject * obj0 = 0 ;
15470 PyObject * obj1 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self",(char *) "font", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
15476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15477 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 (arg1)->RemoveFont(arg2);
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 Py_INCREF(Py_None); resultobj = Py_None;
15486 return resultobj;
15487 fail:
15488 return NULL;
15489 }
15490
15491
15492 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj;
15494 wxFontList *arg1 = (wxFontList *) 0 ;
15495 int result;
15496 PyObject * obj0 = 0 ;
15497 char *kwnames[] = {
15498 (char *) "self", NULL
15499 };
15500
15501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
15502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15503 {
15504 PyThreadState* __tstate = wxPyBeginAllowThreads();
15505 result = (int)(arg1)->GetCount();
15506
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 resultobj = PyInt_FromLong((long)result);
15511 return resultobj;
15512 fail:
15513 return NULL;
15514 }
15515
15516
15517 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
15518 PyObject *obj;
15519 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15520 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
15521 Py_INCREF(obj);
15522 return Py_BuildValue((char *)"");
15523 }
15524 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15525 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15526 return 1;
15527 }
15528
15529
15530 static PyObject *_wrap_NORMAL_FONT_get() {
15531 PyObject *pyobj;
15532
15533 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15534 return pyobj;
15535 }
15536
15537
15538 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15539 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15540 return 1;
15541 }
15542
15543
15544 static PyObject *_wrap_SMALL_FONT_get() {
15545 PyObject *pyobj;
15546
15547 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15548 return pyobj;
15549 }
15550
15551
15552 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15553 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15554 return 1;
15555 }
15556
15557
15558 static PyObject *_wrap_ITALIC_FONT_get() {
15559 PyObject *pyobj;
15560
15561 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15562 return pyobj;
15563 }
15564
15565
15566 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15567 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15568 return 1;
15569 }
15570
15571
15572 static PyObject *_wrap_SWISS_FONT_get() {
15573 PyObject *pyobj;
15574
15575 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15576 return pyobj;
15577 }
15578
15579
15580 static int _wrap_RED_PEN_set(PyObject *_val) {
15581 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15582 return 1;
15583 }
15584
15585
15586 static PyObject *_wrap_RED_PEN_get() {
15587 PyObject *pyobj;
15588
15589 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15590 return pyobj;
15591 }
15592
15593
15594 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15595 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15596 return 1;
15597 }
15598
15599
15600 static PyObject *_wrap_CYAN_PEN_get() {
15601 PyObject *pyobj;
15602
15603 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15604 return pyobj;
15605 }
15606
15607
15608 static int _wrap_GREEN_PEN_set(PyObject *_val) {
15609 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15610 return 1;
15611 }
15612
15613
15614 static PyObject *_wrap_GREEN_PEN_get() {
15615 PyObject *pyobj;
15616
15617 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15618 return pyobj;
15619 }
15620
15621
15622 static int _wrap_BLACK_PEN_set(PyObject *_val) {
15623 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15624 return 1;
15625 }
15626
15627
15628 static PyObject *_wrap_BLACK_PEN_get() {
15629 PyObject *pyobj;
15630
15631 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15632 return pyobj;
15633 }
15634
15635
15636 static int _wrap_WHITE_PEN_set(PyObject *_val) {
15637 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15638 return 1;
15639 }
15640
15641
15642 static PyObject *_wrap_WHITE_PEN_get() {
15643 PyObject *pyobj;
15644
15645 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15646 return pyobj;
15647 }
15648
15649
15650 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
15651 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15652 return 1;
15653 }
15654
15655
15656 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15657 PyObject *pyobj;
15658
15659 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15660 return pyobj;
15661 }
15662
15663
15664 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
15665 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15666 return 1;
15667 }
15668
15669
15670 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15671 PyObject *pyobj;
15672
15673 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15674 return pyobj;
15675 }
15676
15677
15678 static int _wrap_GREY_PEN_set(PyObject *_val) {
15679 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15680 return 1;
15681 }
15682
15683
15684 static PyObject *_wrap_GREY_PEN_get() {
15685 PyObject *pyobj;
15686
15687 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15688 return pyobj;
15689 }
15690
15691
15692 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
15693 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15694 return 1;
15695 }
15696
15697
15698 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15699 PyObject *pyobj;
15700
15701 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15702 return pyobj;
15703 }
15704
15705
15706 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
15707 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15708 return 1;
15709 }
15710
15711
15712 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15713 PyObject *pyobj;
15714
15715 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15716 return pyobj;
15717 }
15718
15719
15720 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
15721 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15722 return 1;
15723 }
15724
15725
15726 static PyObject *_wrap_BLUE_BRUSH_get() {
15727 PyObject *pyobj;
15728
15729 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15730 return pyobj;
15731 }
15732
15733
15734 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
15735 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15736 return 1;
15737 }
15738
15739
15740 static PyObject *_wrap_GREEN_BRUSH_get() {
15741 PyObject *pyobj;
15742
15743 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15744 return pyobj;
15745 }
15746
15747
15748 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
15749 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15750 return 1;
15751 }
15752
15753
15754 static PyObject *_wrap_WHITE_BRUSH_get() {
15755 PyObject *pyobj;
15756
15757 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15758 return pyobj;
15759 }
15760
15761
15762 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
15763 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15764 return 1;
15765 }
15766
15767
15768 static PyObject *_wrap_BLACK_BRUSH_get() {
15769 PyObject *pyobj;
15770
15771 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15772 return pyobj;
15773 }
15774
15775
15776 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
15777 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15778 return 1;
15779 }
15780
15781
15782 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15783 PyObject *pyobj;
15784
15785 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15786 return pyobj;
15787 }
15788
15789
15790 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15791 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15792 return 1;
15793 }
15794
15795
15796 static PyObject *_wrap_CYAN_BRUSH_get() {
15797 PyObject *pyobj;
15798
15799 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15800 return pyobj;
15801 }
15802
15803
15804 static int _wrap_RED_BRUSH_set(PyObject *_val) {
15805 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15806 return 1;
15807 }
15808
15809
15810 static PyObject *_wrap_RED_BRUSH_get() {
15811 PyObject *pyobj;
15812
15813 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15814 return pyobj;
15815 }
15816
15817
15818 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15819 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15820 return 1;
15821 }
15822
15823
15824 static PyObject *_wrap_GREY_BRUSH_get() {
15825 PyObject *pyobj;
15826
15827 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15828 return pyobj;
15829 }
15830
15831
15832 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15833 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15834 return 1;
15835 }
15836
15837
15838 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15839 PyObject *pyobj;
15840
15841 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15842 return pyobj;
15843 }
15844
15845
15846 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15847 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15848 return 1;
15849 }
15850
15851
15852 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15853 PyObject *pyobj;
15854
15855 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15856 return pyobj;
15857 }
15858
15859
15860 static int _wrap_BLACK_set(PyObject *_val) {
15861 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15862 return 1;
15863 }
15864
15865
15866 static PyObject *_wrap_BLACK_get() {
15867 PyObject *pyobj;
15868
15869 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15870 return pyobj;
15871 }
15872
15873
15874 static int _wrap_WHITE_set(PyObject *_val) {
15875 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15876 return 1;
15877 }
15878
15879
15880 static PyObject *_wrap_WHITE_get() {
15881 PyObject *pyobj;
15882
15883 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15884 return pyobj;
15885 }
15886
15887
15888 static int _wrap_RED_set(PyObject *_val) {
15889 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15890 return 1;
15891 }
15892
15893
15894 static PyObject *_wrap_RED_get() {
15895 PyObject *pyobj;
15896
15897 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15898 return pyobj;
15899 }
15900
15901
15902 static int _wrap_BLUE_set(PyObject *_val) {
15903 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15904 return 1;
15905 }
15906
15907
15908 static PyObject *_wrap_BLUE_get() {
15909 PyObject *pyobj;
15910
15911 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15912 return pyobj;
15913 }
15914
15915
15916 static int _wrap_GREEN_set(PyObject *_val) {
15917 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15918 return 1;
15919 }
15920
15921
15922 static PyObject *_wrap_GREEN_get() {
15923 PyObject *pyobj;
15924
15925 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15926 return pyobj;
15927 }
15928
15929
15930 static int _wrap_CYAN_set(PyObject *_val) {
15931 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15932 return 1;
15933 }
15934
15935
15936 static PyObject *_wrap_CYAN_get() {
15937 PyObject *pyobj;
15938
15939 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15940 return pyobj;
15941 }
15942
15943
15944 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15945 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15946 return 1;
15947 }
15948
15949
15950 static PyObject *_wrap_LIGHT_GREY_get() {
15951 PyObject *pyobj;
15952
15953 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15954 return pyobj;
15955 }
15956
15957
15958 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15959 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15960 return 1;
15961 }
15962
15963
15964 static PyObject *_wrap_STANDARD_CURSOR_get() {
15965 PyObject *pyobj;
15966
15967 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15968 return pyobj;
15969 }
15970
15971
15972 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15973 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15974 return 1;
15975 }
15976
15977
15978 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15979 PyObject *pyobj;
15980
15981 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15982 return pyobj;
15983 }
15984
15985
15986 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15987 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15988 return 1;
15989 }
15990
15991
15992 static PyObject *_wrap_CROSS_CURSOR_get() {
15993 PyObject *pyobj;
15994
15995 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15996 return pyobj;
15997 }
15998
15999
16000 static int _wrap_NullBitmap_set(PyObject *_val) {
16001 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16002 return 1;
16003 }
16004
16005
16006 static PyObject *_wrap_NullBitmap_get() {
16007 PyObject *pyobj;
16008
16009 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16010 return pyobj;
16011 }
16012
16013
16014 static int _wrap_NullIcon_set(PyObject *_val) {
16015 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16016 return 1;
16017 }
16018
16019
16020 static PyObject *_wrap_NullIcon_get() {
16021 PyObject *pyobj;
16022
16023 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16024 return pyobj;
16025 }
16026
16027
16028 static int _wrap_NullCursor_set(PyObject *_val) {
16029 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16030 return 1;
16031 }
16032
16033
16034 static PyObject *_wrap_NullCursor_get() {
16035 PyObject *pyobj;
16036
16037 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16038 return pyobj;
16039 }
16040
16041
16042 static int _wrap_NullPen_set(PyObject *_val) {
16043 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16044 return 1;
16045 }
16046
16047
16048 static PyObject *_wrap_NullPen_get() {
16049 PyObject *pyobj;
16050
16051 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16052 return pyobj;
16053 }
16054
16055
16056 static int _wrap_NullBrush_set(PyObject *_val) {
16057 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16058 return 1;
16059 }
16060
16061
16062 static PyObject *_wrap_NullBrush_get() {
16063 PyObject *pyobj;
16064
16065 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16066 return pyobj;
16067 }
16068
16069
16070 static int _wrap_NullPalette_set(PyObject *_val) {
16071 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16072 return 1;
16073 }
16074
16075
16076 static PyObject *_wrap_NullPalette_get() {
16077 PyObject *pyobj;
16078
16079 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16080 return pyobj;
16081 }
16082
16083
16084 static int _wrap_NullFont_set(PyObject *_val) {
16085 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16086 return 1;
16087 }
16088
16089
16090 static PyObject *_wrap_NullFont_get() {
16091 PyObject *pyobj;
16092
16093 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16094 return pyobj;
16095 }
16096
16097
16098 static int _wrap_NullColour_set(PyObject *_val) {
16099 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16100 return 1;
16101 }
16102
16103
16104 static PyObject *_wrap_NullColour_get() {
16105 PyObject *pyobj;
16106
16107 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16108 return pyobj;
16109 }
16110
16111
16112 static int _wrap_TheFontList_set(PyObject *_val) {
16113 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
16114 return 1;
16115 }
16116
16117
16118 static PyObject *_wrap_TheFontList_get() {
16119 PyObject *pyobj;
16120
16121 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
16122 return pyobj;
16123 }
16124
16125
16126 static int _wrap_ThePenList_set(PyObject *_val) {
16127 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
16128 return 1;
16129 }
16130
16131
16132 static PyObject *_wrap_ThePenList_get() {
16133 PyObject *pyobj;
16134
16135 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
16136 return pyobj;
16137 }
16138
16139
16140 static int _wrap_TheBrushList_set(PyObject *_val) {
16141 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
16142 return 1;
16143 }
16144
16145
16146 static PyObject *_wrap_TheBrushList_get() {
16147 PyObject *pyobj;
16148
16149 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
16150 return pyobj;
16151 }
16152
16153
16154 static int _wrap_TheColourDatabase_set(PyObject *_val) {
16155 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
16156 return 1;
16157 }
16158
16159
16160 static PyObject *_wrap_TheColourDatabase_get() {
16161 PyObject *pyobj;
16162
16163 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
16164 return pyobj;
16165 }
16166
16167
16168 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj;
16170 wxEffects *result;
16171 char *kwnames[] = {
16172 NULL
16173 };
16174
16175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
16176 {
16177 PyThreadState* __tstate = wxPyBeginAllowThreads();
16178 result = (wxEffects *)new wxEffects();
16179
16180 wxPyEndAllowThreads(__tstate);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
16184 return resultobj;
16185 fail:
16186 return NULL;
16187 }
16188
16189
16190 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj;
16192 wxEffects *arg1 = (wxEffects *) 0 ;
16193 wxColour result;
16194 PyObject * obj0 = 0 ;
16195 char *kwnames[] = {
16196 (char *) "self", NULL
16197 };
16198
16199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
16200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16201 {
16202 PyThreadState* __tstate = wxPyBeginAllowThreads();
16203 result = ((wxEffects const *)arg1)->GetHighlightColour();
16204
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 {
16209 wxColour * resultptr;
16210 resultptr = new wxColour((wxColour &) result);
16211 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16212 }
16213 return resultobj;
16214 fail:
16215 return NULL;
16216 }
16217
16218
16219 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj;
16221 wxEffects *arg1 = (wxEffects *) 0 ;
16222 wxColour result;
16223 PyObject * obj0 = 0 ;
16224 char *kwnames[] = {
16225 (char *) "self", NULL
16226 };
16227
16228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
16229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = ((wxEffects const *)arg1)->GetLightShadow();
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 {
16238 wxColour * resultptr;
16239 resultptr = new wxColour((wxColour &) result);
16240 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16241 }
16242 return resultobj;
16243 fail:
16244 return NULL;
16245 }
16246
16247
16248 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16249 PyObject *resultobj;
16250 wxEffects *arg1 = (wxEffects *) 0 ;
16251 wxColour result;
16252 PyObject * obj0 = 0 ;
16253 char *kwnames[] = {
16254 (char *) "self", NULL
16255 };
16256
16257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
16258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 result = ((wxEffects const *)arg1)->GetFaceColour();
16262
16263 wxPyEndAllowThreads(__tstate);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 {
16267 wxColour * resultptr;
16268 resultptr = new wxColour((wxColour &) result);
16269 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16270 }
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj;
16279 wxEffects *arg1 = (wxEffects *) 0 ;
16280 wxColour result;
16281 PyObject * obj0 = 0 ;
16282 char *kwnames[] = {
16283 (char *) "self", NULL
16284 };
16285
16286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
16287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16288 {
16289 PyThreadState* __tstate = wxPyBeginAllowThreads();
16290 result = ((wxEffects const *)arg1)->GetMediumShadow();
16291
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 {
16296 wxColour * resultptr;
16297 resultptr = new wxColour((wxColour &) result);
16298 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16299 }
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16307 PyObject *resultobj;
16308 wxEffects *arg1 = (wxEffects *) 0 ;
16309 wxColour result;
16310 PyObject * obj0 = 0 ;
16311 char *kwnames[] = {
16312 (char *) "self", NULL
16313 };
16314
16315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
16316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16317 {
16318 PyThreadState* __tstate = wxPyBeginAllowThreads();
16319 result = ((wxEffects const *)arg1)->GetDarkShadow();
16320
16321 wxPyEndAllowThreads(__tstate);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 {
16325 wxColour * resultptr;
16326 resultptr = new wxColour((wxColour &) result);
16327 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16328 }
16329 return resultobj;
16330 fail:
16331 return NULL;
16332 }
16333
16334
16335 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj;
16337 wxEffects *arg1 = (wxEffects *) 0 ;
16338 wxColour *arg2 = 0 ;
16339 wxColour temp2 ;
16340 PyObject * obj0 = 0 ;
16341 PyObject * obj1 = 0 ;
16342 char *kwnames[] = {
16343 (char *) "self",(char *) "c", NULL
16344 };
16345
16346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
16347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16348 {
16349 arg2 = &temp2;
16350 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16351 }
16352 {
16353 PyThreadState* __tstate = wxPyBeginAllowThreads();
16354 (arg1)->SetHighlightColour((wxColour const &)*arg2);
16355
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 Py_INCREF(Py_None); resultobj = Py_None;
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj;
16368 wxEffects *arg1 = (wxEffects *) 0 ;
16369 wxColour *arg2 = 0 ;
16370 wxColour temp2 ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self",(char *) "c", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16379 {
16380 arg2 = &temp2;
16381 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16382 }
16383 {
16384 PyThreadState* __tstate = wxPyBeginAllowThreads();
16385 (arg1)->SetLightShadow((wxColour const &)*arg2);
16386
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 Py_INCREF(Py_None); resultobj = Py_None;
16391 return resultobj;
16392 fail:
16393 return NULL;
16394 }
16395
16396
16397 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj;
16399 wxEffects *arg1 = (wxEffects *) 0 ;
16400 wxColour *arg2 = 0 ;
16401 wxColour temp2 ;
16402 PyObject * obj0 = 0 ;
16403 PyObject * obj1 = 0 ;
16404 char *kwnames[] = {
16405 (char *) "self",(char *) "c", NULL
16406 };
16407
16408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
16409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16410 {
16411 arg2 = &temp2;
16412 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16413 }
16414 {
16415 PyThreadState* __tstate = wxPyBeginAllowThreads();
16416 (arg1)->SetFaceColour((wxColour const &)*arg2);
16417
16418 wxPyEndAllowThreads(__tstate);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 }
16421 Py_INCREF(Py_None); resultobj = Py_None;
16422 return resultobj;
16423 fail:
16424 return NULL;
16425 }
16426
16427
16428 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16429 PyObject *resultobj;
16430 wxEffects *arg1 = (wxEffects *) 0 ;
16431 wxColour *arg2 = 0 ;
16432 wxColour temp2 ;
16433 PyObject * obj0 = 0 ;
16434 PyObject * obj1 = 0 ;
16435 char *kwnames[] = {
16436 (char *) "self",(char *) "c", NULL
16437 };
16438
16439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
16440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16441 {
16442 arg2 = &temp2;
16443 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16444 }
16445 {
16446 PyThreadState* __tstate = wxPyBeginAllowThreads();
16447 (arg1)->SetMediumShadow((wxColour const &)*arg2);
16448
16449 wxPyEndAllowThreads(__tstate);
16450 if (PyErr_Occurred()) SWIG_fail;
16451 }
16452 Py_INCREF(Py_None); resultobj = Py_None;
16453 return resultobj;
16454 fail:
16455 return NULL;
16456 }
16457
16458
16459 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16460 PyObject *resultobj;
16461 wxEffects *arg1 = (wxEffects *) 0 ;
16462 wxColour *arg2 = 0 ;
16463 wxColour temp2 ;
16464 PyObject * obj0 = 0 ;
16465 PyObject * obj1 = 0 ;
16466 char *kwnames[] = {
16467 (char *) "self",(char *) "c", NULL
16468 };
16469
16470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
16471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16472 {
16473 arg2 = &temp2;
16474 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16475 }
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 (arg1)->SetDarkShadow((wxColour const &)*arg2);
16479
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 Py_INCREF(Py_None); resultobj = Py_None;
16484 return resultobj;
16485 fail:
16486 return NULL;
16487 }
16488
16489
16490 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj;
16492 wxEffects *arg1 = (wxEffects *) 0 ;
16493 wxColour *arg2 = 0 ;
16494 wxColour *arg3 = 0 ;
16495 wxColour *arg4 = 0 ;
16496 wxColour *arg5 = 0 ;
16497 wxColour *arg6 = 0 ;
16498 wxColour temp2 ;
16499 wxColour temp3 ;
16500 wxColour temp4 ;
16501 wxColour temp5 ;
16502 wxColour temp6 ;
16503 PyObject * obj0 = 0 ;
16504 PyObject * obj1 = 0 ;
16505 PyObject * obj2 = 0 ;
16506 PyObject * obj3 = 0 ;
16507 PyObject * obj4 = 0 ;
16508 PyObject * obj5 = 0 ;
16509 char *kwnames[] = {
16510 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
16511 };
16512
16513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16515 {
16516 arg2 = &temp2;
16517 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16518 }
16519 {
16520 arg3 = &temp3;
16521 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16522 }
16523 {
16524 arg4 = &temp4;
16525 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
16526 }
16527 {
16528 arg5 = &temp5;
16529 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
16530 }
16531 {
16532 arg6 = &temp6;
16533 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
16534 }
16535 {
16536 PyThreadState* __tstate = wxPyBeginAllowThreads();
16537 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
16538
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 Py_INCREF(Py_None); resultobj = Py_None;
16543 return resultobj;
16544 fail:
16545 return NULL;
16546 }
16547
16548
16549 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj;
16551 wxEffects *arg1 = (wxEffects *) 0 ;
16552 wxDC *arg2 = 0 ;
16553 wxRect *arg3 = 0 ;
16554 int arg4 = (int) 1 ;
16555 wxRect temp3 ;
16556 PyObject * obj0 = 0 ;
16557 PyObject * obj1 = 0 ;
16558 PyObject * obj2 = 0 ;
16559 char *kwnames[] = {
16560 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
16561 };
16562
16563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
16564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16565 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16566 if (arg2 == NULL) {
16567 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16568 }
16569 {
16570 arg3 = &temp3;
16571 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
16572 }
16573 {
16574 PyThreadState* __tstate = wxPyBeginAllowThreads();
16575 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
16576
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 Py_INCREF(Py_None); resultobj = Py_None;
16581 return resultobj;
16582 fail:
16583 return NULL;
16584 }
16585
16586
16587 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj;
16589 wxEffects *arg1 = (wxEffects *) 0 ;
16590 wxRect *arg2 = 0 ;
16591 wxDC *arg3 = 0 ;
16592 wxBitmap *arg4 = 0 ;
16593 bool result;
16594 wxRect temp2 ;
16595 PyObject * obj0 = 0 ;
16596 PyObject * obj1 = 0 ;
16597 PyObject * obj2 = 0 ;
16598 PyObject * obj3 = 0 ;
16599 char *kwnames[] = {
16600 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
16601 };
16602
16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16605 {
16606 arg2 = &temp2;
16607 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16608 }
16609 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16610 if (arg3 == NULL) {
16611 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16612 }
16613 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16614 if (arg4 == NULL) {
16615 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16616 }
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 resultobj = PyInt_FromLong((long)result);
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
16632 PyObject *obj;
16633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16634 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
16635 Py_INCREF(obj);
16636 return Py_BuildValue((char *)"");
16637 }
16638 static PyMethodDef SwigMethods[] = {
16639 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
16640 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
16641 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
16642 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
16643 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
16644 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
16645 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
16646 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
16647 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
16648 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
16649 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
16650 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
16651 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
16652 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
16653 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
16654 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
16655 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
16656 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
16657 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
16658 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
16659 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
16660 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
16661 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
16662 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
16663 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
16664 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
16665 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
16666 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
16667 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
16668 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
16669 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
16670 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
16671 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
16672 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
16673 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
16674 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
16675 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
16676 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
16677 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
16678 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
16679 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16680 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
16681 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
16682 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
16683 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
16684 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
16685 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
16686 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
16687 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
16688 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
16689 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
16690 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
16691 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
16692 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
16693 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
16694 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
16695 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
16696 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
16697 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
16698 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
16699 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
16700 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
16701 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
16702 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
16703 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
16704 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
16705 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
16706 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
16707 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
16708 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
16709 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
16710 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
16711 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
16712 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
16713 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
16714 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
16715 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
16716 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
16717 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
16718 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
16719 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
16720 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
16721 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
16722 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
16723 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
16724 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
16725 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
16726 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
16727 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
16728 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
16729 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
16730 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
16731 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
16732 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
16733 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
16734 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
16735 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
16736 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
16737 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
16738 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
16739 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
16740 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
16741 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
16742 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
16743 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
16744 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
16745 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
16746 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
16747 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
16748 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
16749 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
16750 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
16751 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
16752 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
16753 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
16754 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
16755 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
16756 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
16757 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
16758 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
16759 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
16760 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
16761 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
16762 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
16763 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
16764 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
16765 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
16766 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
16767 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
16768 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
16769 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
16770 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
16771 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
16772 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
16773 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
16774 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
16775 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
16776 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
16777 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
16778 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
16779 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
16780 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
16781 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
16782 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
16783 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
16784 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
16785 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
16786 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
16787 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
16788 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
16789 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
16790 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
16791 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
16792 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
16793 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
16794 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
16795 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
16796 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
16797 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
16798 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16799 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16800 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16801 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16802 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16803 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16804 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16805 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16806 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16807 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16808 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16809 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16810 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16811 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16812 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16813 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16814 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16815 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16816 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16817 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16818 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16819 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16820 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16821 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16822 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16823 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16824 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16825 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16826 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16827 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16828 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16829 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16830 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16831 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16832 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16833 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16834 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16835 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16836 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16837 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16838 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16839 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16840 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16841 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16842 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16843 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16844 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16845 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16846 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16847 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16848 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16849 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16850 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16851 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16852 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16853 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16854 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16855 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16856 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16857 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16858 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16859 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16860 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16861 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16862 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16863 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16864 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16865 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16866 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16867 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16868 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16869 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16870 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16871 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16872 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16873 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16874 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16875 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16876 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16877 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16878 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16879 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16880 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16881 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16882 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16883 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16884 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16885 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16886 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16887 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16888 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16889 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16890 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16891 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16892 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16893 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16894 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16895 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16896 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16897 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16898 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16899 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16900 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16901 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16902 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16903 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16904 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16905 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16906 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16907 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16908 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16909 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16910 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16911 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16912 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16913 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16914 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16915 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16916 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16917 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16918 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16919 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16920 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16921 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16922 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16923 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16924 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16925 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16926 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16927 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16928 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16929 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16930 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16931 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16932 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16933 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16934 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16935 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16936 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16937 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16938 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16939 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16940 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16941 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16942 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16943 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16944 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16945 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16946 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16947 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16948 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16949 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16950 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16951 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16952 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16953 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16954 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16955 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16956 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16957 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16958 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16959 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16960 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16961 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16962 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16963 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16964 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16965 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16966 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16967 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16968 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16969 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16970 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16971 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16972 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16973 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16974 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16975 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16976 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16977 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16978 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16979 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16980 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16981 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16982 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16983 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16984 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16985 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16986 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16987 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16988 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16989 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16990 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16991 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16992 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16993 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16994 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16995 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16996 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16997 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16998 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16999 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
17000 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
17001 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
17002 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
17003 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
17004 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
17005 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
17006 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
17007 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
17008 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
17009 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
17010 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
17011 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
17012 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
17013 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17014 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
17015 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
17016 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
17017 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
17018 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
17019 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
17020 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
17021 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
17022 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
17023 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
17024 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
17025 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
17026 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
17027 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
17028 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
17029 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
17030 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
17031 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
17032 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
17033 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
17034 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
17035 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
17036 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
17037 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
17038 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
17039 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
17040 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
17041 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
17042 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
17043 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
17044 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17045 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
17046 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
17047 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
17048 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
17049 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
17050 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
17051 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
17052 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
17053 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
17054 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
17055 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
17056 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
17057 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17058 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17059 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17060 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
17061 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17062 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17063 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
17064 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17065 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
17066 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17067 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17068 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
17069 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
17070 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
17071 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17072 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
17073 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
17074 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
17075 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
17076 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17077 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
17078 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
17079 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
17080 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
17081 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
17082 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
17083 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
17084 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
17085 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
17086 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
17087 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
17088 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
17089 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
17090 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
17091 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
17092 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
17093 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
17094 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
17095 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
17096 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17097 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17098 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
17099 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
17100 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
17101 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
17102 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
17103 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
17104 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
17105 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
17106 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
17107 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
17108 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
17109 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
17110 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
17111 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
17112 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
17113 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
17114 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
17115 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
17116 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
17117 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
17118 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
17119 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
17120 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
17121 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
17122 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
17123 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
17124 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
17125 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
17126 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
17127 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
17128 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
17129 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
17130 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
17131 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
17132 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
17133 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
17134 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
17135 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
17136 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
17137 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
17138 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
17139 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
17140 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
17141 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
17142 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
17143 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
17144 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
17145 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
17146 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
17147 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
17148 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
17149 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17150 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17151 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
17152 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
17153 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
17154 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
17155 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
17156 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
17157 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
17158 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
17159 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
17160 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
17161 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
17162 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17163 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
17164 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
17165 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17166 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17167 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17168 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
17169 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
17170 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17171 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17172 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
17173 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
17174 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
17175 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
17176 { NULL, NULL }
17177 };
17178
17179
17180 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17181
17182 static void *_p_wxControlTo_p_wxWindow(void *x) {
17183 return (void *)((wxWindow *) ((wxControl *) x));
17184 }
17185 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17186 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17187 }
17188 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17189 return (void *)((wxWindow *) ((wxMenuBar *) x));
17190 }
17191 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
17192 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
17193 }
17194 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
17195 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
17196 }
17197 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
17198 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
17199 }
17200 static void *_p_wxPenTo_p_wxObject(void *x) {
17201 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
17202 }
17203 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
17204 return (void *)((wxObject *) ((wxRegionIterator *) x));
17205 }
17206 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
17207 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
17208 }
17209 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
17210 return (void *)((wxObject *) ((wxSizerItem *) x));
17211 }
17212 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
17213 return (void *)((wxObject *) ((wxColourDatabase *) x));
17214 }
17215 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
17216 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
17217 }
17218 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
17219 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
17220 }
17221 static void *_p_wxIconTo_p_wxObject(void *x) {
17222 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
17223 }
17224 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
17225 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
17226 }
17227 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
17228 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
17229 }
17230 static void *_p_wxSizerTo_p_wxObject(void *x) {
17231 return (void *)((wxObject *) ((wxSizer *) x));
17232 }
17233 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
17234 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
17235 }
17236 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
17237 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
17238 }
17239 static void *_p_wxPenListTo_p_wxObject(void *x) {
17240 return (void *)((wxObject *) ((wxPenList *) x));
17241 }
17242 static void *_p_wxEventTo_p_wxObject(void *x) {
17243 return (void *)((wxObject *) ((wxEvent *) x));
17244 }
17245 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
17246 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
17247 }
17248 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
17249 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
17250 }
17251 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
17252 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
17253 }
17254 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
17255 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
17256 }
17257 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
17258 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
17259 }
17260 static void *_p_wxDCTo_p_wxObject(void *x) {
17261 return (void *)((wxObject *) ((wxDC *) x));
17262 }
17263 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
17264 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
17265 }
17266 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
17267 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
17268 }
17269 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
17270 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
17271 }
17272 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
17273 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
17274 }
17275 static void *_p_wxControlTo_p_wxObject(void *x) {
17276 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
17277 }
17278 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
17279 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
17280 }
17281 static void *_p_wxClientDCTo_p_wxObject(void *x) {
17282 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
17283 }
17284 static void *_p_wxFSFileTo_p_wxObject(void *x) {
17285 return (void *)((wxObject *) ((wxFSFile *) x));
17286 }
17287 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
17288 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
17289 }
17290 static void *_p_wxRegionTo_p_wxObject(void *x) {
17291 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
17292 }
17293 static void *_p_wxPySizerTo_p_wxObject(void *x) {
17294 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
17295 }
17296 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
17297 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
17298 }
17299 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
17300 return (void *)((wxObject *) ((wxGDIObject *) x));
17301 }
17302 static void *_p_wxEffectsTo_p_wxObject(void *x) {
17303 return (void *)((wxObject *) ((wxEffects *) x));
17304 }
17305 static void *_p_wxPyEventTo_p_wxObject(void *x) {
17306 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
17307 }
17308 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
17309 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
17310 }
17311 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
17312 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
17313 }
17314 static void *_p_wxShowEventTo_p_wxObject(void *x) {
17315 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
17316 }
17317 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
17318 return (void *)((wxObject *) ((wxMenuItem *) x));
17319 }
17320 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
17321 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
17322 }
17323 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
17324 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
17325 }
17326 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
17327 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
17328 }
17329 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
17330 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
17331 }
17332 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
17333 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
17334 }
17335 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
17336 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
17337 }
17338 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
17339 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
17340 }
17341 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
17342 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
17343 }
17344 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
17345 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
17346 }
17347 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
17348 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
17349 }
17350 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
17351 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
17352 }
17353 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
17354 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
17355 }
17356 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
17357 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
17358 }
17359 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
17360 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
17361 }
17362 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
17363 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
17364 }
17365 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
17366 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
17367 }
17368 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
17369 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
17370 }
17371 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
17372 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
17373 }
17374 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
17375 return (void *)((wxObject *) ((wxImageHandler *) x));
17376 }
17377 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
17378 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
17379 }
17380 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
17381 return (void *)((wxObject *) ((wxEvtHandler *) x));
17382 }
17383 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
17384 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17385 }
17386 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
17387 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
17388 }
17389 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
17390 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
17391 }
17392 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
17393 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
17394 }
17395 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
17396 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
17397 }
17398 static void *_p_wxImageTo_p_wxObject(void *x) {
17399 return (void *)((wxObject *) ((wxImage *) x));
17400 }
17401 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
17402 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
17403 }
17404 static void *_p_wxPaletteTo_p_wxObject(void *x) {
17405 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
17406 }
17407 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
17408 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
17409 }
17410 static void *_p_wxImageListTo_p_wxObject(void *x) {
17411 return (void *)((wxObject *) ((wxImageList *) x));
17412 }
17413 static void *_p_wxCursorTo_p_wxObject(void *x) {
17414 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
17415 }
17416 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
17417 return (void *)((wxObject *) ((wxEncodingConverter *) x));
17418 }
17419 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
17420 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
17421 }
17422 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
17423 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
17424 }
17425 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
17426 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
17427 }
17428 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
17429 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
17430 }
17431 static void *_p_wxWindowTo_p_wxObject(void *x) {
17432 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
17433 }
17434 static void *_p_wxMenuTo_p_wxObject(void *x) {
17435 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
17436 }
17437 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
17438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
17439 }
17440 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
17441 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
17442 }
17443 static void *_p_wxBrushListTo_p_wxObject(void *x) {
17444 return (void *)((wxObject *) ((wxBrushList *) x));
17445 }
17446 static void *_p_wxPyPenTo_p_wxObject(void *x) {
17447 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
17448 }
17449 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
17450 return (void *)((wxObject *) ((wxFileSystem *) x));
17451 }
17452 static void *_p_wxBitmapTo_p_wxObject(void *x) {
17453 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
17454 }
17455 static void *_p_wxMaskTo_p_wxObject(void *x) {
17456 return (void *)((wxObject *) ((wxMask *) x));
17457 }
17458 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
17459 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
17460 }
17461 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
17462 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
17463 }
17464 static void *_p_wxPyAppTo_p_wxObject(void *x) {
17465 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
17466 }
17467 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
17468 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
17469 }
17470 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
17471 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
17472 }
17473 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
17474 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
17475 }
17476 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
17477 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
17478 }
17479 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
17480 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
17481 }
17482 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
17483 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
17484 }
17485 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
17486 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
17487 }
17488 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
17489 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
17490 }
17491 static void *_p_wxFontTo_p_wxObject(void *x) {
17492 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
17493 }
17494 static void *_p_wxBrushTo_p_wxObject(void *x) {
17495 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
17496 }
17497 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
17498 return (void *)((wxObject *) ((wxMetaFile *) x));
17499 }
17500 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
17501 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
17502 }
17503 static void *_p_wxColourTo_p_wxObject(void *x) {
17504 return (void *)((wxObject *) ((wxColour *) x));
17505 }
17506 static void *_p_wxFontListTo_p_wxObject(void *x) {
17507 return (void *)((wxObject *) ((wxFontList *) x));
17508 }
17509 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
17510 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
17511 }
17512 static void *_p_wxValidatorTo_p_wxObject(void *x) {
17513 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
17514 }
17515 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
17516 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
17517 }
17518 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
17519 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
17520 }
17521 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
17522 return (void *)((wxDC *) ((wxScreenDC *) x));
17523 }
17524 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
17525 return (void *)((wxDC *) ((wxMirrorDC *) x));
17526 }
17527 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
17528 return (void *)((wxDC *) ((wxMemoryDC *) x));
17529 }
17530 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
17531 return (void *)((wxDC *) ((wxWindowDC *) x));
17532 }
17533 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
17534 return (void *)((wxDC *) ((wxMetaFileDC *) x));
17535 }
17536 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
17537 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
17538 }
17539 static void *_p_wxClientDCTo_p_wxDC(void *x) {
17540 return (void *)((wxDC *) ((wxClientDC *) x));
17541 }
17542 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
17543 return (void *)((wxDC *) ((wxPaintDC *) x));
17544 }
17545 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
17546 return (void *)((wxDC *) ((wxPostScriptDC *) x));
17547 }
17548 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
17549 return (void *)((wxDC *) ((wxPrinterDC *) x));
17550 }
17551 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
17552 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
17553 }
17554 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
17555 return (void *)((wxGDIObject *) ((wxIcon *) x));
17556 }
17557 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
17558 return (void *)((wxGDIObject *) ((wxPalette *) x));
17559 }
17560 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
17561 return (void *)((wxGDIObject *) ((wxPen *) x));
17562 }
17563 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
17564 return (void *)((wxGDIObject *) ((wxFont *) x));
17565 }
17566 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
17567 return (void *)((wxGDIObject *) ((wxCursor *) x));
17568 }
17569 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
17570 return (void *)((wxGDIObject *) ((wxBitmap *) x));
17571 }
17572 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
17573 return (void *)((wxGDIObject *) ((wxRegion *) x));
17574 }
17575 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
17576 return (void *)((wxGDIObject *) ((wxBrush *) x));
17577 }
17578 static void *_p_wxPyPenTo_p_wxPen(void *x) {
17579 return (void *)((wxPen *) ((wxPyPen *) x));
17580 }
17581 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
17582 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
17583 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
17584 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}};
17585 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
17586 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17587 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
17588 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
17589 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
17590 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
17591 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
17592 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
17593 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}};
17594 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
17595 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
17596 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}};
17597 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
17598 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
17599 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
17600 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
17601 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
17602 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}};
17603 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
17604 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
17605 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
17606 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
17607 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
17608 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
17609 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
17610 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
17611 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
17612 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
17613 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
17614 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
17615 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
17616 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}};
17617 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
17618 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
17619 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
17620 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
17621 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
17622 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
17623 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
17624 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
17625 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
17626 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
17627 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
17628 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
17629 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
17630 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
17631 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
17632 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
17633 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
17634 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
17635 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
17636
17637 static swig_type_info *swig_types_initial[] = {
17638 _swigt__p_wxPostScriptDC,
17639 _swigt__p_wxBrush,
17640 _swigt__p_wxColour,
17641 _swigt__p_wxDC,
17642 _swigt__p_wxMirrorDC,
17643 _swigt__p_byte,
17644 _swigt__p_wxPyFontEnumerator,
17645 _swigt__p_wxIconLocation,
17646 _swigt__p_wxImage,
17647 _swigt__p_wxMetaFileDC,
17648 _swigt__p_wxMask,
17649 _swigt__p_wxFont,
17650 _swigt__p_wxWindow,
17651 _swigt__p_wxSize,
17652 _swigt__p_double,
17653 _swigt__p_wxMemoryDC,
17654 _swigt__p_wxFontMapper,
17655 _swigt__p_wxEffects,
17656 _swigt__p_wxNativeEncodingInfo,
17657 _swigt__p_wxPalette,
17658 _swigt__p_wxBitmap,
17659 _swigt__p_wxObject,
17660 _swigt__p_wxRegionIterator,
17661 _swigt__p_wxRect,
17662 _swigt__p_wxString,
17663 _swigt__p_wxPrinterDC,
17664 _swigt__p_wxIconBundle,
17665 _swigt__p_wxPoint,
17666 _swigt__p_wxDash,
17667 _swigt__p_wxScreenDC,
17668 _swigt__p_wxCursor,
17669 _swigt__p_wxClientDC,
17670 _swigt__p_wxBufferedDC,
17671 _swigt__p_wxImageList,
17672 _swigt__p_unsigned_char,
17673 _swigt__p_wxGDIObject,
17674 _swigt__p_wxLocale,
17675 _swigt__p_wxIcon,
17676 _swigt__p_wxRegion,
17677 _swigt__p_wxLanguageInfo,
17678 _swigt__p_wxConfigBase,
17679 _swigt__p_wxWindowDC,
17680 _swigt__p_wxPrintData,
17681 _swigt__p_wxBrushList,
17682 _swigt__p_wxFontList,
17683 _swigt__p_wxPen,
17684 _swigt__p_wxBufferedPaintDC,
17685 _swigt__p_wxPaintDC,
17686 _swigt__p_wxPenList,
17687 _swigt__p_wxPyPen,
17688 _swigt__p_int,
17689 _swigt__p_wxMetaFile,
17690 _swigt__p_wxNativeFontInfo,
17691 _swigt__p_wxEncodingConverter,
17692 _swigt__p_wxColourDatabase,
17693 0
17694 };
17695
17696
17697 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17698
17699 static swig_const_info swig_const_table[] = {
17700 { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
17701 { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
17702 { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
17703 { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
17704 { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
17705 { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
17706 { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
17707 { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
17708 { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
17709 { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
17710 { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
17711 { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
17712 { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
17713 { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
17714 { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
17715 { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
17716 { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
17717 { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
17718 { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
17719 { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
17720 { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
17721 { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
17722 { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
17723 { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
17724 { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
17725 { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
17726 { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
17727 { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
17728 { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
17729 { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
17730 { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
17731 { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
17732 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
17733 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
17734 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
17735 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
17736 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
17737 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
17738 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
17739 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
17740 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
17741 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
17742 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
17743 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
17744 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
17745 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
17746 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
17747 { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
17748 { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
17749 { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
17750 { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
17751 { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
17752 { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
17753 { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
17754 { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
17755 { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
17756 { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
17757 { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
17758 { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
17759 { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
17760 { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
17761 { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
17762 { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
17763 { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
17764 { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
17765 { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
17766 { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
17767 { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
17768 { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
17769 { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
17770 { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
17771 { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
17772 { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
17773 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
17774 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
17775 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
17776 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
17777 { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
17778 { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
17779 { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
17780 { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
17781 { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
17782 { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
17783 { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
17784 { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
17785 { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
17786 { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
17787 { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
17788 { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
17789 { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
17790 { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
17791 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
17792 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
17793 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
17794 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
17795 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
17796 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
17797 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
17798 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
17799 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
17800 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
17801 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
17802 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
17803 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
17804 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
17805 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
17806 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17807 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17808 { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17809 { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17810 { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17811 { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17812 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17813 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17814 { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17815 { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17816 { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17817 { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17818 { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17819 { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17820 { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17821 { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17822 { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17823 { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17824 { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17825 { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17826 { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17827 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17828 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17829 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17830 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17831 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17832 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17833 { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17834 { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17835 { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17836 { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17837 { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17838 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17839 { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17840 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17841 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17842 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17843 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17844 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17845 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17846 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17847 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17848 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17849 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17850 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17851 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17852 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17853 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17854 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17855 { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17856 { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17857 { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17858 { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17859 { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17860 { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17861 { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17862 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17863 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17864 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17865 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17866 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17867 { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17868 { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17869 { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17870 { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17871 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17872 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17873 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17874 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17875 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17876 { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17877 { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17878 { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17879 { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17880 { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17881 { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17882 { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17883 { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17884 { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17885 { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17886 { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17887 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17888 { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17889 { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17890 { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17891 { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17892 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17893 { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17894 { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17895 { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17896 { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17897 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17898 { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17899 { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17900 { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17901 { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17902 { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17903 { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17904 { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17905 { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17906 { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17907 { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17908 { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17909 { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17910 { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17911 { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17912 { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17913 { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17914 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17915 { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17916 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17917 { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17918 { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17919 { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17920 { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17921 { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17922 { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17923 { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17924 { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17925 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17926 { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17927 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17928 { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17929 { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17930 { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17931 { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17932 { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17933 { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17934 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17935 { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17936 { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17937 { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17938 { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17939 { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17940 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17941 { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17942 { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17943 { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17944 { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17945 { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17946 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17947 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17948 { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17949 { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17950 { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17951 { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17952 { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17953 { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17954 { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17955 { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17956 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17957 { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17958 { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17959 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17960 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17961 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17962 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17963 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17964 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17965 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17966 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17967 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17968 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17969 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17970 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17971 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17972 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17973 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17974 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17975 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17976 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17977 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17978 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17979 { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17980 { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17981 { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17982 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17983 { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17984 { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17985 { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17986 { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17987 { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17988 { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17989 { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17990 { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17991 { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17992 { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17993 { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17994 { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17995 { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17996 { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17997 { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17998 { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17999 { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
18000 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
18001 { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
18002 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
18003 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
18004 { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
18005 { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
18006 { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
18007 { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
18008 { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
18009 { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
18010 { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
18011 { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
18012 { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
18013 { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
18014 { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
18015 { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
18016 { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
18017 { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
18018 { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
18019 { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
18020 { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
18021 { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
18022 { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
18023 { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
18024 { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
18025 { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
18026 { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
18027 { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
18028 { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
18029 { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
18030 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
18031 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
18032 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
18033 { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
18034 { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
18035 { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
18036 { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
18037 {0}};
18038
18039 #ifdef __cplusplus
18040 }
18041 #endif
18042
18043 #ifdef __cplusplus
18044 extern "C"
18045 #endif
18046 SWIGEXPORT(void) SWIG_init(void) {
18047 static PyObject *SWIG_globals = 0;
18048 static int typeinit = 0;
18049 PyObject *m, *d;
18050 int i;
18051 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18052 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18053 d = PyModule_GetDict(m);
18054
18055 if (!typeinit) {
18056 for (i = 0; swig_types_initial[i]; i++) {
18057 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18058 }
18059 typeinit = 1;
18060 }
18061 SWIG_InstallConstants(d,swig_const_table);
18062
18063
18064 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18065
18066 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
18067 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
18068 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
18069 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
18070 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
18071 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
18072 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
18073 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
18074 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
18075 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
18076 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
18077 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
18078 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
18079 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
18080 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
18081 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
18082 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
18083 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
18084 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
18085 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
18086 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
18087 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
18088 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
18089 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
18090 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
18091 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
18092 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
18093 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
18094 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
18095 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
18096 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
18097 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
18098 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
18099 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
18100 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
18101 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
18102 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
18103 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
18104 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
18105 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
18106 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
18107 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
18108 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
18109 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
18110 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
18111 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
18112 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
18113
18114 // Work around a chicken/egg problem in drawlist.cpp
18115 wxPyDrawList_SetAPIPtr();
18116
18117 }
18118