]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
Added a typecheck typmap for wxString
[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.22
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 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
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 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(PyObject*)
346 SWIG_PyObj_FromBool(bool value)
347 {
348 PyObject *obj = value ? Py_True : Py_False;
349 Py_INCREF(obj);
350 return obj;
351 }
352
353
354 SWIGSTATIC(bool)
355 SWIG_PyObj_AsBool(PyObject *obj)
356 {
357 return PyObject_IsTrue(obj) ? true : false;
358 }
359
360
361 SWIGSTATIC(unsigned char)
362 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
363 {
364 return numeric_cast(unsigned char,
365 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
366 }
367
368 PyObject *wxColour_Get(wxColour *self){
369 PyObject* rv = PyTuple_New(3);
370 int red = -1;
371 int green = -1;
372 int blue = -1;
373 if (self->Ok()) {
374 red = self->Red();
375 green = self->Green();
376 blue = self->Blue();
377 }
378 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
379 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
380 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
381 return rv;
382 }
383
384 SWIGSTATIC(int)
385 SWIG_PyObj_AsInt(PyObject *obj)
386 {
387 return numeric_cast(int,
388 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
389 }
390
391
392 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
393 PyObject* o2;
394 PyObject* o3;
395
396 if (!target) {
397 target = o;
398 } else if (target == Py_None) {
399 Py_DECREF(Py_None);
400 target = o;
401 } else {
402 if (!PyTuple_Check(target)) {
403 o2 = target;
404 target = PyTuple_New(1);
405 PyTuple_SetItem(target, 0, o2);
406 }
407 o3 = PyTuple_New(1);
408 PyTuple_SetItem(o3, 0, o);
409
410 o2 = target;
411 target = PySequence_Concat(o2, o3);
412 Py_DECREF(o2);
413 Py_DECREF(o3);
414 }
415 return target;
416 }
417
418 PyObject *wxPen_GetDashes(wxPen *self){
419 wxDash* dashes;
420 int count = self->GetDashes(&dashes);
421 wxPyBeginBlockThreads();
422 PyObject* retval = PyList_New(0);
423 for (int x=0; x<count; x++)
424 PyList_Append(retval, PyInt_FromLong(dashes[x]));
425 wxPyEndBlockThreads();
426 return retval;
427 }
428
429 wxPyPen::~wxPyPen()
430 {
431 if (m_dash)
432 delete [] m_dash;
433 }
434
435 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
436 {
437 if (m_dash)
438 delete [] m_dash;
439 m_dash = new wxDash[nb_dashes];
440 for (int i=0; i<nb_dashes; i++) {
441 m_dash[i] = dash[i];
442 }
443 wxPen::SetDashes(nb_dashes, m_dash);
444 }
445
446
447 #include <wx/image.h>
448
449 static char** ConvertListOfStrings(PyObject* listOfStrings) {
450 char** cArray = NULL;
451 int count;
452
453 if (!PyList_Check(listOfStrings)) {
454 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
455 return NULL;
456 }
457 count = PyList_Size(listOfStrings);
458 cArray = new char*[count];
459
460 for(int x=0; x<count; x++) {
461 // TODO: Need some validation and error checking here
462 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
463 }
464 return cArray;
465 }
466
467
468 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
469 char** cArray = NULL;
470 wxBitmap* bmp;
471
472 cArray = ConvertListOfStrings(listOfStrings);
473 if (! cArray)
474 return NULL;
475 bmp = new wxBitmap(cArray);
476 delete [] cArray;
477 return bmp;
478 }
479 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
480 char* buf;
481 int length;
482 PyString_AsStringAndSize(bits, &buf, &length);
483 return new wxBitmap(buf, width, height, depth);
484 }
485
486 SWIGSTATIC(long)
487 SWIG_PyObj_AsLong(PyObject * obj)
488 {
489 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
490 }
491
492 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
493 wxMask *mask = new wxMask(*self, colour);
494 self->SetMask(mask);
495 }
496
497 #include <wx/iconbndl.h>
498
499 wxIcon *new_wxIcon(wxBitmap const &bmp){
500 wxIcon* icon = new wxIcon();
501 icon->CopyFromBitmap(bmp);
502 return icon;
503 }
504 wxIcon *new_wxIcon(PyObject *listOfStrings){
505 char** cArray = NULL;
506 wxIcon* icon;
507
508 cArray = ConvertListOfStrings(listOfStrings);
509 if (! cArray)
510 return NULL;
511 icon = new wxIcon(cArray);
512 delete [] cArray;
513 return icon;
514 }
515 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
516
517 return new wxIconLocation(*filename, num);
518
519
520
521 }
522 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
523
524 self->SetIndex(num);
525
526
527
528 }
529 int wxIconLocation_GetIndex(wxIconLocation *self){
530
531 return self->GetIndex();
532
533
534
535 }
536 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
537
538
539
540
541 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
542
543 }
544 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
545 char* bitsbuf;
546 char* maskbuf = NULL;
547 int length;
548 PyString_AsStringAndSize(bits, &bitsbuf, &length);
549 if (maskBits)
550 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
551 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
552 }
553
554
555 void wxRegionIterator_Next(wxRegionIterator *self){
556 (*self) ++;
557 }
558 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
559 return self->operator bool();
560 }
561
562 #include <wx/fontutil.h>
563 #include <wx/fontmap.h>
564 #include <wx/fontenum.h>
565
566 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
567 return self->ToString();
568 }
569
570 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
571 { wxPyRaiseNotImplemented(); return NULL; }
572
573 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
574 { wxPyRaiseNotImplemented(); return False; }
575
576
577 SWIGSTATIC(PyObject* )
578 SWIG_PyObj_FromUnsignedLong(unsigned long value)
579 {
580 return (value > (unsigned long)(LONG_MAX)) ?
581 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
582 }
583
584 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
585 wxFontEncoding alt_enc;
586 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
587 return PyInt_FromLong(alt_enc);
588 else {
589 Py_INCREF(Py_None);
590 return Py_None;
591 }
592 }
593 wxFont *new_wxFont(wxString const &info){
594 wxNativeFontInfo nfi;
595 nfi.FromString(info);
596 return new wxFont(nfi);
597 }
598 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
599 return wxFont::New(pointSize, family, flags, face, encoding);
600 }
601
602 class wxPyFontEnumerator : public wxFontEnumerator {
603 public:
604 wxPyFontEnumerator() {}
605 ~wxPyFontEnumerator() {}
606
607 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
608 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
609
610 PYPRIVATE;
611 };
612
613 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
614 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
615
616
617 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
618 wxArrayString* arr = self->GetEncodings();
619 return wxArrayString2PyList_helper(*arr);
620 }
621 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
622 wxArrayString* arr = self->GetFacenames();
623 return wxArrayString2PyList_helper(*arr);
624 }
625
626
627
628 #include "wx/wxPython/pydrawxxx.h"
629
630 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
631 wxColour col;
632 self->GetPixel(x, y, &col);
633 return col;
634 }
635 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
636 wxColour col;
637 self->GetPixel(pt, &col);
638 return col;
639 }
640
641 SWIGSTATIC(double)
642 SWIG_PyObj_AsDouble(PyObject *obj)
643 {
644 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
645 #if HAVE_LONG_LONG
646 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
647 #else
648 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
649 #endif
650 if (PyErr_Occurred()) {
651 PyErr_Clear();
652 PyErr_SetString(PyExc_TypeError, "a double is expected");
653 }
654 }
655
656 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
657 wxRect rv;
658 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
659 return rv;
660 }
661 wxRect wxDC_GetClippingRect(wxDC *self){
662 wxRect rect;
663 self->GetClippingBox(rect);
664 return rect;
665 }
666 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
667 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
668 }
669 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
670 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
671 }
672 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
673 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
674 }
675 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
676 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
677 }
678 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
679 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
680 }
681 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
682 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
683 }
684
685 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
686 *x1 = dc->MinX();
687 *y1 = dc->MinY();
688 *x2 = dc->MaxX();
689 *y2 = dc->MaxY();
690 }
691
692
693 #include <wx/dcps.h>
694
695
696 #include <wx/metafile.h>
697
698
699
700 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
701 self->AddColour(name, wxColour(red, green, blue));
702 }
703
704 #include <wx/effects.h>
705
706 #ifdef __cplusplus
707 extern "C" {
708 #endif
709 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
710 PyObject *resultobj;
711 wxGDIObject *result;
712 char *kwnames[] = {
713 NULL
714 };
715
716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
717 {
718 PyThreadState* __tstate = wxPyBeginAllowThreads();
719 result = (wxGDIObject *)new wxGDIObject();
720
721 wxPyEndAllowThreads(__tstate);
722 if (PyErr_Occurred()) SWIG_fail;
723 }
724 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
725 return resultobj;
726 fail:
727 return NULL;
728 }
729
730
731 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
732 PyObject *resultobj;
733 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
734 PyObject * obj0 = 0 ;
735 char *kwnames[] = {
736 (char *) "self", NULL
737 };
738
739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
741 {
742 PyThreadState* __tstate = wxPyBeginAllowThreads();
743 delete arg1;
744
745 wxPyEndAllowThreads(__tstate);
746 if (PyErr_Occurred()) SWIG_fail;
747 }
748 Py_INCREF(Py_None); resultobj = Py_None;
749 return resultobj;
750 fail:
751 return NULL;
752 }
753
754
755 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
756 PyObject *resultobj;
757 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
758 bool result;
759 PyObject * obj0 = 0 ;
760 char *kwnames[] = {
761 (char *) "self", NULL
762 };
763
764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 result = (bool)(arg1)->GetVisible();
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 resultobj = SWIG_PyObj_FromBool((bool)result);
774 return resultobj;
775 fail:
776 return NULL;
777 }
778
779
780 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject *resultobj;
782 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
783 bool arg2 ;
784 PyObject * obj0 = 0 ;
785 PyObject * obj1 = 0 ;
786 char *kwnames[] = {
787 (char *) "self",(char *) "visible", NULL
788 };
789
790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
792 {
793 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
794 if (PyErr_Occurred()) SWIG_fail;
795 }
796 {
797 PyThreadState* __tstate = wxPyBeginAllowThreads();
798 (arg1)->SetVisible(arg2);
799
800 wxPyEndAllowThreads(__tstate);
801 if (PyErr_Occurred()) SWIG_fail;
802 }
803 Py_INCREF(Py_None); resultobj = Py_None;
804 return resultobj;
805 fail:
806 return NULL;
807 }
808
809
810 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
811 PyObject *resultobj;
812 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
813 bool result;
814 PyObject * obj0 = 0 ;
815 char *kwnames[] = {
816 (char *) "self", NULL
817 };
818
819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
821 {
822 PyThreadState* __tstate = wxPyBeginAllowThreads();
823 result = (bool)(arg1)->IsNull();
824
825 wxPyEndAllowThreads(__tstate);
826 if (PyErr_Occurred()) SWIG_fail;
827 }
828 resultobj = SWIG_PyObj_FromBool((bool)result);
829 return resultobj;
830 fail:
831 return NULL;
832 }
833
834
835 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
836 PyObject *obj;
837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
838 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
839 Py_INCREF(obj);
840 return Py_BuildValue((char *)"");
841 }
842 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
843 PyObject *resultobj;
844 unsigned char arg1 = (unsigned char) 0 ;
845 unsigned char arg2 = (unsigned char) 0 ;
846 unsigned char arg3 = (unsigned char) 0 ;
847 wxColour *result;
848 PyObject * obj0 = 0 ;
849 PyObject * obj1 = 0 ;
850 PyObject * obj2 = 0 ;
851 char *kwnames[] = {
852 (char *) "red",(char *) "green",(char *) "blue", NULL
853 };
854
855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
856 if (obj0) {
857 {
858 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
859 if (PyErr_Occurred()) SWIG_fail;
860 }
861 }
862 if (obj1) {
863 {
864 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
865 if (PyErr_Occurred()) SWIG_fail;
866 }
867 }
868 if (obj2) {
869 {
870 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
871 if (PyErr_Occurred()) SWIG_fail;
872 }
873 }
874 {
875 PyThreadState* __tstate = wxPyBeginAllowThreads();
876 result = (wxColour *)new wxColour(arg1,arg2,arg3);
877
878 wxPyEndAllowThreads(__tstate);
879 if (PyErr_Occurred()) SWIG_fail;
880 }
881 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
882 return resultobj;
883 fail:
884 return NULL;
885 }
886
887
888 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
889 PyObject *resultobj;
890 wxColour *arg1 = (wxColour *) 0 ;
891 PyObject * obj0 = 0 ;
892 char *kwnames[] = {
893 (char *) "self", NULL
894 };
895
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
898 {
899 PyThreadState* __tstate = wxPyBeginAllowThreads();
900 delete arg1;
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) SWIG_fail;
904 }
905 Py_INCREF(Py_None); resultobj = Py_None;
906 return resultobj;
907 fail:
908 return NULL;
909 }
910
911
912 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
913 PyObject *resultobj;
914 wxString *arg1 = 0 ;
915 wxColour *result;
916 bool temp1 = False ;
917 PyObject * obj0 = 0 ;
918 char *kwnames[] = {
919 (char *) "colorName", NULL
920 };
921
922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
923 {
924 arg1 = wxString_in_helper(obj0);
925 if (arg1 == NULL) SWIG_fail;
926 temp1 = True;
927 }
928 {
929 PyThreadState* __tstate = wxPyBeginAllowThreads();
930 result = (wxColour *)new wxColour((wxString const &)*arg1);
931
932 wxPyEndAllowThreads(__tstate);
933 if (PyErr_Occurred()) SWIG_fail;
934 }
935 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
936 {
937 if (temp1)
938 delete arg1;
939 }
940 return resultobj;
941 fail:
942 {
943 if (temp1)
944 delete arg1;
945 }
946 return NULL;
947 }
948
949
950 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
951 PyObject *resultobj;
952 unsigned long arg1 ;
953 wxColour *result;
954 PyObject * obj0 = 0 ;
955 char *kwnames[] = {
956 (char *) "colRGB", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
960 {
961 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
962 if (PyErr_Occurred()) SWIG_fail;
963 }
964 {
965 PyThreadState* __tstate = wxPyBeginAllowThreads();
966 result = (wxColour *)new wxColour(arg1);
967
968 wxPyEndAllowThreads(__tstate);
969 if (PyErr_Occurred()) SWIG_fail;
970 }
971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
972 return resultobj;
973 fail:
974 return NULL;
975 }
976
977
978 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
979 PyObject *resultobj;
980 wxColour *arg1 = (wxColour *) 0 ;
981 unsigned char result;
982 PyObject * obj0 = 0 ;
983 char *kwnames[] = {
984 (char *) "self", NULL
985 };
986
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
989 {
990 PyThreadState* __tstate = wxPyBeginAllowThreads();
991 result = (unsigned char)(arg1)->Red();
992
993 wxPyEndAllowThreads(__tstate);
994 if (PyErr_Occurred()) SWIG_fail;
995 }
996 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
997 return resultobj;
998 fail:
999 return NULL;
1000 }
1001
1002
1003 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1004 PyObject *resultobj;
1005 wxColour *arg1 = (wxColour *) 0 ;
1006 unsigned char result;
1007 PyObject * obj0 = 0 ;
1008 char *kwnames[] = {
1009 (char *) "self", NULL
1010 };
1011
1012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1014 {
1015 PyThreadState* __tstate = wxPyBeginAllowThreads();
1016 result = (unsigned char)(arg1)->Green();
1017
1018 wxPyEndAllowThreads(__tstate);
1019 if (PyErr_Occurred()) SWIG_fail;
1020 }
1021 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1022 return resultobj;
1023 fail:
1024 return NULL;
1025 }
1026
1027
1028 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject *resultobj;
1030 wxColour *arg1 = (wxColour *) 0 ;
1031 unsigned char result;
1032 PyObject * obj0 = 0 ;
1033 char *kwnames[] = {
1034 (char *) "self", NULL
1035 };
1036
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 result = (unsigned char)(arg1)->Blue();
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) SWIG_fail;
1045 }
1046 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1047 return resultobj;
1048 fail:
1049 return NULL;
1050 }
1051
1052
1053 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject *resultobj;
1055 wxColour *arg1 = (wxColour *) 0 ;
1056 bool result;
1057 PyObject * obj0 = 0 ;
1058 char *kwnames[] = {
1059 (char *) "self", NULL
1060 };
1061
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1064 {
1065 PyThreadState* __tstate = wxPyBeginAllowThreads();
1066 result = (bool)(arg1)->Ok();
1067
1068 wxPyEndAllowThreads(__tstate);
1069 if (PyErr_Occurred()) SWIG_fail;
1070 }
1071 resultobj = SWIG_PyObj_FromBool((bool)result);
1072 return resultobj;
1073 fail:
1074 return NULL;
1075 }
1076
1077
1078 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject *resultobj;
1080 wxColour *arg1 = (wxColour *) 0 ;
1081 unsigned char arg2 ;
1082 unsigned char arg3 ;
1083 unsigned char arg4 ;
1084 PyObject * obj0 = 0 ;
1085 PyObject * obj1 = 0 ;
1086 PyObject * obj2 = 0 ;
1087 PyObject * obj3 = 0 ;
1088 char *kwnames[] = {
1089 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1090 };
1091
1092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1094 {
1095 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 {
1099 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 {
1103 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 }
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 (arg1)->Set(arg2,arg3,arg4);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 Py_INCREF(Py_None); resultobj = Py_None;
1114 return resultobj;
1115 fail:
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 wxColour *arg1 = (wxColour *) 0 ;
1123 unsigned long arg2 ;
1124 PyObject * obj0 = 0 ;
1125 PyObject * obj1 = 0 ;
1126 char *kwnames[] = {
1127 (char *) "self",(char *) "colRGB", NULL
1128 };
1129
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1132 {
1133 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1134 if (PyErr_Occurred()) SWIG_fail;
1135 }
1136 {
1137 PyThreadState* __tstate = wxPyBeginAllowThreads();
1138 (arg1)->Set(arg2);
1139
1140 wxPyEndAllowThreads(__tstate);
1141 if (PyErr_Occurred()) SWIG_fail;
1142 }
1143 Py_INCREF(Py_None); resultobj = Py_None;
1144 return resultobj;
1145 fail:
1146 return NULL;
1147 }
1148
1149
1150 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject *resultobj;
1152 wxColour *arg1 = (wxColour *) 0 ;
1153 wxColour *arg2 = 0 ;
1154 bool result;
1155 wxColour temp2 ;
1156 PyObject * obj0 = 0 ;
1157 PyObject * obj1 = 0 ;
1158 char *kwnames[] = {
1159 (char *) "self",(char *) "colour", NULL
1160 };
1161
1162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1164 {
1165 arg2 = &temp2;
1166 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1167 }
1168 {
1169 PyThreadState* __tstate = wxPyBeginAllowThreads();
1170 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1171
1172 wxPyEndAllowThreads(__tstate);
1173 if (PyErr_Occurred()) SWIG_fail;
1174 }
1175 resultobj = SWIG_PyObj_FromBool((bool)result);
1176 return resultobj;
1177 fail:
1178 return NULL;
1179 }
1180
1181
1182 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1183 PyObject *resultobj;
1184 wxColour *arg1 = (wxColour *) 0 ;
1185 wxColour *arg2 = 0 ;
1186 bool result;
1187 wxColour temp2 ;
1188 PyObject * obj0 = 0 ;
1189 PyObject * obj1 = 0 ;
1190 char *kwnames[] = {
1191 (char *) "self",(char *) "colour", NULL
1192 };
1193
1194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1196 {
1197 arg2 = &temp2;
1198 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1199 }
1200 {
1201 PyThreadState* __tstate = wxPyBeginAllowThreads();
1202 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1203
1204 wxPyEndAllowThreads(__tstate);
1205 if (PyErr_Occurred()) SWIG_fail;
1206 }
1207 resultobj = SWIG_PyObj_FromBool((bool)result);
1208 return resultobj;
1209 fail:
1210 return NULL;
1211 }
1212
1213
1214 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1215 PyObject *resultobj;
1216 wxColour *arg1 = (wxColour *) 0 ;
1217 wxString *arg2 = 0 ;
1218 bool temp2 = False ;
1219 PyObject * obj0 = 0 ;
1220 PyObject * obj1 = 0 ;
1221 char *kwnames[] = {
1222 (char *) "self",(char *) "colourName", NULL
1223 };
1224
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1227 {
1228 arg2 = wxString_in_helper(obj1);
1229 if (arg2 == NULL) SWIG_fail;
1230 temp2 = True;
1231 }
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 (arg1)->InitFromName((wxString const &)*arg2);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 Py_INCREF(Py_None); resultobj = Py_None;
1240 {
1241 if (temp2)
1242 delete arg2;
1243 }
1244 return resultobj;
1245 fail:
1246 {
1247 if (temp2)
1248 delete arg2;
1249 }
1250 return NULL;
1251 }
1252
1253
1254 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 wxColour *arg1 = (wxColour *) 0 ;
1257 PyObject *result;
1258 PyObject * obj0 = 0 ;
1259 char *kwnames[] = {
1260 (char *) "self", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1265 {
1266 PyThreadState* __tstate = wxPyBeginAllowThreads();
1267 result = (PyObject *)wxColour_Get(arg1);
1268
1269 wxPyEndAllowThreads(__tstate);
1270 if (PyErr_Occurred()) SWIG_fail;
1271 }
1272 resultobj = result;
1273 return resultobj;
1274 fail:
1275 return NULL;
1276 }
1277
1278
1279 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1280 PyObject *obj;
1281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1282 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1283 Py_INCREF(obj);
1284 return Py_BuildValue((char *)"");
1285 }
1286 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 int arg1 ;
1289 unsigned char *arg2 = (unsigned char *) 0 ;
1290 unsigned char *arg3 = (unsigned char *) 0 ;
1291 unsigned char *arg4 = (unsigned char *) 0 ;
1292 wxPalette *result;
1293 PyObject * obj0 = 0 ;
1294 PyObject * obj1 = 0 ;
1295 PyObject * obj2 = 0 ;
1296 PyObject * obj3 = 0 ;
1297 char *kwnames[] = {
1298 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1299 };
1300
1301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1302 {
1303 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1304 if (PyErr_Occurred()) SWIG_fail;
1305 }
1306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1307 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1308 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1309 {
1310 PyThreadState* __tstate = wxPyBeginAllowThreads();
1311 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1312
1313 wxPyEndAllowThreads(__tstate);
1314 if (PyErr_Occurred()) SWIG_fail;
1315 }
1316 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1317 return resultobj;
1318 fail:
1319 return NULL;
1320 }
1321
1322
1323 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1324 PyObject *resultobj;
1325 wxPalette *arg1 = (wxPalette *) 0 ;
1326 PyObject * obj0 = 0 ;
1327 char *kwnames[] = {
1328 (char *) "self", NULL
1329 };
1330
1331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1333 {
1334 PyThreadState* __tstate = wxPyBeginAllowThreads();
1335 delete arg1;
1336
1337 wxPyEndAllowThreads(__tstate);
1338 if (PyErr_Occurred()) SWIG_fail;
1339 }
1340 Py_INCREF(Py_None); resultobj = Py_None;
1341 return resultobj;
1342 fail:
1343 return NULL;
1344 }
1345
1346
1347 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1348 PyObject *resultobj;
1349 wxPalette *arg1 = (wxPalette *) 0 ;
1350 byte arg2 ;
1351 byte arg3 ;
1352 byte arg4 ;
1353 int result;
1354 PyObject * obj0 = 0 ;
1355 PyObject * obj1 = 0 ;
1356 PyObject * obj2 = 0 ;
1357 PyObject * obj3 = 0 ;
1358 char *kwnames[] = {
1359 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1360 };
1361
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1364 {
1365 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1366 if (PyErr_Occurred()) SWIG_fail;
1367 }
1368 {
1369 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1370 if (PyErr_Occurred()) SWIG_fail;
1371 }
1372 {
1373 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 }
1376 {
1377 PyThreadState* __tstate = wxPyBeginAllowThreads();
1378 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1379
1380 wxPyEndAllowThreads(__tstate);
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 resultobj = SWIG_PyObj_FromInt((int)result);
1384 return resultobj;
1385 fail:
1386 return NULL;
1387 }
1388
1389
1390 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1391 PyObject *resultobj;
1392 wxPalette *arg1 = (wxPalette *) 0 ;
1393 int arg2 ;
1394 byte *arg3 = (byte *) 0 ;
1395 byte *arg4 = (byte *) 0 ;
1396 byte *arg5 = (byte *) 0 ;
1397 bool result;
1398 byte temp3 ;
1399 byte temp4 ;
1400 byte temp5 ;
1401 PyObject * obj0 = 0 ;
1402 PyObject * obj1 = 0 ;
1403 char *kwnames[] = {
1404 (char *) "self",(char *) "pixel", NULL
1405 };
1406
1407 arg3 = &temp3;
1408 arg4 = &temp4;
1409 arg5 = &temp5;
1410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1412 {
1413 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1414 if (PyErr_Occurred()) SWIG_fail;
1415 }
1416 {
1417 PyThreadState* __tstate = wxPyBeginAllowThreads();
1418 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1419
1420 wxPyEndAllowThreads(__tstate);
1421 if (PyErr_Occurred()) SWIG_fail;
1422 }
1423 resultobj = SWIG_PyObj_FromBool((bool)result);
1424 {
1425 PyObject *o = PyInt_FromLong((long) (*arg3));
1426 resultobj = t_output_helper(resultobj,o);
1427 }
1428 {
1429 PyObject *o = PyInt_FromLong((long) (*arg4));
1430 resultobj = t_output_helper(resultobj,o);
1431 }
1432 {
1433 PyObject *o = PyInt_FromLong((long) (*arg5));
1434 resultobj = t_output_helper(resultobj,o);
1435 }
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxPalette *arg1 = (wxPalette *) 0 ;
1445 bool result;
1446 PyObject * obj0 = 0 ;
1447 char *kwnames[] = {
1448 (char *) "self", NULL
1449 };
1450
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1453 {
1454 PyThreadState* __tstate = wxPyBeginAllowThreads();
1455 result = (bool)(arg1)->Ok();
1456
1457 wxPyEndAllowThreads(__tstate);
1458 if (PyErr_Occurred()) SWIG_fail;
1459 }
1460 resultobj = SWIG_PyObj_FromBool((bool)result);
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1468 PyObject *obj;
1469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1470 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1471 Py_INCREF(obj);
1472 return Py_BuildValue((char *)"");
1473 }
1474 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1475 PyObject *resultobj;
1476 wxColour *arg1 = 0 ;
1477 int arg2 = (int) 1 ;
1478 int arg3 = (int) wxSOLID ;
1479 wxPen *result;
1480 wxColour temp1 ;
1481 PyObject * obj0 = 0 ;
1482 PyObject * obj1 = 0 ;
1483 PyObject * obj2 = 0 ;
1484 char *kwnames[] = {
1485 (char *) "colour",(char *) "width",(char *) "style", NULL
1486 };
1487
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1489 {
1490 arg1 = &temp1;
1491 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1492 }
1493 if (obj1) {
1494 {
1495 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1496 if (PyErr_Occurred()) SWIG_fail;
1497 }
1498 }
1499 if (obj2) {
1500 {
1501 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 }
1505 {
1506 PyThreadState* __tstate = wxPyBeginAllowThreads();
1507 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1508
1509 wxPyEndAllowThreads(__tstate);
1510 if (PyErr_Occurred()) SWIG_fail;
1511 }
1512 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1513 return resultobj;
1514 fail:
1515 return NULL;
1516 }
1517
1518
1519 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1520 PyObject *resultobj;
1521 wxPen *arg1 = (wxPen *) 0 ;
1522 PyObject * obj0 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1529 {
1530 PyThreadState* __tstate = wxPyBeginAllowThreads();
1531 delete arg1;
1532
1533 wxPyEndAllowThreads(__tstate);
1534 if (PyErr_Occurred()) SWIG_fail;
1535 }
1536 Py_INCREF(Py_None); resultobj = Py_None;
1537 return resultobj;
1538 fail:
1539 return NULL;
1540 }
1541
1542
1543 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1544 PyObject *resultobj;
1545 wxPen *arg1 = (wxPen *) 0 ;
1546 int result;
1547 PyObject * obj0 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "self", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 result = (int)(arg1)->GetCap();
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 resultobj = SWIG_PyObj_FromInt((int)result);
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxPen *arg1 = (wxPen *) 0 ;
1571 wxColour result;
1572 PyObject * obj0 = 0 ;
1573 char *kwnames[] = {
1574 (char *) "self", NULL
1575 };
1576
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1579 {
1580 PyThreadState* __tstate = wxPyBeginAllowThreads();
1581 result = (arg1)->GetColour();
1582
1583 wxPyEndAllowThreads(__tstate);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 }
1586 {
1587 wxColour * resultptr;
1588 resultptr = new wxColour((wxColour &) result);
1589 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1590 }
1591 return resultobj;
1592 fail:
1593 return NULL;
1594 }
1595
1596
1597 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1598 PyObject *resultobj;
1599 wxPen *arg1 = (wxPen *) 0 ;
1600 int result;
1601 PyObject * obj0 = 0 ;
1602 char *kwnames[] = {
1603 (char *) "self", NULL
1604 };
1605
1606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1608 {
1609 PyThreadState* __tstate = wxPyBeginAllowThreads();
1610 result = (int)(arg1)->GetJoin();
1611
1612 wxPyEndAllowThreads(__tstate);
1613 if (PyErr_Occurred()) SWIG_fail;
1614 }
1615 resultobj = SWIG_PyObj_FromInt((int)result);
1616 return resultobj;
1617 fail:
1618 return NULL;
1619 }
1620
1621
1622 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxPen *arg1 = (wxPen *) 0 ;
1625 int result;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1633 {
1634 PyThreadState* __tstate = wxPyBeginAllowThreads();
1635 result = (int)(arg1)->GetStyle();
1636
1637 wxPyEndAllowThreads(__tstate);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 }
1640 resultobj = SWIG_PyObj_FromInt((int)result);
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject *resultobj;
1649 wxPen *arg1 = (wxPen *) 0 ;
1650 int result;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (int)(arg1)->GetWidth();
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 resultobj = SWIG_PyObj_FromInt((int)result);
1666 return resultobj;
1667 fail:
1668 return NULL;
1669 }
1670
1671
1672 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxPen *arg1 = (wxPen *) 0 ;
1675 bool result;
1676 PyObject * obj0 = 0 ;
1677 char *kwnames[] = {
1678 (char *) "self", NULL
1679 };
1680
1681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (bool)(arg1)->Ok();
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) SWIG_fail;
1689 }
1690 resultobj = SWIG_PyObj_FromBool((bool)result);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694 }
1695
1696
1697 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxPen *arg1 = (wxPen *) 0 ;
1700 int arg2 ;
1701 PyObject * obj0 = 0 ;
1702 PyObject * obj1 = 0 ;
1703 char *kwnames[] = {
1704 (char *) "self",(char *) "cap_style", NULL
1705 };
1706
1707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1709 {
1710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1711 if (PyErr_Occurred()) SWIG_fail;
1712 }
1713 {
1714 PyThreadState* __tstate = wxPyBeginAllowThreads();
1715 (arg1)->SetCap(arg2);
1716
1717 wxPyEndAllowThreads(__tstate);
1718 if (PyErr_Occurred()) SWIG_fail;
1719 }
1720 Py_INCREF(Py_None); resultobj = Py_None;
1721 return resultobj;
1722 fail:
1723 return NULL;
1724 }
1725
1726
1727 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1728 PyObject *resultobj;
1729 wxPen *arg1 = (wxPen *) 0 ;
1730 wxColour *arg2 = 0 ;
1731 wxColour temp2 ;
1732 PyObject * obj0 = 0 ;
1733 PyObject * obj1 = 0 ;
1734 char *kwnames[] = {
1735 (char *) "self",(char *) "colour", NULL
1736 };
1737
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1740 {
1741 arg2 = &temp2;
1742 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1743 }
1744 {
1745 PyThreadState* __tstate = wxPyBeginAllowThreads();
1746 (arg1)->SetColour(*arg2);
1747
1748 wxPyEndAllowThreads(__tstate);
1749 if (PyErr_Occurred()) SWIG_fail;
1750 }
1751 Py_INCREF(Py_None); resultobj = Py_None;
1752 return resultobj;
1753 fail:
1754 return NULL;
1755 }
1756
1757
1758 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject *resultobj;
1760 wxPen *arg1 = (wxPen *) 0 ;
1761 int arg2 ;
1762 PyObject * obj0 = 0 ;
1763 PyObject * obj1 = 0 ;
1764 char *kwnames[] = {
1765 (char *) "self",(char *) "join_style", NULL
1766 };
1767
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1770 {
1771 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 }
1774 {
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 (arg1)->SetJoin(arg2);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 }
1781 Py_INCREF(Py_None); resultobj = Py_None;
1782 return resultobj;
1783 fail:
1784 return NULL;
1785 }
1786
1787
1788 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1789 PyObject *resultobj;
1790 wxPen *arg1 = (wxPen *) 0 ;
1791 int arg2 ;
1792 PyObject * obj0 = 0 ;
1793 PyObject * obj1 = 0 ;
1794 char *kwnames[] = {
1795 (char *) "self",(char *) "style", NULL
1796 };
1797
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1800 {
1801 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1802 if (PyErr_Occurred()) SWIG_fail;
1803 }
1804 {
1805 PyThreadState* __tstate = wxPyBeginAllowThreads();
1806 (arg1)->SetStyle(arg2);
1807
1808 wxPyEndAllowThreads(__tstate);
1809 if (PyErr_Occurred()) SWIG_fail;
1810 }
1811 Py_INCREF(Py_None); resultobj = Py_None;
1812 return resultobj;
1813 fail:
1814 return NULL;
1815 }
1816
1817
1818 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1819 PyObject *resultobj;
1820 wxPen *arg1 = (wxPen *) 0 ;
1821 int arg2 ;
1822 PyObject * obj0 = 0 ;
1823 PyObject * obj1 = 0 ;
1824 char *kwnames[] = {
1825 (char *) "self",(char *) "width", NULL
1826 };
1827
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1830 {
1831 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1832 if (PyErr_Occurred()) SWIG_fail;
1833 }
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 (arg1)->SetWidth(arg2);
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 Py_INCREF(Py_None); resultobj = Py_None;
1842 return resultobj;
1843 fail:
1844 return NULL;
1845 }
1846
1847
1848 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
1850 wxPen *arg1 = (wxPen *) 0 ;
1851 int arg2 ;
1852 wxDash *arg3 = (wxDash *) 0 ;
1853 PyObject * obj0 = 0 ;
1854 PyObject * obj1 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "self",(char *) "dashes", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1861 {
1862 arg2 = PyList_Size(obj1);
1863 arg3 = (wxDash*)byte_LIST_helper(obj1);
1864 if (arg3 == NULL) SWIG_fail;
1865 }
1866 {
1867 PyThreadState* __tstate = wxPyBeginAllowThreads();
1868 (arg1)->SetDashes(arg2,arg3);
1869
1870 wxPyEndAllowThreads(__tstate);
1871 if (PyErr_Occurred()) SWIG_fail;
1872 }
1873 Py_INCREF(Py_None); resultobj = Py_None;
1874 {
1875 if (arg3) delete [] arg3;
1876 }
1877 return resultobj;
1878 fail:
1879 {
1880 if (arg3) delete [] arg3;
1881 }
1882 return NULL;
1883 }
1884
1885
1886 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1887 PyObject *resultobj;
1888 wxPen *arg1 = (wxPen *) 0 ;
1889 PyObject *result;
1890 PyObject * obj0 = 0 ;
1891 char *kwnames[] = {
1892 (char *) "self", NULL
1893 };
1894
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1897 {
1898 PyThreadState* __tstate = wxPyBeginAllowThreads();
1899 result = (PyObject *)wxPen_GetDashes(arg1);
1900
1901 wxPyEndAllowThreads(__tstate);
1902 if (PyErr_Occurred()) SWIG_fail;
1903 }
1904 resultobj = result;
1905 return resultobj;
1906 fail:
1907 return NULL;
1908 }
1909
1910
1911 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject *resultobj;
1913 wxPen *arg1 = (wxPen *) 0 ;
1914 int result;
1915 PyObject * obj0 = 0 ;
1916 char *kwnames[] = {
1917 (char *) "self", NULL
1918 };
1919
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1922 {
1923 PyThreadState* __tstate = wxPyBeginAllowThreads();
1924 result = (int)((wxPen const *)arg1)->GetDashCount();
1925
1926 wxPyEndAllowThreads(__tstate);
1927 if (PyErr_Occurred()) SWIG_fail;
1928 }
1929 resultobj = SWIG_PyObj_FromInt((int)result);
1930 return resultobj;
1931 fail:
1932 return NULL;
1933 }
1934
1935
1936 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject *resultobj;
1938 wxPen *arg1 = (wxPen *) 0 ;
1939 wxBitmap *result;
1940 PyObject * obj0 = 0 ;
1941 char *kwnames[] = {
1942 (char *) "self", NULL
1943 };
1944
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
1946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1947 {
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 result = (wxBitmap *)(arg1)->GetStipple();
1950
1951 wxPyEndAllowThreads(__tstate);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 }
1954 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
1955 return resultobj;
1956 fail:
1957 return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxPen *arg1 = (wxPen *) 0 ;
1964 wxBitmap *arg2 = 0 ;
1965 PyObject * obj0 = 0 ;
1966 PyObject * obj1 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "self",(char *) "stipple", NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1973 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1974 if (arg2 == NULL) {
1975 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1976 }
1977 {
1978 PyThreadState* __tstate = wxPyBeginAllowThreads();
1979 (arg1)->SetStipple(*arg2);
1980
1981 wxPyEndAllowThreads(__tstate);
1982 if (PyErr_Occurred()) SWIG_fail;
1983 }
1984 Py_INCREF(Py_None); resultobj = Py_None;
1985 return resultobj;
1986 fail:
1987 return NULL;
1988 }
1989
1990
1991 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1992 PyObject *obj;
1993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1994 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1995 Py_INCREF(obj);
1996 return Py_BuildValue((char *)"");
1997 }
1998 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1999 PyObject *resultobj;
2000 wxColour *arg1 = 0 ;
2001 int arg2 = (int) 1 ;
2002 int arg3 = (int) wxSOLID ;
2003 wxPyPen *result;
2004 wxColour temp1 ;
2005 PyObject * obj0 = 0 ;
2006 PyObject * obj1 = 0 ;
2007 PyObject * obj2 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "colour",(char *) "width",(char *) "style", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2013 {
2014 arg1 = &temp1;
2015 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2016 }
2017 if (obj1) {
2018 {
2019 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2020 if (PyErr_Occurred()) SWIG_fail;
2021 }
2022 }
2023 if (obj2) {
2024 {
2025 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 }
2029 {
2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
2031 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2032
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 }
2036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2037 return resultobj;
2038 fail:
2039 return NULL;
2040 }
2041
2042
2043 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2044 PyObject *resultobj;
2045 wxPyPen *arg1 = (wxPyPen *) 0 ;
2046 PyObject * obj0 = 0 ;
2047 char *kwnames[] = {
2048 (char *) "self", NULL
2049 };
2050
2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2053 {
2054 PyThreadState* __tstate = wxPyBeginAllowThreads();
2055 delete arg1;
2056
2057 wxPyEndAllowThreads(__tstate);
2058 if (PyErr_Occurred()) SWIG_fail;
2059 }
2060 Py_INCREF(Py_None); resultobj = Py_None;
2061 return resultobj;
2062 fail:
2063 return NULL;
2064 }
2065
2066
2067 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2068 PyObject *resultobj;
2069 wxPyPen *arg1 = (wxPyPen *) 0 ;
2070 int arg2 ;
2071 wxDash *arg3 = (wxDash *) 0 ;
2072 PyObject * obj0 = 0 ;
2073 PyObject * obj1 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "self",(char *) "dashes", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2080 {
2081 arg2 = PyList_Size(obj1);
2082 arg3 = (wxDash*)byte_LIST_helper(obj1);
2083 if (arg3 == NULL) SWIG_fail;
2084 }
2085 {
2086 PyThreadState* __tstate = wxPyBeginAllowThreads();
2087 (arg1)->SetDashes(arg2,arg3);
2088
2089 wxPyEndAllowThreads(__tstate);
2090 if (PyErr_Occurred()) SWIG_fail;
2091 }
2092 Py_INCREF(Py_None); resultobj = Py_None;
2093 {
2094 if (arg3) delete [] arg3;
2095 }
2096 return resultobj;
2097 fail:
2098 {
2099 if (arg3) delete [] arg3;
2100 }
2101 return NULL;
2102 }
2103
2104
2105 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2106 PyObject *obj;
2107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2108 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2109 Py_INCREF(obj);
2110 return Py_BuildValue((char *)"");
2111 }
2112 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxColour *arg1 = 0 ;
2115 int arg2 = (int) wxSOLID ;
2116 wxBrush *result;
2117 wxColour temp1 ;
2118 PyObject * obj0 = 0 ;
2119 PyObject * obj1 = 0 ;
2120 char *kwnames[] = {
2121 (char *) "colour",(char *) "style", NULL
2122 };
2123
2124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2125 {
2126 arg1 = &temp1;
2127 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2128 }
2129 if (obj1) {
2130 {
2131 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 }
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 wxBrush *arg1 = (wxBrush *) 0 ;
2152 PyObject * obj0 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "self", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2159 {
2160 PyThreadState* __tstate = wxPyBeginAllowThreads();
2161 delete arg1;
2162
2163 wxPyEndAllowThreads(__tstate);
2164 if (PyErr_Occurred()) SWIG_fail;
2165 }
2166 Py_INCREF(Py_None); resultobj = Py_None;
2167 return resultobj;
2168 fail:
2169 return NULL;
2170 }
2171
2172
2173 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2174 PyObject *resultobj;
2175 wxBrush *arg1 = (wxBrush *) 0 ;
2176 wxColour *arg2 = 0 ;
2177 wxColour temp2 ;
2178 PyObject * obj0 = 0 ;
2179 PyObject * obj1 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self",(char *) "col", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2186 {
2187 arg2 = &temp2;
2188 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2189 }
2190 {
2191 PyThreadState* __tstate = wxPyBeginAllowThreads();
2192 (arg1)->SetColour((wxColour const &)*arg2);
2193
2194 wxPyEndAllowThreads(__tstate);
2195 if (PyErr_Occurred()) SWIG_fail;
2196 }
2197 Py_INCREF(Py_None); resultobj = Py_None;
2198 return resultobj;
2199 fail:
2200 return NULL;
2201 }
2202
2203
2204 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2205 PyObject *resultobj;
2206 wxBrush *arg1 = (wxBrush *) 0 ;
2207 int arg2 ;
2208 PyObject * obj0 = 0 ;
2209 PyObject * obj1 = 0 ;
2210 char *kwnames[] = {
2211 (char *) "self",(char *) "style", NULL
2212 };
2213
2214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2216 {
2217 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2218 if (PyErr_Occurred()) SWIG_fail;
2219 }
2220 {
2221 PyThreadState* __tstate = wxPyBeginAllowThreads();
2222 (arg1)->SetStyle(arg2);
2223
2224 wxPyEndAllowThreads(__tstate);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 Py_INCREF(Py_None); resultobj = Py_None;
2228 return resultobj;
2229 fail:
2230 return NULL;
2231 }
2232
2233
2234 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2235 PyObject *resultobj;
2236 wxBrush *arg1 = (wxBrush *) 0 ;
2237 wxBitmap *arg2 = 0 ;
2238 PyObject * obj0 = 0 ;
2239 PyObject * obj1 = 0 ;
2240 char *kwnames[] = {
2241 (char *) "self",(char *) "stipple", NULL
2242 };
2243
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2246 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2247 if (arg2 == NULL) {
2248 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2249 }
2250 {
2251 PyThreadState* __tstate = wxPyBeginAllowThreads();
2252 (arg1)->SetStipple((wxBitmap const &)*arg2);
2253
2254 wxPyEndAllowThreads(__tstate);
2255 if (PyErr_Occurred()) SWIG_fail;
2256 }
2257 Py_INCREF(Py_None); resultobj = Py_None;
2258 return resultobj;
2259 fail:
2260 return NULL;
2261 }
2262
2263
2264 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj;
2266 wxBrush *arg1 = (wxBrush *) 0 ;
2267 wxColour result;
2268 PyObject * obj0 = 0 ;
2269 char *kwnames[] = {
2270 (char *) "self", NULL
2271 };
2272
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2275 {
2276 PyThreadState* __tstate = wxPyBeginAllowThreads();
2277 result = ((wxBrush const *)arg1)->GetColour();
2278
2279 wxPyEndAllowThreads(__tstate);
2280 if (PyErr_Occurred()) SWIG_fail;
2281 }
2282 {
2283 wxColour * resultptr;
2284 resultptr = new wxColour((wxColour &) result);
2285 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2286 }
2287 return resultobj;
2288 fail:
2289 return NULL;
2290 }
2291
2292
2293 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxBrush *arg1 = (wxBrush *) 0 ;
2296 int result;
2297 PyObject * obj0 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 result = (int)((wxBrush const *)arg1)->GetStyle();
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 resultobj = SWIG_PyObj_FromInt((int)result);
2312 return resultobj;
2313 fail:
2314 return NULL;
2315 }
2316
2317
2318 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2319 PyObject *resultobj;
2320 wxBrush *arg1 = (wxBrush *) 0 ;
2321 wxBitmap *result;
2322 PyObject * obj0 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "self", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2337 return resultobj;
2338 fail:
2339 return NULL;
2340 }
2341
2342
2343 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2344 PyObject *resultobj;
2345 wxBrush *arg1 = (wxBrush *) 0 ;
2346 bool result;
2347 PyObject * obj0 = 0 ;
2348 char *kwnames[] = {
2349 (char *) "self", NULL
2350 };
2351
2352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 result = (bool)(arg1)->Ok();
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 resultobj = SWIG_PyObj_FromBool((bool)result);
2362 return resultobj;
2363 fail:
2364 return NULL;
2365 }
2366
2367
2368 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2369 PyObject *obj;
2370 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2371 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2372 Py_INCREF(obj);
2373 return Py_BuildValue((char *)"");
2374 }
2375 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2376 PyObject *resultobj;
2377 wxString *arg1 = 0 ;
2378 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2379 wxBitmap *result;
2380 bool temp1 = False ;
2381 PyObject * obj0 = 0 ;
2382 PyObject * obj1 = 0 ;
2383 char *kwnames[] = {
2384 (char *) "name",(char *) "type", NULL
2385 };
2386
2387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2388 {
2389 arg1 = wxString_in_helper(obj0);
2390 if (arg1 == NULL) SWIG_fail;
2391 temp1 = True;
2392 }
2393 if (obj1) {
2394 {
2395 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2396 if (PyErr_Occurred()) SWIG_fail;
2397 }
2398 }
2399 {
2400 PyThreadState* __tstate = wxPyBeginAllowThreads();
2401 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2402
2403 wxPyEndAllowThreads(__tstate);
2404 if (PyErr_Occurred()) SWIG_fail;
2405 }
2406 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2407 {
2408 if (temp1)
2409 delete arg1;
2410 }
2411 return resultobj;
2412 fail:
2413 {
2414 if (temp1)
2415 delete arg1;
2416 }
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 wxBitmap *arg1 = (wxBitmap *) 0 ;
2424 PyObject * obj0 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 {
2432 PyThreadState* __tstate = wxPyBeginAllowThreads();
2433 delete arg1;
2434
2435 wxPyEndAllowThreads(__tstate);
2436 if (PyErr_Occurred()) SWIG_fail;
2437 }
2438 Py_INCREF(Py_None); resultobj = Py_None;
2439 return resultobj;
2440 fail:
2441 return NULL;
2442 }
2443
2444
2445 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2446 PyObject *resultobj;
2447 int arg1 ;
2448 int arg2 ;
2449 int arg3 = (int) -1 ;
2450 wxBitmap *result;
2451 PyObject * obj0 = 0 ;
2452 PyObject * obj1 = 0 ;
2453 PyObject * obj2 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "width",(char *) "height",(char *) "depth", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2459 {
2460 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 {
2464 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 }
2467 if (obj2) {
2468 {
2469 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 }
2473 {
2474 PyThreadState* __tstate = wxPyBeginAllowThreads();
2475 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2476
2477 wxPyEndAllowThreads(__tstate);
2478 if (PyErr_Occurred()) SWIG_fail;
2479 }
2480 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2481 return resultobj;
2482 fail:
2483 return NULL;
2484 }
2485
2486
2487 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2488 PyObject *resultobj;
2489 wxIcon *arg1 = 0 ;
2490 wxBitmap *result;
2491 PyObject * obj0 = 0 ;
2492 char *kwnames[] = {
2493 (char *) "icon", NULL
2494 };
2495
2496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2498 if (arg1 == NULL) {
2499 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2500 }
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) SWIG_fail;
2507 }
2508 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2509 return resultobj;
2510 fail:
2511 return NULL;
2512 }
2513
2514
2515 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2516 PyObject *resultobj;
2517 wxImage *arg1 = 0 ;
2518 int arg2 = (int) -1 ;
2519 wxBitmap *result;
2520 PyObject * obj0 = 0 ;
2521 PyObject * obj1 = 0 ;
2522 char *kwnames[] = {
2523 (char *) "image",(char *) "depth", NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2528 if (arg1 == NULL) {
2529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2530 }
2531 if (obj1) {
2532 {
2533 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2534 if (PyErr_Occurred()) SWIG_fail;
2535 }
2536 }
2537 {
2538 PyThreadState* __tstate = wxPyBeginAllowThreads();
2539 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2540
2541 wxPyEndAllowThreads(__tstate);
2542 if (PyErr_Occurred()) SWIG_fail;
2543 }
2544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2545 return resultobj;
2546 fail:
2547 return NULL;
2548 }
2549
2550
2551 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2552 PyObject *resultobj;
2553 PyObject *arg1 = (PyObject *) 0 ;
2554 wxBitmap *result;
2555 PyObject * obj0 = 0 ;
2556 char *kwnames[] = {
2557 (char *) "listOfStrings", NULL
2558 };
2559
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2561 arg1 = obj0;
2562 {
2563 PyThreadState* __tstate = wxPyBeginAllowThreads();
2564 result = (wxBitmap *)new_wxBitmap(arg1);
2565
2566 wxPyEndAllowThreads(__tstate);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2570 return resultobj;
2571 fail:
2572 return NULL;
2573 }
2574
2575
2576 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2577 PyObject *resultobj;
2578 PyObject *arg1 = (PyObject *) 0 ;
2579 int arg2 ;
2580 int arg3 ;
2581 int arg4 = (int) 1 ;
2582 wxBitmap *result;
2583 PyObject * obj0 = 0 ;
2584 PyObject * obj1 = 0 ;
2585 PyObject * obj2 = 0 ;
2586 PyObject * obj3 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2592 arg1 = obj0;
2593 {
2594 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 {
2598 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
2601 if (obj3) {
2602 {
2603 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 }
2606 }
2607 {
2608 PyThreadState* __tstate = wxPyBeginAllowThreads();
2609 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2610
2611 wxPyEndAllowThreads(__tstate);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2615 return resultobj;
2616 fail:
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxBitmap *arg1 = (wxBitmap *) 0 ;
2624 wxPalette *arg2 = 0 ;
2625 PyObject * obj0 = 0 ;
2626 PyObject * obj1 = 0 ;
2627 char *kwnames[] = {
2628 (char *) "self",(char *) "palette", NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2633 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2634 if (arg2 == NULL) {
2635 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2636 }
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 (arg1)->SetPalette(*arg2);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 Py_INCREF(Py_None); resultobj = Py_None;
2645 return resultobj;
2646 fail:
2647 return NULL;
2648 }
2649
2650
2651 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2652 PyObject *resultobj;
2653 wxBitmap *arg1 = (wxBitmap *) 0 ;
2654 long result;
2655 PyObject * obj0 = 0 ;
2656 char *kwnames[] = {
2657 (char *) "self", NULL
2658 };
2659
2660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 result = (long)(arg1)->GetHandle();
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 resultobj = SWIG_PyObj_FromLong((long)result);
2670 return resultobj;
2671 fail:
2672 return NULL;
2673 }
2674
2675
2676 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 wxBitmap *arg1 = (wxBitmap *) 0 ;
2679 long arg2 ;
2680 PyObject * obj0 = 0 ;
2681 PyObject * obj1 = 0 ;
2682 char *kwnames[] = {
2683 (char *) "self",(char *) "handle", NULL
2684 };
2685
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2688 {
2689 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 (arg1)->SetHandle(arg2);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 Py_INCREF(Py_None); resultobj = Py_None;
2700 return resultobj;
2701 fail:
2702 return NULL;
2703 }
2704
2705
2706 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2707 PyObject *resultobj;
2708 wxBitmap *arg1 = (wxBitmap *) 0 ;
2709 bool result;
2710 PyObject * obj0 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "self", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2717 {
2718 PyThreadState* __tstate = wxPyBeginAllowThreads();
2719 result = (bool)(arg1)->Ok();
2720
2721 wxPyEndAllowThreads(__tstate);
2722 if (PyErr_Occurred()) SWIG_fail;
2723 }
2724 resultobj = SWIG_PyObj_FromBool((bool)result);
2725 return resultobj;
2726 fail:
2727 return NULL;
2728 }
2729
2730
2731 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject *resultobj;
2733 wxBitmap *arg1 = (wxBitmap *) 0 ;
2734 int result;
2735 PyObject * obj0 = 0 ;
2736 char *kwnames[] = {
2737 (char *) "self", NULL
2738 };
2739
2740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2742 {
2743 PyThreadState* __tstate = wxPyBeginAllowThreads();
2744 result = (int)(arg1)->GetWidth();
2745
2746 wxPyEndAllowThreads(__tstate);
2747 if (PyErr_Occurred()) SWIG_fail;
2748 }
2749 resultobj = SWIG_PyObj_FromInt((int)result);
2750 return resultobj;
2751 fail:
2752 return NULL;
2753 }
2754
2755
2756 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2757 PyObject *resultobj;
2758 wxBitmap *arg1 = (wxBitmap *) 0 ;
2759 int result;
2760 PyObject * obj0 = 0 ;
2761 char *kwnames[] = {
2762 (char *) "self", NULL
2763 };
2764
2765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2767 {
2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
2769 result = (int)(arg1)->GetHeight();
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) SWIG_fail;
2773 }
2774 resultobj = SWIG_PyObj_FromInt((int)result);
2775 return resultobj;
2776 fail:
2777 return NULL;
2778 }
2779
2780
2781 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2782 PyObject *resultobj;
2783 wxBitmap *arg1 = (wxBitmap *) 0 ;
2784 int result;
2785 PyObject * obj0 = 0 ;
2786 char *kwnames[] = {
2787 (char *) "self", NULL
2788 };
2789
2790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2792 {
2793 PyThreadState* __tstate = wxPyBeginAllowThreads();
2794 result = (int)(arg1)->GetDepth();
2795
2796 wxPyEndAllowThreads(__tstate);
2797 if (PyErr_Occurred()) SWIG_fail;
2798 }
2799 resultobj = SWIG_PyObj_FromInt((int)result);
2800 return resultobj;
2801 fail:
2802 return NULL;
2803 }
2804
2805
2806 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 wxBitmap *arg1 = (wxBitmap *) 0 ;
2809 SwigValueWrapper< wxImage > result;
2810 PyObject * obj0 = 0 ;
2811 char *kwnames[] = {
2812 (char *) "self", NULL
2813 };
2814
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 result = ((wxBitmap const *)arg1)->ConvertToImage();
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 {
2825 wxImage * resultptr;
2826 resultptr = new wxImage((wxImage &) result);
2827 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2828 }
2829 return resultobj;
2830 fail:
2831 return NULL;
2832 }
2833
2834
2835 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2836 PyObject *resultobj;
2837 wxBitmap *arg1 = (wxBitmap *) 0 ;
2838 wxMask *result;
2839 PyObject * obj0 = 0 ;
2840 char *kwnames[] = {
2841 (char *) "self", NULL
2842 };
2843
2844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2846 {
2847 PyThreadState* __tstate = wxPyBeginAllowThreads();
2848 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2849
2850 wxPyEndAllowThreads(__tstate);
2851 if (PyErr_Occurred()) SWIG_fail;
2852 }
2853 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2854 return resultobj;
2855 fail:
2856 return NULL;
2857 }
2858
2859
2860 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject *resultobj;
2862 wxBitmap *arg1 = (wxBitmap *) 0 ;
2863 wxMask *arg2 = (wxMask *) 0 ;
2864 PyObject * obj0 = 0 ;
2865 PyObject * obj1 = 0 ;
2866 char *kwnames[] = {
2867 (char *) "self",(char *) "mask", NULL
2868 };
2869
2870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2872 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2873 {
2874 PyThreadState* __tstate = wxPyBeginAllowThreads();
2875 (arg1)->SetMask(arg2);
2876
2877 wxPyEndAllowThreads(__tstate);
2878 if (PyErr_Occurred()) SWIG_fail;
2879 }
2880 Py_INCREF(Py_None); resultobj = Py_None;
2881 return resultobj;
2882 fail:
2883 return NULL;
2884 }
2885
2886
2887 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2888 PyObject *resultobj;
2889 wxBitmap *arg1 = (wxBitmap *) 0 ;
2890 wxColour *arg2 = 0 ;
2891 wxColour temp2 ;
2892 PyObject * obj0 = 0 ;
2893 PyObject * obj1 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self",(char *) "colour", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2900 {
2901 arg2 = &temp2;
2902 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2903 }
2904 {
2905 PyThreadState* __tstate = wxPyBeginAllowThreads();
2906 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2907
2908 wxPyEndAllowThreads(__tstate);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 Py_INCREF(Py_None); resultobj = Py_None;
2912 return resultobj;
2913 fail:
2914 return NULL;
2915 }
2916
2917
2918 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 wxBitmap *arg1 = (wxBitmap *) 0 ;
2921 wxRect *arg2 = 0 ;
2922 SwigValueWrapper< wxBitmap > result;
2923 wxRect temp2 ;
2924 PyObject * obj0 = 0 ;
2925 PyObject * obj1 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "self",(char *) "rect", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2932 {
2933 arg2 = &temp2;
2934 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2935 }
2936 {
2937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2938 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2939
2940 wxPyEndAllowThreads(__tstate);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 {
2944 wxBitmap * resultptr;
2945 resultptr = new wxBitmap((wxBitmap &) result);
2946 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2947 }
2948 return resultobj;
2949 fail:
2950 return NULL;
2951 }
2952
2953
2954 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2955 PyObject *resultobj;
2956 wxBitmap *arg1 = (wxBitmap *) 0 ;
2957 wxString *arg2 = 0 ;
2958 int arg3 ;
2959 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2960 bool result;
2961 bool temp2 = False ;
2962 PyObject * obj0 = 0 ;
2963 PyObject * obj1 = 0 ;
2964 PyObject * obj2 = 0 ;
2965 PyObject * obj3 = 0 ;
2966 char *kwnames[] = {
2967 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2968 };
2969
2970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2972 {
2973 arg2 = wxString_in_helper(obj1);
2974 if (arg2 == NULL) SWIG_fail;
2975 temp2 = True;
2976 }
2977 {
2978 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 }
2981 if (obj3) {
2982 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = SWIG_PyObj_FromBool((bool)result);
2992 {
2993 if (temp2)
2994 delete arg2;
2995 }
2996 return resultobj;
2997 fail:
2998 {
2999 if (temp2)
3000 delete arg2;
3001 }
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 wxBitmap *arg1 = (wxBitmap *) 0 ;
3009 wxString *arg2 = 0 ;
3010 int arg3 ;
3011 bool result;
3012 bool temp2 = False ;
3013 PyObject * obj0 = 0 ;
3014 PyObject * obj1 = 0 ;
3015 PyObject * obj2 = 0 ;
3016 char *kwnames[] = {
3017 (char *) "self",(char *) "name",(char *) "type", NULL
3018 };
3019
3020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3022 {
3023 arg2 = wxString_in_helper(obj1);
3024 if (arg2 == NULL) SWIG_fail;
3025 temp2 = True;
3026 }
3027 {
3028 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3029 if (PyErr_Occurred()) SWIG_fail;
3030 }
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) SWIG_fail;
3037 }
3038 resultobj = SWIG_PyObj_FromBool((bool)result);
3039 {
3040 if (temp2)
3041 delete arg2;
3042 }
3043 return resultobj;
3044 fail:
3045 {
3046 if (temp2)
3047 delete arg2;
3048 }
3049 return NULL;
3050 }
3051
3052
3053 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3054 PyObject *resultobj;
3055 wxBitmap *arg1 = (wxBitmap *) 0 ;
3056 wxIcon *arg2 = 0 ;
3057 bool result;
3058 PyObject * obj0 = 0 ;
3059 PyObject * obj1 = 0 ;
3060 char *kwnames[] = {
3061 (char *) "self",(char *) "icon", NULL
3062 };
3063
3064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3066 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3067 if (arg2 == NULL) {
3068 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3069 }
3070 {
3071 PyThreadState* __tstate = wxPyBeginAllowThreads();
3072 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3073
3074 wxPyEndAllowThreads(__tstate);
3075 if (PyErr_Occurred()) SWIG_fail;
3076 }
3077 resultobj = SWIG_PyObj_FromBool((bool)result);
3078 return resultobj;
3079 fail:
3080 return NULL;
3081 }
3082
3083
3084 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3085 PyObject *resultobj;
3086 wxBitmap *arg1 = (wxBitmap *) 0 ;
3087 int arg2 ;
3088 PyObject * obj0 = 0 ;
3089 PyObject * obj1 = 0 ;
3090 char *kwnames[] = {
3091 (char *) "self",(char *) "height", NULL
3092 };
3093
3094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3096 {
3097 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3098 if (PyErr_Occurred()) SWIG_fail;
3099 }
3100 {
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 (arg1)->SetHeight(arg2);
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) SWIG_fail;
3106 }
3107 Py_INCREF(Py_None); resultobj = Py_None;
3108 return resultobj;
3109 fail:
3110 return NULL;
3111 }
3112
3113
3114 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3115 PyObject *resultobj;
3116 wxBitmap *arg1 = (wxBitmap *) 0 ;
3117 int arg2 ;
3118 PyObject * obj0 = 0 ;
3119 PyObject * obj1 = 0 ;
3120 char *kwnames[] = {
3121 (char *) "self",(char *) "width", NULL
3122 };
3123
3124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3126 {
3127 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3128 if (PyErr_Occurred()) SWIG_fail;
3129 }
3130 {
3131 PyThreadState* __tstate = wxPyBeginAllowThreads();
3132 (arg1)->SetWidth(arg2);
3133
3134 wxPyEndAllowThreads(__tstate);
3135 if (PyErr_Occurred()) SWIG_fail;
3136 }
3137 Py_INCREF(Py_None); resultobj = Py_None;
3138 return resultobj;
3139 fail:
3140 return NULL;
3141 }
3142
3143
3144 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject *resultobj;
3146 wxBitmap *arg1 = (wxBitmap *) 0 ;
3147 int arg2 ;
3148 PyObject * obj0 = 0 ;
3149 PyObject * obj1 = 0 ;
3150 char *kwnames[] = {
3151 (char *) "self",(char *) "depth", NULL
3152 };
3153
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3156 {
3157 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 (arg1)->SetDepth(arg2);
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 Py_INCREF(Py_None); resultobj = Py_None;
3168 return resultobj;
3169 fail:
3170 return NULL;
3171 }
3172
3173
3174 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxBitmap *arg1 = (wxBitmap *) 0 ;
3177 wxCursor *arg2 = 0 ;
3178 bool result;
3179 PyObject * obj0 = 0 ;
3180 PyObject * obj1 = 0 ;
3181 char *kwnames[] = {
3182 (char *) "self",(char *) "cursor", NULL
3183 };
3184
3185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3187 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3188 if (arg2 == NULL) {
3189 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3190 }
3191 {
3192 PyThreadState* __tstate = wxPyBeginAllowThreads();
3193 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3194
3195 wxPyEndAllowThreads(__tstate);
3196 if (PyErr_Occurred()) SWIG_fail;
3197 }
3198 resultobj = SWIG_PyObj_FromBool((bool)result);
3199 return resultobj;
3200 fail:
3201 return NULL;
3202 }
3203
3204
3205 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3206 PyObject *resultobj;
3207 wxBitmap *arg1 = (wxBitmap *) 0 ;
3208 int result;
3209 PyObject * obj0 = 0 ;
3210 char *kwnames[] = {
3211 (char *) "self", NULL
3212 };
3213
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 result = (int)(arg1)->GetQuality();
3219
3220 wxPyEndAllowThreads(__tstate);
3221 if (PyErr_Occurred()) SWIG_fail;
3222 }
3223 resultobj = SWIG_PyObj_FromInt((int)result);
3224 return resultobj;
3225 fail:
3226 return NULL;
3227 }
3228
3229
3230 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3231 PyObject *resultobj;
3232 wxBitmap *arg1 = (wxBitmap *) 0 ;
3233 int arg2 ;
3234 PyObject * obj0 = 0 ;
3235 PyObject * obj1 = 0 ;
3236 char *kwnames[] = {
3237 (char *) "self",(char *) "q", NULL
3238 };
3239
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3242 {
3243 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3244 if (PyErr_Occurred()) SWIG_fail;
3245 }
3246 {
3247 PyThreadState* __tstate = wxPyBeginAllowThreads();
3248 (arg1)->SetQuality(arg2);
3249
3250 wxPyEndAllowThreads(__tstate);
3251 if (PyErr_Occurred()) SWIG_fail;
3252 }
3253 Py_INCREF(Py_None); resultobj = Py_None;
3254 return resultobj;
3255 fail:
3256 return NULL;
3257 }
3258
3259
3260 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3261 PyObject *obj;
3262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3263 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3264 Py_INCREF(obj);
3265 return Py_BuildValue((char *)"");
3266 }
3267 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3268 PyObject *resultobj;
3269 wxBitmap *arg1 = 0 ;
3270 wxMask *result;
3271 PyObject * obj0 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "bitmap", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3278 if (arg1 == NULL) {
3279 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3280 }
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = 0 ;
3298 wxColour *arg2 = 0 ;
3299 wxMask *result;
3300 wxColour temp2 ;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303 char *kwnames[] = {
3304 (char *) "bitmap",(char *) "colour", NULL
3305 };
3306
3307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3309 if (arg1 == NULL) {
3310 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3311 }
3312 {
3313 arg2 = &temp2;
3314 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3315 }
3316 {
3317 PyThreadState* __tstate = wxPyBeginAllowThreads();
3318 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3319
3320 wxPyEndAllowThreads(__tstate);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 }
3323 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3324 return resultobj;
3325 fail:
3326 return NULL;
3327 }
3328
3329
3330 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3331 PyObject *obj;
3332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3333 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3334 Py_INCREF(obj);
3335 return Py_BuildValue((char *)"");
3336 }
3337 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3338 PyObject *resultobj;
3339 wxString *arg1 = 0 ;
3340 int arg2 ;
3341 int arg3 = (int) -1 ;
3342 int arg4 = (int) -1 ;
3343 wxIcon *result;
3344 bool temp1 = False ;
3345 PyObject * obj0 = 0 ;
3346 PyObject * obj1 = 0 ;
3347 PyObject * obj2 = 0 ;
3348 PyObject * obj3 = 0 ;
3349 char *kwnames[] = {
3350 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3351 };
3352
3353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3354 {
3355 arg1 = wxString_in_helper(obj0);
3356 if (arg1 == NULL) SWIG_fail;
3357 temp1 = True;
3358 }
3359 {
3360 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 }
3363 if (obj2) {
3364 {
3365 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3366 if (PyErr_Occurred()) SWIG_fail;
3367 }
3368 }
3369 if (obj3) {
3370 {
3371 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3372 if (PyErr_Occurred()) SWIG_fail;
3373 }
3374 }
3375 {
3376 PyThreadState* __tstate = wxPyBeginAllowThreads();
3377 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3378
3379 wxPyEndAllowThreads(__tstate);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3383 {
3384 if (temp1)
3385 delete arg1;
3386 }
3387 return resultobj;
3388 fail:
3389 {
3390 if (temp1)
3391 delete arg1;
3392 }
3393 return NULL;
3394 }
3395
3396
3397 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj;
3399 wxIcon *arg1 = (wxIcon *) 0 ;
3400 PyObject * obj0 = 0 ;
3401 char *kwnames[] = {
3402 (char *) "self", NULL
3403 };
3404
3405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 delete arg1;
3410
3411 wxPyEndAllowThreads(__tstate);
3412 if (PyErr_Occurred()) SWIG_fail;
3413 }
3414 Py_INCREF(Py_None); resultobj = Py_None;
3415 return resultobj;
3416 fail:
3417 return NULL;
3418 }
3419
3420
3421 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3422 PyObject *resultobj;
3423 wxIcon *result;
3424 char *kwnames[] = {
3425 NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (wxIcon *)new wxIcon();
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3437 return resultobj;
3438 fail:
3439 return NULL;
3440 }
3441
3442
3443 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3444 PyObject *resultobj;
3445 wxIconLocation *arg1 = 0 ;
3446 wxIcon *result;
3447 PyObject * obj0 = 0 ;
3448 char *kwnames[] = {
3449 (char *) "loc", NULL
3450 };
3451
3452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3454 if (arg1 == NULL) {
3455 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3456 }
3457 {
3458 PyThreadState* __tstate = wxPyBeginAllowThreads();
3459 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3460
3461 wxPyEndAllowThreads(__tstate);
3462 if (PyErr_Occurred()) SWIG_fail;
3463 }
3464 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3465 return resultobj;
3466 fail:
3467 return NULL;
3468 }
3469
3470
3471 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3472 PyObject *resultobj;
3473 wxBitmap *arg1 = 0 ;
3474 wxIcon *result;
3475 PyObject * obj0 = 0 ;
3476 char *kwnames[] = {
3477 (char *) "bmp", NULL
3478 };
3479
3480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3482 if (arg1 == NULL) {
3483 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3484 }
3485 {
3486 PyThreadState* __tstate = wxPyBeginAllowThreads();
3487 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3488
3489 wxPyEndAllowThreads(__tstate);
3490 if (PyErr_Occurred()) SWIG_fail;
3491 }
3492 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3493 return resultobj;
3494 fail:
3495 return NULL;
3496 }
3497
3498
3499 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3500 PyObject *resultobj;
3501 PyObject *arg1 = (PyObject *) 0 ;
3502 wxIcon *result;
3503 PyObject * obj0 = 0 ;
3504 char *kwnames[] = {
3505 (char *) "listOfStrings", NULL
3506 };
3507
3508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3509 arg1 = obj0;
3510 {
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (wxIcon *)new_wxIcon(arg1);
3513
3514 wxPyEndAllowThreads(__tstate);
3515 if (PyErr_Occurred()) SWIG_fail;
3516 }
3517 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3518 return resultobj;
3519 fail:
3520 return NULL;
3521 }
3522
3523
3524 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3525 PyObject *resultobj;
3526 wxIcon *arg1 = (wxIcon *) 0 ;
3527 wxString *arg2 = 0 ;
3528 int arg3 ;
3529 bool result;
3530 bool temp2 = False ;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 PyObject * obj2 = 0 ;
3534 char *kwnames[] = {
3535 (char *) "self",(char *) "name",(char *) "type", NULL
3536 };
3537
3538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3540 {
3541 arg2 = wxString_in_helper(obj1);
3542 if (arg2 == NULL) SWIG_fail;
3543 temp2 = True;
3544 }
3545 {
3546 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 {
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3552
3553 wxPyEndAllowThreads(__tstate);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 resultobj = SWIG_PyObj_FromBool((bool)result);
3557 {
3558 if (temp2)
3559 delete arg2;
3560 }
3561 return resultobj;
3562 fail:
3563 {
3564 if (temp2)
3565 delete arg2;
3566 }
3567 return NULL;
3568 }
3569
3570
3571 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3572 PyObject *resultobj;
3573 wxIcon *arg1 = (wxIcon *) 0 ;
3574 long result;
3575 PyObject * obj0 = 0 ;
3576 char *kwnames[] = {
3577 (char *) "self", NULL
3578 };
3579
3580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3582 {
3583 PyThreadState* __tstate = wxPyBeginAllowThreads();
3584 result = (long)(arg1)->GetHandle();
3585
3586 wxPyEndAllowThreads(__tstate);
3587 if (PyErr_Occurred()) SWIG_fail;
3588 }
3589 resultobj = SWIG_PyObj_FromLong((long)result);
3590 return resultobj;
3591 fail:
3592 return NULL;
3593 }
3594
3595
3596 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3597 PyObject *resultobj;
3598 wxIcon *arg1 = (wxIcon *) 0 ;
3599 long arg2 ;
3600 PyObject * obj0 = 0 ;
3601 PyObject * obj1 = 0 ;
3602 char *kwnames[] = {
3603 (char *) "self",(char *) "handle", NULL
3604 };
3605
3606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3608 {
3609 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 }
3612 {
3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
3614 (arg1)->SetHandle(arg2);
3615
3616 wxPyEndAllowThreads(__tstate);
3617 if (PyErr_Occurred()) SWIG_fail;
3618 }
3619 Py_INCREF(Py_None); resultobj = Py_None;
3620 return resultobj;
3621 fail:
3622 return NULL;
3623 }
3624
3625
3626 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3627 PyObject *resultobj;
3628 wxIcon *arg1 = (wxIcon *) 0 ;
3629 bool result;
3630 PyObject * obj0 = 0 ;
3631 char *kwnames[] = {
3632 (char *) "self", NULL
3633 };
3634
3635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 result = (bool)(arg1)->Ok();
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 resultobj = SWIG_PyObj_FromBool((bool)result);
3645 return resultobj;
3646 fail:
3647 return NULL;
3648 }
3649
3650
3651 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxIcon *arg1 = (wxIcon *) 0 ;
3654 int result;
3655 PyObject * obj0 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "self", NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 result = (int)(arg1)->GetWidth();
3665
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
3669 resultobj = SWIG_PyObj_FromInt((int)result);
3670 return resultobj;
3671 fail:
3672 return NULL;
3673 }
3674
3675
3676 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject *resultobj;
3678 wxIcon *arg1 = (wxIcon *) 0 ;
3679 int result;
3680 PyObject * obj0 = 0 ;
3681 char *kwnames[] = {
3682 (char *) "self", NULL
3683 };
3684
3685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3687 {
3688 PyThreadState* __tstate = wxPyBeginAllowThreads();
3689 result = (int)(arg1)->GetHeight();
3690
3691 wxPyEndAllowThreads(__tstate);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 resultobj = SWIG_PyObj_FromInt((int)result);
3695 return resultobj;
3696 fail:
3697 return NULL;
3698 }
3699
3700
3701 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3702 PyObject *resultobj;
3703 wxIcon *arg1 = (wxIcon *) 0 ;
3704 int result;
3705 PyObject * obj0 = 0 ;
3706 char *kwnames[] = {
3707 (char *) "self", NULL
3708 };
3709
3710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3712 {
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (int)(arg1)->GetDepth();
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_PyObj_FromInt((int)result);
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3727 PyObject *resultobj;
3728 wxIcon *arg1 = (wxIcon *) 0 ;
3729 int arg2 ;
3730 PyObject * obj0 = 0 ;
3731 PyObject * obj1 = 0 ;
3732 char *kwnames[] = {
3733 (char *) "self",(char *) "w", NULL
3734 };
3735
3736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3738 {
3739 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 (arg1)->SetWidth(arg2);
3745
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 Py_INCREF(Py_None); resultobj = Py_None;
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj;
3758 wxIcon *arg1 = (wxIcon *) 0 ;
3759 int arg2 ;
3760 PyObject * obj0 = 0 ;
3761 PyObject * obj1 = 0 ;
3762 char *kwnames[] = {
3763 (char *) "self",(char *) "h", NULL
3764 };
3765
3766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3768 {
3769 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 }
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 (arg1)->SetHeight(arg2);
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 Py_INCREF(Py_None); resultobj = Py_None;
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxIcon *arg1 = (wxIcon *) 0 ;
3789 int arg2 ;
3790 PyObject * obj0 = 0 ;
3791 PyObject * obj1 = 0 ;
3792 char *kwnames[] = {
3793 (char *) "self",(char *) "d", NULL
3794 };
3795
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3798 {
3799 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
3804 (arg1)->SetDepth(arg2);
3805
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 Py_INCREF(Py_None); resultobj = Py_None;
3810 return resultobj;
3811 fail:
3812 return NULL;
3813 }
3814
3815
3816 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj;
3818 wxIcon *arg1 = (wxIcon *) 0 ;
3819 wxSize *arg2 = 0 ;
3820 wxSize temp2 ;
3821 PyObject * obj0 = 0 ;
3822 PyObject * obj1 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "self",(char *) "size", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
3828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3829 {
3830 arg2 = &temp2;
3831 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3832 }
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
3835 (arg1)->SetSize((wxSize const &)*arg2);
3836
3837 wxPyEndAllowThreads(__tstate);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 Py_INCREF(Py_None); resultobj = Py_None;
3841 return resultobj;
3842 fail:
3843 return NULL;
3844 }
3845
3846
3847 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3848 PyObject *resultobj;
3849 wxIcon *arg1 = (wxIcon *) 0 ;
3850 wxBitmap *arg2 = 0 ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 char *kwnames[] = {
3854 (char *) "self",(char *) "bmp", NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3859 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3860 if (arg2 == NULL) {
3861 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3862 }
3863 {
3864 PyThreadState* __tstate = wxPyBeginAllowThreads();
3865 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3866
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 Py_INCREF(Py_None); resultobj = Py_None;
3871 return resultobj;
3872 fail:
3873 return NULL;
3874 }
3875
3876
3877 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3878 PyObject *obj;
3879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3880 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3881 Py_INCREF(obj);
3882 return Py_BuildValue((char *)"");
3883 }
3884 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj;
3886 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3887 int arg2 = (int) 0 ;
3888 wxIconLocation *result;
3889 bool temp1 = False ;
3890 PyObject * obj0 = 0 ;
3891 PyObject * obj1 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "filename",(char *) "num", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3897 if (obj0) {
3898 {
3899 arg1 = wxString_in_helper(obj0);
3900 if (arg1 == NULL) SWIG_fail;
3901 temp1 = True;
3902 }
3903 }
3904 if (obj1) {
3905 {
3906 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 }
3910 {
3911 PyThreadState* __tstate = wxPyBeginAllowThreads();
3912 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3913
3914 wxPyEndAllowThreads(__tstate);
3915 if (PyErr_Occurred()) SWIG_fail;
3916 }
3917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3918 {
3919 if (temp1)
3920 delete arg1;
3921 }
3922 return resultobj;
3923 fail:
3924 {
3925 if (temp1)
3926 delete arg1;
3927 }
3928 return NULL;
3929 }
3930
3931
3932 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3933 PyObject *resultobj;
3934 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3935 PyObject * obj0 = 0 ;
3936 char *kwnames[] = {
3937 (char *) "self", NULL
3938 };
3939
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 delete arg1;
3945
3946 wxPyEndAllowThreads(__tstate);
3947 if (PyErr_Occurred()) SWIG_fail;
3948 }
3949 Py_INCREF(Py_None); resultobj = Py_None;
3950 return resultobj;
3951 fail:
3952 return NULL;
3953 }
3954
3955
3956 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj;
3958 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3959 bool result;
3960 PyObject * obj0 = 0 ;
3961 char *kwnames[] = {
3962 (char *) "self", NULL
3963 };
3964
3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 resultobj = SWIG_PyObj_FromBool((bool)result);
3975 return resultobj;
3976 fail:
3977 return NULL;
3978 }
3979
3980
3981 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3982 PyObject *resultobj;
3983 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3984 wxString *arg2 = 0 ;
3985 bool temp2 = False ;
3986 PyObject * obj0 = 0 ;
3987 PyObject * obj1 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "self",(char *) "filename", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3994 {
3995 arg2 = wxString_in_helper(obj1);
3996 if (arg2 == NULL) SWIG_fail;
3997 temp2 = True;
3998 }
3999 {
4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
4001 (arg1)->SetFileName((wxString const &)*arg2);
4002
4003 wxPyEndAllowThreads(__tstate);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 }
4006 Py_INCREF(Py_None); resultobj = Py_None;
4007 {
4008 if (temp2)
4009 delete arg2;
4010 }
4011 return resultobj;
4012 fail:
4013 {
4014 if (temp2)
4015 delete arg2;
4016 }
4017 return NULL;
4018 }
4019
4020
4021 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4022 PyObject *resultobj;
4023 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4024 wxString *result;
4025 PyObject * obj0 = 0 ;
4026 char *kwnames[] = {
4027 (char *) "self", NULL
4028 };
4029
4030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 {
4035 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4036 result = (wxString *) &_result_ref;
4037 }
4038
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 {
4043 #if wxUSE_UNICODE
4044 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4045 #else
4046 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4047 #endif
4048 }
4049 return resultobj;
4050 fail:
4051 return NULL;
4052 }
4053
4054
4055 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4056 PyObject *resultobj;
4057 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4058 int arg2 ;
4059 PyObject * obj0 = 0 ;
4060 PyObject * obj1 = 0 ;
4061 char *kwnames[] = {
4062 (char *) "self",(char *) "num", NULL
4063 };
4064
4065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4067 {
4068 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 wxIconLocation_SetIndex(arg1,arg2);
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 Py_INCREF(Py_None); resultobj = Py_None;
4079 return resultobj;
4080 fail:
4081 return NULL;
4082 }
4083
4084
4085 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4086 PyObject *resultobj;
4087 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4088 int result;
4089 PyObject * obj0 = 0 ;
4090 char *kwnames[] = {
4091 (char *) "self", NULL
4092 };
4093
4094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (int)wxIconLocation_GetIndex(arg1);
4099
4100 wxPyEndAllowThreads(__tstate);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 resultobj = SWIG_PyObj_FromInt((int)result);
4104 return resultobj;
4105 fail:
4106 return NULL;
4107 }
4108
4109
4110 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4111 PyObject *obj;
4112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4113 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4114 Py_INCREF(obj);
4115 return Py_BuildValue((char *)"");
4116 }
4117 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4118 PyObject *resultobj;
4119 wxIconBundle *result;
4120 char *kwnames[] = {
4121 NULL
4122 };
4123
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4125 {
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 result = (wxIconBundle *)new wxIconBundle();
4128
4129 wxPyEndAllowThreads(__tstate);
4130 if (PyErr_Occurred()) SWIG_fail;
4131 }
4132 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4133 return resultobj;
4134 fail:
4135 return NULL;
4136 }
4137
4138
4139 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4140 PyObject *resultobj;
4141 wxString *arg1 = 0 ;
4142 long arg2 ;
4143 wxIconBundle *result;
4144 bool temp1 = False ;
4145 PyObject * obj0 = 0 ;
4146 PyObject * obj1 = 0 ;
4147 char *kwnames[] = {
4148 (char *) "file",(char *) "type", NULL
4149 };
4150
4151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4152 {
4153 arg1 = wxString_in_helper(obj0);
4154 if (arg1 == NULL) SWIG_fail;
4155 temp1 = True;
4156 }
4157 {
4158 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4169 {
4170 if (temp1)
4171 delete arg1;
4172 }
4173 return resultobj;
4174 fail:
4175 {
4176 if (temp1)
4177 delete arg1;
4178 }
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 wxIcon *arg1 = 0 ;
4186 wxIconBundle *result;
4187 PyObject * obj0 = 0 ;
4188 char *kwnames[] = {
4189 (char *) "icon", NULL
4190 };
4191
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4194 if (arg1 == NULL) {
4195 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4196 }
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4205 return resultobj;
4206 fail:
4207 return NULL;
4208 }
4209
4210
4211 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj;
4213 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4214 PyObject * obj0 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 delete arg1;
4224
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 Py_INCREF(Py_None); resultobj = Py_None;
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4238 wxIcon *arg2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 char *kwnames[] = {
4242 (char *) "self",(char *) "icon", NULL
4243 };
4244
4245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4247 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4248 if (arg2 == NULL) {
4249 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4250 }
4251 {
4252 PyThreadState* __tstate = wxPyBeginAllowThreads();
4253 (arg1)->AddIcon((wxIcon const &)*arg2);
4254
4255 wxPyEndAllowThreads(__tstate);
4256 if (PyErr_Occurred()) SWIG_fail;
4257 }
4258 Py_INCREF(Py_None); resultobj = Py_None;
4259 return resultobj;
4260 fail:
4261 return NULL;
4262 }
4263
4264
4265 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4266 PyObject *resultobj;
4267 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4268 wxString *arg2 = 0 ;
4269 long arg3 ;
4270 bool temp2 = False ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 PyObject * obj2 = 0 ;
4274 char *kwnames[] = {
4275 (char *) "self",(char *) "file",(char *) "type", NULL
4276 };
4277
4278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4280 {
4281 arg2 = wxString_in_helper(obj1);
4282 if (arg2 == NULL) SWIG_fail;
4283 temp2 = True;
4284 }
4285 {
4286 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4287 if (PyErr_Occurred()) SWIG_fail;
4288 }
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4292
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 Py_INCREF(Py_None); resultobj = Py_None;
4297 {
4298 if (temp2)
4299 delete arg2;
4300 }
4301 return resultobj;
4302 fail:
4303 {
4304 if (temp2)
4305 delete arg2;
4306 }
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4314 wxSize *arg2 = 0 ;
4315 wxIcon *result;
4316 wxSize temp2 ;
4317 PyObject * obj0 = 0 ;
4318 PyObject * obj1 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self",(char *) "size", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4325 {
4326 arg2 = &temp2;
4327 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4328 }
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
4331 {
4332 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4333 result = (wxIcon *) &_result_ref;
4334 }
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4347 PyObject *obj;
4348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4349 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4350 Py_INCREF(obj);
4351 return Py_BuildValue((char *)"");
4352 }
4353 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject *resultobj;
4355 wxString *arg1 = (wxString *) 0 ;
4356 long arg2 ;
4357 int arg3 = (int) 0 ;
4358 int arg4 = (int) 0 ;
4359 wxCursor *result;
4360 bool temp1 = False ;
4361 PyObject * obj0 = 0 ;
4362 PyObject * obj1 = 0 ;
4363 PyObject * obj2 = 0 ;
4364 PyObject * obj3 = 0 ;
4365 char *kwnames[] = {
4366 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4367 };
4368
4369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4370 {
4371 arg1 = wxString_in_helper(obj0);
4372 if (arg1 == NULL) SWIG_fail;
4373 temp1 = True;
4374 }
4375 {
4376 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 if (obj2) {
4380 {
4381 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 }
4385 if (obj3) {
4386 {
4387 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 }
4391 {
4392 PyThreadState* __tstate = wxPyBeginAllowThreads();
4393 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4394
4395 wxPyEndAllowThreads(__tstate);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4399 {
4400 if (temp1)
4401 delete arg1;
4402 }
4403 return resultobj;
4404 fail:
4405 {
4406 if (temp1)
4407 delete arg1;
4408 }
4409 return NULL;
4410 }
4411
4412
4413 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4414 PyObject *resultobj;
4415 wxCursor *arg1 = (wxCursor *) 0 ;
4416 PyObject * obj0 = 0 ;
4417 char *kwnames[] = {
4418 (char *) "self", NULL
4419 };
4420
4421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 delete arg1;
4426
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 Py_INCREF(Py_None); resultobj = Py_None;
4431 return resultobj;
4432 fail:
4433 return NULL;
4434 }
4435
4436
4437 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4438 PyObject *resultobj;
4439 int arg1 ;
4440 wxCursor *result;
4441 PyObject * obj0 = 0 ;
4442 char *kwnames[] = {
4443 (char *) "id", NULL
4444 };
4445
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4447 {
4448 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (wxCursor *)new wxCursor(arg1);
4454
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj;
4467 wxImage *arg1 = 0 ;
4468 wxCursor *result;
4469 PyObject * obj0 = 0 ;
4470 char *kwnames[] = {
4471 (char *) "image", NULL
4472 };
4473
4474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4476 if (arg1 == NULL) {
4477 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4478 }
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4487 return resultobj;
4488 fail:
4489 return NULL;
4490 }
4491
4492
4493 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj;
4495 PyObject *arg1 = (PyObject *) 0 ;
4496 int arg2 ;
4497 int arg3 ;
4498 int arg4 = (int) -1 ;
4499 int arg5 = (int) -1 ;
4500 PyObject *arg6 = (PyObject *) 0 ;
4501 wxCursor *result;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 PyObject * obj2 = 0 ;
4505 PyObject * obj3 = 0 ;
4506 PyObject * obj4 = 0 ;
4507 PyObject * obj5 = 0 ;
4508 char *kwnames[] = {
4509 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4513 arg1 = obj0;
4514 {
4515 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 {
4519 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 if (obj3) {
4523 {
4524 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 }
4528 if (obj4) {
4529 {
4530 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 }
4534 if (obj5) {
4535 arg6 = obj5;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
4539 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4540
4541 wxPyEndAllowThreads(__tstate);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4545 return resultobj;
4546 fail:
4547 return NULL;
4548 }
4549
4550
4551 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4552 PyObject *resultobj;
4553 wxCursor *arg1 = (wxCursor *) 0 ;
4554 long result;
4555 PyObject * obj0 = 0 ;
4556 char *kwnames[] = {
4557 (char *) "self", NULL
4558 };
4559
4560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 result = (long)(arg1)->GetHandle();
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 resultobj = SWIG_PyObj_FromLong((long)result);
4570 return resultobj;
4571 fail:
4572 return NULL;
4573 }
4574
4575
4576 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj;
4578 wxCursor *arg1 = (wxCursor *) 0 ;
4579 long arg2 ;
4580 PyObject * obj0 = 0 ;
4581 PyObject * obj1 = 0 ;
4582 char *kwnames[] = {
4583 (char *) "self",(char *) "handle", NULL
4584 };
4585
4586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4588 {
4589 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 (arg1)->SetHandle(arg2);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 Py_INCREF(Py_None); resultobj = Py_None;
4600 return resultobj;
4601 fail:
4602 return NULL;
4603 }
4604
4605
4606 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj;
4608 wxCursor *arg1 = (wxCursor *) 0 ;
4609 bool result;
4610 PyObject * obj0 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "self", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (bool)(arg1)->Ok();
4620
4621 wxPyEndAllowThreads(__tstate);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 resultobj = SWIG_PyObj_FromBool((bool)result);
4625 return resultobj;
4626 fail:
4627 return NULL;
4628 }
4629
4630
4631 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4632 PyObject *resultobj;
4633 wxCursor *arg1 = (wxCursor *) 0 ;
4634 int result;
4635 PyObject * obj0 = 0 ;
4636 char *kwnames[] = {
4637 (char *) "self", NULL
4638 };
4639
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 result = (int)(arg1)->GetWidth();
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 resultobj = SWIG_PyObj_FromInt((int)result);
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 wxCursor *arg1 = (wxCursor *) 0 ;
4659 int result;
4660 PyObject * obj0 = 0 ;
4661 char *kwnames[] = {
4662 (char *) "self", NULL
4663 };
4664
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (int)(arg1)->GetHeight();
4670
4671 wxPyEndAllowThreads(__tstate);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 }
4674 resultobj = SWIG_PyObj_FromInt((int)result);
4675 return resultobj;
4676 fail:
4677 return NULL;
4678 }
4679
4680
4681 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4682 PyObject *resultobj;
4683 wxCursor *arg1 = (wxCursor *) 0 ;
4684 int result;
4685 PyObject * obj0 = 0 ;
4686 char *kwnames[] = {
4687 (char *) "self", NULL
4688 };
4689
4690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 result = (int)(arg1)->GetDepth();
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = SWIG_PyObj_FromInt((int)result);
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4707 PyObject *resultobj;
4708 wxCursor *arg1 = (wxCursor *) 0 ;
4709 int arg2 ;
4710 PyObject * obj0 = 0 ;
4711 PyObject * obj1 = 0 ;
4712 char *kwnames[] = {
4713 (char *) "self",(char *) "w", NULL
4714 };
4715
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4718 {
4719 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 (arg1)->SetWidth(arg2);
4725
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 Py_INCREF(Py_None); resultobj = Py_None;
4730 return resultobj;
4731 fail:
4732 return NULL;
4733 }
4734
4735
4736 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4737 PyObject *resultobj;
4738 wxCursor *arg1 = (wxCursor *) 0 ;
4739 int arg2 ;
4740 PyObject * obj0 = 0 ;
4741 PyObject * obj1 = 0 ;
4742 char *kwnames[] = {
4743 (char *) "self",(char *) "h", NULL
4744 };
4745
4746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4748 {
4749 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 (arg1)->SetHeight(arg2);
4755
4756 wxPyEndAllowThreads(__tstate);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 Py_INCREF(Py_None); resultobj = Py_None;
4760 return resultobj;
4761 fail:
4762 return NULL;
4763 }
4764
4765
4766 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj;
4768 wxCursor *arg1 = (wxCursor *) 0 ;
4769 int arg2 ;
4770 PyObject * obj0 = 0 ;
4771 PyObject * obj1 = 0 ;
4772 char *kwnames[] = {
4773 (char *) "self",(char *) "d", NULL
4774 };
4775
4776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4778 {
4779 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 {
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 (arg1)->SetDepth(arg2);
4785
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 Py_INCREF(Py_None); resultobj = Py_None;
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 wxCursor *arg1 = (wxCursor *) 0 ;
4799 wxSize *arg2 = 0 ;
4800 wxSize temp2 ;
4801 PyObject * obj0 = 0 ;
4802 PyObject * obj1 = 0 ;
4803 char *kwnames[] = {
4804 (char *) "self",(char *) "size", NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4809 {
4810 arg2 = &temp2;
4811 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4812 }
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 (arg1)->SetSize((wxSize const &)*arg2);
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 Py_INCREF(Py_None); resultobj = Py_None;
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4828 PyObject *obj;
4829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4830 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4831 Py_INCREF(obj);
4832 return Py_BuildValue((char *)"");
4833 }
4834 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj;
4836 int arg1 = (int) 0 ;
4837 int arg2 = (int) 0 ;
4838 int arg3 = (int) 0 ;
4839 int arg4 = (int) 0 ;
4840 wxRegion *result;
4841 PyObject * obj0 = 0 ;
4842 PyObject * obj1 = 0 ;
4843 PyObject * obj2 = 0 ;
4844 PyObject * obj3 = 0 ;
4845 char *kwnames[] = {
4846 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4847 };
4848
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4850 if (obj0) {
4851 {
4852 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 }
4856 if (obj1) {
4857 {
4858 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 }
4862 if (obj2) {
4863 {
4864 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 }
4868 if (obj3) {
4869 {
4870 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 }
4874 {
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4877
4878 wxPyEndAllowThreads(__tstate);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4882 return resultobj;
4883 fail:
4884 return NULL;
4885 }
4886
4887
4888 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4889 PyObject *resultobj;
4890 wxBitmap *arg1 = 0 ;
4891 wxColour const &arg2_defvalue = wxNullColour ;
4892 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4893 int arg3 = (int) 0 ;
4894 wxRegion *result;
4895 wxColour temp2 ;
4896 PyObject * obj0 = 0 ;
4897 PyObject * obj1 = 0 ;
4898 PyObject * obj2 = 0 ;
4899 char *kwnames[] = {
4900 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4901 };
4902
4903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4905 if (arg1 == NULL) {
4906 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4907 }
4908 if (obj1) {
4909 {
4910 arg2 = &temp2;
4911 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4912 }
4913 }
4914 if (obj2) {
4915 {
4916 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 }
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4923
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4935 PyObject *resultobj;
4936 int arg1 ;
4937 wxPoint *arg2 = (wxPoint *) 0 ;
4938 int arg3 = (int) wxWINDING_RULE ;
4939 wxRegion *result;
4940 PyObject * obj0 = 0 ;
4941 PyObject * obj1 = 0 ;
4942 char *kwnames[] = {
4943 (char *) "points",(char *) "fillStyle", NULL
4944 };
4945
4946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4947 {
4948 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4949 if (arg2 == NULL) SWIG_fail;
4950 }
4951 if (obj1) {
4952 {
4953 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 }
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4960
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4965 {
4966 if (arg2) delete [] arg2;
4967 }
4968 return resultobj;
4969 fail:
4970 {
4971 if (arg2) delete [] arg2;
4972 }
4973 return NULL;
4974 }
4975
4976
4977 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj;
4979 wxRegion *arg1 = (wxRegion *) 0 ;
4980 PyObject * obj0 = 0 ;
4981 char *kwnames[] = {
4982 (char *) "self", NULL
4983 };
4984
4985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 delete arg1;
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 Py_INCREF(Py_None); resultobj = Py_None;
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj;
5003 wxRegion *arg1 = (wxRegion *) 0 ;
5004 PyObject * obj0 = 0 ;
5005 char *kwnames[] = {
5006 (char *) "self", NULL
5007 };
5008
5009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 (arg1)->Clear();
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 Py_INCREF(Py_None); resultobj = Py_None;
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxRegion *arg1 = (wxRegion *) 0 ;
5028 int arg2 ;
5029 int arg3 ;
5030 bool result;
5031 PyObject * obj0 = 0 ;
5032 PyObject * obj1 = 0 ;
5033 PyObject * obj2 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self",(char *) "x",(char *) "y", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5040 {
5041 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 {
5045 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 {
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = (bool)(arg1)->Offset(arg2,arg3);
5051
5052 wxPyEndAllowThreads(__tstate);
5053 if (PyErr_Occurred()) SWIG_fail;
5054 }
5055 resultobj = SWIG_PyObj_FromBool((bool)result);
5056 return resultobj;
5057 fail:
5058 return NULL;
5059 }
5060
5061
5062 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj;
5064 wxRegion *arg1 = (wxRegion *) 0 ;
5065 int arg2 ;
5066 int arg3 ;
5067 int result;
5068 PyObject * obj0 = 0 ;
5069 PyObject * obj1 = 0 ;
5070 PyObject * obj2 = 0 ;
5071 char *kwnames[] = {
5072 (char *) "self",(char *) "x",(char *) "y", NULL
5073 };
5074
5075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5077 {
5078 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 {
5082 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 result = (int)(arg1)->Contains(arg2,arg3);
5088
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 resultobj = SWIG_PyObj_FromInt((int)result);
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj;
5101 wxRegion *arg1 = (wxRegion *) 0 ;
5102 wxPoint *arg2 = 0 ;
5103 int result;
5104 wxPoint temp2 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self",(char *) "pt", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5113 {
5114 arg2 = &temp2;
5115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5116 }
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5120
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = SWIG_PyObj_FromInt((int)result);
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj;
5133 wxRegion *arg1 = (wxRegion *) 0 ;
5134 wxRect *arg2 = 0 ;
5135 int result;
5136 wxRect temp2 ;
5137 PyObject * obj0 = 0 ;
5138 PyObject * obj1 = 0 ;
5139 char *kwnames[] = {
5140 (char *) "self",(char *) "rect", NULL
5141 };
5142
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5145 {
5146 arg2 = &temp2;
5147 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5148 }
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 }
5156 resultobj = SWIG_PyObj_FromInt((int)result);
5157 return resultobj;
5158 fail:
5159 return NULL;
5160 }
5161
5162
5163 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5164 PyObject *resultobj;
5165 wxRegion *arg1 = (wxRegion *) 0 ;
5166 int arg2 ;
5167 int arg3 ;
5168 int arg4 ;
5169 int arg5 ;
5170 int result;
5171 PyObject * obj0 = 0 ;
5172 PyObject * obj1 = 0 ;
5173 PyObject * obj2 = 0 ;
5174 PyObject * obj3 = 0 ;
5175 PyObject * obj4 = 0 ;
5176 char *kwnames[] = {
5177 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5178 };
5179
5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5182 {
5183 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 {
5187 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 {
5191 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 {
5195 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5201
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_PyObj_FromInt((int)result);
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxRegion *arg1 = (wxRegion *) 0 ;
5215 wxRect result;
5216 PyObject * obj0 = 0 ;
5217 char *kwnames[] = {
5218 (char *) "self", NULL
5219 };
5220
5221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (arg1)->GetBox();
5226
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 {
5231 wxRect * resultptr;
5232 resultptr = new wxRect((wxRect &) result);
5233 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5234 }
5235 return resultobj;
5236 fail:
5237 return NULL;
5238 }
5239
5240
5241 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 wxRegion *arg1 = (wxRegion *) 0 ;
5244 int arg2 ;
5245 int arg3 ;
5246 int arg4 ;
5247 int arg5 ;
5248 bool result;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 PyObject * obj2 = 0 ;
5252 PyObject * obj3 = 0 ;
5253 PyObject * obj4 = 0 ;
5254 char *kwnames[] = {
5255 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5256 };
5257
5258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5260 {
5261 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 {
5265 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 {
5269 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 {
5273 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_PyObj_FromBool((bool)result);
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj;
5292 wxRegion *arg1 = (wxRegion *) 0 ;
5293 wxRect *arg2 = 0 ;
5294 bool result;
5295 wxRect temp2 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char *kwnames[] = {
5299 (char *) "self",(char *) "rect", NULL
5300 };
5301
5302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5304 {
5305 arg2 = &temp2;
5306 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5307 }
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5311
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 resultobj = SWIG_PyObj_FromBool((bool)result);
5316 return resultobj;
5317 fail:
5318 return NULL;
5319 }
5320
5321
5322 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxRegion *arg1 = (wxRegion *) 0 ;
5325 wxRegion *arg2 = 0 ;
5326 bool result;
5327 PyObject * obj0 = 0 ;
5328 PyObject * obj1 = 0 ;
5329 char *kwnames[] = {
5330 (char *) "self",(char *) "region", NULL
5331 };
5332
5333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5335 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5336 if (arg2 == NULL) {
5337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5338 }
5339 {
5340 PyThreadState* __tstate = wxPyBeginAllowThreads();
5341 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5342
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_PyObj_FromBool((bool)result);
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj;
5355 wxRegion *arg1 = (wxRegion *) 0 ;
5356 bool result;
5357 PyObject * obj0 = 0 ;
5358 char *kwnames[] = {
5359 (char *) "self", NULL
5360 };
5361
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (bool)(arg1)->IsEmpty();
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_PyObj_FromBool((bool)result);
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxRegion *arg1 = (wxRegion *) 0 ;
5381 int arg2 ;
5382 int arg3 ;
5383 int arg4 ;
5384 int arg5 ;
5385 bool result;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 PyObject * obj2 = 0 ;
5389 PyObject * obj3 = 0 ;
5390 PyObject * obj4 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5397 {
5398 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5399 if (PyErr_Occurred()) SWIG_fail;
5400 }
5401 {
5402 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 {
5406 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 {
5410 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_PyObj_FromBool((bool)result);
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxRegion *arg1 = (wxRegion *) 0 ;
5430 wxRect *arg2 = 0 ;
5431 bool result;
5432 wxRect temp2 ;
5433 PyObject * obj0 = 0 ;
5434 PyObject * obj1 = 0 ;
5435 char *kwnames[] = {
5436 (char *) "self",(char *) "rect", NULL
5437 };
5438
5439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5441 {
5442 arg2 = &temp2;
5443 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5444 }
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5448
5449 wxPyEndAllowThreads(__tstate);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 }
5452 resultobj = SWIG_PyObj_FromBool((bool)result);
5453 return resultobj;
5454 fail:
5455 return NULL;
5456 }
5457
5458
5459 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj;
5461 wxRegion *arg1 = (wxRegion *) 0 ;
5462 wxRegion *arg2 = 0 ;
5463 bool result;
5464 PyObject * obj0 = 0 ;
5465 PyObject * obj1 = 0 ;
5466 char *kwnames[] = {
5467 (char *) "self",(char *) "region", NULL
5468 };
5469
5470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5472 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5473 if (arg2 == NULL) {
5474 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5475 }
5476 {
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5479
5480 wxPyEndAllowThreads(__tstate);
5481 if (PyErr_Occurred()) SWIG_fail;
5482 }
5483 resultobj = SWIG_PyObj_FromBool((bool)result);
5484 return resultobj;
5485 fail:
5486 return NULL;
5487 }
5488
5489
5490 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5491 PyObject *resultobj;
5492 wxRegion *arg1 = (wxRegion *) 0 ;
5493 int arg2 ;
5494 int arg3 ;
5495 int arg4 ;
5496 int arg5 ;
5497 bool result;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 PyObject * obj2 = 0 ;
5501 PyObject * obj3 = 0 ;
5502 PyObject * obj4 = 0 ;
5503 char *kwnames[] = {
5504 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5505 };
5506
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5509 {
5510 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 {
5514 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 {
5518 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 {
5522 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 {
5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
5527 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5528
5529 wxPyEndAllowThreads(__tstate);
5530 if (PyErr_Occurred()) SWIG_fail;
5531 }
5532 resultobj = SWIG_PyObj_FromBool((bool)result);
5533 return resultobj;
5534 fail:
5535 return NULL;
5536 }
5537
5538
5539 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5540 PyObject *resultobj;
5541 wxRegion *arg1 = (wxRegion *) 0 ;
5542 wxRect *arg2 = 0 ;
5543 bool result;
5544 wxRect temp2 ;
5545 PyObject * obj0 = 0 ;
5546 PyObject * obj1 = 0 ;
5547 char *kwnames[] = {
5548 (char *) "self",(char *) "rect", NULL
5549 };
5550
5551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5553 {
5554 arg2 = &temp2;
5555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5556 }
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 resultobj = SWIG_PyObj_FromBool((bool)result);
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5572 PyObject *resultobj;
5573 wxRegion *arg1 = (wxRegion *) 0 ;
5574 wxRegion *arg2 = 0 ;
5575 bool result;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 char *kwnames[] = {
5579 (char *) "self",(char *) "region", NULL
5580 };
5581
5582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5584 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5585 if (arg2 == NULL) {
5586 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5587 }
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 resultobj = SWIG_PyObj_FromBool((bool)result);
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj;
5604 wxRegion *arg1 = (wxRegion *) 0 ;
5605 int arg2 ;
5606 int arg3 ;
5607 int arg4 ;
5608 int arg5 ;
5609 bool result;
5610 PyObject * obj0 = 0 ;
5611 PyObject * obj1 = 0 ;
5612 PyObject * obj2 = 0 ;
5613 PyObject * obj3 = 0 ;
5614 PyObject * obj4 = 0 ;
5615 char *kwnames[] = {
5616 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5617 };
5618
5619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5621 {
5622 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 {
5626 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 {
5630 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_PyObj_FromBool((bool)result);
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5652 PyObject *resultobj;
5653 wxRegion *arg1 = (wxRegion *) 0 ;
5654 wxRect *arg2 = 0 ;
5655 bool result;
5656 wxRect temp2 ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self",(char *) "rect", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5665 {
5666 arg2 = &temp2;
5667 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5668 }
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5672
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_PyObj_FromBool((bool)result);
5677 return resultobj;
5678 fail:
5679 return NULL;
5680 }
5681
5682
5683 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5684 PyObject *resultobj;
5685 wxRegion *arg1 = (wxRegion *) 0 ;
5686 wxRegion *arg2 = 0 ;
5687 bool result;
5688 PyObject * obj0 = 0 ;
5689 PyObject * obj1 = 0 ;
5690 char *kwnames[] = {
5691 (char *) "self",(char *) "region", NULL
5692 };
5693
5694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5696 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5697 if (arg2 == NULL) {
5698 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5699 }
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 resultobj = SWIG_PyObj_FromBool((bool)result);
5708 return resultobj;
5709 fail:
5710 return NULL;
5711 }
5712
5713
5714 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5715 PyObject *resultobj;
5716 wxRegion *arg1 = (wxRegion *) 0 ;
5717 SwigValueWrapper< wxBitmap > result;
5718 PyObject * obj0 = 0 ;
5719 char *kwnames[] = {
5720 (char *) "self", NULL
5721 };
5722
5723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5725 {
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (arg1)->ConvertToBitmap();
5728
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 wxBitmap * resultptr;
5734 resultptr = new wxBitmap((wxBitmap &) result);
5735 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5736 }
5737 return resultobj;
5738 fail:
5739 return NULL;
5740 }
5741
5742
5743 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5744 PyObject *resultobj;
5745 wxRegion *arg1 = (wxRegion *) 0 ;
5746 wxBitmap *arg2 = 0 ;
5747 wxColour const &arg3_defvalue = wxNullColour ;
5748 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5749 int arg4 = (int) 0 ;
5750 bool result;
5751 wxColour temp3 ;
5752 PyObject * obj0 = 0 ;
5753 PyObject * obj1 = 0 ;
5754 PyObject * obj2 = 0 ;
5755 PyObject * obj3 = 0 ;
5756 char *kwnames[] = {
5757 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5758 };
5759
5760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5762 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5763 if (arg2 == NULL) {
5764 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5765 }
5766 if (obj2) {
5767 {
5768 arg3 = &temp3;
5769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5770 }
5771 }
5772 if (obj3) {
5773 {
5774 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5775 if (PyErr_Occurred()) SWIG_fail;
5776 }
5777 }
5778 {
5779 PyThreadState* __tstate = wxPyBeginAllowThreads();
5780 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5781
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_PyObj_FromBool((bool)result);
5786 return resultobj;
5787 fail:
5788 return NULL;
5789 }
5790
5791
5792 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5793 PyObject *obj;
5794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5795 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5796 Py_INCREF(obj);
5797 return Py_BuildValue((char *)"");
5798 }
5799 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj;
5801 wxRegion *arg1 = 0 ;
5802 wxRegionIterator *result;
5803 PyObject * obj0 = 0 ;
5804 char *kwnames[] = {
5805 (char *) "region", NULL
5806 };
5807
5808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5810 if (arg1 == NULL) {
5811 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5812 }
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5816
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5830 PyObject * obj0 = 0 ;
5831 char *kwnames[] = {
5832 (char *) "self", NULL
5833 };
5834
5835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5837 {
5838 PyThreadState* __tstate = wxPyBeginAllowThreads();
5839 delete arg1;
5840
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 Py_INCREF(Py_None); resultobj = Py_None;
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj;
5853 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5854 int result;
5855 PyObject * obj0 = 0 ;
5856 char *kwnames[] = {
5857 (char *) "self", NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5862 {
5863 PyThreadState* __tstate = wxPyBeginAllowThreads();
5864 result = (int)(arg1)->GetX();
5865
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_PyObj_FromInt((int)result);
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj;
5878 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5879 int result;
5880 PyObject * obj0 = 0 ;
5881 char *kwnames[] = {
5882 (char *) "self", NULL
5883 };
5884
5885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 result = (int)(arg1)->GetY();
5890
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_PyObj_FromInt((int)result);
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj;
5903 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5904 int result;
5905 PyObject * obj0 = 0 ;
5906 char *kwnames[] = {
5907 (char *) "self", NULL
5908 };
5909
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5912 {
5913 PyThreadState* __tstate = wxPyBeginAllowThreads();
5914 result = (int)(arg1)->GetW();
5915
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_PyObj_FromInt((int)result);
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5929 int result;
5930 PyObject * obj0 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "self", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 result = (int)(arg1)->GetWidth();
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 resultobj = SWIG_PyObj_FromInt((int)result);
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5954 int result;
5955 PyObject * obj0 = 0 ;
5956 char *kwnames[] = {
5957 (char *) "self", NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 result = (int)(arg1)->GetH();
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 resultobj = SWIG_PyObj_FromInt((int)result);
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5979 int result;
5980 PyObject * obj0 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (int)(arg1)->GetHeight();
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 resultobj = SWIG_PyObj_FromInt((int)result);
5995 return resultobj;
5996 fail:
5997 return NULL;
5998 }
5999
6000
6001 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6002 PyObject *resultobj;
6003 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6004 wxRect result;
6005 PyObject * obj0 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "self", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (arg1)->GetRect();
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 {
6020 wxRect * resultptr;
6021 resultptr = new wxRect((wxRect &) result);
6022 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
6023 }
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6031 PyObject *resultobj;
6032 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6033 bool result;
6034 PyObject * obj0 = 0 ;
6035 char *kwnames[] = {
6036 (char *) "self", NULL
6037 };
6038
6039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 result = (bool)(arg1)->HaveRects();
6044
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 resultobj = SWIG_PyObj_FromBool((bool)result);
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj;
6057 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6058 PyObject * obj0 = 0 ;
6059 char *kwnames[] = {
6060 (char *) "self", NULL
6061 };
6062
6063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 (arg1)->Reset();
6068
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 Py_INCREF(Py_None); resultobj = Py_None;
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6080 PyObject *resultobj;
6081 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6082 PyObject * obj0 = 0 ;
6083 char *kwnames[] = {
6084 (char *) "self", NULL
6085 };
6086
6087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 wxRegionIterator_Next(arg1);
6092
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 Py_INCREF(Py_None); resultobj = Py_None;
6097 return resultobj;
6098 fail:
6099 return NULL;
6100 }
6101
6102
6103 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6104 PyObject *resultobj;
6105 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6106 bool result;
6107 PyObject * obj0 = 0 ;
6108 char *kwnames[] = {
6109 (char *) "self", NULL
6110 };
6111
6112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6114 {
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (bool)wxRegionIterator___nonzero__(arg1);
6117
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_PyObj_FromBool((bool)result);
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6129 PyObject *obj;
6130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6131 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6132 Py_INCREF(obj);
6133 return Py_BuildValue((char *)"");
6134 }
6135 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6136 PyObject *resultobj;
6137 wxNativeFontInfo *result;
6138 char *kwnames[] = {
6139 NULL
6140 };
6141
6142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6160 PyObject * obj0 = 0 ;
6161 char *kwnames[] = {
6162 (char *) "self", NULL
6163 };
6164
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 delete arg1;
6170
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 Py_INCREF(Py_None); resultobj = Py_None;
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj;
6183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6184 PyObject * obj0 = 0 ;
6185 char *kwnames[] = {
6186 (char *) "self", NULL
6187 };
6188
6189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6191 {
6192 PyThreadState* __tstate = wxPyBeginAllowThreads();
6193 (arg1)->Init();
6194
6195 wxPyEndAllowThreads(__tstate);
6196 if (PyErr_Occurred()) SWIG_fail;
6197 }
6198 Py_INCREF(Py_None); resultobj = Py_None;
6199 return resultobj;
6200 fail:
6201 return NULL;
6202 }
6203
6204
6205 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6206 PyObject *resultobj;
6207 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6208 wxFont *arg2 = 0 ;
6209 PyObject * obj0 = 0 ;
6210 PyObject * obj1 = 0 ;
6211 char *kwnames[] = {
6212 (char *) "self",(char *) "font", NULL
6213 };
6214
6215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6217 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6218 if (arg2 == NULL) {
6219 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6220 }
6221 {
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 (arg1)->InitFromFont((wxFont const &)*arg2);
6224
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 Py_INCREF(Py_None); resultobj = Py_None;
6229 return resultobj;
6230 fail:
6231 return NULL;
6232 }
6233
6234
6235 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6236 PyObject *resultobj;
6237 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6238 int result;
6239 PyObject * obj0 = 0 ;
6240 char *kwnames[] = {
6241 (char *) "self", NULL
6242 };
6243
6244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6246 {
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6249
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_PyObj_FromInt((int)result);
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj;
6262 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6263 int result;
6264 PyObject * obj0 = 0 ;
6265 char *kwnames[] = {
6266 (char *) "self", NULL
6267 };
6268
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6274
6275 wxPyEndAllowThreads(__tstate);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 resultobj = SWIG_PyObj_FromInt((int)result);
6279 return resultobj;
6280 fail:
6281 return NULL;
6282 }
6283
6284
6285 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6286 PyObject *resultobj;
6287 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6288 int result;
6289 PyObject * obj0 = 0 ;
6290 char *kwnames[] = {
6291 (char *) "self", NULL
6292 };
6293
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6296 {
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6299
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 resultobj = SWIG_PyObj_FromInt((int)result);
6304 return resultobj;
6305 fail:
6306 return NULL;
6307 }
6308
6309
6310 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6311 PyObject *resultobj;
6312 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6313 bool result;
6314 PyObject * obj0 = 0 ;
6315 char *kwnames[] = {
6316 (char *) "self", NULL
6317 };
6318
6319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_PyObj_FromBool((bool)result);
6329 return resultobj;
6330 fail:
6331 return NULL;
6332 }
6333
6334
6335 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj;
6337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6338 wxString result;
6339 PyObject * obj0 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self", NULL
6342 };
6343
6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6346 {
6347 PyThreadState* __tstate = wxPyBeginAllowThreads();
6348 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6349
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 {
6354 #if wxUSE_UNICODE
6355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6356 #else
6357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6358 #endif
6359 }
6360 return resultobj;
6361 fail:
6362 return NULL;
6363 }
6364
6365
6366 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj;
6368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6369 int result;
6370 PyObject * obj0 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_PyObj_FromInt((int)result);
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6392 PyObject *resultobj;
6393 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6394 int result;
6395 PyObject * obj0 = 0 ;
6396 char *kwnames[] = {
6397 (char *) "self", NULL
6398 };
6399
6400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6402 {
6403 PyThreadState* __tstate = wxPyBeginAllowThreads();
6404 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6405
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 resultobj = SWIG_PyObj_FromInt((int)result);
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj;
6418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6419 int arg2 ;
6420 PyObject * obj0 = 0 ;
6421 PyObject * obj1 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self",(char *) "pointsize", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6428 {
6429 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 PyThreadState* __tstate = wxPyBeginAllowThreads();
6434 (arg1)->SetPointSize(arg2);
6435
6436 wxPyEndAllowThreads(__tstate);
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 Py_INCREF(Py_None); resultobj = Py_None;
6440 return resultobj;
6441 fail:
6442 return NULL;
6443 }
6444
6445
6446 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6447 PyObject *resultobj;
6448 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6449 int arg2 ;
6450 PyObject * obj0 = 0 ;
6451 PyObject * obj1 = 0 ;
6452 char *kwnames[] = {
6453 (char *) "self",(char *) "style", NULL
6454 };
6455
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6458 {
6459 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 (arg1)->SetStyle((wxFontStyle )arg2);
6465
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 Py_INCREF(Py_None); resultobj = Py_None;
6470 return resultobj;
6471 fail:
6472 return NULL;
6473 }
6474
6475
6476 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj;
6478 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6479 int arg2 ;
6480 PyObject * obj0 = 0 ;
6481 PyObject * obj1 = 0 ;
6482 char *kwnames[] = {
6483 (char *) "self",(char *) "weight", NULL
6484 };
6485
6486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6488 {
6489 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
6490 if (PyErr_Occurred()) SWIG_fail;
6491 }
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 (arg1)->SetWeight((wxFontWeight )arg2);
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 Py_INCREF(Py_None); resultobj = Py_None;
6500 return resultobj;
6501 fail:
6502 return NULL;
6503 }
6504
6505
6506 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6507 PyObject *resultobj;
6508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6509 bool arg2 ;
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self",(char *) "underlined", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6518 {
6519 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 {
6523 PyThreadState* __tstate = wxPyBeginAllowThreads();
6524 (arg1)->SetUnderlined(arg2);
6525
6526 wxPyEndAllowThreads(__tstate);
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 Py_INCREF(Py_None); resultobj = Py_None;
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj;
6538 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6539 wxString arg2 ;
6540 PyObject * obj0 = 0 ;
6541 PyObject * obj1 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self",(char *) "facename", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6548 {
6549 wxString* sptr = wxString_in_helper(obj1);
6550 if (sptr == NULL) SWIG_fail;
6551 arg2 = *sptr;
6552 delete sptr;
6553 }
6554 {
6555 PyThreadState* __tstate = wxPyBeginAllowThreads();
6556 (arg1)->SetFaceName(arg2);
6557
6558 wxPyEndAllowThreads(__tstate);
6559 if (PyErr_Occurred()) SWIG_fail;
6560 }
6561 Py_INCREF(Py_None); resultobj = Py_None;
6562 return resultobj;
6563 fail:
6564 return NULL;
6565 }
6566
6567
6568 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject *resultobj;
6570 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6571 int arg2 ;
6572 PyObject * obj0 = 0 ;
6573 PyObject * obj1 = 0 ;
6574 char *kwnames[] = {
6575 (char *) "self",(char *) "family", NULL
6576 };
6577
6578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6580 {
6581 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 (arg1)->SetFamily((wxFontFamily )arg2);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 Py_INCREF(Py_None); resultobj = Py_None;
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6599 PyObject *resultobj;
6600 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6601 int arg2 ;
6602 PyObject * obj0 = 0 ;
6603 PyObject * obj1 = 0 ;
6604 char *kwnames[] = {
6605 (char *) "self",(char *) "encoding", NULL
6606 };
6607
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6610 {
6611 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 {
6615 PyThreadState* __tstate = wxPyBeginAllowThreads();
6616 (arg1)->SetEncoding((wxFontEncoding )arg2);
6617
6618 wxPyEndAllowThreads(__tstate);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 Py_INCREF(Py_None); resultobj = Py_None;
6622 return resultobj;
6623 fail:
6624 return NULL;
6625 }
6626
6627
6628 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj;
6630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6631 wxString *arg2 = 0 ;
6632 bool result;
6633 bool temp2 = False ;
6634 PyObject * obj0 = 0 ;
6635 PyObject * obj1 = 0 ;
6636 char *kwnames[] = {
6637 (char *) "self",(char *) "s", NULL
6638 };
6639
6640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6642 {
6643 arg2 = wxString_in_helper(obj1);
6644 if (arg2 == NULL) SWIG_fail;
6645 temp2 = True;
6646 }
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6650
6651 wxPyEndAllowThreads(__tstate);
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 resultobj = SWIG_PyObj_FromBool((bool)result);
6655 {
6656 if (temp2)
6657 delete arg2;
6658 }
6659 return resultobj;
6660 fail:
6661 {
6662 if (temp2)
6663 delete arg2;
6664 }
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6672 wxString result;
6673 PyObject * obj0 = 0 ;
6674 char *kwnames[] = {
6675 (char *) "self", NULL
6676 };
6677
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6680 {
6681 PyThreadState* __tstate = wxPyBeginAllowThreads();
6682 result = ((wxNativeFontInfo const *)arg1)->ToString();
6683
6684 wxPyEndAllowThreads(__tstate);
6685 if (PyErr_Occurred()) SWIG_fail;
6686 }
6687 {
6688 #if wxUSE_UNICODE
6689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6690 #else
6691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6692 #endif
6693 }
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6701 PyObject *resultobj;
6702 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6703 wxString result;
6704 PyObject * obj0 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "self", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = wxNativeFontInfo___str__(arg1);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 {
6719 #if wxUSE_UNICODE
6720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6721 #else
6722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6723 #endif
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj;
6733 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6734 wxString *arg2 = 0 ;
6735 bool result;
6736 bool temp2 = False ;
6737 PyObject * obj0 = 0 ;
6738 PyObject * obj1 = 0 ;
6739 char *kwnames[] = {
6740 (char *) "self",(char *) "s", NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6745 {
6746 arg2 = wxString_in_helper(obj1);
6747 if (arg2 == NULL) SWIG_fail;
6748 temp2 = True;
6749 }
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_PyObj_FromBool((bool)result);
6758 {
6759 if (temp2)
6760 delete arg2;
6761 }
6762 return resultobj;
6763 fail:
6764 {
6765 if (temp2)
6766 delete arg2;
6767 }
6768 return NULL;
6769 }
6770
6771
6772 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj;
6774 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6775 wxString result;
6776 PyObject * obj0 = 0 ;
6777 char *kwnames[] = {
6778 (char *) "self", NULL
6779 };
6780
6781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 {
6791 #if wxUSE_UNICODE
6792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6793 #else
6794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6795 #endif
6796 }
6797 return resultobj;
6798 fail:
6799 return NULL;
6800 }
6801
6802
6803 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6804 PyObject *obj;
6805 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6806 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6807 Py_INCREF(obj);
6808 return Py_BuildValue((char *)"");
6809 }
6810 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj;
6812 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6813 wxString *arg2 = (wxString *) 0 ;
6814 bool temp2 = False ;
6815 PyObject * obj0 = 0 ;
6816 PyObject * obj1 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self",(char *) "facename", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6823 {
6824 arg2 = wxString_in_helper(obj1);
6825 if (arg2 == NULL) SWIG_fail;
6826 temp2 = True;
6827 }
6828 if (arg1) (arg1)->facename = *arg2;
6829
6830 Py_INCREF(Py_None); resultobj = Py_None;
6831 {
6832 if (temp2)
6833 delete arg2;
6834 }
6835 return resultobj;
6836 fail:
6837 {
6838 if (temp2)
6839 delete arg2;
6840 }
6841 return NULL;
6842 }
6843
6844
6845 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6848 wxString *result;
6849 PyObject * obj0 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6856 result = (wxString *)& ((arg1)->facename);
6857
6858 {
6859 #if wxUSE_UNICODE
6860 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6861 #else
6862 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6863 #endif
6864 }
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6874 int arg2 ;
6875 PyObject * obj0 = 0 ;
6876 PyObject * obj1 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "self",(char *) "encoding", NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6883 {
6884 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6888
6889 Py_INCREF(Py_None); resultobj = Py_None;
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6899 int result;
6900 PyObject * obj0 = 0 ;
6901 char *kwnames[] = {
6902 (char *) "self", NULL
6903 };
6904
6905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6907 result = (int) ((arg1)->encoding);
6908
6909 resultobj = SWIG_PyObj_FromInt((int)result);
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj;
6918 wxNativeEncodingInfo *result;
6919 char *kwnames[] = {
6920 NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6924 {
6925 PyThreadState* __tstate = wxPyBeginAllowThreads();
6926 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6927
6928 wxPyEndAllowThreads(__tstate);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6932 return resultobj;
6933 fail:
6934 return NULL;
6935 }
6936
6937
6938 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6939 PyObject *resultobj;
6940 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6941 PyObject * obj0 = 0 ;
6942 char *kwnames[] = {
6943 (char *) "self", NULL
6944 };
6945
6946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 delete arg1;
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 Py_INCREF(Py_None); resultobj = Py_None;
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6965 wxString *arg2 = 0 ;
6966 bool result;
6967 bool temp2 = False ;
6968 PyObject * obj0 = 0 ;
6969 PyObject * obj1 = 0 ;
6970 char *kwnames[] = {
6971 (char *) "self",(char *) "s", NULL
6972 };
6973
6974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6976 {
6977 arg2 = wxString_in_helper(obj1);
6978 if (arg2 == NULL) SWIG_fail;
6979 temp2 = True;
6980 }
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 resultobj = SWIG_PyObj_FromBool((bool)result);
6989 {
6990 if (temp2)
6991 delete arg2;
6992 }
6993 return resultobj;
6994 fail:
6995 {
6996 if (temp2)
6997 delete arg2;
6998 }
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7006 wxString result;
7007 PyObject * obj0 = 0 ;
7008 char *kwnames[] = {
7009 (char *) "self", NULL
7010 };
7011
7012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7017
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 {
7022 #if wxUSE_UNICODE
7023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7024 #else
7025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7026 #endif
7027 }
7028 return resultobj;
7029 fail:
7030 return NULL;
7031 }
7032
7033
7034 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7035 PyObject *obj;
7036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7037 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7038 Py_INCREF(obj);
7039 return Py_BuildValue((char *)"");
7040 }
7041 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 int arg1 ;
7044 wxNativeEncodingInfo *result;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "encoding", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7051 {
7052 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 {
7056 PyThreadState* __tstate = wxPyBeginAllowThreads();
7057 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7058
7059 wxPyEndAllowThreads(__tstate);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
7063 return resultobj;
7064 fail:
7065 return NULL;
7066 }
7067
7068
7069 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj;
7071 wxNativeEncodingInfo *arg1 = 0 ;
7072 bool result;
7073 PyObject * obj0 = 0 ;
7074 char *kwnames[] = {
7075 (char *) "info", NULL
7076 };
7077
7078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7080 if (arg1 == NULL) {
7081 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7082 }
7083 {
7084 PyThreadState* __tstate = wxPyBeginAllowThreads();
7085 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7086
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 resultobj = SWIG_PyObj_FromBool((bool)result);
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7098 PyObject *resultobj;
7099 wxFontMapper *result;
7100 char *kwnames[] = {
7101 NULL
7102 };
7103
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7105 {
7106 PyThreadState* __tstate = wxPyBeginAllowThreads();
7107 result = (wxFontMapper *)new wxFontMapper();
7108
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
7113 return resultobj;
7114 fail:
7115 return NULL;
7116 }
7117
7118
7119 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7120 PyObject *resultobj;
7121 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7122 PyObject * obj0 = 0 ;
7123 char *kwnames[] = {
7124 (char *) "self", NULL
7125 };
7126
7127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 delete arg1;
7132
7133 wxPyEndAllowThreads(__tstate);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 Py_INCREF(Py_None); resultobj = Py_None;
7137 return resultobj;
7138 fail:
7139 return NULL;
7140 }
7141
7142
7143 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7144 PyObject *resultobj;
7145 wxFontMapper *result;
7146 char *kwnames[] = {
7147 NULL
7148 };
7149
7150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7151 {
7152 PyThreadState* __tstate = wxPyBeginAllowThreads();
7153 result = (wxFontMapper *)wxFontMapper::Get();
7154
7155 wxPyEndAllowThreads(__tstate);
7156 if (PyErr_Occurred()) SWIG_fail;
7157 }
7158 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7159 return resultobj;
7160 fail:
7161 return NULL;
7162 }
7163
7164
7165 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7166 PyObject *resultobj;
7167 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7168 wxFontMapper *result;
7169 PyObject * obj0 = 0 ;
7170 char *kwnames[] = {
7171 (char *) "mapper", NULL
7172 };
7173
7174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7193 wxString *arg2 = 0 ;
7194 bool arg3 = (bool) True ;
7195 int result;
7196 bool temp2 = False ;
7197 PyObject * obj0 = 0 ;
7198 PyObject * obj1 = 0 ;
7199 PyObject * obj2 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7206 {
7207 arg2 = wxString_in_helper(obj1);
7208 if (arg2 == NULL) SWIG_fail;
7209 temp2 = True;
7210 }
7211 if (obj2) {
7212 {
7213 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 }
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7220
7221 wxPyEndAllowThreads(__tstate);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 resultobj = SWIG_PyObj_FromInt((int)result);
7225 {
7226 if (temp2)
7227 delete arg2;
7228 }
7229 return resultobj;
7230 fail:
7231 {
7232 if (temp2)
7233 delete arg2;
7234 }
7235 return NULL;
7236 }
7237
7238
7239 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7240 PyObject *resultobj;
7241 size_t result;
7242 char *kwnames[] = {
7243 NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 size_t arg1 ;
7264 int result;
7265 PyObject * obj0 = 0 ;
7266 char *kwnames[] = {
7267 (char *) "n", NULL
7268 };
7269
7270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7271 {
7272 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 }
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (int)wxFontMapper::GetEncoding(arg1);
7278
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_PyObj_FromInt((int)result);
7283 return resultobj;
7284 fail:
7285 return NULL;
7286 }
7287
7288
7289 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7290 PyObject *resultobj;
7291 int arg1 ;
7292 wxString result;
7293 PyObject * obj0 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "encoding", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7299 {
7300 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 {
7311 #if wxUSE_UNICODE
7312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7313 #else
7314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7315 #endif
7316 }
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 int arg1 ;
7326 wxString result;
7327 PyObject * obj0 = 0 ;
7328 char *kwnames[] = {
7329 (char *) "encoding", NULL
7330 };
7331
7332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7333 {
7334 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 {
7338 PyThreadState* __tstate = wxPyBeginAllowThreads();
7339 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7340
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 #if wxUSE_UNICODE
7346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7347 #else
7348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7349 #endif
7350 }
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj;
7359 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7360 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7361 PyObject * obj0 = 0 ;
7362 PyObject * obj1 = 0 ;
7363 char *kwnames[] = {
7364 (char *) "self",(char *) "config", NULL
7365 };
7366
7367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7369 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7370 {
7371 PyThreadState* __tstate = wxPyBeginAllowThreads();
7372 (arg1)->SetConfig(arg2);
7373
7374 wxPyEndAllowThreads(__tstate);
7375 if (PyErr_Occurred()) SWIG_fail;
7376 }
7377 Py_INCREF(Py_None); resultobj = Py_None;
7378 return resultobj;
7379 fail:
7380 return NULL;
7381 }
7382
7383
7384 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject *resultobj;
7386 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7387 wxString *arg2 = 0 ;
7388 bool temp2 = False ;
7389 PyObject * obj0 = 0 ;
7390 PyObject * obj1 = 0 ;
7391 char *kwnames[] = {
7392 (char *) "self",(char *) "prefix", NULL
7393 };
7394
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7397 {
7398 arg2 = wxString_in_helper(obj1);
7399 if (arg2 == NULL) SWIG_fail;
7400 temp2 = True;
7401 }
7402 {
7403 PyThreadState* __tstate = wxPyBeginAllowThreads();
7404 (arg1)->SetConfigPath((wxString const &)*arg2);
7405
7406 wxPyEndAllowThreads(__tstate);
7407 if (PyErr_Occurred()) SWIG_fail;
7408 }
7409 Py_INCREF(Py_None); resultobj = Py_None;
7410 {
7411 if (temp2)
7412 delete arg2;
7413 }
7414 return resultobj;
7415 fail:
7416 {
7417 if (temp2)
7418 delete arg2;
7419 }
7420 return NULL;
7421 }
7422
7423
7424 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj;
7426 wxString result;
7427 char *kwnames[] = {
7428 NULL
7429 };
7430
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7432 {
7433 PyThreadState* __tstate = wxPyBeginAllowThreads();
7434 result = wxFontMapper::GetDefaultConfigPath();
7435
7436 wxPyEndAllowThreads(__tstate);
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 {
7440 #if wxUSE_UNICODE
7441 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7442 #else
7443 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7444 #endif
7445 }
7446 return resultobj;
7447 fail:
7448 return NULL;
7449 }
7450
7451
7452 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7453 PyObject *resultobj;
7454 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7455 int arg2 ;
7456 wxString const &arg3_defvalue = wxPyEmptyString ;
7457 wxString *arg3 = (wxString *) &arg3_defvalue ;
7458 bool arg4 = (bool) True ;
7459 PyObject *result;
7460 bool temp3 = False ;
7461 PyObject * obj0 = 0 ;
7462 PyObject * obj1 = 0 ;
7463 PyObject * obj2 = 0 ;
7464 PyObject * obj3 = 0 ;
7465 char *kwnames[] = {
7466 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7467 };
7468
7469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7471 {
7472 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 if (obj2) {
7476 {
7477 arg3 = wxString_in_helper(obj2);
7478 if (arg3 == NULL) SWIG_fail;
7479 temp3 = True;
7480 }
7481 }
7482 if (obj3) {
7483 {
7484 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 }
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = result;
7496 {
7497 if (temp3)
7498 delete arg3;
7499 }
7500 return resultobj;
7501 fail:
7502 {
7503 if (temp3)
7504 delete arg3;
7505 }
7506 return NULL;
7507 }
7508
7509
7510 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7511 PyObject *resultobj;
7512 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7513 int arg2 ;
7514 wxString const &arg3_defvalue = wxPyEmptyString ;
7515 wxString *arg3 = (wxString *) &arg3_defvalue ;
7516 bool result;
7517 bool temp3 = False ;
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj1 = 0 ;
7520 PyObject * obj2 = 0 ;
7521 char *kwnames[] = {
7522 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7523 };
7524
7525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7527 {
7528 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 if (obj2) {
7532 {
7533 arg3 = wxString_in_helper(obj2);
7534 if (arg3 == NULL) SWIG_fail;
7535 temp3 = True;
7536 }
7537 }
7538 {
7539 PyThreadState* __tstate = wxPyBeginAllowThreads();
7540 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7541
7542 wxPyEndAllowThreads(__tstate);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 resultobj = SWIG_PyObj_FromBool((bool)result);
7546 {
7547 if (temp3)
7548 delete arg3;
7549 }
7550 return resultobj;
7551 fail:
7552 {
7553 if (temp3)
7554 delete arg3;
7555 }
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7563 wxWindow *arg2 = (wxWindow *) 0 ;
7564 PyObject * obj0 = 0 ;
7565 PyObject * obj1 = 0 ;
7566 char *kwnames[] = {
7567 (char *) "self",(char *) "parent", NULL
7568 };
7569
7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7572 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7573 {
7574 PyThreadState* __tstate = wxPyBeginAllowThreads();
7575 (arg1)->SetDialogParent(arg2);
7576
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 Py_INCREF(Py_None); resultobj = Py_None;
7581 return resultobj;
7582 fail:
7583 return NULL;
7584 }
7585
7586
7587 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7588 PyObject *resultobj;
7589 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7590 wxString *arg2 = 0 ;
7591 bool temp2 = False ;
7592 PyObject * obj0 = 0 ;
7593 PyObject * obj1 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "self",(char *) "title", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7600 {
7601 arg2 = wxString_in_helper(obj1);
7602 if (arg2 == NULL) SWIG_fail;
7603 temp2 = True;
7604 }
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 (arg1)->SetDialogTitle((wxString const &)*arg2);
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 Py_INCREF(Py_None); resultobj = Py_None;
7613 {
7614 if (temp2)
7615 delete arg2;
7616 }
7617 return resultobj;
7618 fail:
7619 {
7620 if (temp2)
7621 delete arg2;
7622 }
7623 return NULL;
7624 }
7625
7626
7627 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7628 PyObject *obj;
7629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7630 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7631 Py_INCREF(obj);
7632 return Py_BuildValue((char *)"");
7633 }
7634 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj;
7636 int arg1 ;
7637 int arg2 ;
7638 int arg3 ;
7639 int arg4 ;
7640 bool arg5 = (bool) False ;
7641 wxString const &arg6_defvalue = wxPyEmptyString ;
7642 wxString *arg6 = (wxString *) &arg6_defvalue ;
7643 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7644 wxFont *result;
7645 bool temp6 = False ;
7646 PyObject * obj0 = 0 ;
7647 PyObject * obj1 = 0 ;
7648 PyObject * obj2 = 0 ;
7649 PyObject * obj3 = 0 ;
7650 PyObject * obj4 = 0 ;
7651 PyObject * obj5 = 0 ;
7652 PyObject * obj6 = 0 ;
7653 char *kwnames[] = {
7654 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7655 };
7656
7657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7658 {
7659 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 {
7663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 {
7667 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 {
7671 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 if (obj4) {
7675 {
7676 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 }
7680 if (obj5) {
7681 {
7682 arg6 = wxString_in_helper(obj5);
7683 if (arg6 == NULL) SWIG_fail;
7684 temp6 = True;
7685 }
7686 }
7687 if (obj6) {
7688 {
7689 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 }
7693 {
7694 PyThreadState* __tstate = wxPyBeginAllowThreads();
7695 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7696
7697 wxPyEndAllowThreads(__tstate);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7701 {
7702 if (temp6)
7703 delete arg6;
7704 }
7705 return resultobj;
7706 fail:
7707 {
7708 if (temp6)
7709 delete arg6;
7710 }
7711 return NULL;
7712 }
7713
7714
7715 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj;
7717 wxFont *arg1 = (wxFont *) 0 ;
7718 PyObject * obj0 = 0 ;
7719 char *kwnames[] = {
7720 (char *) "self", NULL
7721 };
7722
7723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 delete arg1;
7728
7729 wxPyEndAllowThreads(__tstate);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 Py_INCREF(Py_None); resultobj = Py_None;
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxNativeFontInfo *arg1 = 0 ;
7742 wxFont *result;
7743 PyObject * obj0 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "info", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7750 if (arg1 == NULL) {
7751 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7752 }
7753 {
7754 PyThreadState* __tstate = wxPyBeginAllowThreads();
7755 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7756
7757 wxPyEndAllowThreads(__tstate);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 }
7760 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7761 return resultobj;
7762 fail:
7763 return NULL;
7764 }
7765
7766
7767 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7768 PyObject *resultobj;
7769 wxString *arg1 = 0 ;
7770 wxFont *result;
7771 bool temp1 = False ;
7772 PyObject * obj0 = 0 ;
7773 char *kwnames[] = {
7774 (char *) "info", NULL
7775 };
7776
7777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7778 {
7779 arg1 = wxString_in_helper(obj0);
7780 if (arg1 == NULL) SWIG_fail;
7781 temp1 = True;
7782 }
7783 {
7784 PyThreadState* __tstate = wxPyBeginAllowThreads();
7785 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7786
7787 wxPyEndAllowThreads(__tstate);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7791 {
7792 if (temp1)
7793 delete arg1;
7794 }
7795 return resultobj;
7796 fail:
7797 {
7798 if (temp1)
7799 delete arg1;
7800 }
7801 return NULL;
7802 }
7803
7804
7805 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7806 PyObject *resultobj;
7807 int arg1 ;
7808 int arg2 ;
7809 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7810 wxString const &arg4_defvalue = wxPyEmptyString ;
7811 wxString *arg4 = (wxString *) &arg4_defvalue ;
7812 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7813 wxFont *result;
7814 bool temp4 = False ;
7815 PyObject * obj0 = 0 ;
7816 PyObject * obj1 = 0 ;
7817 PyObject * obj2 = 0 ;
7818 PyObject * obj3 = 0 ;
7819 PyObject * obj4 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7825 {
7826 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 if (obj2) {
7834 {
7835 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 }
7839 if (obj3) {
7840 {
7841 arg4 = wxString_in_helper(obj3);
7842 if (arg4 == NULL) SWIG_fail;
7843 temp4 = True;
7844 }
7845 }
7846 if (obj4) {
7847 {
7848 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 }
7852 {
7853 PyThreadState* __tstate = wxPyBeginAllowThreads();
7854 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7855
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7860 {
7861 if (temp4)
7862 delete arg4;
7863 }
7864 return resultobj;
7865 fail:
7866 {
7867 if (temp4)
7868 delete arg4;
7869 }
7870 return NULL;
7871 }
7872
7873
7874 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7875 PyObject *resultobj;
7876 wxFont *arg1 = (wxFont *) 0 ;
7877 bool result;
7878 PyObject * obj0 = 0 ;
7879 char *kwnames[] = {
7880 (char *) "self", NULL
7881 };
7882
7883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7885 {
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 result = (bool)((wxFont const *)arg1)->Ok();
7888
7889 wxPyEndAllowThreads(__tstate);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 resultobj = SWIG_PyObj_FromBool((bool)result);
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7900 PyObject *resultobj;
7901 wxFont *arg1 = (wxFont *) 0 ;
7902 wxFont *arg2 = 0 ;
7903 bool result;
7904 PyObject * obj0 = 0 ;
7905 PyObject * obj1 = 0 ;
7906 char *kwnames[] = {
7907 (char *) "self",(char *) "font", NULL
7908 };
7909
7910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7912 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7913 if (arg2 == NULL) {
7914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7915 }
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7919
7920 wxPyEndAllowThreads(__tstate);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 }
7923 resultobj = SWIG_PyObj_FromBool((bool)result);
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7931 PyObject *resultobj;
7932 wxFont *arg1 = (wxFont *) 0 ;
7933 wxFont *arg2 = 0 ;
7934 bool result;
7935 PyObject * obj0 = 0 ;
7936 PyObject * obj1 = 0 ;
7937 char *kwnames[] = {
7938 (char *) "self",(char *) "font", NULL
7939 };
7940
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7943 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7944 if (arg2 == NULL) {
7945 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7946 }
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 resultobj = SWIG_PyObj_FromBool((bool)result);
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 wxFont *arg1 = (wxFont *) 0 ;
7964 int result;
7965 PyObject * obj0 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "self", NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",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 = (int)((wxFont const *)arg1)->GetPointSize();
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 resultobj = SWIG_PyObj_FromInt((int)result);
7980 return resultobj;
7981 fail:
7982 return NULL;
7983 }
7984
7985
7986 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 wxFont *arg1 = (wxFont *) 0 ;
7989 int result;
7990 PyObject * obj0 = 0 ;
7991 char *kwnames[] = {
7992 (char *) "self", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7997 {
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 result = (int)((wxFont const *)arg1)->GetFamily();
8000
8001 wxPyEndAllowThreads(__tstate);
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 resultobj = SWIG_PyObj_FromInt((int)result);
8005 return resultobj;
8006 fail:
8007 return NULL;
8008 }
8009
8010
8011 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8012 PyObject *resultobj;
8013 wxFont *arg1 = (wxFont *) 0 ;
8014 int result;
8015 PyObject * obj0 = 0 ;
8016 char *kwnames[] = {
8017 (char *) "self", NULL
8018 };
8019
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 result = (int)((wxFont const *)arg1)->GetStyle();
8025
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = SWIG_PyObj_FromInt((int)result);
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8037 PyObject *resultobj;
8038 wxFont *arg1 = (wxFont *) 0 ;
8039 int result;
8040 PyObject * obj0 = 0 ;
8041 char *kwnames[] = {
8042 (char *) "self", NULL
8043 };
8044
8045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8047 {
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 result = (int)((wxFont const *)arg1)->GetWeight();
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_PyObj_FromInt((int)result);
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj;
8063 wxFont *arg1 = (wxFont *) 0 ;
8064 bool result;
8065 PyObject * obj0 = 0 ;
8066 char *kwnames[] = {
8067 (char *) "self", NULL
8068 };
8069
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_PyObj_FromBool((bool)result);
8080 return resultobj;
8081 fail:
8082 return NULL;
8083 }
8084
8085
8086 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8087 PyObject *resultobj;
8088 wxFont *arg1 = (wxFont *) 0 ;
8089 wxString result;
8090 PyObject * obj0 = 0 ;
8091 char *kwnames[] = {
8092 (char *) "self", NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8097 {
8098 PyThreadState* __tstate = wxPyBeginAllowThreads();
8099 result = ((wxFont const *)arg1)->GetFaceName();
8100
8101 wxPyEndAllowThreads(__tstate);
8102 if (PyErr_Occurred()) SWIG_fail;
8103 }
8104 {
8105 #if wxUSE_UNICODE
8106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8107 #else
8108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8109 #endif
8110 }
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxFont *arg1 = (wxFont *) 0 ;
8120 int result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (int)((wxFont const *)arg1)->GetEncoding();
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = SWIG_PyObj_FromInt((int)result);
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj;
8144 wxFont *arg1 = (wxFont *) 0 ;
8145 wxNativeFontInfo *result;
8146 PyObject * obj0 = 0 ;
8147 char *kwnames[] = {
8148 (char *) "self", NULL
8149 };
8150
8151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8153 {
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8156
8157 wxPyEndAllowThreads(__tstate);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 }
8160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8168 PyObject *resultobj;
8169 wxFont *arg1 = (wxFont *) 0 ;
8170 bool result;
8171 PyObject * obj0 = 0 ;
8172 char *kwnames[] = {
8173 (char *) "self", NULL
8174 };
8175
8176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8178 {
8179 PyThreadState* __tstate = wxPyBeginAllowThreads();
8180 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8181
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_PyObj_FromBool((bool)result);
8186 return resultobj;
8187 fail:
8188 return NULL;
8189 }
8190
8191
8192 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj;
8194 wxFont *arg1 = (wxFont *) 0 ;
8195 wxString result;
8196 PyObject * obj0 = 0 ;
8197 char *kwnames[] = {
8198 (char *) "self", NULL
8199 };
8200
8201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8203 {
8204 PyThreadState* __tstate = wxPyBeginAllowThreads();
8205 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8206
8207 wxPyEndAllowThreads(__tstate);
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 {
8211 #if wxUSE_UNICODE
8212 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8213 #else
8214 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8215 #endif
8216 }
8217 return resultobj;
8218 fail:
8219 return NULL;
8220 }
8221
8222
8223 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8224 PyObject *resultobj;
8225 wxFont *arg1 = (wxFont *) 0 ;
8226 wxString result;
8227 PyObject * obj0 = 0 ;
8228 char *kwnames[] = {
8229 (char *) "self", NULL
8230 };
8231
8232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 #if wxUSE_UNICODE
8243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8244 #else
8245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8246 #endif
8247 }
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 wxFont *arg1 = (wxFont *) 0 ;
8257 int arg2 ;
8258 PyObject * obj0 = 0 ;
8259 PyObject * obj1 = 0 ;
8260 char *kwnames[] = {
8261 (char *) "self",(char *) "pointSize", NULL
8262 };
8263
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8266 {
8267 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 (arg1)->SetPointSize(arg2);
8273
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 Py_INCREF(Py_None); resultobj = Py_None;
8278 return resultobj;
8279 fail:
8280 return NULL;
8281 }
8282
8283
8284 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8285 PyObject *resultobj;
8286 wxFont *arg1 = (wxFont *) 0 ;
8287 int arg2 ;
8288 PyObject * obj0 = 0 ;
8289 PyObject * obj1 = 0 ;
8290 char *kwnames[] = {
8291 (char *) "self",(char *) "family", NULL
8292 };
8293
8294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8296 {
8297 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 (arg1)->SetFamily(arg2);
8303
8304 wxPyEndAllowThreads(__tstate);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 Py_INCREF(Py_None); resultobj = Py_None;
8308 return resultobj;
8309 fail:
8310 return NULL;
8311 }
8312
8313
8314 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8315 PyObject *resultobj;
8316 wxFont *arg1 = (wxFont *) 0 ;
8317 int arg2 ;
8318 PyObject * obj0 = 0 ;
8319 PyObject * obj1 = 0 ;
8320 char *kwnames[] = {
8321 (char *) "self",(char *) "style", NULL
8322 };
8323
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8326 {
8327 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 (arg1)->SetStyle(arg2);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 Py_INCREF(Py_None); resultobj = Py_None;
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxFont *arg1 = (wxFont *) 0 ;
8347 int arg2 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 char *kwnames[] = {
8351 (char *) "self",(char *) "weight", NULL
8352 };
8353
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8356 {
8357 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 {
8361 PyThreadState* __tstate = wxPyBeginAllowThreads();
8362 (arg1)->SetWeight(arg2);
8363
8364 wxPyEndAllowThreads(__tstate);
8365 if (PyErr_Occurred()) SWIG_fail;
8366 }
8367 Py_INCREF(Py_None); resultobj = Py_None;
8368 return resultobj;
8369 fail:
8370 return NULL;
8371 }
8372
8373
8374 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8375 PyObject *resultobj;
8376 wxFont *arg1 = (wxFont *) 0 ;
8377 wxString *arg2 = 0 ;
8378 bool temp2 = False ;
8379 PyObject * obj0 = 0 ;
8380 PyObject * obj1 = 0 ;
8381 char *kwnames[] = {
8382 (char *) "self",(char *) "faceName", NULL
8383 };
8384
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8387 {
8388 arg2 = wxString_in_helper(obj1);
8389 if (arg2 == NULL) SWIG_fail;
8390 temp2 = True;
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 (arg1)->SetFaceName((wxString const &)*arg2);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 Py_INCREF(Py_None); resultobj = Py_None;
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return resultobj;
8405 fail:
8406 {
8407 if (temp2)
8408 delete arg2;
8409 }
8410 return NULL;
8411 }
8412
8413
8414 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8415 PyObject *resultobj;
8416 wxFont *arg1 = (wxFont *) 0 ;
8417 bool arg2 ;
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 char *kwnames[] = {
8421 (char *) "self",(char *) "underlined", NULL
8422 };
8423
8424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8426 {
8427 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 {
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 (arg1)->SetUnderlined(arg2);
8433
8434 wxPyEndAllowThreads(__tstate);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 Py_INCREF(Py_None); resultobj = Py_None;
8438 return resultobj;
8439 fail:
8440 return NULL;
8441 }
8442
8443
8444 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj;
8446 wxFont *arg1 = (wxFont *) 0 ;
8447 int arg2 ;
8448 PyObject * obj0 = 0 ;
8449 PyObject * obj1 = 0 ;
8450 char *kwnames[] = {
8451 (char *) "self",(char *) "encoding", NULL
8452 };
8453
8454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8456 {
8457 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 {
8461 PyThreadState* __tstate = wxPyBeginAllowThreads();
8462 (arg1)->SetEncoding((wxFontEncoding )arg2);
8463
8464 wxPyEndAllowThreads(__tstate);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 Py_INCREF(Py_None); resultobj = Py_None;
8468 return resultobj;
8469 fail:
8470 return NULL;
8471 }
8472
8473
8474 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8475 PyObject *resultobj;
8476 wxFont *arg1 = (wxFont *) 0 ;
8477 wxNativeFontInfo *arg2 = 0 ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self",(char *) "info", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8486 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8487 if (arg2 == NULL) {
8488 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8489 }
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8493
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 Py_INCREF(Py_None); resultobj = Py_None;
8498 return resultobj;
8499 fail:
8500 return NULL;
8501 }
8502
8503
8504 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject *resultobj;
8506 wxFont *arg1 = (wxFont *) 0 ;
8507 wxString *arg2 = 0 ;
8508 bool temp2 = False ;
8509 PyObject * obj0 = 0 ;
8510 PyObject * obj1 = 0 ;
8511 char *kwnames[] = {
8512 (char *) "self",(char *) "info", NULL
8513 };
8514
8515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8517 {
8518 arg2 = wxString_in_helper(obj1);
8519 if (arg2 == NULL) SWIG_fail;
8520 temp2 = True;
8521 }
8522 {
8523 PyThreadState* __tstate = wxPyBeginAllowThreads();
8524 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8525
8526 wxPyEndAllowThreads(__tstate);
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 Py_INCREF(Py_None); resultobj = Py_None;
8530 {
8531 if (temp2)
8532 delete arg2;
8533 }
8534 return resultobj;
8535 fail:
8536 {
8537 if (temp2)
8538 delete arg2;
8539 }
8540 return NULL;
8541 }
8542
8543
8544 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8545 PyObject *resultobj;
8546 wxFont *arg1 = (wxFont *) 0 ;
8547 wxString *arg2 = 0 ;
8548 bool temp2 = False ;
8549 PyObject * obj0 = 0 ;
8550 PyObject * obj1 = 0 ;
8551 char *kwnames[] = {
8552 (char *) "self",(char *) "info", NULL
8553 };
8554
8555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8557 {
8558 arg2 = wxString_in_helper(obj1);
8559 if (arg2 == NULL) SWIG_fail;
8560 temp2 = True;
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
8564 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 Py_INCREF(Py_None); resultobj = Py_None;
8570 {
8571 if (temp2)
8572 delete arg2;
8573 }
8574 return resultobj;
8575 fail:
8576 {
8577 if (temp2)
8578 delete arg2;
8579 }
8580 return NULL;
8581 }
8582
8583
8584 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj;
8586 wxFont *arg1 = (wxFont *) 0 ;
8587 wxString result;
8588 PyObject * obj0 = 0 ;
8589 char *kwnames[] = {
8590 (char *) "self", NULL
8591 };
8592
8593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = ((wxFont const *)arg1)->GetFamilyString();
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 {
8603 #if wxUSE_UNICODE
8604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8605 #else
8606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8607 #endif
8608 }
8609 return resultobj;
8610 fail:
8611 return NULL;
8612 }
8613
8614
8615 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject *resultobj;
8617 wxFont *arg1 = (wxFont *) 0 ;
8618 wxString result;
8619 PyObject * obj0 = 0 ;
8620 char *kwnames[] = {
8621 (char *) "self", NULL
8622 };
8623
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = ((wxFont const *)arg1)->GetStyleString();
8629
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 {
8634 #if wxUSE_UNICODE
8635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8636 #else
8637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8638 #endif
8639 }
8640 return resultobj;
8641 fail:
8642 return NULL;
8643 }
8644
8645
8646 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj;
8648 wxFont *arg1 = (wxFont *) 0 ;
8649 wxString result;
8650 PyObject * obj0 = 0 ;
8651 char *kwnames[] = {
8652 (char *) "self", NULL
8653 };
8654
8655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 result = ((wxFont const *)arg1)->GetWeightString();
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 {
8665 #if wxUSE_UNICODE
8666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8667 #else
8668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8669 #endif
8670 }
8671 return resultobj;
8672 fail:
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxFont *arg1 = (wxFont *) 0 ;
8680 bool arg2 = (bool) True ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 char *kwnames[] = {
8684 (char *) "self",(char *) "no", NULL
8685 };
8686
8687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8689 if (obj1) {
8690 {
8691 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 }
8695 {
8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
8697 (arg1)->SetNoAntiAliasing(arg2);
8698
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 Py_INCREF(Py_None); resultobj = Py_None;
8703 return resultobj;
8704 fail:
8705 return NULL;
8706 }
8707
8708
8709 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj;
8711 wxFont *arg1 = (wxFont *) 0 ;
8712 bool result;
8713 PyObject * obj0 = 0 ;
8714 char *kwnames[] = {
8715 (char *) "self", NULL
8716 };
8717
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = (bool)(arg1)->GetNoAntiAliasing();
8723
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_PyObj_FromBool((bool)result);
8728 return resultobj;
8729 fail:
8730 return NULL;
8731 }
8732
8733
8734 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj;
8736 int result;
8737 char *kwnames[] = {
8738 NULL
8739 };
8740
8741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8742 {
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 result = (int)wxFont::GetDefaultEncoding();
8745
8746 wxPyEndAllowThreads(__tstate);
8747 if (PyErr_Occurred()) SWIG_fail;
8748 }
8749 resultobj = SWIG_PyObj_FromInt((int)result);
8750 return resultobj;
8751 fail:
8752 return NULL;
8753 }
8754
8755
8756 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8757 PyObject *resultobj;
8758 int arg1 ;
8759 PyObject * obj0 = 0 ;
8760 char *kwnames[] = {
8761 (char *) "encoding", NULL
8762 };
8763
8764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8765 {
8766 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 {
8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
8771 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8772
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 Py_INCREF(Py_None); resultobj = Py_None;
8777 return resultobj;
8778 fail:
8779 return NULL;
8780 }
8781
8782
8783 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8784 PyObject *obj;
8785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8786 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8787 Py_INCREF(obj);
8788 return Py_BuildValue((char *)"");
8789 }
8790 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8791 PyObject *resultobj;
8792 wxPyFontEnumerator *result;
8793 char *kwnames[] = {
8794 NULL
8795 };
8796
8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8798 {
8799 PyThreadState* __tstate = wxPyBeginAllowThreads();
8800 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8801
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8806 return resultobj;
8807 fail:
8808 return NULL;
8809 }
8810
8811
8812 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8815 PyObject * obj0 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8822 {
8823 PyThreadState* __tstate = wxPyBeginAllowThreads();
8824 delete arg1;
8825
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 Py_INCREF(Py_None); resultobj = Py_None;
8830 return resultobj;
8831 fail:
8832 return NULL;
8833 }
8834
8835
8836 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8837 PyObject *resultobj;
8838 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8839 PyObject *arg2 = (PyObject *) 0 ;
8840 PyObject *arg3 = (PyObject *) 0 ;
8841 bool arg4 ;
8842 PyObject * obj0 = 0 ;
8843 PyObject * obj1 = 0 ;
8844 PyObject * obj2 = 0 ;
8845 PyObject * obj3 = 0 ;
8846 char *kwnames[] = {
8847 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8848 };
8849
8850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8852 arg2 = obj1;
8853 arg3 = obj2;
8854 {
8855 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 Py_INCREF(Py_None); resultobj = Py_None;
8866 return resultobj;
8867 fail:
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8875 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8876 bool arg3 = (bool) False ;
8877 bool result;
8878 PyObject * obj0 = 0 ;
8879 PyObject * obj1 = 0 ;
8880 PyObject * obj2 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8887 if (obj1) {
8888 {
8889 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 }
8893 if (obj2) {
8894 {
8895 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 }
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = SWIG_PyObj_FromBool((bool)result);
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8916 wxString const &arg2_defvalue = wxPyEmptyString ;
8917 wxString *arg2 = (wxString *) &arg2_defvalue ;
8918 bool result;
8919 bool temp2 = False ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 char *kwnames[] = {
8923 (char *) "self",(char *) "facename", NULL
8924 };
8925
8926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8928 if (obj1) {
8929 {
8930 arg2 = wxString_in_helper(obj1);
8931 if (arg2 == NULL) SWIG_fail;
8932 temp2 = True;
8933 }
8934 }
8935 {
8936 PyThreadState* __tstate = wxPyBeginAllowThreads();
8937 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8938
8939 wxPyEndAllowThreads(__tstate);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 resultobj = SWIG_PyObj_FromBool((bool)result);
8943 {
8944 if (temp2)
8945 delete arg2;
8946 }
8947 return resultobj;
8948 fail:
8949 {
8950 if (temp2)
8951 delete arg2;
8952 }
8953 return NULL;
8954 }
8955
8956
8957 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj;
8959 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8960 PyObject *result;
8961 PyObject * obj0 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "self", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8971
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 resultobj = result;
8976 return resultobj;
8977 fail:
8978 return NULL;
8979 }
8980
8981
8982 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj;
8984 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8985 PyObject *result;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = result;
9001 return resultobj;
9002 fail:
9003 return NULL;
9004 }
9005
9006
9007 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9008 PyObject *obj;
9009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9010 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9011 Py_INCREF(obj);
9012 return Py_BuildValue((char *)"");
9013 }
9014 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9015 PyObject *resultobj;
9016 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9017 int arg2 ;
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self",(char *) "Language", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9026 {
9027 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9028 if (PyErr_Occurred()) SWIG_fail;
9029 }
9030 if (arg1) (arg1)->Language = arg2;
9031
9032 Py_INCREF(Py_None); resultobj = Py_None;
9033 return resultobj;
9034 fail:
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9042 int result;
9043 PyObject * obj0 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "self", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9050 result = (int) ((arg1)->Language);
9051
9052 resultobj = SWIG_PyObj_FromInt((int)result);
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9062 wxString *arg2 = (wxString *) 0 ;
9063 bool temp2 = False ;
9064 PyObject * obj0 = 0 ;
9065 PyObject * obj1 = 0 ;
9066 char *kwnames[] = {
9067 (char *) "self",(char *) "CanonicalName", NULL
9068 };
9069
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9072 {
9073 arg2 = wxString_in_helper(obj1);
9074 if (arg2 == NULL) SWIG_fail;
9075 temp2 = True;
9076 }
9077 if (arg1) (arg1)->CanonicalName = *arg2;
9078
9079 Py_INCREF(Py_None); resultobj = Py_None;
9080 {
9081 if (temp2)
9082 delete arg2;
9083 }
9084 return resultobj;
9085 fail:
9086 {
9087 if (temp2)
9088 delete arg2;
9089 }
9090 return NULL;
9091 }
9092
9093
9094 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject *resultobj;
9096 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9097 wxString *result;
9098 PyObject * obj0 = 0 ;
9099 char *kwnames[] = {
9100 (char *) "self", NULL
9101 };
9102
9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9105 result = (wxString *)& ((arg1)->CanonicalName);
9106
9107 {
9108 #if wxUSE_UNICODE
9109 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9110 #else
9111 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9112 #endif
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9123 wxString *arg2 = (wxString *) 0 ;
9124 bool temp2 = False ;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self",(char *) "Description", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9133 {
9134 arg2 = wxString_in_helper(obj1);
9135 if (arg2 == NULL) SWIG_fail;
9136 temp2 = True;
9137 }
9138 if (arg1) (arg1)->Description = *arg2;
9139
9140 Py_INCREF(Py_None); resultobj = Py_None;
9141 {
9142 if (temp2)
9143 delete arg2;
9144 }
9145 return resultobj;
9146 fail:
9147 {
9148 if (temp2)
9149 delete arg2;
9150 }
9151 return NULL;
9152 }
9153
9154
9155 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj;
9157 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9158 wxString *result;
9159 PyObject * obj0 = 0 ;
9160 char *kwnames[] = {
9161 (char *) "self", NULL
9162 };
9163
9164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9166 result = (wxString *)& ((arg1)->Description);
9167
9168 {
9169 #if wxUSE_UNICODE
9170 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9171 #else
9172 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9173 #endif
9174 }
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9182 PyObject *obj;
9183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9184 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9185 Py_INCREF(obj);
9186 return Py_BuildValue((char *)"");
9187 }
9188 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj;
9190 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9191 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9192 wxLocale *result;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 char *kwnames[] = {
9196 (char *) "language",(char *) "flags", NULL
9197 };
9198
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9200 if (obj0) {
9201 {
9202 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 }
9206 if (obj1) {
9207 {
9208 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 }
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 result = (wxLocale *)new wxLocale(arg1,arg2);
9215
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
9220 return resultobj;
9221 fail:
9222 return NULL;
9223 }
9224
9225
9226 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9227 PyObject *resultobj;
9228 wxLocale *arg1 = (wxLocale *) 0 ;
9229 PyObject * obj0 = 0 ;
9230 char *kwnames[] = {
9231 (char *) "self", NULL
9232 };
9233
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 delete arg1;
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 Py_INCREF(Py_None); resultobj = Py_None;
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxLocale *arg1 = (wxLocale *) 0 ;
9253 wxString *arg2 = 0 ;
9254 wxString const &arg3_defvalue = wxPyEmptyString ;
9255 wxString *arg3 = (wxString *) &arg3_defvalue ;
9256 wxString const &arg4_defvalue = wxPyEmptyString ;
9257 wxString *arg4 = (wxString *) &arg4_defvalue ;
9258 bool arg5 = (bool) True ;
9259 bool arg6 = (bool) False ;
9260 bool result;
9261 bool temp2 = False ;
9262 bool temp3 = False ;
9263 bool temp4 = False ;
9264 PyObject * obj0 = 0 ;
9265 PyObject * obj1 = 0 ;
9266 PyObject * obj2 = 0 ;
9267 PyObject * obj3 = 0 ;
9268 PyObject * obj4 = 0 ;
9269 PyObject * obj5 = 0 ;
9270 char *kwnames[] = {
9271 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9276 {
9277 arg2 = wxString_in_helper(obj1);
9278 if (arg2 == NULL) SWIG_fail;
9279 temp2 = True;
9280 }
9281 if (obj2) {
9282 {
9283 arg3 = wxString_in_helper(obj2);
9284 if (arg3 == NULL) SWIG_fail;
9285 temp3 = True;
9286 }
9287 }
9288 if (obj3) {
9289 {
9290 arg4 = wxString_in_helper(obj3);
9291 if (arg4 == NULL) SWIG_fail;
9292 temp4 = True;
9293 }
9294 }
9295 if (obj4) {
9296 {
9297 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 }
9301 if (obj5) {
9302 {
9303 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 }
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 resultobj = SWIG_PyObj_FromBool((bool)result);
9315 {
9316 if (temp2)
9317 delete arg2;
9318 }
9319 {
9320 if (temp3)
9321 delete arg3;
9322 }
9323 {
9324 if (temp4)
9325 delete arg4;
9326 }
9327 return resultobj;
9328 fail:
9329 {
9330 if (temp2)
9331 delete arg2;
9332 }
9333 {
9334 if (temp3)
9335 delete arg3;
9336 }
9337 {
9338 if (temp4)
9339 delete arg4;
9340 }
9341 return NULL;
9342 }
9343
9344
9345 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj;
9347 wxLocale *arg1 = (wxLocale *) 0 ;
9348 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9349 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9350 bool result;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 PyObject * obj2 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self",(char *) "language",(char *) "flags", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9360 if (obj1) {
9361 {
9362 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 }
9366 if (obj2) {
9367 {
9368 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 }
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (bool)(arg1)->Init(arg2,arg3);
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_PyObj_FromBool((bool)result);
9380 return resultobj;
9381 fail:
9382 return NULL;
9383 }
9384
9385
9386 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj;
9388 int result;
9389 char *kwnames[] = {
9390 NULL
9391 };
9392
9393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 result = (int)wxLocale::GetSystemLanguage();
9397
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_PyObj_FromInt((int)result);
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj;
9410 int result;
9411 char *kwnames[] = {
9412 NULL
9413 };
9414
9415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9416 {
9417 PyThreadState* __tstate = wxPyBeginAllowThreads();
9418 result = (int)wxLocale::GetSystemEncoding();
9419
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_PyObj_FromInt((int)result);
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj;
9432 wxString result;
9433 char *kwnames[] = {
9434 NULL
9435 };
9436
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = wxLocale::GetSystemEncodingName();
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 {
9446 #if wxUSE_UNICODE
9447 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9448 #else
9449 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9450 #endif
9451 }
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxLocale *arg1 = (wxLocale *) 0 ;
9461 bool result;
9462 PyObject * obj0 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "self", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 result = (bool)((wxLocale const *)arg1)->IsOk();
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_PyObj_FromBool((bool)result);
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxLocale *arg1 = (wxLocale *) 0 ;
9486 wxString result;
9487 PyObject * obj0 = 0 ;
9488 char *kwnames[] = {
9489 (char *) "self", NULL
9490 };
9491
9492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9494 {
9495 PyThreadState* __tstate = wxPyBeginAllowThreads();
9496 result = ((wxLocale const *)arg1)->GetLocale();
9497
9498 wxPyEndAllowThreads(__tstate);
9499 if (PyErr_Occurred()) SWIG_fail;
9500 }
9501 {
9502 #if wxUSE_UNICODE
9503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9504 #else
9505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9506 #endif
9507 }
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj;
9516 wxLocale *arg1 = (wxLocale *) 0 ;
9517 int result;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 result = (int)((wxLocale const *)arg1)->GetLanguage();
9528
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_PyObj_FromInt((int)result);
9533 return resultobj;
9534 fail:
9535 return NULL;
9536 }
9537
9538
9539 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj;
9541 wxLocale *arg1 = (wxLocale *) 0 ;
9542 wxString result;
9543 PyObject * obj0 = 0 ;
9544 char *kwnames[] = {
9545 (char *) "self", NULL
9546 };
9547
9548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = ((wxLocale const *)arg1)->GetSysName();
9553
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 {
9558 #if wxUSE_UNICODE
9559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9560 #else
9561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9562 #endif
9563 }
9564 return resultobj;
9565 fail:
9566 return NULL;
9567 }
9568
9569
9570 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9571 PyObject *resultobj;
9572 wxLocale *arg1 = (wxLocale *) 0 ;
9573 wxString result;
9574 PyObject * obj0 = 0 ;
9575 char *kwnames[] = {
9576 (char *) "self", NULL
9577 };
9578
9579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9581 {
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = ((wxLocale const *)arg1)->GetCanonicalName();
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 {
9589 #if wxUSE_UNICODE
9590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9591 #else
9592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9593 #endif
9594 }
9595 return resultobj;
9596 fail:
9597 return NULL;
9598 }
9599
9600
9601 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9602 PyObject *resultobj;
9603 wxString *arg1 = 0 ;
9604 bool temp1 = False ;
9605 PyObject * obj0 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "prefix", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9611 {
9612 arg1 = wxString_in_helper(obj0);
9613 if (arg1 == NULL) SWIG_fail;
9614 temp1 = True;
9615 }
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9619
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 Py_INCREF(Py_None); resultobj = Py_None;
9624 {
9625 if (temp1)
9626 delete arg1;
9627 }
9628 return resultobj;
9629 fail:
9630 {
9631 if (temp1)
9632 delete arg1;
9633 }
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxLocale *arg1 = (wxLocale *) 0 ;
9641 wxString *arg2 = 0 ;
9642 bool result;
9643 bool temp2 = False ;
9644 PyObject * obj0 = 0 ;
9645 PyObject * obj1 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self",(char *) "szDomain", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9652 {
9653 arg2 = wxString_in_helper(obj1);
9654 if (arg2 == NULL) SWIG_fail;
9655 temp2 = True;
9656 }
9657 {
9658 PyThreadState* __tstate = wxPyBeginAllowThreads();
9659 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9660
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 resultobj = SWIG_PyObj_FromBool((bool)result);
9665 {
9666 if (temp2)
9667 delete arg2;
9668 }
9669 return resultobj;
9670 fail:
9671 {
9672 if (temp2)
9673 delete arg2;
9674 }
9675 return NULL;
9676 }
9677
9678
9679 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj;
9681 wxLocale *arg1 = (wxLocale *) 0 ;
9682 wxString *arg2 = 0 ;
9683 bool result;
9684 bool temp2 = False ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687 char *kwnames[] = {
9688 (char *) "self",(char *) "szDomain", NULL
9689 };
9690
9691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9693 {
9694 arg2 = wxString_in_helper(obj1);
9695 if (arg2 == NULL) SWIG_fail;
9696 temp2 = True;
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9701
9702 wxPyEndAllowThreads(__tstate);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 resultobj = SWIG_PyObj_FromBool((bool)result);
9706 {
9707 if (temp2)
9708 delete arg2;
9709 }
9710 return resultobj;
9711 fail:
9712 {
9713 if (temp2)
9714 delete arg2;
9715 }
9716 return NULL;
9717 }
9718
9719
9720 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9721 PyObject *resultobj;
9722 int arg1 ;
9723 wxLanguageInfo *result;
9724 PyObject * obj0 = 0 ;
9725 char *kwnames[] = {
9726 (char *) "lang", NULL
9727 };
9728
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9730 {
9731 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9742 return resultobj;
9743 fail:
9744 return NULL;
9745 }
9746
9747
9748 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj;
9750 int arg1 ;
9751 wxString result;
9752 PyObject * obj0 = 0 ;
9753 char *kwnames[] = {
9754 (char *) "lang", NULL
9755 };
9756
9757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9758 {
9759 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = wxLocale::GetLanguageName(arg1);
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 {
9770 #if wxUSE_UNICODE
9771 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9772 #else
9773 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9774 #endif
9775 }
9776 return resultobj;
9777 fail:
9778 return NULL;
9779 }
9780
9781
9782 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9783 PyObject *resultobj;
9784 wxString *arg1 = 0 ;
9785 wxLanguageInfo *result;
9786 bool temp1 = False ;
9787 PyObject * obj0 = 0 ;
9788 char *kwnames[] = {
9789 (char *) "locale", NULL
9790 };
9791
9792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9793 {
9794 arg1 = wxString_in_helper(obj0);
9795 if (arg1 == NULL) SWIG_fail;
9796 temp1 = True;
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9806 {
9807 if (temp1)
9808 delete arg1;
9809 }
9810 return resultobj;
9811 fail:
9812 {
9813 if (temp1)
9814 delete arg1;
9815 }
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 wxLanguageInfo *arg1 = 0 ;
9823 PyObject * obj0 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "info", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9830 if (arg1 == NULL) {
9831 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9832 }
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
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_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj;
9849 wxLocale *arg1 = (wxLocale *) 0 ;
9850 wxString *arg2 = 0 ;
9851 wxString const &arg3_defvalue = wxPyEmptyString ;
9852 wxString *arg3 = (wxString *) &arg3_defvalue ;
9853 wxString result;
9854 bool temp2 = False ;
9855 bool temp3 = False ;
9856 PyObject * obj0 = 0 ;
9857 PyObject * obj1 = 0 ;
9858 PyObject * obj2 = 0 ;
9859 char *kwnames[] = {
9860 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9861 };
9862
9863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9865 {
9866 arg2 = wxString_in_helper(obj1);
9867 if (arg2 == NULL) SWIG_fail;
9868 temp2 = True;
9869 }
9870 if (obj2) {
9871 {
9872 arg3 = wxString_in_helper(obj2);
9873 if (arg3 == NULL) SWIG_fail;
9874 temp3 = True;
9875 }
9876 }
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
9879 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9880
9881 wxPyEndAllowThreads(__tstate);
9882 if (PyErr_Occurred()) SWIG_fail;
9883 }
9884 {
9885 #if wxUSE_UNICODE
9886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9887 #else
9888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9889 #endif
9890 }
9891 {
9892 if (temp2)
9893 delete arg2;
9894 }
9895 {
9896 if (temp3)
9897 delete arg3;
9898 }
9899 return resultobj;
9900 fail:
9901 {
9902 if (temp2)
9903 delete arg2;
9904 }
9905 {
9906 if (temp3)
9907 delete arg3;
9908 }
9909 return NULL;
9910 }
9911
9912
9913 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9914 PyObject *resultobj;
9915 wxLocale *arg1 = (wxLocale *) 0 ;
9916 wxString *result;
9917 PyObject * obj0 = 0 ;
9918 char *kwnames[] = {
9919 (char *) "self", NULL
9920 };
9921
9922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 {
9927 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9928 result = (wxString *) &_result_ref;
9929 }
9930
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 {
9935 #if wxUSE_UNICODE
9936 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9937 #else
9938 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9939 #endif
9940 }
9941 return resultobj;
9942 fail:
9943 return NULL;
9944 }
9945
9946
9947 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9948 PyObject *obj;
9949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9950 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9951 Py_INCREF(obj);
9952 return Py_BuildValue((char *)"");
9953 }
9954 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9955 PyObject *resultobj;
9956 wxLocale *result;
9957 char *kwnames[] = {
9958 NULL
9959 };
9960
9961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9962 {
9963 PyThreadState* __tstate = wxPyBeginAllowThreads();
9964 result = (wxLocale *)wxGetLocale();
9965
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9970 return resultobj;
9971 fail:
9972 return NULL;
9973 }
9974
9975
9976 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9977 PyObject *resultobj;
9978 wxString *arg1 = 0 ;
9979 wxString result;
9980 bool temp1 = False ;
9981 PyObject * obj0 = 0 ;
9982
9983 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9984 {
9985 arg1 = wxString_in_helper(obj0);
9986 if (arg1 == NULL) SWIG_fail;
9987 temp1 = True;
9988 }
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = wxGetTranslation((wxString const &)*arg1);
9992
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 {
9997 #if wxUSE_UNICODE
9998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9999 #else
10000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10001 #endif
10002 }
10003 {
10004 if (temp1)
10005 delete arg1;
10006 }
10007 return resultobj;
10008 fail:
10009 {
10010 if (temp1)
10011 delete arg1;
10012 }
10013 return NULL;
10014 }
10015
10016
10017 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10018 PyObject *resultobj;
10019 wxString *arg1 = 0 ;
10020 wxString *arg2 = 0 ;
10021 size_t arg3 ;
10022 wxString result;
10023 bool temp1 = False ;
10024 bool temp2 = False ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 PyObject * obj2 = 0 ;
10028
10029 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10030 {
10031 arg1 = wxString_in_helper(obj0);
10032 if (arg1 == NULL) SWIG_fail;
10033 temp1 = True;
10034 }
10035 {
10036 arg2 = wxString_in_helper(obj1);
10037 if (arg2 == NULL) SWIG_fail;
10038 temp2 = True;
10039 }
10040 {
10041 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10047
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 {
10052 #if wxUSE_UNICODE
10053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10054 #else
10055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10056 #endif
10057 }
10058 {
10059 if (temp1)
10060 delete arg1;
10061 }
10062 {
10063 if (temp2)
10064 delete arg2;
10065 }
10066 return resultobj;
10067 fail:
10068 {
10069 if (temp1)
10070 delete arg1;
10071 }
10072 {
10073 if (temp2)
10074 delete arg2;
10075 }
10076 return NULL;
10077 }
10078
10079
10080 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10081 int argc;
10082 PyObject *argv[4];
10083 int ii;
10084
10085 argc = PyObject_Length(args);
10086 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10087 argv[ii] = PyTuple_GetItem(args,ii);
10088 }
10089 if (argc == 1) {
10090 int _v;
10091 {
10092 void *ptr;
10093 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
10094 _v = 0;
10095 PyErr_Clear();
10096 } else {
10097 _v = 1;
10098 }
10099 }
10100 if (_v) {
10101 return _wrap_GetTranslation__SWIG_0(self,args);
10102 }
10103 }
10104 if (argc == 3) {
10105 int _v;
10106 {
10107 void *ptr;
10108 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
10109 _v = 0;
10110 PyErr_Clear();
10111 } else {
10112 _v = 1;
10113 }
10114 }
10115 if (_v) {
10116 {
10117 void *ptr;
10118 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
10119 _v = 0;
10120 PyErr_Clear();
10121 } else {
10122 _v = 1;
10123 }
10124 }
10125 if (_v) {
10126 {
10127 SWIG_PyObj_AsUnsignedLong(argv[2]);
10128 if (PyErr_Occurred()) {
10129 _v = 0;
10130 PyErr_Clear();
10131 } else {
10132 _v = 1;
10133 }
10134 }
10135 if (_v) {
10136 return _wrap_GetTranslation__SWIG_1(self,args);
10137 }
10138 }
10139 }
10140 }
10141
10142 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10143 return NULL;
10144 }
10145
10146
10147 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10148 PyObject *resultobj;
10149 wxEncodingConverter *result;
10150 char *kwnames[] = {
10151 NULL
10152 };
10153
10154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxEncodingConverter *)new wxEncodingConverter();
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10172 PyObject * obj0 = 0 ;
10173 char *kwnames[] = {
10174 (char *) "self", NULL
10175 };
10176
10177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10179 {
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 delete arg1;
10182
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 Py_INCREF(Py_None); resultobj = Py_None;
10187 return resultobj;
10188 fail:
10189 return NULL;
10190 }
10191
10192
10193 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj;
10195 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10196 int arg2 ;
10197 int arg3 ;
10198 int arg4 = (int) wxCONVERT_STRICT ;
10199 bool result;
10200 PyObject * obj0 = 0 ;
10201 PyObject * obj1 = 0 ;
10202 PyObject * obj2 = 0 ;
10203 PyObject * obj3 = 0 ;
10204 char *kwnames[] = {
10205 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10206 };
10207
10208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10210 {
10211 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10212 if (PyErr_Occurred()) SWIG_fail;
10213 }
10214 {
10215 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 if (obj3) {
10219 {
10220 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 }
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_PyObj_FromBool((bool)result);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10241 wxString *arg2 = 0 ;
10242 wxString result;
10243 bool temp2 = False ;
10244 PyObject * obj0 = 0 ;
10245 PyObject * obj1 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "self",(char *) "input", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10252 {
10253 arg2 = wxString_in_helper(obj1);
10254 if (arg2 == NULL) SWIG_fail;
10255 temp2 = True;
10256 }
10257 {
10258 PyThreadState* __tstate = wxPyBeginAllowThreads();
10259 result = (arg1)->Convert((wxString const &)*arg2);
10260
10261 wxPyEndAllowThreads(__tstate);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 }
10264 {
10265 #if wxUSE_UNICODE
10266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10267 #else
10268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10269 #endif
10270 }
10271 {
10272 if (temp2)
10273 delete arg2;
10274 }
10275 return resultobj;
10276 fail:
10277 {
10278 if (temp2)
10279 delete arg2;
10280 }
10281 return NULL;
10282 }
10283
10284
10285 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10286 PyObject *resultobj;
10287 int arg1 ;
10288 int arg2 = (int) wxPLATFORM_CURRENT ;
10289 wxFontEncodingArray result;
10290 PyObject * obj0 = 0 ;
10291 PyObject * obj1 = 0 ;
10292 char *kwnames[] = {
10293 (char *) "enc",(char *) "platform", NULL
10294 };
10295
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10297 {
10298 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 if (obj1) {
10302 {
10303 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 }
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10310
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = PyList_New(0);
10316 for (size_t i=0; i < (&result)->GetCount(); i++) {
10317 PyObject* number = PyInt_FromLong((&result)->Item(i));
10318 PyList_Append(resultobj, number);
10319 Py_DECREF(number);
10320 }
10321 }
10322 return resultobj;
10323 fail:
10324 return NULL;
10325 }
10326
10327
10328 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10329 PyObject *resultobj;
10330 int arg1 ;
10331 wxFontEncodingArray result;
10332 PyObject * obj0 = 0 ;
10333 char *kwnames[] = {
10334 (char *) "enc", NULL
10335 };
10336
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10338 {
10339 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 {
10350 resultobj = PyList_New(0);
10351 for (size_t i=0; i < (&result)->GetCount(); i++) {
10352 PyObject* number = PyInt_FromLong((&result)->Item(i));
10353 PyList_Append(resultobj, number);
10354 Py_DECREF(number);
10355 }
10356 }
10357 return resultobj;
10358 fail:
10359 return NULL;
10360 }
10361
10362
10363 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj;
10365 int arg1 ;
10366 int arg2 ;
10367 bool result;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char *kwnames[] = {
10371 (char *) "encIn",(char *) "encOut", NULL
10372 };
10373
10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10375 {
10376 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 {
10380 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10386
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_PyObj_FromBool((bool)result);
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10398 PyObject *obj;
10399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10400 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10401 Py_INCREF(obj);
10402 return Py_BuildValue((char *)"");
10403 }
10404 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj;
10406 wxDC *arg1 = (wxDC *) 0 ;
10407 PyObject * obj0 = 0 ;
10408 char *kwnames[] = {
10409 (char *) "self", NULL
10410 };
10411
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10414 {
10415 PyThreadState* __tstate = wxPyBeginAllowThreads();
10416 delete arg1;
10417
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 Py_INCREF(Py_None); resultobj = Py_None;
10422 return resultobj;
10423 fail:
10424 return NULL;
10425 }
10426
10427
10428 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxDC *arg1 = (wxDC *) 0 ;
10431 PyObject * obj0 = 0 ;
10432 char *kwnames[] = {
10433 (char *) "self", NULL
10434 };
10435
10436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10438 {
10439 PyThreadState* __tstate = wxPyBeginAllowThreads();
10440 (arg1)->BeginDrawing();
10441
10442 wxPyEndAllowThreads(__tstate);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 Py_INCREF(Py_None); resultobj = Py_None;
10446 return resultobj;
10447 fail:
10448 return NULL;
10449 }
10450
10451
10452 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10453 PyObject *resultobj;
10454 wxDC *arg1 = (wxDC *) 0 ;
10455 PyObject * obj0 = 0 ;
10456 char *kwnames[] = {
10457 (char *) "self", NULL
10458 };
10459
10460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 (arg1)->EndDrawing();
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 Py_INCREF(Py_None); resultobj = Py_None;
10470 return resultobj;
10471 fail:
10472 return NULL;
10473 }
10474
10475
10476 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10477 PyObject *resultobj;
10478 wxDC *arg1 = (wxDC *) 0 ;
10479 int arg2 ;
10480 int arg3 ;
10481 wxColour *arg4 = 0 ;
10482 int arg5 = (int) wxFLOOD_SURFACE ;
10483 bool result;
10484 wxColour temp4 ;
10485 PyObject * obj0 = 0 ;
10486 PyObject * obj1 = 0 ;
10487 PyObject * obj2 = 0 ;
10488 PyObject * obj3 = 0 ;
10489 PyObject * obj4 = 0 ;
10490 char *kwnames[] = {
10491 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10492 };
10493
10494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10496 {
10497 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 {
10501 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10502 if (PyErr_Occurred()) SWIG_fail;
10503 }
10504 {
10505 arg4 = &temp4;
10506 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10507 }
10508 if (obj4) {
10509 {
10510 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 }
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10517
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 resultobj = SWIG_PyObj_FromBool((bool)result);
10522 return resultobj;
10523 fail:
10524 return NULL;
10525 }
10526
10527
10528 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10529 PyObject *resultobj;
10530 wxDC *arg1 = (wxDC *) 0 ;
10531 wxPoint *arg2 = 0 ;
10532 wxColour *arg3 = 0 ;
10533 int arg4 = (int) wxFLOOD_SURFACE ;
10534 bool result;
10535 wxPoint temp2 ;
10536 wxColour temp3 ;
10537 PyObject * obj0 = 0 ;
10538 PyObject * obj1 = 0 ;
10539 PyObject * obj2 = 0 ;
10540 PyObject * obj3 = 0 ;
10541 char *kwnames[] = {
10542 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10543 };
10544
10545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10547 {
10548 arg2 = &temp2;
10549 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10550 }
10551 {
10552 arg3 = &temp3;
10553 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10554 }
10555 if (obj3) {
10556 {
10557 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 }
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10564
10565 wxPyEndAllowThreads(__tstate);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 resultobj = SWIG_PyObj_FromBool((bool)result);
10569 return resultobj;
10570 fail:
10571 return NULL;
10572 }
10573
10574
10575 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10576 PyObject *resultobj;
10577 wxDC *arg1 = (wxDC *) 0 ;
10578 int arg2 ;
10579 int arg3 ;
10580 wxColour result;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 PyObject * obj2 = 0 ;
10584 char *kwnames[] = {
10585 (char *) "self",(char *) "x",(char *) "y", NULL
10586 };
10587
10588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10590 {
10591 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 {
10595 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10596 if (PyErr_Occurred()) SWIG_fail;
10597 }
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 {
10606 wxColour * resultptr;
10607 resultptr = new wxColour((wxColour &) result);
10608 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10609 }
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxDC *arg1 = (wxDC *) 0 ;
10619 wxPoint *arg2 = 0 ;
10620 wxColour result;
10621 wxPoint temp2 ;
10622 PyObject * obj0 = 0 ;
10623 PyObject * obj1 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self",(char *) "pt", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10630 {
10631 arg2 = &temp2;
10632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10633 }
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 {
10642 wxColour * resultptr;
10643 resultptr = new wxColour((wxColour &) result);
10644 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10645 }
10646 return resultobj;
10647 fail:
10648 return NULL;
10649 }
10650
10651
10652 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10653 PyObject *resultobj;
10654 wxDC *arg1 = (wxDC *) 0 ;
10655 int arg2 ;
10656 int arg3 ;
10657 int arg4 ;
10658 int arg5 ;
10659 PyObject * obj0 = 0 ;
10660 PyObject * obj1 = 0 ;
10661 PyObject * obj2 = 0 ;
10662 PyObject * obj3 = 0 ;
10663 PyObject * obj4 = 0 ;
10664 char *kwnames[] = {
10665 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10666 };
10667
10668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10670 {
10671 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 {
10675 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 {
10679 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 {
10683 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 Py_INCREF(Py_None); resultobj = Py_None;
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj;
10702 wxDC *arg1 = (wxDC *) 0 ;
10703 wxPoint *arg2 = 0 ;
10704 wxPoint *arg3 = 0 ;
10705 wxPoint temp2 ;
10706 wxPoint temp3 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 PyObject * obj2 = 0 ;
10710 char *kwnames[] = {
10711 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10712 };
10713
10714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10716 {
10717 arg2 = &temp2;
10718 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10719 }
10720 {
10721 arg3 = &temp3;
10722 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10723 }
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10727
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 Py_INCREF(Py_None); resultobj = Py_None;
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj;
10740 wxDC *arg1 = (wxDC *) 0 ;
10741 int arg2 ;
10742 int arg3 ;
10743 PyObject * obj0 = 0 ;
10744 PyObject * obj1 = 0 ;
10745 PyObject * obj2 = 0 ;
10746 char *kwnames[] = {
10747 (char *) "self",(char *) "x",(char *) "y", NULL
10748 };
10749
10750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10752 {
10753 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 (arg1)->CrossHair(arg2,arg3);
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 Py_INCREF(Py_None); resultobj = Py_None;
10768 return resultobj;
10769 fail:
10770 return NULL;
10771 }
10772
10773
10774 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj;
10776 wxDC *arg1 = (wxDC *) 0 ;
10777 wxPoint *arg2 = 0 ;
10778 wxPoint temp2 ;
10779 PyObject * obj0 = 0 ;
10780 PyObject * obj1 = 0 ;
10781 char *kwnames[] = {
10782 (char *) "self",(char *) "pt", NULL
10783 };
10784
10785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10787 {
10788 arg2 = &temp2;
10789 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10790 }
10791 {
10792 PyThreadState* __tstate = wxPyBeginAllowThreads();
10793 (arg1)->CrossHair((wxPoint const &)*arg2);
10794
10795 wxPyEndAllowThreads(__tstate);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 }
10798 Py_INCREF(Py_None); resultobj = Py_None;
10799 return resultobj;
10800 fail:
10801 return NULL;
10802 }
10803
10804
10805 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10806 PyObject *resultobj;
10807 wxDC *arg1 = (wxDC *) 0 ;
10808 int arg2 ;
10809 int arg3 ;
10810 int arg4 ;
10811 int arg5 ;
10812 int arg6 ;
10813 int arg7 ;
10814 PyObject * obj0 = 0 ;
10815 PyObject * obj1 = 0 ;
10816 PyObject * obj2 = 0 ;
10817 PyObject * obj3 = 0 ;
10818 PyObject * obj4 = 0 ;
10819 PyObject * obj5 = 0 ;
10820 PyObject * obj6 = 0 ;
10821 char *kwnames[] = {
10822 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10823 };
10824
10825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10827 {
10828 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 {
10832 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 {
10836 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 {
10840 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 {
10844 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10845 if (PyErr_Occurred()) SWIG_fail;
10846 }
10847 {
10848 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10854
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 Py_INCREF(Py_None); resultobj = Py_None;
10859 return resultobj;
10860 fail:
10861 return NULL;
10862 }
10863
10864
10865 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10866 PyObject *resultobj;
10867 wxDC *arg1 = (wxDC *) 0 ;
10868 wxPoint *arg2 = 0 ;
10869 wxPoint *arg3 = 0 ;
10870 wxPoint *arg4 = 0 ;
10871 wxPoint temp2 ;
10872 wxPoint temp3 ;
10873 wxPoint temp4 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 PyObject * obj2 = 0 ;
10877 PyObject * obj3 = 0 ;
10878 char *kwnames[] = {
10879 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10880 };
10881
10882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10884 {
10885 arg2 = &temp2;
10886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10887 }
10888 {
10889 arg3 = &temp3;
10890 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10891 }
10892 {
10893 arg4 = &temp4;
10894 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10895 }
10896 {
10897 PyThreadState* __tstate = wxPyBeginAllowThreads();
10898 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10899
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 Py_INCREF(Py_None); resultobj = Py_None;
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj;
10912 wxDC *arg1 = (wxDC *) 0 ;
10913 int arg2 ;
10914 int arg3 ;
10915 int arg4 ;
10916 int arg5 ;
10917 PyObject * obj0 = 0 ;
10918 PyObject * obj1 = 0 ;
10919 PyObject * obj2 = 0 ;
10920 PyObject * obj3 = 0 ;
10921 PyObject * obj4 = 0 ;
10922 char *kwnames[] = {
10923 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10924 };
10925
10926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10928 {
10929 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 {
10937 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 {
10941 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10947
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 Py_INCREF(Py_None); resultobj = Py_None;
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj;
10960 wxDC *arg1 = (wxDC *) 0 ;
10961 wxRect *arg2 = 0 ;
10962 wxRect temp2 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char *kwnames[] = {
10966 (char *) "self",(char *) "rect", NULL
10967 };
10968
10969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10971 {
10972 arg2 = &temp2;
10973 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10974 }
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10978
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 Py_INCREF(Py_None); resultobj = Py_None;
10983 return resultobj;
10984 fail:
10985 return NULL;
10986 }
10987
10988
10989 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj;
10991 wxDC *arg1 = (wxDC *) 0 ;
10992 int arg2 ;
10993 int arg3 ;
10994 int arg4 ;
10995 int arg5 ;
10996 double arg6 ;
10997 double arg7 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 PyObject * obj2 = 0 ;
11001 PyObject * obj3 = 0 ;
11002 PyObject * obj4 = 0 ;
11003 PyObject * obj5 = 0 ;
11004 PyObject * obj6 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11007 };
11008
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11011 {
11012 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 {
11016 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 {
11020 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 }
11023 {
11024 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 {
11028 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11029 if (PyErr_Occurred()) SWIG_fail;
11030 }
11031 {
11032 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 Py_INCREF(Py_None); resultobj = Py_None;
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxDC *arg1 = (wxDC *) 0 ;
11052 wxPoint *arg2 = 0 ;
11053 wxSize *arg3 = 0 ;
11054 double arg4 ;
11055 double arg5 ;
11056 wxPoint temp2 ;
11057 wxSize temp3 ;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 PyObject * obj2 = 0 ;
11061 PyObject * obj3 = 0 ;
11062 PyObject * obj4 = 0 ;
11063 char *kwnames[] = {
11064 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11065 };
11066
11067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11069 {
11070 arg2 = &temp2;
11071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11072 }
11073 {
11074 arg3 = &temp3;
11075 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11076 }
11077 {
11078 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 {
11082 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11088
11089 wxPyEndAllowThreads(__tstate);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 Py_INCREF(Py_None); resultobj = Py_None;
11093 return resultobj;
11094 fail:
11095 return NULL;
11096 }
11097
11098
11099 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj;
11101 wxDC *arg1 = (wxDC *) 0 ;
11102 int arg2 ;
11103 int arg3 ;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 PyObject * obj2 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "self",(char *) "x",(char *) "y", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11113 {
11114 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
11123 (arg1)->DrawPoint(arg2,arg3);
11124
11125 wxPyEndAllowThreads(__tstate);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 }
11128 Py_INCREF(Py_None); resultobj = Py_None;
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11136 PyObject *resultobj;
11137 wxDC *arg1 = (wxDC *) 0 ;
11138 wxPoint *arg2 = 0 ;
11139 wxPoint temp2 ;
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
11142 char *kwnames[] = {
11143 (char *) "self",(char *) "pt", NULL
11144 };
11145
11146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11148 {
11149 arg2 = &temp2;
11150 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11151 }
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 (arg1)->DrawPoint((wxPoint const &)*arg2);
11155
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 Py_INCREF(Py_None); resultobj = Py_None;
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11167 PyObject *resultobj;
11168 wxDC *arg1 = (wxDC *) 0 ;
11169 int arg2 ;
11170 int arg3 ;
11171 int arg4 ;
11172 int arg5 ;
11173 PyObject * obj0 = 0 ;
11174 PyObject * obj1 = 0 ;
11175 PyObject * obj2 = 0 ;
11176 PyObject * obj3 = 0 ;
11177 PyObject * obj4 = 0 ;
11178 char *kwnames[] = {
11179 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11180 };
11181
11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11184 {
11185 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 {
11189 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 {
11193 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 {
11197 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11203
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 Py_INCREF(Py_None); resultobj = Py_None;
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj;
11216 wxDC *arg1 = (wxDC *) 0 ;
11217 wxPoint *arg2 = 0 ;
11218 wxSize *arg3 = 0 ;
11219 wxPoint temp2 ;
11220 wxSize temp3 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 PyObject * obj2 = 0 ;
11224 char *kwnames[] = {
11225 (char *) "self",(char *) "pt",(char *) "sz", NULL
11226 };
11227
11228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11230 {
11231 arg2 = &temp2;
11232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11233 }
11234 {
11235 arg3 = &temp3;
11236 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11237 }
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 Py_INCREF(Py_None); resultobj = Py_None;
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11253 PyObject *resultobj;
11254 wxDC *arg1 = (wxDC *) 0 ;
11255 wxRect *arg2 = 0 ;
11256 wxRect temp2 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self",(char *) "rect", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11265 {
11266 arg2 = &temp2;
11267 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 (arg1)->DrawRectangle((wxRect const &)*arg2);
11272
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 Py_INCREF(Py_None); resultobj = Py_None;
11277 return resultobj;
11278 fail:
11279 return NULL;
11280 }
11281
11282
11283 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11284 PyObject *resultobj;
11285 wxDC *arg1 = (wxDC *) 0 ;
11286 int arg2 ;
11287 int arg3 ;
11288 int arg4 ;
11289 int arg5 ;
11290 double arg6 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 PyObject * obj2 = 0 ;
11294 PyObject * obj3 = 0 ;
11295 PyObject * obj4 = 0 ;
11296 PyObject * obj5 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11303 {
11304 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 {
11308 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 {
11312 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 {
11316 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 {
11320 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11326
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 Py_INCREF(Py_None); resultobj = Py_None;
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj;
11339 wxDC *arg1 = (wxDC *) 0 ;
11340 wxPoint *arg2 = 0 ;
11341 wxSize *arg3 = 0 ;
11342 double arg4 ;
11343 wxPoint temp2 ;
11344 wxSize temp3 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 PyObject * obj2 = 0 ;
11348 PyObject * obj3 = 0 ;
11349 char *kwnames[] = {
11350 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11351 };
11352
11353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11355 {
11356 arg2 = &temp2;
11357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11358 }
11359 {
11360 arg3 = &temp3;
11361 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11362 }
11363 {
11364 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 {
11368 PyThreadState* __tstate = wxPyBeginAllowThreads();
11369 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11370
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 Py_INCREF(Py_None); resultobj = Py_None;
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj;
11383 wxDC *arg1 = (wxDC *) 0 ;
11384 wxRect *arg2 = 0 ;
11385 double arg3 ;
11386 wxRect temp2 ;
11387 PyObject * obj0 = 0 ;
11388 PyObject * obj1 = 0 ;
11389 PyObject * obj2 = 0 ;
11390 char *kwnames[] = {
11391 (char *) "self",(char *) "r",(char *) "radius", NULL
11392 };
11393
11394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11396 {
11397 arg2 = &temp2;
11398 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11399 }
11400 {
11401 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 }
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11407
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 Py_INCREF(Py_None); resultobj = Py_None;
11412 return resultobj;
11413 fail:
11414 return NULL;
11415 }
11416
11417
11418 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11419 PyObject *resultobj;
11420 wxDC *arg1 = (wxDC *) 0 ;
11421 int arg2 ;
11422 int arg3 ;
11423 int arg4 ;
11424 PyObject * obj0 = 0 ;
11425 PyObject * obj1 = 0 ;
11426 PyObject * obj2 = 0 ;
11427 PyObject * obj3 = 0 ;
11428 char *kwnames[] = {
11429 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11430 };
11431
11432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11434 {
11435 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 {
11439 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 {
11443 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 {
11447 PyThreadState* __tstate = wxPyBeginAllowThreads();
11448 (arg1)->DrawCircle(arg2,arg3,arg4);
11449
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 Py_INCREF(Py_None); resultobj = Py_None;
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj;
11462 wxDC *arg1 = (wxDC *) 0 ;
11463 wxPoint *arg2 = 0 ;
11464 int arg3 ;
11465 wxPoint temp2 ;
11466 PyObject * obj0 = 0 ;
11467 PyObject * obj1 = 0 ;
11468 PyObject * obj2 = 0 ;
11469 char *kwnames[] = {
11470 (char *) "self",(char *) "pt",(char *) "radius", NULL
11471 };
11472
11473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11475 {
11476 arg2 = &temp2;
11477 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11478 }
11479 {
11480 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11486
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 Py_INCREF(Py_None); resultobj = Py_None;
11491 return resultobj;
11492 fail:
11493 return NULL;
11494 }
11495
11496
11497 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11498 PyObject *resultobj;
11499 wxDC *arg1 = (wxDC *) 0 ;
11500 int arg2 ;
11501 int arg3 ;
11502 int arg4 ;
11503 int arg5 ;
11504 PyObject * obj0 = 0 ;
11505 PyObject * obj1 = 0 ;
11506 PyObject * obj2 = 0 ;
11507 PyObject * obj3 = 0 ;
11508 PyObject * obj4 = 0 ;
11509 char *kwnames[] = {
11510 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11511 };
11512
11513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11515 {
11516 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 Py_INCREF(Py_None); resultobj = Py_None;
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj;
11547 wxDC *arg1 = (wxDC *) 0 ;
11548 wxPoint *arg2 = 0 ;
11549 wxSize *arg3 = 0 ;
11550 wxPoint temp2 ;
11551 wxSize temp3 ;
11552 PyObject * obj0 = 0 ;
11553 PyObject * obj1 = 0 ;
11554 PyObject * obj2 = 0 ;
11555 char *kwnames[] = {
11556 (char *) "self",(char *) "pt",(char *) "sz", NULL
11557 };
11558
11559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11561 {
11562 arg2 = &temp2;
11563 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11564 }
11565 {
11566 arg3 = &temp3;
11567 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11568 }
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 Py_INCREF(Py_None); resultobj = Py_None;
11577 return resultobj;
11578 fail:
11579 return NULL;
11580 }
11581
11582
11583 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11584 PyObject *resultobj;
11585 wxDC *arg1 = (wxDC *) 0 ;
11586 wxRect *arg2 = 0 ;
11587 wxRect temp2 ;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 char *kwnames[] = {
11591 (char *) "self",(char *) "rect", NULL
11592 };
11593
11594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11596 {
11597 arg2 = &temp2;
11598 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11599 }
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 (arg1)->DrawEllipse((wxRect const &)*arg2);
11603
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 Py_INCREF(Py_None); resultobj = Py_None;
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj;
11616 wxDC *arg1 = (wxDC *) 0 ;
11617 wxIcon *arg2 = 0 ;
11618 int arg3 ;
11619 int arg4 ;
11620 PyObject * obj0 = 0 ;
11621 PyObject * obj1 = 0 ;
11622 PyObject * obj2 = 0 ;
11623 PyObject * obj3 = 0 ;
11624 char *kwnames[] = {
11625 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11626 };
11627
11628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11630 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11631 if (arg2 == NULL) {
11632 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11633 }
11634 {
11635 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 {
11639 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 Py_INCREF(Py_None); resultobj = Py_None;
11650 return resultobj;
11651 fail:
11652 return NULL;
11653 }
11654
11655
11656 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11657 PyObject *resultobj;
11658 wxDC *arg1 = (wxDC *) 0 ;
11659 wxIcon *arg2 = 0 ;
11660 wxPoint *arg3 = 0 ;
11661 wxPoint temp3 ;
11662 PyObject * obj0 = 0 ;
11663 PyObject * obj1 = 0 ;
11664 PyObject * obj2 = 0 ;
11665 char *kwnames[] = {
11666 (char *) "self",(char *) "icon",(char *) "pt", NULL
11667 };
11668
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11671 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11672 if (arg2 == NULL) {
11673 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11674 }
11675 {
11676 arg3 = &temp3;
11677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11678 }
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 wxDC *arg1 = (wxDC *) 0 ;
11696 wxBitmap *arg2 = 0 ;
11697 int arg3 ;
11698 int arg4 ;
11699 bool arg5 = (bool) False ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 PyObject * obj2 = 0 ;
11703 PyObject * obj3 = 0 ;
11704 PyObject * obj4 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11711 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11712 if (arg2 == NULL) {
11713 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11714 }
11715 {
11716 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 {
11720 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 if (obj4) {
11724 {
11725 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 Py_INCREF(Py_None); resultobj = Py_None;
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj;
11745 wxDC *arg1 = (wxDC *) 0 ;
11746 wxBitmap *arg2 = 0 ;
11747 wxPoint *arg3 = 0 ;
11748 bool arg4 = (bool) False ;
11749 wxPoint temp3 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 PyObject * obj2 = 0 ;
11753 PyObject * obj3 = 0 ;
11754 char *kwnames[] = {
11755 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11756 };
11757
11758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11760 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11761 if (arg2 == NULL) {
11762 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11763 }
11764 {
11765 arg3 = &temp3;
11766 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11767 }
11768 if (obj3) {
11769 {
11770 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 return resultobj;
11783 fail:
11784 return NULL;
11785 }
11786
11787
11788 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxDC *arg1 = (wxDC *) 0 ;
11791 wxString *arg2 = 0 ;
11792 int arg3 ;
11793 int arg4 ;
11794 bool temp2 = False ;
11795 PyObject * obj0 = 0 ;
11796 PyObject * obj1 = 0 ;
11797 PyObject * obj2 = 0 ;
11798 PyObject * obj3 = 0 ;
11799 char *kwnames[] = {
11800 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11801 };
11802
11803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11805 {
11806 arg2 = wxString_in_helper(obj1);
11807 if (arg2 == NULL) SWIG_fail;
11808 temp2 = True;
11809 }
11810 {
11811 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 {
11815 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11821
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 Py_INCREF(Py_None); resultobj = Py_None;
11826 {
11827 if (temp2)
11828 delete arg2;
11829 }
11830 return resultobj;
11831 fail:
11832 {
11833 if (temp2)
11834 delete arg2;
11835 }
11836 return NULL;
11837 }
11838
11839
11840 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11841 PyObject *resultobj;
11842 wxDC *arg1 = (wxDC *) 0 ;
11843 wxString *arg2 = 0 ;
11844 wxPoint *arg3 = 0 ;
11845 bool temp2 = False ;
11846 wxPoint temp3 ;
11847 PyObject * obj0 = 0 ;
11848 PyObject * obj1 = 0 ;
11849 PyObject * obj2 = 0 ;
11850 char *kwnames[] = {
11851 (char *) "self",(char *) "text",(char *) "pt", NULL
11852 };
11853
11854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11856 {
11857 arg2 = wxString_in_helper(obj1);
11858 if (arg2 == NULL) SWIG_fail;
11859 temp2 = True;
11860 }
11861 {
11862 arg3 = &temp3;
11863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 Py_INCREF(Py_None); resultobj = Py_None;
11873 {
11874 if (temp2)
11875 delete arg2;
11876 }
11877 return resultobj;
11878 fail:
11879 {
11880 if (temp2)
11881 delete arg2;
11882 }
11883 return NULL;
11884 }
11885
11886
11887 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11888 PyObject *resultobj;
11889 wxDC *arg1 = (wxDC *) 0 ;
11890 wxString *arg2 = 0 ;
11891 int arg3 ;
11892 int arg4 ;
11893 double arg5 ;
11894 bool temp2 = False ;
11895 PyObject * obj0 = 0 ;
11896 PyObject * obj1 = 0 ;
11897 PyObject * obj2 = 0 ;
11898 PyObject * obj3 = 0 ;
11899 PyObject * obj4 = 0 ;
11900 char *kwnames[] = {
11901 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11902 };
11903
11904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11906 {
11907 arg2 = wxString_in_helper(obj1);
11908 if (arg2 == NULL) SWIG_fail;
11909 temp2 = True;
11910 }
11911 {
11912 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
11915 {
11916 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 {
11920 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11926
11927 wxPyEndAllowThreads(__tstate);
11928 if (PyErr_Occurred()) SWIG_fail;
11929 }
11930 Py_INCREF(Py_None); resultobj = Py_None;
11931 {
11932 if (temp2)
11933 delete arg2;
11934 }
11935 return resultobj;
11936 fail:
11937 {
11938 if (temp2)
11939 delete arg2;
11940 }
11941 return NULL;
11942 }
11943
11944
11945 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11946 PyObject *resultobj;
11947 wxDC *arg1 = (wxDC *) 0 ;
11948 wxString *arg2 = 0 ;
11949 wxPoint *arg3 = 0 ;
11950 double arg4 ;
11951 bool temp2 = False ;
11952 wxPoint temp3 ;
11953 PyObject * obj0 = 0 ;
11954 PyObject * obj1 = 0 ;
11955 PyObject * obj2 = 0 ;
11956 PyObject * obj3 = 0 ;
11957 char *kwnames[] = {
11958 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11959 };
11960
11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11963 {
11964 arg2 = wxString_in_helper(obj1);
11965 if (arg2 == NULL) SWIG_fail;
11966 temp2 = True;
11967 }
11968 {
11969 arg3 = &temp3;
11970 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11971 }
11972 {
11973 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11979
11980 wxPyEndAllowThreads(__tstate);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 }
11983 Py_INCREF(Py_None); resultobj = Py_None;
11984 {
11985 if (temp2)
11986 delete arg2;
11987 }
11988 return resultobj;
11989 fail:
11990 {
11991 if (temp2)
11992 delete arg2;
11993 }
11994 return NULL;
11995 }
11996
11997
11998 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11999 PyObject *resultobj;
12000 wxDC *arg1 = (wxDC *) 0 ;
12001 int arg2 ;
12002 int arg3 ;
12003 int arg4 ;
12004 int arg5 ;
12005 wxDC *arg6 = (wxDC *) 0 ;
12006 int arg7 ;
12007 int arg8 ;
12008 int arg9 = (int) wxCOPY ;
12009 bool arg10 = (bool) False ;
12010 int arg11 = (int) -1 ;
12011 int arg12 = (int) -1 ;
12012 bool result;
12013 PyObject * obj0 = 0 ;
12014 PyObject * obj1 = 0 ;
12015 PyObject * obj2 = 0 ;
12016 PyObject * obj3 = 0 ;
12017 PyObject * obj4 = 0 ;
12018 PyObject * obj5 = 0 ;
12019 PyObject * obj6 = 0 ;
12020 PyObject * obj7 = 0 ;
12021 PyObject * obj8 = 0 ;
12022 PyObject * obj9 = 0 ;
12023 PyObject * obj10 = 0 ;
12024 PyObject * obj11 = 0 ;
12025 char *kwnames[] = {
12026 (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
12027 };
12028
12029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12031 {
12032 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12033 if (PyErr_Occurred()) SWIG_fail;
12034 }
12035 {
12036 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12048 {
12049 arg7 = (int) SWIG_PyObj_AsInt(obj6);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 {
12053 arg8 = (int) SWIG_PyObj_AsInt(obj7);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 if (obj8) {
12057 {
12058 arg9 = (int) SWIG_PyObj_AsInt(obj8);
12059 if (PyErr_Occurred()) SWIG_fail;
12060 }
12061 }
12062 if (obj9) {
12063 {
12064 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 }
12068 if (obj10) {
12069 {
12070 arg11 = (int) SWIG_PyObj_AsInt(obj10);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 }
12074 if (obj11) {
12075 {
12076 arg12 = (int) SWIG_PyObj_AsInt(obj11);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12083
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 resultobj = SWIG_PyObj_FromBool((bool)result);
12088 return resultobj;
12089 fail:
12090 return NULL;
12091 }
12092
12093
12094 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12095 PyObject *resultobj;
12096 wxDC *arg1 = (wxDC *) 0 ;
12097 wxPoint *arg2 = 0 ;
12098 wxSize *arg3 = 0 ;
12099 wxDC *arg4 = (wxDC *) 0 ;
12100 wxPoint *arg5 = 0 ;
12101 int arg6 = (int) wxCOPY ;
12102 bool arg7 = (bool) False ;
12103 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12104 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12105 bool result;
12106 wxPoint temp2 ;
12107 wxSize temp3 ;
12108 wxPoint temp5 ;
12109 wxPoint temp8 ;
12110 PyObject * obj0 = 0 ;
12111 PyObject * obj1 = 0 ;
12112 PyObject * obj2 = 0 ;
12113 PyObject * obj3 = 0 ;
12114 PyObject * obj4 = 0 ;
12115 PyObject * obj5 = 0 ;
12116 PyObject * obj6 = 0 ;
12117 PyObject * obj7 = 0 ;
12118 char *kwnames[] = {
12119 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12120 };
12121
12122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12124 {
12125 arg2 = &temp2;
12126 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12127 }
12128 {
12129 arg3 = &temp3;
12130 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12131 }
12132 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12133 {
12134 arg5 = &temp5;
12135 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12136 }
12137 if (obj5) {
12138 {
12139 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 }
12143 if (obj6) {
12144 {
12145 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 }
12149 if (obj7) {
12150 {
12151 arg8 = &temp8;
12152 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12153 }
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 resultobj = SWIG_PyObj_FromBool((bool)result);
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj;
12171 wxDC *arg1 = (wxDC *) 0 ;
12172 int arg2 ;
12173 wxPoint *arg3 = (wxPoint *) 0 ;
12174 int arg4 = (int) 0 ;
12175 int arg5 = (int) 0 ;
12176 PyObject * obj0 = 0 ;
12177 PyObject * obj1 = 0 ;
12178 PyObject * obj2 = 0 ;
12179 PyObject * obj3 = 0 ;
12180 char *kwnames[] = {
12181 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12182 };
12183
12184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12186 {
12187 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12188 if (arg3 == NULL) SWIG_fail;
12189 }
12190 if (obj2) {
12191 {
12192 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 }
12196 if (obj3) {
12197 {
12198 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 }
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12205
12206 wxPyEndAllowThreads(__tstate);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 }
12209 Py_INCREF(Py_None); resultobj = Py_None;
12210 {
12211 if (arg3) delete [] arg3;
12212 }
12213 return resultobj;
12214 fail:
12215 {
12216 if (arg3) delete [] arg3;
12217 }
12218 return NULL;
12219 }
12220
12221
12222 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12223 PyObject *resultobj;
12224 wxDC *arg1 = (wxDC *) 0 ;
12225 int arg2 ;
12226 wxPoint *arg3 = (wxPoint *) 0 ;
12227 int arg4 = (int) 0 ;
12228 int arg5 = (int) 0 ;
12229 int arg6 = (int) wxODDEVEN_RULE ;
12230 PyObject * obj0 = 0 ;
12231 PyObject * obj1 = 0 ;
12232 PyObject * obj2 = 0 ;
12233 PyObject * obj3 = 0 ;
12234 PyObject * obj4 = 0 ;
12235 char *kwnames[] = {
12236 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12237 };
12238
12239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12241 {
12242 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12243 if (arg3 == NULL) SWIG_fail;
12244 }
12245 if (obj2) {
12246 {
12247 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 }
12251 if (obj3) {
12252 {
12253 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 }
12257 if (obj4) {
12258 {
12259 arg6 = (int) SWIG_PyObj_AsInt(obj4);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 }
12263 {
12264 PyThreadState* __tstate = wxPyBeginAllowThreads();
12265 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12266
12267 wxPyEndAllowThreads(__tstate);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 Py_INCREF(Py_None); resultobj = Py_None;
12271 {
12272 if (arg3) delete [] arg3;
12273 }
12274 return resultobj;
12275 fail:
12276 {
12277 if (arg3) delete [] arg3;
12278 }
12279 return NULL;
12280 }
12281
12282
12283 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj;
12285 wxDC *arg1 = (wxDC *) 0 ;
12286 wxString *arg2 = 0 ;
12287 wxRect *arg3 = 0 ;
12288 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12289 int arg5 = (int) -1 ;
12290 bool temp2 = False ;
12291 wxRect temp3 ;
12292 PyObject * obj0 = 0 ;
12293 PyObject * obj1 = 0 ;
12294 PyObject * obj2 = 0 ;
12295 PyObject * obj3 = 0 ;
12296 PyObject * obj4 = 0 ;
12297 char *kwnames[] = {
12298 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12299 };
12300
12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12303 {
12304 arg2 = wxString_in_helper(obj1);
12305 if (arg2 == NULL) SWIG_fail;
12306 temp2 = True;
12307 }
12308 {
12309 arg3 = &temp3;
12310 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12311 }
12312 if (obj3) {
12313 {
12314 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 }
12318 if (obj4) {
12319 {
12320 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 }
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12327
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 Py_INCREF(Py_None); resultobj = Py_None;
12332 {
12333 if (temp2)
12334 delete arg2;
12335 }
12336 return resultobj;
12337 fail:
12338 {
12339 if (temp2)
12340 delete arg2;
12341 }
12342 return NULL;
12343 }
12344
12345
12346 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxDC *arg1 = (wxDC *) 0 ;
12349 wxString *arg2 = 0 ;
12350 wxBitmap *arg3 = 0 ;
12351 wxRect *arg4 = 0 ;
12352 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12353 int arg6 = (int) -1 ;
12354 wxRect result;
12355 bool temp2 = False ;
12356 wxRect temp4 ;
12357 PyObject * obj0 = 0 ;
12358 PyObject * obj1 = 0 ;
12359 PyObject * obj2 = 0 ;
12360 PyObject * obj3 = 0 ;
12361 PyObject * obj4 = 0 ;
12362 PyObject * obj5 = 0 ;
12363 char *kwnames[] = {
12364 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12365 };
12366
12367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12369 {
12370 arg2 = wxString_in_helper(obj1);
12371 if (arg2 == NULL) SWIG_fail;
12372 temp2 = True;
12373 }
12374 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12375 if (arg3 == NULL) {
12376 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12377 }
12378 {
12379 arg4 = &temp4;
12380 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12381 }
12382 if (obj4) {
12383 {
12384 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 }
12388 if (obj5) {
12389 {
12390 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 {
12402 wxRect * resultptr;
12403 resultptr = new wxRect((wxRect &) result);
12404 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12405 }
12406 {
12407 if (temp2)
12408 delete arg2;
12409 }
12410 return resultobj;
12411 fail:
12412 {
12413 if (temp2)
12414 delete arg2;
12415 }
12416 return NULL;
12417 }
12418
12419
12420 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12421 PyObject *resultobj;
12422 wxDC *arg1 = (wxDC *) 0 ;
12423 int arg2 ;
12424 wxPoint *arg3 = (wxPoint *) 0 ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char *kwnames[] = {
12428 (char *) "self",(char *) "points", NULL
12429 };
12430
12431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12433 {
12434 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12435 if (arg3 == NULL) SWIG_fail;
12436 }
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->DrawSpline(arg2,arg3);
12440
12441 wxPyEndAllowThreads(__tstate);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 Py_INCREF(Py_None); resultobj = Py_None;
12445 {
12446 if (arg3) delete [] arg3;
12447 }
12448 return resultobj;
12449 fail:
12450 {
12451 if (arg3) delete [] arg3;
12452 }
12453 return NULL;
12454 }
12455
12456
12457 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12458 PyObject *resultobj;
12459 wxDC *arg1 = (wxDC *) 0 ;
12460 PyObject * obj0 = 0 ;
12461 char *kwnames[] = {
12462 (char *) "self", NULL
12463 };
12464
12465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 (arg1)->Clear();
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 Py_INCREF(Py_None); resultobj = Py_None;
12475 return resultobj;
12476 fail:
12477 return NULL;
12478 }
12479
12480
12481 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12482 PyObject *resultobj;
12483 wxDC *arg1 = (wxDC *) 0 ;
12484 wxString *arg2 = 0 ;
12485 bool result;
12486 bool temp2 = False ;
12487 PyObject * obj0 = 0 ;
12488 PyObject * obj1 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self",(char *) "message", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12495 {
12496 arg2 = wxString_in_helper(obj1);
12497 if (arg2 == NULL) SWIG_fail;
12498 temp2 = True;
12499 }
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12503
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 resultobj = SWIG_PyObj_FromBool((bool)result);
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 return resultobj;
12513 fail:
12514 {
12515 if (temp2)
12516 delete arg2;
12517 }
12518 return NULL;
12519 }
12520
12521
12522 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj;
12524 wxDC *arg1 = (wxDC *) 0 ;
12525 PyObject * obj0 = 0 ;
12526 char *kwnames[] = {
12527 (char *) "self", NULL
12528 };
12529
12530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 (arg1)->EndDoc();
12535
12536 wxPyEndAllowThreads(__tstate);
12537 if (PyErr_Occurred()) SWIG_fail;
12538 }
12539 Py_INCREF(Py_None); resultobj = Py_None;
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj;
12548 wxDC *arg1 = (wxDC *) 0 ;
12549 PyObject * obj0 = 0 ;
12550 char *kwnames[] = {
12551 (char *) "self", NULL
12552 };
12553
12554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 (arg1)->StartPage();
12559
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 Py_INCREF(Py_None); resultobj = Py_None;
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj;
12572 wxDC *arg1 = (wxDC *) 0 ;
12573 PyObject * obj0 = 0 ;
12574 char *kwnames[] = {
12575 (char *) "self", NULL
12576 };
12577
12578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->EndPage();
12583
12584 wxPyEndAllowThreads(__tstate);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 }
12587 Py_INCREF(Py_None); resultobj = Py_None;
12588 return resultobj;
12589 fail:
12590 return NULL;
12591 }
12592
12593
12594 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12595 PyObject *resultobj;
12596 wxDC *arg1 = (wxDC *) 0 ;
12597 wxFont *arg2 = 0 ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char *kwnames[] = {
12601 (char *) "self",(char *) "font", NULL
12602 };
12603
12604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12606 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12607 if (arg2 == NULL) {
12608 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12609 }
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 (arg1)->SetFont((wxFont const &)*arg2);
12613
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 Py_INCREF(Py_None); resultobj = Py_None;
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12625 PyObject *resultobj;
12626 wxDC *arg1 = (wxDC *) 0 ;
12627 wxPen *arg2 = 0 ;
12628 PyObject * obj0 = 0 ;
12629 PyObject * obj1 = 0 ;
12630 char *kwnames[] = {
12631 (char *) "self",(char *) "pen", NULL
12632 };
12633
12634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12636 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12637 if (arg2 == NULL) {
12638 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12639 }
12640 {
12641 PyThreadState* __tstate = wxPyBeginAllowThreads();
12642 (arg1)->SetPen((wxPen const &)*arg2);
12643
12644 wxPyEndAllowThreads(__tstate);
12645 if (PyErr_Occurred()) SWIG_fail;
12646 }
12647 Py_INCREF(Py_None); resultobj = Py_None;
12648 return resultobj;
12649 fail:
12650 return NULL;
12651 }
12652
12653
12654 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12655 PyObject *resultobj;
12656 wxDC *arg1 = (wxDC *) 0 ;
12657 wxBrush *arg2 = 0 ;
12658 PyObject * obj0 = 0 ;
12659 PyObject * obj1 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self",(char *) "brush", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12666 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12667 if (arg2 == NULL) {
12668 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12669 }
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 (arg1)->SetBrush((wxBrush const &)*arg2);
12673
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 Py_INCREF(Py_None); resultobj = Py_None;
12678 return resultobj;
12679 fail:
12680 return NULL;
12681 }
12682
12683
12684 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxDC *arg1 = (wxDC *) 0 ;
12687 wxBrush *arg2 = 0 ;
12688 PyObject * obj0 = 0 ;
12689 PyObject * obj1 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self",(char *) "brush", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12696 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12697 if (arg2 == NULL) {
12698 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->SetBackground((wxBrush const &)*arg2);
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 Py_INCREF(Py_None); resultobj = Py_None;
12708 return resultobj;
12709 fail:
12710 return NULL;
12711 }
12712
12713
12714 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj;
12716 wxDC *arg1 = (wxDC *) 0 ;
12717 int arg2 ;
12718 PyObject * obj0 = 0 ;
12719 PyObject * obj1 = 0 ;
12720 char *kwnames[] = {
12721 (char *) "self",(char *) "mode", NULL
12722 };
12723
12724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12726 {
12727 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 (arg1)->SetBackgroundMode(arg2);
12733
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 Py_INCREF(Py_None); resultobj = Py_None;
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 wxPalette *arg2 = 0 ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 char *kwnames[] = {
12751 (char *) "self",(char *) "palette", NULL
12752 };
12753
12754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12756 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12757 if (arg2 == NULL) {
12758 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12759 }
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 (arg1)->SetPalette((wxPalette const &)*arg2);
12763
12764 wxPyEndAllowThreads(__tstate);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 Py_INCREF(Py_None); resultobj = Py_None;
12768 return resultobj;
12769 fail:
12770 return NULL;
12771 }
12772
12773
12774 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12775 PyObject *resultobj;
12776 wxDC *arg1 = (wxDC *) 0 ;
12777 int arg2 ;
12778 int arg3 ;
12779 int arg4 ;
12780 int arg5 ;
12781 PyObject * obj0 = 0 ;
12782 PyObject * obj1 = 0 ;
12783 PyObject * obj2 = 0 ;
12784 PyObject * obj3 = 0 ;
12785 PyObject * obj4 = 0 ;
12786 char *kwnames[] = {
12787 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12788 };
12789
12790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12792 {
12793 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 {
12797 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12798 if (PyErr_Occurred()) SWIG_fail;
12799 }
12800 {
12801 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 {
12805 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12806 if (PyErr_Occurred()) SWIG_fail;
12807 }
12808 {
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12811
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 Py_INCREF(Py_None); resultobj = Py_None;
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12823 PyObject *resultobj;
12824 wxDC *arg1 = (wxDC *) 0 ;
12825 wxPoint *arg2 = 0 ;
12826 wxSize *arg3 = 0 ;
12827 wxPoint temp2 ;
12828 wxSize temp3 ;
12829 PyObject * obj0 = 0 ;
12830 PyObject * obj1 = 0 ;
12831 PyObject * obj2 = 0 ;
12832 char *kwnames[] = {
12833 (char *) "self",(char *) "pt",(char *) "sz", NULL
12834 };
12835
12836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12838 {
12839 arg2 = &temp2;
12840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12841 }
12842 {
12843 arg3 = &temp3;
12844 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12845 }
12846 {
12847 PyThreadState* __tstate = wxPyBeginAllowThreads();
12848 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12849
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 Py_INCREF(Py_None); resultobj = Py_None;
12854 return resultobj;
12855 fail:
12856 return NULL;
12857 }
12858
12859
12860 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj;
12862 wxDC *arg1 = (wxDC *) 0 ;
12863 wxRect *arg2 = 0 ;
12864 wxRect temp2 ;
12865 PyObject * obj0 = 0 ;
12866 PyObject * obj1 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self",(char *) "rect", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12873 {
12874 arg2 = &temp2;
12875 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12876 }
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 Py_INCREF(Py_None); resultobj = Py_None;
12885 return resultobj;
12886 fail:
12887 return NULL;
12888 }
12889
12890
12891 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12892 PyObject *resultobj;
12893 wxDC *arg1 = (wxDC *) 0 ;
12894 wxRegion *arg2 = 0 ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 char *kwnames[] = {
12898 (char *) "self",(char *) "region", NULL
12899 };
12900
12901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12903 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12904 if (arg2 == NULL) {
12905 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12906 }
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12910
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 Py_INCREF(Py_None); resultobj = Py_None;
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxDC *arg1 = (wxDC *) 0 ;
12924 PyObject * obj0 = 0 ;
12925 char *kwnames[] = {
12926 (char *) "self", NULL
12927 };
12928
12929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12931 {
12932 PyThreadState* __tstate = wxPyBeginAllowThreads();
12933 (arg1)->DestroyClippingRegion();
12934
12935 wxPyEndAllowThreads(__tstate);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 Py_INCREF(Py_None); resultobj = Py_None;
12939 return resultobj;
12940 fail:
12941 return NULL;
12942 }
12943
12944
12945 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12946 PyObject *resultobj;
12947 wxDC *arg1 = (wxDC *) 0 ;
12948 int *arg2 = (int *) 0 ;
12949 int *arg3 = (int *) 0 ;
12950 int *arg4 = (int *) 0 ;
12951 int *arg5 = (int *) 0 ;
12952 int temp2 ;
12953 int temp3 ;
12954 int temp4 ;
12955 int temp5 ;
12956 PyObject * obj0 = 0 ;
12957 char *kwnames[] = {
12958 (char *) "self", NULL
12959 };
12960
12961 arg2 = &temp2;
12962 arg3 = &temp3;
12963 arg4 = &temp4;
12964 arg5 = &temp5;
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12970
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 Py_INCREF(Py_None); resultobj = Py_None;
12975 {
12976 PyObject *o = PyInt_FromLong((long) (*arg2));
12977 resultobj = t_output_helper(resultobj,o);
12978 }
12979 {
12980 PyObject *o = PyInt_FromLong((long) (*arg3));
12981 resultobj = t_output_helper(resultobj,o);
12982 }
12983 {
12984 PyObject *o = PyInt_FromLong((long) (*arg4));
12985 resultobj = t_output_helper(resultobj,o);
12986 }
12987 {
12988 PyObject *o = PyInt_FromLong((long) (*arg5));
12989 resultobj = t_output_helper(resultobj,o);
12990 }
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj;
12999 wxDC *arg1 = (wxDC *) 0 ;
13000 wxRect result;
13001 PyObject * obj0 = 0 ;
13002 char *kwnames[] = {
13003 (char *) "self", NULL
13004 };
13005
13006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = wxDC_GetClippingRect(arg1);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 {
13016 wxRect * resultptr;
13017 resultptr = new wxRect((wxRect &) result);
13018 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
13019 }
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj;
13028 wxDC *arg1 = (wxDC *) 0 ;
13029 int result;
13030 PyObject * obj0 = 0 ;
13031 char *kwnames[] = {
13032 (char *) "self", NULL
13033 };
13034
13035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (int)((wxDC const *)arg1)->GetCharHeight();
13040
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 resultobj = SWIG_PyObj_FromInt((int)result);
13045 return resultobj;
13046 fail:
13047 return NULL;
13048 }
13049
13050
13051 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj;
13053 wxDC *arg1 = (wxDC *) 0 ;
13054 int result;
13055 PyObject * obj0 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 result = (int)((wxDC const *)arg1)->GetCharWidth();
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_PyObj_FromInt((int)result);
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxDC *arg1 = (wxDC *) 0 ;
13079 wxString *arg2 = 0 ;
13080 int *arg3 = (int *) 0 ;
13081 int *arg4 = (int *) 0 ;
13082 bool temp2 = False ;
13083 int temp3 ;
13084 int temp4 ;
13085 PyObject * obj0 = 0 ;
13086 PyObject * obj1 = 0 ;
13087 char *kwnames[] = {
13088 (char *) "self",(char *) "string", NULL
13089 };
13090
13091 arg3 = &temp3;
13092 arg4 = &temp4;
13093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13095 {
13096 arg2 = wxString_in_helper(obj1);
13097 if (arg2 == NULL) SWIG_fail;
13098 temp2 = True;
13099 }
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13103
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 Py_INCREF(Py_None); resultobj = Py_None;
13108 {
13109 PyObject *o = PyInt_FromLong((long) (*arg3));
13110 resultobj = t_output_helper(resultobj,o);
13111 }
13112 {
13113 PyObject *o = PyInt_FromLong((long) (*arg4));
13114 resultobj = t_output_helper(resultobj,o);
13115 }
13116 {
13117 if (temp2)
13118 delete arg2;
13119 }
13120 return resultobj;
13121 fail:
13122 {
13123 if (temp2)
13124 delete arg2;
13125 }
13126 return NULL;
13127 }
13128
13129
13130 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj;
13132 wxDC *arg1 = (wxDC *) 0 ;
13133 wxString *arg2 = 0 ;
13134 int *arg3 = (int *) 0 ;
13135 int *arg4 = (int *) 0 ;
13136 int *arg5 = (int *) 0 ;
13137 int *arg6 = (int *) 0 ;
13138 wxFont *arg7 = (wxFont *) NULL ;
13139 bool temp2 = False ;
13140 int temp3 ;
13141 int temp4 ;
13142 int temp5 ;
13143 int temp6 ;
13144 PyObject * obj0 = 0 ;
13145 PyObject * obj1 = 0 ;
13146 PyObject * obj2 = 0 ;
13147 char *kwnames[] = {
13148 (char *) "self",(char *) "string",(char *) "font", NULL
13149 };
13150
13151 arg3 = &temp3;
13152 arg4 = &temp4;
13153 arg5 = &temp5;
13154 arg6 = &temp6;
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13157 {
13158 arg2 = wxString_in_helper(obj1);
13159 if (arg2 == NULL) SWIG_fail;
13160 temp2 = True;
13161 }
13162 if (obj2) {
13163 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13164 }
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13168
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 Py_INCREF(Py_None); resultobj = Py_None;
13173 {
13174 PyObject *o = PyInt_FromLong((long) (*arg3));
13175 resultobj = t_output_helper(resultobj,o);
13176 }
13177 {
13178 PyObject *o = PyInt_FromLong((long) (*arg4));
13179 resultobj = t_output_helper(resultobj,o);
13180 }
13181 {
13182 PyObject *o = PyInt_FromLong((long) (*arg5));
13183 resultobj = t_output_helper(resultobj,o);
13184 }
13185 {
13186 PyObject *o = PyInt_FromLong((long) (*arg6));
13187 resultobj = t_output_helper(resultobj,o);
13188 }
13189 {
13190 if (temp2)
13191 delete arg2;
13192 }
13193 return resultobj;
13194 fail:
13195 {
13196 if (temp2)
13197 delete arg2;
13198 }
13199 return NULL;
13200 }
13201
13202
13203 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13204 PyObject *resultobj;
13205 wxDC *arg1 = (wxDC *) 0 ;
13206 wxString *arg2 = 0 ;
13207 int *arg3 = (int *) 0 ;
13208 int *arg4 = (int *) 0 ;
13209 int *arg5 = (int *) 0 ;
13210 wxFont *arg6 = (wxFont *) NULL ;
13211 bool temp2 = False ;
13212 int temp3 ;
13213 int temp4 ;
13214 int temp5 ;
13215 PyObject * obj0 = 0 ;
13216 PyObject * obj1 = 0 ;
13217 PyObject * obj2 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self",(char *) "text",(char *) "font", NULL
13220 };
13221
13222 arg3 = &temp3;
13223 arg4 = &temp4;
13224 arg5 = &temp5;
13225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13227 {
13228 arg2 = wxString_in_helper(obj1);
13229 if (arg2 == NULL) SWIG_fail;
13230 temp2 = True;
13231 }
13232 if (obj2) {
13233 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13234 }
13235 {
13236 PyThreadState* __tstate = wxPyBeginAllowThreads();
13237 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13238
13239 wxPyEndAllowThreads(__tstate);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 Py_INCREF(Py_None); resultobj = Py_None;
13243 {
13244 PyObject *o = PyInt_FromLong((long) (*arg3));
13245 resultobj = t_output_helper(resultobj,o);
13246 }
13247 {
13248 PyObject *o = PyInt_FromLong((long) (*arg4));
13249 resultobj = t_output_helper(resultobj,o);
13250 }
13251 {
13252 PyObject *o = PyInt_FromLong((long) (*arg5));
13253 resultobj = t_output_helper(resultobj,o);
13254 }
13255 {
13256 if (temp2)
13257 delete arg2;
13258 }
13259 return resultobj;
13260 fail:
13261 {
13262 if (temp2)
13263 delete arg2;
13264 }
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxDC *arg1 = (wxDC *) 0 ;
13272 wxSize result;
13273 PyObject * obj0 = 0 ;
13274 char *kwnames[] = {
13275 (char *) "self", NULL
13276 };
13277
13278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 result = (arg1)->GetSize();
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 {
13288 wxSize * resultptr;
13289 resultptr = new wxSize((wxSize &) result);
13290 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13291 }
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxDC *arg1 = (wxDC *) 0 ;
13301 int *arg2 = (int *) 0 ;
13302 int *arg3 = (int *) 0 ;
13303 int temp2 ;
13304 int temp3 ;
13305 PyObject * obj0 = 0 ;
13306 char *kwnames[] = {
13307 (char *) "self", NULL
13308 };
13309
13310 arg2 = &temp2;
13311 arg3 = &temp3;
13312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 (arg1)->GetSize(arg2,arg3);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 Py_INCREF(Py_None); resultobj = Py_None;
13322 {
13323 PyObject *o = PyInt_FromLong((long) (*arg2));
13324 resultobj = t_output_helper(resultobj,o);
13325 }
13326 {
13327 PyObject *o = PyInt_FromLong((long) (*arg3));
13328 resultobj = t_output_helper(resultobj,o);
13329 }
13330 return resultobj;
13331 fail:
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxDC *arg1 = (wxDC *) 0 ;
13339 wxSize result;
13340 PyObject * obj0 = 0 ;
13341 char *kwnames[] = {
13342 (char *) "self", NULL
13343 };
13344
13345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = ((wxDC const *)arg1)->GetSizeMM();
13350
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 {
13355 wxSize * resultptr;
13356 resultptr = new wxSize((wxSize &) result);
13357 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13358 }
13359 return resultobj;
13360 fail:
13361 return NULL;
13362 }
13363
13364
13365 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13366 PyObject *resultobj;
13367 wxDC *arg1 = (wxDC *) 0 ;
13368 int *arg2 = (int *) 0 ;
13369 int *arg3 = (int *) 0 ;
13370 int temp2 ;
13371 int temp3 ;
13372 PyObject * obj0 = 0 ;
13373 char *kwnames[] = {
13374 (char *) "self", NULL
13375 };
13376
13377 arg2 = &temp2;
13378 arg3 = &temp3;
13379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13384
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 Py_INCREF(Py_None); resultobj = Py_None;
13389 {
13390 PyObject *o = PyInt_FromLong((long) (*arg2));
13391 resultobj = t_output_helper(resultobj,o);
13392 }
13393 {
13394 PyObject *o = PyInt_FromLong((long) (*arg3));
13395 resultobj = t_output_helper(resultobj,o);
13396 }
13397 return resultobj;
13398 fail:
13399 return NULL;
13400 }
13401
13402
13403 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13404 PyObject *resultobj;
13405 wxDC *arg1 = (wxDC *) 0 ;
13406 int arg2 ;
13407 int result;
13408 PyObject * obj0 = 0 ;
13409 PyObject * obj1 = 0 ;
13410 char *kwnames[] = {
13411 (char *) "self",(char *) "x", NULL
13412 };
13413
13414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13416 {
13417 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_PyObj_FromInt((int)result);
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj;
13436 wxDC *arg1 = (wxDC *) 0 ;
13437 int arg2 ;
13438 int result;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 char *kwnames[] = {
13442 (char *) "self",(char *) "y", NULL
13443 };
13444
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13447 {
13448 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13454
13455 wxPyEndAllowThreads(__tstate);
13456 if (PyErr_Occurred()) SWIG_fail;
13457 }
13458 resultobj = SWIG_PyObj_FromInt((int)result);
13459 return resultobj;
13460 fail:
13461 return NULL;
13462 }
13463
13464
13465 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13466 PyObject *resultobj;
13467 wxDC *arg1 = (wxDC *) 0 ;
13468 int arg2 ;
13469 int result;
13470 PyObject * obj0 = 0 ;
13471 PyObject * obj1 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self",(char *) "x", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13478 {
13479 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 {
13483 PyThreadState* __tstate = wxPyBeginAllowThreads();
13484 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13485
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 resultobj = SWIG_PyObj_FromInt((int)result);
13490 return resultobj;
13491 fail:
13492 return NULL;
13493 }
13494
13495
13496 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj;
13498 wxDC *arg1 = (wxDC *) 0 ;
13499 int arg2 ;
13500 int result;
13501 PyObject * obj0 = 0 ;
13502 PyObject * obj1 = 0 ;
13503 char *kwnames[] = {
13504 (char *) "self",(char *) "y", NULL
13505 };
13506
13507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13509 {
13510 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13516
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = SWIG_PyObj_FromInt((int)result);
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj;
13529 wxDC *arg1 = (wxDC *) 0 ;
13530 int arg2 ;
13531 int result;
13532 PyObject * obj0 = 0 ;
13533 PyObject * obj1 = 0 ;
13534 char *kwnames[] = {
13535 (char *) "self",(char *) "x", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13540 {
13541 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = SWIG_PyObj_FromInt((int)result);
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxDC *arg1 = (wxDC *) 0 ;
13561 int arg2 ;
13562 int result;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 char *kwnames[] = {
13566 (char *) "self",(char *) "y", NULL
13567 };
13568
13569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13571 {
13572 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13573 if (PyErr_Occurred()) SWIG_fail;
13574 }
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 resultobj = SWIG_PyObj_FromInt((int)result);
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj;
13591 wxDC *arg1 = (wxDC *) 0 ;
13592 int arg2 ;
13593 int result;
13594 PyObject * obj0 = 0 ;
13595 PyObject * obj1 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self",(char *) "x", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13602 {
13603 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_PyObj_FromInt((int)result);
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxDC *arg1 = (wxDC *) 0 ;
13623 int arg2 ;
13624 int result;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "self",(char *) "y", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13633 {
13634 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13640
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_PyObj_FromInt((int)result);
13645 return resultobj;
13646 fail:
13647 return NULL;
13648 }
13649
13650
13651 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13652 PyObject *resultobj;
13653 wxDC *arg1 = (wxDC *) 0 ;
13654 bool result;
13655 PyObject * obj0 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self", NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13665
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_PyObj_FromBool((bool)result);
13670 return resultobj;
13671 fail:
13672 return NULL;
13673 }
13674
13675
13676 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj;
13678 wxDC *arg1 = (wxDC *) 0 ;
13679 bool result;
13680 PyObject * obj0 = 0 ;
13681 char *kwnames[] = {
13682 (char *) "self", NULL
13683 };
13684
13685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13687 {
13688 PyThreadState* __tstate = wxPyBeginAllowThreads();
13689 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13690
13691 wxPyEndAllowThreads(__tstate);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 resultobj = SWIG_PyObj_FromBool((bool)result);
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13702 PyObject *resultobj;
13703 wxDC *arg1 = (wxDC *) 0 ;
13704 int result;
13705 PyObject * obj0 = 0 ;
13706 char *kwnames[] = {
13707 (char *) "self", NULL
13708 };
13709
13710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 result = (int)((wxDC const *)arg1)->GetDepth();
13715
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 resultobj = SWIG_PyObj_FromInt((int)result);
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxDC *arg1 = (wxDC *) 0 ;
13729 wxSize result;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13737 {
13738 PyThreadState* __tstate = wxPyBeginAllowThreads();
13739 result = ((wxDC const *)arg1)->GetPPI();
13740
13741 wxPyEndAllowThreads(__tstate);
13742 if (PyErr_Occurred()) SWIG_fail;
13743 }
13744 {
13745 wxSize * resultptr;
13746 resultptr = new wxSize((wxSize &) result);
13747 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13748 }
13749 return resultobj;
13750 fail:
13751 return NULL;
13752 }
13753
13754
13755 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13756 PyObject *resultobj;
13757 wxDC *arg1 = (wxDC *) 0 ;
13758 bool result;
13759 PyObject * obj0 = 0 ;
13760 char *kwnames[] = {
13761 (char *) "self", NULL
13762 };
13763
13764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13766 {
13767 PyThreadState* __tstate = wxPyBeginAllowThreads();
13768 result = (bool)((wxDC const *)arg1)->Ok();
13769
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_PyObj_FromBool((bool)result);
13774 return resultobj;
13775 fail:
13776 return NULL;
13777 }
13778
13779
13780 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13781 PyObject *resultobj;
13782 wxDC *arg1 = (wxDC *) 0 ;
13783 int result;
13784 PyObject * obj0 = 0 ;
13785 char *kwnames[] = {
13786 (char *) "self", NULL
13787 };
13788
13789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13791 {
13792 PyThreadState* __tstate = wxPyBeginAllowThreads();
13793 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13794
13795 wxPyEndAllowThreads(__tstate);
13796 if (PyErr_Occurred()) SWIG_fail;
13797 }
13798 resultobj = SWIG_PyObj_FromInt((int)result);
13799 return resultobj;
13800 fail:
13801 return NULL;
13802 }
13803
13804
13805 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13806 PyObject *resultobj;
13807 wxDC *arg1 = (wxDC *) 0 ;
13808 wxBrush *result;
13809 PyObject * obj0 = 0 ;
13810 char *kwnames[] = {
13811 (char *) "self", NULL
13812 };
13813
13814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 {
13819 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13820 result = (wxBrush *) &_result_ref;
13821 }
13822
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj;
13835 wxDC *arg1 = (wxDC *) 0 ;
13836 wxBrush *result;
13837 PyObject * obj0 = 0 ;
13838 char *kwnames[] = {
13839 (char *) "self", NULL
13840 };
13841
13842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13844 {
13845 PyThreadState* __tstate = wxPyBeginAllowThreads();
13846 {
13847 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13848 result = (wxBrush *) &_result_ref;
13849 }
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxDC *arg1 = (wxDC *) 0 ;
13864 wxFont *result;
13865 PyObject * obj0 = 0 ;
13866 char *kwnames[] = {
13867 (char *) "self", NULL
13868 };
13869
13870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 {
13875 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13876 result = (wxFont *) &_result_ref;
13877 }
13878
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13883 return resultobj;
13884 fail:
13885 return NULL;
13886 }
13887
13888
13889 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13890 PyObject *resultobj;
13891 wxDC *arg1 = (wxDC *) 0 ;
13892 wxPen *result;
13893 PyObject * obj0 = 0 ;
13894 char *kwnames[] = {
13895 (char *) "self", NULL
13896 };
13897
13898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 {
13903 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13904 result = (wxPen *) &_result_ref;
13905 }
13906
13907 wxPyEndAllowThreads(__tstate);
13908 if (PyErr_Occurred()) SWIG_fail;
13909 }
13910 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13911 return resultobj;
13912 fail:
13913 return NULL;
13914 }
13915
13916
13917 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13918 PyObject *resultobj;
13919 wxDC *arg1 = (wxDC *) 0 ;
13920 wxColour *result;
13921 PyObject * obj0 = 0 ;
13922 char *kwnames[] = {
13923 (char *) "self", NULL
13924 };
13925
13926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 {
13931 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13932 result = (wxColour *) &_result_ref;
13933 }
13934
13935 wxPyEndAllowThreads(__tstate);
13936 if (PyErr_Occurred()) SWIG_fail;
13937 }
13938 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13939 return resultobj;
13940 fail:
13941 return NULL;
13942 }
13943
13944
13945 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj;
13947 wxDC *arg1 = (wxDC *) 0 ;
13948 wxColour *result;
13949 PyObject * obj0 = 0 ;
13950 char *kwnames[] = {
13951 (char *) "self", NULL
13952 };
13953
13954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 {
13959 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13960 result = (wxColour *) &_result_ref;
13961 }
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj;
13975 wxDC *arg1 = (wxDC *) 0 ;
13976 wxColour *arg2 = 0 ;
13977 wxColour temp2 ;
13978 PyObject * obj0 = 0 ;
13979 PyObject * obj1 = 0 ;
13980 char *kwnames[] = {
13981 (char *) "self",(char *) "colour", NULL
13982 };
13983
13984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13986 {
13987 arg2 = &temp2;
13988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13989 }
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 (arg1)->SetTextForeground((wxColour const &)*arg2);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 Py_INCREF(Py_None); resultobj = Py_None;
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 wxColour *arg2 = 0 ;
14008 wxColour temp2 ;
14009 PyObject * obj0 = 0 ;
14010 PyObject * obj1 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self",(char *) "colour", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14017 {
14018 arg2 = &temp2;
14019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14020 }
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 (arg1)->SetTextBackground((wxColour const &)*arg2);
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 Py_INCREF(Py_None); resultobj = Py_None;
14029 return resultobj;
14030 fail:
14031 return NULL;
14032 }
14033
14034
14035 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxDC *arg1 = (wxDC *) 0 ;
14038 int result;
14039 PyObject * obj0 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = (int)((wxDC const *)arg1)->GetMapMode();
14049
14050 wxPyEndAllowThreads(__tstate);
14051 if (PyErr_Occurred()) SWIG_fail;
14052 }
14053 resultobj = SWIG_PyObj_FromInt((int)result);
14054 return resultobj;
14055 fail:
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj;
14062 wxDC *arg1 = (wxDC *) 0 ;
14063 int arg2 ;
14064 PyObject * obj0 = 0 ;
14065 PyObject * obj1 = 0 ;
14066 char *kwnames[] = {
14067 (char *) "self",(char *) "mode", NULL
14068 };
14069
14070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14072 {
14073 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 {
14077 PyThreadState* __tstate = wxPyBeginAllowThreads();
14078 (arg1)->SetMapMode(arg2);
14079
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
14083 Py_INCREF(Py_None); resultobj = Py_None;
14084 return resultobj;
14085 fail:
14086 return NULL;
14087 }
14088
14089
14090 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14091 PyObject *resultobj;
14092 wxDC *arg1 = (wxDC *) 0 ;
14093 double *arg2 = (double *) 0 ;
14094 double *arg3 = (double *) 0 ;
14095 double temp2 ;
14096 double temp3 ;
14097 PyObject * obj0 = 0 ;
14098 char *kwnames[] = {
14099 (char *) "self", NULL
14100 };
14101
14102 arg2 = &temp2;
14103 arg3 = &temp3;
14104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14106 {
14107 PyThreadState* __tstate = wxPyBeginAllowThreads();
14108 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14109
14110 wxPyEndAllowThreads(__tstate);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
14113 Py_INCREF(Py_None); resultobj = Py_None;
14114 {
14115 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14116 resultobj = t_output_helper(resultobj,o);
14117 }
14118 {
14119 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14120 resultobj = t_output_helper(resultobj,o);
14121 }
14122 return resultobj;
14123 fail:
14124 return NULL;
14125 }
14126
14127
14128 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14129 PyObject *resultobj;
14130 wxDC *arg1 = (wxDC *) 0 ;
14131 double arg2 ;
14132 double arg3 ;
14133 PyObject * obj0 = 0 ;
14134 PyObject * obj1 = 0 ;
14135 PyObject * obj2 = 0 ;
14136 char *kwnames[] = {
14137 (char *) "self",(char *) "x",(char *) "y", NULL
14138 };
14139
14140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14142 {
14143 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 {
14147 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 PyThreadState* __tstate = wxPyBeginAllowThreads();
14152 (arg1)->SetUserScale(arg2,arg3);
14153
14154 wxPyEndAllowThreads(__tstate);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 }
14157 Py_INCREF(Py_None); resultobj = Py_None;
14158 return resultobj;
14159 fail:
14160 return NULL;
14161 }
14162
14163
14164 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14165 PyObject *resultobj;
14166 wxDC *arg1 = (wxDC *) 0 ;
14167 double *arg2 = (double *) 0 ;
14168 double *arg3 = (double *) 0 ;
14169 double temp2 ;
14170 double temp3 ;
14171 PyObject * obj0 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self", NULL
14174 };
14175
14176 arg2 = &temp2;
14177 arg3 = &temp3;
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14180 {
14181 PyThreadState* __tstate = wxPyBeginAllowThreads();
14182 (arg1)->GetLogicalScale(arg2,arg3);
14183
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 Py_INCREF(Py_None); resultobj = Py_None;
14188 {
14189 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14190 resultobj = t_output_helper(resultobj,o);
14191 }
14192 {
14193 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14194 resultobj = t_output_helper(resultobj,o);
14195 }
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj;
14204 wxDC *arg1 = (wxDC *) 0 ;
14205 double arg2 ;
14206 double arg3 ;
14207 PyObject * obj0 = 0 ;
14208 PyObject * obj1 = 0 ;
14209 PyObject * obj2 = 0 ;
14210 char *kwnames[] = {
14211 (char *) "self",(char *) "x",(char *) "y", NULL
14212 };
14213
14214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14216 {
14217 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 }
14220 {
14221 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 (arg1)->SetLogicalScale(arg2,arg3);
14227
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 Py_INCREF(Py_None); resultobj = Py_None;
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14239 PyObject *resultobj;
14240 wxDC *arg1 = (wxDC *) 0 ;
14241 wxPoint result;
14242 PyObject * obj0 = 0 ;
14243 char *kwnames[] = {
14244 (char *) "self", NULL
14245 };
14246
14247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14252
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 {
14257 wxPoint * resultptr;
14258 resultptr = new wxPoint((wxPoint &) result);
14259 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14260 }
14261 return resultobj;
14262 fail:
14263 return NULL;
14264 }
14265
14266
14267 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14268 PyObject *resultobj;
14269 wxDC *arg1 = (wxDC *) 0 ;
14270 int *arg2 = (int *) 0 ;
14271 int *arg3 = (int *) 0 ;
14272 int temp2 ;
14273 int temp3 ;
14274 PyObject * obj0 = 0 ;
14275 char *kwnames[] = {
14276 (char *) "self", NULL
14277 };
14278
14279 arg2 = &temp2;
14280 arg3 = &temp3;
14281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14283 {
14284 PyThreadState* __tstate = wxPyBeginAllowThreads();
14285 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14286
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 Py_INCREF(Py_None); resultobj = Py_None;
14291 {
14292 PyObject *o = PyInt_FromLong((long) (*arg2));
14293 resultobj = t_output_helper(resultobj,o);
14294 }
14295 {
14296 PyObject *o = PyInt_FromLong((long) (*arg3));
14297 resultobj = t_output_helper(resultobj,o);
14298 }
14299 return resultobj;
14300 fail:
14301 return NULL;
14302 }
14303
14304
14305 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14306 PyObject *resultobj;
14307 wxDC *arg1 = (wxDC *) 0 ;
14308 int arg2 ;
14309 int arg3 ;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 PyObject * obj2 = 0 ;
14313 char *kwnames[] = {
14314 (char *) "self",(char *) "x",(char *) "y", NULL
14315 };
14316
14317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14319 {
14320 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14325 if (PyErr_Occurred()) SWIG_fail;
14326 }
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 (arg1)->SetLogicalOrigin(arg2,arg3);
14330
14331 wxPyEndAllowThreads(__tstate);
14332 if (PyErr_Occurred()) SWIG_fail;
14333 }
14334 Py_INCREF(Py_None); resultobj = Py_None;
14335 return resultobj;
14336 fail:
14337 return NULL;
14338 }
14339
14340
14341 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14342 PyObject *resultobj;
14343 wxDC *arg1 = (wxDC *) 0 ;
14344 wxPoint result;
14345 PyObject * obj0 = 0 ;
14346 char *kwnames[] = {
14347 (char *) "self", NULL
14348 };
14349
14350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14355
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 {
14360 wxPoint * resultptr;
14361 resultptr = new wxPoint((wxPoint &) result);
14362 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14363 }
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14371 PyObject *resultobj;
14372 wxDC *arg1 = (wxDC *) 0 ;
14373 int *arg2 = (int *) 0 ;
14374 int *arg3 = (int *) 0 ;
14375 int temp2 ;
14376 int temp3 ;
14377 PyObject * obj0 = 0 ;
14378 char *kwnames[] = {
14379 (char *) "self", NULL
14380 };
14381
14382 arg2 = &temp2;
14383 arg3 = &temp3;
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14386 {
14387 PyThreadState* __tstate = wxPyBeginAllowThreads();
14388 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14389
14390 wxPyEndAllowThreads(__tstate);
14391 if (PyErr_Occurred()) SWIG_fail;
14392 }
14393 Py_INCREF(Py_None); resultobj = Py_None;
14394 {
14395 PyObject *o = PyInt_FromLong((long) (*arg2));
14396 resultobj = t_output_helper(resultobj,o);
14397 }
14398 {
14399 PyObject *o = PyInt_FromLong((long) (*arg3));
14400 resultobj = t_output_helper(resultobj,o);
14401 }
14402 return resultobj;
14403 fail:
14404 return NULL;
14405 }
14406
14407
14408 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14409 PyObject *resultobj;
14410 wxDC *arg1 = (wxDC *) 0 ;
14411 int arg2 ;
14412 int arg3 ;
14413 PyObject * obj0 = 0 ;
14414 PyObject * obj1 = 0 ;
14415 PyObject * obj2 = 0 ;
14416 char *kwnames[] = {
14417 (char *) "self",(char *) "x",(char *) "y", NULL
14418 };
14419
14420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14422 {
14423 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 {
14427 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 (arg1)->SetDeviceOrigin(arg2,arg3);
14433
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 Py_INCREF(Py_None); resultobj = Py_None;
14438 return resultobj;
14439 fail:
14440 return NULL;
14441 }
14442
14443
14444 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxDC *arg1 = (wxDC *) 0 ;
14447 bool arg2 ;
14448 bool arg3 ;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 PyObject * obj2 = 0 ;
14452 char *kwnames[] = {
14453 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14454 };
14455
14456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14458 {
14459 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 {
14463 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 {
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 (arg1)->SetAxisOrientation(arg2,arg3);
14469
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 Py_INCREF(Py_None); resultobj = Py_None;
14474 return resultobj;
14475 fail:
14476 return NULL;
14477 }
14478
14479
14480 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj;
14482 wxDC *arg1 = (wxDC *) 0 ;
14483 int result;
14484 PyObject * obj0 = 0 ;
14485 char *kwnames[] = {
14486 (char *) "self", NULL
14487 };
14488
14489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14491 {
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14494
14495 wxPyEndAllowThreads(__tstate);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 resultobj = SWIG_PyObj_FromInt((int)result);
14499 return resultobj;
14500 fail:
14501 return NULL;
14502 }
14503
14504
14505 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14506 PyObject *resultobj;
14507 wxDC *arg1 = (wxDC *) 0 ;
14508 int arg2 ;
14509 PyObject * obj0 = 0 ;
14510 PyObject * obj1 = 0 ;
14511 char *kwnames[] = {
14512 (char *) "self",(char *) "function", NULL
14513 };
14514
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14517 {
14518 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 (arg1)->SetLogicalFunction(arg2);
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 Py_INCREF(Py_None); resultobj = Py_None;
14529 return resultobj;
14530 fail:
14531 return NULL;
14532 }
14533
14534
14535 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14536 PyObject *resultobj;
14537 wxDC *arg1 = (wxDC *) 0 ;
14538 bool arg2 ;
14539 PyObject * obj0 = 0 ;
14540 PyObject * obj1 = 0 ;
14541 char *kwnames[] = {
14542 (char *) "self",(char *) "opt", NULL
14543 };
14544
14545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14547 {
14548 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 (arg1)->SetOptimization(arg2);
14554
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 Py_INCREF(Py_None); resultobj = Py_None;
14559 return resultobj;
14560 fail:
14561 return NULL;
14562 }
14563
14564
14565 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj;
14567 wxDC *arg1 = (wxDC *) 0 ;
14568 bool result;
14569 PyObject * obj0 = 0 ;
14570 char *kwnames[] = {
14571 (char *) "self", NULL
14572 };
14573
14574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (bool)(arg1)->GetOptimization();
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_PyObj_FromBool((bool)result);
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxDC *arg1 = (wxDC *) 0 ;
14593 int arg2 ;
14594 int arg3 ;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj1 = 0 ;
14597 PyObject * obj2 = 0 ;
14598 char *kwnames[] = {
14599 (char *) "self",(char *) "x",(char *) "y", NULL
14600 };
14601
14602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14604 {
14605 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14606 if (PyErr_Occurred()) SWIG_fail;
14607 }
14608 {
14609 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 {
14613 PyThreadState* __tstate = wxPyBeginAllowThreads();
14614 (arg1)->CalcBoundingBox(arg2,arg3);
14615
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 Py_INCREF(Py_None); resultobj = Py_None;
14620 return resultobj;
14621 fail:
14622 return NULL;
14623 }
14624
14625
14626 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxDC *arg1 = (wxDC *) 0 ;
14629 PyObject * obj0 = 0 ;
14630 char *kwnames[] = {
14631 (char *) "self", NULL
14632 };
14633
14634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14636 {
14637 PyThreadState* __tstate = wxPyBeginAllowThreads();
14638 (arg1)->ResetBoundingBox();
14639
14640 wxPyEndAllowThreads(__tstate);
14641 if (PyErr_Occurred()) SWIG_fail;
14642 }
14643 Py_INCREF(Py_None); resultobj = Py_None;
14644 return resultobj;
14645 fail:
14646 return NULL;
14647 }
14648
14649
14650 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14651 PyObject *resultobj;
14652 wxDC *arg1 = (wxDC *) 0 ;
14653 int result;
14654 PyObject * obj0 = 0 ;
14655 char *kwnames[] = {
14656 (char *) "self", NULL
14657 };
14658
14659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14661 {
14662 PyThreadState* __tstate = wxPyBeginAllowThreads();
14663 result = (int)((wxDC const *)arg1)->MinX();
14664
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 resultobj = SWIG_PyObj_FromInt((int)result);
14669 return resultobj;
14670 fail:
14671 return NULL;
14672 }
14673
14674
14675 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxDC *arg1 = (wxDC *) 0 ;
14678 int result;
14679 PyObject * obj0 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self", NULL
14682 };
14683
14684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = (int)((wxDC const *)arg1)->MaxX();
14689
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 resultobj = SWIG_PyObj_FromInt((int)result);
14694 return resultobj;
14695 fail:
14696 return NULL;
14697 }
14698
14699
14700 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14701 PyObject *resultobj;
14702 wxDC *arg1 = (wxDC *) 0 ;
14703 int result;
14704 PyObject * obj0 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (int)((wxDC const *)arg1)->MinY();
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = SWIG_PyObj_FromInt((int)result);
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxDC *arg1 = (wxDC *) 0 ;
14728 int result;
14729 PyObject * obj0 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (int)((wxDC const *)arg1)->MaxY();
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_PyObj_FromInt((int)result);
14744 return resultobj;
14745 fail:
14746 return NULL;
14747 }
14748
14749
14750 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj;
14752 wxDC *arg1 = (wxDC *) 0 ;
14753 int *arg2 = (int *) 0 ;
14754 int *arg3 = (int *) 0 ;
14755 int *arg4 = (int *) 0 ;
14756 int *arg5 = (int *) 0 ;
14757 int temp2 ;
14758 int temp3 ;
14759 int temp4 ;
14760 int temp5 ;
14761 PyObject * obj0 = 0 ;
14762 char *kwnames[] = {
14763 (char *) "self", NULL
14764 };
14765
14766 arg2 = &temp2;
14767 arg3 = &temp3;
14768 arg4 = &temp4;
14769 arg5 = &temp5;
14770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 Py_INCREF(Py_None); resultobj = Py_None;
14780 {
14781 PyObject *o = PyInt_FromLong((long) (*arg2));
14782 resultobj = t_output_helper(resultobj,o);
14783 }
14784 {
14785 PyObject *o = PyInt_FromLong((long) (*arg3));
14786 resultobj = t_output_helper(resultobj,o);
14787 }
14788 {
14789 PyObject *o = PyInt_FromLong((long) (*arg4));
14790 resultobj = t_output_helper(resultobj,o);
14791 }
14792 {
14793 PyObject *o = PyInt_FromLong((long) (*arg5));
14794 resultobj = t_output_helper(resultobj,o);
14795 }
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14803 PyObject *resultobj;
14804 wxDC *arg1 = (wxDC *) 0 ;
14805 PyObject *arg2 = (PyObject *) 0 ;
14806 PyObject *arg3 = (PyObject *) 0 ;
14807 PyObject *arg4 = (PyObject *) 0 ;
14808 PyObject *result;
14809 PyObject * obj0 = 0 ;
14810 PyObject * obj1 = 0 ;
14811 PyObject * obj2 = 0 ;
14812 PyObject * obj3 = 0 ;
14813 char *kwnames[] = {
14814 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14815 };
14816
14817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14819 arg2 = obj1;
14820 arg3 = obj2;
14821 arg4 = obj3;
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
14824 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14825
14826 wxPyEndAllowThreads(__tstate);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 }
14829 resultobj = result;
14830 return resultobj;
14831 fail:
14832 return NULL;
14833 }
14834
14835
14836 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14837 PyObject *resultobj;
14838 wxDC *arg1 = (wxDC *) 0 ;
14839 PyObject *arg2 = (PyObject *) 0 ;
14840 PyObject *arg3 = (PyObject *) 0 ;
14841 PyObject *arg4 = (PyObject *) 0 ;
14842 PyObject *result;
14843 PyObject * obj0 = 0 ;
14844 PyObject * obj1 = 0 ;
14845 PyObject * obj2 = 0 ;
14846 PyObject * obj3 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14849 };
14850
14851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14853 arg2 = obj1;
14854 arg3 = obj2;
14855 arg4 = obj3;
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14859
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 resultobj = result;
14864 return resultobj;
14865 fail:
14866 return NULL;
14867 }
14868
14869
14870 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj;
14872 wxDC *arg1 = (wxDC *) 0 ;
14873 PyObject *arg2 = (PyObject *) 0 ;
14874 PyObject *arg3 = (PyObject *) 0 ;
14875 PyObject *arg4 = (PyObject *) 0 ;
14876 PyObject *result;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 PyObject * obj2 = 0 ;
14880 PyObject * obj3 = 0 ;
14881 char *kwnames[] = {
14882 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14883 };
14884
14885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14887 arg2 = obj1;
14888 arg3 = obj2;
14889 arg4 = obj3;
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14893
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 resultobj = result;
14898 return resultobj;
14899 fail:
14900 return NULL;
14901 }
14902
14903
14904 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj;
14906 wxDC *arg1 = (wxDC *) 0 ;
14907 PyObject *arg2 = (PyObject *) 0 ;
14908 PyObject *arg3 = (PyObject *) 0 ;
14909 PyObject *arg4 = (PyObject *) 0 ;
14910 PyObject *result;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 PyObject * obj2 = 0 ;
14914 PyObject * obj3 = 0 ;
14915 char *kwnames[] = {
14916 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14917 };
14918
14919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14921 arg2 = obj1;
14922 arg3 = obj2;
14923 arg4 = obj3;
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14927
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = result;
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj;
14940 wxDC *arg1 = (wxDC *) 0 ;
14941 PyObject *arg2 = (PyObject *) 0 ;
14942 PyObject *arg3 = (PyObject *) 0 ;
14943 PyObject *arg4 = (PyObject *) 0 ;
14944 PyObject *result;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 PyObject * obj2 = 0 ;
14948 PyObject * obj3 = 0 ;
14949 char *kwnames[] = {
14950 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14951 };
14952
14953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14955 arg2 = obj1;
14956 arg3 = obj2;
14957 arg4 = obj3;
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = result;
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxDC *arg1 = (wxDC *) 0 ;
14975 PyObject *arg2 = (PyObject *) 0 ;
14976 PyObject *arg3 = (PyObject *) 0 ;
14977 PyObject *arg4 = (PyObject *) 0 ;
14978 PyObject *arg5 = (PyObject *) 0 ;
14979 PyObject *result;
14980 PyObject * obj0 = 0 ;
14981 PyObject * obj1 = 0 ;
14982 PyObject * obj2 = 0 ;
14983 PyObject * obj3 = 0 ;
14984 PyObject * obj4 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14991 arg2 = obj1;
14992 arg3 = obj2;
14993 arg4 = obj3;
14994 arg5 = obj4;
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14998
14999 wxPyEndAllowThreads(__tstate);
15000 if (PyErr_Occurred()) SWIG_fail;
15001 }
15002 resultobj = result;
15003 return resultobj;
15004 fail:
15005 return NULL;
15006 }
15007
15008
15009 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15010 PyObject *obj;
15011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15012 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15013 Py_INCREF(obj);
15014 return Py_BuildValue((char *)"");
15015 }
15016 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj;
15018 wxMemoryDC *result;
15019 char *kwnames[] = {
15020 NULL
15021 };
15022
15023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = (wxMemoryDC *)new wxMemoryDC();
15027
15028 wxPyEndAllowThreads(__tstate);
15029 if (PyErr_Occurred()) SWIG_fail;
15030 }
15031 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15032 return resultobj;
15033 fail:
15034 return NULL;
15035 }
15036
15037
15038 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj;
15040 wxDC *arg1 = (wxDC *) 0 ;
15041 wxMemoryDC *result;
15042 PyObject * obj0 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "oldDC", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15052
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15057 return resultobj;
15058 fail:
15059 return NULL;
15060 }
15061
15062
15063 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15064 PyObject *resultobj;
15065 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15066 wxBitmap *arg2 = 0 ;
15067 PyObject * obj0 = 0 ;
15068 PyObject * obj1 = 0 ;
15069 char *kwnames[] = {
15070 (char *) "self",(char *) "bitmap", NULL
15071 };
15072
15073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15076 if (arg2 == NULL) {
15077 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15078 }
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 (arg1)->SelectObject((wxBitmap const &)*arg2);
15082
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 Py_INCREF(Py_None); resultobj = Py_None;
15087 return resultobj;
15088 fail:
15089 return NULL;
15090 }
15091
15092
15093 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15094 PyObject *obj;
15095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15096 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15097 Py_INCREF(obj);
15098 return Py_BuildValue((char *)"");
15099 }
15100 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj;
15102 wxDC *arg1 = (wxDC *) 0 ;
15103 wxBitmap *arg2 = 0 ;
15104 wxBufferedDC *result;
15105 PyObject * obj0 = 0 ;
15106 PyObject * obj1 = 0 ;
15107 char *kwnames[] = {
15108 (char *) "dc",(char *) "buffer", NULL
15109 };
15110
15111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
15112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15113 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15114 if (arg2 == NULL) {
15115 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15116 }
15117 {
15118 PyThreadState* __tstate = wxPyBeginAllowThreads();
15119 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15120
15121 wxPyEndAllowThreads(__tstate);
15122 if (PyErr_Occurred()) SWIG_fail;
15123 }
15124 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15125 return resultobj;
15126 fail:
15127 return NULL;
15128 }
15129
15130
15131 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
15132 PyObject *resultobj;
15133 wxDC *arg1 = (wxDC *) 0 ;
15134 wxSize *arg2 = 0 ;
15135 wxBufferedDC *result;
15136 wxSize temp2 ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 char *kwnames[] = {
15140 (char *) "dc",(char *) "area", NULL
15141 };
15142
15143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
15144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15145 {
15146 arg2 = &temp2;
15147 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15148 }
15149 {
15150 PyThreadState* __tstate = wxPyBeginAllowThreads();
15151 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15152
15153 wxPyEndAllowThreads(__tstate);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15157 return resultobj;
15158 fail:
15159 return NULL;
15160 }
15161
15162
15163 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj;
15165 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15166 PyObject * obj0 = 0 ;
15167 char *kwnames[] = {
15168 (char *) "self", NULL
15169 };
15170
15171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 (arg1)->UnMask();
15176
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 Py_INCREF(Py_None); resultobj = Py_None;
15181 return resultobj;
15182 fail:
15183 return NULL;
15184 }
15185
15186
15187 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15188 PyObject *obj;
15189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15190 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15191 Py_INCREF(obj);
15192 return Py_BuildValue((char *)"");
15193 }
15194 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15195 PyObject *resultobj;
15196 wxWindow *arg1 = (wxWindow *) 0 ;
15197 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15198 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15199 wxBufferedPaintDC *result;
15200 PyObject * obj0 = 0 ;
15201 PyObject * obj1 = 0 ;
15202 char *kwnames[] = {
15203 (char *) "window",(char *) "buffer", NULL
15204 };
15205
15206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15208 if (obj1) {
15209 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15210 if (arg2 == NULL) {
15211 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15212 }
15213 }
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15217
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15222 return resultobj;
15223 fail:
15224 return NULL;
15225 }
15226
15227
15228 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15229 PyObject *obj;
15230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15231 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15232 Py_INCREF(obj);
15233 return Py_BuildValue((char *)"");
15234 }
15235 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15236 PyObject *resultobj;
15237 wxScreenDC *result;
15238 char *kwnames[] = {
15239 NULL
15240 };
15241
15242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15243 {
15244 PyThreadState* __tstate = wxPyBeginAllowThreads();
15245 result = (wxScreenDC *)new wxScreenDC();
15246
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
15251 return resultobj;
15252 fail:
15253 return NULL;
15254 }
15255
15256
15257 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15258 PyObject *resultobj;
15259 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15260 wxWindow *arg2 = (wxWindow *) 0 ;
15261 bool result;
15262 PyObject * obj0 = 0 ;
15263 PyObject * obj1 = 0 ;
15264 char *kwnames[] = {
15265 (char *) "self",(char *) "window", NULL
15266 };
15267
15268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15270 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15274
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 resultobj = SWIG_PyObj_FromBool((bool)result);
15279 return resultobj;
15280 fail:
15281 return NULL;
15282 }
15283
15284
15285 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15286 PyObject *resultobj;
15287 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15288 wxRect *arg2 = (wxRect *) NULL ;
15289 bool result;
15290 PyObject * obj0 = 0 ;
15291 PyObject * obj1 = 0 ;
15292 char *kwnames[] = {
15293 (char *) "self",(char *) "rect", NULL
15294 };
15295
15296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15298 if (obj1) {
15299 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15300 }
15301 {
15302 PyThreadState* __tstate = wxPyBeginAllowThreads();
15303 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15304
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 resultobj = SWIG_PyObj_FromBool((bool)result);
15309 return resultobj;
15310 fail:
15311 return NULL;
15312 }
15313
15314
15315 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15316 PyObject *resultobj;
15317 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15318 bool result;
15319 PyObject * obj0 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "self", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 result = (bool)(arg1)->EndDrawingOnTop();
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 resultobj = SWIG_PyObj_FromBool((bool)result);
15334 return resultobj;
15335 fail:
15336 return NULL;
15337 }
15338
15339
15340 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15341 PyObject *obj;
15342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15343 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15344 Py_INCREF(obj);
15345 return Py_BuildValue((char *)"");
15346 }
15347 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15348 PyObject *resultobj;
15349 wxWindow *arg1 = (wxWindow *) 0 ;
15350 wxClientDC *result;
15351 PyObject * obj0 = 0 ;
15352 char *kwnames[] = {
15353 (char *) "win", NULL
15354 };
15355
15356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = (wxClientDC *)new wxClientDC(arg1);
15361
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15366 return resultobj;
15367 fail:
15368 return NULL;
15369 }
15370
15371
15372 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15373 PyObject *obj;
15374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15375 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15376 Py_INCREF(obj);
15377 return Py_BuildValue((char *)"");
15378 }
15379 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15380 PyObject *resultobj;
15381 wxWindow *arg1 = (wxWindow *) 0 ;
15382 wxPaintDC *result;
15383 PyObject * obj0 = 0 ;
15384 char *kwnames[] = {
15385 (char *) "win", NULL
15386 };
15387
15388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 result = (wxPaintDC *)new wxPaintDC(arg1);
15393
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15405 PyObject *obj;
15406 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15407 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15408 Py_INCREF(obj);
15409 return Py_BuildValue((char *)"");
15410 }
15411 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj;
15413 wxWindow *arg1 = (wxWindow *) 0 ;
15414 wxWindowDC *result;
15415 PyObject * obj0 = 0 ;
15416 char *kwnames[] = {
15417 (char *) "win", NULL
15418 };
15419
15420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15422 {
15423 PyThreadState* __tstate = wxPyBeginAllowThreads();
15424 result = (wxWindowDC *)new wxWindowDC(arg1);
15425
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15437 PyObject *obj;
15438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15439 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15440 Py_INCREF(obj);
15441 return Py_BuildValue((char *)"");
15442 }
15443 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj;
15445 wxDC *arg1 = 0 ;
15446 bool arg2 ;
15447 wxMirrorDC *result;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 char *kwnames[] = {
15451 (char *) "dc",(char *) "mirror", NULL
15452 };
15453
15454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15456 if (arg1 == NULL) {
15457 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15458 }
15459 {
15460 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15466
15467 wxPyEndAllowThreads(__tstate);
15468 if (PyErr_Occurred()) SWIG_fail;
15469 }
15470 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15471 return resultobj;
15472 fail:
15473 return NULL;
15474 }
15475
15476
15477 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15478 PyObject *obj;
15479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15480 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15481 Py_INCREF(obj);
15482 return Py_BuildValue((char *)"");
15483 }
15484 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15485 PyObject *resultobj;
15486 wxPrintData *arg1 = 0 ;
15487 wxPostScriptDC *result;
15488 PyObject * obj0 = 0 ;
15489 char *kwnames[] = {
15490 (char *) "printData", NULL
15491 };
15492
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15495 if (arg1 == NULL) {
15496 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15506 return resultobj;
15507 fail:
15508 return NULL;
15509 }
15510
15511
15512 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj;
15514 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15515 wxPrintData *result;
15516 PyObject * obj0 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "self", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 {
15526 wxPrintData &_result_ref = (arg1)->GetPrintData();
15527 result = (wxPrintData *) &_result_ref;
15528 }
15529
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15534 return resultobj;
15535 fail:
15536 return NULL;
15537 }
15538
15539
15540 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj;
15542 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15543 wxPrintData *arg2 = 0 ;
15544 PyObject * obj0 = 0 ;
15545 PyObject * obj1 = 0 ;
15546 char *kwnames[] = {
15547 (char *) "self",(char *) "data", NULL
15548 };
15549
15550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15552 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15553 if (arg2 == NULL) {
15554 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 Py_INCREF(Py_None); resultobj = Py_None;
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 int arg1 ;
15573 PyObject * obj0 = 0 ;
15574 char *kwnames[] = {
15575 (char *) "ppi", NULL
15576 };
15577
15578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15579 {
15580 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 wxPostScriptDC::SetResolution(arg1);
15586
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 Py_INCREF(Py_None); resultobj = Py_None;
15591 return resultobj;
15592 fail:
15593 return NULL;
15594 }
15595
15596
15597 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15598 PyObject *resultobj;
15599 int result;
15600 char *kwnames[] = {
15601 NULL
15602 };
15603
15604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 result = (int)wxPostScriptDC::GetResolution();
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 resultobj = SWIG_PyObj_FromInt((int)result);
15613 return resultobj;
15614 fail:
15615 return NULL;
15616 }
15617
15618
15619 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15620 PyObject *obj;
15621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15622 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15623 Py_INCREF(obj);
15624 return Py_BuildValue((char *)"");
15625 }
15626 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj;
15628 wxString const &arg1_defvalue = wxPyEmptyString ;
15629 wxString *arg1 = (wxString *) &arg1_defvalue ;
15630 wxMetaFile *result;
15631 bool temp1 = False ;
15632 PyObject * obj0 = 0 ;
15633 char *kwnames[] = {
15634 (char *) "filename", NULL
15635 };
15636
15637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15638 if (obj0) {
15639 {
15640 arg1 = wxString_in_helper(obj0);
15641 if (arg1 == NULL) SWIG_fail;
15642 temp1 = True;
15643 }
15644 }
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15653 {
15654 if (temp1)
15655 delete arg1;
15656 }
15657 return resultobj;
15658 fail:
15659 {
15660 if (temp1)
15661 delete arg1;
15662 }
15663 return NULL;
15664 }
15665
15666
15667 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15668 PyObject *resultobj;
15669 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15670 PyObject * obj0 = 0 ;
15671 char *kwnames[] = {
15672 (char *) "self", NULL
15673 };
15674
15675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15677 {
15678 PyThreadState* __tstate = wxPyBeginAllowThreads();
15679 delete arg1;
15680
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 Py_INCREF(Py_None); resultobj = Py_None;
15685 return resultobj;
15686 fail:
15687 return NULL;
15688 }
15689
15690
15691 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15692 PyObject *resultobj;
15693 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15694 bool result;
15695 PyObject * obj0 = 0 ;
15696 char *kwnames[] = {
15697 (char *) "self", NULL
15698 };
15699
15700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15702 {
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 result = (bool)(arg1)->Ok();
15705
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 resultobj = SWIG_PyObj_FromBool((bool)result);
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj;
15718 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15719 int arg2 = (int) 0 ;
15720 int arg3 = (int) 0 ;
15721 bool result;
15722 PyObject * obj0 = 0 ;
15723 PyObject * obj1 = 0 ;
15724 PyObject * obj2 = 0 ;
15725 char *kwnames[] = {
15726 (char *) "self",(char *) "width",(char *) "height", NULL
15727 };
15728
15729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15731 if (obj1) {
15732 {
15733 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 }
15737 if (obj2) {
15738 {
15739 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15740 if (PyErr_Occurred()) SWIG_fail;
15741 }
15742 }
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15746
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 resultobj = SWIG_PyObj_FromBool((bool)result);
15751 return resultobj;
15752 fail:
15753 return NULL;
15754 }
15755
15756
15757 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15758 PyObject *resultobj;
15759 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15760 wxSize result;
15761 PyObject * obj0 = 0 ;
15762 char *kwnames[] = {
15763 (char *) "self", NULL
15764 };
15765
15766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (arg1)->GetSize();
15771
15772 wxPyEndAllowThreads(__tstate);
15773 if (PyErr_Occurred()) SWIG_fail;
15774 }
15775 {
15776 wxSize * resultptr;
15777 resultptr = new wxSize((wxSize &) result);
15778 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
15779 }
15780 return resultobj;
15781 fail:
15782 return NULL;
15783 }
15784
15785
15786 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15787 PyObject *resultobj;
15788 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15789 int result;
15790 PyObject * obj0 = 0 ;
15791 char *kwnames[] = {
15792 (char *) "self", NULL
15793 };
15794
15795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15797 {
15798 PyThreadState* __tstate = wxPyBeginAllowThreads();
15799 result = (int)(arg1)->GetWidth();
15800
15801 wxPyEndAllowThreads(__tstate);
15802 if (PyErr_Occurred()) SWIG_fail;
15803 }
15804 resultobj = SWIG_PyObj_FromInt((int)result);
15805 return resultobj;
15806 fail:
15807 return NULL;
15808 }
15809
15810
15811 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15812 PyObject *resultobj;
15813 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15814 int result;
15815 PyObject * obj0 = 0 ;
15816 char *kwnames[] = {
15817 (char *) "self", NULL
15818 };
15819
15820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15822 {
15823 PyThreadState* __tstate = wxPyBeginAllowThreads();
15824 result = (int)(arg1)->GetHeight();
15825
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 resultobj = SWIG_PyObj_FromInt((int)result);
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15839 wxString *result;
15840 PyObject * obj0 = 0 ;
15841 char *kwnames[] = {
15842 (char *) "self", NULL
15843 };
15844
15845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
15846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 {
15850 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
15851 result = (wxString *) &_result_ref;
15852 }
15853
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 #if wxUSE_UNICODE
15859 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15860 #else
15861 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15862 #endif
15863 }
15864 return resultobj;
15865 fail:
15866 return NULL;
15867 }
15868
15869
15870 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15871 PyObject *obj;
15872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15873 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15874 Py_INCREF(obj);
15875 return Py_BuildValue((char *)"");
15876 }
15877 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj;
15879 wxString const &arg1_defvalue = wxPyEmptyString ;
15880 wxString *arg1 = (wxString *) &arg1_defvalue ;
15881 int arg2 = (int) 0 ;
15882 int arg3 = (int) 0 ;
15883 wxString const &arg4_defvalue = wxPyEmptyString ;
15884 wxString *arg4 = (wxString *) &arg4_defvalue ;
15885 wxMetaFileDC *result;
15886 bool temp1 = False ;
15887 bool temp4 = False ;
15888 PyObject * obj0 = 0 ;
15889 PyObject * obj1 = 0 ;
15890 PyObject * obj2 = 0 ;
15891 PyObject * obj3 = 0 ;
15892 char *kwnames[] = {
15893 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15894 };
15895
15896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15897 if (obj0) {
15898 {
15899 arg1 = wxString_in_helper(obj0);
15900 if (arg1 == NULL) SWIG_fail;
15901 temp1 = True;
15902 }
15903 }
15904 if (obj1) {
15905 {
15906 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 }
15910 if (obj2) {
15911 {
15912 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15913 if (PyErr_Occurred()) SWIG_fail;
15914 }
15915 }
15916 if (obj3) {
15917 {
15918 arg4 = wxString_in_helper(obj3);
15919 if (arg4 == NULL) SWIG_fail;
15920 temp4 = True;
15921 }
15922 }
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15931 {
15932 if (temp1)
15933 delete arg1;
15934 }
15935 {
15936 if (temp4)
15937 delete arg4;
15938 }
15939 return resultobj;
15940 fail:
15941 {
15942 if (temp1)
15943 delete arg1;
15944 }
15945 {
15946 if (temp4)
15947 delete arg4;
15948 }
15949 return NULL;
15950 }
15951
15952
15953 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj;
15955 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15956 wxMetaFile *result;
15957 PyObject * obj0 = 0 ;
15958 char *kwnames[] = {
15959 (char *) "self", NULL
15960 };
15961
15962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (wxMetaFile *)(arg1)->Close();
15967
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
15972 return resultobj;
15973 fail:
15974 return NULL;
15975 }
15976
15977
15978 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15979 PyObject *obj;
15980 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15981 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15982 Py_INCREF(obj);
15983 return Py_BuildValue((char *)"");
15984 }
15985 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15986 PyObject *resultobj;
15987 wxPrintData *arg1 = 0 ;
15988 wxPrinterDC *result;
15989 PyObject * obj0 = 0 ;
15990 char *kwnames[] = {
15991 (char *) "printData", NULL
15992 };
15993
15994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15996 if (arg1 == NULL) {
15997 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15998 }
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
16007 return resultobj;
16008 fail:
16009 return NULL;
16010 }
16011
16012
16013 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16014 PyObject *obj;
16015 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16016 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16017 Py_INCREF(obj);
16018 return Py_BuildValue((char *)"");
16019 }
16020 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 int arg1 ;
16023 int arg2 ;
16024 int arg3 = (int) True ;
16025 int arg4 = (int) 1 ;
16026 wxImageList *result;
16027 PyObject * obj0 = 0 ;
16028 PyObject * obj1 = 0 ;
16029 PyObject * obj2 = 0 ;
16030 PyObject * obj3 = 0 ;
16031 char *kwnames[] = {
16032 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16033 };
16034
16035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16036 {
16037 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16038 if (PyErr_Occurred()) SWIG_fail;
16039 }
16040 {
16041 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16042 if (PyErr_Occurred()) SWIG_fail;
16043 }
16044 if (obj2) {
16045 {
16046 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16047 if (PyErr_Occurred()) SWIG_fail;
16048 }
16049 }
16050 if (obj3) {
16051 {
16052 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16053 if (PyErr_Occurred()) SWIG_fail;
16054 }
16055 }
16056 {
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16059
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064 resultobj = wxPyMake_wxObject(result);
16065 }
16066 return resultobj;
16067 fail:
16068 return NULL;
16069 }
16070
16071
16072 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16073 PyObject *resultobj;
16074 wxImageList *arg1 = (wxImageList *) 0 ;
16075 PyObject * obj0 = 0 ;
16076 char *kwnames[] = {
16077 (char *) "self", NULL
16078 };
16079
16080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16082 {
16083 PyThreadState* __tstate = wxPyBeginAllowThreads();
16084 delete arg1;
16085
16086 wxPyEndAllowThreads(__tstate);
16087 if (PyErr_Occurred()) SWIG_fail;
16088 }
16089 Py_INCREF(Py_None); resultobj = Py_None;
16090 return resultobj;
16091 fail:
16092 return NULL;
16093 }
16094
16095
16096 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16097 PyObject *resultobj;
16098 wxImageList *arg1 = (wxImageList *) 0 ;
16099 wxBitmap *arg2 = 0 ;
16100 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16101 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16102 int result;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 PyObject * obj2 = 0 ;
16106 char *kwnames[] = {
16107 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16108 };
16109
16110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16112 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16113 if (arg2 == NULL) {
16114 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16115 }
16116 if (obj2) {
16117 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16118 if (arg3 == NULL) {
16119 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16120 }
16121 }
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16125
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = SWIG_PyObj_FromInt((int)result);
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxImageList *arg1 = (wxImageList *) 0 ;
16139 wxBitmap *arg2 = 0 ;
16140 wxColour *arg3 = 0 ;
16141 int result;
16142 wxColour temp3 ;
16143 PyObject * obj0 = 0 ;
16144 PyObject * obj1 = 0 ;
16145 PyObject * obj2 = 0 ;
16146 char *kwnames[] = {
16147 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16148 };
16149
16150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16152 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16153 if (arg2 == NULL) {
16154 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16155 }
16156 {
16157 arg3 = &temp3;
16158 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16159 }
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 resultobj = SWIG_PyObj_FromInt((int)result);
16168 return resultobj;
16169 fail:
16170 return NULL;
16171 }
16172
16173
16174 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj;
16176 wxImageList *arg1 = (wxImageList *) 0 ;
16177 wxIcon *arg2 = 0 ;
16178 int result;
16179 PyObject * obj0 = 0 ;
16180 PyObject * obj1 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "self",(char *) "icon", NULL
16183 };
16184
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16187 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16188 if (arg2 == NULL) {
16189 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16190 }
16191 {
16192 PyThreadState* __tstate = wxPyBeginAllowThreads();
16193 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16194
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 resultobj = SWIG_PyObj_FromInt((int)result);
16199 return resultobj;
16200 fail:
16201 return NULL;
16202 }
16203
16204
16205 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16206 PyObject *resultobj;
16207 wxImageList *arg1 = (wxImageList *) 0 ;
16208 int arg2 ;
16209 wxBitmap *arg3 = 0 ;
16210 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16211 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16212 bool result;
16213 PyObject * obj0 = 0 ;
16214 PyObject * obj1 = 0 ;
16215 PyObject * obj2 = 0 ;
16216 PyObject * obj3 = 0 ;
16217 char *kwnames[] = {
16218 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16219 };
16220
16221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16223 {
16224 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16228 if (arg3 == NULL) {
16229 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16230 }
16231 if (obj3) {
16232 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16233 if (arg4 == NULL) {
16234 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16235 }
16236 }
16237 {
16238 PyThreadState* __tstate = wxPyBeginAllowThreads();
16239 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16240
16241 wxPyEndAllowThreads(__tstate);
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 resultobj = SWIG_PyObj_FromBool((bool)result);
16245 return resultobj;
16246 fail:
16247 return NULL;
16248 }
16249
16250
16251 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16252 PyObject *resultobj;
16253 wxImageList *arg1 = (wxImageList *) 0 ;
16254 int arg2 ;
16255 wxDC *arg3 = 0 ;
16256 int arg4 ;
16257 int arg5 ;
16258 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16259 bool arg7 = (bool) (bool)False ;
16260 bool result;
16261 PyObject * obj0 = 0 ;
16262 PyObject * obj1 = 0 ;
16263 PyObject * obj2 = 0 ;
16264 PyObject * obj3 = 0 ;
16265 PyObject * obj4 = 0 ;
16266 PyObject * obj5 = 0 ;
16267 PyObject * obj6 = 0 ;
16268 char *kwnames[] = {
16269 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16270 };
16271
16272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16274 {
16275 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16279 if (arg3 == NULL) {
16280 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16281 }
16282 {
16283 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 {
16287 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 }
16290 if (obj5) {
16291 {
16292 arg6 = (int) SWIG_PyObj_AsInt(obj5);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 }
16296 if (obj6) {
16297 {
16298 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
16299 if (PyErr_Occurred()) SWIG_fail;
16300 }
16301 }
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = SWIG_PyObj_FromBool((bool)result);
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxImageList *arg1 = (wxImageList *) 0 ;
16319 int result;
16320 PyObject * obj0 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (int)(arg1)->GetImageCount();
16330
16331 wxPyEndAllowThreads(__tstate);
16332 if (PyErr_Occurred()) SWIG_fail;
16333 }
16334 resultobj = SWIG_PyObj_FromInt((int)result);
16335 return resultobj;
16336 fail:
16337 return NULL;
16338 }
16339
16340
16341 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16342 PyObject *resultobj;
16343 wxImageList *arg1 = (wxImageList *) 0 ;
16344 int arg2 ;
16345 bool result;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self",(char *) "index", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16354 {
16355 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 {
16359 PyThreadState* __tstate = wxPyBeginAllowThreads();
16360 result = (bool)(arg1)->Remove(arg2);
16361
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 resultobj = SWIG_PyObj_FromBool((bool)result);
16366 return resultobj;
16367 fail:
16368 return NULL;
16369 }
16370
16371
16372 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16373 PyObject *resultobj;
16374 wxImageList *arg1 = (wxImageList *) 0 ;
16375 bool result;
16376 PyObject * obj0 = 0 ;
16377 char *kwnames[] = {
16378 (char *) "self", NULL
16379 };
16380
16381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16383 {
16384 PyThreadState* __tstate = wxPyBeginAllowThreads();
16385 result = (bool)(arg1)->RemoveAll();
16386
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 resultobj = SWIG_PyObj_FromBool((bool)result);
16391 return resultobj;
16392 fail:
16393 return NULL;
16394 }
16395
16396
16397 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj;
16399 wxImageList *arg1 = (wxImageList *) 0 ;
16400 int arg2 ;
16401 int *arg3 = 0 ;
16402 int *arg4 = 0 ;
16403 int temp3 ;
16404 int temp4 ;
16405 PyObject * obj0 = 0 ;
16406 PyObject * obj1 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self",(char *) "index", NULL
16409 };
16410
16411 arg3 = &temp3;
16412 arg4 = &temp4;
16413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16415 {
16416 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 (arg1)->GetSize(arg2,*arg3,*arg4);
16422
16423 wxPyEndAllowThreads(__tstate);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
16426 Py_INCREF(Py_None); resultobj = Py_None;
16427 {
16428 PyObject *o = PyInt_FromLong((long) (*arg3));
16429 resultobj = t_output_helper(resultobj,o);
16430 }
16431 {
16432 PyObject *o = PyInt_FromLong((long) (*arg4));
16433 resultobj = t_output_helper(resultobj,o);
16434 }
16435 return resultobj;
16436 fail:
16437 return NULL;
16438 }
16439
16440
16441 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16442 PyObject *obj;
16443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16444 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16445 Py_INCREF(obj);
16446 return Py_BuildValue((char *)"");
16447 }
16448 static int _wrap_NORMAL_FONT_set(PyObject *) {
16449 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16450 return 1;
16451 }
16452
16453
16454 static PyObject *_wrap_NORMAL_FONT_get() {
16455 PyObject *pyobj;
16456
16457 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
16458 return pyobj;
16459 }
16460
16461
16462 static int _wrap_SMALL_FONT_set(PyObject *) {
16463 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16464 return 1;
16465 }
16466
16467
16468 static PyObject *_wrap_SMALL_FONT_get() {
16469 PyObject *pyobj;
16470
16471 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
16472 return pyobj;
16473 }
16474
16475
16476 static int _wrap_ITALIC_FONT_set(PyObject *) {
16477 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16478 return 1;
16479 }
16480
16481
16482 static PyObject *_wrap_ITALIC_FONT_get() {
16483 PyObject *pyobj;
16484
16485 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
16486 return pyobj;
16487 }
16488
16489
16490 static int _wrap_SWISS_FONT_set(PyObject *) {
16491 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16492 return 1;
16493 }
16494
16495
16496 static PyObject *_wrap_SWISS_FONT_get() {
16497 PyObject *pyobj;
16498
16499 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
16500 return pyobj;
16501 }
16502
16503
16504 static int _wrap_RED_PEN_set(PyObject *) {
16505 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16506 return 1;
16507 }
16508
16509
16510 static PyObject *_wrap_RED_PEN_get() {
16511 PyObject *pyobj;
16512
16513 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
16514 return pyobj;
16515 }
16516
16517
16518 static int _wrap_CYAN_PEN_set(PyObject *) {
16519 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16520 return 1;
16521 }
16522
16523
16524 static PyObject *_wrap_CYAN_PEN_get() {
16525 PyObject *pyobj;
16526
16527 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
16528 return pyobj;
16529 }
16530
16531
16532 static int _wrap_GREEN_PEN_set(PyObject *) {
16533 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16534 return 1;
16535 }
16536
16537
16538 static PyObject *_wrap_GREEN_PEN_get() {
16539 PyObject *pyobj;
16540
16541 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16542 return pyobj;
16543 }
16544
16545
16546 static int _wrap_BLACK_PEN_set(PyObject *) {
16547 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16548 return 1;
16549 }
16550
16551
16552 static PyObject *_wrap_BLACK_PEN_get() {
16553 PyObject *pyobj;
16554
16555 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16556 return pyobj;
16557 }
16558
16559
16560 static int _wrap_WHITE_PEN_set(PyObject *) {
16561 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16562 return 1;
16563 }
16564
16565
16566 static PyObject *_wrap_WHITE_PEN_get() {
16567 PyObject *pyobj;
16568
16569 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16570 return pyobj;
16571 }
16572
16573
16574 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16575 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16576 return 1;
16577 }
16578
16579
16580 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16581 PyObject *pyobj;
16582
16583 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16584 return pyobj;
16585 }
16586
16587
16588 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16589 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16590 return 1;
16591 }
16592
16593
16594 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16595 PyObject *pyobj;
16596
16597 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16598 return pyobj;
16599 }
16600
16601
16602 static int _wrap_GREY_PEN_set(PyObject *) {
16603 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16604 return 1;
16605 }
16606
16607
16608 static PyObject *_wrap_GREY_PEN_get() {
16609 PyObject *pyobj;
16610
16611 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16612 return pyobj;
16613 }
16614
16615
16616 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16617 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16618 return 1;
16619 }
16620
16621
16622 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16623 PyObject *pyobj;
16624
16625 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16626 return pyobj;
16627 }
16628
16629
16630 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16631 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16632 return 1;
16633 }
16634
16635
16636 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16637 PyObject *pyobj;
16638
16639 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16640 return pyobj;
16641 }
16642
16643
16644 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16645 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16646 return 1;
16647 }
16648
16649
16650 static PyObject *_wrap_BLUE_BRUSH_get() {
16651 PyObject *pyobj;
16652
16653 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16654 return pyobj;
16655 }
16656
16657
16658 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16659 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16660 return 1;
16661 }
16662
16663
16664 static PyObject *_wrap_GREEN_BRUSH_get() {
16665 PyObject *pyobj;
16666
16667 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16668 return pyobj;
16669 }
16670
16671
16672 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16673 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16674 return 1;
16675 }
16676
16677
16678 static PyObject *_wrap_WHITE_BRUSH_get() {
16679 PyObject *pyobj;
16680
16681 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16682 return pyobj;
16683 }
16684
16685
16686 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16687 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16688 return 1;
16689 }
16690
16691
16692 static PyObject *_wrap_BLACK_BRUSH_get() {
16693 PyObject *pyobj;
16694
16695 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16696 return pyobj;
16697 }
16698
16699
16700 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16701 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16702 return 1;
16703 }
16704
16705
16706 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16707 PyObject *pyobj;
16708
16709 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16710 return pyobj;
16711 }
16712
16713
16714 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16715 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16716 return 1;
16717 }
16718
16719
16720 static PyObject *_wrap_CYAN_BRUSH_get() {
16721 PyObject *pyobj;
16722
16723 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16724 return pyobj;
16725 }
16726
16727
16728 static int _wrap_RED_BRUSH_set(PyObject *) {
16729 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16730 return 1;
16731 }
16732
16733
16734 static PyObject *_wrap_RED_BRUSH_get() {
16735 PyObject *pyobj;
16736
16737 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16738 return pyobj;
16739 }
16740
16741
16742 static int _wrap_GREY_BRUSH_set(PyObject *) {
16743 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16744 return 1;
16745 }
16746
16747
16748 static PyObject *_wrap_GREY_BRUSH_get() {
16749 PyObject *pyobj;
16750
16751 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16752 return pyobj;
16753 }
16754
16755
16756 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16757 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16758 return 1;
16759 }
16760
16761
16762 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16763 PyObject *pyobj;
16764
16765 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16766 return pyobj;
16767 }
16768
16769
16770 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16771 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16772 return 1;
16773 }
16774
16775
16776 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16777 PyObject *pyobj;
16778
16779 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16780 return pyobj;
16781 }
16782
16783
16784 static int _wrap_BLACK_set(PyObject *) {
16785 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16786 return 1;
16787 }
16788
16789
16790 static PyObject *_wrap_BLACK_get() {
16791 PyObject *pyobj;
16792
16793 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
16794 return pyobj;
16795 }
16796
16797
16798 static int _wrap_WHITE_set(PyObject *) {
16799 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16800 return 1;
16801 }
16802
16803
16804 static PyObject *_wrap_WHITE_get() {
16805 PyObject *pyobj;
16806
16807 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16808 return pyobj;
16809 }
16810
16811
16812 static int _wrap_RED_set(PyObject *) {
16813 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16814 return 1;
16815 }
16816
16817
16818 static PyObject *_wrap_RED_get() {
16819 PyObject *pyobj;
16820
16821 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16822 return pyobj;
16823 }
16824
16825
16826 static int _wrap_BLUE_set(PyObject *) {
16827 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16828 return 1;
16829 }
16830
16831
16832 static PyObject *_wrap_BLUE_get() {
16833 PyObject *pyobj;
16834
16835 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16836 return pyobj;
16837 }
16838
16839
16840 static int _wrap_GREEN_set(PyObject *) {
16841 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16842 return 1;
16843 }
16844
16845
16846 static PyObject *_wrap_GREEN_get() {
16847 PyObject *pyobj;
16848
16849 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16850 return pyobj;
16851 }
16852
16853
16854 static int _wrap_CYAN_set(PyObject *) {
16855 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16856 return 1;
16857 }
16858
16859
16860 static PyObject *_wrap_CYAN_get() {
16861 PyObject *pyobj;
16862
16863 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16864 return pyobj;
16865 }
16866
16867
16868 static int _wrap_LIGHT_GREY_set(PyObject *) {
16869 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16870 return 1;
16871 }
16872
16873
16874 static PyObject *_wrap_LIGHT_GREY_get() {
16875 PyObject *pyobj;
16876
16877 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16878 return pyobj;
16879 }
16880
16881
16882 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16883 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16884 return 1;
16885 }
16886
16887
16888 static PyObject *_wrap_STANDARD_CURSOR_get() {
16889 PyObject *pyobj;
16890
16891 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16892 return pyobj;
16893 }
16894
16895
16896 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16897 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16898 return 1;
16899 }
16900
16901
16902 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16903 PyObject *pyobj;
16904
16905 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16906 return pyobj;
16907 }
16908
16909
16910 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16911 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16912 return 1;
16913 }
16914
16915
16916 static PyObject *_wrap_CROSS_CURSOR_get() {
16917 PyObject *pyobj;
16918
16919 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16920 return pyobj;
16921 }
16922
16923
16924 static int _wrap_NullBitmap_set(PyObject *) {
16925 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16926 return 1;
16927 }
16928
16929
16930 static PyObject *_wrap_NullBitmap_get() {
16931 PyObject *pyobj;
16932
16933 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16934 return pyobj;
16935 }
16936
16937
16938 static int _wrap_NullIcon_set(PyObject *) {
16939 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16940 return 1;
16941 }
16942
16943
16944 static PyObject *_wrap_NullIcon_get() {
16945 PyObject *pyobj;
16946
16947 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16948 return pyobj;
16949 }
16950
16951
16952 static int _wrap_NullCursor_set(PyObject *) {
16953 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16954 return 1;
16955 }
16956
16957
16958 static PyObject *_wrap_NullCursor_get() {
16959 PyObject *pyobj;
16960
16961 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16962 return pyobj;
16963 }
16964
16965
16966 static int _wrap_NullPen_set(PyObject *) {
16967 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16968 return 1;
16969 }
16970
16971
16972 static PyObject *_wrap_NullPen_get() {
16973 PyObject *pyobj;
16974
16975 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16976 return pyobj;
16977 }
16978
16979
16980 static int _wrap_NullBrush_set(PyObject *) {
16981 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16982 return 1;
16983 }
16984
16985
16986 static PyObject *_wrap_NullBrush_get() {
16987 PyObject *pyobj;
16988
16989 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16990 return pyobj;
16991 }
16992
16993
16994 static int _wrap_NullPalette_set(PyObject *) {
16995 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16996 return 1;
16997 }
16998
16999
17000 static PyObject *_wrap_NullPalette_get() {
17001 PyObject *pyobj;
17002
17003 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
17004 return pyobj;
17005 }
17006
17007
17008 static int _wrap_NullFont_set(PyObject *) {
17009 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17010 return 1;
17011 }
17012
17013
17014 static PyObject *_wrap_NullFont_get() {
17015 PyObject *pyobj;
17016
17017 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
17018 return pyobj;
17019 }
17020
17021
17022 static int _wrap_NullColour_set(PyObject *) {
17023 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17024 return 1;
17025 }
17026
17027
17028 static PyObject *_wrap_NullColour_get() {
17029 PyObject *pyobj;
17030
17031 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
17032 return pyobj;
17033 }
17034
17035
17036 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17037 PyObject *resultobj;
17038 wxPenList *arg1 = (wxPenList *) 0 ;
17039 wxPen *arg2 = (wxPen *) 0 ;
17040 PyObject * obj0 = 0 ;
17041 PyObject * obj1 = 0 ;
17042 char *kwnames[] = {
17043 (char *) "self",(char *) "pen", NULL
17044 };
17045
17046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17048 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 (arg1)->AddPen(arg2);
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 Py_INCREF(Py_None); resultobj = Py_None;
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17064 PyObject *resultobj;
17065 wxPenList *arg1 = (wxPenList *) 0 ;
17066 wxColour *arg2 = 0 ;
17067 int arg3 ;
17068 int arg4 ;
17069 wxPen *result;
17070 wxColour temp2 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 PyObject * obj3 = 0 ;
17075 char *kwnames[] = {
17076 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17077 };
17078
17079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17081 {
17082 arg2 = &temp2;
17083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17084 }
17085 {
17086 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17096
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
17101 return resultobj;
17102 fail:
17103 return NULL;
17104 }
17105
17106
17107 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 wxPenList *arg1 = (wxPenList *) 0 ;
17110 wxPen *arg2 = (wxPen *) 0 ;
17111 PyObject * obj0 = 0 ;
17112 PyObject * obj1 = 0 ;
17113 char *kwnames[] = {
17114 (char *) "self",(char *) "pen", NULL
17115 };
17116
17117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17119 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 (arg1)->RemovePen(arg2);
17123
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 Py_INCREF(Py_None); resultobj = Py_None;
17128 return resultobj;
17129 fail:
17130 return NULL;
17131 }
17132
17133
17134 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17135 PyObject *resultobj;
17136 wxPenList *arg1 = (wxPenList *) 0 ;
17137 int result;
17138 PyObject * obj0 = 0 ;
17139 char *kwnames[] = {
17140 (char *) "self", NULL
17141 };
17142
17143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = (int)(arg1)->GetCount();
17148
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 resultobj = SWIG_PyObj_FromInt((int)result);
17153 return resultobj;
17154 fail:
17155 return NULL;
17156 }
17157
17158
17159 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17160 PyObject *obj;
17161 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17162 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17163 Py_INCREF(obj);
17164 return Py_BuildValue((char *)"");
17165 }
17166 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj;
17168 wxBrushList *arg1 = (wxBrushList *) 0 ;
17169 wxBrush *arg2 = (wxBrush *) 0 ;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 char *kwnames[] = {
17173 (char *) "self",(char *) "brush", NULL
17174 };
17175
17176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17178 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 (arg1)->AddBrush(arg2);
17182
17183 wxPyEndAllowThreads(__tstate);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 Py_INCREF(Py_None); resultobj = Py_None;
17187 return resultobj;
17188 fail:
17189 return NULL;
17190 }
17191
17192
17193 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj;
17195 wxBrushList *arg1 = (wxBrushList *) 0 ;
17196 wxColour *arg2 = 0 ;
17197 int arg3 ;
17198 wxBrush *result;
17199 wxColour temp2 ;
17200 PyObject * obj0 = 0 ;
17201 PyObject * obj1 = 0 ;
17202 PyObject * obj2 = 0 ;
17203 char *kwnames[] = {
17204 (char *) "self",(char *) "colour",(char *) "style", NULL
17205 };
17206
17207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17209 {
17210 arg2 = &temp2;
17211 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17212 }
17213 {
17214 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17220
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
17225 return resultobj;
17226 fail:
17227 return NULL;
17228 }
17229
17230
17231 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj;
17233 wxBrushList *arg1 = (wxBrushList *) 0 ;
17234 wxBrush *arg2 = (wxBrush *) 0 ;
17235 PyObject * obj0 = 0 ;
17236 PyObject * obj1 = 0 ;
17237 char *kwnames[] = {
17238 (char *) "self",(char *) "brush", NULL
17239 };
17240
17241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17243 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 (arg1)->RemoveBrush(arg2);
17247
17248 wxPyEndAllowThreads(__tstate);
17249 if (PyErr_Occurred()) SWIG_fail;
17250 }
17251 Py_INCREF(Py_None); resultobj = Py_None;
17252 return resultobj;
17253 fail:
17254 return NULL;
17255 }
17256
17257
17258 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17259 PyObject *resultobj;
17260 wxBrushList *arg1 = (wxBrushList *) 0 ;
17261 int result;
17262 PyObject * obj0 = 0 ;
17263 char *kwnames[] = {
17264 (char *) "self", NULL
17265 };
17266
17267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = (int)(arg1)->GetCount();
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 resultobj = SWIG_PyObj_FromInt((int)result);
17277 return resultobj;
17278 fail:
17279 return NULL;
17280 }
17281
17282
17283 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17284 PyObject *obj;
17285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17286 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17287 Py_INCREF(obj);
17288 return Py_BuildValue((char *)"");
17289 }
17290 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj;
17292 wxColourDatabase *result;
17293 char *kwnames[] = {
17294 NULL
17295 };
17296
17297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17298 {
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 result = (wxColourDatabase *)new wxColourDatabase();
17301
17302 wxPyEndAllowThreads(__tstate);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
17306 return resultobj;
17307 fail:
17308 return NULL;
17309 }
17310
17311
17312 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17313 PyObject *resultobj;
17314 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17315 PyObject * obj0 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 delete arg1;
17325
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 Py_INCREF(Py_None); resultobj = Py_None;
17330 return resultobj;
17331 fail:
17332 return NULL;
17333 }
17334
17335
17336 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj;
17338 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17339 wxString *arg2 = 0 ;
17340 wxColour result;
17341 bool temp2 = False ;
17342 PyObject * obj0 = 0 ;
17343 PyObject * obj1 = 0 ;
17344 char *kwnames[] = {
17345 (char *) "self",(char *) "name", NULL
17346 };
17347
17348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17350 {
17351 arg2 = wxString_in_helper(obj1);
17352 if (arg2 == NULL) SWIG_fail;
17353 temp2 = True;
17354 }
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17358
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 wxColour * resultptr;
17364 resultptr = new wxColour((wxColour &) result);
17365 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17366 }
17367 {
17368 if (temp2)
17369 delete arg2;
17370 }
17371 return resultobj;
17372 fail:
17373 {
17374 if (temp2)
17375 delete arg2;
17376 }
17377 return NULL;
17378 }
17379
17380
17381 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17382 PyObject *resultobj;
17383 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17384 wxColour *arg2 = 0 ;
17385 wxString result;
17386 wxColour temp2 ;
17387 PyObject * obj0 = 0 ;
17388 PyObject * obj1 = 0 ;
17389 char *kwnames[] = {
17390 (char *) "self",(char *) "colour", NULL
17391 };
17392
17393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17395 {
17396 arg2 = &temp2;
17397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17398 }
17399 {
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
17401 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17402
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 {
17407 #if wxUSE_UNICODE
17408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17409 #else
17410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17411 #endif
17412 }
17413 return resultobj;
17414 fail:
17415 return NULL;
17416 }
17417
17418
17419 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj;
17421 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17422 wxString *arg2 = 0 ;
17423 wxColour *arg3 = 0 ;
17424 bool temp2 = False ;
17425 wxColour temp3 ;
17426 PyObject * obj0 = 0 ;
17427 PyObject * obj1 = 0 ;
17428 PyObject * obj2 = 0 ;
17429 char *kwnames[] = {
17430 (char *) "self",(char *) "name",(char *) "colour", NULL
17431 };
17432
17433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17435 {
17436 arg2 = wxString_in_helper(obj1);
17437 if (arg2 == NULL) SWIG_fail;
17438 temp2 = True;
17439 }
17440 {
17441 arg3 = &temp3;
17442 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17443 }
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17447
17448 wxPyEndAllowThreads(__tstate);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 Py_INCREF(Py_None); resultobj = Py_None;
17452 {
17453 if (temp2)
17454 delete arg2;
17455 }
17456 return resultobj;
17457 fail:
17458 {
17459 if (temp2)
17460 delete arg2;
17461 }
17462 return NULL;
17463 }
17464
17465
17466 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17469 wxString *arg2 = 0 ;
17470 int arg3 ;
17471 int arg4 ;
17472 int arg5 ;
17473 bool temp2 = False ;
17474 PyObject * obj0 = 0 ;
17475 PyObject * obj1 = 0 ;
17476 PyObject * obj2 = 0 ;
17477 PyObject * obj3 = 0 ;
17478 PyObject * obj4 = 0 ;
17479 char *kwnames[] = {
17480 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17481 };
17482
17483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17485 {
17486 arg2 = wxString_in_helper(obj1);
17487 if (arg2 == NULL) SWIG_fail;
17488 temp2 = True;
17489 }
17490 {
17491 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 {
17495 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 }
17498 {
17499 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17505
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 Py_INCREF(Py_None); resultobj = Py_None;
17510 {
17511 if (temp2)
17512 delete arg2;
17513 }
17514 return resultobj;
17515 fail:
17516 {
17517 if (temp2)
17518 delete arg2;
17519 }
17520 return NULL;
17521 }
17522
17523
17524 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17525 PyObject *obj;
17526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17527 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17528 Py_INCREF(obj);
17529 return Py_BuildValue((char *)"");
17530 }
17531 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj;
17533 wxFontList *arg1 = (wxFontList *) 0 ;
17534 wxFont *arg2 = (wxFont *) 0 ;
17535 PyObject * obj0 = 0 ;
17536 PyObject * obj1 = 0 ;
17537 char *kwnames[] = {
17538 (char *) "self",(char *) "font", NULL
17539 };
17540
17541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17543 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 (arg1)->AddFont(arg2);
17547
17548 wxPyEndAllowThreads(__tstate);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 Py_INCREF(Py_None); resultobj = Py_None;
17552 return resultobj;
17553 fail:
17554 return NULL;
17555 }
17556
17557
17558 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj;
17560 wxFontList *arg1 = (wxFontList *) 0 ;
17561 int arg2 ;
17562 int arg3 ;
17563 int arg4 ;
17564 int arg5 ;
17565 bool arg6 = (bool) False ;
17566 wxString const &arg7_defvalue = wxPyEmptyString ;
17567 wxString *arg7 = (wxString *) &arg7_defvalue ;
17568 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17569 wxFont *result;
17570 bool temp7 = False ;
17571 PyObject * obj0 = 0 ;
17572 PyObject * obj1 = 0 ;
17573 PyObject * obj2 = 0 ;
17574 PyObject * obj3 = 0 ;
17575 PyObject * obj4 = 0 ;
17576 PyObject * obj5 = 0 ;
17577 PyObject * obj6 = 0 ;
17578 PyObject * obj7 = 0 ;
17579 char *kwnames[] = {
17580 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17581 };
17582
17583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17585 {
17586 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17587 if (PyErr_Occurred()) SWIG_fail;
17588 }
17589 {
17590 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
17593 {
17594 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 {
17598 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 }
17601 if (obj5) {
17602 {
17603 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 }
17607 if (obj6) {
17608 {
17609 arg7 = wxString_in_helper(obj6);
17610 if (arg7 == NULL) SWIG_fail;
17611 temp7 = True;
17612 }
17613 }
17614 if (obj7) {
17615 {
17616 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17623
17624 wxPyEndAllowThreads(__tstate);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17628 {
17629 if (temp7)
17630 delete arg7;
17631 }
17632 return resultobj;
17633 fail:
17634 {
17635 if (temp7)
17636 delete arg7;
17637 }
17638 return NULL;
17639 }
17640
17641
17642 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17643 PyObject *resultobj;
17644 wxFontList *arg1 = (wxFontList *) 0 ;
17645 wxFont *arg2 = (wxFont *) 0 ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self",(char *) "font", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17654 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->RemoveFont(arg2);
17658
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 Py_INCREF(Py_None); resultobj = Py_None;
17663 return resultobj;
17664 fail:
17665 return NULL;
17666 }
17667
17668
17669 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17670 PyObject *resultobj;
17671 wxFontList *arg1 = (wxFontList *) 0 ;
17672 int result;
17673 PyObject * obj0 = 0 ;
17674 char *kwnames[] = {
17675 (char *) "self", NULL
17676 };
17677
17678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 result = (int)(arg1)->GetCount();
17683
17684 wxPyEndAllowThreads(__tstate);
17685 if (PyErr_Occurred()) SWIG_fail;
17686 }
17687 resultobj = SWIG_PyObj_FromInt((int)result);
17688 return resultobj;
17689 fail:
17690 return NULL;
17691 }
17692
17693
17694 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17695 PyObject *obj;
17696 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17697 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17698 Py_INCREF(obj);
17699 return Py_BuildValue((char *)"");
17700 }
17701 static int _wrap_TheFontList_set(PyObject *) {
17702 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17703 return 1;
17704 }
17705
17706
17707 static PyObject *_wrap_TheFontList_get() {
17708 PyObject *pyobj;
17709
17710 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17711 return pyobj;
17712 }
17713
17714
17715 static int _wrap_ThePenList_set(PyObject *) {
17716 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17717 return 1;
17718 }
17719
17720
17721 static PyObject *_wrap_ThePenList_get() {
17722 PyObject *pyobj;
17723
17724 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17725 return pyobj;
17726 }
17727
17728
17729 static int _wrap_TheBrushList_set(PyObject *) {
17730 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17731 return 1;
17732 }
17733
17734
17735 static PyObject *_wrap_TheBrushList_get() {
17736 PyObject *pyobj;
17737
17738 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17739 return pyobj;
17740 }
17741
17742
17743 static int _wrap_TheColourDatabase_set(PyObject *) {
17744 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17745 return 1;
17746 }
17747
17748
17749 static PyObject *_wrap_TheColourDatabase_get() {
17750 PyObject *pyobj;
17751
17752 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
17753 return pyobj;
17754 }
17755
17756
17757 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj;
17759 wxEffects *result;
17760 char *kwnames[] = {
17761 NULL
17762 };
17763
17764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17765 {
17766 PyThreadState* __tstate = wxPyBeginAllowThreads();
17767 result = (wxEffects *)new wxEffects();
17768
17769 wxPyEndAllowThreads(__tstate);
17770 if (PyErr_Occurred()) SWIG_fail;
17771 }
17772 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
17773 return resultobj;
17774 fail:
17775 return NULL;
17776 }
17777
17778
17779 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj;
17781 wxEffects *arg1 = (wxEffects *) 0 ;
17782 wxColour result;
17783 PyObject * obj0 = 0 ;
17784 char *kwnames[] = {
17785 (char *) "self", NULL
17786 };
17787
17788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17790 {
17791 PyThreadState* __tstate = wxPyBeginAllowThreads();
17792 result = ((wxEffects const *)arg1)->GetHighlightColour();
17793
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 {
17798 wxColour * resultptr;
17799 resultptr = new wxColour((wxColour &) result);
17800 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17801 }
17802 return resultobj;
17803 fail:
17804 return NULL;
17805 }
17806
17807
17808 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17809 PyObject *resultobj;
17810 wxEffects *arg1 = (wxEffects *) 0 ;
17811 wxColour result;
17812 PyObject * obj0 = 0 ;
17813 char *kwnames[] = {
17814 (char *) "self", NULL
17815 };
17816
17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 result = ((wxEffects const *)arg1)->GetLightShadow();
17822
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 {
17827 wxColour * resultptr;
17828 resultptr = new wxColour((wxColour &) result);
17829 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17830 }
17831 return resultobj;
17832 fail:
17833 return NULL;
17834 }
17835
17836
17837 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17838 PyObject *resultobj;
17839 wxEffects *arg1 = (wxEffects *) 0 ;
17840 wxColour result;
17841 PyObject * obj0 = 0 ;
17842 char *kwnames[] = {
17843 (char *) "self", NULL
17844 };
17845
17846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17848 {
17849 PyThreadState* __tstate = wxPyBeginAllowThreads();
17850 result = ((wxEffects const *)arg1)->GetFaceColour();
17851
17852 wxPyEndAllowThreads(__tstate);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 {
17856 wxColour * resultptr;
17857 resultptr = new wxColour((wxColour &) result);
17858 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17859 }
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxEffects *arg1 = (wxEffects *) 0 ;
17869 wxColour result;
17870 PyObject * obj0 = 0 ;
17871 char *kwnames[] = {
17872 (char *) "self", NULL
17873 };
17874
17875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 result = ((wxEffects const *)arg1)->GetMediumShadow();
17880
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 {
17885 wxColour * resultptr;
17886 resultptr = new wxColour((wxColour &) result);
17887 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17888 }
17889 return resultobj;
17890 fail:
17891 return NULL;
17892 }
17893
17894
17895 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17896 PyObject *resultobj;
17897 wxEffects *arg1 = (wxEffects *) 0 ;
17898 wxColour result;
17899 PyObject * obj0 = 0 ;
17900 char *kwnames[] = {
17901 (char *) "self", NULL
17902 };
17903
17904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17906 {
17907 PyThreadState* __tstate = wxPyBeginAllowThreads();
17908 result = ((wxEffects const *)arg1)->GetDarkShadow();
17909
17910 wxPyEndAllowThreads(__tstate);
17911 if (PyErr_Occurred()) SWIG_fail;
17912 }
17913 {
17914 wxColour * resultptr;
17915 resultptr = new wxColour((wxColour &) result);
17916 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17917 }
17918 return resultobj;
17919 fail:
17920 return NULL;
17921 }
17922
17923
17924 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17925 PyObject *resultobj;
17926 wxEffects *arg1 = (wxEffects *) 0 ;
17927 wxColour *arg2 = 0 ;
17928 wxColour temp2 ;
17929 PyObject * obj0 = 0 ;
17930 PyObject * obj1 = 0 ;
17931 char *kwnames[] = {
17932 (char *) "self",(char *) "c", NULL
17933 };
17934
17935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17937 {
17938 arg2 = &temp2;
17939 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17940 }
17941 {
17942 PyThreadState* __tstate = wxPyBeginAllowThreads();
17943 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17944
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 Py_INCREF(Py_None); resultobj = Py_None;
17949 return resultobj;
17950 fail:
17951 return NULL;
17952 }
17953
17954
17955 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj;
17957 wxEffects *arg1 = (wxEffects *) 0 ;
17958 wxColour *arg2 = 0 ;
17959 wxColour temp2 ;
17960 PyObject * obj0 = 0 ;
17961 PyObject * obj1 = 0 ;
17962 char *kwnames[] = {
17963 (char *) "self",(char *) "c", NULL
17964 };
17965
17966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->SetLightShadow((wxColour const &)*arg2);
17975
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 Py_INCREF(Py_None); resultobj = Py_None;
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj;
17988 wxEffects *arg1 = (wxEffects *) 0 ;
17989 wxColour *arg2 = 0 ;
17990 wxColour temp2 ;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self",(char *) "c", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17999 {
18000 arg2 = &temp2;
18001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18002 }
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 (arg1)->SetFaceColour((wxColour const &)*arg2);
18006
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 Py_INCREF(Py_None); resultobj = Py_None;
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj;
18019 wxEffects *arg1 = (wxEffects *) 0 ;
18020 wxColour *arg2 = 0 ;
18021 wxColour temp2 ;
18022 PyObject * obj0 = 0 ;
18023 PyObject * obj1 = 0 ;
18024 char *kwnames[] = {
18025 (char *) "self",(char *) "c", NULL
18026 };
18027
18028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18030 {
18031 arg2 = &temp2;
18032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18033 }
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 Py_INCREF(Py_None); resultobj = Py_None;
18042 return resultobj;
18043 fail:
18044 return NULL;
18045 }
18046
18047
18048 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj;
18050 wxEffects *arg1 = (wxEffects *) 0 ;
18051 wxColour *arg2 = 0 ;
18052 wxColour temp2 ;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 char *kwnames[] = {
18056 (char *) "self",(char *) "c", NULL
18057 };
18058
18059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18061 {
18062 arg2 = &temp2;
18063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18068
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 Py_INCREF(Py_None); resultobj = Py_None;
18073 return resultobj;
18074 fail:
18075 return NULL;
18076 }
18077
18078
18079 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj;
18081 wxEffects *arg1 = (wxEffects *) 0 ;
18082 wxColour *arg2 = 0 ;
18083 wxColour *arg3 = 0 ;
18084 wxColour *arg4 = 0 ;
18085 wxColour *arg5 = 0 ;
18086 wxColour *arg6 = 0 ;
18087 wxColour temp2 ;
18088 wxColour temp3 ;
18089 wxColour temp4 ;
18090 wxColour temp5 ;
18091 wxColour temp6 ;
18092 PyObject * obj0 = 0 ;
18093 PyObject * obj1 = 0 ;
18094 PyObject * obj2 = 0 ;
18095 PyObject * obj3 = 0 ;
18096 PyObject * obj4 = 0 ;
18097 PyObject * obj5 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18104 {
18105 arg2 = &temp2;
18106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18107 }
18108 {
18109 arg3 = &temp3;
18110 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18111 }
18112 {
18113 arg4 = &temp4;
18114 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18115 }
18116 {
18117 arg5 = &temp5;
18118 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18119 }
18120 {
18121 arg6 = &temp6;
18122 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18123 }
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 Py_INCREF(Py_None); resultobj = Py_None;
18132 return resultobj;
18133 fail:
18134 return NULL;
18135 }
18136
18137
18138 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18139 PyObject *resultobj;
18140 wxEffects *arg1 = (wxEffects *) 0 ;
18141 wxDC *arg2 = 0 ;
18142 wxRect *arg3 = 0 ;
18143 int arg4 = (int) 1 ;
18144 wxRect temp3 ;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 PyObject * obj2 = 0 ;
18148 PyObject * obj3 = 0 ;
18149 char *kwnames[] = {
18150 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18151 };
18152
18153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18155 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18156 if (arg2 == NULL) {
18157 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18158 }
18159 {
18160 arg3 = &temp3;
18161 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18162 }
18163 if (obj3) {
18164 {
18165 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 }
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18172
18173 wxPyEndAllowThreads(__tstate);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 }
18176 Py_INCREF(Py_None); resultobj = Py_None;
18177 return resultobj;
18178 fail:
18179 return NULL;
18180 }
18181
18182
18183 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18184 PyObject *resultobj;
18185 wxEffects *arg1 = (wxEffects *) 0 ;
18186 wxRect *arg2 = 0 ;
18187 wxDC *arg3 = 0 ;
18188 wxBitmap *arg4 = 0 ;
18189 bool result;
18190 wxRect temp2 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 PyObject * obj2 = 0 ;
18194 PyObject * obj3 = 0 ;
18195 char *kwnames[] = {
18196 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18197 };
18198
18199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18201 {
18202 arg2 = &temp2;
18203 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18204 }
18205 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18206 if (arg3 == NULL) {
18207 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18208 }
18209 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18210 if (arg4 == NULL) {
18211 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18212 }
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18216
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = SWIG_PyObj_FromBool((bool)result);
18221 return resultobj;
18222 fail:
18223 return NULL;
18224 }
18225
18226
18227 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18228 PyObject *obj;
18229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18230 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18231 Py_INCREF(obj);
18232 return Py_BuildValue((char *)"");
18233 }
18234 static PyMethodDef SwigMethods[] = {
18235 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18241 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18256 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18258 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18262 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18281 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18285 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18295 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18324 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18327 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18346 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18354 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18362 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18378 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18405 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18419 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18443 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18452 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18471 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18508 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18516 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18523 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18545 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18547 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18555 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18680 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18684 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18688 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18690 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18695 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18697 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18699 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18701 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18703 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18709 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18718 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18721 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18723 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18735 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18740 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18745 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18752 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18757 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18772 { NULL, NULL }
18773 };
18774
18775
18776 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18777
18778 static void *_p_wxControlTo_p_wxWindow(void *x) {
18779 return (void *)((wxWindow *) ((wxControl *) x));
18780 }
18781 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18782 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18783 }
18784 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18785 return (void *)((wxWindow *) ((wxMenuBar *) x));
18786 }
18787 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18788 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18789 }
18790 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18791 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18792 }
18793 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18795 }
18796 static void *_p_wxPenTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18798 }
18799 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) ((wxRegionIterator *) x));
18801 }
18802 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18804 }
18805 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) ((wxSizerItem *) x));
18807 }
18808 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) ((wxColourDatabase *) x));
18810 }
18811 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18813 }
18814 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18816 }
18817 static void *_p_wxIconTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18819 }
18820 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18822 }
18823 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18825 }
18826 static void *_p_wxSizerTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) ((wxSizer *) x));
18828 }
18829 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18831 }
18832 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18834 }
18835 static void *_p_wxPenListTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) ((wxPenList *) x));
18837 }
18838 static void *_p_wxEventTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) ((wxEvent *) x));
18840 }
18841 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18843 }
18844 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18846 }
18847 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18849 }
18850 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18852 }
18853 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18855 }
18856 static void *_p_wxDCTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) ((wxDC *) x));
18858 }
18859 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18861 }
18862 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18864 }
18865 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18867 }
18868 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18870 }
18871 static void *_p_wxControlTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18873 }
18874 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18876 }
18877 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18879 }
18880 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) ((wxFSFile *) x));
18882 }
18883 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18885 }
18886 static void *_p_wxRegionTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18888 }
18889 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18891 }
18892 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18894 }
18895 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) ((wxGDIObject *) x));
18897 }
18898 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) ((wxEffects *) x));
18900 }
18901 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18903 }
18904 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18906 }
18907 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18909 }
18910 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18912 }
18913 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) ((wxMenuItem *) x));
18915 }
18916 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18918 }
18919 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18921 }
18922 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18924 }
18925 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18927 }
18928 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18930 }
18931 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18933 }
18934 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18936 }
18937 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18939 }
18940 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18942 }
18943 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18945 }
18946 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18948 }
18949 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18951 }
18952 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18954 }
18955 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18957 }
18958 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18960 }
18961 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18963 }
18964 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18966 }
18967 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18969 }
18970 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxImageHandler *) x));
18972 }
18973 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18975 }
18976 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) ((wxEvtHandler *) x));
18978 }
18979 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18981 }
18982 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18984 }
18985 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18987 }
18988 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18990 }
18991 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18993 }
18994 static void *_p_wxImageTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) ((wxImage *) x));
18996 }
18997 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18999 }
19000 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19002 }
19003 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19005 }
19006 static void *_p_wxImageListTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) ((wxImageList *) x));
19008 }
19009 static void *_p_wxCursorTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19011 }
19012 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19014 }
19015 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19017 }
19018 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19020 }
19021 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19023 }
19024 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19026 }
19027 static void *_p_wxWindowTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19029 }
19030 static void *_p_wxMenuTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19032 }
19033 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19035 }
19036 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19038 }
19039 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) ((wxBrushList *) x));
19041 }
19042 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19044 }
19045 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) ((wxFileSystem *) x));
19047 }
19048 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19050 }
19051 static void *_p_wxMaskTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) ((wxMask *) x));
19053 }
19054 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19056 }
19057 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19059 }
19060 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19062 }
19063 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19065 }
19066 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19068 }
19069 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19071 }
19072 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19074 }
19075 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19077 }
19078 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19080 }
19081 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19083 }
19084 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19086 }
19087 static void *_p_wxFontTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19089 }
19090 static void *_p_wxBrushTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19092 }
19093 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) ((wxMetaFile *) x));
19095 }
19096 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19098 }
19099 static void *_p_wxColourTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) ((wxColour *) x));
19101 }
19102 static void *_p_wxFontListTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) ((wxFontList *) x));
19104 }
19105 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19107 }
19108 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19110 }
19111 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19112 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19113 }
19114 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19115 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19116 }
19117 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19118 return (void *)((wxDC *) ((wxScreenDC *) x));
19119 }
19120 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19121 return (void *)((wxDC *) ((wxMirrorDC *) x));
19122 }
19123 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19124 return (void *)((wxDC *) ((wxMemoryDC *) x));
19125 }
19126 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19127 return (void *)((wxDC *) ((wxWindowDC *) x));
19128 }
19129 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19130 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19131 }
19132 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19133 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19134 }
19135 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19136 return (void *)((wxDC *) ((wxClientDC *) x));
19137 }
19138 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19139 return (void *)((wxDC *) ((wxPaintDC *) x));
19140 }
19141 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19142 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19143 }
19144 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19145 return (void *)((wxDC *) ((wxPrinterDC *) x));
19146 }
19147 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19148 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19149 }
19150 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19151 return (void *)((wxGDIObject *) ((wxIcon *) x));
19152 }
19153 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19154 return (void *)((wxGDIObject *) ((wxPalette *) x));
19155 }
19156 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19157 return (void *)((wxGDIObject *) ((wxPen *) x));
19158 }
19159 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19160 return (void *)((wxGDIObject *) ((wxFont *) x));
19161 }
19162 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19163 return (void *)((wxGDIObject *) ((wxCursor *) x));
19164 }
19165 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19166 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19167 }
19168 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19169 return (void *)((wxGDIObject *) ((wxRegion *) x));
19170 }
19171 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19172 return (void *)((wxGDIObject *) ((wxBrush *) x));
19173 }
19174 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19175 return (void *)((wxPen *) ((wxPyPen *) x));
19176 }
19177 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
19178 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
19179 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
19180 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}};
19181 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
19182 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19183 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
19184 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
19185 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
19186 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
19187 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
19188 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
19189 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
19190 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}};
19191 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
19192 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
19193 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}};
19194 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
19195 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
19196 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
19197 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
19198 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
19199 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}};
19200 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
19201 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
19202 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
19203 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
19204 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
19205 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
19206 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
19207 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
19208 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
19209 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
19210 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
19211 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
19212 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19213 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}};
19214 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
19215 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
19216 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
19217 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
19218 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
19219 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
19220 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
19221 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
19222 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
19223 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
19224 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
19225 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
19226 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
19227 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
19228 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
19229 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
19230 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
19231 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
19232 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
19233
19234 static swig_type_info *swig_types_initial[] = {
19235 _swigt__p_wxPostScriptDC,
19236 _swigt__p_wxBrush,
19237 _swigt__p_wxColour,
19238 _swigt__p_wxDC,
19239 _swigt__p_wxMirrorDC,
19240 _swigt__p_byte,
19241 _swigt__p_wxPyFontEnumerator,
19242 _swigt__p_char,
19243 _swigt__p_wxIconLocation,
19244 _swigt__p_wxImage,
19245 _swigt__p_wxMetaFileDC,
19246 _swigt__p_wxMask,
19247 _swigt__p_wxFont,
19248 _swigt__p_wxWindow,
19249 _swigt__p_wxSize,
19250 _swigt__p_double,
19251 _swigt__p_wxMemoryDC,
19252 _swigt__p_wxFontMapper,
19253 _swigt__p_wxEffects,
19254 _swigt__p_wxNativeEncodingInfo,
19255 _swigt__p_wxPalette,
19256 _swigt__p_wxBitmap,
19257 _swigt__p_wxObject,
19258 _swigt__p_wxRegionIterator,
19259 _swigt__p_wxRect,
19260 _swigt__p_wxString,
19261 _swigt__p_wxPrinterDC,
19262 _swigt__p_wxIconBundle,
19263 _swigt__p_wxPoint,
19264 _swigt__p_wxDash,
19265 _swigt__p_wxScreenDC,
19266 _swigt__p_wxCursor,
19267 _swigt__p_wxClientDC,
19268 _swigt__p_wxBufferedDC,
19269 _swigt__p_wxImageList,
19270 _swigt__p_unsigned_char,
19271 _swigt__p_wxGDIObject,
19272 _swigt__p_wxIcon,
19273 _swigt__p_wxLocale,
19274 _swigt__p_wxRegion,
19275 _swigt__p_wxLanguageInfo,
19276 _swigt__p_wxConfigBase,
19277 _swigt__p_wxWindowDC,
19278 _swigt__p_wxPrintData,
19279 _swigt__p_wxBrushList,
19280 _swigt__p_wxFontList,
19281 _swigt__p_wxPen,
19282 _swigt__p_wxBufferedPaintDC,
19283 _swigt__p_wxPaintDC,
19284 _swigt__p_wxPenList,
19285 _swigt__p_wxPyPen,
19286 _swigt__p_int,
19287 _swigt__p_wxMetaFile,
19288 _swigt__p_wxNativeFontInfo,
19289 _swigt__p_wxEncodingConverter,
19290 _swigt__p_wxColourDatabase,
19291 0
19292 };
19293
19294
19295 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19296
19297 static swig_const_info swig_const_table[] = {
19298 {0}};
19299
19300 #ifdef __cplusplus
19301 }
19302 #endif
19303
19304 #ifdef __cplusplus
19305 extern "C"
19306 #endif
19307 SWIGEXPORT(void) SWIG_init(void) {
19308 static PyObject *SWIG_globals = 0;
19309 static int typeinit = 0;
19310 PyObject *m, *d;
19311 int i;
19312 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19313 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19314 d = PyModule_GetDict(m);
19315
19316 if (!typeinit) {
19317 for (i = 0; swig_types_initial[i]; i++) {
19318 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19319 }
19320 typeinit = 1;
19321 }
19322 SWIG_InstallConstants(d,swig_const_table);
19323
19324 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
19325 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
19326 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
19327 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
19328 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
19329 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
19330 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
19331 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
19332 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
19333 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
19334 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
19335 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
19336 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
19337 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
19338 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
19339 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
19340 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
19341 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
19342 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
19343 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
19344 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
19345 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
19346 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
19347 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
19348 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
19349 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
19350 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19351 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
19352 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19353 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
19354 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
19355 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
19356 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
19357 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
19358 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
19359 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
19360 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
19361 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
19362 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
19363 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
19364 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
19365 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
19366 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
19367 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
19368 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
19369 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
19370 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
19371 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19372 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
19373 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19374 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
19375 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
19376 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
19377 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
19378 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
19379 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
19380 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
19381 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
19382 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
19383 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
19384 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
19385 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
19386 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
19387 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
19388 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
19389 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
19390 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
19391 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
19392 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
19393 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
19394 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
19395 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
19396 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
19397 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
19398 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
19399 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
19400 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
19401 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
19402 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
19403 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19404 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
19405 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
19406 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
19407 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
19408 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19409 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19410 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19411 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
19412 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
19413 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
19414 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
19415 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
19416 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
19417 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19418 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
19419 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
19420 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
19421 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
19422 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19423 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19424 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
19425 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19426 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
19427 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19428 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19429 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19430 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19431 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
19432 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
19433 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
19434 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
19435 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
19436 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
19437 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
19438 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
19439 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
19440 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19441 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
19442 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
19443 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
19444 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
19445 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
19446 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
19447 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
19448 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
19449 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19450
19451 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19452
19453 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
19454 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
19455 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19456 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
19457 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
19458 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
19459 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
19460 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
19461 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19462 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19463 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19464 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19465 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19466 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19467 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19468 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19469 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19470 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19471 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19472 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19473 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19474 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19475 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19476 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19477 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19478 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
19479 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
19480 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
19481 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
19482 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19483 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19484 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
19485 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
19486 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
19487 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
19488 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
19489 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
19490 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
19491 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
19492 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
19493 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
19494 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
19495 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
19496 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
19497 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19498 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19499 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19500 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19501 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19502 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19503 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
19504 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
19505 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
19506 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
19507 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
19508 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19509 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
19510 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19511 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
19512 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19513 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19514 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19515 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19516 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19517 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19518 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19519 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19520 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19521 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19522 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19523 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19524 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19525 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
19526 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
19528 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
19529 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
19530 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
19531 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
19532 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19533 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19534 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19535 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19536 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19537 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
19538 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
19539 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
19540 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
19541 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19542 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19543 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19544 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19545 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19546 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
19547 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
19548 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
19549 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
19550 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
19551 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
19552 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
19553 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
19554 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
19555 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
19556 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19557 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19558 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19559 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19560 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19561 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19562 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19563 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19564 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19565 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19566 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19567 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19568 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19569 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19570 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19571 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19572 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19573 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19574 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19575 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19576 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19577 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19578 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19579 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19580 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19581 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19582 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19583 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19584 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19585 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19586 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19587 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19588 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19589 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19590 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19591 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19592 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19593 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19594 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19595 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19596 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19597 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19598 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19599 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19600 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19601 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19602 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19603 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19604 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19605 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19606 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19607 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19608 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19609 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19611 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19612 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19613 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19614 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19615 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19616 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19617 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19618 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19619 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19620 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19621 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19622 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19623 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19624 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19625 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19626 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19627 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19628 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19629 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19630 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19631 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19632 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19633 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19634 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19635 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19636 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19637 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19638 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19639 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19640 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19641 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19642 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19643 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19644 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19645 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19646 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19647 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19648 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19649 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19650 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19651 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19652 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19653 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19654 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19655 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19656 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19657 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19658 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19659 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19660 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19661 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19662 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19663 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19664 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19665 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19666 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19667 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19668 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19669 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19670 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19671 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19672 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19673 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19674 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19675 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19676 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19677 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19678 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19679 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19680 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19681 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19682 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19683 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19684 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19685 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19686 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19687 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19688 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19689 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19690 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19691 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19692 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19693 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19694 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19695 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19696 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19697 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19698 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19699 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19700 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19701 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19702 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19703 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19704 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19705 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19706 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19707 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19726 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19727 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19728 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19729 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19730 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19731 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19732 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19733 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19734 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19735 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19736 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19737 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19738 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19739 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19740 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19741 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19742 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19743 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19744 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19745 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19746 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19747 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19748 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19749 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19750 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19751 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19752 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19753
19754 // Work around a chicken/egg problem in drawlist.cpp
19755 wxPyDrawList_SetAPIPtr();
19756
19757 }
19758