]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/gdi_wrap.cpp
Put a copy of the generated C++ docs back into the docs tree
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.20
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
9fd4be55
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
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
0f774bef
RD
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
d14a1e28 82#else
0f774bef
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
0f774bef 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
0f774bef 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
0f774bef 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
0f774bef 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
0f774bef
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
423f194a 124
d14a1e28
RD
125#endif
126
0f774bef 127
d14a1e28
RD
128/***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
d14a1e28
RD
138#include "Python.h"
139
140#ifdef __cplusplus
141extern "C" {
142#endif
143
144#define SWIG_PY_INT 1
145#define SWIG_PY_FLOAT 2
146#define SWIG_PY_STRING 3
147#define SWIG_PY_POINTER 4
148#define SWIG_PY_BINARY 5
149
150/* Flags for pointer conversion */
151
152#define SWIG_POINTER_EXCEPTION 0x1
153#define SWIG_POINTER_DISOWN 0x2
154
155/* Exception handling in wrappers */
156#define SWIG_fail goto fail
157
158/* Constant information structure */
159typedef struct swig_const_info {
160 int type;
161 char *name;
162 long lvalue;
163 double dvalue;
164 void *pvalue;
165 swig_type_info **ptype;
166} swig_const_info;
167
d14a1e28
RD
168/* Common SWIG API */
169#define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171#define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173#define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175
176/* Python-specific SWIG API */
177#define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179#define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
183#define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185#define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
187
188
0f774bef
RD
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 197
d14a1e28
RD
198
199
200/* Contract support */
201
423f194a 202#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 203
d14a1e28
RD
204#ifdef __cplusplus
205}
206#endif
207
208
209
210/* -------- TYPES TABLE (BEGIN) -------- */
211
212#define SWIGTYPE_p_wxPostScriptDC swig_types[0]
423f194a
RD
213#define SWIGTYPE_p_wxBrush swig_types[1]
214#define SWIGTYPE_p_wxColour swig_types[2]
215#define SWIGTYPE_p_wxDC swig_types[3]
216#define SWIGTYPE_p_wxMirrorDC swig_types[4]
217#define SWIGTYPE_p_byte swig_types[5]
218#define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
219#define SWIGTYPE_p_wxIconLocation swig_types[7]
220#define SWIGTYPE_p_wxImage swig_types[8]
221#define SWIGTYPE_p_wxMetaFileDC swig_types[9]
222#define SWIGTYPE_p_wxMask swig_types[10]
223#define SWIGTYPE_p_wxFont swig_types[11]
224#define SWIGTYPE_p_wxWindow swig_types[12]
225#define SWIGTYPE_p_wxSize swig_types[13]
226#define SWIGTYPE_p_double swig_types[14]
227#define SWIGTYPE_p_wxMemoryDC swig_types[15]
228#define SWIGTYPE_p_wxFontMapper swig_types[16]
229#define SWIGTYPE_p_wxEffects swig_types[17]
230#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18]
231#define SWIGTYPE_p_wxPalette swig_types[19]
232#define SWIGTYPE_p_wxBitmap swig_types[20]
233#define SWIGTYPE_p_wxObject swig_types[21]
234#define SWIGTYPE_p_wxRegionIterator swig_types[22]
235#define SWIGTYPE_p_wxRect swig_types[23]
236#define SWIGTYPE_p_wxString swig_types[24]
237#define SWIGTYPE_p_wxPrinterDC swig_types[25]
238#define SWIGTYPE_p_wxIconBundle swig_types[26]
239#define SWIGTYPE_p_wxPoint swig_types[27]
240#define SWIGTYPE_p_wxDash swig_types[28]
241#define SWIGTYPE_p_wxScreenDC swig_types[29]
242#define SWIGTYPE_p_wxCursor swig_types[30]
243#define SWIGTYPE_p_wxClientDC swig_types[31]
244#define SWIGTYPE_p_wxBufferedDC swig_types[32]
245#define SWIGTYPE_p_wxImageList swig_types[33]
246#define SWIGTYPE_p_unsigned_char swig_types[34]
247#define SWIGTYPE_p_wxGDIObject swig_types[35]
248#define SWIGTYPE_p_wxLocale swig_types[36]
249#define SWIGTYPE_p_wxIcon swig_types[37]
250#define SWIGTYPE_p_wxRegion swig_types[38]
251#define SWIGTYPE_p_wxLanguageInfo swig_types[39]
252#define SWIGTYPE_p_wxConfigBase swig_types[40]
253#define SWIGTYPE_p_wxWindowDC swig_types[41]
254#define SWIGTYPE_p_wxPrintData swig_types[42]
255#define SWIGTYPE_p_wxBrushList swig_types[43]
256#define SWIGTYPE_p_wxFontList swig_types[44]
257#define SWIGTYPE_p_wxPen swig_types[45]
258#define SWIGTYPE_p_wxBufferedPaintDC swig_types[46]
259#define SWIGTYPE_p_wxPaintDC swig_types[47]
260#define SWIGTYPE_p_wxPenList swig_types[48]
261#define SWIGTYPE_p_wxPyPen swig_types[49]
262#define SWIGTYPE_p_int swig_types[50]
263#define SWIGTYPE_p_wxMetaFile swig_types[51]
264#define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
265#define SWIGTYPE_p_wxEncodingConverter swig_types[53]
266#define SWIGTYPE_p_wxColourDatabase swig_types[54]
267static swig_type_info *swig_types[56];
d14a1e28
RD
268
269/* -------- TYPES TABLE (END) -------- */
270
271
272/*-----------------------------------------------
273 @(target):= _gdi.so
274 ------------------------------------------------*/
275#define SWIG_init init_gdi
276
277#define SWIG_name "_gdi"
278
279#include "wx/wxPython/wxPython.h"
280#include "wx/wxPython/pyclasses.h"
281
d14a1e28 282
cbd72d4f 283 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28
RD
284PyObject *wxColour_Get(wxColour *self){
285 PyObject* rv = PyTuple_New(3);
286 int red = -1;
287 int green = -1;
288 int blue = -1;
289 if (self->Ok()) {
290 red = self->Red();
291 green = self->Green();
292 blue = self->Blue();
293 }
294 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
295 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
296 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
297 return rv;
298 }
299
300static PyObject* t_output_helper(PyObject* target, PyObject* o) {
301 PyObject* o2;
302 PyObject* o3;
303
304 if (!target) {
305 target = o;
306 } else if (target == Py_None) {
307 Py_DECREF(Py_None);
308 target = o;
309 } else {
310 if (!PyTuple_Check(target)) {
311 o2 = target;
312 target = PyTuple_New(1);
313 PyTuple_SetItem(target, 0, o2);
314 }
315 o3 = PyTuple_New(1);
316 PyTuple_SetItem(o3, 0, o);
317
318 o2 = target;
319 target = PySequence_Concat(o2, o3);
320 Py_DECREF(o2);
321 Py_DECREF(o3);
322 }
323 return target;
324}
325
326PyObject *wxPen_GetDashes(wxPen *self){
327 wxDash* dashes;
328 int count = self->GetDashes(&dashes);
329 wxPyBeginBlockThreads();
330 PyObject* retval = PyList_New(0);
331 for (int x=0; x<count; x++)
332 PyList_Append(retval, PyInt_FromLong(dashes[x]));
333 wxPyEndBlockThreads();
334 return retval;
335 }
336
337wxPyPen::~wxPyPen()
338{
339 if (m_dash)
340 delete [] m_dash;
341}
342
343void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
344{
345 if (m_dash)
346 delete [] m_dash;
347 m_dash = new wxDash[nb_dashes];
348 for (int i=0; i<nb_dashes; i++) {
349 m_dash[i] = dash[i];
350 }
351 wxPen::SetDashes(nb_dashes, m_dash);
352}
353
354
355#include <wx/image.h>
356
357 static char** ConvertListOfStrings(PyObject* listOfStrings) {
358 char** cArray = NULL;
359 int count;
360
361 if (!PyList_Check(listOfStrings)) {
362 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
363 return NULL;
364 }
365 count = PyList_Size(listOfStrings);
366 cArray = new char*[count];
367
368 for(int x=0; x<count; x++) {
369 // TODO: Need some validation and error checking here
370 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
371 }
372 return cArray;
373 }
374
375
376wxBitmap *new_wxBitmap(PyObject *listOfStrings){
377 char** cArray = NULL;
378 wxBitmap* bmp;
379
380 cArray = ConvertListOfStrings(listOfStrings);
381 if (! cArray)
382 return NULL;
383 bmp = new wxBitmap(cArray);
384 delete [] cArray;
385 return bmp;
386 }
387wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
388 char* buf;
389 int length;
390 PyString_AsStringAndSize(bits, &buf, &length);
391 return new wxBitmap(buf, width, height, depth);
392 }
393void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
394 wxMask *mask = new wxMask(*self, colour);
395 self->SetMask(mask);
396 }
397
398#include <wx/iconbndl.h>
399
400wxIcon *new_wxIcon(wxBitmap const &bmp){
401 wxIcon* icon = new wxIcon();
402 icon->CopyFromBitmap(bmp);
403 return icon;
404 }
405wxIcon *new_wxIcon(PyObject *listOfStrings){
406 char** cArray = NULL;
407 wxIcon* icon;
408
409 cArray = ConvertListOfStrings(listOfStrings);
410 if (! cArray)
411 return NULL;
412 icon = new wxIcon(cArray);
413 delete [] cArray;
414 return icon;
415 }
416wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
417
418
419
420 return new wxIconLocation(*filename);
421
422 }
423void wxIconLocation_SetIndex(wxIconLocation *self,int num){
424
425
426
427 // do nothing
428
429 }
430int wxIconLocation_GetIndex(wxIconLocation *self){
431
432
433
434 return -1;
435
436 }
437wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
438
439
440
441
442 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
443
444 }
445wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
446 char* bitsbuf;
447 char* maskbuf = NULL;
448 int length;
449 PyString_AsStringAndSize(bits, &bitsbuf, &length);
450 if (maskBits)
451 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
452 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
453 }
454
455
456wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
cbd72d4f 457 wxPyRaiseNotImplemented();
d14a1e28
RD
458 return NULL;
459 }
460void wxRegionIterator_Next(wxRegionIterator *self){
461 (*self) ++;
462 }
463bool wxRegionIterator___nonzero__(wxRegionIterator *self){
464 return self->operator bool();
465 }
466
467#include <wx/fontutil.h>
468#include <wx/fontmap.h>
469#include <wx/fontenum.h>
470
471wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
472 return self->ToString();
473 }
474
475 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
476 static wxNativeEncodingInfo info;
477 if ( wxGetNativeFontEncoding(encoding, &info) )
478 return &info;
479 else
480 return NULL;
481 }
482
483PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
484 wxFontEncoding alt_enc;
485 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
486 return PyInt_FromLong(alt_enc);
487 else {
488 Py_INCREF(Py_None);
489 return Py_None;
490 }
491 }
492wxFont *new_wxFont(wxString const &info){
493 wxNativeFontInfo nfi;
494 nfi.FromString(info);
495 return new wxFont(nfi);
496 }
497wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
498 return wxFont::New(pointSize, family, flags, face, encoding);
499 }
500
501class wxPyFontEnumerator : public wxFontEnumerator {
502public:
503 wxPyFontEnumerator() {}
504 ~wxPyFontEnumerator() {}
505
506 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
507 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
508
509 PYPRIVATE;
510};
511
512IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
513IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
514
515
516PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
517 wxArrayString* arr = self->GetEncodings();
518 return wxArrayString2PyList_helper(*arr);
519 }
520PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
521 wxArrayString* arr = self->GetFacenames();
522 return wxArrayString2PyList_helper(*arr);
523 }
524
525
526
527#include "wx/wxPython/pydrawxxx.h"
528
423f194a 529wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
d14a1e28
RD
530 wxColour col;
531 self->GetPixel(x, y, &col);
532 return col;
533 }
534wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
535 wxColour col;
536 self->GetPixel(pt, &col);
537 return col;
538 }
539wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
540 wxRect rv;
541 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
542 return rv;
543 }
544wxRect wxDC_GetClippingRect(wxDC *self){
545 wxRect rect;
546 self->GetClippingBox(rect);
547 return rect;
548 }
549PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
550 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
551 }
552PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
553 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
554 }
555PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
556 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
557 }
558PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
559 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
560 }
561PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
562 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
563 }
564PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
565 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
566 }
567
568static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
569 *x1 = dc->MinX();
570 *y1 = dc->MinY();
571 *x2 = dc->MaxX();
572 *y2 = dc->MaxY();
573}
574
575
576#include <wx/dcps.h>
577
578
579class wxMetaFile : public wxObject {
580public:
581 wxMetaFile(const wxString&)
cbd72d4f 582 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
583};
584
585class wxMetaFileDC : public wxClientDC {
586public:
587 wxMetaFileDC(const wxString&, int, int, const wxString&)
cbd72d4f 588 { wxPyRaiseNotImplemented(); }
d14a1e28
RD
589};
590
591
592
593
594void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
595 self->AddColour(name, wxColour(red, green, blue));
596 }
597
d14a1e28
RD
598#include <wx/effects.h>
599
600#ifdef __cplusplus
601extern "C" {
602#endif
603static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
604 PyObject *resultobj;
605 wxGDIObject *result;
606 char *kwnames[] = {
607 NULL
608 };
609
610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
611 {
612 PyThreadState* __tstate = wxPyBeginAllowThreads();
613 result = (wxGDIObject *)new wxGDIObject();
614
615 wxPyEndAllowThreads(__tstate);
616 if (PyErr_Occurred()) SWIG_fail;
617 }
618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
619 return resultobj;
620 fail:
621 return NULL;
622}
623
624
625static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
626 PyObject *resultobj;
627 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
628 PyObject * obj0 = 0 ;
629 char *kwnames[] = {
630 (char *) "self", NULL
631 };
632
633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
635 {
636 PyThreadState* __tstate = wxPyBeginAllowThreads();
637 delete arg1;
638
639 wxPyEndAllowThreads(__tstate);
640 if (PyErr_Occurred()) SWIG_fail;
641 }
642 Py_INCREF(Py_None); resultobj = Py_None;
643 return resultobj;
644 fail:
645 return NULL;
646}
647
648
649static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
650 PyObject *resultobj;
651 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
652 bool result;
653 PyObject * obj0 = 0 ;
654 char *kwnames[] = {
655 (char *) "self", NULL
656 };
657
658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
660 {
661 PyThreadState* __tstate = wxPyBeginAllowThreads();
662 result = (bool)(arg1)->GetVisible();
663
664 wxPyEndAllowThreads(__tstate);
665 if (PyErr_Occurred()) SWIG_fail;
666 }
667 resultobj = PyInt_FromLong((long)result);
668 return resultobj;
669 fail:
670 return NULL;
671}
672
673
674static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
675 PyObject *resultobj;
676 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
677 bool arg2 ;
678 PyObject * obj0 = 0 ;
679 PyObject * obj1 = 0 ;
680 char *kwnames[] = {
681 (char *) "self",(char *) "visible", NULL
682 };
683
684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
686 arg2 = PyInt_AsLong(obj1) ? true : false;
687 if (PyErr_Occurred()) SWIG_fail;
688 {
689 PyThreadState* __tstate = wxPyBeginAllowThreads();
690 (arg1)->SetVisible(arg2);
691
692 wxPyEndAllowThreads(__tstate);
693 if (PyErr_Occurred()) SWIG_fail;
694 }
695 Py_INCREF(Py_None); resultobj = Py_None;
696 return resultobj;
697 fail:
698 return NULL;
699}
700
701
702static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
703 PyObject *resultobj;
704 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
705 bool result;
706 PyObject * obj0 = 0 ;
707 char *kwnames[] = {
708 (char *) "self", NULL
709 };
710
711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
713 {
714 PyThreadState* __tstate = wxPyBeginAllowThreads();
715 result = (bool)(arg1)->IsNull();
716
717 wxPyEndAllowThreads(__tstate);
718 if (PyErr_Occurred()) SWIG_fail;
719 }
720 resultobj = PyInt_FromLong((long)result);
721 return resultobj;
722 fail:
723 return NULL;
724}
725
726
727static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
728 PyObject *obj;
729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
730 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
731 Py_INCREF(obj);
732 return Py_BuildValue((char *)"");
733}
734static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject *resultobj;
736 unsigned char arg1 = (unsigned char) 0 ;
737 unsigned char arg2 = (unsigned char) 0 ;
738 unsigned char arg3 = (unsigned char) 0 ;
739 wxColour *result;
740 PyObject * obj0 = 0 ;
741 PyObject * obj1 = 0 ;
742 PyObject * obj2 = 0 ;
743 char *kwnames[] = {
744 (char *) "red",(char *) "green",(char *) "blue", NULL
745 };
746
747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
748 if (obj0) {
749 arg1 = (unsigned char) PyInt_AsLong(obj0);
750 if (PyErr_Occurred()) SWIG_fail;
751 }
752 if (obj1) {
753 arg2 = (unsigned char) PyInt_AsLong(obj1);
754 if (PyErr_Occurred()) SWIG_fail;
755 }
756 if (obj2) {
757 arg3 = (unsigned char) PyInt_AsLong(obj2);
758 if (PyErr_Occurred()) SWIG_fail;
759 }
760 {
761 PyThreadState* __tstate = wxPyBeginAllowThreads();
762 result = (wxColour *)new wxColour(arg1,arg2,arg3);
763
764 wxPyEndAllowThreads(__tstate);
765 if (PyErr_Occurred()) SWIG_fail;
766 }
767 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
768 return resultobj;
769 fail:
770 return NULL;
771}
772
773
774static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
775 PyObject *resultobj;
776 wxColour *arg1 = (wxColour *) 0 ;
777 PyObject * obj0 = 0 ;
778 char *kwnames[] = {
779 (char *) "self", NULL
780 };
781
782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
784 {
785 PyThreadState* __tstate = wxPyBeginAllowThreads();
786 delete arg1;
787
788 wxPyEndAllowThreads(__tstate);
789 if (PyErr_Occurred()) SWIG_fail;
790 }
791 Py_INCREF(Py_None); resultobj = Py_None;
792 return resultobj;
793 fail:
794 return NULL;
795}
796
797
798static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
799 PyObject *resultobj;
800 wxString *arg1 = 0 ;
801 wxColour *result;
423f194a 802 bool temp1 = False ;
d14a1e28
RD
803 PyObject * obj0 = 0 ;
804 char *kwnames[] = {
805 (char *) "colorName", NULL
806 };
807
808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
809 {
810 arg1 = wxString_in_helper(obj0);
811 if (arg1 == NULL) SWIG_fail;
423f194a 812 temp1 = True;
d14a1e28
RD
813 }
814 {
815 PyThreadState* __tstate = wxPyBeginAllowThreads();
816 result = (wxColour *)new wxColour((wxString const &)*arg1);
817
818 wxPyEndAllowThreads(__tstate);
819 if (PyErr_Occurred()) SWIG_fail;
820 }
821 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
822 {
823 if (temp1)
824 delete arg1;
825 }
826 return resultobj;
827 fail:
828 {
829 if (temp1)
830 delete arg1;
831 }
832 return NULL;
833}
834
835
836static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
837 PyObject *resultobj;
838 unsigned long arg1 ;
839 wxColour *result;
840 PyObject * obj0 = 0 ;
841 char *kwnames[] = {
842 (char *) "colRGB", NULL
843 };
844
845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
846 arg1 = (unsigned long) PyInt_AsLong(obj0);
847 if (PyErr_Occurred()) SWIG_fail;
848 {
849 PyThreadState* __tstate = wxPyBeginAllowThreads();
850 result = (wxColour *)new wxColour(arg1);
851
852 wxPyEndAllowThreads(__tstate);
853 if (PyErr_Occurred()) SWIG_fail;
854 }
855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
856 return resultobj;
857 fail:
858 return NULL;
859}
860
861
862static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
863 PyObject *resultobj;
864 wxColour *arg1 = (wxColour *) 0 ;
865 unsigned char result;
866 PyObject * obj0 = 0 ;
867 char *kwnames[] = {
868 (char *) "self", NULL
869 };
870
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
873 {
874 PyThreadState* __tstate = wxPyBeginAllowThreads();
875 result = (unsigned char)(arg1)->Red();
876
877 wxPyEndAllowThreads(__tstate);
878 if (PyErr_Occurred()) SWIG_fail;
879 }
880 resultobj = PyInt_FromLong((long)result);
881 return resultobj;
882 fail:
883 return NULL;
884}
885
886
887static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
888 PyObject *resultobj;
889 wxColour *arg1 = (wxColour *) 0 ;
890 unsigned char result;
891 PyObject * obj0 = 0 ;
892 char *kwnames[] = {
893 (char *) "self", NULL
894 };
895
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",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 result = (unsigned char)(arg1)->Green();
901
902 wxPyEndAllowThreads(__tstate);
903 if (PyErr_Occurred()) SWIG_fail;
904 }
905 resultobj = PyInt_FromLong((long)result);
906 return resultobj;
907 fail:
908 return NULL;
909}
910
911
912static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
913 PyObject *resultobj;
914 wxColour *arg1 = (wxColour *) 0 ;
915 unsigned char result;
916 PyObject * obj0 = 0 ;
917 char *kwnames[] = {
918 (char *) "self", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
923 {
924 PyThreadState* __tstate = wxPyBeginAllowThreads();
925 result = (unsigned char)(arg1)->Blue();
926
927 wxPyEndAllowThreads(__tstate);
928 if (PyErr_Occurred()) SWIG_fail;
929 }
930 resultobj = PyInt_FromLong((long)result);
931 return resultobj;
932 fail:
933 return NULL;
934}
935
936
937static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject *resultobj;
939 wxColour *arg1 = (wxColour *) 0 ;
940 bool result;
941 PyObject * obj0 = 0 ;
942 char *kwnames[] = {
943 (char *) "self", NULL
944 };
945
946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
948 {
949 PyThreadState* __tstate = wxPyBeginAllowThreads();
950 result = (bool)(arg1)->Ok();
951
952 wxPyEndAllowThreads(__tstate);
953 if (PyErr_Occurred()) SWIG_fail;
954 }
955 resultobj = PyInt_FromLong((long)result);
956 return resultobj;
957 fail:
958 return NULL;
959}
960
961
962static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
963 PyObject *resultobj;
964 wxColour *arg1 = (wxColour *) 0 ;
965 unsigned char arg2 ;
966 unsigned char arg3 ;
967 unsigned char arg4 ;
968 PyObject * obj0 = 0 ;
969 PyObject * obj1 = 0 ;
970 PyObject * obj2 = 0 ;
971 PyObject * obj3 = 0 ;
972 char *kwnames[] = {
973 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
974 };
975
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
978 arg2 = (unsigned char) PyInt_AsLong(obj1);
979 if (PyErr_Occurred()) SWIG_fail;
980 arg3 = (unsigned char) PyInt_AsLong(obj2);
981 if (PyErr_Occurred()) SWIG_fail;
982 arg4 = (unsigned char) PyInt_AsLong(obj3);
983 if (PyErr_Occurred()) SWIG_fail;
984 {
985 PyThreadState* __tstate = wxPyBeginAllowThreads();
986 (arg1)->Set(arg2,arg3,arg4);
987
988 wxPyEndAllowThreads(__tstate);
989 if (PyErr_Occurred()) SWIG_fail;
990 }
991 Py_INCREF(Py_None); resultobj = Py_None;
992 return resultobj;
993 fail:
994 return NULL;
995}
996
997
9fd4be55 998static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
999 PyObject *resultobj;
1000 wxColour *arg1 = (wxColour *) 0 ;
1001 unsigned long arg2 ;
1002 PyObject * obj0 = 0 ;
1003 PyObject * obj1 = 0 ;
1004 char *kwnames[] = {
1005 (char *) "self",(char *) "colRGB", NULL
1006 };
1007
9fd4be55 1008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
1009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1010 arg2 = (unsigned long) PyInt_AsLong(obj1);
1011 if (PyErr_Occurred()) SWIG_fail;
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 (arg1)->Set(arg2);
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 }
1019 Py_INCREF(Py_None); resultobj = Py_None;
1020 return resultobj;
1021 fail:
1022 return NULL;
1023}
1024
1025
1026static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1027 PyObject *resultobj;
1028 wxColour *arg1 = (wxColour *) 0 ;
1029 wxColour *arg2 = 0 ;
1030 bool result;
1031 wxColour temp2 ;
1032 PyObject * obj0 = 0 ;
1033 PyObject * obj1 = 0 ;
1034 char *kwnames[] = {
1035 (char *) "self",(char *) "colour", NULL
1036 };
1037
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1040 {
1041 arg2 = &temp2;
1042 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1043 }
1044 {
1045 PyThreadState* __tstate = wxPyBeginAllowThreads();
1046 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1047
1048 wxPyEndAllowThreads(__tstate);
1049 if (PyErr_Occurred()) SWIG_fail;
1050 }
1051 resultobj = PyInt_FromLong((long)result);
1052 return resultobj;
1053 fail:
1054 return NULL;
1055}
1056
1057
1058static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject *resultobj;
1060 wxColour *arg1 = (wxColour *) 0 ;
1061 wxColour *arg2 = 0 ;
1062 bool result;
1063 wxColour temp2 ;
1064 PyObject * obj0 = 0 ;
1065 PyObject * obj1 = 0 ;
1066 char *kwnames[] = {
1067 (char *) "self",(char *) "colour", NULL
1068 };
1069
1070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1072 {
1073 arg2 = &temp2;
1074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1075 }
1076 {
1077 PyThreadState* __tstate = wxPyBeginAllowThreads();
1078 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1079
1080 wxPyEndAllowThreads(__tstate);
1081 if (PyErr_Occurred()) SWIG_fail;
1082 }
1083 resultobj = PyInt_FromLong((long)result);
1084 return resultobj;
1085 fail:
1086 return NULL;
1087}
1088
1089
9fd4be55
RD
1090static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1091 PyObject *resultobj;
1092 wxColour *arg1 = (wxColour *) 0 ;
1093 wxString *arg2 = 0 ;
1094 bool temp2 = False ;
1095 PyObject * obj0 = 0 ;
1096 PyObject * obj1 = 0 ;
1097 char *kwnames[] = {
1098 (char *) "self",(char *) "colourName", NULL
1099 };
1100
1101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1103 {
1104 arg2 = wxString_in_helper(obj1);
1105 if (arg2 == NULL) SWIG_fail;
1106 temp2 = True;
1107 }
1108 {
1109 PyThreadState* __tstate = wxPyBeginAllowThreads();
1110 (arg1)->InitFromName((wxString const &)*arg2);
1111
1112 wxPyEndAllowThreads(__tstate);
1113 if (PyErr_Occurred()) SWIG_fail;
1114 }
1115 Py_INCREF(Py_None); resultobj = Py_None;
1116 {
1117 if (temp2)
1118 delete arg2;
1119 }
1120 return resultobj;
1121 fail:
1122 {
1123 if (temp2)
1124 delete arg2;
1125 }
1126 return NULL;
1127}
1128
1129
d14a1e28
RD
1130static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1131 PyObject *resultobj;
1132 wxColour *arg1 = (wxColour *) 0 ;
1133 PyObject *result;
1134 PyObject * obj0 = 0 ;
1135 char *kwnames[] = {
1136 (char *) "self", NULL
1137 };
1138
1139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1141 {
1142 PyThreadState* __tstate = wxPyBeginAllowThreads();
1143 result = (PyObject *)wxColour_Get(arg1);
1144
1145 wxPyEndAllowThreads(__tstate);
1146 if (PyErr_Occurred()) SWIG_fail;
1147 }
1148 resultobj = result;
1149 return resultobj;
1150 fail:
1151 return NULL;
1152}
1153
1154
1155static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1156 PyObject *obj;
1157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1158 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1159 Py_INCREF(obj);
1160 return Py_BuildValue((char *)"");
1161}
1162static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1163 PyObject *resultobj;
1164 int arg1 ;
1165 unsigned char *arg2 = (unsigned char *) 0 ;
1166 unsigned char *arg3 = (unsigned char *) 0 ;
1167 unsigned char *arg4 = (unsigned char *) 0 ;
1168 wxPalette *result;
1169 PyObject * obj1 = 0 ;
1170 PyObject * obj2 = 0 ;
1171 PyObject * obj3 = 0 ;
1172 char *kwnames[] = {
1173 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1174 };
1175
1176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail;
1177 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1178 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1179 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1180 {
1181 PyThreadState* __tstate = wxPyBeginAllowThreads();
1182 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1183
1184 wxPyEndAllowThreads(__tstate);
1185 if (PyErr_Occurred()) SWIG_fail;
1186 }
1187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1188 return resultobj;
1189 fail:
1190 return NULL;
1191}
1192
1193
1194static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1195 PyObject *resultobj;
1196 wxPalette *arg1 = (wxPalette *) 0 ;
1197 PyObject * obj0 = 0 ;
1198 char *kwnames[] = {
1199 (char *) "self", NULL
1200 };
1201
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1204 {
1205 PyThreadState* __tstate = wxPyBeginAllowThreads();
1206 delete arg1;
1207
1208 wxPyEndAllowThreads(__tstate);
1209 if (PyErr_Occurred()) SWIG_fail;
1210 }
1211 Py_INCREF(Py_None); resultobj = Py_None;
1212 return resultobj;
1213 fail:
1214 return NULL;
1215}
1216
1217
1218static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1219 PyObject *resultobj;
1220 wxPalette *arg1 = (wxPalette *) 0 ;
1221 byte arg2 ;
1222 byte arg3 ;
1223 byte arg4 ;
1224 int result;
1225 PyObject * obj0 = 0 ;
1226 PyObject * obj1 = 0 ;
1227 PyObject * obj2 = 0 ;
1228 PyObject * obj3 = 0 ;
1229 char *kwnames[] = {
1230 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1231 };
1232
1233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1235 arg2 = (byte) PyInt_AsLong(obj1);
1236 if (PyErr_Occurred()) SWIG_fail;
1237 arg3 = (byte) PyInt_AsLong(obj2);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 arg4 = (byte) PyInt_AsLong(obj3);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 {
1242 PyThreadState* __tstate = wxPyBeginAllowThreads();
1243 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1244
1245 wxPyEndAllowThreads(__tstate);
1246 if (PyErr_Occurred()) SWIG_fail;
1247 }
1248 resultobj = PyInt_FromLong((long)result);
1249 return resultobj;
1250 fail:
1251 return NULL;
1252}
1253
1254
1255static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1256 PyObject *resultobj;
1257 wxPalette *arg1 = (wxPalette *) 0 ;
1258 int arg2 ;
1259 byte *arg3 = (byte *) 0 ;
1260 byte *arg4 = (byte *) 0 ;
1261 byte *arg5 = (byte *) 0 ;
1262 bool result;
1263 byte temp3 ;
1264 byte temp4 ;
1265 byte temp5 ;
1266 PyObject * obj0 = 0 ;
1267 char *kwnames[] = {
1268 (char *) "self",(char *) "pixel", NULL
1269 };
1270
1271 arg3 = &temp3;
1272 arg4 = &temp4;
1273 arg5 = &temp5;
1274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail;
1275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1276 {
1277 PyThreadState* __tstate = wxPyBeginAllowThreads();
1278 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1279
1280 wxPyEndAllowThreads(__tstate);
1281 if (PyErr_Occurred()) SWIG_fail;
1282 }
1283 resultobj = PyInt_FromLong((long)result);
1284 {
1285 PyObject *o = PyInt_FromLong((long) (*arg3));
1286 resultobj = t_output_helper(resultobj,o);
1287 }
1288 {
1289 PyObject *o = PyInt_FromLong((long) (*arg4));
1290 resultobj = t_output_helper(resultobj,o);
1291 }
1292 {
1293 PyObject *o = PyInt_FromLong((long) (*arg5));
1294 resultobj = t_output_helper(resultobj,o);
1295 }
1296 return resultobj;
1297 fail:
1298 return NULL;
1299}
1300
1301
1302static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1303 PyObject *resultobj;
1304 wxPalette *arg1 = (wxPalette *) 0 ;
1305 bool result;
1306 PyObject * obj0 = 0 ;
1307 char *kwnames[] = {
1308 (char *) "self", NULL
1309 };
1310
1311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1313 {
1314 PyThreadState* __tstate = wxPyBeginAllowThreads();
1315 result = (bool)(arg1)->Ok();
1316
1317 wxPyEndAllowThreads(__tstate);
1318 if (PyErr_Occurred()) SWIG_fail;
1319 }
1320 resultobj = PyInt_FromLong((long)result);
1321 return resultobj;
1322 fail:
1323 return NULL;
1324}
1325
1326
1327static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1328 PyObject *obj;
1329 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1330 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1331 Py_INCREF(obj);
1332 return Py_BuildValue((char *)"");
1333}
1334static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1335 PyObject *resultobj;
1336 wxColour *arg1 = 0 ;
1337 int arg2 = (int) 1 ;
1338 int arg3 = (int) wxSOLID ;
1339 wxPen *result;
1340 wxColour temp1 ;
1341 PyObject * obj0 = 0 ;
1342 char *kwnames[] = {
1343 (char *) "colour",(char *) "width",(char *) "style", NULL
1344 };
1345
1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1347 {
1348 arg1 = &temp1;
1349 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1350 }
1351 {
1352 PyThreadState* __tstate = wxPyBeginAllowThreads();
1353 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1354
1355 wxPyEndAllowThreads(__tstate);
1356 if (PyErr_Occurred()) SWIG_fail;
1357 }
1358 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1359 return resultobj;
1360 fail:
1361 return NULL;
1362}
1363
1364
1365static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1366 PyObject *resultobj;
1367 wxPen *arg1 = (wxPen *) 0 ;
1368 PyObject * obj0 = 0 ;
1369 char *kwnames[] = {
1370 (char *) "self", NULL
1371 };
1372
1373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1375 {
1376 PyThreadState* __tstate = wxPyBeginAllowThreads();
1377 delete arg1;
1378
1379 wxPyEndAllowThreads(__tstate);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 Py_INCREF(Py_None); resultobj = Py_None;
1383 return resultobj;
1384 fail:
1385 return NULL;
1386}
1387
1388
1389static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxPen *arg1 = (wxPen *) 0 ;
1392 int result;
1393 PyObject * obj0 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "self", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 result = (int)(arg1)->GetCap();
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 resultobj = PyInt_FromLong((long)result);
1408 return resultobj;
1409 fail:
1410 return NULL;
1411}
1412
1413
1414static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject *resultobj;
1416 wxPen *arg1 = (wxPen *) 0 ;
1417 wxColour result;
1418 PyObject * obj0 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self", NULL
1421 };
1422
1423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1425 {
1426 PyThreadState* __tstate = wxPyBeginAllowThreads();
1427 result = (arg1)->GetColour();
1428
1429 wxPyEndAllowThreads(__tstate);
1430 if (PyErr_Occurred()) SWIG_fail;
1431 }
1432 {
1433 wxColour * resultptr;
1434 resultptr = new wxColour((wxColour &) result);
1435 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440}
1441
1442
1443static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxPen *arg1 = (wxPen *) 0 ;
1446 int result;
1447 PyObject * obj0 = 0 ;
1448 char *kwnames[] = {
1449 (char *) "self", NULL
1450 };
1451
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 result = (int)(arg1)->GetJoin();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 }
1461 resultobj = PyInt_FromLong((long)result);
1462 return resultobj;
1463 fail:
1464 return NULL;
1465}
1466
1467
1468static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1469 PyObject *resultobj;
1470 wxPen *arg1 = (wxPen *) 0 ;
1471 int result;
1472 PyObject * obj0 = 0 ;
1473 char *kwnames[] = {
1474 (char *) "self", NULL
1475 };
1476
1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1479 {
1480 PyThreadState* __tstate = wxPyBeginAllowThreads();
1481 result = (int)(arg1)->GetStyle();
1482
1483 wxPyEndAllowThreads(__tstate);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 resultobj = PyInt_FromLong((long)result);
1487 return resultobj;
1488 fail:
1489 return NULL;
1490}
1491
1492
1493static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 wxPen *arg1 = (wxPen *) 0 ;
1496 int result;
1497 PyObject * obj0 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "self", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1504 {
1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
1506 result = (int)(arg1)->GetWidth();
1507
1508 wxPyEndAllowThreads(__tstate);
1509 if (PyErr_Occurred()) SWIG_fail;
1510 }
1511 resultobj = PyInt_FromLong((long)result);
1512 return resultobj;
1513 fail:
1514 return NULL;
1515}
1516
1517
1518static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxPen *arg1 = (wxPen *) 0 ;
1521 bool result;
1522 PyObject * obj0 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",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 result = (bool)(arg1)->Ok();
1532
1533 wxPyEndAllowThreads(__tstate);
1534 if (PyErr_Occurred()) SWIG_fail;
1535 }
1536 resultobj = PyInt_FromLong((long)result);
1537 return resultobj;
1538 fail:
1539 return NULL;
1540}
1541
1542
1543static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1544 PyObject *resultobj;
1545 wxPen *arg1 = (wxPen *) 0 ;
1546 int arg2 ;
1547 PyObject * obj0 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "self",(char *) "cap_style", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) 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 (arg1)->SetCap(arg2);
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 Py_INCREF(Py_None); resultobj = Py_None;
1562 return resultobj;
1563 fail:
1564 return NULL;
1565}
1566
1567
1568static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxPen *arg1 = (wxPen *) 0 ;
1571 wxColour *arg2 = 0 ;
1572 wxColour temp2 ;
1573 PyObject * obj0 = 0 ;
1574 PyObject * obj1 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self",(char *) "colour", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1581 {
1582 arg2 = &temp2;
1583 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 (arg1)->SetColour(*arg2);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596}
1597
1598
1599static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxPen *arg1 = (wxPen *) 0 ;
1602 int arg2 ;
1603 PyObject * obj0 = 0 ;
1604 char *kwnames[] = {
1605 (char *) "self",(char *) "join_style", NULL
1606 };
1607
1608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 (arg1)->SetJoin(arg2);
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 }
1617 Py_INCREF(Py_None); resultobj = Py_None;
1618 return resultobj;
1619 fail:
1620 return NULL;
1621}
1622
1623
1624static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1625 PyObject *resultobj;
1626 wxPen *arg1 = (wxPen *) 0 ;
1627 int arg2 ;
1628 PyObject * obj0 = 0 ;
1629 char *kwnames[] = {
1630 (char *) "self",(char *) "style", NULL
1631 };
1632
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 (arg1)->SetStyle(arg2);
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) SWIG_fail;
1641 }
1642 Py_INCREF(Py_None); resultobj = Py_None;
1643 return resultobj;
1644 fail:
1645 return NULL;
1646}
1647
1648
1649static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject *resultobj;
1651 wxPen *arg1 = (wxPen *) 0 ;
1652 int arg2 ;
1653 PyObject * obj0 = 0 ;
1654 char *kwnames[] = {
1655 (char *) "self",(char *) "width", NULL
1656 };
1657
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 (arg1)->SetWidth(arg2);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 Py_INCREF(Py_None); resultobj = Py_None;
1668 return resultobj;
1669 fail:
1670 return NULL;
1671}
1672
1673
1674static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 wxPen *arg1 = (wxPen *) 0 ;
1677 int arg2 ;
1678 wxDash *arg3 = (wxDash *) 0 ;
1679 PyObject * obj0 = 0 ;
1680 PyObject * obj1 = 0 ;
1681 char *kwnames[] = {
1682 (char *) "self",(char *) "dashes", NULL
1683 };
1684
1685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1687 {
1688 arg2 = PyList_Size(obj1);
1689 arg3 = (wxDash*)byte_LIST_helper(obj1);
1690 if (arg3 == NULL) SWIG_fail;
1691 }
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 (arg1)->SetDashes(arg2,arg3);
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) SWIG_fail;
1698 }
1699 Py_INCREF(Py_None); resultobj = Py_None;
1700 {
1701 if (arg3) delete [] arg3;
1702 }
1703 return resultobj;
1704 fail:
1705 {
1706 if (arg3) delete [] arg3;
1707 }
1708 return NULL;
1709}
1710
1711
1712static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxPen *arg1 = (wxPen *) 0 ;
1715 PyObject *result;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "self", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1723 {
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (PyObject *)wxPen_GetDashes(arg1);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 resultobj = result;
1731 return resultobj;
1732 fail:
1733 return NULL;
1734}
1735
1736
1737static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1738 PyObject *obj;
1739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1740 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1741 Py_INCREF(obj);
1742 return Py_BuildValue((char *)"");
1743}
1744static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxColour *arg1 = 0 ;
1747 int arg2 = (int) 1 ;
1748 int arg3 = (int) wxSOLID ;
1749 wxPyPen *result;
1750 wxColour temp1 ;
1751 PyObject * obj0 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "colour",(char *) "width",(char *) "style", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail;
1757 {
1758 arg1 = &temp1;
1759 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1760 }
1761 {
1762 PyThreadState* __tstate = wxPyBeginAllowThreads();
1763 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1764
1765 wxPyEndAllowThreads(__tstate);
1766 if (PyErr_Occurred()) SWIG_fail;
1767 }
1768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1769 return resultobj;
1770 fail:
1771 return NULL;
1772}
1773
1774
1775static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxPyPen *arg1 = (wxPyPen *) 0 ;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1785 {
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 delete arg1;
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 Py_INCREF(Py_None); resultobj = Py_None;
1793 return resultobj;
1794 fail:
1795 return NULL;
1796}
1797
1798
1799static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1800 PyObject *resultobj;
1801 wxPyPen *arg1 = (wxPyPen *) 0 ;
1802 int arg2 ;
1803 wxDash *arg3 = (wxDash *) 0 ;
1804 PyObject * obj0 = 0 ;
1805 PyObject * obj1 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self",(char *) "dashes", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1812 {
1813 arg2 = PyList_Size(obj1);
1814 arg3 = (wxDash*)byte_LIST_helper(obj1);
1815 if (arg3 == NULL) SWIG_fail;
1816 }
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 (arg1)->SetDashes(arg2,arg3);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) SWIG_fail;
1823 }
1824 Py_INCREF(Py_None); resultobj = Py_None;
1825 {
1826 if (arg3) delete [] arg3;
1827 }
1828 return resultobj;
1829 fail:
1830 {
1831 if (arg3) delete [] arg3;
1832 }
1833 return NULL;
1834}
1835
1836
1837static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
1838 PyObject *obj;
1839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1840 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
1841 Py_INCREF(obj);
1842 return Py_BuildValue((char *)"");
1843}
1844static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1845 PyObject *resultobj;
1846 wxColour *arg1 = 0 ;
1847 int arg2 = (int) wxSOLID ;
1848 wxBrush *result;
1849 wxColour temp1 ;
1850 PyObject * obj0 = 0 ;
1851 char *kwnames[] = {
1852 (char *) "colour",(char *) "style", NULL
1853 };
1854
1855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail;
1856 {
1857 arg1 = &temp1;
1858 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1859 }
1860 {
1861 PyThreadState* __tstate = wxPyBeginAllowThreads();
1862 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
1863
1864 wxPyEndAllowThreads(__tstate);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 }
1867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
1868 return resultobj;
1869 fail:
1870 return NULL;
1871}
1872
1873
1874static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject *resultobj;
1876 wxBrush *arg1 = (wxBrush *) 0 ;
1877 PyObject * obj0 = 0 ;
1878 char *kwnames[] = {
1879 (char *) "self", NULL
1880 };
1881
1882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
1883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 delete arg1;
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895}
1896
1897
1898static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBrush *arg1 = (wxBrush *) 0 ;
1901 wxColour *arg2 = 0 ;
1902 wxColour temp2 ;
1903 PyObject * obj0 = 0 ;
1904 PyObject * obj1 = 0 ;
1905 char *kwnames[] = {
1906 (char *) "self",(char *) "col", NULL
1907 };
1908
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
1910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1911 {
1912 arg2 = &temp2;
1913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1914 }
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 (arg1)->SetColour((wxColour const &)*arg2);
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 Py_INCREF(Py_None); resultobj = Py_None;
1923 return resultobj;
1924 fail:
1925 return NULL;
1926}
1927
1928
1929static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 wxBrush *arg1 = (wxBrush *) 0 ;
1932 int arg2 ;
1933 PyObject * obj0 = 0 ;
1934 char *kwnames[] = {
1935 (char *) "self",(char *) "style", NULL
1936 };
1937
1938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail;
1939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 (arg1)->SetStyle(arg2);
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 Py_INCREF(Py_None); resultobj = Py_None;
1948 return resultobj;
1949 fail:
1950 return NULL;
1951}
1952
1953
1954static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject *resultobj;
1956 wxBrush *arg1 = (wxBrush *) 0 ;
1957 wxBitmap *arg2 = 0 ;
1958 PyObject * obj0 = 0 ;
1959 PyObject * obj1 = 0 ;
1960 char *kwnames[] = {
1961 (char *) "self",(char *) "stipple", NULL
1962 };
1963
1964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1966 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1967 if (arg2 == NULL) {
1968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1969 }
1970 {
1971 PyThreadState* __tstate = wxPyBeginAllowThreads();
1972 (arg1)->SetStipple((wxBitmap const &)*arg2);
1973
1974 wxPyEndAllowThreads(__tstate);
1975 if (PyErr_Occurred()) SWIG_fail;
1976 }
1977 Py_INCREF(Py_None); resultobj = Py_None;
1978 return resultobj;
1979 fail:
1980 return NULL;
1981}
1982
1983
1984static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1985 PyObject *resultobj;
1986 wxBrush *arg1 = (wxBrush *) 0 ;
1987 wxColour result;
1988 PyObject * obj0 = 0 ;
1989 char *kwnames[] = {
1990 (char *) "self", NULL
1991 };
1992
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
1994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 result = ((wxBrush const *)arg1)->GetColour();
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 {
2003 wxColour * resultptr;
2004 resultptr = new wxColour((wxColour &) result);
2005 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2006 }
2007 return resultobj;
2008 fail:
2009 return NULL;
2010}
2011
2012
2013static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject *resultobj;
2015 wxBrush *arg1 = (wxBrush *) 0 ;
2016 int result;
2017 PyObject * obj0 = 0 ;
2018 char *kwnames[] = {
2019 (char *) "self", NULL
2020 };
2021
2022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2024 {
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
2026 result = (int)((wxBrush const *)arg1)->GetStyle();
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) SWIG_fail;
2030 }
2031 resultobj = PyInt_FromLong((long)result);
2032 return resultobj;
2033 fail:
2034 return NULL;
2035}
2036
2037
2038static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxBrush *arg1 = (wxBrush *) 0 ;
2041 wxBitmap *result;
2042 PyObject * obj0 = 0 ;
2043 char *kwnames[] = {
2044 (char *) "self", NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2057 return resultobj;
2058 fail:
2059 return NULL;
2060}
2061
2062
2063static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxBrush *arg1 = (wxBrush *) 0 ;
2066 bool result;
2067 PyObject * obj0 = 0 ;
2068 char *kwnames[] = {
2069 (char *) "self", NULL
2070 };
2071
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 result = (bool)(arg1)->Ok();
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 resultobj = PyInt_FromLong((long)result);
2082 return resultobj;
2083 fail:
2084 return NULL;
2085}
2086
2087
2088static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2089 PyObject *resultobj;
2090 wxBrush *arg1 = (wxBrush *) 0 ;
2091 short result;
2092 PyObject * obj0 = 0 ;
2093 char *kwnames[] = {
2094 (char *) "self", NULL
2095 };
2096
2097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 result = (short)(arg1)->GetMacTheme();
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 }
2106 resultobj = PyInt_FromLong((long)result);
2107 return resultobj;
2108 fail:
2109 return NULL;
2110}
2111
2112
2113static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxBrush *arg1 = (wxBrush *) 0 ;
2116 short arg2 ;
2117 PyObject * obj0 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "macThemeBrush", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oh:Brush_SetMacTheme",kwnames,&obj0,&arg2)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 (arg1)->SetMacTheme(arg2);
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 Py_INCREF(Py_None); resultobj = Py_None;
2132 return resultobj;
2133 fail:
2134 return NULL;
2135}
2136
2137
2138static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2139 PyObject *obj;
2140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2141 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2142 Py_INCREF(obj);
2143 return Py_BuildValue((char *)"");
2144}
2145static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxString *arg1 = 0 ;
2148 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2149 wxBitmap *result;
423f194a 2150 bool temp1 = False ;
d14a1e28
RD
2151 PyObject * obj0 = 0 ;
2152 char *kwnames[] = {
2153 (char *) "name",(char *) "type", NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail;
2157 {
2158 arg1 = wxString_in_helper(obj0);
2159 if (arg1 == NULL) SWIG_fail;
423f194a 2160 temp1 = True;
d14a1e28
RD
2161 }
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2170 {
2171 if (temp1)
2172 delete arg1;
2173 }
2174 return resultobj;
2175 fail:
2176 {
2177 if (temp1)
2178 delete arg1;
2179 }
2180 return NULL;
2181}
2182
2183
2184static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2185 PyObject *resultobj;
2186 wxBitmap *arg1 = (wxBitmap *) 0 ;
2187 PyObject * obj0 = 0 ;
2188 char *kwnames[] = {
2189 (char *) "self", NULL
2190 };
2191
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 delete arg1;
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 return resultobj;
2203 fail:
2204 return NULL;
2205}
2206
2207
2208static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2209 PyObject *resultobj;
2210 int arg1 ;
2211 int arg2 ;
2212 int arg3 = (int) -1 ;
2213 wxBitmap *result;
2214 char *kwnames[] = {
2215 (char *) "width",(char *) "height",(char *) "depth", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail;
2219 {
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2227 return resultobj;
2228 fail:
2229 return NULL;
2230}
2231
2232
2233static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxIcon *arg1 = 0 ;
2236 wxBitmap *result;
2237 PyObject * obj0 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "icon", NULL
2240 };
2241
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2244 if (arg1 == NULL) {
2245 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2246 }
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2255 return resultobj;
2256 fail:
2257 return NULL;
2258}
2259
2260
2261static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2262 PyObject *resultobj;
2263 wxImage *arg1 = 0 ;
2264 int arg2 = (int) -1 ;
2265 wxBitmap *result;
2266 PyObject * obj0 = 0 ;
2267 char *kwnames[] = {
2268 (char *) "image",(char *) "depth", NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail;
2272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2273 if (arg1 == NULL) {
2274 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2275 }
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2284 return resultobj;
2285 fail:
2286 return NULL;
2287}
2288
2289
2290static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 PyObject *arg1 = (PyObject *) 0 ;
2293 wxBitmap *result;
2294 PyObject * obj0 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "listOfStrings", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2300 arg1 = obj0;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (wxBitmap *)new_wxBitmap(arg1);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2309 return resultobj;
2310 fail:
2311 return NULL;
2312}
2313
2314
2315static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2316 PyObject *resultobj;
2317 PyObject *arg1 = (PyObject *) 0 ;
2318 int arg2 ;
2319 int arg3 ;
2320 int arg4 = (int) 1 ;
2321 wxBitmap *result;
2322 PyObject * obj0 = 0 ;
2323 char *kwnames[] = {
2324 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
2328 arg1 = obj0;
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2337 return resultobj;
2338 fail:
2339 return NULL;
2340}
2341
2342
2343static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2344 PyObject *resultobj;
2345 wxBitmap *arg1 = (wxBitmap *) 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:Bitmap_Ok",kwnames,&obj0)) goto fail;
2353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,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 = PyInt_FromLong((long)result);
2362 return resultobj;
2363 fail:
2364 return NULL;
2365}
2366
2367
2368static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 wxBitmap *arg1 = (wxBitmap *) 0 ;
2371 int result;
2372 PyObject * obj0 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "self", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (int)(arg1)->GetWidth();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 resultobj = PyInt_FromLong((long)result);
2387 return resultobj;
2388 fail:
2389 return NULL;
2390}
2391
2392
2393static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBitmap *arg1 = (wxBitmap *) 0 ;
2396 int result;
2397 PyObject * obj0 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = (int)(arg1)->GetHeight();
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 resultobj = PyInt_FromLong((long)result);
2412 return resultobj;
2413 fail:
2414 return NULL;
2415}
2416
2417
2418static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj;
2420 wxBitmap *arg1 = (wxBitmap *) 0 ;
2421 int result;
2422 PyObject * obj0 = 0 ;
2423 char *kwnames[] = {
2424 (char *) "self", NULL
2425 };
2426
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 result = (int)(arg1)->GetDepth();
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 resultobj = PyInt_FromLong((long)result);
2437 return resultobj;
2438 fail:
2439 return NULL;
2440}
2441
2442
2443static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 wxBitmap *arg1 = (wxBitmap *) 0 ;
2446 SwigValueWrapper< wxImage > result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2454 {
2455 PyThreadState* __tstate = wxPyBeginAllowThreads();
2456 result = ((wxBitmap const *)arg1)->ConvertToImage();
2457
2458 wxPyEndAllowThreads(__tstate);
2459 if (PyErr_Occurred()) SWIG_fail;
2460 }
2461 {
2462 wxImage * resultptr;
2463 resultptr = new wxImage((wxImage &) result);
2464 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2465 }
2466 return resultobj;
2467 fail:
2468 return NULL;
2469}
2470
2471
2472static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 wxBitmap *arg1 = (wxBitmap *) 0 ;
2475 wxMask *result;
2476 PyObject * obj0 = 0 ;
2477 char *kwnames[] = {
2478 (char *) "self", NULL
2479 };
2480
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2483 {
2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
2485 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2486
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2491 return resultobj;
2492 fail:
2493 return NULL;
2494}
2495
2496
2497static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 wxBitmap *arg1 = (wxBitmap *) 0 ;
2500 wxMask *arg2 = (wxMask *) 0 ;
2501 PyObject * obj0 = 0 ;
2502 PyObject * obj1 = 0 ;
2503 char *kwnames[] = {
2504 (char *) "self",(char *) "mask", NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2509 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 (arg1)->SetMask(arg2);
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 Py_INCREF(Py_None); resultobj = Py_None;
2518 return resultobj;
2519 fail:
2520 return NULL;
2521}
2522
2523
2524static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2525 PyObject *resultobj;
2526 wxBitmap *arg1 = (wxBitmap *) 0 ;
2527 wxColour *arg2 = 0 ;
2528 wxColour temp2 ;
2529 PyObject * obj0 = 0 ;
2530 PyObject * obj1 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self",(char *) "colour", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2537 {
2538 arg2 = &temp2;
2539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2540 }
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 Py_INCREF(Py_None); resultobj = Py_None;
2549 return resultobj;
2550 fail:
2551 return NULL;
2552}
2553
2554
2555static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2556 PyObject *resultobj;
2557 wxBitmap *arg1 = (wxBitmap *) 0 ;
2558 wxRect *arg2 = 0 ;
2559 SwigValueWrapper< wxBitmap > result;
2560 wxRect temp2 ;
2561 PyObject * obj0 = 0 ;
2562 PyObject * obj1 = 0 ;
2563 char *kwnames[] = {
2564 (char *) "self",(char *) "rect", NULL
2565 };
2566
2567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2569 {
2570 arg2 = &temp2;
2571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2572 }
2573 {
2574 PyThreadState* __tstate = wxPyBeginAllowThreads();
2575 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2576
2577 wxPyEndAllowThreads(__tstate);
2578 if (PyErr_Occurred()) SWIG_fail;
2579 }
2580 {
2581 wxBitmap * resultptr;
2582 resultptr = new wxBitmap((wxBitmap &) result);
2583 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2584 }
2585 return resultobj;
2586 fail:
2587 return NULL;
2588}
2589
2590
2591static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxBitmap *arg1 = (wxBitmap *) 0 ;
2594 wxString *arg2 = 0 ;
2595 int arg3 ;
2596 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2597 bool result;
423f194a 2598 bool temp2 = False ;
d14a1e28
RD
2599 PyObject * obj0 = 0 ;
2600 PyObject * obj1 = 0 ;
2601 PyObject * obj3 = 0 ;
2602 char *kwnames[] = {
2603 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2608 {
2609 arg2 = wxString_in_helper(obj1);
2610 if (arg2 == NULL) SWIG_fail;
423f194a 2611 temp2 = True;
d14a1e28
RD
2612 }
2613 if (obj3) {
2614 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2615 }
2616 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
2618 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 resultobj = PyInt_FromLong((long)result);
2624 {
2625 if (temp2)
2626 delete arg2;
2627 }
2628 return resultobj;
2629 fail:
2630 {
2631 if (temp2)
2632 delete arg2;
2633 }
2634 return NULL;
2635}
2636
2637
2638static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2639 PyObject *resultobj;
2640 wxBitmap *arg1 = (wxBitmap *) 0 ;
2641 wxString *arg2 = 0 ;
2642 int arg3 ;
2643 bool result;
423f194a 2644 bool temp2 = False ;
d14a1e28
RD
2645 PyObject * obj0 = 0 ;
2646 PyObject * obj1 = 0 ;
2647 char *kwnames[] = {
2648 (char *) "self",(char *) "name",(char *) "type", NULL
2649 };
2650
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
2652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2653 {
2654 arg2 = wxString_in_helper(obj1);
2655 if (arg2 == NULL) SWIG_fail;
423f194a 2656 temp2 = True;
d14a1e28
RD
2657 }
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 resultobj = PyInt_FromLong((long)result);
2666 {
2667 if (temp2)
2668 delete arg2;
2669 }
2670 return resultobj;
2671 fail:
2672 {
2673 if (temp2)
2674 delete arg2;
2675 }
2676 return NULL;
2677}
2678
2679
2680static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxBitmap *arg1 = (wxBitmap *) 0 ;
2683 wxIcon *arg2 = 0 ;
2684 bool result;
2685 PyObject * obj0 = 0 ;
2686 PyObject * obj1 = 0 ;
2687 char *kwnames[] = {
2688 (char *) "self",(char *) "icon", NULL
2689 };
2690
2691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2693 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2694 if (arg2 == NULL) {
2695 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2696 }
2697 {
2698 PyThreadState* __tstate = wxPyBeginAllowThreads();
2699 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2700
2701 wxPyEndAllowThreads(__tstate);
2702 if (PyErr_Occurred()) SWIG_fail;
2703 }
2704 resultobj = PyInt_FromLong((long)result);
2705 return resultobj;
2706 fail:
2707 return NULL;
2708}
2709
2710
2711static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject *resultobj;
2713 wxBitmap *arg1 = (wxBitmap *) 0 ;
2714 int arg2 ;
2715 PyObject * obj0 = 0 ;
2716 char *kwnames[] = {
2717 (char *) "self",(char *) "height", NULL
2718 };
2719
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail;
2721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2722 {
2723 PyThreadState* __tstate = wxPyBeginAllowThreads();
2724 (arg1)->SetHeight(arg2);
2725
2726 wxPyEndAllowThreads(__tstate);
2727 if (PyErr_Occurred()) SWIG_fail;
2728 }
2729 Py_INCREF(Py_None); resultobj = Py_None;
2730 return resultobj;
2731 fail:
2732 return NULL;
2733}
2734
2735
2736static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2737 PyObject *resultobj;
2738 wxBitmap *arg1 = (wxBitmap *) 0 ;
2739 int arg2 ;
2740 PyObject * obj0 = 0 ;
2741 char *kwnames[] = {
2742 (char *) "self",(char *) "width", NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail;
2746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2747 {
2748 PyThreadState* __tstate = wxPyBeginAllowThreads();
2749 (arg1)->SetWidth(arg2);
2750
2751 wxPyEndAllowThreads(__tstate);
2752 if (PyErr_Occurred()) SWIG_fail;
2753 }
2754 Py_INCREF(Py_None); resultobj = Py_None;
2755 return resultobj;
2756 fail:
2757 return NULL;
2758}
2759
2760
2761static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2762 PyObject *resultobj;
2763 wxBitmap *arg1 = (wxBitmap *) 0 ;
2764 int arg2 ;
2765 PyObject * obj0 = 0 ;
2766 char *kwnames[] = {
2767 (char *) "self",(char *) "depth", NULL
2768 };
2769
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail;
2771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 (arg1)->SetDepth(arg2);
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 Py_INCREF(Py_None); resultobj = Py_None;
2780 return resultobj;
2781 fail:
2782 return NULL;
2783}
2784
2785
2786static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
2787 PyObject *obj;
2788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2789 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
2790 Py_INCREF(obj);
2791 return Py_BuildValue((char *)"");
2792}
2793static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 wxBitmap *arg1 = 0 ;
2796 wxMask *result;
2797 PyObject * obj0 = 0 ;
2798 char *kwnames[] = {
2799 (char *) "bitmap", NULL
2800 };
2801
2802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
2803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2804 if (arg1 == NULL) {
2805 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2806 }
2807 {
2808 PyThreadState* __tstate = wxPyBeginAllowThreads();
2809 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
2810
2811 wxPyEndAllowThreads(__tstate);
2812 if (PyErr_Occurred()) SWIG_fail;
2813 }
2814 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2815 return resultobj;
2816 fail:
2817 return NULL;
2818}
2819
2820
2821static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject *resultobj;
2823 wxBitmap *arg1 = 0 ;
2824 wxColour *arg2 = 0 ;
2825 wxMask *result;
2826 wxColour temp2 ;
2827 PyObject * obj0 = 0 ;
2828 PyObject * obj1 = 0 ;
2829 char *kwnames[] = {
2830 (char *) "bitmap",(char *) "colour", NULL
2831 };
2832
2833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
2834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2835 if (arg1 == NULL) {
2836 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2837 }
2838 {
2839 arg2 = &temp2;
2840 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2841 }
2842 {
2843 PyThreadState* __tstate = wxPyBeginAllowThreads();
2844 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
2845
2846 wxPyEndAllowThreads(__tstate);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
2850 return resultobj;
2851 fail:
2852 return NULL;
2853}
2854
2855
2856static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
2857 PyObject *obj;
2858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2859 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
2860 Py_INCREF(obj);
2861 return Py_BuildValue((char *)"");
2862}
2863static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 wxString *arg1 = 0 ;
d896a793 2866 int arg2 ;
d14a1e28
RD
2867 int arg3 = (int) -1 ;
2868 int arg4 = (int) -1 ;
2869 wxIcon *result;
423f194a 2870 bool temp1 = False ;
d14a1e28
RD
2871 PyObject * obj0 = 0 ;
2872 char *kwnames[] = {
d896a793 2873 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
d14a1e28
RD
2874 };
2875
d896a793 2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
d14a1e28
RD
2877 {
2878 arg1 = wxString_in_helper(obj0);
2879 if (arg1 == NULL) SWIG_fail;
423f194a 2880 temp1 = True;
d14a1e28
RD
2881 }
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
d896a793 2884 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
d14a1e28
RD
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2890 {
2891 if (temp1)
2892 delete arg1;
2893 }
2894 return resultobj;
2895 fail:
2896 {
2897 if (temp1)
2898 delete arg1;
2899 }
2900 return NULL;
2901}
2902
2903
2904static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject *resultobj;
2906 wxIcon *arg1 = (wxIcon *) 0 ;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "self", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
2913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2914 {
2915 PyThreadState* __tstate = wxPyBeginAllowThreads();
2916 delete arg1;
2917
2918 wxPyEndAllowThreads(__tstate);
2919 if (PyErr_Occurred()) SWIG_fail;
2920 }
2921 Py_INCREF(Py_None); resultobj = Py_None;
2922 return resultobj;
2923 fail:
2924 return NULL;
2925}
2926
2927
2928static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2929 PyObject *resultobj;
2930 wxIcon *result;
2931 char *kwnames[] = {
2932 NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
2936 {
2937 PyThreadState* __tstate = wxPyBeginAllowThreads();
2938 result = (wxIcon *)new wxIcon();
2939
2940 wxPyEndAllowThreads(__tstate);
2941 if (PyErr_Occurred()) SWIG_fail;
2942 }
2943 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2944 return resultobj;
2945 fail:
2946 return NULL;
2947}
2948
2949
2950static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2951 PyObject *resultobj;
2952 wxIconLocation *arg1 = 0 ;
2953 wxIcon *result;
2954 PyObject * obj0 = 0 ;
2955 char *kwnames[] = {
2956 (char *) "loc", NULL
2957 };
2958
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
2960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2961 if (arg1 == NULL) {
2962 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2963 }
2964 {
2965 PyThreadState* __tstate = wxPyBeginAllowThreads();
2966 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
2967
2968 wxPyEndAllowThreads(__tstate);
2969 if (PyErr_Occurred()) SWIG_fail;
2970 }
2971 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
2972 return resultobj;
2973 fail:
2974 return NULL;
2975}
2976
2977
2978static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxBitmap *arg1 = 0 ;
2981 wxIcon *result;
2982 PyObject * obj0 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "bmp", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2989 if (arg1 == NULL) {
2990 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2991 }
2992 {
2993 PyThreadState* __tstate = wxPyBeginAllowThreads();
2994 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
2995
2996 wxPyEndAllowThreads(__tstate);
2997 if (PyErr_Occurred()) SWIG_fail;
2998 }
2999 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3000 return resultobj;
3001 fail:
3002 return NULL;
3003}
3004
3005
3006static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 PyObject *arg1 = (PyObject *) 0 ;
3009 wxIcon *result;
3010 PyObject * obj0 = 0 ;
3011 char *kwnames[] = {
3012 (char *) "listOfStrings", NULL
3013 };
3014
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3016 arg1 = obj0;
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (wxIcon *)new_wxIcon(arg1);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3025 return resultobj;
3026 fail:
3027 return NULL;
3028}
3029
3030
3031static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject *resultobj;
3033 wxIcon *arg1 = (wxIcon *) 0 ;
3034 bool result;
3035 PyObject * obj0 = 0 ;
3036 char *kwnames[] = {
3037 (char *) "self", NULL
3038 };
3039
3040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3042 {
3043 PyThreadState* __tstate = wxPyBeginAllowThreads();
3044 result = (bool)(arg1)->Ok();
3045
3046 wxPyEndAllowThreads(__tstate);
3047 if (PyErr_Occurred()) SWIG_fail;
3048 }
3049 resultobj = PyInt_FromLong((long)result);
3050 return resultobj;
3051 fail:
3052 return NULL;
3053}
3054
3055
3056static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxIcon *arg1 = (wxIcon *) 0 ;
3059 int result;
3060 PyObject * obj0 = 0 ;
3061 char *kwnames[] = {
3062 (char *) "self", NULL
3063 };
3064
3065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3067 {
3068 PyThreadState* __tstate = wxPyBeginAllowThreads();
3069 result = (int)(arg1)->GetWidth();
3070
3071 wxPyEndAllowThreads(__tstate);
3072 if (PyErr_Occurred()) SWIG_fail;
3073 }
3074 resultobj = PyInt_FromLong((long)result);
3075 return resultobj;
3076 fail:
3077 return NULL;
3078}
3079
3080
3081static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3082 PyObject *resultobj;
3083 wxIcon *arg1 = (wxIcon *) 0 ;
3084 int result;
3085 PyObject * obj0 = 0 ;
3086 char *kwnames[] = {
3087 (char *) "self", NULL
3088 };
3089
3090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3092 {
3093 PyThreadState* __tstate = wxPyBeginAllowThreads();
3094 result = (int)(arg1)->GetHeight();
3095
3096 wxPyEndAllowThreads(__tstate);
3097 if (PyErr_Occurred()) SWIG_fail;
3098 }
3099 resultobj = PyInt_FromLong((long)result);
3100 return resultobj;
3101 fail:
3102 return NULL;
3103}
3104
3105
3106static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3107 PyObject *resultobj;
3108 wxIcon *arg1 = (wxIcon *) 0 ;
3109 int result;
3110 PyObject * obj0 = 0 ;
3111 char *kwnames[] = {
3112 (char *) "self", NULL
3113 };
3114
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3117 {
3118 PyThreadState* __tstate = wxPyBeginAllowThreads();
3119 result = (int)(arg1)->GetDepth();
3120
3121 wxPyEndAllowThreads(__tstate);
3122 if (PyErr_Occurred()) SWIG_fail;
3123 }
3124 resultobj = PyInt_FromLong((long)result);
3125 return resultobj;
3126 fail:
3127 return NULL;
3128}
3129
3130
3131static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject *resultobj;
3133 wxIcon *arg1 = (wxIcon *) 0 ;
3134 int arg2 ;
3135 PyObject * obj0 = 0 ;
3136 char *kwnames[] = {
3137 (char *) "self",(char *) "w", NULL
3138 };
3139
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail;
3141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 (arg1)->SetWidth(arg2);
3145
3146 wxPyEndAllowThreads(__tstate);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 }
3149 Py_INCREF(Py_None); resultobj = Py_None;
3150 return resultobj;
3151 fail:
3152 return NULL;
3153}
3154
3155
3156static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3157 PyObject *resultobj;
3158 wxIcon *arg1 = (wxIcon *) 0 ;
3159 int arg2 ;
3160 PyObject * obj0 = 0 ;
3161 char *kwnames[] = {
3162 (char *) "self",(char *) "h", NULL
3163 };
3164
3165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail;
3166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3167 {
3168 PyThreadState* __tstate = wxPyBeginAllowThreads();
3169 (arg1)->SetHeight(arg2);
3170
3171 wxPyEndAllowThreads(__tstate);
3172 if (PyErr_Occurred()) SWIG_fail;
3173 }
3174 Py_INCREF(Py_None); resultobj = Py_None;
3175 return resultobj;
3176 fail:
3177 return NULL;
3178}
3179
3180
3181static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3182 PyObject *resultobj;
3183 wxIcon *arg1 = (wxIcon *) 0 ;
3184 int arg2 ;
3185 PyObject * obj0 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "self",(char *) "d", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail;
3191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3192 {
3193 PyThreadState* __tstate = wxPyBeginAllowThreads();
3194 (arg1)->SetDepth(arg2);
3195
3196 wxPyEndAllowThreads(__tstate);
3197 if (PyErr_Occurred()) SWIG_fail;
3198 }
3199 Py_INCREF(Py_None); resultobj = Py_None;
3200 return resultobj;
3201 fail:
3202 return NULL;
3203}
3204
3205
3206static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3207 PyObject *resultobj;
3208 wxIcon *arg1 = (wxIcon *) 0 ;
3209 wxBitmap *arg2 = 0 ;
3210 PyObject * obj0 = 0 ;
3211 PyObject * obj1 = 0 ;
3212 char *kwnames[] = {
3213 (char *) "self",(char *) "bmp", NULL
3214 };
3215
3216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3218 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3219 if (arg2 == NULL) {
3220 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3221 }
3222 {
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 Py_INCREF(Py_None); resultobj = Py_None;
3230 return resultobj;
3231 fail:
3232 return NULL;
3233}
3234
3235
3236static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3237 PyObject *obj;
3238 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3239 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3240 Py_INCREF(obj);
3241 return Py_BuildValue((char *)"");
3242}
3243static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3244 PyObject *resultobj;
3245 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3246 int arg2 = (int) 0 ;
3247 wxIconLocation *result;
dae0faa6 3248 bool temp1 = False ;
d14a1e28
RD
3249 PyObject * obj0 = 0 ;
3250 char *kwnames[] = {
3251 (char *) "filename",(char *) "num", NULL
3252 };
3253
3254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail;
3255 if (obj0) {
dae0faa6
RD
3256 {
3257 arg1 = wxString_in_helper(obj0);
3258 if (arg1 == NULL) SWIG_fail;
3259 temp1 = True;
3260 }
d14a1e28
RD
3261 }
3262 {
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3265
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
dae0faa6
RD
3270 {
3271 if (temp1)
3272 delete arg1;
3273 }
d14a1e28
RD
3274 return resultobj;
3275 fail:
dae0faa6
RD
3276 {
3277 if (temp1)
3278 delete arg1;
3279 }
d14a1e28
RD
3280 return NULL;
3281}
3282
3283
3284static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3285 PyObject *resultobj;
3286 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3287 PyObject * obj0 = 0 ;
3288 char *kwnames[] = {
3289 (char *) "self", NULL
3290 };
3291
3292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3294 {
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 delete arg1;
3297
3298 wxPyEndAllowThreads(__tstate);
3299 if (PyErr_Occurred()) SWIG_fail;
3300 }
3301 Py_INCREF(Py_None); resultobj = Py_None;
3302 return resultobj;
3303 fail:
3304 return NULL;
3305}
3306
3307
3308static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3309 PyObject *resultobj;
3310 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3311 bool result;
3312 PyObject * obj0 = 0 ;
3313 char *kwnames[] = {
3314 (char *) "self", NULL
3315 };
3316
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 resultobj = PyInt_FromLong((long)result);
3327 return resultobj;
3328 fail:
3329 return NULL;
3330}
3331
3332
3333static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3334 PyObject *resultobj;
3335 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3336 wxString *arg2 = 0 ;
423f194a 3337 bool temp2 = False ;
d14a1e28
RD
3338 PyObject * obj0 = 0 ;
3339 PyObject * obj1 = 0 ;
3340 char *kwnames[] = {
3341 (char *) "self",(char *) "filename", NULL
3342 };
3343
3344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3346 {
3347 arg2 = wxString_in_helper(obj1);
3348 if (arg2 == NULL) SWIG_fail;
423f194a 3349 temp2 = True;
d14a1e28
RD
3350 }
3351 {
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 (arg1)->SetFileName((wxString const &)*arg2);
3354
3355 wxPyEndAllowThreads(__tstate);
3356 if (PyErr_Occurred()) SWIG_fail;
3357 }
3358 Py_INCREF(Py_None); resultobj = Py_None;
3359 {
3360 if (temp2)
3361 delete arg2;
3362 }
3363 return resultobj;
3364 fail:
3365 {
3366 if (temp2)
3367 delete arg2;
3368 }
3369 return NULL;
3370}
3371
3372
3373static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3374 PyObject *resultobj;
3375 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3376 wxString *result;
3377 PyObject * obj0 = 0 ;
3378 char *kwnames[] = {
3379 (char *) "self", NULL
3380 };
3381
3382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3384 {
3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
3386 {
3387 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3388 result = (wxString *) &_result_ref;
3389 }
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
0f774bef
RD
3394 {
3395#if wxUSE_UNICODE
3396 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3397#else
3398 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3399#endif
3400 }
d14a1e28
RD
3401 return resultobj;
3402 fail:
3403 return NULL;
3404}
3405
3406
3407static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3408 PyObject *resultobj;
3409 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3410 int arg2 ;
3411 PyObject * obj0 = 0 ;
3412 char *kwnames[] = {
3413 (char *) "self",(char *) "num", NULL
3414 };
3415
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail;
3417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3418 {
3419 PyThreadState* __tstate = wxPyBeginAllowThreads();
3420 wxIconLocation_SetIndex(arg1,arg2);
3421
3422 wxPyEndAllowThreads(__tstate);
3423 if (PyErr_Occurred()) SWIG_fail;
3424 }
3425 Py_INCREF(Py_None); resultobj = Py_None;
3426 return resultobj;
3427 fail:
3428 return NULL;
3429}
3430
3431
3432static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3433 PyObject *resultobj;
3434 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3435 int result;
3436 PyObject * obj0 = 0 ;
3437 char *kwnames[] = {
3438 (char *) "self", NULL
3439 };
3440
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3443 {
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 result = (int)wxIconLocation_GetIndex(arg1);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 }
3450 resultobj = PyInt_FromLong((long)result);
3451 return resultobj;
3452 fail:
3453 return NULL;
3454}
3455
3456
3457static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3458 PyObject *obj;
3459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3460 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3461 Py_INCREF(obj);
3462 return Py_BuildValue((char *)"");
3463}
3464static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj;
3466 wxIconBundle *result;
3467 char *kwnames[] = {
3468 NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 result = (wxIconBundle *)new wxIconBundle();
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3480 return resultobj;
3481 fail:
3482 return NULL;
3483}
3484
3485
3486static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxString *arg1 = 0 ;
3489 long arg2 ;
3490 wxIconBundle *result;
423f194a 3491 bool temp1 = False ;
d14a1e28
RD
3492 PyObject * obj0 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "file",(char *) "type", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail;
3498 {
3499 arg1 = wxString_in_helper(obj0);
3500 if (arg1 == NULL) SWIG_fail;
423f194a 3501 temp1 = True;
d14a1e28
RD
3502 }
3503 {
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3506
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3511 {
3512 if (temp1)
3513 delete arg1;
3514 }
3515 return resultobj;
3516 fail:
3517 {
3518 if (temp1)
3519 delete arg1;
3520 }
3521 return NULL;
3522}
3523
3524
3525static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 wxIcon *arg1 = 0 ;
3528 wxIconBundle *result;
3529 PyObject * obj0 = 0 ;
3530 char *kwnames[] = {
3531 (char *) "icon", NULL
3532 };
3533
3534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3536 if (arg1 == NULL) {
3537 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3538 }
3539 {
3540 PyThreadState* __tstate = wxPyBeginAllowThreads();
3541 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3542
3543 wxPyEndAllowThreads(__tstate);
3544 if (PyErr_Occurred()) SWIG_fail;
3545 }
3546 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3547 return resultobj;
3548 fail:
3549 return NULL;
3550}
3551
3552
3553static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3554 PyObject *resultobj;
3555 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3556 PyObject * obj0 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "self", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 delete arg1;
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 Py_INCREF(Py_None); resultobj = Py_None;
3571 return resultobj;
3572 fail:
3573 return NULL;
3574}
3575
3576
3577static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3578 PyObject *resultobj;
3579 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3580 wxIcon *arg2 = 0 ;
3581 PyObject * obj0 = 0 ;
3582 PyObject * obj1 = 0 ;
3583 char *kwnames[] = {
3584 (char *) "self",(char *) "icon", NULL
3585 };
3586
3587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3589 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3590 if (arg2 == NULL) {
3591 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3592 }
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 (arg1)->AddIcon((wxIcon const &)*arg2);
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 Py_INCREF(Py_None); resultobj = Py_None;
3601 return resultobj;
3602 fail:
3603 return NULL;
3604}
3605
3606
3607static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3608 PyObject *resultobj;
3609 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3610 wxString *arg2 = 0 ;
3611 long arg3 ;
423f194a 3612 bool temp2 = False ;
d14a1e28
RD
3613 PyObject * obj0 = 0 ;
3614 PyObject * obj1 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "self",(char *) "file",(char *) "type", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail;
3620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3621 {
3622 arg2 = wxString_in_helper(obj1);
3623 if (arg2 == NULL) SWIG_fail;
423f194a 3624 temp2 = True;
d14a1e28
RD
3625 }
3626 {
3627 PyThreadState* __tstate = wxPyBeginAllowThreads();
3628 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3629
3630 wxPyEndAllowThreads(__tstate);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 Py_INCREF(Py_None); resultobj = Py_None;
3634 {
3635 if (temp2)
3636 delete arg2;
3637 }
3638 return resultobj;
3639 fail:
3640 {
3641 if (temp2)
3642 delete arg2;
3643 }
3644 return NULL;
3645}
3646
3647
3648static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj;
3650 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3651 wxSize *arg2 = 0 ;
3652 wxIcon *result;
3653 wxSize temp2 ;
3654 PyObject * obj0 = 0 ;
3655 PyObject * obj1 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "self",(char *) "size", NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
3661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3662 {
3663 arg2 = &temp2;
3664 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3665 }
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 {
3669 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
3670 result = (wxIcon *) &_result_ref;
3671 }
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
3677 return resultobj;
3678 fail:
3679 return NULL;
3680}
3681
3682
3683static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
3684 PyObject *obj;
3685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3686 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
3687 Py_INCREF(obj);
3688 return Py_BuildValue((char *)"");
3689}
3690static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3691 PyObject *resultobj;
3692 wxString *arg1 = (wxString *) 0 ;
3693 long arg2 ;
3694 int arg3 = (int) 0 ;
3695 int arg4 = (int) 0 ;
3696 wxCursor *result;
dae0faa6 3697 bool temp1 = False ;
d14a1e28
RD
3698 PyObject * obj0 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
dae0faa6
RD
3704 {
3705 arg1 = wxString_in_helper(obj0);
3706 if (arg1 == NULL) SWIG_fail;
3707 temp1 = True;
3708 }
d14a1e28
RD
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
3712
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 }
3716 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
dae0faa6
RD
3717 {
3718 if (temp1)
3719 delete arg1;
3720 }
d14a1e28
RD
3721 return resultobj;
3722 fail:
dae0faa6
RD
3723 {
3724 if (temp1)
3725 delete arg1;
3726 }
d14a1e28
RD
3727 return NULL;
3728}
3729
3730
3731static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject *resultobj;
3733 wxCursor *arg1 = (wxCursor *) 0 ;
3734 PyObject * obj0 = 0 ;
3735 char *kwnames[] = {
3736 (char *) "self", NULL
3737 };
3738
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
3740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3741 {
3742 PyThreadState* __tstate = wxPyBeginAllowThreads();
3743 delete arg1;
3744
3745 wxPyEndAllowThreads(__tstate);
3746 if (PyErr_Occurred()) SWIG_fail;
3747 }
3748 Py_INCREF(Py_None); resultobj = Py_None;
3749 return resultobj;
3750 fail:
3751 return NULL;
3752}
3753
3754
3755static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3756 PyObject *resultobj;
3757 int arg1 ;
3758 wxCursor *result;
3759 char *kwnames[] = {
3760 (char *) "id", NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 result = (wxCursor *)new wxCursor(arg1);
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3772 return resultobj;
3773 fail:
3774 return NULL;
3775}
3776
3777
3778static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 wxImage *arg1 = 0 ;
3781 wxCursor *result;
3782 PyObject * obj0 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "image", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3789 if (arg1 == NULL) {
3790 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3791 }
3792 {
3793 PyThreadState* __tstate = wxPyBeginAllowThreads();
3794 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
3795
3796 wxPyEndAllowThreads(__tstate);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
3799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3800 return resultobj;
3801 fail:
3802 return NULL;
3803}
3804
3805
3806static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject *resultobj;
3808 PyObject *arg1 = (PyObject *) 0 ;
3809 int arg2 ;
3810 int arg3 ;
3811 int arg4 = (int) -1 ;
3812 int arg5 = (int) -1 ;
3813 PyObject *arg6 = (PyObject *) 0 ;
3814 wxCursor *result;
3815 PyObject * obj0 = 0 ;
3816 PyObject * obj5 = 0 ;
3817 char *kwnames[] = {
3818 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
3819 };
3820
3821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
3822 arg1 = obj0;
3823 if (obj5) {
3824 arg6 = obj5;
3825 }
3826 {
3827 PyThreadState* __tstate = wxPyBeginAllowThreads();
3828 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
3829
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
3834 return resultobj;
3835 fail:
3836 return NULL;
3837}
3838
3839
3840static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3841 PyObject *resultobj;
3842 wxCursor *arg1 = (wxCursor *) 0 ;
3843 bool result;
3844 PyObject * obj0 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "self", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
3850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (bool)(arg1)->Ok();
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 resultobj = PyInt_FromLong((long)result);
3859 return resultobj;
3860 fail:
3861 return NULL;
3862}
3863
3864
3865static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
3866 PyObject *obj;
3867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3868 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
3869 Py_INCREF(obj);
3870 return Py_BuildValue((char *)"");
3871}
3872static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3873 PyObject *resultobj;
423f194a
RD
3874 int arg1 = (int) 0 ;
3875 int arg2 = (int) 0 ;
3876 int arg3 = (int) 0 ;
3877 int arg4 = (int) 0 ;
d14a1e28
RD
3878 wxRegion *result;
3879 char *kwnames[] = {
3880 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3881 };
3882
3883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
3887
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3892 return resultobj;
3893 fail:
3894 return NULL;
3895}
3896
3897
3898static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3899 PyObject *resultobj;
3900 wxBitmap *arg1 = 0 ;
3901 wxColour const &arg2_defvalue = wxNullColour ;
3902 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3903 int arg3 = (int) 0 ;
3904 wxRegion *result;
3905 wxColour temp2 ;
3906 PyObject * obj0 = 0 ;
3907 PyObject * obj1 = 0 ;
3908 char *kwnames[] = {
3909 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
3910 };
3911
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail;
3913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3914 if (arg1 == NULL) {
3915 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3916 }
3917 if (obj1) {
3918 {
3919 arg2 = &temp2;
3920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3921 }
3922 }
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3931 return resultobj;
3932 fail:
3933 return NULL;
3934}
3935
3936
3937static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 int arg1 ;
3940 wxPoint *arg2 = (wxPoint *) 0 ;
3941 int arg3 = (int) wxWINDING_RULE ;
3942 wxRegion *result;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "points",(char *) "fillStyle", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail;
3949 {
3950 arg2 = wxPoint_LIST_helper(obj0, &arg1);
3951 if (arg2 == NULL) SWIG_fail;
3952 }
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
3961 {
3962 if (arg2) delete [] arg2;
3963 }
3964 return resultobj;
3965 fail:
3966 {
3967 if (arg2) delete [] arg2;
3968 }
3969 return NULL;
3970}
3971
3972
3973static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj;
3975 wxRegion *arg1 = (wxRegion *) 0 ;
3976 PyObject * obj0 = 0 ;
3977 char *kwnames[] = {
3978 (char *) "self", NULL
3979 };
3980
3981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
3982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 delete arg1;
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
3990 Py_INCREF(Py_None); resultobj = Py_None;
3991 return resultobj;
3992 fail:
3993 return NULL;
3994}
3995
3996
3997static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxRegion *arg1 = (wxRegion *) 0 ;
4000 PyObject * obj0 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 (arg1)->Clear();
4010
4011 wxPyEndAllowThreads(__tstate);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 Py_INCREF(Py_None); resultobj = Py_None;
4015 return resultobj;
4016 fail:
4017 return NULL;
4018}
4019
4020
4021static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4022 PyObject *resultobj;
4023 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4024 int arg2 ;
4025 int arg3 ;
d14a1e28
RD
4026 int result;
4027 PyObject * obj0 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "self",(char *) "x",(char *) "y", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail;
4033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)(arg1)->Contains(arg2,arg3);
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = PyInt_FromLong((long)result);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045}
4046
4047
4048static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxRegion *arg1 = (wxRegion *) 0 ;
4051 wxPoint *arg2 = 0 ;
4052 int result;
4053 wxPoint temp2 ;
4054 PyObject * obj0 = 0 ;
4055 PyObject * obj1 = 0 ;
4056 char *kwnames[] = {
4057 (char *) "self",(char *) "pt", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4062 {
4063 arg2 = &temp2;
4064 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4065 }
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4069
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) SWIG_fail;
4072 }
4073 resultobj = PyInt_FromLong((long)result);
4074 return resultobj;
4075 fail:
4076 return NULL;
4077}
4078
4079
4080static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4081 PyObject *resultobj;
4082 wxRegion *arg1 = (wxRegion *) 0 ;
4083 wxRect *arg2 = 0 ;
4084 int result;
4085 wxRect temp2 ;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj1 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "self",(char *) "rect", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4094 {
4095 arg2 = &temp2;
4096 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4097 }
4098 {
4099 PyThreadState* __tstate = wxPyBeginAllowThreads();
4100 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4101
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 resultobj = PyInt_FromLong((long)result);
4106 return resultobj;
4107 fail:
4108 return NULL;
4109}
4110
4111
4112static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4115 int arg2 ;
4116 int arg3 ;
4117 int arg4 ;
4118 int arg5 ;
d14a1e28
RD
4119 int result;
4120 PyObject * obj0 = 0 ;
4121 char *kwnames[] = {
4122 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4123 };
4124
4125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 resultobj = PyInt_FromLong((long)result);
4135 return resultobj;
4136 fail:
4137 return NULL;
4138}
4139
4140
4141static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxRegion *arg1 = (wxRegion *) 0 ;
4144 wxRect result;
4145 PyObject * obj0 = 0 ;
4146 char *kwnames[] = {
4147 (char *) "self", NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = (arg1)->GetBox();
4155
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 {
4160 wxRect * resultptr;
4161 resultptr = new wxRect((wxRect &) result);
4162 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4163 }
4164 return resultobj;
4165 fail:
4166 return NULL;
4167}
4168
4169
4170static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4173 int arg2 ;
4174 int arg3 ;
4175 int arg4 ;
4176 int arg5 ;
d14a1e28
RD
4177 bool result;
4178 PyObject * obj0 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4188
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = PyInt_FromLong((long)result);
4193 return resultobj;
4194 fail:
4195 return NULL;
4196}
4197
4198
4199static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj;
4201 wxRegion *arg1 = (wxRegion *) 0 ;
4202 wxRect *arg2 = 0 ;
4203 bool result;
4204 wxRect temp2 ;
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 char *kwnames[] = {
4208 (char *) "self",(char *) "rect", NULL
4209 };
4210
4211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4213 {
4214 arg2 = &temp2;
4215 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4216 }
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 resultobj = PyInt_FromLong((long)result);
4225 return resultobj;
4226 fail:
4227 return NULL;
4228}
4229
4230
4231static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj;
4233 wxRegion *arg1 = (wxRegion *) 0 ;
4234 wxRegion *arg2 = 0 ;
4235 bool result;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self",(char *) "region", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4244 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4245 if (arg2 == NULL) {
4246 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4247 }
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = PyInt_FromLong((long)result);
4256 return resultobj;
4257 fail:
4258 return NULL;
4259}
4260
4261
4262static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj;
4264 wxRegion *arg1 = (wxRegion *) 0 ;
4265 bool result;
4266 PyObject * obj0 = 0 ;
4267 char *kwnames[] = {
4268 (char *) "self", NULL
4269 };
4270
4271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (bool)(arg1)->IsEmpty();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = PyInt_FromLong((long)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284}
4285
4286
4287static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4290 int arg2 ;
4291 int arg3 ;
4292 int arg4 ;
4293 int arg5 ;
d14a1e28
RD
4294 bool result;
4295 PyObject * obj0 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4305
4306 wxPyEndAllowThreads(__tstate);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 resultobj = PyInt_FromLong((long)result);
4310 return resultobj;
4311 fail:
4312 return NULL;
4313}
4314
4315
4316static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj;
4318 wxRegion *arg1 = (wxRegion *) 0 ;
4319 wxRect *arg2 = 0 ;
4320 bool result;
4321 wxRect temp2 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self",(char *) "rect", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4330 {
4331 arg2 = &temp2;
4332 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4333 }
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
4336 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4337
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = PyInt_FromLong((long)result);
4342 return resultobj;
4343 fail:
4344 return NULL;
4345}
4346
4347
4348static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj;
4350 wxRegion *arg1 = (wxRegion *) 0 ;
4351 wxRegion *arg2 = 0 ;
4352 bool result;
4353 PyObject * obj0 = 0 ;
4354 PyObject * obj1 = 0 ;
4355 char *kwnames[] = {
4356 (char *) "self",(char *) "region", NULL
4357 };
4358
4359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4361 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4362 if (arg2 == NULL) {
4363 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4364 }
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4368
4369 wxPyEndAllowThreads(__tstate);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 resultobj = PyInt_FromLong((long)result);
4373 return resultobj;
4374 fail:
4375 return NULL;
4376}
4377
4378
4379static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4380 PyObject *resultobj;
4381 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4382 int arg2 ;
4383 int arg3 ;
4384 int arg4 ;
4385 int arg5 ;
d14a1e28
RD
4386 bool result;
4387 PyObject * obj0 = 0 ;
4388 char *kwnames[] = {
4389 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4390 };
4391
4392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4394 {
4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
4396 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4397
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 resultobj = PyInt_FromLong((long)result);
4402 return resultobj;
4403 fail:
4404 return NULL;
4405}
4406
4407
4408static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj;
4410 wxRegion *arg1 = (wxRegion *) 0 ;
4411 wxRect *arg2 = 0 ;
4412 bool result;
4413 wxRect temp2 ;
4414 PyObject * obj0 = 0 ;
4415 PyObject * obj1 = 0 ;
4416 char *kwnames[] = {
4417 (char *) "self",(char *) "rect", NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4422 {
4423 arg2 = &temp2;
4424 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = PyInt_FromLong((long)result);
4434 return resultobj;
4435 fail:
4436 return NULL;
4437}
4438
4439
4440static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj;
4442 wxRegion *arg1 = (wxRegion *) 0 ;
4443 wxRegion *arg2 = 0 ;
4444 bool result;
4445 PyObject * obj0 = 0 ;
4446 PyObject * obj1 = 0 ;
4447 char *kwnames[] = {
4448 (char *) "self",(char *) "region", NULL
4449 };
4450
4451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4453 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4454 if (arg2 == NULL) {
4455 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4456 }
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = PyInt_FromLong((long)result);
4465 return resultobj;
4466 fail:
4467 return NULL;
4468}
4469
4470
4471static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj;
4473 wxRegion *arg1 = (wxRegion *) 0 ;
423f194a
RD
4474 int arg2 ;
4475 int arg3 ;
4476 int arg4 ;
4477 int arg5 ;
d14a1e28
RD
4478 bool result;
4479 PyObject * obj0 = 0 ;
4480 char *kwnames[] = {
4481 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4482 };
4483
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
4485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 resultobj = PyInt_FromLong((long)result);
4494 return resultobj;
4495 fail:
4496 return NULL;
4497}
4498
4499
4500static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj;
4502 wxRegion *arg1 = (wxRegion *) 0 ;
4503 wxRect *arg2 = 0 ;
4504 bool result;
4505 wxRect temp2 ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char *kwnames[] = {
4509 (char *) "self",(char *) "rect", NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
4513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4514 {
4515 arg2 = &temp2;
4516 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4517 }
4518 {
4519 PyThreadState* __tstate = wxPyBeginAllowThreads();
4520 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
4521
4522 wxPyEndAllowThreads(__tstate);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 }
4525 resultobj = PyInt_FromLong((long)result);
4526 return resultobj;
4527 fail:
4528 return NULL;
4529}
4530
4531
4532static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4533 PyObject *resultobj;
4534 wxRegion *arg1 = (wxRegion *) 0 ;
4535 wxRegion *arg2 = 0 ;
4536 bool result;
4537 PyObject * obj0 = 0 ;
4538 PyObject * obj1 = 0 ;
4539 char *kwnames[] = {
4540 (char *) "self",(char *) "region", NULL
4541 };
4542
4543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
4544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4545 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4546 if (arg2 == NULL) {
4547 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
4552
4553 wxPyEndAllowThreads(__tstate);
4554 if (PyErr_Occurred()) SWIG_fail;
4555 }
4556 resultobj = PyInt_FromLong((long)result);
4557 return resultobj;
4558 fail:
4559 return NULL;
4560}
4561
4562
4563static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4564 PyObject *resultobj;
4565 wxRegion *arg1 = (wxRegion *) 0 ;
4566 SwigValueWrapper< wxBitmap > result;
4567 PyObject * obj0 = 0 ;
4568 char *kwnames[] = {
4569 (char *) "self", NULL
4570 };
4571
4572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
4573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 result = (arg1)->ConvertToBitmap();
4577
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 {
4582 wxBitmap * resultptr;
4583 resultptr = new wxBitmap((wxBitmap &) result);
4584 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
4585 }
4586 return resultobj;
4587 fail:
4588 return NULL;
4589}
4590
4591
4592static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4593 PyObject *resultobj;
4594 wxRegion *arg1 = (wxRegion *) 0 ;
4595 wxBitmap *arg2 = 0 ;
4596 wxColour const &arg3_defvalue = wxNullColour ;
4597 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
4598 int arg4 = (int) 0 ;
4599 bool result;
4600 wxColour temp3 ;
4601 PyObject * obj0 = 0 ;
4602 PyObject * obj1 = 0 ;
4603 PyObject * obj2 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
4609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4610 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4611 if (arg2 == NULL) {
4612 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4613 }
4614 if (obj2) {
4615 {
4616 arg3 = &temp3;
4617 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
4618 }
4619 }
4620 {
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
4623
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = PyInt_FromLong((long)result);
4628 return resultobj;
4629 fail:
4630 return NULL;
4631}
4632
4633
4634static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
4635 PyObject *obj;
4636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4637 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
4638 Py_INCREF(obj);
4639 return Py_BuildValue((char *)"");
4640}
4641static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj;
4643 wxRegion *arg1 = 0 ;
4644 wxRegionIterator *result;
4645 PyObject * obj0 = 0 ;
4646 char *kwnames[] = {
4647 (char *) "region", NULL
4648 };
4649
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
4651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4652 if (arg1 == NULL) {
4653 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4654 }
4655 {
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
4658
4659 wxPyEndAllowThreads(__tstate);
4660 if (PyErr_Occurred()) SWIG_fail;
4661 }
4662 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
4663 return resultobj;
4664 fail:
4665 return NULL;
4666}
4667
4668
4669static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
4670 PyObject *resultobj;
4671 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4672 PyObject * obj0 = 0 ;
4673 char *kwnames[] = {
4674 (char *) "self", NULL
4675 };
4676
4677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
4678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4679 {
4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
4681 delete arg1;
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 Py_INCREF(Py_None); resultobj = Py_None;
4687 return resultobj;
4688 fail:
4689 return NULL;
4690}
4691
4692
4693static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4696 int result;
d14a1e28
RD
4697 PyObject * obj0 = 0 ;
4698 char *kwnames[] = {
4699 (char *) "self", NULL
4700 };
4701
4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
4703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4704 {
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4706 result = (int)(arg1)->GetX();
d14a1e28
RD
4707
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 resultobj = PyInt_FromLong((long)result);
4712 return resultobj;
4713 fail:
4714 return NULL;
4715}
4716
4717
4718static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj;
4720 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4721 int result;
d14a1e28
RD
4722 PyObject * obj0 = 0 ;
4723 char *kwnames[] = {
4724 (char *) "self", NULL
4725 };
4726
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
4728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4729 {
4730 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4731 result = (int)(arg1)->GetY();
d14a1e28
RD
4732
4733 wxPyEndAllowThreads(__tstate);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 resultobj = PyInt_FromLong((long)result);
4737 return resultobj;
4738 fail:
4739 return NULL;
4740}
4741
4742
4743static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
4744 PyObject *resultobj;
4745 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4746 int result;
d14a1e28
RD
4747 PyObject * obj0 = 0 ;
4748 char *kwnames[] = {
4749 (char *) "self", NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
4753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4756 result = (int)(arg1)->GetW();
d14a1e28
RD
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = PyInt_FromLong((long)result);
4762 return resultobj;
4763 fail:
4764 return NULL;
4765}
4766
4767
4768static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj;
4770 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4771 int result;
d14a1e28
RD
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4781 result = (int)(arg1)->GetWidth();
d14a1e28
RD
4782
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 resultobj = PyInt_FromLong((long)result);
4787 return resultobj;
4788 fail:
4789 return NULL;
4790}
4791
4792
4793static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
4794 PyObject *resultobj;
4795 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4796 int result;
d14a1e28
RD
4797 PyObject * obj0 = 0 ;
4798 char *kwnames[] = {
4799 (char *) "self", NULL
4800 };
4801
4802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
4803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4806 result = (int)(arg1)->GetH();
d14a1e28
RD
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = PyInt_FromLong((long)result);
4812 return resultobj;
4813 fail:
4814 return NULL;
4815}
4816
4817
4818static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
423f194a 4821 int result;
d14a1e28
RD
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "self", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
4828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4831 result = (int)(arg1)->GetHeight();
d14a1e28
RD
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = PyInt_FromLong((long)result);
4837 return resultobj;
4838 fail:
4839 return NULL;
4840}
4841
4842
4843static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4846 wxRect result;
4847 PyObject * obj0 = 0 ;
4848 char *kwnames[] = {
4849 (char *) "self", NULL
4850 };
4851
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (arg1)->GetRect();
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 {
4862 wxRect * resultptr;
4863 resultptr = new wxRect((wxRect &) result);
4864 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4865 }
4866 return resultobj;
4867 fail:
4868 return NULL;
4869}
4870
4871
4872static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
4873 PyObject *resultobj;
4874 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4875 bool result;
4876 PyObject * obj0 = 0 ;
4877 char *kwnames[] = {
4878 (char *) "self", NULL
4879 };
4880
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
4882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (bool)(arg1)->HaveRects();
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = PyInt_FromLong((long)result);
4891 return resultobj;
4892 fail:
4893 return NULL;
4894}
4895
4896
4897static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj;
4899 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4900 PyObject * obj0 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
4906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 (arg1)->Reset();
4910
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 Py_INCREF(Py_None); resultobj = Py_None;
4915 return resultobj;
4916 fail:
4917 return NULL;
4918}
4919
4920
4921static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj;
4923 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4924 PyObject * obj0 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4931 {
4932 PyThreadState* __tstate = wxPyBeginAllowThreads();
4933 wxRegionIterator_Next(arg1);
4934
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 Py_INCREF(Py_None); resultobj = Py_None;
4939 return resultobj;
4940 fail:
4941 return NULL;
4942}
4943
4944
4945static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
4946 PyObject *resultobj;
4947 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
4948 bool result;
4949 PyObject * obj0 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)wxRegionIterator___nonzero__(arg1);
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = PyInt_FromLong((long)result);
4964 return resultobj;
4965 fail:
4966 return NULL;
4967}
4968
4969
4970static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
4971 PyObject *obj;
4972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4973 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
4974 Py_INCREF(obj);
4975 return Py_BuildValue((char *)"");
4976}
4977static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj;
4979 wxNativeFontInfo *result;
4980 char *kwnames[] = {
4981 NULL
4982 };
4983
4984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
4985 {
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 result = (wxNativeFontInfo *)new wxNativeFontInfo();
4988
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
4993 return resultobj;
4994 fail:
4995 return NULL;
4996}
4997
4998
4999static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5002 PyObject * obj0 = 0 ;
5003 char *kwnames[] = {
5004 (char *) "self", NULL
5005 };
5006
5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 delete arg1;
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 Py_INCREF(Py_None); resultobj = Py_None;
5017 return resultobj;
5018 fail:
5019 return NULL;
5020}
5021
5022
5023static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5026 PyObject * obj0 = 0 ;
5027 char *kwnames[] = {
5028 (char *) "self", NULL
5029 };
5030
5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 (arg1)->Init();
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 Py_INCREF(Py_None); resultobj = Py_None;
5041 return resultobj;
5042 fail:
5043 return NULL;
5044}
5045
5046
5047static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject *resultobj;
5049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5050 wxFont *arg2 = 0 ;
5051 PyObject * obj0 = 0 ;
5052 PyObject * obj1 = 0 ;
5053 char *kwnames[] = {
5054 (char *) "self",(char *) "font", NULL
5055 };
5056
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5059 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5060 if (arg2 == NULL) {
5061 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5062 }
5063 {
5064 PyThreadState* __tstate = wxPyBeginAllowThreads();
5065 (arg1)->InitFromFont((wxFont const &)*arg2);
5066
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 Py_INCREF(Py_None); resultobj = Py_None;
5071 return resultobj;
5072 fail:
5073 return NULL;
5074}
5075
5076
5077static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj;
5079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5080 int result;
5081 PyObject * obj0 = 0 ;
5082 char *kwnames[] = {
5083 (char *) "self", NULL
5084 };
5085
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = PyInt_FromLong((long)result);
5096 return resultobj;
5097 fail:
5098 return NULL;
5099}
5100
5101
5102static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5103 PyObject *resultobj;
5104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5105 int result;
5106 PyObject * obj0 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5116
5117 wxPyEndAllowThreads(__tstate);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 resultobj = PyInt_FromLong((long)result);
5121 return resultobj;
5122 fail:
5123 return NULL;
5124}
5125
5126
5127static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5128 PyObject *resultobj;
5129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5130 int result;
5131 PyObject * obj0 = 0 ;
5132 char *kwnames[] = {
5133 (char *) "self", NULL
5134 };
5135
5136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = PyInt_FromLong((long)result);
5146 return resultobj;
5147 fail:
5148 return NULL;
5149}
5150
5151
5152static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5153 PyObject *resultobj;
5154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5155 bool result;
5156 PyObject * obj0 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = PyInt_FromLong((long)result);
5171 return resultobj;
5172 fail:
5173 return NULL;
5174}
5175
5176
5177static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
5179 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5180 wxString result;
5181 PyObject * obj0 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5191
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 {
5196#if wxUSE_UNICODE
5197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5198#else
5199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5200#endif
5201 }
5202 return resultobj;
5203 fail:
5204 return NULL;
5205}
5206
5207
5208static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5209 PyObject *resultobj;
5210 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5211 int result;
5212 PyObject * obj0 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "self", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5219 {
5220 PyThreadState* __tstate = wxPyBeginAllowThreads();
5221 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5222
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 resultobj = PyInt_FromLong((long)result);
5227 return resultobj;
5228 fail:
5229 return NULL;
5230}
5231
5232
5233static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5234 PyObject *resultobj;
5235 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5236 int result;
5237 PyObject * obj0 = 0 ;
5238 char *kwnames[] = {
5239 (char *) "self", NULL
5240 };
5241
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5244 {
5245 PyThreadState* __tstate = wxPyBeginAllowThreads();
5246 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5247
5248 wxPyEndAllowThreads(__tstate);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 }
5251 resultobj = PyInt_FromLong((long)result);
5252 return resultobj;
5253 fail:
5254 return NULL;
5255}
5256
5257
5258static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5259 PyObject *resultobj;
5260 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5261 int arg2 ;
5262 PyObject * obj0 = 0 ;
5263 char *kwnames[] = {
5264 (char *) "self",(char *) "pointsize", NULL
5265 };
5266
5267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
5268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 (arg1)->SetPointSize(arg2);
5272
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 Py_INCREF(Py_None); resultobj = Py_None;
5277 return resultobj;
5278 fail:
5279 return NULL;
5280}
5281
5282
5283static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj;
5285 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5286 int arg2 ;
5287 PyObject * obj0 = 0 ;
5288 char *kwnames[] = {
5289 (char *) "self",(char *) "style", NULL
5290 };
5291
5292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail;
5293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 (arg1)->SetStyle((wxFontStyle )arg2);
5297
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 Py_INCREF(Py_None); resultobj = Py_None;
5302 return resultobj;
5303 fail:
5304 return NULL;
5305}
5306
5307
5308static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj;
5310 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5311 int arg2 ;
5312 PyObject * obj0 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "weight", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 (arg1)->SetWeight((wxFontWeight )arg2);
5322
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 }
5326 Py_INCREF(Py_None); resultobj = Py_None;
5327 return resultobj;
5328 fail:
5329 return NULL;
5330}
5331
5332
5333static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5334 PyObject *resultobj;
5335 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5336 bool arg2 ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self",(char *) "underlined", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5345 arg2 = PyInt_AsLong(obj1) ? true : false;
5346 if (PyErr_Occurred()) SWIG_fail;
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->SetUnderlined(arg2);
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 Py_INCREF(Py_None); resultobj = Py_None;
5355 return resultobj;
5356 fail:
5357 return NULL;
5358}
5359
5360
5361static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5364 wxString arg2 ;
d14a1e28
RD
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 char *kwnames[] = {
5368 (char *) "self",(char *) "facename", NULL
5369 };
5370
5371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a
RD
5373 {
5374 wxString* sptr = wxString_in_helper(obj1);
5375 if (sptr == NULL) SWIG_fail;
5376 arg2 = *sptr;
5377 delete sptr;
5378 }
d14a1e28
RD
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 (arg1)->SetFaceName(arg2);
5382
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 Py_INCREF(Py_None); resultobj = Py_None;
5387 return resultobj;
5388 fail:
5389 return NULL;
5390}
5391
5392
5393static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5396 int arg2 ;
5397 PyObject * obj0 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self",(char *) "family", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail;
5403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 (arg1)->SetFamily((wxFontFamily )arg2);
5407
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 Py_INCREF(Py_None); resultobj = Py_None;
5412 return resultobj;
5413 fail:
5414 return NULL;
5415}
5416
5417
5418static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj;
5420 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5421 int arg2 ;
5422 PyObject * obj0 = 0 ;
5423 char *kwnames[] = {
5424 (char *) "self",(char *) "encoding", NULL
5425 };
5426
5427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
5428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 (arg1)->SetEncoding((wxFontEncoding )arg2);
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 Py_INCREF(Py_None); resultobj = Py_None;
5437 return resultobj;
5438 fail:
5439 return NULL;
5440}
5441
5442
5443static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5446 wxString *arg2 = 0 ;
5447 bool result;
423f194a 5448 bool temp2 = False ;
d14a1e28
RD
5449 PyObject * obj0 = 0 ;
5450 PyObject * obj1 = 0 ;
5451 char *kwnames[] = {
5452 (char *) "self",(char *) "s", NULL
5453 };
5454
5455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5457 {
5458 arg2 = wxString_in_helper(obj1);
5459 if (arg2 == NULL) SWIG_fail;
423f194a 5460 temp2 = True;
d14a1e28
RD
5461 }
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = PyInt_FromLong((long)result);
5470 {
5471 if (temp2)
5472 delete arg2;
5473 }
5474 return resultobj;
5475 fail:
5476 {
5477 if (temp2)
5478 delete arg2;
5479 }
5480 return NULL;
5481}
5482
5483
5484static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5487 wxString result;
5488 PyObject * obj0 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
5494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = ((wxNativeFontInfo const *)arg1)->ToString();
5498
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 {
5503#if wxUSE_UNICODE
5504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5505#else
5506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5507#endif
5508 }
5509 return resultobj;
5510 fail:
5511 return NULL;
5512}
5513
5514
5515static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj;
5517 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5518 wxString result;
5519 PyObject * obj0 = 0 ;
5520 char *kwnames[] = {
5521 (char *) "self", NULL
5522 };
5523
5524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
5525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5526 {
5527 PyThreadState* __tstate = wxPyBeginAllowThreads();
5528 result = wxNativeFontInfo___str__(arg1);
5529
5530 wxPyEndAllowThreads(__tstate);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 }
5533 {
5534#if wxUSE_UNICODE
5535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5536#else
5537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5538#endif
5539 }
5540 return resultobj;
5541 fail:
5542 return NULL;
5543}
5544
5545
5546static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj;
5548 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5549 wxString *arg2 = 0 ;
5550 bool result;
423f194a 5551 bool temp2 = False ;
d14a1e28
RD
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 char *kwnames[] = {
5555 (char *) "self",(char *) "s", NULL
5556 };
5557
5558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
5559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5560 {
5561 arg2 = wxString_in_helper(obj1);
5562 if (arg2 == NULL) SWIG_fail;
423f194a 5563 temp2 = True;
d14a1e28
RD
5564 }
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = PyInt_FromLong((long)result);
5573 {
5574 if (temp2)
5575 delete arg2;
5576 }
5577 return resultobj;
5578 fail:
5579 {
5580 if (temp2)
5581 delete arg2;
5582 }
5583 return NULL;
5584}
5585
5586
5587static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
5588 PyObject *resultobj;
5589 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5590 wxString result;
5591 PyObject * obj0 = 0 ;
5592 char *kwnames[] = {
5593 (char *) "self", NULL
5594 };
5595
5596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
5597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 {
5606#if wxUSE_UNICODE
5607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5608#else
5609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5610#endif
5611 }
5612 return resultobj;
5613 fail:
5614 return NULL;
5615}
5616
5617
5618static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
5619 PyObject *obj;
5620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5621 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
5622 Py_INCREF(obj);
5623 return Py_BuildValue((char *)"");
5624}
5625static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj;
5627 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
cbd72d4f 5628 wxString *arg2 = (wxString *) 0 ;
dae0faa6 5629 bool temp2 = False ;
d14a1e28
RD
5630 PyObject * obj0 = 0 ;
5631 PyObject * obj1 = 0 ;
5632 char *kwnames[] = {
5633 (char *) "self",(char *) "facename", NULL
5634 };
5635
5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
5637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
dae0faa6
RD
5638 {
5639 arg2 = wxString_in_helper(obj1);
5640 if (arg2 == NULL) SWIG_fail;
5641 temp2 = True;
5642 }
cbd72d4f 5643 if (arg1) (arg1)->facename = *arg2;
d14a1e28
RD
5644
5645 Py_INCREF(Py_None); resultobj = Py_None;
dae0faa6
RD
5646 {
5647 if (temp2)
5648 delete arg2;
5649 }
d14a1e28
RD
5650 return resultobj;
5651 fail:
dae0faa6
RD
5652 {
5653 if (temp2)
5654 delete arg2;
5655 }
d14a1e28
RD
5656 return NULL;
5657}
5658
5659
5660static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj;
5662 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
cbd72d4f 5663 wxString *result;
d14a1e28
RD
5664 PyObject * obj0 = 0 ;
5665 char *kwnames[] = {
5666 (char *) "self", NULL
5667 };
5668
5669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
5670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
cbd72d4f 5671 result = (wxString *)& ((arg1)->facename);
d14a1e28
RD
5672
5673 {
5674#if wxUSE_UNICODE
cbd72d4f 5675 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 5676#else
cbd72d4f 5677 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
5678#endif
5679 }
5680 return resultobj;
5681 fail:
5682 return NULL;
5683}
5684
5685
5686static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5689 int arg2 ;
5690 PyObject * obj0 = 0 ;
5691 char *kwnames[] = {
5692 (char *) "self",(char *) "encoding", NULL
5693 };
5694
5695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail;
5696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5697 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
5698
5699 Py_INCREF(Py_None); resultobj = Py_None;
5700 return resultobj;
5701 fail:
5702 return NULL;
5703}
5704
5705
5706static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5709 int result;
5710 PyObject * obj0 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "self", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5717 result = (int) ((arg1)->encoding);
5718
5719 resultobj = PyInt_FromLong((long)result);
5720 return resultobj;
5721 fail:
5722 return NULL;
5723}
5724
5725
5726static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5727 PyObject *resultobj;
5728 wxNativeEncodingInfo *result;
5729 char *kwnames[] = {
5730 NULL
5731 };
5732
5733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
5734 {
5735 PyThreadState* __tstate = wxPyBeginAllowThreads();
5736 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
5737
5738 wxPyEndAllowThreads(__tstate);
5739 if (PyErr_Occurred()) SWIG_fail;
5740 }
5741 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
5742 return resultobj;
5743 fail:
5744 return NULL;
5745}
5746
5747
5748static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj;
5750 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5751 PyObject * obj0 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
5757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5758 {
5759 PyThreadState* __tstate = wxPyBeginAllowThreads();
5760 delete arg1;
5761
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 Py_INCREF(Py_None); resultobj = Py_None;
5766 return resultobj;
5767 fail:
5768 return NULL;
5769}
5770
5771
5772static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj;
5774 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5775 wxString *arg2 = 0 ;
5776 bool result;
423f194a 5777 bool temp2 = False ;
d14a1e28
RD
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 char *kwnames[] = {
5781 (char *) "self",(char *) "s", NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
5785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5786 {
5787 arg2 = wxString_in_helper(obj1);
5788 if (arg2 == NULL) SWIG_fail;
423f194a 5789 temp2 = True;
d14a1e28
RD
5790 }
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 result = (bool)(arg1)->FromString((wxString const &)*arg2);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 resultobj = PyInt_FromLong((long)result);
5799 {
5800 if (temp2)
5801 delete arg2;
5802 }
5803 return resultobj;
5804 fail:
5805 {
5806 if (temp2)
5807 delete arg2;
5808 }
5809 return NULL;
5810}
5811
5812
5813static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
5816 wxString result;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 {
5832#if wxUSE_UNICODE
5833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5834#else
5835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5836#endif
5837 }
5838 return resultobj;
5839 fail:
5840 return NULL;
5841}
5842
5843
5844static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
5845 PyObject *obj;
5846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5847 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
5848 Py_INCREF(obj);
5849 return Py_BuildValue((char *)"");
5850}
5851static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj;
5853 int arg1 ;
5854 wxNativeEncodingInfo *result;
5855 char *kwnames[] = {
5856 (char *) "encoding", NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail;
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
5868 return resultobj;
5869 fail:
5870 return NULL;
5871}
5872
5873
5874static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxNativeEncodingInfo *arg1 = 0 ;
5877 bool result;
5878 PyObject * obj0 = 0 ;
5879 char *kwnames[] = {
5880 (char *) "info", NULL
5881 };
5882
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
5884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5885 if (arg1 == NULL) {
5886 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5887 }
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
5891
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = PyInt_FromLong((long)result);
5896 return resultobj;
5897 fail:
5898 return NULL;
5899}
5900
5901
5902static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5903 PyObject *resultobj;
5904 wxFontMapper *result;
5905 char *kwnames[] = {
5906 NULL
5907 };
5908
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = (wxFontMapper *)new wxFontMapper();
5913
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
5918 return resultobj;
5919 fail:
5920 return NULL;
5921}
5922
5923
5924static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
5925 PyObject *resultobj;
5926 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5927 PyObject * obj0 = 0 ;
5928 char *kwnames[] = {
5929 (char *) "self", NULL
5930 };
5931
5932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
5933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 delete arg1;
5937
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 Py_INCREF(Py_None); resultobj = Py_None;
5942 return resultobj;
5943 fail:
5944 return NULL;
5945}
5946
5947
5948static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5949 PyObject *resultobj;
5950 wxFontMapper *result;
5951 char *kwnames[] = {
5952 NULL
5953 };
5954
5955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
5956 {
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 result = (wxFontMapper *)wxFontMapper::Get();
5959
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5964 return resultobj;
5965 fail:
5966 return NULL;
5967}
5968
5969
5970static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5971 PyObject *resultobj;
5972 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5973 wxFontMapper *result;
5974 PyObject * obj0 = 0 ;
5975 char *kwnames[] = {
5976 (char *) "mapper", NULL
5977 };
5978
5979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
5980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (wxFontMapper *)wxFontMapper::Set(arg1);
5984
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
5989 return resultobj;
5990 fail:
5991 return NULL;
5992}
5993
5994
5995static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj;
5997 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
5998 wxString *arg2 = 0 ;
423f194a 5999 bool arg3 = (bool) True ;
d14a1e28 6000 int result;
423f194a 6001 bool temp2 = False ;
d14a1e28
RD
6002 PyObject * obj0 = 0 ;
6003 PyObject * obj1 = 0 ;
6004 PyObject * obj2 = 0 ;
6005 char *kwnames[] = {
6006 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6007 };
6008
6009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6011 {
6012 arg2 = wxString_in_helper(obj1);
6013 if (arg2 == NULL) SWIG_fail;
423f194a 6014 temp2 = True;
d14a1e28
RD
6015 }
6016 if (obj2) {
6017 arg3 = PyInt_AsLong(obj2) ? true : false;
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6023
6024 wxPyEndAllowThreads(__tstate);
6025 if (PyErr_Occurred()) SWIG_fail;
6026 }
6027 resultobj = PyInt_FromLong((long)result);
6028 {
6029 if (temp2)
6030 delete arg2;
6031 }
6032 return resultobj;
6033 fail:
6034 {
6035 if (temp2)
6036 delete arg2;
6037 }
6038 return NULL;
6039}
6040
6041
6042static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6043 PyObject *resultobj;
6044 size_t result;
6045 char *kwnames[] = {
6046 NULL
6047 };
6048
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6050 {
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6053
6054 wxPyEndAllowThreads(__tstate);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 }
6057 resultobj = PyInt_FromLong((long)result);
6058 return resultobj;
6059 fail:
6060 return NULL;
6061}
6062
6063
6064static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6065 PyObject *resultobj;
6066 size_t arg1 ;
6067 int result;
6068 PyObject * obj0 = 0 ;
6069 char *kwnames[] = {
6070 (char *) "n", NULL
6071 };
6072
6073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6074 arg1 = (size_t) PyInt_AsLong(obj0);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 result = (int)wxFontMapper::GetEncoding(arg1);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
6083 resultobj = PyInt_FromLong((long)result);
6084 return resultobj;
6085 fail:
6086 return NULL;
6087}
6088
6089
6090static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj;
6092 int arg1 ;
6093 wxString result;
6094 char *kwnames[] = {
6095 (char *) "encoding", NULL
6096 };
6097
6098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail;
6099 {
6100 PyThreadState* __tstate = wxPyBeginAllowThreads();
6101 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6102
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) SWIG_fail;
6105 }
6106 {
6107#if wxUSE_UNICODE
6108 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6109#else
6110 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6111#endif
6112 }
6113 return resultobj;
6114 fail:
6115 return NULL;
6116}
6117
6118
6119static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6120 PyObject *resultobj;
6121 int arg1 ;
6122 wxString result;
6123 char *kwnames[] = {
6124 (char *) "encoding", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail;
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6131
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 {
6136#if wxUSE_UNICODE
6137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6138#else
6139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6140#endif
6141 }
6142 return resultobj;
6143 fail:
6144 return NULL;
6145}
6146
6147
6148static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj;
6150 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6151 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 char *kwnames[] = {
6155 (char *) "self",(char *) "config", NULL
6156 };
6157
6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6160 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 (arg1)->SetConfig(arg2);
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 Py_INCREF(Py_None); resultobj = Py_None;
6169 return resultobj;
6170 fail:
6171 return NULL;
6172}
6173
6174
6175static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6176 PyObject *resultobj;
6177 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6178 wxString *arg2 = 0 ;
423f194a 6179 bool temp2 = False ;
d14a1e28
RD
6180 PyObject * obj0 = 0 ;
6181 PyObject * obj1 = 0 ;
6182 char *kwnames[] = {
6183 (char *) "self",(char *) "prefix", NULL
6184 };
6185
6186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6188 {
6189 arg2 = wxString_in_helper(obj1);
6190 if (arg2 == NULL) SWIG_fail;
423f194a 6191 temp2 = True;
d14a1e28
RD
6192 }
6193 {
6194 PyThreadState* __tstate = wxPyBeginAllowThreads();
6195 (arg1)->SetConfigPath((wxString const &)*arg2);
6196
6197 wxPyEndAllowThreads(__tstate);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 Py_INCREF(Py_None); resultobj = Py_None;
6201 {
6202 if (temp2)
6203 delete arg2;
6204 }
6205 return resultobj;
6206 fail:
6207 {
6208 if (temp2)
6209 delete arg2;
6210 }
6211 return NULL;
6212}
6213
6214
6215static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj;
6217 wxString result;
6218 char *kwnames[] = {
6219 NULL
6220 };
6221
6222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6223 {
6224 PyThreadState* __tstate = wxPyBeginAllowThreads();
6225 result = wxFontMapper::GetDefaultConfigPath();
6226
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 {
6231#if wxUSE_UNICODE
6232 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6233#else
6234 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6235#endif
6236 }
6237 return resultobj;
6238 fail:
6239 return NULL;
6240}
6241
6242
6243static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6244 PyObject *resultobj;
6245 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6246 int arg2 ;
6247 wxString const &arg3_defvalue = wxPyEmptyString ;
6248 wxString *arg3 = (wxString *) &arg3_defvalue ;
423f194a 6249 bool arg4 = (bool) True ;
d14a1e28 6250 PyObject *result;
423f194a 6251 bool temp3 = False ;
d14a1e28
RD
6252 PyObject * obj0 = 0 ;
6253 PyObject * obj2 = 0 ;
6254 PyObject * obj3 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6261 if (obj2) {
6262 {
6263 arg3 = wxString_in_helper(obj2);
6264 if (arg3 == NULL) SWIG_fail;
423f194a 6265 temp3 = True;
d14a1e28
RD
6266 }
6267 }
6268 if (obj3) {
6269 arg4 = PyInt_AsLong(obj3) ? true : false;
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 {
6273 PyThreadState* __tstate = wxPyBeginAllowThreads();
6274 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6275
6276 wxPyEndAllowThreads(__tstate);
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 resultobj = result;
6280 {
6281 if (temp3)
6282 delete arg3;
6283 }
6284 return resultobj;
6285 fail:
6286 {
6287 if (temp3)
6288 delete arg3;
6289 }
6290 return NULL;
6291}
6292
6293
6294static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6297 int arg2 ;
6298 wxString const &arg3_defvalue = wxPyEmptyString ;
6299 wxString *arg3 = (wxString *) &arg3_defvalue ;
6300 bool result;
423f194a 6301 bool temp3 = False ;
d14a1e28
RD
6302 PyObject * obj0 = 0 ;
6303 PyObject * obj2 = 0 ;
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6306 };
6307
6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail;
6309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6310 if (obj2) {
6311 {
6312 arg3 = wxString_in_helper(obj2);
6313 if (arg3 == NULL) SWIG_fail;
423f194a 6314 temp3 = True;
d14a1e28
RD
6315 }
6316 }
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = PyInt_FromLong((long)result);
6325 {
6326 if (temp3)
6327 delete arg3;
6328 }
6329 return resultobj;
6330 fail:
6331 {
6332 if (temp3)
6333 delete arg3;
6334 }
6335 return NULL;
6336}
6337
6338
6339static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj;
6341 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6342 wxWindow *arg2 = (wxWindow *) 0 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char *kwnames[] = {
6346 (char *) "self",(char *) "parent", NULL
6347 };
6348
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6351 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6352 {
6353 PyThreadState* __tstate = wxPyBeginAllowThreads();
6354 (arg1)->SetDialogParent(arg2);
6355
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 Py_INCREF(Py_None); resultobj = Py_None;
6360 return resultobj;
6361 fail:
6362 return NULL;
6363}
6364
6365
6366static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj;
6368 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6369 wxString *arg2 = 0 ;
423f194a 6370 bool temp2 = False ;
d14a1e28
RD
6371 PyObject * obj0 = 0 ;
6372 PyObject * obj1 = 0 ;
6373 char *kwnames[] = {
6374 (char *) "self",(char *) "title", NULL
6375 };
6376
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6379 {
6380 arg2 = wxString_in_helper(obj1);
6381 if (arg2 == NULL) SWIG_fail;
423f194a 6382 temp2 = True;
d14a1e28
RD
6383 }
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 (arg1)->SetDialogTitle((wxString const &)*arg2);
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 Py_INCREF(Py_None); resultobj = Py_None;
6392 {
6393 if (temp2)
6394 delete arg2;
6395 }
6396 return resultobj;
6397 fail:
6398 {
6399 if (temp2)
6400 delete arg2;
6401 }
6402 return NULL;
6403}
6404
6405
6406static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
6407 PyObject *obj;
6408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6409 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
6410 Py_INCREF(obj);
6411 return Py_BuildValue((char *)"");
6412}
6413static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 int arg1 ;
6416 int arg2 ;
6417 int arg3 ;
6418 int arg4 ;
423f194a 6419 bool arg5 = (bool) False ;
d14a1e28
RD
6420 wxString const &arg6_defvalue = wxPyEmptyString ;
6421 wxString *arg6 = (wxString *) &arg6_defvalue ;
6422 int arg7 = (int) wxFONTENCODING_DEFAULT ;
6423 wxFont *result;
423f194a 6424 bool temp6 = False ;
d14a1e28
RD
6425 PyObject * obj4 = 0 ;
6426 PyObject * obj5 = 0 ;
6427 char *kwnames[] = {
6428 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
6429 };
6430
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail;
6432 if (obj4) {
6433 arg5 = PyInt_AsLong(obj4) ? true : false;
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 if (obj5) {
6437 {
6438 arg6 = wxString_in_helper(obj5);
6439 if (arg6 == NULL) SWIG_fail;
423f194a 6440 temp6 = True;
d14a1e28
RD
6441 }
6442 }
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6451 {
6452 if (temp6)
6453 delete arg6;
6454 }
6455 return resultobj;
6456 fail:
6457 {
6458 if (temp6)
6459 delete arg6;
6460 }
6461 return NULL;
6462}
6463
6464
6465static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
6466 PyObject *resultobj;
6467 wxFont *arg1 = (wxFont *) 0 ;
6468 PyObject * obj0 = 0 ;
6469 char *kwnames[] = {
6470 (char *) "self", NULL
6471 };
6472
6473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
6474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 delete arg1;
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 Py_INCREF(Py_None); resultobj = Py_None;
6483 return resultobj;
6484 fail:
6485 return NULL;
6486}
6487
6488
6489static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6490 PyObject *resultobj;
6491 wxNativeFontInfo *arg1 = 0 ;
6492 wxFont *result;
6493 PyObject * obj0 = 0 ;
6494 char *kwnames[] = {
6495 (char *) "info", NULL
6496 };
6497
6498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
6499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6500 if (arg1 == NULL) {
6501 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6502 }
6503 {
6504 PyThreadState* __tstate = wxPyBeginAllowThreads();
6505 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
6506
6507 wxPyEndAllowThreads(__tstate);
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6511 return resultobj;
6512 fail:
6513 return NULL;
6514}
6515
6516
6517static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
6518 PyObject *resultobj;
6519 wxString *arg1 = 0 ;
6520 wxFont *result;
423f194a 6521 bool temp1 = False ;
d14a1e28
RD
6522 PyObject * obj0 = 0 ;
6523 char *kwnames[] = {
6524 (char *) "info", NULL
6525 };
6526
6527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
6528 {
6529 arg1 = wxString_in_helper(obj0);
6530 if (arg1 == NULL) SWIG_fail;
423f194a 6531 temp1 = True;
d14a1e28
RD
6532 }
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 result = (wxFont *)new_wxFont((wxString const &)*arg1);
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6541 {
6542 if (temp1)
6543 delete arg1;
6544 }
6545 return resultobj;
6546 fail:
6547 {
6548 if (temp1)
6549 delete arg1;
6550 }
6551 return NULL;
6552}
6553
6554
6555static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj;
6557 int arg1 ;
6558 int arg2 ;
6559 int arg3 = (int) wxFONTFLAG_DEFAULT ;
6560 wxString const &arg4_defvalue = wxPyEmptyString ;
6561 wxString *arg4 = (wxString *) &arg4_defvalue ;
6562 int arg5 = (int) wxFONTENCODING_DEFAULT ;
6563 wxFont *result;
423f194a 6564 bool temp4 = False ;
d14a1e28
RD
6565 PyObject * obj3 = 0 ;
6566 char *kwnames[] = {
6567 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail;
6571 if (obj3) {
6572 {
6573 arg4 = wxString_in_helper(obj3);
6574 if (arg4 == NULL) SWIG_fail;
423f194a 6575 temp4 = True;
d14a1e28
RD
6576 }
6577 }
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
6581
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
6586 {
6587 if (temp4)
6588 delete arg4;
6589 }
6590 return resultobj;
6591 fail:
6592 {
6593 if (temp4)
6594 delete arg4;
6595 }
6596 return NULL;
6597}
6598
6599
6600static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj;
6602 wxFont *arg1 = (wxFont *) 0 ;
6603 bool result;
6604 PyObject * obj0 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "self", NULL
6607 };
6608
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
6610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 result = (bool)((wxFont const *)arg1)->Ok();
6614
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 resultobj = PyInt_FromLong((long)result);
6619 return resultobj;
6620 fail:
6621 return NULL;
6622}
6623
6624
6625static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj;
6627 wxFont *arg1 = (wxFont *) 0 ;
6628 wxFont *arg2 = 0 ;
6629 bool result;
6630 PyObject * obj0 = 0 ;
6631 PyObject * obj1 = 0 ;
6632 char *kwnames[] = {
6633 (char *) "self",(char *) "font", NULL
6634 };
6635
6636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
6637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6638 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6639 if (arg2 == NULL) {
6640 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6641 }
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
6645
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 resultobj = PyInt_FromLong((long)result);
6650 return resultobj;
6651 fail:
6652 return NULL;
6653}
6654
6655
6656static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj;
6658 wxFont *arg1 = (wxFont *) 0 ;
6659 wxFont *arg2 = 0 ;
6660 bool result;
6661 PyObject * obj0 = 0 ;
6662 PyObject * obj1 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self",(char *) "font", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6669 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6670 if (arg2 == NULL) {
6671 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6672 }
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
6676
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 resultobj = PyInt_FromLong((long)result);
6681 return resultobj;
6682 fail:
6683 return NULL;
6684}
6685
6686
6687static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6688 PyObject *resultobj;
6689 wxFont *arg1 = (wxFont *) 0 ;
6690 int result;
6691 PyObject * obj0 = 0 ;
6692 char *kwnames[] = {
6693 (char *) "self", NULL
6694 };
6695
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
6697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 result = (int)((wxFont const *)arg1)->GetPointSize();
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 resultobj = PyInt_FromLong((long)result);
6706 return resultobj;
6707 fail:
6708 return NULL;
6709}
6710
6711
6712static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxFont *arg1 = (wxFont *) 0 ;
6715 int result;
6716 PyObject * obj0 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "self", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
6722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (int)((wxFont const *)arg1)->GetFamily();
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = PyInt_FromLong((long)result);
6731 return resultobj;
6732 fail:
6733 return NULL;
6734}
6735
6736
6737static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj;
6739 wxFont *arg1 = (wxFont *) 0 ;
6740 int result;
6741 PyObject * obj0 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
6747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6748 {
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (int)((wxFont const *)arg1)->GetStyle();
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 resultobj = PyInt_FromLong((long)result);
6756 return resultobj;
6757 fail:
6758 return NULL;
6759}
6760
6761
6762static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj;
6764 wxFont *arg1 = (wxFont *) 0 ;
6765 int result;
6766 PyObject * obj0 = 0 ;
6767 char *kwnames[] = {
6768 (char *) "self", NULL
6769 };
6770
6771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
6772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6773 {
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = (int)((wxFont const *)arg1)->GetWeight();
6776
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = PyInt_FromLong((long)result);
6781 return resultobj;
6782 fail:
6783 return NULL;
6784}
6785
6786
6787static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6788 PyObject *resultobj;
6789 wxFont *arg1 = (wxFont *) 0 ;
6790 bool result;
6791 PyObject * obj0 = 0 ;
6792 char *kwnames[] = {
6793 (char *) "self", NULL
6794 };
6795
6796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
6797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (bool)((wxFont const *)arg1)->GetUnderlined();
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = PyInt_FromLong((long)result);
6806 return resultobj;
6807 fail:
6808 return NULL;
6809}
6810
6811
6812static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxFont *arg1 = (wxFont *) 0 ;
6815 wxString result;
6816 PyObject * obj0 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6823 {
6824 PyThreadState* __tstate = wxPyBeginAllowThreads();
6825 result = ((wxFont const *)arg1)->GetFaceName();
6826
6827 wxPyEndAllowThreads(__tstate);
6828 if (PyErr_Occurred()) SWIG_fail;
6829 }
6830 {
6831#if wxUSE_UNICODE
6832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6833#else
6834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6835#endif
6836 }
6837 return resultobj;
6838 fail:
6839 return NULL;
6840}
6841
6842
6843static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6844 PyObject *resultobj;
6845 wxFont *arg1 = (wxFont *) 0 ;
6846 int result;
6847 PyObject * obj0 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "self", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 result = (int)((wxFont const *)arg1)->GetEncoding();
6857
6858 wxPyEndAllowThreads(__tstate);
6859 if (PyErr_Occurred()) SWIG_fail;
6860 }
6861 resultobj = PyInt_FromLong((long)result);
6862 return resultobj;
6863 fail:
6864 return NULL;
6865}
6866
6867
6868static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject *resultobj;
6870 wxFont *arg1 = (wxFont *) 0 ;
6871 wxNativeFontInfo *result;
6872 PyObject * obj0 = 0 ;
6873 char *kwnames[] = {
6874 (char *) "self", NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
6878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6879 {
6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
6881 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
6882
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
6887 return resultobj;
6888 fail:
6889 return NULL;
6890}
6891
6892
6893static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj;
6895 wxFont *arg1 = (wxFont *) 0 ;
6896 bool result;
6897 PyObject * obj0 = 0 ;
6898 char *kwnames[] = {
6899 (char *) "self", NULL
6900 };
6901
6902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
6903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = PyInt_FromLong((long)result);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915}
6916
6917
6918static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxFont *arg1 = (wxFont *) 0 ;
6921 wxString result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
6932
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 {
6937#if wxUSE_UNICODE
6938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6939#else
6940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6941#endif
6942 }
6943 return resultobj;
6944 fail:
6945 return NULL;
6946}
6947
6948
6949static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
6950 PyObject *resultobj;
6951 wxFont *arg1 = (wxFont *) 0 ;
6952 wxString result;
6953 PyObject * obj0 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "self", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
6968#if wxUSE_UNICODE
6969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6970#else
6971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6972#endif
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977}
6978
6979
6980static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxFont *arg1 = (wxFont *) 0 ;
6983 int arg2 ;
6984 PyObject * obj0 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self",(char *) "pointSize", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 (arg1)->SetPointSize(arg2);
6994
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 Py_INCREF(Py_None); resultobj = Py_None;
6999 return resultobj;
7000 fail:
7001 return NULL;
7002}
7003
7004
7005static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7006 PyObject *resultobj;
7007 wxFont *arg1 = (wxFont *) 0 ;
7008 int arg2 ;
7009 PyObject * obj0 = 0 ;
7010 char *kwnames[] = {
7011 (char *) "self",(char *) "family", NULL
7012 };
7013
7014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail;
7015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetFamily(arg2);
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 }
7023 Py_INCREF(Py_None); resultobj = Py_None;
7024 return resultobj;
7025 fail:
7026 return NULL;
7027}
7028
7029
7030static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7031 PyObject *resultobj;
7032 wxFont *arg1 = (wxFont *) 0 ;
7033 int arg2 ;
7034 PyObject * obj0 = 0 ;
7035 char *kwnames[] = {
7036 (char *) "self",(char *) "style", NULL
7037 };
7038
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail;
7040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 (arg1)->SetStyle(arg2);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 Py_INCREF(Py_None); resultobj = Py_None;
7049 return resultobj;
7050 fail:
7051 return NULL;
7052}
7053
7054
7055static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj;
7057 wxFont *arg1 = (wxFont *) 0 ;
7058 int arg2 ;
7059 PyObject * obj0 = 0 ;
7060 char *kwnames[] = {
7061 (char *) "self",(char *) "weight", NULL
7062 };
7063
7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail;
7065 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7066 {
7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
7068 (arg1)->SetWeight(arg2);
7069
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 Py_INCREF(Py_None); resultobj = Py_None;
7074 return resultobj;
7075 fail:
7076 return NULL;
7077}
7078
7079
7080static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj;
7082 wxFont *arg1 = (wxFont *) 0 ;
7083 wxString *arg2 = 0 ;
423f194a 7084 bool temp2 = False ;
d14a1e28
RD
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char *kwnames[] = {
7088 (char *) "self",(char *) "faceName", NULL
7089 };
7090
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7093 {
7094 arg2 = wxString_in_helper(obj1);
7095 if (arg2 == NULL) SWIG_fail;
423f194a 7096 temp2 = True;
d14a1e28
RD
7097 }
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 (arg1)->SetFaceName((wxString const &)*arg2);
7101
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 Py_INCREF(Py_None); resultobj = Py_None;
7106 {
7107 if (temp2)
7108 delete arg2;
7109 }
7110 return resultobj;
7111 fail:
7112 {
7113 if (temp2)
7114 delete arg2;
7115 }
7116 return NULL;
7117}
7118
7119
7120static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7121 PyObject *resultobj;
7122 wxFont *arg1 = (wxFont *) 0 ;
7123 bool arg2 ;
7124 PyObject * obj0 = 0 ;
7125 PyObject * obj1 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self",(char *) "underlined", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7132 arg2 = PyInt_AsLong(obj1) ? true : false;
7133 if (PyErr_Occurred()) SWIG_fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 (arg1)->SetUnderlined(arg2);
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 Py_INCREF(Py_None); resultobj = Py_None;
7142 return resultobj;
7143 fail:
7144 return NULL;
7145}
7146
7147
7148static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj;
7150 wxFont *arg1 = (wxFont *) 0 ;
7151 int arg2 ;
7152 PyObject * obj0 = 0 ;
7153 char *kwnames[] = {
7154 (char *) "self",(char *) "encoding", NULL
7155 };
7156
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail;
7158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7159 {
7160 PyThreadState* __tstate = wxPyBeginAllowThreads();
7161 (arg1)->SetEncoding((wxFontEncoding )arg2);
7162
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 Py_INCREF(Py_None); resultobj = Py_None;
7167 return resultobj;
7168 fail:
7169 return NULL;
7170}
7171
7172
7173static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7174 PyObject *resultobj;
7175 wxFont *arg1 = (wxFont *) 0 ;
7176 wxNativeFontInfo *arg2 = 0 ;
7177 PyObject * obj0 = 0 ;
7178 PyObject * obj1 = 0 ;
7179 char *kwnames[] = {
7180 (char *) "self",(char *) "info", NULL
7181 };
7182
7183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7185 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7186 if (arg2 == NULL) {
7187 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7188 }
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7192
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 Py_INCREF(Py_None); resultobj = Py_None;
7197 return resultobj;
7198 fail:
7199 return NULL;
7200}
7201
7202
7203static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj;
7205 wxFont *arg1 = (wxFont *) 0 ;
7206 wxString *arg2 = 0 ;
423f194a 7207 bool temp2 = False ;
d14a1e28
RD
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char *kwnames[] = {
7211 (char *) "self",(char *) "info", NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7216 {
7217 arg2 = wxString_in_helper(obj1);
7218 if (arg2 == NULL) SWIG_fail;
423f194a 7219 temp2 = True;
d14a1e28
RD
7220 }
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7224
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 Py_INCREF(Py_None); resultobj = Py_None;
7229 {
7230 if (temp2)
7231 delete arg2;
7232 }
7233 return resultobj;
7234 fail:
7235 {
7236 if (temp2)
7237 delete arg2;
7238 }
7239 return NULL;
7240}
7241
7242
7243static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7244 PyObject *resultobj;
7245 wxFont *arg1 = (wxFont *) 0 ;
7246 wxString *arg2 = 0 ;
423f194a 7247 bool temp2 = False ;
d14a1e28
RD
7248 PyObject * obj0 = 0 ;
7249 PyObject * obj1 = 0 ;
7250 char *kwnames[] = {
7251 (char *) "self",(char *) "info", NULL
7252 };
7253
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7256 {
7257 arg2 = wxString_in_helper(obj1);
7258 if (arg2 == NULL) SWIG_fail;
423f194a 7259 temp2 = True;
d14a1e28
RD
7260 }
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7264
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 Py_INCREF(Py_None); resultobj = Py_None;
7269 {
7270 if (temp2)
7271 delete arg2;
7272 }
7273 return resultobj;
7274 fail:
7275 {
7276 if (temp2)
7277 delete arg2;
7278 }
7279 return NULL;
7280}
7281
7282
7283static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7284 PyObject *resultobj;
7285 wxFont *arg1 = (wxFont *) 0 ;
7286 wxString result;
7287 PyObject * obj0 = 0 ;
7288 char *kwnames[] = {
7289 (char *) "self", NULL
7290 };
7291
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = ((wxFont const *)arg1)->GetFamilyString();
7297
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 {
7302#if wxUSE_UNICODE
7303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7304#else
7305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7306#endif
7307 }
7308 return resultobj;
7309 fail:
7310 return NULL;
7311}
7312
7313
7314static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
7315 PyObject *resultobj;
7316 wxFont *arg1 = (wxFont *) 0 ;
7317 wxString result;
7318 PyObject * obj0 = 0 ;
7319 char *kwnames[] = {
7320 (char *) "self", NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
7324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 result = ((wxFont const *)arg1)->GetStyleString();
7328
7329 wxPyEndAllowThreads(__tstate);
7330 if (PyErr_Occurred()) SWIG_fail;
7331 }
7332 {
7333#if wxUSE_UNICODE
7334 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7335#else
7336 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7337#endif
7338 }
7339 return resultobj;
7340 fail:
7341 return NULL;
7342}
7343
7344
7345static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxFont *arg1 = (wxFont *) 0 ;
7348 wxString result;
7349 PyObject * obj0 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
7355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7356 {
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 result = ((wxFont const *)arg1)->GetWeightString();
7359
7360 wxPyEndAllowThreads(__tstate);
7361 if (PyErr_Occurred()) SWIG_fail;
7362 }
7363 {
7364#if wxUSE_UNICODE
7365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7366#else
7367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7368#endif
7369 }
7370 return resultobj;
7371 fail:
7372 return NULL;
7373}
7374
7375
7376static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject *resultobj;
7378 wxFont *arg1 = (wxFont *) 0 ;
423f194a 7379 bool arg2 = (bool) True ;
d14a1e28
RD
7380 PyObject * obj0 = 0 ;
7381 PyObject * obj1 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "self",(char *) "no", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7388 if (obj1) {
7389 arg2 = PyInt_AsLong(obj1) ? true : false;
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 {
7393 PyThreadState* __tstate = wxPyBeginAllowThreads();
7394 (arg1)->SetNoAntiAliasing(arg2);
7395
7396 wxPyEndAllowThreads(__tstate);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 Py_INCREF(Py_None); resultobj = Py_None;
7400 return resultobj;
7401 fail:
7402 return NULL;
7403}
7404
7405
7406static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
7407 PyObject *resultobj;
7408 wxFont *arg1 = (wxFont *) 0 ;
7409 bool result;
7410 PyObject * obj0 = 0 ;
7411 char *kwnames[] = {
7412 (char *) "self", NULL
7413 };
7414
7415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
7416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 result = (bool)(arg1)->GetNoAntiAliasing();
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 resultobj = PyInt_FromLong((long)result);
7425 return resultobj;
7426 fail:
7427 return NULL;
7428}
7429
7430
7431static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 int result;
7434 char *kwnames[] = {
7435 NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 result = (int)wxFont::GetDefaultEncoding();
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = PyInt_FromLong((long)result);
7447 return resultobj;
7448 fail:
7449 return NULL;
7450}
7451
7452
7453static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj;
7455 int arg1 ;
7456 char *kwnames[] = {
7457 (char *) "encoding", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail;
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 Py_INCREF(Py_None); resultobj = Py_None;
7469 return resultobj;
7470 fail:
7471 return NULL;
7472}
7473
7474
7475static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
7476 PyObject *obj;
7477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7478 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
7479 Py_INCREF(obj);
7480 return Py_BuildValue((char *)"");
7481}
7482static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7483 PyObject *resultobj;
7484 wxPyFontEnumerator *result;
7485 char *kwnames[] = {
7486 NULL
7487 };
7488
7489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
7498 return resultobj;
7499 fail:
7500 return NULL;
7501}
7502
7503
7504static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7507 PyObject * obj0 = 0 ;
7508 char *kwnames[] = {
7509 (char *) "self", NULL
7510 };
7511
7512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
7513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 delete arg1;
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 Py_INCREF(Py_None); resultobj = Py_None;
7522 return resultobj;
7523 fail:
7524 return NULL;
7525}
7526
7527
7528static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject *resultobj;
7530 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7531 PyObject *arg2 = (PyObject *) 0 ;
7532 PyObject *arg3 = (PyObject *) 0 ;
7533 bool arg4 ;
7534 PyObject * obj0 = 0 ;
7535 PyObject * obj1 = 0 ;
7536 PyObject * obj2 = 0 ;
7537 PyObject * obj3 = 0 ;
7538 char *kwnames[] = {
7539 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
7540 };
7541
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7544 arg2 = obj1;
7545 arg3 = obj2;
7546 arg4 = PyInt_AsLong(obj3) ? true : false;
7547 if (PyErr_Occurred()) SWIG_fail;
7548 {
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
7551
7552 wxPyEndAllowThreads(__tstate);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 }
7555 Py_INCREF(Py_None); resultobj = Py_None;
7556 return resultobj;
7557 fail:
7558 return NULL;
7559}
7560
7561
7562static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7563 PyObject *resultobj;
7564 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7565 int arg2 = (int) wxFONTENCODING_SYSTEM ;
423f194a 7566 bool arg3 = (bool) False ;
d14a1e28
RD
7567 bool result;
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj2 = 0 ;
7570 char *kwnames[] = {
7571 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
7572 };
7573
7574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail;
7575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7576 if (obj2) {
7577 arg3 = PyInt_AsLong(obj2) ? true : false;
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = PyInt_FromLong((long)result);
7588 return resultobj;
7589 fail:
7590 return NULL;
7591}
7592
7593
7594static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj;
7596 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7597 wxString const &arg2_defvalue = wxPyEmptyString ;
7598 wxString *arg2 = (wxString *) &arg2_defvalue ;
7599 bool result;
423f194a 7600 bool temp2 = False ;
d14a1e28
RD
7601 PyObject * obj0 = 0 ;
7602 PyObject * obj1 = 0 ;
7603 char *kwnames[] = {
7604 (char *) "self",(char *) "facename", NULL
7605 };
7606
7607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
7608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7609 if (obj1) {
7610 {
7611 arg2 = wxString_in_helper(obj1);
7612 if (arg2 == NULL) SWIG_fail;
423f194a 7613 temp2 = True;
d14a1e28
RD
7614 }
7615 }
7616 {
7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
7618 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
7619
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 resultobj = PyInt_FromLong((long)result);
7624 {
7625 if (temp2)
7626 delete arg2;
7627 }
7628 return resultobj;
7629 fail:
7630 {
7631 if (temp2)
7632 delete arg2;
7633 }
7634 return NULL;
7635}
7636
7637
7638static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj;
7640 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7641 PyObject *result;
7642 PyObject * obj0 = 0 ;
7643 char *kwnames[] = {
7644 (char *) "self", NULL
7645 };
7646
7647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
7648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7649 {
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 resultobj = result;
7657 return resultobj;
7658 fail:
7659 return NULL;
7660}
7661
7662
7663static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
7666 PyObject *result;
7667 PyObject * obj0 = 0 ;
7668 char *kwnames[] = {
7669 (char *) "self", NULL
7670 };
7671
7672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
7673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7674 {
7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
7676 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
7677
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 resultobj = result;
7682 return resultobj;
7683 fail:
7684 return NULL;
7685}
7686
7687
7688static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
7689 PyObject *obj;
7690 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7691 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
7692 Py_INCREF(obj);
7693 return Py_BuildValue((char *)"");
7694}
7695static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7696 PyObject *resultobj;
7697 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7698 int arg2 ;
7699 PyObject * obj0 = 0 ;
7700 char *kwnames[] = {
7701 (char *) "self",(char *) "Language", NULL
7702 };
7703
7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail;
7705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7706 if (arg1) (arg1)->Language = arg2;
7707
7708 Py_INCREF(Py_None); resultobj = Py_None;
7709 return resultobj;
7710 fail:
7711 return NULL;
7712}
7713
7714
7715static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj;
7717 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
7718 int result;
7719 PyObject * obj0 = 0 ;
7720 char *kwnames[] = {
7721 (char *) "self", NULL
7722 };
7723
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
7725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7726 result = (int) ((arg1)->Language);
7727
7728 resultobj = PyInt_FromLong((long)result);
7729 return resultobj;
7730 fail:
7731 return NULL;
7732}
7733
7734
7735static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7736 PyObject *resultobj;
7737 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
cbd72d4f 7738 wxString *arg2 = (wxString *) 0 ;
dae0faa6 7739 bool temp2 = False ;
d14a1e28
RD
7740 PyObject * obj0 = 0 ;
7741 PyObject * obj1 = 0 ;
7742 char *kwnames[] = {
7743 (char *) "self",(char *) "CanonicalName", NULL
7744 };
7745
7746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
7747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
dae0faa6
RD
7748 {
7749 arg2 = wxString_in_helper(obj1);
7750 if (arg2 == NULL) SWIG_fail;
7751 temp2 = True;
7752 }
cbd72d4f 7753 if (arg1) (arg1)->CanonicalName = *arg2;
d14a1e28
RD
7754
7755 Py_INCREF(Py_None); resultobj = Py_None;
dae0faa6
RD
7756 {
7757 if (temp2)
7758 delete arg2;
7759 }
d14a1e28
RD
7760 return resultobj;
7761 fail:
dae0faa6
RD
7762 {
7763 if (temp2)
7764 delete arg2;
7765 }
d14a1e28
RD
7766 return NULL;
7767}
7768
7769
7770static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
cbd72d4f 7773 wxString *result;
d14a1e28
RD
7774 PyObject * obj0 = 0 ;
7775 char *kwnames[] = {
7776 (char *) "self", NULL
7777 };
7778
7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
7780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
cbd72d4f 7781 result = (wxString *)& ((arg1)->CanonicalName);
d14a1e28
RD
7782
7783 {
7784#if wxUSE_UNICODE
cbd72d4f 7785 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 7786#else
cbd72d4f 7787 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
7788#endif
7789 }
7790 return resultobj;
7791 fail:
7792 return NULL;
7793}
7794
7795
7796static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject *resultobj;
7798 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
cbd72d4f 7799 wxString *arg2 = (wxString *) 0 ;
dae0faa6 7800 bool temp2 = False ;
d14a1e28
RD
7801 PyObject * obj0 = 0 ;
7802 PyObject * obj1 = 0 ;
7803 char *kwnames[] = {
7804 (char *) "self",(char *) "Description", NULL
7805 };
7806
7807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
7808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
dae0faa6
RD
7809 {
7810 arg2 = wxString_in_helper(obj1);
7811 if (arg2 == NULL) SWIG_fail;
7812 temp2 = True;
7813 }
cbd72d4f 7814 if (arg1) (arg1)->Description = *arg2;
d14a1e28
RD
7815
7816 Py_INCREF(Py_None); resultobj = Py_None;
dae0faa6
RD
7817 {
7818 if (temp2)
7819 delete arg2;
7820 }
d14a1e28
RD
7821 return resultobj;
7822 fail:
dae0faa6
RD
7823 {
7824 if (temp2)
7825 delete arg2;
7826 }
d14a1e28
RD
7827 return NULL;
7828}
7829
7830
7831static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
cbd72d4f 7834 wxString *result;
d14a1e28
RD
7835 PyObject * obj0 = 0 ;
7836 char *kwnames[] = {
7837 (char *) "self", NULL
7838 };
7839
7840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
7841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
cbd72d4f 7842 result = (wxString *)& ((arg1)->Description);
d14a1e28
RD
7843
7844 {
7845#if wxUSE_UNICODE
cbd72d4f 7846 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 7847#else
cbd72d4f 7848 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28
RD
7849#endif
7850 }
7851 return resultobj;
7852 fail:
7853 return NULL;
7854}
7855
7856
7857static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
7858 PyObject *obj;
7859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7860 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
7861 Py_INCREF(obj);
7862 return Py_BuildValue((char *)"");
7863}
7864static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj;
7866 int arg1 = (int) wxLANGUAGE_DEFAULT ;
7867 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
7868 wxLocale *result;
7869 char *kwnames[] = {
7870 (char *) "language",(char *) "flags", NULL
7871 };
7872
7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail;
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 result = (wxLocale *)new wxLocale(arg1,arg2);
7877
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
7882 return resultobj;
7883 fail:
7884 return NULL;
7885}
7886
7887
7888static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxLocale *arg1 = (wxLocale *) 0 ;
7891 PyObject * obj0 = 0 ;
7892 char *kwnames[] = {
7893 (char *) "self", NULL
7894 };
7895
7896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
7897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 delete arg1;
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 Py_INCREF(Py_None); resultobj = Py_None;
7906 return resultobj;
7907 fail:
7908 return NULL;
7909}
7910
7911
7912static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxLocale *arg1 = (wxLocale *) 0 ;
7915 wxString *arg2 = 0 ;
7916 wxString const &arg3_defvalue = wxPyEmptyString ;
7917 wxString *arg3 = (wxString *) &arg3_defvalue ;
7918 wxString const &arg4_defvalue = wxPyEmptyString ;
7919 wxString *arg4 = (wxString *) &arg4_defvalue ;
423f194a
RD
7920 bool arg5 = (bool) True ;
7921 bool arg6 = (bool) False ;
d14a1e28 7922 bool result;
423f194a
RD
7923 bool temp2 = False ;
7924 bool temp3 = False ;
7925 bool temp4 = False ;
d14a1e28
RD
7926 PyObject * obj0 = 0 ;
7927 PyObject * obj1 = 0 ;
7928 PyObject * obj2 = 0 ;
7929 PyObject * obj3 = 0 ;
7930 PyObject * obj4 = 0 ;
7931 PyObject * obj5 = 0 ;
7932 char *kwnames[] = {
7933 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
7934 };
7935
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7938 {
7939 arg2 = wxString_in_helper(obj1);
7940 if (arg2 == NULL) SWIG_fail;
423f194a 7941 temp2 = True;
d14a1e28
RD
7942 }
7943 if (obj2) {
7944 {
7945 arg3 = wxString_in_helper(obj2);
7946 if (arg3 == NULL) SWIG_fail;
423f194a 7947 temp3 = True;
d14a1e28
RD
7948 }
7949 }
7950 if (obj3) {
7951 {
7952 arg4 = wxString_in_helper(obj3);
7953 if (arg4 == NULL) SWIG_fail;
423f194a 7954 temp4 = True;
d14a1e28
RD
7955 }
7956 }
7957 if (obj4) {
7958 arg5 = PyInt_AsLong(obj4) ? true : false;
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 if (obj5) {
7962 arg6 = PyInt_AsLong(obj5) ? true : false;
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
7968
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = PyInt_FromLong((long)result);
7973 {
7974 if (temp2)
7975 delete arg2;
7976 }
7977 {
7978 if (temp3)
7979 delete arg3;
7980 }
7981 {
7982 if (temp4)
7983 delete arg4;
7984 }
7985 return resultobj;
7986 fail:
7987 {
7988 if (temp2)
7989 delete arg2;
7990 }
7991 {
7992 if (temp3)
7993 delete arg3;
7994 }
7995 {
7996 if (temp4)
7997 delete arg4;
7998 }
7999 return NULL;
8000}
8001
8002
8003static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8004 PyObject *resultobj;
8005 wxLocale *arg1 = (wxLocale *) 0 ;
8006 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8007 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8008 bool result;
8009 PyObject * obj0 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self",(char *) "language",(char *) "flags", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail;
8015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 result = (bool)(arg1)->Init(arg2,arg3);
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = PyInt_FromLong((long)result);
8024 return resultobj;
8025 fail:
8026 return NULL;
8027}
8028
8029
8030static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 int result;
8033 char *kwnames[] = {
8034 NULL
8035 };
8036
8037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = (int)wxLocale::GetSystemLanguage();
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = PyInt_FromLong((long)result);
8046 return resultobj;
8047 fail:
8048 return NULL;
8049}
8050
8051
8052static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 int result;
8055 char *kwnames[] = {
8056 NULL
8057 };
8058
8059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8060 {
8061 PyThreadState* __tstate = wxPyBeginAllowThreads();
8062 result = (int)wxLocale::GetSystemEncoding();
8063
8064 wxPyEndAllowThreads(__tstate);
8065 if (PyErr_Occurred()) SWIG_fail;
8066 }
8067 resultobj = PyInt_FromLong((long)result);
8068 return resultobj;
8069 fail:
8070 return NULL;
8071}
8072
8073
8074static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8075 PyObject *resultobj;
8076 wxString result;
8077 char *kwnames[] = {
8078 NULL
8079 };
8080
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8082 {
8083 PyThreadState* __tstate = wxPyBeginAllowThreads();
8084 result = wxLocale::GetSystemEncodingName();
8085
8086 wxPyEndAllowThreads(__tstate);
8087 if (PyErr_Occurred()) SWIG_fail;
8088 }
8089 {
8090#if wxUSE_UNICODE
8091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8092#else
8093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8094#endif
8095 }
8096 return resultobj;
8097 fail:
8098 return NULL;
8099}
8100
8101
8102static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 wxLocale *arg1 = (wxLocale *) 0 ;
8105 bool result;
8106 PyObject * obj0 = 0 ;
8107 char *kwnames[] = {
8108 (char *) "self", NULL
8109 };
8110
8111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = (bool)((wxLocale const *)arg1)->IsOk();
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = PyInt_FromLong((long)result);
8121 return resultobj;
8122 fail:
8123 return NULL;
8124}
8125
8126
8127static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8128 PyObject *resultobj;
8129 wxLocale *arg1 = (wxLocale *) 0 ;
8130 wxString result;
8131 PyObject * obj0 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "self", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8138 {
8139 PyThreadState* __tstate = wxPyBeginAllowThreads();
8140 result = ((wxLocale const *)arg1)->GetLocale();
8141
8142 wxPyEndAllowThreads(__tstate);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 {
8146#if wxUSE_UNICODE
8147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8148#else
8149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8150#endif
8151 }
8152 return resultobj;
8153 fail:
8154 return NULL;
8155}
8156
8157
8158static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxLocale *arg1 = (wxLocale *) 0 ;
8161 int result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 result = (int)((wxLocale const *)arg1)->GetLanguage();
8172
8173 wxPyEndAllowThreads(__tstate);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = PyInt_FromLong((long)result);
8177 return resultobj;
8178 fail:
8179 return NULL;
8180}
8181
8182
8183static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8184 PyObject *resultobj;
8185 wxLocale *arg1 = (wxLocale *) 0 ;
8186 wxString result;
8187 PyObject * obj0 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = ((wxLocale const *)arg1)->GetSysName();
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 {
8202#if wxUSE_UNICODE
8203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8204#else
8205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8206#endif
8207 }
8208 return resultobj;
8209 fail:
8210 return NULL;
8211}
8212
8213
8214static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8215 PyObject *resultobj;
8216 wxLocale *arg1 = (wxLocale *) 0 ;
8217 wxString result;
8218 PyObject * obj0 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 result = ((wxLocale const *)arg1)->GetCanonicalName();
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 {
8233#if wxUSE_UNICODE
8234 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8235#else
8236 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8237#endif
8238 }
8239 return resultobj;
8240 fail:
8241 return NULL;
8242}
8243
8244
8245static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxString *arg1 = 0 ;
423f194a 8248 bool temp1 = False ;
d14a1e28
RD
8249 PyObject * obj0 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "prefix", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
8255 {
8256 arg1 = wxString_in_helper(obj0);
8257 if (arg1 == NULL) SWIG_fail;
423f194a 8258 temp1 = True;
d14a1e28
RD
8259 }
8260 {
8261 PyThreadState* __tstate = wxPyBeginAllowThreads();
8262 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
8263
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 Py_INCREF(Py_None); resultobj = Py_None;
8268 {
8269 if (temp1)
8270 delete arg1;
8271 }
8272 return resultobj;
8273 fail:
8274 {
8275 if (temp1)
8276 delete arg1;
8277 }
8278 return NULL;
8279}
8280
8281
8282static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj;
8284 wxLocale *arg1 = (wxLocale *) 0 ;
8285 wxString *arg2 = 0 ;
8286 bool result;
423f194a 8287 bool temp2 = False ;
d14a1e28
RD
8288 PyObject * obj0 = 0 ;
8289 PyObject * obj1 = 0 ;
8290 char *kwnames[] = {
8291 (char *) "self",(char *) "szDomain", NULL
8292 };
8293
8294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
8295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8296 {
8297 arg2 = wxString_in_helper(obj1);
8298 if (arg2 == NULL) SWIG_fail;
423f194a 8299 temp2 = True;
d14a1e28
RD
8300 }
8301 {
8302 PyThreadState* __tstate = wxPyBeginAllowThreads();
8303 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
8304
8305 wxPyEndAllowThreads(__tstate);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 resultobj = PyInt_FromLong((long)result);
8309 {
8310 if (temp2)
8311 delete arg2;
8312 }
8313 return resultobj;
8314 fail:
8315 {
8316 if (temp2)
8317 delete arg2;
8318 }
8319 return NULL;
8320}
8321
8322
8323static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxLocale *arg1 = (wxLocale *) 0 ;
8326 wxString *arg2 = 0 ;
8327 bool result;
423f194a 8328 bool temp2 = False ;
d14a1e28
RD
8329 PyObject * obj0 = 0 ;
8330 PyObject * obj1 = 0 ;
8331 char *kwnames[] = {
8332 (char *) "self",(char *) "szDomain", NULL
8333 };
8334
8335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
8336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8337 {
8338 arg2 = wxString_in_helper(obj1);
8339 if (arg2 == NULL) SWIG_fail;
423f194a 8340 temp2 = True;
d14a1e28
RD
8341 }
8342 {
8343 PyThreadState* __tstate = wxPyBeginAllowThreads();
8344 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
8345
8346 wxPyEndAllowThreads(__tstate);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 }
8349 resultobj = PyInt_FromLong((long)result);
8350 {
8351 if (temp2)
8352 delete arg2;
8353 }
8354 return resultobj;
8355 fail:
8356 {
8357 if (temp2)
8358 delete arg2;
8359 }
8360 return NULL;
8361}
8362
8363
8364static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj;
8366 int arg1 ;
8367 wxLanguageInfo *result;
8368 char *kwnames[] = {
8369 (char *) "lang", NULL
8370 };
8371
8372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail;
8373 {
8374 PyThreadState* __tstate = wxPyBeginAllowThreads();
8375 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
8376
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8381 return resultobj;
8382 fail:
8383 return NULL;
8384}
8385
8386
8387static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj;
8389 int arg1 ;
8390 wxString result;
8391 char *kwnames[] = {
8392 (char *) "lang", NULL
8393 };
8394
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail;
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 result = wxLocale::GetLanguageName(arg1);
8399
8400 wxPyEndAllowThreads(__tstate);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 {
8404#if wxUSE_UNICODE
8405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8406#else
8407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8408#endif
8409 }
8410 return resultobj;
8411 fail:
8412 return NULL;
8413}
8414
8415
8416static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8417 PyObject *resultobj;
8418 wxString *arg1 = 0 ;
8419 wxLanguageInfo *result;
423f194a 8420 bool temp1 = False ;
d14a1e28
RD
8421 PyObject * obj0 = 0 ;
8422 char *kwnames[] = {
8423 (char *) "locale", NULL
8424 };
8425
8426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
8427 {
8428 arg1 = wxString_in_helper(obj0);
8429 if (arg1 == NULL) SWIG_fail;
423f194a 8430 temp1 = True;
d14a1e28
RD
8431 }
8432 {
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
8435
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
8440 {
8441 if (temp1)
8442 delete arg1;
8443 }
8444 return resultobj;
8445 fail:
8446 {
8447 if (temp1)
8448 delete arg1;
8449 }
8450 return NULL;
8451}
8452
8453
8454static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 wxLanguageInfo *arg1 = 0 ;
8457 PyObject * obj0 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "info", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
8463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8464 if (arg1 == NULL) {
8465 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8466 }
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 Py_INCREF(Py_None); resultobj = Py_None;
8475 return resultobj;
8476 fail:
8477 return NULL;
8478}
8479
8480
8481static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxLocale *arg1 = (wxLocale *) 0 ;
8484 wxString *arg2 = 0 ;
8485 wxString const &arg3_defvalue = wxPyEmptyString ;
8486 wxString *arg3 = (wxString *) &arg3_defvalue ;
8487 wxString result;
423f194a
RD
8488 bool temp2 = False ;
8489 bool temp3 = False ;
d14a1e28
RD
8490 PyObject * obj0 = 0 ;
8491 PyObject * obj1 = 0 ;
8492 PyObject * obj2 = 0 ;
8493 char *kwnames[] = {
8494 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
8495 };
8496
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
8498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8499 {
8500 arg2 = wxString_in_helper(obj1);
8501 if (arg2 == NULL) SWIG_fail;
423f194a 8502 temp2 = True;
d14a1e28
RD
8503 }
8504 if (obj2) {
8505 {
8506 arg3 = wxString_in_helper(obj2);
8507 if (arg3 == NULL) SWIG_fail;
423f194a 8508 temp3 = True;
d14a1e28
RD
8509 }
8510 }
8511 {
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
8514
8515 wxPyEndAllowThreads(__tstate);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 {
8519#if wxUSE_UNICODE
8520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8521#else
8522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8523#endif
8524 }
8525 {
8526 if (temp2)
8527 delete arg2;
8528 }
8529 {
8530 if (temp3)
8531 delete arg3;
8532 }
8533 return resultobj;
8534 fail:
8535 {
8536 if (temp2)
8537 delete arg2;
8538 }
8539 {
8540 if (temp3)
8541 delete arg3;
8542 }
8543 return NULL;
8544}
8545
8546
8547static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj;
8549 wxLocale *arg1 = (wxLocale *) 0 ;
8550 wxString *result;
8551 PyObject * obj0 = 0 ;
8552 char *kwnames[] = {
8553 (char *) "self", NULL
8554 };
8555
8556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
8557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8558 {
8559 PyThreadState* __tstate = wxPyBeginAllowThreads();
8560 {
8561 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
8562 result = (wxString *) &_result_ref;
8563 }
8564
8565 wxPyEndAllowThreads(__tstate);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
0f774bef
RD
8568 {
8569#if wxUSE_UNICODE
8570 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8571#else
8572 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8573#endif
8574 }
d14a1e28
RD
8575 return resultobj;
8576 fail:
8577 return NULL;
8578}
8579
8580
8581static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
8582 PyObject *obj;
8583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8584 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
8585 Py_INCREF(obj);
8586 return Py_BuildValue((char *)"");
8587}
8588static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8589 PyObject *resultobj;
8590 wxLocale *result;
8591 char *kwnames[] = {
8592 NULL
8593 };
8594
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
8596 {
8597 PyThreadState* __tstate = wxPyBeginAllowThreads();
8598 result = (wxLocale *)wxGetLocale();
8599
8600 wxPyEndAllowThreads(__tstate);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
8604 return resultobj;
8605 fail:
8606 return NULL;
8607}
8608
8609
8610static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
8611 PyObject *resultobj;
8612 wxString *arg1 = 0 ;
8613 wxString result;
423f194a 8614 bool temp1 = False ;
d14a1e28
RD
8615 PyObject * obj0 = 0 ;
8616
8617 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
8618 {
8619 arg1 = wxString_in_helper(obj0);
8620 if (arg1 == NULL) SWIG_fail;
423f194a 8621 temp1 = True;
d14a1e28
RD
8622 }
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 result = wxGetTranslation((wxString const &)*arg1);
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 {
8631#if wxUSE_UNICODE
8632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8633#else
8634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8635#endif
8636 }
8637 {
8638 if (temp1)
8639 delete arg1;
8640 }
8641 return resultobj;
8642 fail:
8643 {
8644 if (temp1)
8645 delete arg1;
8646 }
8647 return NULL;
8648}
8649
8650
8651static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
8652 PyObject *resultobj;
8653 wxString *arg1 = 0 ;
8654 wxString *arg2 = 0 ;
8655 size_t arg3 ;
8656 wxString result;
423f194a
RD
8657 bool temp1 = False ;
8658 bool temp2 = False ;
d14a1e28
RD
8659 PyObject * obj0 = 0 ;
8660 PyObject * obj1 = 0 ;
8661 PyObject * obj2 = 0 ;
8662
8663 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
8664 {
8665 arg1 = wxString_in_helper(obj0);
8666 if (arg1 == NULL) SWIG_fail;
423f194a 8667 temp1 = True;
d14a1e28
RD
8668 }
8669 {
8670 arg2 = wxString_in_helper(obj1);
8671 if (arg2 == NULL) SWIG_fail;
423f194a 8672 temp2 = True;
d14a1e28
RD
8673 }
8674 arg3 = (size_t) PyInt_AsLong(obj2);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8679
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 {
8684#if wxUSE_UNICODE
8685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8686#else
8687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8688#endif
8689 }
8690 {
8691 if (temp1)
8692 delete arg1;
8693 }
8694 {
8695 if (temp2)
8696 delete arg2;
8697 }
8698 return resultobj;
8699 fail:
8700 {
8701 if (temp1)
8702 delete arg1;
8703 }
8704 {
8705 if (temp2)
8706 delete arg2;
8707 }
8708 return NULL;
8709}
8710
8711
8712static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
8713 int argc;
8714 PyObject *argv[4];
8715 int ii;
8716
8717 argc = PyObject_Length(args);
8718 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8719 argv[ii] = PyTuple_GetItem(args,ii);
8720 }
8721 if (argc == 1) {
8722 int _v;
8723 {
8724 void *ptr;
8725 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8726 _v = 0;
8727 PyErr_Clear();
8728 } else {
8729 _v = 1;
8730 }
8731 }
8732 if (_v) {
8733 return _wrap_GetTranslation__SWIG_0(self,args);
8734 }
8735 }
8736 if (argc == 3) {
8737 int _v;
8738 {
8739 void *ptr;
8740 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8741 _v = 0;
8742 PyErr_Clear();
8743 } else {
8744 _v = 1;
8745 }
8746 }
8747 if (_v) {
8748 {
8749 void *ptr;
8750 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
8751 _v = 0;
8752 PyErr_Clear();
8753 } else {
8754 _v = 1;
8755 }
8756 }
8757 if (_v) {
8758 {
8759 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
8760 }
8761 if (_v) {
8762 return _wrap_GetTranslation__SWIG_1(self,args);
8763 }
8764 }
8765 }
8766 }
8767
8768 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
8769 return NULL;
8770}
8771
8772
8773static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8774 PyObject *resultobj;
8775 wxEncodingConverter *result;
8776 char *kwnames[] = {
8777 NULL
8778 };
8779
8780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 result = (wxEncodingConverter *)new wxEncodingConverter();
8784
8785 wxPyEndAllowThreads(__tstate);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
8789 return resultobj;
8790 fail:
8791 return NULL;
8792}
8793
8794
8795static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj;
8797 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8798 PyObject * obj0 = 0 ;
8799 char *kwnames[] = {
8800 (char *) "self", NULL
8801 };
8802
8803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
8804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8805 {
8806 PyThreadState* __tstate = wxPyBeginAllowThreads();
8807 delete arg1;
8808
8809 wxPyEndAllowThreads(__tstate);
8810 if (PyErr_Occurred()) SWIG_fail;
8811 }
8812 Py_INCREF(Py_None); resultobj = Py_None;
8813 return resultobj;
8814 fail:
8815 return NULL;
8816}
8817
8818
8819static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
8820 PyObject *resultobj;
8821 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8822 int arg2 ;
8823 int arg3 ;
8824 int arg4 = (int) wxCONVERT_STRICT ;
8825 bool result;
8826 PyObject * obj0 = 0 ;
8827 char *kwnames[] = {
8828 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
8829 };
8830
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
8832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8833 {
8834 PyThreadState* __tstate = wxPyBeginAllowThreads();
8835 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
8836
8837 wxPyEndAllowThreads(__tstate);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 resultobj = PyInt_FromLong((long)result);
8841 return resultobj;
8842 fail:
8843 return NULL;
8844}
8845
8846
8847static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
8848 PyObject *resultobj;
8849 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
8850 wxString *arg2 = 0 ;
8851 wxString result;
423f194a 8852 bool temp2 = False ;
d14a1e28
RD
8853 PyObject * obj0 = 0 ;
8854 PyObject * obj1 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "input", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8861 {
8862 arg2 = wxString_in_helper(obj1);
8863 if (arg2 == NULL) SWIG_fail;
423f194a 8864 temp2 = True;
d14a1e28
RD
8865 }
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 result = (arg1)->Convert((wxString const &)*arg2);
8869
8870 wxPyEndAllowThreads(__tstate);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 {
8874#if wxUSE_UNICODE
8875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8876#else
8877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8878#endif
8879 }
8880 {
8881 if (temp2)
8882 delete arg2;
8883 }
8884 return resultobj;
8885 fail:
8886 {
8887 if (temp2)
8888 delete arg2;
8889 }
8890 return NULL;
8891}
8892
8893
8894static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8895 PyObject *resultobj;
8896 int arg1 ;
8897 int arg2 = (int) wxPLATFORM_CURRENT ;
8898 wxFontEncodingArray result;
8899 char *kwnames[] = {
8900 (char *) "enc",(char *) "platform", NULL
8901 };
8902
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail;
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 {
8912 resultobj = PyList_New(0);
8913 for (size_t i=0; i < (&result)->GetCount(); i++) {
8914 PyObject* number = PyInt_FromLong((&result)->Item(i));
8915 PyList_Append(resultobj, number);
8916 Py_DECREF(number);
8917 }
8918 }
8919 return resultobj;
8920 fail:
8921 return NULL;
8922}
8923
8924
8925static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
8926 PyObject *resultobj;
8927 int arg1 ;
8928 wxFontEncodingArray result;
8929 char *kwnames[] = {
8930 (char *) "enc", NULL
8931 };
8932
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail;
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 {
8942 resultobj = PyList_New(0);
8943 for (size_t i=0; i < (&result)->GetCount(); i++) {
8944 PyObject* number = PyInt_FromLong((&result)->Item(i));
8945 PyList_Append(resultobj, number);
8946 Py_DECREF(number);
8947 }
8948 }
8949 return resultobj;
8950 fail:
8951 return NULL;
8952}
8953
8954
8955static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
8956 PyObject *resultobj;
8957 int arg1 ;
8958 int arg2 ;
8959 bool result;
8960 char *kwnames[] = {
8961 (char *) "encIn",(char *) "encOut", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail;
8965 {
8966 PyThreadState* __tstate = wxPyBeginAllowThreads();
8967 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
8968
8969 wxPyEndAllowThreads(__tstate);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 }
8972 resultobj = PyInt_FromLong((long)result);
8973 return resultobj;
8974 fail:
8975 return NULL;
8976}
8977
8978
8979static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
8980 PyObject *obj;
8981 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8982 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
8983 Py_INCREF(obj);
8984 return Py_BuildValue((char *)"");
8985}
8986static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
8987 PyObject *resultobj;
8988 wxDC *arg1 = (wxDC *) 0 ;
8989 PyObject * obj0 = 0 ;
8990 char *kwnames[] = {
8991 (char *) "self", NULL
8992 };
8993
8994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
8995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8996 {
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 delete arg1;
8999
9000 wxPyEndAllowThreads(__tstate);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 Py_INCREF(Py_None); resultobj = Py_None;
9004 return resultobj;
9005 fail:
9006 return NULL;
9007}
9008
9009
9010static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj;
9012 wxDC *arg1 = (wxDC *) 0 ;
9013 PyObject * obj0 = 0 ;
9014 char *kwnames[] = {
9015 (char *) "self", NULL
9016 };
9017
9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 (arg1)->BeginDrawing();
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 Py_INCREF(Py_None); resultobj = Py_None;
9028 return resultobj;
9029 fail:
9030 return NULL;
9031}
9032
9033
9034static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj;
9036 wxDC *arg1 = (wxDC *) 0 ;
9037 PyObject * obj0 = 0 ;
9038 char *kwnames[] = {
9039 (char *) "self", NULL
9040 };
9041
9042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9044 {
9045 PyThreadState* __tstate = wxPyBeginAllowThreads();
9046 (arg1)->EndDrawing();
9047
9048 wxPyEndAllowThreads(__tstate);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 }
9051 Py_INCREF(Py_None); resultobj = Py_None;
9052 return resultobj;
9053 fail:
9054 return NULL;
9055}
9056
9057
9058static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj;
9060 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9061 int arg2 ;
9062 int arg3 ;
d14a1e28
RD
9063 wxColour *arg4 = 0 ;
9064 int arg5 = (int) wxFLOOD_SURFACE ;
9065 bool result;
9066 wxColour temp4 ;
9067 PyObject * obj0 = 0 ;
9068 PyObject * obj3 = 0 ;
9069 char *kwnames[] = {
9070 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9071 };
9072
9073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail;
9074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9075 {
9076 arg4 = &temp4;
9077 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9078 }
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9082
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 resultobj = PyInt_FromLong((long)result);
9087 return resultobj;
9088 fail:
9089 return NULL;
9090}
9091
9092
9093static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxDC *arg1 = (wxDC *) 0 ;
9096 wxPoint *arg2 = 0 ;
9097 wxColour *arg3 = 0 ;
9098 int arg4 = (int) wxFLOOD_SURFACE ;
9099 bool result;
9100 wxPoint temp2 ;
9101 wxColour temp3 ;
9102 PyObject * obj0 = 0 ;
9103 PyObject * obj1 = 0 ;
9104 PyObject * obj2 = 0 ;
9105 char *kwnames[] = {
9106 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9107 };
9108
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9111 {
9112 arg2 = &temp2;
9113 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9114 }
9115 {
9116 arg3 = &temp3;
9117 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9118 }
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9122
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = PyInt_FromLong((long)result);
9127 return resultobj;
9128 fail:
9129 return NULL;
9130}
9131
9132
9133static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9134 PyObject *resultobj;
9135 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9136 int arg2 ;
9137 int arg3 ;
d14a1e28
RD
9138 wxColour result;
9139 PyObject * obj0 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self",(char *) "x",(char *) "y", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 {
9154 wxColour * resultptr;
9155 resultptr = new wxColour((wxColour &) result);
9156 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9157 }
9158 return resultobj;
9159 fail:
9160 return NULL;
9161}
9162
9163
9164static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9165 PyObject *resultobj;
9166 wxDC *arg1 = (wxDC *) 0 ;
9167 wxPoint *arg2 = 0 ;
9168 wxColour result;
9169 wxPoint temp2 ;
9170 PyObject * obj0 = 0 ;
9171 PyObject * obj1 = 0 ;
9172 char *kwnames[] = {
9173 (char *) "self",(char *) "pt", NULL
9174 };
9175
9176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
9177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9178 {
9179 arg2 = &temp2;
9180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9181 }
9182 {
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
9185
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 {
9190 wxColour * resultptr;
9191 resultptr = new wxColour((wxColour &) result);
9192 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9193 }
9194 return resultobj;
9195 fail:
9196 return NULL;
9197}
9198
9199
9200static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9201 PyObject *resultobj;
9202 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9203 int arg2 ;
9204 int arg3 ;
9205 int arg4 ;
9206 int arg5 ;
d14a1e28
RD
9207 PyObject * obj0 = 0 ;
9208 char *kwnames[] = {
9209 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
9210 };
9211
9212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
9217
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 Py_INCREF(Py_None); resultobj = Py_None;
9222 return resultobj;
9223 fail:
9224 return NULL;
9225}
9226
9227
9228static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj;
9230 wxDC *arg1 = (wxDC *) 0 ;
9231 wxPoint *arg2 = 0 ;
9232 wxPoint *arg3 = 0 ;
9233 wxPoint temp2 ;
9234 wxPoint temp3 ;
9235 PyObject * obj0 = 0 ;
9236 PyObject * obj1 = 0 ;
9237 PyObject * obj2 = 0 ;
9238 char *kwnames[] = {
9239 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
9240 };
9241
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
9243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9244 {
9245 arg2 = &temp2;
9246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9247 }
9248 {
9249 arg3 = &temp3;
9250 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9251 }
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
9255
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 Py_INCREF(Py_None); resultobj = Py_None;
9260 return resultobj;
9261 fail:
9262 return NULL;
9263}
9264
9265
9266static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj;
9268 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9269 int arg2 ;
9270 int arg3 ;
d14a1e28
RD
9271 PyObject * obj0 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self",(char *) "x",(char *) "y", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 (arg1)->CrossHair(arg2,arg3);
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 Py_INCREF(Py_None); resultobj = Py_None;
9286 return resultobj;
9287 fail:
9288 return NULL;
9289}
9290
9291
9292static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
9293 PyObject *resultobj;
9294 wxDC *arg1 = (wxDC *) 0 ;
9295 wxPoint *arg2 = 0 ;
9296 wxPoint temp2 ;
9297 PyObject * obj0 = 0 ;
9298 PyObject * obj1 = 0 ;
9299 char *kwnames[] = {
9300 (char *) "self",(char *) "pt", NULL
9301 };
9302
9303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
9304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9305 {
9306 arg2 = &temp2;
9307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9308 }
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 (arg1)->CrossHair((wxPoint const &)*arg2);
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 Py_INCREF(Py_None); resultobj = Py_None;
9317 return resultobj;
9318 fail:
9319 return NULL;
9320}
9321
9322
9323static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9324 PyObject *resultobj;
9325 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9326 int arg2 ;
9327 int arg3 ;
9328 int arg4 ;
9329 int arg5 ;
9330 int arg6 ;
9331 int arg7 ;
d14a1e28
RD
9332 PyObject * obj0 = 0 ;
9333 char *kwnames[] = {
9334 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
9335 };
9336
9337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
9342
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 Py_INCREF(Py_None); resultobj = Py_None;
9347 return resultobj;
9348 fail:
9349 return NULL;
9350}
9351
9352
9353static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxDC *arg1 = (wxDC *) 0 ;
9356 wxPoint *arg2 = 0 ;
9357 wxPoint *arg3 = 0 ;
9358 wxPoint *arg4 = 0 ;
9359 wxPoint temp2 ;
9360 wxPoint temp3 ;
9361 wxPoint temp4 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 PyObject * obj2 = 0 ;
9365 PyObject * obj3 = 0 ;
9366 char *kwnames[] = {
9367 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
9368 };
9369
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9372 {
9373 arg2 = &temp2;
9374 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9375 }
9376 {
9377 arg3 = &temp3;
9378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9379 }
9380 {
9381 arg4 = &temp4;
9382 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9383 }
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
9387
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 Py_INCREF(Py_None); resultobj = Py_None;
9392 return resultobj;
9393 fail:
9394 return NULL;
9395}
9396
9397
9398static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj;
9400 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9401 int arg2 ;
9402 int arg3 ;
9403 int arg4 ;
9404 int arg5 ;
d14a1e28
RD
9405 PyObject * obj0 = 0 ;
9406 char *kwnames[] = {
9407 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9408 };
9409
9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
9415
9416 wxPyEndAllowThreads(__tstate);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 Py_INCREF(Py_None); resultobj = Py_None;
9420 return resultobj;
9421 fail:
9422 return NULL;
9423}
9424
9425
9426static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj;
9428 wxDC *arg1 = (wxDC *) 0 ;
9429 wxRect *arg2 = 0 ;
9430 wxRect temp2 ;
9431 PyObject * obj0 = 0 ;
9432 PyObject * obj1 = 0 ;
9433 char *kwnames[] = {
9434 (char *) "self",(char *) "rect", NULL
9435 };
9436
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9439 {
9440 arg2 = &temp2;
9441 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9442 }
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 (arg1)->DrawCheckMark((wxRect const &)*arg2);
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 Py_INCREF(Py_None); resultobj = Py_None;
9451 return resultobj;
9452 fail:
9453 return NULL;
9454}
9455
9456
9457static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj;
9459 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9460 int arg2 ;
9461 int arg3 ;
9462 int arg4 ;
9463 int arg5 ;
d14a1e28
RD
9464 double arg6 ;
9465 double arg7 ;
9466 PyObject * obj0 = 0 ;
9467 char *kwnames[] = {
9468 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
9469 };
9470
9471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
9472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
9476
9477 wxPyEndAllowThreads(__tstate);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 }
9480 Py_INCREF(Py_None); resultobj = Py_None;
9481 return resultobj;
9482 fail:
9483 return NULL;
9484}
9485
9486
9487static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj;
9489 wxDC *arg1 = (wxDC *) 0 ;
9490 wxPoint *arg2 = 0 ;
9491 wxSize *arg3 = 0 ;
9492 double arg4 ;
9493 double arg5 ;
9494 wxPoint temp2 ;
9495 wxSize temp3 ;
9496 PyObject * obj0 = 0 ;
9497 PyObject * obj1 = 0 ;
9498 PyObject * obj2 = 0 ;
9499 char *kwnames[] = {
9500 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
9501 };
9502
9503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
9504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9505 {
9506 arg2 = &temp2;
9507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9508 }
9509 {
9510 arg3 = &temp3;
9511 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
9516
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 Py_INCREF(Py_None); resultobj = Py_None;
9521 return resultobj;
9522 fail:
9523 return NULL;
9524}
9525
9526
9527static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj;
9529 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9530 int arg2 ;
9531 int arg3 ;
d14a1e28
RD
9532 PyObject * obj0 = 0 ;
9533 char *kwnames[] = {
9534 (char *) "self",(char *) "x",(char *) "y", NULL
9535 };
9536
9537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
9538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 (arg1)->DrawPoint(arg2,arg3);
9542
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 Py_INCREF(Py_None); resultobj = Py_None;
9547 return resultobj;
9548 fail:
9549 return NULL;
9550}
9551
9552
9553static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj;
9555 wxDC *arg1 = (wxDC *) 0 ;
9556 wxPoint *arg2 = 0 ;
9557 wxPoint temp2 ;
9558 PyObject * obj0 = 0 ;
9559 PyObject * obj1 = 0 ;
9560 char *kwnames[] = {
9561 (char *) "self",(char *) "pt", NULL
9562 };
9563
9564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
9565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9566 {
9567 arg2 = &temp2;
9568 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9569 }
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 (arg1)->DrawPoint((wxPoint const &)*arg2);
9573
9574 wxPyEndAllowThreads(__tstate);
9575 if (PyErr_Occurred()) SWIG_fail;
9576 }
9577 Py_INCREF(Py_None); resultobj = Py_None;
9578 return resultobj;
9579 fail:
9580 return NULL;
9581}
9582
9583
9584static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9585 PyObject *resultobj;
9586 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9587 int arg2 ;
9588 int arg3 ;
9589 int arg4 ;
9590 int arg5 ;
d14a1e28
RD
9591 PyObject * obj0 = 0 ;
9592 char *kwnames[] = {
9593 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9594 };
9595
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
9601
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 Py_INCREF(Py_None); resultobj = Py_None;
9606 return resultobj;
9607 fail:
9608 return NULL;
9609}
9610
9611
9612static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9613 PyObject *resultobj;
9614 wxDC *arg1 = (wxDC *) 0 ;
9615 wxPoint *arg2 = 0 ;
9616 wxSize *arg3 = 0 ;
9617 wxPoint temp2 ;
9618 wxSize temp3 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 PyObject * obj2 = 0 ;
9622 char *kwnames[] = {
9623 (char *) "self",(char *) "pt",(char *) "sz", NULL
9624 };
9625
9626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9628 {
9629 arg2 = &temp2;
9630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9631 }
9632 {
9633 arg3 = &temp3;
9634 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9635 }
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
9639
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 Py_INCREF(Py_None); resultobj = Py_None;
9644 return resultobj;
9645 fail:
9646 return NULL;
9647}
9648
9649
9650static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9651 PyObject *resultobj;
9652 wxDC *arg1 = (wxDC *) 0 ;
9653 wxRect *arg2 = 0 ;
9654 wxRect temp2 ;
9655 PyObject * obj0 = 0 ;
9656 PyObject * obj1 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self",(char *) "rect", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9663 {
9664 arg2 = &temp2;
9665 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->DrawRectangle((wxRect const &)*arg2);
9670
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 Py_INCREF(Py_None); resultobj = Py_None;
9675 return resultobj;
9676 fail:
9677 return NULL;
9678}
9679
9680
9681static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj;
9683 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9684 int arg2 ;
9685 int arg3 ;
9686 int arg4 ;
9687 int arg5 ;
d14a1e28
RD
9688 double arg6 ;
9689 PyObject * obj0 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail;
9695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 Py_INCREF(Py_None); resultobj = Py_None;
9704 return resultobj;
9705 fail:
9706 return NULL;
9707}
9708
9709
9710static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj;
9712 wxDC *arg1 = (wxDC *) 0 ;
9713 wxPoint *arg2 = 0 ;
9714 wxSize *arg3 = 0 ;
9715 double arg4 ;
9716 wxPoint temp2 ;
9717 wxSize temp3 ;
9718 PyObject * obj0 = 0 ;
9719 PyObject * obj1 = 0 ;
9720 PyObject * obj2 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9727 {
9728 arg2 = &temp2;
9729 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9730 }
9731 {
9732 arg3 = &temp3;
9733 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9734 }
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 Py_INCREF(Py_None); resultobj = Py_None;
9743 return resultobj;
9744 fail:
9745 return NULL;
9746}
9747
9748
9749static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj;
9751 wxDC *arg1 = (wxDC *) 0 ;
9752 wxRect *arg2 = 0 ;
9753 double arg3 ;
9754 wxRect temp2 ;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 char *kwnames[] = {
9758 (char *) "self",(char *) "r",(char *) "radius", NULL
9759 };
9760
9761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail;
9762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9763 {
9764 arg2 = &temp2;
9765 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9766 }
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 Py_INCREF(Py_None); resultobj = Py_None;
9775 return resultobj;
9776 fail:
9777 return NULL;
9778}
9779
9780
9781static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9784 int arg2 ;
9785 int arg3 ;
9786 int arg4 ;
d14a1e28
RD
9787 PyObject * obj0 = 0 ;
9788 char *kwnames[] = {
9789 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
9790 };
9791
9792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
9793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9794 {
9795 PyThreadState* __tstate = wxPyBeginAllowThreads();
9796 (arg1)->DrawCircle(arg2,arg3,arg4);
9797
9798 wxPyEndAllowThreads(__tstate);
9799 if (PyErr_Occurred()) SWIG_fail;
9800 }
9801 Py_INCREF(Py_None); resultobj = Py_None;
9802 return resultobj;
9803 fail:
9804 return NULL;
9805}
9806
9807
9808static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
9809 PyObject *resultobj;
9810 wxDC *arg1 = (wxDC *) 0 ;
9811 wxPoint *arg2 = 0 ;
423f194a 9812 int arg3 ;
d14a1e28
RD
9813 wxPoint temp2 ;
9814 PyObject * obj0 = 0 ;
9815 PyObject * obj1 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self",(char *) "pt",(char *) "radius", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9822 {
9823 arg2 = &temp2;
9824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 Py_INCREF(Py_None); resultobj = Py_None;
9834 return resultobj;
9835 fail:
9836 return NULL;
9837}
9838
9839
9840static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj;
9842 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
9843 int arg2 ;
9844 int arg3 ;
9845 int arg4 ;
9846 int arg5 ;
d14a1e28
RD
9847 PyObject * obj0 = 0 ;
9848 char *kwnames[] = {
9849 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9850 };
9851
9852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
9853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 Py_INCREF(Py_None); resultobj = Py_None;
9862 return resultobj;
9863 fail:
9864 return NULL;
9865}
9866
9867
9868static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxDC *arg1 = (wxDC *) 0 ;
9871 wxPoint *arg2 = 0 ;
9872 wxSize *arg3 = 0 ;
9873 wxPoint temp2 ;
9874 wxSize temp3 ;
9875 PyObject * obj0 = 0 ;
9876 PyObject * obj1 = 0 ;
9877 PyObject * obj2 = 0 ;
9878 char *kwnames[] = {
9879 (char *) "self",(char *) "pt",(char *) "sz", NULL
9880 };
9881
9882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
9883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9884 {
9885 arg2 = &temp2;
9886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9887 }
9888 {
9889 arg3 = &temp3;
9890 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
9895
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 Py_INCREF(Py_None); resultobj = Py_None;
9900 return resultobj;
9901 fail:
9902 return NULL;
9903}
9904
9905
9906static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj;
9908 wxDC *arg1 = (wxDC *) 0 ;
9909 wxRect *arg2 = 0 ;
9910 wxRect temp2 ;
9911 PyObject * obj0 = 0 ;
9912 PyObject * obj1 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self",(char *) "rect", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9919 {
9920 arg2 = &temp2;
9921 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9922 }
9923 {
9924 PyThreadState* __tstate = wxPyBeginAllowThreads();
9925 (arg1)->DrawEllipse((wxRect const &)*arg2);
9926
9927 wxPyEndAllowThreads(__tstate);
9928 if (PyErr_Occurred()) SWIG_fail;
9929 }
9930 Py_INCREF(Py_None); resultobj = Py_None;
9931 return resultobj;
9932 fail:
9933 return NULL;
9934}
9935
9936
9937static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj;
9939 wxDC *arg1 = (wxDC *) 0 ;
9940 wxIcon *arg2 = 0 ;
423f194a
RD
9941 int arg3 ;
9942 int arg4 ;
d14a1e28
RD
9943 PyObject * obj0 = 0 ;
9944 PyObject * obj1 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
9950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9951 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9952 if (arg2 == NULL) {
9953 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 Py_INCREF(Py_None); resultobj = Py_None;
9963 return resultobj;
9964 fail:
9965 return NULL;
9966}
9967
9968
9969static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9970 PyObject *resultobj;
9971 wxDC *arg1 = (wxDC *) 0 ;
9972 wxIcon *arg2 = 0 ;
9973 wxPoint *arg3 = 0 ;
9974 wxPoint temp3 ;
9975 PyObject * obj0 = 0 ;
9976 PyObject * obj1 = 0 ;
9977 PyObject * obj2 = 0 ;
9978 char *kwnames[] = {
9979 (char *) "self",(char *) "icon",(char *) "pt", NULL
9980 };
9981
9982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
9983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9985 if (arg2 == NULL) {
9986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9987 }
9988 {
9989 arg3 = &temp3;
9990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9991 }
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
9995
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 Py_INCREF(Py_None); resultobj = Py_None;
10000 return resultobj;
10001 fail:
10002 return NULL;
10003}
10004
10005
10006static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10007 PyObject *resultobj;
10008 wxDC *arg1 = (wxDC *) 0 ;
10009 wxBitmap *arg2 = 0 ;
423f194a
RD
10010 int arg3 ;
10011 int arg4 ;
10012 bool arg5 = (bool) False ;
d14a1e28
RD
10013 PyObject * obj0 = 0 ;
10014 PyObject * obj1 = 0 ;
10015 PyObject * obj4 = 0 ;
10016 char *kwnames[] = {
10017 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
10018 };
10019
10020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail;
10021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10023 if (arg2 == NULL) {
10024 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10025 }
10026 if (obj4) {
10027 arg5 = PyInt_AsLong(obj4) ? true : false;
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
10033
10034 wxPyEndAllowThreads(__tstate);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 }
10037 Py_INCREF(Py_None); resultobj = Py_None;
10038 return resultobj;
10039 fail:
10040 return NULL;
10041}
10042
10043
10044static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj;
10046 wxDC *arg1 = (wxDC *) 0 ;
10047 wxBitmap *arg2 = 0 ;
10048 wxPoint *arg3 = 0 ;
423f194a 10049 bool arg4 = (bool) False ;
d14a1e28
RD
10050 wxPoint temp3 ;
10051 PyObject * obj0 = 0 ;
10052 PyObject * obj1 = 0 ;
10053 PyObject * obj2 = 0 ;
10054 PyObject * obj3 = 0 ;
10055 char *kwnames[] = {
10056 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
10057 };
10058
10059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10061 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10062 if (arg2 == NULL) {
10063 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10064 }
10065 {
10066 arg3 = &temp3;
10067 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10068 }
10069 if (obj3) {
10070 arg4 = PyInt_AsLong(obj3) ? true : false;
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 {
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 Py_INCREF(Py_None); resultobj = Py_None;
10081 return resultobj;
10082 fail:
10083 return NULL;
10084}
10085
10086
10087static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10088 PyObject *resultobj;
10089 wxDC *arg1 = (wxDC *) 0 ;
10090 wxString *arg2 = 0 ;
423f194a
RD
10091 int arg3 ;
10092 int arg4 ;
10093 bool temp2 = False ;
d14a1e28
RD
10094 PyObject * obj0 = 0 ;
10095 PyObject * obj1 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
10101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10102 {
10103 arg2 = wxString_in_helper(obj1);
10104 if (arg2 == NULL) SWIG_fail;
423f194a 10105 temp2 = True;
d14a1e28
RD
10106 }
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
10110
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 Py_INCREF(Py_None); resultobj = Py_None;
10115 {
10116 if (temp2)
10117 delete arg2;
10118 }
10119 return resultobj;
10120 fail:
10121 {
10122 if (temp2)
10123 delete arg2;
10124 }
10125 return NULL;
10126}
10127
10128
10129static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj;
10131 wxDC *arg1 = (wxDC *) 0 ;
10132 wxString *arg2 = 0 ;
10133 wxPoint *arg3 = 0 ;
423f194a 10134 bool temp2 = False ;
d14a1e28
RD
10135 wxPoint temp3 ;
10136 PyObject * obj0 = 0 ;
10137 PyObject * obj1 = 0 ;
10138 PyObject * obj2 = 0 ;
10139 char *kwnames[] = {
10140 (char *) "self",(char *) "text",(char *) "pt", NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
10144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10145 {
10146 arg2 = wxString_in_helper(obj1);
10147 if (arg2 == NULL) SWIG_fail;
423f194a 10148 temp2 = True;
d14a1e28
RD
10149 }
10150 {
10151 arg3 = &temp3;
10152 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10153 }
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
10157
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 Py_INCREF(Py_None); resultobj = Py_None;
10162 {
10163 if (temp2)
10164 delete arg2;
10165 }
10166 return resultobj;
10167 fail:
10168 {
10169 if (temp2)
10170 delete arg2;
10171 }
10172 return NULL;
10173}
10174
10175
10176static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10177 PyObject *resultobj;
10178 wxDC *arg1 = (wxDC *) 0 ;
10179 wxString *arg2 = 0 ;
423f194a
RD
10180 int arg3 ;
10181 int arg4 ;
d14a1e28 10182 double arg5 ;
423f194a 10183 bool temp2 = False ;
d14a1e28
RD
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 char *kwnames[] = {
10187 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
10188 };
10189
10190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
10191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10192 {
10193 arg2 = wxString_in_helper(obj1);
10194 if (arg2 == NULL) SWIG_fail;
423f194a 10195 temp2 = True;
d14a1e28
RD
10196 }
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 Py_INCREF(Py_None); resultobj = Py_None;
10205 {
10206 if (temp2)
10207 delete arg2;
10208 }
10209 return resultobj;
10210 fail:
10211 {
10212 if (temp2)
10213 delete arg2;
10214 }
10215 return NULL;
10216}
10217
10218
10219static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj;
10221 wxDC *arg1 = (wxDC *) 0 ;
10222 wxString *arg2 = 0 ;
10223 wxPoint *arg3 = 0 ;
10224 double arg4 ;
423f194a 10225 bool temp2 = False ;
d14a1e28
RD
10226 wxPoint temp3 ;
10227 PyObject * obj0 = 0 ;
10228 PyObject * obj1 = 0 ;
10229 PyObject * obj2 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
10235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10236 {
10237 arg2 = wxString_in_helper(obj1);
10238 if (arg2 == NULL) SWIG_fail;
423f194a 10239 temp2 = True;
d14a1e28
RD
10240 }
10241 {
10242 arg3 = &temp3;
10243 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10244 }
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
10248
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 Py_INCREF(Py_None); resultobj = Py_None;
10253 {
10254 if (temp2)
10255 delete arg2;
10256 }
10257 return resultobj;
10258 fail:
10259 {
10260 if (temp2)
10261 delete arg2;
10262 }
10263 return NULL;
10264}
10265
10266
10267static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10268 PyObject *resultobj;
10269 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10270 int arg2 ;
10271 int arg3 ;
10272 int arg4 ;
10273 int arg5 ;
d14a1e28 10274 wxDC *arg6 = (wxDC *) 0 ;
423f194a
RD
10275 int arg7 ;
10276 int arg8 ;
d14a1e28 10277 int arg9 = (int) wxCOPY ;
423f194a
RD
10278 bool arg10 = (bool) False ;
10279 int arg11 = (int) -1 ;
10280 int arg12 = (int) -1 ;
d14a1e28
RD
10281 bool result;
10282 PyObject * obj0 = 0 ;
10283 PyObject * obj5 = 0 ;
10284 PyObject * obj9 = 0 ;
10285 char *kwnames[] = {
10286 (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
10287 };
10288
10289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail;
10290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10291 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10292 if (obj9) {
10293 arg10 = PyInt_AsLong(obj9) ? true : false;
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 resultobj = PyInt_FromLong((long)result);
10304 return resultobj;
10305 fail:
10306 return NULL;
10307}
10308
10309
10310static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
10311 PyObject *resultobj;
10312 wxDC *arg1 = (wxDC *) 0 ;
10313 wxPoint *arg2 = 0 ;
10314 wxSize *arg3 = 0 ;
10315 wxDC *arg4 = (wxDC *) 0 ;
10316 wxPoint *arg5 = 0 ;
10317 int arg6 = (int) wxCOPY ;
423f194a 10318 bool arg7 = (bool) False ;
d14a1e28
RD
10319 wxPoint const &arg8_defvalue = wxDefaultPosition ;
10320 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
10321 bool result;
10322 wxPoint temp2 ;
10323 wxSize temp3 ;
10324 wxPoint temp5 ;
10325 wxPoint temp8 ;
10326 PyObject * obj0 = 0 ;
10327 PyObject * obj1 = 0 ;
10328 PyObject * obj2 = 0 ;
10329 PyObject * obj3 = 0 ;
10330 PyObject * obj4 = 0 ;
10331 PyObject * obj6 = 0 ;
10332 PyObject * obj7 = 0 ;
10333 char *kwnames[] = {
10334 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
10335 };
10336
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail;
10338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10339 {
10340 arg2 = &temp2;
10341 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10342 }
10343 {
10344 arg3 = &temp3;
10345 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10346 }
10347 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10348 {
10349 arg5 = &temp5;
10350 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
10351 }
10352 if (obj6) {
10353 arg7 = PyInt_AsLong(obj6) ? true : false;
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 if (obj7) {
10357 {
10358 arg8 = &temp8;
10359 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
10360 }
10361 }
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 resultobj = PyInt_FromLong((long)result);
10370 return resultobj;
10371 fail:
10372 return NULL;
10373}
10374
10375
10376static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj;
10378 wxDC *arg1 = (wxDC *) 0 ;
10379 int arg2 ;
10380 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
10381 int arg4 = (int) 0 ;
10382 int arg5 = (int) 0 ;
d14a1e28
RD
10383 PyObject * obj0 = 0 ;
10384 PyObject * obj1 = 0 ;
10385 char *kwnames[] = {
10386 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
10387 };
10388
10389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail;
10390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10391 {
10392 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10393 if (arg3 == NULL) SWIG_fail;
10394 }
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 Py_INCREF(Py_None); resultobj = Py_None;
10403 {
10404 if (arg3) delete [] arg3;
10405 }
10406 return resultobj;
10407 fail:
10408 {
10409 if (arg3) delete [] arg3;
10410 }
10411 return NULL;
10412}
10413
10414
10415static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
10416 PyObject *resultobj;
10417 wxDC *arg1 = (wxDC *) 0 ;
10418 int arg2 ;
10419 wxPoint *arg3 = (wxPoint *) 0 ;
423f194a
RD
10420 int arg4 = (int) 0 ;
10421 int arg5 = (int) 0 ;
d14a1e28
RD
10422 int arg6 = (int) wxODDEVEN_RULE ;
10423 PyObject * obj0 = 0 ;
10424 PyObject * obj1 = 0 ;
10425 char *kwnames[] = {
10426 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
10427 };
10428
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10431 {
10432 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10433 if (arg3 == NULL) SWIG_fail;
10434 }
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
10438
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 Py_INCREF(Py_None); resultobj = Py_None;
10443 {
10444 if (arg3) delete [] arg3;
10445 }
10446 return resultobj;
10447 fail:
10448 {
10449 if (arg3) delete [] arg3;
10450 }
10451 return NULL;
10452}
10453
10454
10455static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10456 PyObject *resultobj;
10457 wxDC *arg1 = (wxDC *) 0 ;
10458 wxString *arg2 = 0 ;
10459 wxRect *arg3 = 0 ;
10460 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10461 int arg5 = (int) -1 ;
423f194a 10462 bool temp2 = False ;
d14a1e28
RD
10463 wxRect temp3 ;
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 PyObject * obj2 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail;
10472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10473 {
10474 arg2 = wxString_in_helper(obj1);
10475 if (arg2 == NULL) SWIG_fail;
423f194a 10476 temp2 = True;
d14a1e28
RD
10477 }
10478 {
10479 arg3 = &temp3;
10480 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
10481 }
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
10485
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 Py_INCREF(Py_None); resultobj = Py_None;
10490 {
10491 if (temp2)
10492 delete arg2;
10493 }
10494 return resultobj;
10495 fail:
10496 {
10497 if (temp2)
10498 delete arg2;
10499 }
10500 return NULL;
10501}
10502
10503
10504static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10505 PyObject *resultobj;
10506 wxDC *arg1 = (wxDC *) 0 ;
10507 wxString *arg2 = 0 ;
10508 wxBitmap *arg3 = 0 ;
10509 wxRect *arg4 = 0 ;
10510 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
10511 int arg6 = (int) -1 ;
10512 wxRect result;
423f194a 10513 bool temp2 = False ;
d14a1e28
RD
10514 wxRect temp4 ;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10517 PyObject * obj2 = 0 ;
10518 PyObject * obj3 = 0 ;
10519 char *kwnames[] = {
10520 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
10521 };
10522
10523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
10524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10525 {
10526 arg2 = wxString_in_helper(obj1);
10527 if (arg2 == NULL) SWIG_fail;
423f194a 10528 temp2 = True;
d14a1e28
RD
10529 }
10530 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10531 if (arg3 == NULL) {
10532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10533 }
10534 {
10535 arg4 = &temp4;
10536 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
10541
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 {
10546 wxRect * resultptr;
10547 resultptr = new wxRect((wxRect &) result);
10548 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
10549 }
10550 {
10551 if (temp2)
10552 delete arg2;
10553 }
10554 return resultobj;
10555 fail:
10556 {
10557 if (temp2)
10558 delete arg2;
10559 }
10560 return NULL;
10561}
10562
10563
10564static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj;
10566 wxDC *arg1 = (wxDC *) 0 ;
10567 int arg2 ;
10568 wxPoint *arg3 = (wxPoint *) 0 ;
10569 PyObject * obj0 = 0 ;
10570 PyObject * obj1 = 0 ;
10571 char *kwnames[] = {
10572 (char *) "self",(char *) "points", NULL
10573 };
10574
10575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
10576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10577 {
10578 arg3 = wxPoint_LIST_helper(obj1, &arg2);
10579 if (arg3 == NULL) SWIG_fail;
10580 }
10581 {
10582 PyThreadState* __tstate = wxPyBeginAllowThreads();
10583 (arg1)->DrawSpline(arg2,arg3);
10584
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 Py_INCREF(Py_None); resultobj = Py_None;
10589 {
10590 if (arg3) delete [] arg3;
10591 }
10592 return resultobj;
10593 fail:
10594 {
10595 if (arg3) delete [] arg3;
10596 }
10597 return NULL;
10598}
10599
10600
10601static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10602 PyObject *resultobj;
10603 wxDC *arg1 = (wxDC *) 0 ;
10604 PyObject * obj0 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 (arg1)->Clear();
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 Py_INCREF(Py_None); resultobj = Py_None;
10619 return resultobj;
10620 fail:
10621 return NULL;
10622}
10623
10624
10625static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxDC *arg1 = (wxDC *) 0 ;
10628 wxString *arg2 = 0 ;
10629 bool result;
423f194a 10630 bool temp2 = False ;
d14a1e28
RD
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self",(char *) "message", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10639 {
10640 arg2 = wxString_in_helper(obj1);
10641 if (arg2 == NULL) SWIG_fail;
423f194a 10642 temp2 = True;
d14a1e28
RD
10643 }
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 resultobj = PyInt_FromLong((long)result);
10652 {
10653 if (temp2)
10654 delete arg2;
10655 }
10656 return resultobj;
10657 fail:
10658 {
10659 if (temp2)
10660 delete arg2;
10661 }
10662 return NULL;
10663}
10664
10665
10666static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 wxDC *arg1 = (wxDC *) 0 ;
10669 PyObject * obj0 = 0 ;
10670 char *kwnames[] = {
10671 (char *) "self", NULL
10672 };
10673
10674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
10675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 (arg1)->EndDoc();
10679
10680 wxPyEndAllowThreads(__tstate);
10681 if (PyErr_Occurred()) SWIG_fail;
10682 }
10683 Py_INCREF(Py_None); resultobj = Py_None;
10684 return resultobj;
10685 fail:
10686 return NULL;
10687}
10688
10689
10690static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10691 PyObject *resultobj;
10692 wxDC *arg1 = (wxDC *) 0 ;
10693 PyObject * obj0 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 (arg1)->StartPage();
10703
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 Py_INCREF(Py_None); resultobj = Py_None;
10708 return resultobj;
10709 fail:
10710 return NULL;
10711}
10712
10713
10714static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
10715 PyObject *resultobj;
10716 wxDC *arg1 = (wxDC *) 0 ;
10717 PyObject * obj0 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 (arg1)->EndPage();
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
10738static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj;
10740 wxDC *arg1 = (wxDC *) 0 ;
10741 wxFont *arg2 = 0 ;
10742 PyObject * obj0 = 0 ;
10743 PyObject * obj1 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self",(char *) "font", NULL
10746 };
10747
10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
10749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10750 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10751 if (arg2 == NULL) {
10752 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10753 }
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 (arg1)->SetFont((wxFont const &)*arg2);
10757
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 Py_INCREF(Py_None); resultobj = Py_None;
10762 return resultobj;
10763 fail:
10764 return NULL;
10765}
10766
10767
10768static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
10769 PyObject *resultobj;
10770 wxDC *arg1 = (wxDC *) 0 ;
10771 wxPen *arg2 = 0 ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "self",(char *) "pen", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
10779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10780 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10781 if (arg2 == NULL) {
10782 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10783 }
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 (arg1)->SetPen((wxPen const &)*arg2);
10787
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 Py_INCREF(Py_None); resultobj = Py_None;
10792 return resultobj;
10793 fail:
10794 return NULL;
10795}
10796
10797
10798static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxDC *arg1 = (wxDC *) 0 ;
10801 wxBrush *arg2 = 0 ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "brush", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10810 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10811 if (arg2 == NULL) {
10812 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10813 }
10814 {
10815 PyThreadState* __tstate = wxPyBeginAllowThreads();
10816 (arg1)->SetBrush((wxBrush const &)*arg2);
10817
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 Py_INCREF(Py_None); resultobj = Py_None;
10822 return resultobj;
10823 fail:
10824 return NULL;
10825}
10826
10827
10828static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
10829 PyObject *resultobj;
10830 wxDC *arg1 = (wxDC *) 0 ;
10831 wxBrush *arg2 = 0 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 char *kwnames[] = {
10835 (char *) "self",(char *) "brush", NULL
10836 };
10837
10838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
10839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10840 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10841 if (arg2 == NULL) {
10842 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetBackground((wxBrush const &)*arg2);
10847
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 Py_INCREF(Py_None); resultobj = Py_None;
10852 return resultobj;
10853 fail:
10854 return NULL;
10855}
10856
10857
10858static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
10859 PyObject *resultobj;
10860 wxDC *arg1 = (wxDC *) 0 ;
10861 int arg2 ;
10862 PyObject * obj0 = 0 ;
10863 char *kwnames[] = {
10864 (char *) "self",(char *) "mode", NULL
10865 };
10866
10867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail;
10868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 (arg1)->SetBackgroundMode(arg2);
10872
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 Py_INCREF(Py_None); resultobj = Py_None;
10877 return resultobj;
10878 fail:
10879 return NULL;
10880}
10881
10882
10883static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj;
10885 wxDC *arg1 = (wxDC *) 0 ;
10886 wxPalette *arg2 = 0 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 char *kwnames[] = {
10890 (char *) "self",(char *) "palette", NULL
10891 };
10892
10893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
10894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10895 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10896 if (arg2 == NULL) {
10897 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 (arg1)->SetPalette((wxPalette const &)*arg2);
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 Py_INCREF(Py_None); resultobj = Py_None;
10907 return resultobj;
10908 fail:
10909 return NULL;
10910}
10911
10912
0f774bef 10913static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
10914 PyObject *resultobj;
10915 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
10916 int arg2 ;
10917 int arg3 ;
10918 int arg4 ;
10919 int arg5 ;
d14a1e28
RD
10920 PyObject * obj0 = 0 ;
10921 char *kwnames[] = {
10922 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10923 };
10924
0f774bef 10925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
d14a1e28
RD
10926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 Py_INCREF(Py_None); resultobj = Py_None;
10935 return resultobj;
10936 fail:
10937 return NULL;
10938}
10939
10940
0f774bef
RD
10941static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10942 PyObject *resultobj;
10943 wxDC *arg1 = (wxDC *) 0 ;
10944 wxPoint *arg2 = 0 ;
10945 wxSize *arg3 = 0 ;
10946 wxPoint temp2 ;
10947 wxSize temp3 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 PyObject * obj2 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "self",(char *) "pt",(char *) "sz", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
10956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10957 {
10958 arg2 = &temp2;
10959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10960 }
10961 {
10962 arg3 = &temp3;
10963 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10964 }
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
10968
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 Py_INCREF(Py_None); resultobj = Py_None;
10973 return resultobj;
10974 fail:
10975 return NULL;
10976}
10977
10978
d14a1e28
RD
10979static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj;
10981 wxDC *arg1 = (wxDC *) 0 ;
10982 wxRect *arg2 = 0 ;
10983 wxRect temp2 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self",(char *) "rect", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10992 {
10993 arg2 = &temp2;
10994 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10995 }
10996 {
10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
10998 (arg1)->SetClippingRegion((wxRect const &)*arg2);
10999
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 Py_INCREF(Py_None); resultobj = Py_None;
11004 return resultobj;
11005 fail:
11006 return NULL;
11007}
11008
11009
11010static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxDC *arg1 = (wxDC *) 0 ;
11013 wxRegion *arg2 = 0 ;
11014 PyObject * obj0 = 0 ;
11015 PyObject * obj1 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "region", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11022 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11023 if (arg2 == NULL) {
11024 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11025 }
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11029
11030 wxPyEndAllowThreads(__tstate);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 }
11033 Py_INCREF(Py_None); resultobj = Py_None;
11034 return resultobj;
11035 fail:
11036 return NULL;
11037}
11038
11039
11040static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11041 PyObject *resultobj;
11042 wxDC *arg1 = (wxDC *) 0 ;
11043 PyObject * obj0 = 0 ;
11044 char *kwnames[] = {
11045 (char *) "self", NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
11049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->DestroyClippingRegion();
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 Py_INCREF(Py_None); resultobj = Py_None;
11058 return resultobj;
11059 fail:
11060 return NULL;
11061}
11062
11063
11064static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj;
11066 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11067 int *arg2 = (int *) 0 ;
11068 int *arg3 = (int *) 0 ;
11069 int *arg4 = (int *) 0 ;
11070 int *arg5 = (int *) 0 ;
11071 int temp2 ;
11072 int temp3 ;
11073 int temp4 ;
11074 int temp5 ;
d14a1e28
RD
11075 PyObject * obj0 = 0 ;
11076 char *kwnames[] = {
11077 (char *) "self", NULL
11078 };
11079
11080 arg2 = &temp2;
11081 arg3 = &temp3;
11082 arg4 = &temp4;
11083 arg5 = &temp5;
11084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
11085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
11089
11090 wxPyEndAllowThreads(__tstate);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 Py_INCREF(Py_None); resultobj = Py_None;
11094 {
11095 PyObject *o = PyInt_FromLong((long) (*arg2));
11096 resultobj = t_output_helper(resultobj,o);
11097 }
11098 {
11099 PyObject *o = PyInt_FromLong((long) (*arg3));
11100 resultobj = t_output_helper(resultobj,o);
11101 }
11102 {
11103 PyObject *o = PyInt_FromLong((long) (*arg4));
11104 resultobj = t_output_helper(resultobj,o);
11105 }
11106 {
11107 PyObject *o = PyInt_FromLong((long) (*arg5));
11108 resultobj = t_output_helper(resultobj,o);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113}
11114
11115
11116static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxDC *arg1 = (wxDC *) 0 ;
11119 wxRect result;
11120 PyObject * obj0 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = wxDC_GetClippingRect(arg1);
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 wxRect * resultptr;
11136 resultptr = new wxRect((wxRect &) result);
11137 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11138 }
11139 return resultobj;
11140 fail:
11141 return NULL;
11142}
11143
11144
11145static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11146 PyObject *resultobj;
11147 wxDC *arg1 = (wxDC *) 0 ;
423f194a 11148 int result;
d14a1e28
RD
11149 PyObject * obj0 = 0 ;
11150 char *kwnames[] = {
11151 (char *) "self", NULL
11152 };
11153
11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
11155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11158 result = (int)((wxDC const *)arg1)->GetCharHeight();
d14a1e28
RD
11159
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 resultobj = PyInt_FromLong((long)result);
11164 return resultobj;
11165 fail:
11166 return NULL;
11167}
11168
11169
11170static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11171 PyObject *resultobj;
11172 wxDC *arg1 = (wxDC *) 0 ;
423f194a 11173 int result;
d14a1e28
RD
11174 PyObject * obj0 = 0 ;
11175 char *kwnames[] = {
11176 (char *) "self", NULL
11177 };
11178
11179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
11180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11181 {
11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11183 result = (int)((wxDC const *)arg1)->GetCharWidth();
d14a1e28
RD
11184
11185 wxPyEndAllowThreads(__tstate);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 resultobj = PyInt_FromLong((long)result);
11189 return resultobj;
11190 fail:
11191 return NULL;
11192}
11193
11194
11195static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj;
11197 wxDC *arg1 = (wxDC *) 0 ;
11198 wxString *arg2 = 0 ;
423f194a
RD
11199 int *arg3 = (int *) 0 ;
11200 int *arg4 = (int *) 0 ;
11201 bool temp2 = False ;
11202 int temp3 ;
11203 int temp4 ;
d14a1e28
RD
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 char *kwnames[] = {
11207 (char *) "self",(char *) "string", NULL
11208 };
11209
11210 arg3 = &temp3;
11211 arg4 = &temp4;
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11214 {
11215 arg2 = wxString_in_helper(obj1);
11216 if (arg2 == NULL) SWIG_fail;
423f194a 11217 temp2 = True;
d14a1e28
RD
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
11222
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 {
11228 PyObject *o = PyInt_FromLong((long) (*arg3));
11229 resultobj = t_output_helper(resultobj,o);
11230 }
11231 {
11232 PyObject *o = PyInt_FromLong((long) (*arg4));
11233 resultobj = t_output_helper(resultobj,o);
11234 }
11235 {
11236 if (temp2)
11237 delete arg2;
11238 }
11239 return resultobj;
11240 fail:
11241 {
11242 if (temp2)
11243 delete arg2;
11244 }
11245 return NULL;
11246}
11247
11248
11249static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj;
11251 wxDC *arg1 = (wxDC *) 0 ;
11252 wxString *arg2 = 0 ;
423f194a
RD
11253 int *arg3 = (int *) 0 ;
11254 int *arg4 = (int *) 0 ;
11255 int *arg5 = (int *) 0 ;
11256 int *arg6 = (int *) 0 ;
d14a1e28 11257 wxFont *arg7 = (wxFont *) NULL ;
423f194a
RD
11258 bool temp2 = False ;
11259 int temp3 ;
11260 int temp4 ;
11261 int temp5 ;
11262 int temp6 ;
d14a1e28
RD
11263 PyObject * obj0 = 0 ;
11264 PyObject * obj1 = 0 ;
11265 PyObject * obj2 = 0 ;
11266 char *kwnames[] = {
11267 (char *) "self",(char *) "string",(char *) "font", NULL
11268 };
11269
11270 arg3 = &temp3;
11271 arg4 = &temp4;
11272 arg5 = &temp5;
11273 arg6 = &temp6;
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11276 {
11277 arg2 = wxString_in_helper(obj1);
11278 if (arg2 == NULL) SWIG_fail;
423f194a 11279 temp2 = True;
d14a1e28
RD
11280 }
11281 if (obj2) {
11282 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11283 }
11284 {
11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
11286 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
11287
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 Py_INCREF(Py_None); resultobj = Py_None;
11292 {
11293 PyObject *o = PyInt_FromLong((long) (*arg3));
11294 resultobj = t_output_helper(resultobj,o);
11295 }
11296 {
11297 PyObject *o = PyInt_FromLong((long) (*arg4));
11298 resultobj = t_output_helper(resultobj,o);
11299 }
11300 {
11301 PyObject *o = PyInt_FromLong((long) (*arg5));
11302 resultobj = t_output_helper(resultobj,o);
11303 }
11304 {
11305 PyObject *o = PyInt_FromLong((long) (*arg6));
11306 resultobj = t_output_helper(resultobj,o);
11307 }
11308 {
11309 if (temp2)
11310 delete arg2;
11311 }
11312 return resultobj;
11313 fail:
11314 {
11315 if (temp2)
11316 delete arg2;
11317 }
11318 return NULL;
11319}
11320
11321
11322static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj;
11324 wxDC *arg1 = (wxDC *) 0 ;
11325 wxString *arg2 = 0 ;
423f194a
RD
11326 int *arg3 = (int *) 0 ;
11327 int *arg4 = (int *) 0 ;
11328 int *arg5 = (int *) 0 ;
d14a1e28 11329 wxFont *arg6 = (wxFont *) NULL ;
423f194a
RD
11330 bool temp2 = False ;
11331 int temp3 ;
11332 int temp4 ;
11333 int temp5 ;
d14a1e28
RD
11334 PyObject * obj0 = 0 ;
11335 PyObject * obj1 = 0 ;
11336 PyObject * obj2 = 0 ;
11337 char *kwnames[] = {
11338 (char *) "self",(char *) "text",(char *) "font", NULL
11339 };
11340
11341 arg3 = &temp3;
11342 arg4 = &temp4;
11343 arg5 = &temp5;
11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
11345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11346 {
11347 arg2 = wxString_in_helper(obj1);
11348 if (arg2 == NULL) SWIG_fail;
423f194a 11349 temp2 = True;
d14a1e28
RD
11350 }
11351 if (obj2) {
11352 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11353 }
11354 {
11355 PyThreadState* __tstate = wxPyBeginAllowThreads();
11356 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
11357
11358 wxPyEndAllowThreads(__tstate);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 }
11361 Py_INCREF(Py_None); resultobj = Py_None;
11362 {
11363 PyObject *o = PyInt_FromLong((long) (*arg3));
11364 resultobj = t_output_helper(resultobj,o);
11365 }
11366 {
11367 PyObject *o = PyInt_FromLong((long) (*arg4));
11368 resultobj = t_output_helper(resultobj,o);
11369 }
11370 {
11371 PyObject *o = PyInt_FromLong((long) (*arg5));
11372 resultobj = t_output_helper(resultobj,o);
11373 }
11374 {
11375 if (temp2)
11376 delete arg2;
11377 }
11378 return resultobj;
11379 fail:
11380 {
11381 if (temp2)
11382 delete arg2;
11383 }
11384 return NULL;
11385}
11386
11387
44127b65
RD
11388static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11389 PyObject *resultobj;
11390 wxDC *arg1 = (wxDC *) 0 ;
11391 wxSize result;
11392 PyObject * obj0 = 0 ;
11393 char *kwnames[] = {
11394 (char *) "self", NULL
11395 };
11396
11397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
11398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 result = (arg1)->GetSize();
11402
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 {
11407 wxSize * resultptr;
11408 resultptr = new wxSize((wxSize &) result);
11409 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11410 }
11411 return resultobj;
11412 fail:
11413 return NULL;
11414}
11415
11416
d14a1e28
RD
11417static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj;
11419 wxDC *arg1 = (wxDC *) 0 ;
11420 int *arg2 = (int *) 0 ;
11421 int *arg3 = (int *) 0 ;
11422 int temp2 ;
11423 int temp3 ;
11424 PyObject * obj0 = 0 ;
11425 char *kwnames[] = {
11426 (char *) "self", NULL
11427 };
11428
11429 arg2 = &temp2;
11430 arg3 = &temp3;
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 (arg1)->GetSize(arg2,arg3);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 Py_INCREF(Py_None); resultobj = Py_None;
11441 {
11442 PyObject *o = PyInt_FromLong((long) (*arg2));
11443 resultobj = t_output_helper(resultobj,o);
11444 }
11445 {
11446 PyObject *o = PyInt_FromLong((long) (*arg3));
11447 resultobj = t_output_helper(resultobj,o);
11448 }
11449 return resultobj;
11450 fail:
11451 return NULL;
11452}
11453
11454
44127b65 11455static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11456 PyObject *resultobj;
11457 wxDC *arg1 = (wxDC *) 0 ;
11458 wxSize result;
11459 PyObject * obj0 = 0 ;
11460 char *kwnames[] = {
11461 (char *) "self", NULL
11462 };
11463
44127b65 11464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
d14a1e28
RD
11465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11466 {
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 11468 result = ((wxDC const *)arg1)->GetSizeMM();
d14a1e28
RD
11469
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 {
11474 wxSize * resultptr;
11475 resultptr = new wxSize((wxSize &) result);
11476 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11477 }
11478 return resultobj;
11479 fail:
11480 return NULL;
11481}
11482
11483
44127b65 11484static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
11485 PyObject *resultobj;
11486 wxDC *arg1 = (wxDC *) 0 ;
11487 int *arg2 = (int *) 0 ;
11488 int *arg3 = (int *) 0 ;
11489 int temp2 ;
11490 int temp3 ;
11491 PyObject * obj0 = 0 ;
11492 char *kwnames[] = {
11493 (char *) "self", NULL
11494 };
11495
11496 arg2 = &temp2;
11497 arg3 = &temp3;
44127b65 11498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
11499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 Py_INCREF(Py_None); resultobj = Py_None;
11508 {
11509 PyObject *o = PyInt_FromLong((long) (*arg2));
11510 resultobj = t_output_helper(resultobj,o);
11511 }
11512 {
11513 PyObject *o = PyInt_FromLong((long) (*arg3));
11514 resultobj = t_output_helper(resultobj,o);
11515 }
11516 return resultobj;
11517 fail:
11518 return NULL;
11519}
11520
11521
d14a1e28
RD
11522static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
11523 PyObject *resultobj;
11524 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11525 int arg2 ;
11526 int result;
d14a1e28
RD
11527 PyObject * obj0 = 0 ;
11528 char *kwnames[] = {
11529 (char *) "self",(char *) "x", NULL
11530 };
11531
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail;
11533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11534 {
11535 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11536 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
d14a1e28
RD
11537
11538 wxPyEndAllowThreads(__tstate);
11539 if (PyErr_Occurred()) SWIG_fail;
11540 }
11541 resultobj = PyInt_FromLong((long)result);
11542 return resultobj;
11543 fail:
11544 return NULL;
11545}
11546
11547
11548static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj;
11550 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11551 int arg2 ;
11552 int result;
d14a1e28
RD
11553 PyObject * obj0 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self",(char *) "y", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11562 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
d14a1e28
RD
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 resultobj = PyInt_FromLong((long)result);
11568 return resultobj;
11569 fail:
11570 return NULL;
11571}
11572
11573
11574static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11575 PyObject *resultobj;
11576 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11577 int arg2 ;
11578 int result;
d14a1e28
RD
11579 PyObject * obj0 = 0 ;
11580 char *kwnames[] = {
11581 (char *) "self",(char *) "x", NULL
11582 };
11583
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11586 {
11587 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11588 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
d14a1e28
RD
11589
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 resultobj = PyInt_FromLong((long)result);
11594 return resultobj;
11595 fail:
11596 return NULL;
11597}
11598
11599
11600static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj;
11602 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11603 int arg2 ;
11604 int result;
d14a1e28
RD
11605 PyObject * obj0 = 0 ;
11606 char *kwnames[] = {
11607 (char *) "self",(char *) "y", NULL
11608 };
11609
11610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail;
11611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11614 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
d14a1e28
RD
11615
11616 wxPyEndAllowThreads(__tstate);
11617 if (PyErr_Occurred()) SWIG_fail;
11618 }
11619 resultobj = PyInt_FromLong((long)result);
11620 return resultobj;
11621 fail:
11622 return NULL;
11623}
11624
11625
11626static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
11627 PyObject *resultobj;
11628 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11629 int arg2 ;
11630 int result;
d14a1e28
RD
11631 PyObject * obj0 = 0 ;
11632 char *kwnames[] = {
11633 (char *) "self",(char *) "x", NULL
11634 };
11635
11636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail;
11637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11640 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
d14a1e28
RD
11641
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 resultobj = PyInt_FromLong((long)result);
11646 return resultobj;
11647 fail:
11648 return NULL;
11649}
11650
11651
11652static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj;
11654 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11655 int arg2 ;
11656 int result;
d14a1e28
RD
11657 PyObject * obj0 = 0 ;
11658 char *kwnames[] = {
11659 (char *) "self",(char *) "y", NULL
11660 };
11661
11662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail;
11663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11664 {
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11666 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
d14a1e28
RD
11667
11668 wxPyEndAllowThreads(__tstate);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 resultobj = PyInt_FromLong((long)result);
11672 return resultobj;
11673 fail:
11674 return NULL;
11675}
11676
11677
11678static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11679 PyObject *resultobj;
11680 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11681 int arg2 ;
11682 int result;
d14a1e28
RD
11683 PyObject * obj0 = 0 ;
11684 char *kwnames[] = {
11685 (char *) "self",(char *) "x", NULL
11686 };
11687
11688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail;
11689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11692 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
d14a1e28
RD
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 resultobj = PyInt_FromLong((long)result);
11698 return resultobj;
11699 fail:
11700 return NULL;
11701}
11702
11703
11704static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
11705 PyObject *resultobj;
11706 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
11707 int arg2 ;
11708 int result;
d14a1e28
RD
11709 PyObject * obj0 = 0 ;
11710 char *kwnames[] = {
11711 (char *) "self",(char *) "y", NULL
11712 };
11713
11714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail;
11715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 11718 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
d14a1e28
RD
11719
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 resultobj = PyInt_FromLong((long)result);
11724 return resultobj;
11725 fail:
11726 return NULL;
11727}
11728
11729
11730static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11731 PyObject *resultobj;
11732 wxDC *arg1 = (wxDC *) 0 ;
11733 bool result;
11734 PyObject * obj0 = 0 ;
11735 char *kwnames[] = {
11736 (char *) "self", NULL
11737 };
11738
11739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
11740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = PyInt_FromLong((long)result);
11749 return resultobj;
11750 fail:
11751 return NULL;
11752}
11753
11754
11755static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj;
11757 wxDC *arg1 = (wxDC *) 0 ;
11758 bool result;
11759 PyObject * obj0 = 0 ;
11760 char *kwnames[] = {
11761 (char *) "self", NULL
11762 };
11763
11764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
11765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
11769
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = PyInt_FromLong((long)result);
11774 return resultobj;
11775 fail:
11776 return NULL;
11777}
11778
11779
11780static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
11781 PyObject *resultobj;
11782 wxDC *arg1 = (wxDC *) 0 ;
11783 int result;
11784 PyObject * obj0 = 0 ;
11785 char *kwnames[] = {
11786 (char *) "self", NULL
11787 };
11788
11789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
11790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (int)((wxDC const *)arg1)->GetDepth();
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = PyInt_FromLong((long)result);
11799 return resultobj;
11800 fail:
11801 return NULL;
11802}
11803
11804
11805static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj;
11807 wxDC *arg1 = (wxDC *) 0 ;
11808 wxSize result;
11809 PyObject * obj0 = 0 ;
11810 char *kwnames[] = {
11811 (char *) "self", NULL
11812 };
11813
11814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
11815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = ((wxDC const *)arg1)->GetPPI();
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 {
11824 wxSize * resultptr;
11825 resultptr = new wxSize((wxSize &) result);
11826 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
11827 }
11828 return resultobj;
11829 fail:
11830 return NULL;
11831}
11832
11833
11834static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
11835 PyObject *resultobj;
11836 wxDC *arg1 = (wxDC *) 0 ;
11837 bool result;
11838 PyObject * obj0 = 0 ;
11839 char *kwnames[] = {
11840 (char *) "self", NULL
11841 };
11842
11843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
11844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 result = (bool)((wxDC const *)arg1)->Ok();
11848
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = PyInt_FromLong((long)result);
11853 return resultobj;
11854 fail:
11855 return NULL;
11856}
11857
11858
11859static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj;
11861 wxDC *arg1 = (wxDC *) 0 ;
11862 int result;
11863 PyObject * obj0 = 0 ;
11864 char *kwnames[] = {
11865 (char *) "self", NULL
11866 };
11867
11868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
11869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
11873
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 resultobj = PyInt_FromLong((long)result);
11878 return resultobj;
11879 fail:
11880 return NULL;
11881}
11882
11883
11884static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11885 PyObject *resultobj;
11886 wxDC *arg1 = (wxDC *) 0 ;
11887 wxBrush *result;
11888 PyObject * obj0 = 0 ;
11889 char *kwnames[] = {
11890 (char *) "self", NULL
11891 };
11892
11893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
11894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11895 {
11896 PyThreadState* __tstate = wxPyBeginAllowThreads();
11897 {
11898 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
11899 result = (wxBrush *) &_result_ref;
11900 }
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11906 return resultobj;
11907 fail:
11908 return NULL;
11909}
11910
11911
11912static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxDC *arg1 = (wxDC *) 0 ;
11915 wxBrush *result;
11916 PyObject * obj0 = 0 ;
11917 char *kwnames[] = {
11918 (char *) "self", NULL
11919 };
11920
11921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
11922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 {
11926 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
11927 result = (wxBrush *) &_result_ref;
11928 }
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
11934 return resultobj;
11935 fail:
11936 return NULL;
11937}
11938
11939
11940static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11941 PyObject *resultobj;
11942 wxDC *arg1 = (wxDC *) 0 ;
11943 wxFont *result;
11944 PyObject * obj0 = 0 ;
11945 char *kwnames[] = {
11946 (char *) "self", NULL
11947 };
11948
11949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
11950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 {
11954 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
11955 result = (wxFont *) &_result_ref;
11956 }
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
11962 return resultobj;
11963 fail:
11964 return NULL;
11965}
11966
11967
11968static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj;
11970 wxDC *arg1 = (wxDC *) 0 ;
11971 wxPen *result;
11972 PyObject * obj0 = 0 ;
11973 char *kwnames[] = {
11974 (char *) "self", NULL
11975 };
11976
11977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
11978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 {
11982 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
11983 result = (wxPen *) &_result_ref;
11984 }
11985
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
11990 return resultobj;
11991 fail:
11992 return NULL;
11993}
11994
11995
11996static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
11997 PyObject *resultobj;
11998 wxDC *arg1 = (wxDC *) 0 ;
11999 wxColour *result;
12000 PyObject * obj0 = 0 ;
12001 char *kwnames[] = {
12002 (char *) "self", NULL
12003 };
12004
12005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
12006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 {
12010 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
12011 result = (wxColour *) &_result_ref;
12012 }
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12018 return resultobj;
12019 fail:
12020 return NULL;
12021}
12022
12023
12024static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12025 PyObject *resultobj;
12026 wxDC *arg1 = (wxDC *) 0 ;
12027 wxColour *result;
12028 PyObject * obj0 = 0 ;
12029 char *kwnames[] = {
12030 (char *) "self", NULL
12031 };
12032
12033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
12034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 {
12038 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
12039 result = (wxColour *) &_result_ref;
12040 }
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
12045 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
12046 return resultobj;
12047 fail:
12048 return NULL;
12049}
12050
12051
12052static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12053 PyObject *resultobj;
12054 wxDC *arg1 = (wxDC *) 0 ;
12055 wxColour *arg2 = 0 ;
12056 wxColour temp2 ;
12057 PyObject * obj0 = 0 ;
12058 PyObject * obj1 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "self",(char *) "colour", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
12064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12065 {
12066 arg2 = &temp2;
12067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12068 }
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 (arg1)->SetTextForeground((wxColour const &)*arg2);
12072
12073 wxPyEndAllowThreads(__tstate);
12074 if (PyErr_Occurred()) SWIG_fail;
12075 }
12076 Py_INCREF(Py_None); resultobj = Py_None;
12077 return resultobj;
12078 fail:
12079 return NULL;
12080}
12081
12082
12083static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12084 PyObject *resultobj;
12085 wxDC *arg1 = (wxDC *) 0 ;
12086 wxColour *arg2 = 0 ;
12087 wxColour temp2 ;
12088 PyObject * obj0 = 0 ;
12089 PyObject * obj1 = 0 ;
12090 char *kwnames[] = {
12091 (char *) "self",(char *) "colour", NULL
12092 };
12093
12094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
12095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12096 {
12097 arg2 = &temp2;
12098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12099 }
12100 {
12101 PyThreadState* __tstate = wxPyBeginAllowThreads();
12102 (arg1)->SetTextBackground((wxColour const &)*arg2);
12103
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 Py_INCREF(Py_None); resultobj = Py_None;
12108 return resultobj;
12109 fail:
12110 return NULL;
12111}
12112
12113
12114static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxDC *arg1 = (wxDC *) 0 ;
12117 int result;
12118 PyObject * obj0 = 0 ;
12119 char *kwnames[] = {
12120 (char *) "self", NULL
12121 };
12122
12123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
12124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (int)((wxDC const *)arg1)->GetMapMode();
12128
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 resultobj = PyInt_FromLong((long)result);
12133 return resultobj;
12134 fail:
12135 return NULL;
12136}
12137
12138
12139static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12140 PyObject *resultobj;
12141 wxDC *arg1 = (wxDC *) 0 ;
12142 int arg2 ;
12143 PyObject * obj0 = 0 ;
12144 char *kwnames[] = {
12145 (char *) "self",(char *) "mode", NULL
12146 };
12147
12148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail;
12149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 (arg1)->SetMapMode(arg2);
12153
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 Py_INCREF(Py_None); resultobj = Py_None;
12158 return resultobj;
12159 fail:
12160 return NULL;
12161}
12162
12163
12164static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12165 PyObject *resultobj;
12166 wxDC *arg1 = (wxDC *) 0 ;
12167 double *arg2 = (double *) 0 ;
12168 double *arg3 = (double *) 0 ;
12169 double temp2 ;
12170 double temp3 ;
12171 PyObject * obj0 = 0 ;
12172 char *kwnames[] = {
12173 (char *) "self", NULL
12174 };
12175
12176 arg2 = &temp2;
12177 arg3 = &temp3;
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
12183
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 Py_INCREF(Py_None); resultobj = Py_None;
12188 {
12189 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12190 resultobj = t_output_helper(resultobj,o);
12191 }
12192 {
12193 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12194 resultobj = t_output_helper(resultobj,o);
12195 }
12196 return resultobj;
12197 fail:
12198 return NULL;
12199}
12200
12201
12202static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12203 PyObject *resultobj;
12204 wxDC *arg1 = (wxDC *) 0 ;
12205 double arg2 ;
12206 double arg3 ;
12207 PyObject * obj0 = 0 ;
12208 char *kwnames[] = {
12209 (char *) "self",(char *) "x",(char *) "y", NULL
12210 };
12211
12212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 (arg1)->SetUserScale(arg2,arg3);
12217
12218 wxPyEndAllowThreads(__tstate);
12219 if (PyErr_Occurred()) SWIG_fail;
12220 }
12221 Py_INCREF(Py_None); resultobj = Py_None;
12222 return resultobj;
12223 fail:
12224 return NULL;
12225}
12226
12227
12228static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12229 PyObject *resultobj;
12230 wxDC *arg1 = (wxDC *) 0 ;
12231 double *arg2 = (double *) 0 ;
12232 double *arg3 = (double *) 0 ;
12233 double temp2 ;
12234 double temp3 ;
12235 PyObject * obj0 = 0 ;
12236 char *kwnames[] = {
12237 (char *) "self", NULL
12238 };
12239
12240 arg2 = &temp2;
12241 arg3 = &temp3;
12242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
12243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 (arg1)->GetLogicalScale(arg2,arg3);
12247
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 Py_INCREF(Py_None); resultobj = Py_None;
12252 {
12253 PyObject *o = PyFloat_FromDouble((double) (*arg2));
12254 resultobj = t_output_helper(resultobj,o);
12255 }
12256 {
12257 PyObject *o = PyFloat_FromDouble((double) (*arg3));
12258 resultobj = t_output_helper(resultobj,o);
12259 }
12260 return resultobj;
12261 fail:
12262 return NULL;
12263}
12264
12265
12266static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
12267 PyObject *resultobj;
12268 wxDC *arg1 = (wxDC *) 0 ;
12269 double arg2 ;
12270 double arg3 ;
12271 PyObject * obj0 = 0 ;
12272 char *kwnames[] = {
12273 (char *) "self",(char *) "x",(char *) "y", NULL
12274 };
12275
12276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail;
12277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 (arg1)->SetLogicalScale(arg2,arg3);
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 Py_INCREF(Py_None); resultobj = Py_None;
12286 return resultobj;
12287 fail:
12288 return NULL;
12289}
12290
12291
44127b65 12292static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12293 PyObject *resultobj;
12294 wxDC *arg1 = (wxDC *) 0 ;
44127b65 12295 wxPoint result;
d14a1e28
RD
12296 PyObject * obj0 = 0 ;
12297 char *kwnames[] = {
12298 (char *) "self", NULL
12299 };
12300
44127b65 12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
d14a1e28
RD
12302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 12305 result = ((wxDC const *)arg1)->GetLogicalOrigin();
d14a1e28
RD
12306
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
d14a1e28 12310 {
44127b65
RD
12311 wxPoint * resultptr;
12312 resultptr = new wxPoint((wxPoint &) result);
12313 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
12314 }
12315 return resultobj;
12316 fail:
12317 return NULL;
12318}
12319
12320
44127b65 12321static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12322 PyObject *resultobj;
12323 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
12324 int *arg2 = (int *) 0 ;
12325 int *arg3 = (int *) 0 ;
12326 int temp2 ;
12327 int temp3 ;
d14a1e28
RD
12328 PyObject * obj0 = 0 ;
12329 char *kwnames[] = {
12330 (char *) "self", NULL
12331 };
12332
44127b65
RD
12333 arg2 = &temp2;
12334 arg3 = &temp3;
12335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
12336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 12339 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
d14a1e28
RD
12340
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
44127b65 12344 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 12345 {
44127b65
RD
12346 PyObject *o = PyInt_FromLong((long) (*arg2));
12347 resultobj = t_output_helper(resultobj,o);
12348 }
12349 {
12350 PyObject *o = PyInt_FromLong((long) (*arg3));
12351 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
12352 }
12353 return resultobj;
12354 fail:
12355 return NULL;
12356}
12357
12358
12359static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj;
12361 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
12362 int arg2 ;
12363 int arg3 ;
d14a1e28
RD
12364 PyObject * obj0 = 0 ;
12365 char *kwnames[] = {
12366 (char *) "self",(char *) "x",(char *) "y", NULL
12367 };
12368
12369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 (arg1)->SetLogicalOrigin(arg2,arg3);
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 Py_INCREF(Py_None); resultobj = Py_None;
12379 return resultobj;
12380 fail:
12381 return NULL;
12382}
12383
12384
44127b65 12385static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12386 PyObject *resultobj;
12387 wxDC *arg1 = (wxDC *) 0 ;
44127b65 12388 wxPoint result;
d14a1e28
RD
12389 PyObject * obj0 = 0 ;
12390 char *kwnames[] = {
12391 (char *) "self", NULL
12392 };
12393
44127b65 12394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
d14a1e28
RD
12395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 12398 result = ((wxDC const *)arg1)->GetDeviceOrigin();
d14a1e28
RD
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
d14a1e28 12403 {
44127b65
RD
12404 wxPoint * resultptr;
12405 resultptr = new wxPoint((wxPoint &) result);
12406 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
12407 }
12408 return resultobj;
12409 fail:
12410 return NULL;
12411}
12412
12413
44127b65 12414static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
12415 PyObject *resultobj;
12416 wxDC *arg1 = (wxDC *) 0 ;
44127b65
RD
12417 int *arg2 = (int *) 0 ;
12418 int *arg3 = (int *) 0 ;
12419 int temp2 ;
12420 int temp3 ;
d14a1e28
RD
12421 PyObject * obj0 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "self", NULL
12424 };
12425
44127b65
RD
12426 arg2 = &temp2;
12427 arg3 = &temp3;
12428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
d14a1e28
RD
12429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 12432 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
d14a1e28
RD
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
44127b65 12437 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28 12438 {
44127b65
RD
12439 PyObject *o = PyInt_FromLong((long) (*arg2));
12440 resultobj = t_output_helper(resultobj,o);
12441 }
12442 {
12443 PyObject *o = PyInt_FromLong((long) (*arg3));
12444 resultobj = t_output_helper(resultobj,o);
d14a1e28
RD
12445 }
12446 return resultobj;
12447 fail:
12448 return NULL;
12449}
12450
12451
12452static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj;
12454 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
12455 int arg2 ;
12456 int arg3 ;
d14a1e28
RD
12457 PyObject * obj0 = 0 ;
12458 char *kwnames[] = {
12459 (char *) "self",(char *) "x",(char *) "y", NULL
12460 };
12461
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail;
12463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 (arg1)->SetDeviceOrigin(arg2,arg3);
12467
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 Py_INCREF(Py_None); resultobj = Py_None;
12472 return resultobj;
12473 fail:
12474 return NULL;
12475}
12476
12477
12478static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12479 PyObject *resultobj;
12480 wxDC *arg1 = (wxDC *) 0 ;
12481 bool arg2 ;
12482 bool arg3 ;
12483 PyObject * obj0 = 0 ;
12484 PyObject * obj1 = 0 ;
12485 PyObject * obj2 = 0 ;
12486 char *kwnames[] = {
12487 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
12488 };
12489
12490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
12491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12492 arg2 = PyInt_AsLong(obj1) ? true : false;
12493 if (PyErr_Occurred()) SWIG_fail;
12494 arg3 = PyInt_AsLong(obj2) ? true : false;
12495 if (PyErr_Occurred()) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->SetAxisOrientation(arg2,arg3);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 Py_INCREF(Py_None); resultobj = Py_None;
12504 return resultobj;
12505 fail:
12506 return NULL;
12507}
12508
12509
12510static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 int result;
12514 PyObject * obj0 = 0 ;
12515 char *kwnames[] = {
12516 (char *) "self", NULL
12517 };
12518
12519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
12520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 resultobj = PyInt_FromLong((long)result);
12529 return resultobj;
12530 fail:
12531 return NULL;
12532}
12533
12534
12535static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj;
12537 wxDC *arg1 = (wxDC *) 0 ;
12538 int arg2 ;
12539 PyObject * obj0 = 0 ;
12540 char *kwnames[] = {
12541 (char *) "self",(char *) "function", NULL
12542 };
12543
12544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail;
12545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetLogicalFunction(arg2);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557}
12558
12559
12560static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxDC *arg1 = (wxDC *) 0 ;
12563 bool arg2 ;
12564 PyObject * obj0 = 0 ;
12565 PyObject * obj1 = 0 ;
12566 char *kwnames[] = {
12567 (char *) "self",(char *) "opt", NULL
12568 };
12569
12570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
12571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12572 arg2 = PyInt_AsLong(obj1) ? true : false;
12573 if (PyErr_Occurred()) SWIG_fail;
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetOptimization(arg2);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 Py_INCREF(Py_None); resultobj = Py_None;
12582 return resultobj;
12583 fail:
12584 return NULL;
12585}
12586
12587
12588static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj;
12590 wxDC *arg1 = (wxDC *) 0 ;
12591 bool result;
12592 PyObject * obj0 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 result = (bool)(arg1)->GetOptimization();
12602
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = PyInt_FromLong((long)result);
12607 return resultobj;
12608 fail:
12609 return NULL;
12610}
12611
12612
12613static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12614 PyObject *resultobj;
12615 wxDC *arg1 = (wxDC *) 0 ;
423f194a
RD
12616 int arg2 ;
12617 int arg3 ;
d14a1e28
RD
12618 PyObject * obj0 = 0 ;
12619 char *kwnames[] = {
12620 (char *) "self",(char *) "x",(char *) "y", NULL
12621 };
12622
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail;
12624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 (arg1)->CalcBoundingBox(arg2,arg3);
12628
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 Py_INCREF(Py_None); resultobj = Py_None;
12633 return resultobj;
12634 fail:
12635 return NULL;
12636}
12637
12638
12639static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj;
12641 wxDC *arg1 = (wxDC *) 0 ;
12642 PyObject * obj0 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self", NULL
12645 };
12646
12647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
12648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->ResetBoundingBox();
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 Py_INCREF(Py_None); resultobj = Py_None;
12657 return resultobj;
12658 fail:
12659 return NULL;
12660}
12661
12662
12663static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
12664 PyObject *resultobj;
12665 wxDC *arg1 = (wxDC *) 0 ;
423f194a 12666 int result;
d14a1e28
RD
12667 PyObject * obj0 = 0 ;
12668 char *kwnames[] = {
12669 (char *) "self", NULL
12670 };
12671
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
12673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12674 {
12675 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 12676 result = (int)((wxDC const *)arg1)->MinX();
d14a1e28
RD
12677
12678 wxPyEndAllowThreads(__tstate);
12679 if (PyErr_Occurred()) SWIG_fail;
12680 }
12681 resultobj = PyInt_FromLong((long)result);
12682 return resultobj;
12683 fail:
12684 return NULL;
12685}
12686
12687
12688static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
12689 PyObject *resultobj;
12690 wxDC *arg1 = (wxDC *) 0 ;
423f194a 12691 int result;
d14a1e28
RD
12692 PyObject * obj0 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
12698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 12701 result = (int)((wxDC const *)arg1)->MaxX();
d14a1e28
RD
12702
12703 wxPyEndAllowThreads(__tstate);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 resultobj = PyInt_FromLong((long)result);
12707 return resultobj;
12708 fail:
12709 return NULL;
12710}
12711
12712
12713static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
12714 PyObject *resultobj;
12715 wxDC *arg1 = (wxDC *) 0 ;
423f194a 12716 int result;
d14a1e28
RD
12717 PyObject * obj0 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "self", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 12726 result = (int)((wxDC const *)arg1)->MinY();
d14a1e28
RD
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = PyInt_FromLong((long)result);
12732 return resultobj;
12733 fail:
12734 return NULL;
12735}
12736
12737
12738static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj;
12740 wxDC *arg1 = (wxDC *) 0 ;
423f194a 12741 int result;
d14a1e28
RD
12742 PyObject * obj0 = 0 ;
12743 char *kwnames[] = {
12744 (char *) "self", NULL
12745 };
12746
12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
12748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12749 {
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 12751 result = (int)((wxDC const *)arg1)->MaxY();
d14a1e28
RD
12752
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 resultobj = PyInt_FromLong((long)result);
12757 return resultobj;
12758 fail:
12759 return NULL;
12760}
12761
12762
12763static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj;
12765 wxDC *arg1 = (wxDC *) 0 ;
12766 int *arg2 = (int *) 0 ;
12767 int *arg3 = (int *) 0 ;
12768 int *arg4 = (int *) 0 ;
12769 int *arg5 = (int *) 0 ;
12770 int temp2 ;
12771 int temp3 ;
12772 int temp4 ;
12773 int temp5 ;
12774 PyObject * obj0 = 0 ;
12775 char *kwnames[] = {
12776 (char *) "self", NULL
12777 };
12778
12779 arg2 = &temp2;
12780 arg3 = &temp3;
12781 arg4 = &temp4;
12782 arg5 = &temp5;
12783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
12784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12785 {
12786 PyThreadState* __tstate = wxPyBeginAllowThreads();
12787 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
12788
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 Py_INCREF(Py_None); resultobj = Py_None;
12793 {
12794 PyObject *o = PyInt_FromLong((long) (*arg2));
12795 resultobj = t_output_helper(resultobj,o);
12796 }
12797 {
12798 PyObject *o = PyInt_FromLong((long) (*arg3));
12799 resultobj = t_output_helper(resultobj,o);
12800 }
12801 {
12802 PyObject *o = PyInt_FromLong((long) (*arg4));
12803 resultobj = t_output_helper(resultobj,o);
12804 }
12805 {
12806 PyObject *o = PyInt_FromLong((long) (*arg5));
12807 resultobj = t_output_helper(resultobj,o);
12808 }
12809 return resultobj;
12810 fail:
12811 return NULL;
12812}
12813
12814
12815static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
12816 PyObject *resultobj;
12817 wxDC *arg1 = (wxDC *) 0 ;
12818 PyObject *arg2 = (PyObject *) 0 ;
12819 PyObject *arg3 = (PyObject *) 0 ;
12820 PyObject *arg4 = (PyObject *) 0 ;
12821 PyObject *result;
12822 PyObject * obj0 = 0 ;
12823 PyObject * obj1 = 0 ;
12824 PyObject * obj2 = 0 ;
12825 PyObject * obj3 = 0 ;
12826 char *kwnames[] = {
12827 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12828 };
12829
12830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12832 arg2 = obj1;
12833 arg3 = obj2;
12834 arg4 = obj3;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 resultobj = result;
12843 return resultobj;
12844 fail:
12845 return NULL;
12846}
12847
12848
12849static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
12850 PyObject *resultobj;
12851 wxDC *arg1 = (wxDC *) 0 ;
12852 PyObject *arg2 = (PyObject *) 0 ;
12853 PyObject *arg3 = (PyObject *) 0 ;
12854 PyObject *arg4 = (PyObject *) 0 ;
12855 PyObject *result;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 PyObject * obj2 = 0 ;
12859 PyObject * obj3 = 0 ;
12860 char *kwnames[] = {
12861 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12862 };
12863
12864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12866 arg2 = obj1;
12867 arg3 = obj2;
12868 arg4 = obj3;
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
12872
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 resultobj = result;
12877 return resultobj;
12878 fail:
12879 return NULL;
12880}
12881
12882
12883static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj;
12885 wxDC *arg1 = (wxDC *) 0 ;
12886 PyObject *arg2 = (PyObject *) 0 ;
12887 PyObject *arg3 = (PyObject *) 0 ;
12888 PyObject *arg4 = (PyObject *) 0 ;
12889 PyObject *result;
12890 PyObject * obj0 = 0 ;
12891 PyObject * obj1 = 0 ;
12892 PyObject * obj2 = 0 ;
12893 PyObject * obj3 = 0 ;
12894 char *kwnames[] = {
12895 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12896 };
12897
12898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12900 arg2 = obj1;
12901 arg3 = obj2;
12902 arg4 = obj3;
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
12906
12907 wxPyEndAllowThreads(__tstate);
12908 if (PyErr_Occurred()) SWIG_fail;
12909 }
12910 resultobj = result;
12911 return resultobj;
12912 fail:
12913 return NULL;
12914}
12915
12916
12917static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
12918 PyObject *resultobj;
12919 wxDC *arg1 = (wxDC *) 0 ;
12920 PyObject *arg2 = (PyObject *) 0 ;
12921 PyObject *arg3 = (PyObject *) 0 ;
12922 PyObject *arg4 = (PyObject *) 0 ;
12923 PyObject *result;
12924 PyObject * obj0 = 0 ;
12925 PyObject * obj1 = 0 ;
12926 PyObject * obj2 = 0 ;
12927 PyObject * obj3 = 0 ;
12928 char *kwnames[] = {
12929 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12930 };
12931
12932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12934 arg2 = obj1;
12935 arg3 = obj2;
12936 arg4 = obj3;
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = result;
12945 return resultobj;
12946 fail:
12947 return NULL;
12948}
12949
12950
12951static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj;
12953 wxDC *arg1 = (wxDC *) 0 ;
12954 PyObject *arg2 = (PyObject *) 0 ;
12955 PyObject *arg3 = (PyObject *) 0 ;
12956 PyObject *arg4 = (PyObject *) 0 ;
12957 PyObject *result;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960 PyObject * obj2 = 0 ;
12961 PyObject * obj3 = 0 ;
12962 char *kwnames[] = {
12963 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
12964 };
12965
12966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12968 arg2 = obj1;
12969 arg3 = obj2;
12970 arg4 = obj3;
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
12974
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 resultobj = result;
12979 return resultobj;
12980 fail:
12981 return NULL;
12982}
12983
12984
12985static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
12986 PyObject *resultobj;
12987 wxDC *arg1 = (wxDC *) 0 ;
12988 PyObject *arg2 = (PyObject *) 0 ;
12989 PyObject *arg3 = (PyObject *) 0 ;
12990 PyObject *arg4 = (PyObject *) 0 ;
12991 PyObject *arg5 = (PyObject *) 0 ;
12992 PyObject *result;
12993 PyObject * obj0 = 0 ;
12994 PyObject * obj1 = 0 ;
12995 PyObject * obj2 = 0 ;
12996 PyObject * obj3 = 0 ;
12997 PyObject * obj4 = 0 ;
12998 char *kwnames[] = {
12999 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
13000 };
13001
13002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13004 arg2 = obj1;
13005 arg3 = obj2;
13006 arg4 = obj3;
13007 arg5 = obj4;
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = result;
13016 return resultobj;
13017 fail:
13018 return NULL;
13019}
13020
13021
13022static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
13023 PyObject *obj;
13024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13025 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
13026 Py_INCREF(obj);
13027 return Py_BuildValue((char *)"");
13028}
13029static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13030 PyObject *resultobj;
13031 wxMemoryDC *result;
13032 char *kwnames[] = {
13033 NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (wxMemoryDC *)new wxMemoryDC();
13040
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13045 return resultobj;
13046 fail:
13047 return NULL;
13048}
13049
13050
13051static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj;
13053 wxDC *arg1 = (wxDC *) 0 ;
13054 wxMemoryDC *result;
13055 PyObject * obj0 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "oldDC", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",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 = (wxMemoryDC *)new wxMemoryDC(arg1);
13065
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
13070 return resultobj;
13071 fail:
13072 return NULL;
13073}
13074
13075
13076static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
13079 wxBitmap *arg2 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "bitmap", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13088 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13089 if (arg2 == NULL) {
13090 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 (arg1)->SelectObject((wxBitmap const &)*arg2);
13095
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 Py_INCREF(Py_None); resultobj = Py_None;
13100 return resultobj;
13101 fail:
13102 return NULL;
13103}
13104
13105
13106static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
13107 PyObject *obj;
13108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13109 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
13110 Py_INCREF(obj);
13111 return Py_BuildValue((char *)"");
13112}
13113static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj;
13115 wxDC *arg1 = (wxDC *) 0 ;
13116 wxBitmap *arg2 = 0 ;
13117 wxBufferedDC *result;
13118 PyObject * obj0 = 0 ;
13119 PyObject * obj1 = 0 ;
13120 char *kwnames[] = {
13121 (char *) "dc",(char *) "buffer", NULL
13122 };
13123
13124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
13125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13126 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13127 if (arg2 == NULL) {
13128 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13129 }
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13138 return resultobj;
13139 fail:
13140 return NULL;
13141}
13142
13143
13144static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxDC *arg1 = (wxDC *) 0 ;
13147 wxSize *arg2 = 0 ;
13148 wxBufferedDC *result;
13149 wxSize temp2 ;
13150 PyObject * obj0 = 0 ;
13151 PyObject * obj1 = 0 ;
13152 char *kwnames[] = {
13153 (char *) "dc",(char *) "area", NULL
13154 };
13155
13156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
13157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13158 {
13159 arg2 = &temp2;
13160 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
13165
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
13170 return resultobj;
13171 fail:
13172 return NULL;
13173}
13174
13175
13176static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13177 PyObject *resultobj;
13178 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
13179 PyObject * obj0 = 0 ;
13180 char *kwnames[] = {
13181 (char *) "self", NULL
13182 };
13183
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
13185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 (arg1)->UnMask();
13189
13190 wxPyEndAllowThreads(__tstate);
13191 if (PyErr_Occurred()) SWIG_fail;
13192 }
13193 Py_INCREF(Py_None); resultobj = Py_None;
13194 return resultobj;
13195 fail:
13196 return NULL;
13197}
13198
13199
13200static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
13201 PyObject *obj;
13202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13203 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
13204 Py_INCREF(obj);
13205 return Py_BuildValue((char *)"");
13206}
13207static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxWindow *arg1 = (wxWindow *) 0 ;
13210 wxBitmap const &arg2_defvalue = wxNullBitmap ;
13211 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
13212 wxBufferedPaintDC *result;
13213 PyObject * obj0 = 0 ;
13214 PyObject * obj1 = 0 ;
13215 char *kwnames[] = {
13216 (char *) "window",(char *) "buffer", NULL
13217 };
13218
13219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
13220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13221 if (obj1) {
13222 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13223 if (arg2 == NULL) {
13224 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13225 }
13226 }
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
13235 return resultobj;
13236 fail:
13237 return NULL;
13238}
13239
13240
13241static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
13242 PyObject *obj;
13243 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13244 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
13245 Py_INCREF(obj);
13246 return Py_BuildValue((char *)"");
13247}
13248static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13249 PyObject *resultobj;
13250 wxScreenDC *result;
13251 char *kwnames[] = {
13252 NULL
13253 };
13254
13255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 result = (wxScreenDC *)new wxScreenDC();
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
13264 return resultobj;
13265 fail:
13266 return NULL;
13267}
13268
13269
13270static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj;
13272 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13273 wxWindow *arg2 = (wxWindow *) 0 ;
13274 bool result;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self",(char *) "window", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13283 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 resultobj = PyInt_FromLong((long)result);
13292 return resultobj;
13293 fail:
13294 return NULL;
13295}
13296
13297
13298static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13301 wxRect *arg2 = (wxRect *) NULL ;
13302 bool result;
13303 PyObject * obj0 = 0 ;
13304 PyObject * obj1 = 0 ;
13305 char *kwnames[] = {
13306 (char *) "self",(char *) "rect", NULL
13307 };
13308
13309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
13310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13311 if (obj1) {
13312 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (bool)(arg1)->StartDrawingOnTop(arg2);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 resultobj = PyInt_FromLong((long)result);
13322 return resultobj;
13323 fail:
13324 return NULL;
13325}
13326
13327
13328static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
13329 PyObject *resultobj;
13330 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
13331 bool result;
13332 PyObject * obj0 = 0 ;
13333 char *kwnames[] = {
13334 (char *) "self", NULL
13335 };
13336
13337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
13338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (bool)(arg1)->EndDrawingOnTop();
13342
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = PyInt_FromLong((long)result);
13347 return resultobj;
13348 fail:
13349 return NULL;
13350}
13351
13352
13353static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
13354 PyObject *obj;
13355 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13356 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
13357 Py_INCREF(obj);
13358 return Py_BuildValue((char *)"");
13359}
13360static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxWindow *arg1 = (wxWindow *) 0 ;
13363 wxClientDC *result;
13364 PyObject * obj0 = 0 ;
13365 char *kwnames[] = {
13366 (char *) "win", NULL
13367 };
13368
13369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
13370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (wxClientDC *)new wxClientDC(arg1);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
13379 return resultobj;
13380 fail:
13381 return NULL;
13382}
13383
13384
13385static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
13386 PyObject *obj;
13387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13388 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
13389 Py_INCREF(obj);
13390 return Py_BuildValue((char *)"");
13391}
13392static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxWindow *arg1 = (wxWindow *) 0 ;
13395 wxPaintDC *result;
13396 PyObject * obj0 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "win", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 result = (wxPaintDC *)new wxPaintDC(arg1);
13406
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
13411 return resultobj;
13412 fail:
13413 return NULL;
13414}
13415
13416
13417static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
13418 PyObject *obj;
13419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13420 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
13421 Py_INCREF(obj);
13422 return Py_BuildValue((char *)"");
13423}
13424static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13425 PyObject *resultobj;
13426 wxWindow *arg1 = (wxWindow *) 0 ;
13427 wxWindowDC *result;
13428 PyObject * obj0 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "win", NULL
13431 };
13432
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13435 {
13436 PyThreadState* __tstate = wxPyBeginAllowThreads();
13437 result = (wxWindowDC *)new wxWindowDC(arg1);
13438
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
13443 return resultobj;
13444 fail:
13445 return NULL;
13446}
13447
13448
13449static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
13450 PyObject *obj;
13451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13452 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
13453 Py_INCREF(obj);
13454 return Py_BuildValue((char *)"");
13455}
13456static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj;
13458 wxDC *arg1 = 0 ;
13459 bool arg2 ;
13460 wxMirrorDC *result;
13461 PyObject * obj0 = 0 ;
13462 PyObject * obj1 = 0 ;
13463 char *kwnames[] = {
13464 (char *) "dc",(char *) "mirror", NULL
13465 };
13466
13467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
13468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13469 if (arg1 == NULL) {
13470 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13471 }
13472 arg2 = PyInt_AsLong(obj1) ? true : false;
13473 if (PyErr_Occurred()) SWIG_fail;
13474 {
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
13477
13478 wxPyEndAllowThreads(__tstate);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 }
13481 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
13482 return resultobj;
13483 fail:
13484 return NULL;
13485}
13486
13487
13488static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
13489 PyObject *obj;
13490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13491 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
13492 Py_INCREF(obj);
13493 return Py_BuildValue((char *)"");
13494}
13495static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 wxPrintData *arg1 = 0 ;
13498 wxPostScriptDC *result;
13499 PyObject * obj0 = 0 ;
13500 char *kwnames[] = {
13501 (char *) "printData", NULL
13502 };
13503
13504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
13505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13506 if (arg1 == NULL) {
13507 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13508 }
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
13512
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
13517 return resultobj;
13518 fail:
13519 return NULL;
13520}
13521
13522
13523static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj;
13525 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13526 wxPrintData *result;
13527 PyObject * obj0 = 0 ;
13528 char *kwnames[] = {
13529 (char *) "self", NULL
13530 };
13531
13532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
13533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 {
13537 wxPrintData &_result_ref = (arg1)->GetPrintData();
13538 result = (wxPrintData *) &_result_ref;
13539 }
13540
13541 wxPyEndAllowThreads(__tstate);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
13545 return resultobj;
13546 fail:
13547 return NULL;
13548}
13549
13550
13551static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
13552 PyObject *resultobj;
13553 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
13554 wxPrintData *arg2 = 0 ;
13555 PyObject * obj0 = 0 ;
13556 PyObject * obj1 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self",(char *) "data", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13563 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13564 if (arg2 == NULL) {
13565 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13566 }
13567 {
13568 PyThreadState* __tstate = wxPyBeginAllowThreads();
13569 (arg1)->SetPrintData((wxPrintData const &)*arg2);
13570
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 Py_INCREF(Py_None); resultobj = Py_None;
13575 return resultobj;
13576 fail:
13577 return NULL;
13578}
13579
13580
13581static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj;
13583 int arg1 ;
13584 char *kwnames[] = {
13585 (char *) "ppi", NULL
13586 };
13587
13588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail;
13589 {
13590 PyThreadState* __tstate = wxPyBeginAllowThreads();
13591 wxPostScriptDC::SetResolution(arg1);
13592
13593 wxPyEndAllowThreads(__tstate);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 Py_INCREF(Py_None); resultobj = Py_None;
13597 return resultobj;
13598 fail:
13599 return NULL;
13600}
13601
13602
13603static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
13604 PyObject *resultobj;
13605 int result;
13606 char *kwnames[] = {
13607 NULL
13608 };
13609
13610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
13611 {
13612 PyThreadState* __tstate = wxPyBeginAllowThreads();
13613 result = (int)wxPostScriptDC::GetResolution();
13614
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
13618 resultobj = PyInt_FromLong((long)result);
13619 return resultobj;
13620 fail:
13621 return NULL;
13622}
13623
13624
13625static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
13626 PyObject *obj;
13627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13628 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
13629 Py_INCREF(obj);
13630 return Py_BuildValue((char *)"");
13631}
13632static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
13633 PyObject *resultobj;
13634 wxString const &arg1_defvalue = wxPyEmptyString ;
13635 wxString *arg1 = (wxString *) &arg1_defvalue ;
13636 wxMetaFile *result;
423f194a 13637 bool temp1 = False ;
d14a1e28
RD
13638 PyObject * obj0 = 0 ;
13639 char *kwnames[] = {
13640 (char *) "filename", NULL
13641 };
13642
13643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
13644 if (obj0) {
13645 {
13646 arg1 = wxString_in_helper(obj0);
13647 if (arg1 == NULL) SWIG_fail;
423f194a 13648 temp1 = True;
d14a1e28
RD
13649 }
13650 }
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
13654
13655 wxPyEndAllowThreads(__tstate);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 }
13658 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
13659 {
13660 if (temp1)
13661 delete arg1;
13662 }
13663 return resultobj;
13664 fail:
13665 {
13666 if (temp1)
13667 delete arg1;
13668 }
13669 return NULL;
13670}
13671
13672
13673static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
13674 PyObject *obj;
13675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13676 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
13677 Py_INCREF(obj);
13678 return Py_BuildValue((char *)"");
13679}
13680static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxString const &arg1_defvalue = wxPyEmptyString ;
13683 wxString *arg1 = (wxString *) &arg1_defvalue ;
13684 int arg2 = (int) 0 ;
13685 int arg3 = (int) 0 ;
13686 wxString const &arg4_defvalue = wxPyEmptyString ;
13687 wxString *arg4 = (wxString *) &arg4_defvalue ;
13688 wxMetaFileDC *result;
423f194a
RD
13689 bool temp1 = False ;
13690 bool temp4 = False ;
d14a1e28
RD
13691 PyObject * obj0 = 0 ;
13692 PyObject * obj3 = 0 ;
13693 char *kwnames[] = {
13694 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
13695 };
13696
13697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
13698 if (obj0) {
13699 {
13700 arg1 = wxString_in_helper(obj0);
13701 if (arg1 == NULL) SWIG_fail;
423f194a 13702 temp1 = True;
d14a1e28
RD
13703 }
13704 }
13705 if (obj3) {
13706 {
13707 arg4 = wxString_in_helper(obj3);
13708 if (arg4 == NULL) SWIG_fail;
423f194a 13709 temp4 = True;
d14a1e28
RD
13710 }
13711 }
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
13715
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
13720 {
13721 if (temp1)
13722 delete arg1;
13723 }
13724 {
13725 if (temp4)
13726 delete arg4;
13727 }
13728 return resultobj;
13729 fail:
13730 {
13731 if (temp1)
13732 delete arg1;
13733 }
13734 {
13735 if (temp4)
13736 delete arg4;
13737 }
13738 return NULL;
13739}
13740
13741
13742static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
13743 PyObject *obj;
13744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13745 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
13746 Py_INCREF(obj);
13747 return Py_BuildValue((char *)"");
13748}
13749static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj;
13751 wxPrintData *arg1 = 0 ;
13752 wxPrinterDC *result;
13753 PyObject * obj0 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "printData", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13760 if (arg1 == NULL) {
13761 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13762 }
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
13766
13767 wxPyEndAllowThreads(__tstate);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
13771 return resultobj;
13772 fail:
13773 return NULL;
13774}
13775
13776
13777static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
13778 PyObject *obj;
13779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13780 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
13781 Py_INCREF(obj);
13782 return Py_BuildValue((char *)"");
13783}
13784static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj;
13786 int arg1 ;
13787 int arg2 ;
423f194a 13788 int arg3 = (int) True ;
d14a1e28
RD
13789 int arg4 = (int) 1 ;
13790 wxImageList *result;
13791 char *kwnames[] = {
13792 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
13793 };
13794
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
13799
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 {
13804 resultobj = wxPyMake_wxObject(result);
13805 }
13806 return resultobj;
13807 fail:
13808 return NULL;
13809}
13810
13811
13812static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxImageList *arg1 = (wxImageList *) 0 ;
13815 PyObject * obj0 = 0 ;
13816 char *kwnames[] = {
13817 (char *) "self", NULL
13818 };
13819
13820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
13821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 delete arg1;
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 Py_INCREF(Py_None); resultobj = Py_None;
13830 return resultobj;
13831 fail:
13832 return NULL;
13833}
13834
13835
13836static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxImageList *arg1 = (wxImageList *) 0 ;
13839 wxBitmap *arg2 = 0 ;
13840 wxBitmap const &arg3_defvalue = wxNullBitmap ;
13841 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
13842 int result;
13843 PyObject * obj0 = 0 ;
13844 PyObject * obj1 = 0 ;
13845 PyObject * obj2 = 0 ;
13846 char *kwnames[] = {
13847 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
13848 };
13849
13850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
13851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13852 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13853 if (arg2 == NULL) {
13854 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13855 }
13856 if (obj2) {
13857 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13858 if (arg3 == NULL) {
13859 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13860 }
13861 }
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
13865
13866 wxPyEndAllowThreads(__tstate);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 resultobj = PyInt_FromLong((long)result);
13870 return resultobj;
13871 fail:
13872 return NULL;
13873}
13874
13875
13876static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
13877 PyObject *resultobj;
13878 wxImageList *arg1 = (wxImageList *) 0 ;
13879 wxBitmap *arg2 = 0 ;
13880 wxColour *arg3 = 0 ;
13881 int result;
13882 wxColour temp3 ;
13883 PyObject * obj0 = 0 ;
13884 PyObject * obj1 = 0 ;
13885 PyObject * obj2 = 0 ;
13886 char *kwnames[] = {
13887 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
13888 };
13889
13890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
13891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13893 if (arg2 == NULL) {
13894 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13895 }
13896 {
13897 arg3 = &temp3;
13898 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13899 }
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
13903
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = PyInt_FromLong((long)result);
13908 return resultobj;
13909 fail:
13910 return NULL;
13911}
13912
13913
13914static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxImageList *arg1 = (wxImageList *) 0 ;
13917 wxIcon *arg2 = 0 ;
13918 int result;
13919 PyObject * obj0 = 0 ;
13920 PyObject * obj1 = 0 ;
13921 char *kwnames[] = {
13922 (char *) "self",(char *) "icon", NULL
13923 };
13924
13925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
13926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13927 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13928 if (arg2 == NULL) {
13929 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13930 }
13931 {
13932 PyThreadState* __tstate = wxPyBeginAllowThreads();
13933 result = (int)(arg1)->Add((wxIcon const &)*arg2);
13934
13935 wxPyEndAllowThreads(__tstate);
13936 if (PyErr_Occurred()) SWIG_fail;
13937 }
13938 resultobj = PyInt_FromLong((long)result);
13939 return resultobj;
13940 fail:
13941 return NULL;
13942}
13943
13944
13945static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj;
13947 wxImageList *arg1 = (wxImageList *) 0 ;
13948 int arg2 ;
13949 wxBitmap *arg3 = 0 ;
13950 bool result;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj2 = 0 ;
13953 char *kwnames[] = {
13954 (char *) "self",(char *) "index",(char *) "bitmap", NULL
13955 };
13956
13957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ImageList_Replace",kwnames,&obj0,&arg2,&obj2)) goto fail;
13958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13959 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13960 if (arg3 == NULL) {
13961 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13962 }
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
13966
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = PyInt_FromLong((long)result);
13971 return resultobj;
13972 fail:
13973 return NULL;
13974}
13975
13976
13977static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
13978 PyObject *resultobj;
13979 wxImageList *arg1 = (wxImageList *) 0 ;
13980 int arg2 ;
13981 wxDC *arg3 = 0 ;
13982 int arg4 ;
13983 int arg5 ;
13984 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
423f194a 13985 bool arg7 = (bool) (bool)False ;
d14a1e28
RD
13986 bool result;
13987 PyObject * obj0 = 0 ;
13988 PyObject * obj2 = 0 ;
13989 PyObject * obj6 = 0 ;
13990 char *kwnames[] = {
13991 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
13992 };
13993
13994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail;
13995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13996 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13997 if (arg3 == NULL) {
13998 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13999 }
14000 if (obj6) {
14001 arg7 = PyInt_AsLong(obj6) ? true : false;
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 {
14005 PyThreadState* __tstate = wxPyBeginAllowThreads();
14006 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
14007
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = PyInt_FromLong((long)result);
14012 return resultobj;
14013 fail:
14014 return NULL;
14015}
14016
14017
14018static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14019 PyObject *resultobj;
14020 wxImageList *arg1 = (wxImageList *) 0 ;
14021 int result;
14022 PyObject * obj0 = 0 ;
14023 char *kwnames[] = {
14024 (char *) "self", NULL
14025 };
14026
14027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
14028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 result = (int)(arg1)->GetImageCount();
14032
14033 wxPyEndAllowThreads(__tstate);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 resultobj = PyInt_FromLong((long)result);
14037 return resultobj;
14038 fail:
14039 return NULL;
14040}
14041
14042
14043static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxImageList *arg1 = (wxImageList *) 0 ;
14046 int arg2 ;
14047 bool result;
14048 PyObject * obj0 = 0 ;
14049 char *kwnames[] = {
14050 (char *) "self",(char *) "index", NULL
14051 };
14052
14053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail;
14054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (bool)(arg1)->Remove(arg2);
14058
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = PyInt_FromLong((long)result);
14063 return resultobj;
14064 fail:
14065 return NULL;
14066}
14067
14068
14069static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj;
14071 wxImageList *arg1 = (wxImageList *) 0 ;
14072 bool result;
14073 PyObject * obj0 = 0 ;
14074 char *kwnames[] = {
14075 (char *) "self", NULL
14076 };
14077
14078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
14079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14080 {
14081 PyThreadState* __tstate = wxPyBeginAllowThreads();
14082 result = (bool)(arg1)->RemoveAll();
14083
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = PyInt_FromLong((long)result);
14088 return resultobj;
14089 fail:
14090 return NULL;
14091}
14092
14093
14094static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
14095 PyObject *resultobj;
14096 wxImageList *arg1 = (wxImageList *) 0 ;
14097 int arg2 ;
14098 int *arg3 = 0 ;
14099 int *arg4 = 0 ;
14100 int temp3 ;
14101 int temp4 ;
14102 PyObject * obj0 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "self",(char *) "index", NULL
14105 };
14106
14107 arg3 = &temp3;
14108 arg4 = &temp4;
14109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail;
14110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 (arg1)->GetSize(arg2,*arg3,*arg4);
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 Py_INCREF(Py_None); resultobj = Py_None;
14119 {
14120 PyObject *o = PyInt_FromLong((long) (*arg3));
14121 resultobj = t_output_helper(resultobj,o);
14122 }
14123 {
14124 PyObject *o = PyInt_FromLong((long) (*arg4));
14125 resultobj = t_output_helper(resultobj,o);
14126 }
14127 return resultobj;
14128 fail:
14129 return NULL;
14130}
14131
14132
14133static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
14134 PyObject *obj;
14135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14136 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
14137 Py_INCREF(obj);
14138 return Py_BuildValue((char *)"");
14139}
14140static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj;
14142 wxPenList *arg1 = (wxPenList *) 0 ;
14143 wxPen *arg2 = (wxPen *) 0 ;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 char *kwnames[] = {
14147 (char *) "self",(char *) "pen", NULL
14148 };
14149
14150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
14151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14152 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 (arg1)->AddPen(arg2);
14156
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 Py_INCREF(Py_None); resultobj = Py_None;
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
14167static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxPenList *arg1 = (wxPenList *) 0 ;
14170 wxColour *arg2 = 0 ;
14171 int arg3 ;
14172 int arg4 ;
14173 wxPen *result;
14174 wxColour temp2 ;
14175 PyObject * obj0 = 0 ;
14176 PyObject * obj1 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14183 {
14184 arg2 = &temp2;
14185 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14186 }
14187 {
14188 PyThreadState* __tstate = wxPyBeginAllowThreads();
14189 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
14190
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
14195 return resultobj;
14196 fail:
14197 return NULL;
14198}
14199
14200
14201static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
14202 PyObject *resultobj;
14203 wxPenList *arg1 = (wxPenList *) 0 ;
14204 wxPen *arg2 = (wxPen *) 0 ;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self",(char *) "pen", NULL
14209 };
14210
14211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
14212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14213 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14214 {
14215 PyThreadState* __tstate = wxPyBeginAllowThreads();
14216 (arg1)->RemovePen(arg2);
14217
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 Py_INCREF(Py_None); resultobj = Py_None;
14222 return resultobj;
14223 fail:
14224 return NULL;
14225}
14226
14227
14228static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14229 PyObject *resultobj;
14230 wxPenList *arg1 = (wxPenList *) 0 ;
14231 int result;
14232 PyObject * obj0 = 0 ;
14233 char *kwnames[] = {
14234 (char *) "self", NULL
14235 };
14236
14237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
14238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14239 {
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (int)(arg1)->GetCount();
14242
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 resultobj = PyInt_FromLong((long)result);
14247 return resultobj;
14248 fail:
14249 return NULL;
14250}
14251
14252
14253static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
14254 PyObject *obj;
14255 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14256 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
14257 Py_INCREF(obj);
14258 return Py_BuildValue((char *)"");
14259}
14260static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj;
14262 wxBrushList *arg1 = (wxBrushList *) 0 ;
14263 wxBrush *arg2 = (wxBrush *) 0 ;
14264 PyObject * obj0 = 0 ;
14265 PyObject * obj1 = 0 ;
14266 char *kwnames[] = {
14267 (char *) "self",(char *) "brush", NULL
14268 };
14269
14270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
14271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14272 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 (arg1)->AddBrush(arg2);
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 Py_INCREF(Py_None); resultobj = Py_None;
14281 return resultobj;
14282 fail:
14283 return NULL;
14284}
14285
14286
14287static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14288 PyObject *resultobj;
14289 wxBrushList *arg1 = (wxBrushList *) 0 ;
14290 wxColour *arg2 = 0 ;
14291 int arg3 ;
14292 wxBrush *result;
14293 wxColour temp2 ;
14294 PyObject * obj0 = 0 ;
14295 PyObject * obj1 = 0 ;
14296 char *kwnames[] = {
14297 (char *) "self",(char *) "colour",(char *) "style", NULL
14298 };
14299
14300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail;
14301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14302 {
14303 arg2 = &temp2;
14304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14305 }
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
14309
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
14314 return resultobj;
14315 fail:
14316 return NULL;
14317}
14318
14319
14320static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14321 PyObject *resultobj;
14322 wxBrushList *arg1 = (wxBrushList *) 0 ;
14323 wxBrush *arg2 = (wxBrush *) 0 ;
14324 PyObject * obj0 = 0 ;
14325 PyObject * obj1 = 0 ;
14326 char *kwnames[] = {
14327 (char *) "self",(char *) "brush", NULL
14328 };
14329
14330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
14331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14332 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 (arg1)->RemoveBrush(arg2);
14336
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 Py_INCREF(Py_None); resultobj = Py_None;
14341 return resultobj;
14342 fail:
14343 return NULL;
14344}
14345
14346
14347static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14348 PyObject *resultobj;
14349 wxBrushList *arg1 = (wxBrushList *) 0 ;
14350 int result;
14351 PyObject * obj0 = 0 ;
14352 char *kwnames[] = {
14353 (char *) "self", NULL
14354 };
14355
14356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
14357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14358 {
14359 PyThreadState* __tstate = wxPyBeginAllowThreads();
14360 result = (int)(arg1)->GetCount();
14361
14362 wxPyEndAllowThreads(__tstate);
14363 if (PyErr_Occurred()) SWIG_fail;
14364 }
14365 resultobj = PyInt_FromLong((long)result);
14366 return resultobj;
14367 fail:
14368 return NULL;
14369}
14370
14371
14372static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
14373 PyObject *obj;
14374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14375 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
14376 Py_INCREF(obj);
14377 return Py_BuildValue((char *)"");
14378}
14379static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 wxColourDatabase *result;
14382 char *kwnames[] = {
14383 NULL
14384 };
14385
14386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
14387 {
14388 PyThreadState* __tstate = wxPyBeginAllowThreads();
14389 result = (wxColourDatabase *)new wxColourDatabase();
14390
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
14395 return resultobj;
14396 fail:
14397 return NULL;
14398}
14399
14400
14401static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
14402 PyObject *resultobj;
14403 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14404 PyObject * obj0 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self", NULL
14407 };
14408
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
14410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14411 {
14412 PyThreadState* __tstate = wxPyBeginAllowThreads();
14413 delete arg1;
14414
14415 wxPyEndAllowThreads(__tstate);
14416 if (PyErr_Occurred()) SWIG_fail;
14417 }
14418 Py_INCREF(Py_None); resultobj = Py_None;
14419 return resultobj;
14420 fail:
14421 return NULL;
14422}
14423
14424
14425static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
14426 PyObject *resultobj;
14427 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14428 wxString *arg2 = 0 ;
14429 wxColour result;
423f194a 14430 bool temp2 = False ;
d14a1e28
RD
14431 PyObject * obj0 = 0 ;
14432 PyObject * obj1 = 0 ;
14433 char *kwnames[] = {
14434 (char *) "self",(char *) "name", NULL
14435 };
14436
14437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
14438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14439 {
14440 arg2 = wxString_in_helper(obj1);
14441 if (arg2 == NULL) SWIG_fail;
423f194a 14442 temp2 = True;
d14a1e28
RD
14443 }
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
14447
14448 wxPyEndAllowThreads(__tstate);
14449 if (PyErr_Occurred()) SWIG_fail;
14450 }
14451 {
14452 wxColour * resultptr;
14453 resultptr = new wxColour((wxColour &) result);
14454 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
14455 }
14456 {
14457 if (temp2)
14458 delete arg2;
14459 }
14460 return resultobj;
14461 fail:
14462 {
14463 if (temp2)
14464 delete arg2;
14465 }
14466 return NULL;
14467}
14468
14469
14470static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
14471 PyObject *resultobj;
14472 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14473 wxColour *arg2 = 0 ;
14474 wxString result;
14475 wxColour temp2 ;
14476 PyObject * obj0 = 0 ;
14477 PyObject * obj1 = 0 ;
14478 char *kwnames[] = {
14479 (char *) "self",(char *) "colour", NULL
14480 };
14481
14482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
14483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14484 {
14485 arg2 = &temp2;
14486 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14487 }
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 {
14496#if wxUSE_UNICODE
14497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14498#else
14499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14500#endif
14501 }
14502 return resultobj;
14503 fail:
14504 return NULL;
14505}
14506
14507
14508static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14511 wxString *arg2 = 0 ;
14512 wxColour *arg3 = 0 ;
423f194a 14513 bool temp2 = False ;
d14a1e28
RD
14514 wxColour temp3 ;
14515 PyObject * obj0 = 0 ;
14516 PyObject * obj1 = 0 ;
14517 PyObject * obj2 = 0 ;
14518 char *kwnames[] = {
14519 (char *) "self",(char *) "name",(char *) "colour", NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
14523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14524 {
14525 arg2 = wxString_in_helper(obj1);
14526 if (arg2 == NULL) SWIG_fail;
423f194a 14527 temp2 = True;
d14a1e28
RD
14528 }
14529 {
14530 arg3 = &temp3;
14531 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14532 }
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 Py_INCREF(Py_None); resultobj = Py_None;
14541 {
14542 if (temp2)
14543 delete arg2;
14544 }
14545 return resultobj;
14546 fail:
14547 {
14548 if (temp2)
14549 delete arg2;
14550 }
14551 return NULL;
14552}
14553
14554
14555static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
14558 wxString *arg2 = 0 ;
14559 int arg3 ;
14560 int arg4 ;
14561 int arg5 ;
423f194a 14562 bool temp2 = False ;
d14a1e28
RD
14563 PyObject * obj0 = 0 ;
14564 PyObject * obj1 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14571 {
14572 arg2 = wxString_in_helper(obj1);
14573 if (arg2 == NULL) SWIG_fail;
423f194a 14574 temp2 = True;
d14a1e28
RD
14575 }
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 Py_INCREF(Py_None); resultobj = Py_None;
14584 {
14585 if (temp2)
14586 delete arg2;
14587 }
14588 return resultobj;
14589 fail:
14590 {
14591 if (temp2)
14592 delete arg2;
14593 }
14594 return NULL;
14595}
14596
14597
14598static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
14599 PyObject *obj;
14600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14601 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
14602 Py_INCREF(obj);
14603 return Py_BuildValue((char *)"");
14604}
14605static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxFontList *arg1 = (wxFontList *) 0 ;
14608 wxFont *arg2 = (wxFont *) 0 ;
14609 PyObject * obj0 = 0 ;
14610 PyObject * obj1 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self",(char *) "font", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
14616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14617 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 (arg1)->AddFont(arg2);
14621
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 Py_INCREF(Py_None); resultobj = Py_None;
14626 return resultobj;
14627 fail:
14628 return NULL;
14629}
14630
14631
14632static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14633 PyObject *resultobj;
14634 wxFontList *arg1 = (wxFontList *) 0 ;
14635 int arg2 ;
14636 int arg3 ;
14637 int arg4 ;
14638 int arg5 ;
423f194a 14639 bool arg6 = (bool) False ;
d14a1e28
RD
14640 wxString const &arg7_defvalue = wxPyEmptyString ;
14641 wxString *arg7 = (wxString *) &arg7_defvalue ;
14642 int arg8 = (int) wxFONTENCODING_DEFAULT ;
14643 wxFont *result;
423f194a 14644 bool temp7 = False ;
d14a1e28
RD
14645 PyObject * obj0 = 0 ;
14646 PyObject * obj5 = 0 ;
14647 PyObject * obj6 = 0 ;
14648 char *kwnames[] = {
14649 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
14650 };
14651
14652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail;
14653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14654 if (obj5) {
14655 arg6 = PyInt_AsLong(obj5) ? true : false;
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 if (obj6) {
14659 {
14660 arg7 = wxString_in_helper(obj6);
14661 if (arg7 == NULL) SWIG_fail;
423f194a 14662 temp7 = True;
d14a1e28
RD
14663 }
14664 }
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
14668
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
14673 {
14674 if (temp7)
14675 delete arg7;
14676 }
14677 return resultobj;
14678 fail:
14679 {
14680 if (temp7)
14681 delete arg7;
14682 }
14683 return NULL;
14684}
14685
14686
14687static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14688 PyObject *resultobj;
14689 wxFontList *arg1 = (wxFontList *) 0 ;
14690 wxFont *arg2 = (wxFont *) 0 ;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 char *kwnames[] = {
14694 (char *) "self",(char *) "font", NULL
14695 };
14696
14697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
14698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14699 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 (arg1)->RemoveFont(arg2);
14703
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 Py_INCREF(Py_None); resultobj = Py_None;
14708 return resultobj;
14709 fail:
14710 return NULL;
14711}
14712
14713
14714static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj;
14716 wxFontList *arg1 = (wxFontList *) 0 ;
14717 int result;
14718 PyObject * obj0 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
14724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 result = (int)(arg1)->GetCount();
14728
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 resultobj = PyInt_FromLong((long)result);
14733 return resultobj;
14734 fail:
14735 return NULL;
14736}
14737
14738
14739static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
14740 PyObject *obj;
14741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14742 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
14743 Py_INCREF(obj);
14744 return Py_BuildValue((char *)"");
14745}
14746static int _wrap_NORMAL_FONT_set(PyObject *_val) {
14747 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
14748 return 1;
14749}
14750
14751
14752static PyObject *_wrap_NORMAL_FONT_get() {
14753 PyObject *pyobj;
14754
14755 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
14756 return pyobj;
14757}
14758
14759
14760static int _wrap_SMALL_FONT_set(PyObject *_val) {
14761 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
14762 return 1;
14763}
14764
14765
14766static PyObject *_wrap_SMALL_FONT_get() {
14767 PyObject *pyobj;
14768
14769 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
14770 return pyobj;
14771}
14772
14773
14774static int _wrap_ITALIC_FONT_set(PyObject *_val) {
14775 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
14776 return 1;
14777}
14778
14779
14780static PyObject *_wrap_ITALIC_FONT_get() {
14781 PyObject *pyobj;
14782
14783 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
14784 return pyobj;
14785}
14786
14787
14788static int _wrap_SWISS_FONT_set(PyObject *_val) {
14789 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
14790 return 1;
14791}
14792
14793
14794static PyObject *_wrap_SWISS_FONT_get() {
14795 PyObject *pyobj;
14796
14797 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
14798 return pyobj;
14799}
14800
14801
14802static int _wrap_RED_PEN_set(PyObject *_val) {
14803 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
14804 return 1;
14805}
14806
14807
14808static PyObject *_wrap_RED_PEN_get() {
14809 PyObject *pyobj;
14810
14811 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
14812 return pyobj;
14813}
14814
14815
14816static int _wrap_CYAN_PEN_set(PyObject *_val) {
14817 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
14818 return 1;
14819}
14820
14821
14822static PyObject *_wrap_CYAN_PEN_get() {
14823 PyObject *pyobj;
14824
14825 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
14826 return pyobj;
14827}
14828
14829
14830static int _wrap_GREEN_PEN_set(PyObject *_val) {
14831 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
14832 return 1;
14833}
14834
14835
14836static PyObject *_wrap_GREEN_PEN_get() {
14837 PyObject *pyobj;
14838
14839 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
14840 return pyobj;
14841}
14842
14843
14844static int _wrap_BLACK_PEN_set(PyObject *_val) {
14845 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
14846 return 1;
14847}
14848
14849
14850static PyObject *_wrap_BLACK_PEN_get() {
14851 PyObject *pyobj;
14852
14853 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
14854 return pyobj;
14855}
14856
14857
14858static int _wrap_WHITE_PEN_set(PyObject *_val) {
14859 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
14860 return 1;
14861}
14862
14863
14864static PyObject *_wrap_WHITE_PEN_get() {
14865 PyObject *pyobj;
14866
14867 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
14868 return pyobj;
14869}
14870
14871
14872static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
14873 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
14874 return 1;
14875}
14876
14877
14878static PyObject *_wrap_TRANSPARENT_PEN_get() {
14879 PyObject *pyobj;
14880
14881 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
14882 return pyobj;
14883}
14884
14885
14886static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
14887 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
14888 return 1;
14889}
14890
14891
14892static PyObject *_wrap_BLACK_DASHED_PEN_get() {
14893 PyObject *pyobj;
14894
14895 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
14896 return pyobj;
14897}
14898
14899
14900static int _wrap_GREY_PEN_set(PyObject *_val) {
14901 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
14902 return 1;
14903}
14904
14905
14906static PyObject *_wrap_GREY_PEN_get() {
14907 PyObject *pyobj;
14908
14909 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
14910 return pyobj;
14911}
14912
14913
14914static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
14915 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
14916 return 1;
14917}
14918
14919
14920static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
14921 PyObject *pyobj;
14922
14923 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14924 return pyobj;
14925}
14926
14927
14928static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
14929 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
14930 return 1;
14931}
14932
14933
14934static PyObject *_wrap_LIGHT_GREY_PEN_get() {
14935 PyObject *pyobj;
14936
14937 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
14938 return pyobj;
14939}
14940
14941
14942static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
14943 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
14944 return 1;
14945}
14946
14947
14948static PyObject *_wrap_BLUE_BRUSH_get() {
14949 PyObject *pyobj;
14950
14951 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14952 return pyobj;
14953}
14954
14955
14956static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
14957 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
14958 return 1;
14959}
14960
14961
14962static PyObject *_wrap_GREEN_BRUSH_get() {
14963 PyObject *pyobj;
14964
14965 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
14966 return pyobj;
14967}
14968
14969
14970static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
14971 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
14972 return 1;
14973}
14974
14975
14976static PyObject *_wrap_WHITE_BRUSH_get() {
14977 PyObject *pyobj;
14978
14979 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
14980 return pyobj;
14981}
14982
14983
14984static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
14985 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
14986 return 1;
14987}
14988
14989
14990static PyObject *_wrap_BLACK_BRUSH_get() {
14991 PyObject *pyobj;
14992
14993 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
14994 return pyobj;
14995}
14996
14997
14998static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
14999 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15000 return 1;
15001}
15002
15003
15004static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15005 PyObject *pyobj;
15006
15007 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15008 return pyobj;
15009}
15010
15011
15012static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
15013 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15014 return 1;
15015}
15016
15017
15018static PyObject *_wrap_CYAN_BRUSH_get() {
15019 PyObject *pyobj;
15020
15021 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15022 return pyobj;
15023}
15024
15025
15026static int _wrap_RED_BRUSH_set(PyObject *_val) {
15027 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15028 return 1;
15029}
15030
15031
15032static PyObject *_wrap_RED_BRUSH_get() {
15033 PyObject *pyobj;
15034
15035 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15036 return pyobj;
15037}
15038
15039
15040static int _wrap_GREY_BRUSH_set(PyObject *_val) {
15041 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15042 return 1;
15043}
15044
15045
15046static PyObject *_wrap_GREY_BRUSH_get() {
15047 PyObject *pyobj;
15048
15049 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15050 return pyobj;
15051}
15052
15053
15054static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
15055 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15056 return 1;
15057}
15058
15059
15060static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15061 PyObject *pyobj;
15062
15063 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15064 return pyobj;
15065}
15066
15067
15068static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
15069 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15070 return 1;
15071}
15072
15073
15074static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15075 PyObject *pyobj;
15076
15077 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15078 return pyobj;
15079}
15080
15081
15082static int _wrap_BLACK_set(PyObject *_val) {
15083 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15084 return 1;
15085}
15086
15087
15088static PyObject *_wrap_BLACK_get() {
15089 PyObject *pyobj;
15090
15091 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15092 return pyobj;
15093}
15094
15095
15096static int _wrap_WHITE_set(PyObject *_val) {
15097 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15098 return 1;
15099}
15100
15101
15102static PyObject *_wrap_WHITE_get() {
15103 PyObject *pyobj;
15104
15105 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15106 return pyobj;
15107}
15108
15109
15110static int _wrap_RED_set(PyObject *_val) {
15111 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15112 return 1;
15113}
15114
15115
15116static PyObject *_wrap_RED_get() {
15117 PyObject *pyobj;
15118
15119 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15120 return pyobj;
15121}
15122
15123
15124static int _wrap_BLUE_set(PyObject *_val) {
15125 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15126 return 1;
15127}
15128
15129
15130static PyObject *_wrap_BLUE_get() {
15131 PyObject *pyobj;
15132
15133 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15134 return pyobj;
15135}
15136
15137
15138static int _wrap_GREEN_set(PyObject *_val) {
15139 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15140 return 1;
15141}
15142
15143
15144static PyObject *_wrap_GREEN_get() {
15145 PyObject *pyobj;
15146
15147 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15148 return pyobj;
15149}
15150
15151
15152static int _wrap_CYAN_set(PyObject *_val) {
15153 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
15154 return 1;
15155}
15156
15157
15158static PyObject *_wrap_CYAN_get() {
15159 PyObject *pyobj;
15160
15161 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
15162 return pyobj;
15163}
15164
15165
15166static int _wrap_LIGHT_GREY_set(PyObject *_val) {
15167 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
15168 return 1;
15169}
15170
15171
15172static PyObject *_wrap_LIGHT_GREY_get() {
15173 PyObject *pyobj;
15174
15175 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
15176 return pyobj;
15177}
15178
15179
15180static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
15181 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
15182 return 1;
15183}
15184
15185
15186static PyObject *_wrap_STANDARD_CURSOR_get() {
15187 PyObject *pyobj;
15188
15189 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
15190 return pyobj;
15191}
15192
15193
15194static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
15195 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
15196 return 1;
15197}
15198
15199
15200static PyObject *_wrap_HOURGLASS_CURSOR_get() {
15201 PyObject *pyobj;
15202
15203 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15204 return pyobj;
15205}
15206
15207
15208static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
15209 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
15210 return 1;
15211}
15212
15213
15214static PyObject *_wrap_CROSS_CURSOR_get() {
15215 PyObject *pyobj;
15216
15217 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
15218 return pyobj;
15219}
15220
15221
15222static int _wrap_NullBitmap_set(PyObject *_val) {
15223 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
15224 return 1;
15225}
15226
15227
15228static PyObject *_wrap_NullBitmap_get() {
15229 PyObject *pyobj;
15230
15231 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
15232 return pyobj;
15233}
15234
15235
15236static int _wrap_NullIcon_set(PyObject *_val) {
15237 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
15238 return 1;
15239}
15240
15241
15242static PyObject *_wrap_NullIcon_get() {
15243 PyObject *pyobj;
15244
15245 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
15246 return pyobj;
15247}
15248
15249
15250static int _wrap_NullCursor_set(PyObject *_val) {
15251 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
15252 return 1;
15253}
15254
15255
15256static PyObject *_wrap_NullCursor_get() {
15257 PyObject *pyobj;
15258
15259 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
15260 return pyobj;
15261}
15262
15263
15264static int _wrap_NullPen_set(PyObject *_val) {
15265 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
15266 return 1;
15267}
15268
15269
15270static PyObject *_wrap_NullPen_get() {
15271 PyObject *pyobj;
15272
15273 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
15274 return pyobj;
15275}
15276
15277
15278static int _wrap_NullBrush_set(PyObject *_val) {
15279 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
15280 return 1;
15281}
15282
15283
15284static PyObject *_wrap_NullBrush_get() {
15285 PyObject *pyobj;
15286
15287 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
15288 return pyobj;
15289}
15290
15291
15292static int _wrap_NullPalette_set(PyObject *_val) {
15293 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
15294 return 1;
15295}
15296
15297
15298static PyObject *_wrap_NullPalette_get() {
15299 PyObject *pyobj;
15300
15301 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
15302 return pyobj;
15303}
15304
15305
15306static int _wrap_NullFont_set(PyObject *_val) {
15307 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
15308 return 1;
15309}
15310
15311
15312static PyObject *_wrap_NullFont_get() {
15313 PyObject *pyobj;
15314
15315 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
15316 return pyobj;
15317}
15318
15319
15320static int _wrap_NullColour_set(PyObject *_val) {
15321 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
15322 return 1;
15323}
15324
15325
15326static PyObject *_wrap_NullColour_get() {
15327 PyObject *pyobj;
15328
15329 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
15330 return pyobj;
15331}
15332
15333
15334static int _wrap_TheFontList_set(PyObject *_val) {
15335 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
15336 return 1;
15337}
15338
15339
15340static PyObject *_wrap_TheFontList_get() {
15341 PyObject *pyobj;
15342
15343 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
15344 return pyobj;
15345}
15346
15347
15348static int _wrap_ThePenList_set(PyObject *_val) {
15349 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
15350 return 1;
15351}
15352
15353
15354static PyObject *_wrap_ThePenList_get() {
15355 PyObject *pyobj;
15356
15357 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
15358 return pyobj;
15359}
15360
15361
15362static int _wrap_TheBrushList_set(PyObject *_val) {
15363 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
15364 return 1;
15365}
15366
15367
15368static PyObject *_wrap_TheBrushList_get() {
15369 PyObject *pyobj;
15370
15371 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
15372 return pyobj;
15373}
15374
15375
15376static int _wrap_TheColourDatabase_set(PyObject *_val) {
15377 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
15378 return 1;
15379}
15380
15381
15382static PyObject *_wrap_TheColourDatabase_get() {
15383 PyObject *pyobj;
15384
15385 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
15386 return pyobj;
15387}
15388
15389
423f194a 15390static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15391 PyObject *resultobj;
423f194a 15392 wxEffects *result;
d14a1e28 15393 char *kwnames[] = {
423f194a 15394 NULL
d14a1e28
RD
15395 };
15396
423f194a 15397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
d14a1e28
RD
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15400 result = (wxEffects *)new wxEffects();
d14a1e28
RD
15401
15402 wxPyEndAllowThreads(__tstate);
15403 if (PyErr_Occurred()) SWIG_fail;
15404 }
423f194a 15405 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
d14a1e28
RD
15406 return resultobj;
15407 fail:
15408 return NULL;
15409}
15410
15411
423f194a 15412static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15413 PyObject *resultobj;
423f194a
RD
15414 wxEffects *arg1 = (wxEffects *) 0 ;
15415 wxColour result;
d14a1e28 15416 PyObject * obj0 = 0 ;
d14a1e28 15417 char *kwnames[] = {
423f194a 15418 (char *) "self", NULL
d14a1e28
RD
15419 };
15420
423f194a
RD
15421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
15422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15425 result = ((wxEffects const *)arg1)->GetHighlightColour();
d14a1e28
RD
15426
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
423f194a
RD
15430 {
15431 wxColour * resultptr;
15432 resultptr = new wxColour((wxColour &) result);
15433 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15434 }
d14a1e28
RD
15435 return resultobj;
15436 fail:
15437 return NULL;
15438}
15439
15440
423f194a 15441static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15442 PyObject *resultobj;
423f194a
RD
15443 wxEffects *arg1 = (wxEffects *) 0 ;
15444 wxColour result;
d14a1e28 15445 PyObject * obj0 = 0 ;
d14a1e28 15446 char *kwnames[] = {
423f194a 15447 (char *) "self", NULL
d14a1e28
RD
15448 };
15449
423f194a
RD
15450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
15451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15454 result = ((wxEffects const *)arg1)->GetLightShadow();
d14a1e28
RD
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
d14a1e28 15459 {
423f194a
RD
15460 wxColour * resultptr;
15461 resultptr = new wxColour((wxColour &) result);
15462 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
15463 }
15464 return resultobj;
15465 fail:
d14a1e28
RD
15466 return NULL;
15467}
15468
15469
423f194a 15470static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15471 PyObject *resultobj;
423f194a
RD
15472 wxEffects *arg1 = (wxEffects *) 0 ;
15473 wxColour result;
d14a1e28 15474 PyObject * obj0 = 0 ;
d14a1e28 15475 char *kwnames[] = {
423f194a 15476 (char *) "self", NULL
d14a1e28
RD
15477 };
15478
423f194a
RD
15479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
15480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15483 result = ((wxEffects const *)arg1)->GetFaceColour();
d14a1e28
RD
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
423f194a
RD
15488 {
15489 wxColour * resultptr;
15490 resultptr = new wxColour((wxColour &) result);
15491 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15492 }
d14a1e28
RD
15493 return resultobj;
15494 fail:
15495 return NULL;
15496}
15497
15498
423f194a 15499static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 15500 PyObject *resultobj;
423f194a
RD
15501 wxEffects *arg1 = (wxEffects *) 0 ;
15502 wxColour result;
d14a1e28
RD
15503 PyObject * obj0 = 0 ;
15504 char *kwnames[] = {
423f194a 15505 (char *) "self", NULL
d14a1e28
RD
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = ((wxEffects const *)arg1)->GetMediumShadow();
15513
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 {
15518 wxColour * resultptr;
15519 resultptr = new wxColour((wxColour &) result);
15520 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15521 }
15522 return resultobj;
15523 fail:
15524 return NULL;
15525}
15526
15527
15528static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxEffects *arg1 = (wxEffects *) 0 ;
15531 wxColour result;
15532 PyObject * obj0 = 0 ;
15533 char *kwnames[] = {
15534 (char *) "self", NULL
15535 };
15536
15537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
15538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 result = ((wxEffects const *)arg1)->GetDarkShadow();
15542
15543 wxPyEndAllowThreads(__tstate);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 {
15547 wxColour * resultptr;
15548 resultptr = new wxColour((wxColour &) result);
15549 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
15550 }
15551 return resultobj;
15552 fail:
15553 return NULL;
15554}
15555
15556
15557static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15558 PyObject *resultobj;
15559 wxEffects *arg1 = (wxEffects *) 0 ;
15560 wxColour *arg2 = 0 ;
15561 wxColour temp2 ;
15562 PyObject * obj0 = 0 ;
15563 PyObject * obj1 = 0 ;
15564 char *kwnames[] = {
15565 (char *) "self",(char *) "c", NULL
15566 };
15567
15568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
15569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15570 {
15571 arg2 = &temp2;
15572 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15573 }
15574 {
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 (arg1)->SetHighlightColour((wxColour const &)*arg2);
15577
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 Py_INCREF(Py_None); resultobj = Py_None;
15582 return resultobj;
15583 fail:
15584 return NULL;
15585}
15586
15587
15588static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj;
15590 wxEffects *arg1 = (wxEffects *) 0 ;
15591 wxColour *arg2 = 0 ;
15592 wxColour temp2 ;
15593 PyObject * obj0 = 0 ;
15594 PyObject * obj1 = 0 ;
15595 char *kwnames[] = {
15596 (char *) "self",(char *) "c", NULL
15597 };
15598
15599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
15600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15601 {
15602 arg2 = &temp2;
15603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15604 }
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 (arg1)->SetLightShadow((wxColour const &)*arg2);
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 Py_INCREF(Py_None); resultobj = Py_None;
15613 return resultobj;
15614 fail:
15615 return NULL;
15616}
15617
15618
15619static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
15620 PyObject *resultobj;
15621 wxEffects *arg1 = (wxEffects *) 0 ;
15622 wxColour *arg2 = 0 ;
15623 wxColour temp2 ;
15624 PyObject * obj0 = 0 ;
15625 PyObject * obj1 = 0 ;
15626 char *kwnames[] = {
15627 (char *) "self",(char *) "c", NULL
15628 };
15629
15630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
15631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15632 {
15633 arg2 = &temp2;
15634 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15635 }
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 (arg1)->SetFaceColour((wxColour const &)*arg2);
15639
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 Py_INCREF(Py_None); resultobj = Py_None;
15644 return resultobj;
15645 fail:
15646 return NULL;
15647}
15648
15649
15650static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj;
15652 wxEffects *arg1 = (wxEffects *) 0 ;
15653 wxColour *arg2 = 0 ;
15654 wxColour temp2 ;
15655 PyObject * obj0 = 0 ;
15656 PyObject * obj1 = 0 ;
15657 char *kwnames[] = {
15658 (char *) "self",(char *) "c", NULL
15659 };
15660
15661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
15662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15663 {
15664 arg2 = &temp2;
15665 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15666 }
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 (arg1)->SetMediumShadow((wxColour const &)*arg2);
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 Py_INCREF(Py_None); resultobj = Py_None;
15675 return resultobj;
15676 fail:
15677 return NULL;
15678}
15679
15680
15681static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj;
15683 wxEffects *arg1 = (wxEffects *) 0 ;
15684 wxColour *arg2 = 0 ;
15685 wxColour temp2 ;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 char *kwnames[] = {
15689 (char *) "self",(char *) "c", NULL
15690 };
15691
15692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
15693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15694 {
15695 arg2 = &temp2;
15696 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15697 }
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 (arg1)->SetDarkShadow((wxColour const &)*arg2);
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 Py_INCREF(Py_None); resultobj = Py_None;
15706 return resultobj;
15707 fail:
15708 return NULL;
15709}
15710
15711
15712static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj;
15714 wxEffects *arg1 = (wxEffects *) 0 ;
15715 wxColour *arg2 = 0 ;
15716 wxColour *arg3 = 0 ;
15717 wxColour *arg4 = 0 ;
15718 wxColour *arg5 = 0 ;
15719 wxColour *arg6 = 0 ;
15720 wxColour temp2 ;
15721 wxColour temp3 ;
15722 wxColour temp4 ;
15723 wxColour temp5 ;
15724 wxColour temp6 ;
15725 PyObject * obj0 = 0 ;
15726 PyObject * obj1 = 0 ;
15727 PyObject * obj2 = 0 ;
15728 PyObject * obj3 = 0 ;
15729 PyObject * obj4 = 0 ;
15730 PyObject * obj5 = 0 ;
15731 char *kwnames[] = {
15732 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
15733 };
15734
15735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15737 {
15738 arg2 = &temp2;
15739 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
15740 }
15741 {
15742 arg3 = &temp3;
15743 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15744 }
15745 {
15746 arg4 = &temp4;
15747 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15748 }
15749 {
15750 arg5 = &temp5;
15751 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
15752 }
15753 {
15754 arg6 = &temp6;
15755 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
15756 }
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
15760
15761 wxPyEndAllowThreads(__tstate);
15762 if (PyErr_Occurred()) SWIG_fail;
15763 }
15764 Py_INCREF(Py_None); resultobj = Py_None;
15765 return resultobj;
15766 fail:
15767 return NULL;
15768}
15769
15770
15771static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
15772 PyObject *resultobj;
15773 wxEffects *arg1 = (wxEffects *) 0 ;
15774 wxDC *arg2 = 0 ;
15775 wxRect *arg3 = 0 ;
15776 int arg4 = (int) 1 ;
15777 wxRect temp3 ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 PyObject * obj2 = 0 ;
15781 char *kwnames[] = {
15782 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
15783 };
15784
15785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
15786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15787 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15788 if (arg2 == NULL) {
15789 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15790 }
15791 {
15792 arg3 = &temp3;
15793 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15794 }
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 Py_INCREF(Py_None); resultobj = Py_None;
15803 return resultobj;
15804 fail:
15805 return NULL;
15806}
15807
15808
15809static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxEffects *arg1 = (wxEffects *) 0 ;
15812 wxRect *arg2 = 0 ;
15813 wxDC *arg3 = 0 ;
15814 wxBitmap *arg4 = 0 ;
15815 bool result;
15816 wxRect temp2 ;
15817 PyObject * obj0 = 0 ;
15818 PyObject * obj1 = 0 ;
15819 PyObject * obj2 = 0 ;
15820 PyObject * obj3 = 0 ;
15821 char *kwnames[] = {
15822 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
15823 };
15824
15825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15827 {
15828 arg2 = &temp2;
15829 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15830 }
15831 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15832 if (arg3 == NULL) {
15833 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15834 }
15835 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15836 if (arg4 == NULL) {
15837 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15838 }
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
15842
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
15846 resultobj = PyInt_FromLong((long)result);
15847 return resultobj;
15848 fail:
15849 return NULL;
15850}
15851
15852
15853static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
15854 PyObject *obj;
15855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15856 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
15857 Py_INCREF(obj);
15858 return Py_BuildValue((char *)"");
15859}
15860static PyMethodDef SwigMethods[] = {
15861 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
15862 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
15863 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
15864 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
15865 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
15866 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
15867 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
15868 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
15869 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
15870 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
15871 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
15872 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
15873 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
15874 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
15875 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
9fd4be55 15876 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
15877 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
15878 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
9fd4be55 15879 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
15880 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
15881 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
15882 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
15883 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
15884 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
15885 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
15886 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
15887 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
15888 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
15889 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
15890 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
15891 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
15892 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
15893 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
15894 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
15895 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
15896 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
15897 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
15898 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
15899 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
15900 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
15901 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15902 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
15903 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
15904 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
15905 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
15906 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
15907 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
15908 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
15909 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
15910 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
15911 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
15912 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
15913 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
15914 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
15915 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
15916 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
15917 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
15918 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
15919 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
15920 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
15921 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
15922 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
15923 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
15924 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
15925 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
15926 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
15927 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
15928 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
15929 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
15930 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
15931 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
15932 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
15933 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
15934 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
15935 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
15936 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
15937 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
15938 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
15939 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
15940 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
15941 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
15942 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
15943 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
15944 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
15945 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
15946 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
15947 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
15948 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
15949 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
15950 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
15951 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
15952 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
15953 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
15954 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
15955 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
15956 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
15957 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
15958 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
15959 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
15960 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
15961 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
15962 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
15963 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
15964 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
15965 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
15966 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
15967 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
15968 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
15969 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
15970 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
15971 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
15972 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
15973 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
15974 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
15975 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
15976 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
15977 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
15978 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
15979 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
15980 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
15981 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
15982 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
15983 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
15984 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
15985 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
15986 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
15987 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
15988 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
15989 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
15990 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
15991 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
15992 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
15993 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
15994 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
15995 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
15996 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
15997 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
15998 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
15999 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
16000 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
16001 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
16002 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
16003 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
16004 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
16005 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
16006 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
16007 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
16008 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
16009 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
16010 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16011 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
16012 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
16013 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
16014 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
16015 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
16016 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
16017 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
16018 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
16019 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
16020 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
16021 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
16022 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
16023 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
16024 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16025 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16026 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
16027 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
16028 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16029 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
16030 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
16031 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16032 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16033 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
16034 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16035 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16036 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
16037 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
16038 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16039 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16040 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
16041 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16042 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16043 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16044 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
16045 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
16046 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
16047 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
16048 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
16049 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
16050 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
16051 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
16052 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16053 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
16054 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
16055 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
16056 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
16057 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
16058 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
16059 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
16060 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
16061 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
16062 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
16063 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
16064 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
16065 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16066 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
16067 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
16068 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
16069 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
16070 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
16071 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
16072 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
16073 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
16074 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
16075 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
16076 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
16077 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
16078 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
16079 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
16080 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
16081 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
16082 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
16083 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
16084 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
16085 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
16086 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
16087 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
16088 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
16089 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
16090 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
16091 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16092 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
16093 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
16094 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16095 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
16096 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
16097 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
16098 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
16099 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
16100 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
16101 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
16102 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
16103 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
16104 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
16105 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
16106 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
16107 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
16108 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16109 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
16110 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16111 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
16112 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
16113 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16114 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
16115 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
16116 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
16117 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
16118 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
16119 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
16120 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
16121 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
16122 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
16123 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
16124 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
16125 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
16126 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
16127 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
16128 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
16129 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
16130 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
16131 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
16132 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
16133 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
16134 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
16135 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
16136 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
16137 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
16138 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
16139 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
16140 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
16141 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
16142 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
16143 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16144 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
16145 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
16146 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
16147 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
16148 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
16149 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
16150 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
16151 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
16152 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16153 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
16154 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
16155 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
16156 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
16157 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
16158 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
16159 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
16160 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
16161 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
16162 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
16163 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
16164 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
16165 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
16166 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
16167 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
16168 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
16169 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
16170 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
16171 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
16172 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
16173 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
16174 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
16175 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
16176 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
16177 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
16178 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
16179 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
16180 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
16181 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
16182 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
16183 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
16184 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
16185 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
16186 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
16187 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
16188 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
16189 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
16190 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
16191 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
16192 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
16193 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
16194 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
16195 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
16196 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
16197 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
16198 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
16199 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
16200 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
16201 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
16202 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
16203 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
16204 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
16205 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
16206 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
16207 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
16208 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
16209 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
16210 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
16211 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
16212 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
16213 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
16214 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16215 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
0f774bef 16216 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16217 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
16218 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
16219 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
16220 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
16221 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
16222 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
16223 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
16224 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
16225 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
16226 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
16227 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16228 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
44127b65 16229 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16230 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
44127b65 16231 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16232 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
16233 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
16234 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
16235 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
16236 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
16237 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
16238 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
16239 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
16240 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
16241 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
16242 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
16243 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
16244 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
16245 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
16246 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
16247 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
16248 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
16249 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
16250 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
16251 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
16252 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
16253 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
16254 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
16255 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
16256 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
16257 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
16258 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
16259 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16260 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 16261 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16262 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d14a1e28 16263 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
44127b65 16264 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
16265 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
16266 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
16267 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16268 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
16269 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
16270 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
16271 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
16272 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16273 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
16274 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
16275 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
16276 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
16277 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
16278 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
16279 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
16280 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
16281 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
16282 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
16283 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
16284 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
16285 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
16286 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
16287 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
16288 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
16289 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
16290 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
16291 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
16292 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
16293 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
16294 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
16295 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
16296 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
16297 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16298 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
16299 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
16300 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
16301 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
16302 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
16303 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
16304 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
16305 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
16306 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
16307 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
16308 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
16309 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
16310 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
16311 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
16312 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
16313 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
16314 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
16315 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
16316 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
16317 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
16318 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
16319 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
16320 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
16321 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
16322 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
16323 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
16324 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
16325 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
16326 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
16327 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
16328 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
16329 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
16330 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
16331 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
16332 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
16333 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
16334 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
16335 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
16336 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
16337 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
16338 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
16339 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
16340 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
16341 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
16342 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16343 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
16344 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
16345 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
16346 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
16347 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
16348 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
16349 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
16350 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
16351 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
16352 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
16353 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
d14a1e28
RD
16354 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
16355 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16356 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
16357 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
16358 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16359 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16360 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
16361 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
16362 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
16363 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
16364 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
16365 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
16366 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
16367 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
16368 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
16369 { NULL, NULL }
16370};
16371
16372
16373/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
16374
423f194a
RD
16375static void *_p_wxControlTo_p_wxWindow(void *x) {
16376 return (void *)((wxWindow *) ((wxControl *) x));
16377}
16378static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16379 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16380}
16381static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
16382 return (void *)((wxWindow *) ((wxMenuBar *) x));
16383}
d14a1e28
RD
16384static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
16385 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
16386}
16387static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
16388 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
16389}
d14a1e28
RD
16390static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16391 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16392}
16393static void *_p_wxPenTo_p_wxObject(void *x) {
16394 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
16395}
16396static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
16397 return (void *)((wxObject *) ((wxRegionIterator *) x));
16398}
16399static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16400 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16401}
16402static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16403 return (void *)((wxObject *) ((wxSizerItem *) x));
16404}
16405static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
16406 return (void *)((wxObject *) ((wxColourDatabase *) x));
16407}
16408static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16410}
16411static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16412 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16413}
16414static void *_p_wxIconTo_p_wxObject(void *x) {
16415 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
16416}
16417static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16418 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16419}
16420static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16421 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16422}
16423static void *_p_wxSizerTo_p_wxObject(void *x) {
16424 return (void *)((wxObject *) ((wxSizer *) x));
16425}
16426static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16427 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16428}
16429static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16431}
16432static void *_p_wxPenListTo_p_wxObject(void *x) {
16433 return (void *)((wxObject *) ((wxPenList *) x));
16434}
16435static void *_p_wxEventTo_p_wxObject(void *x) {
16436 return (void *)((wxObject *) ((wxEvent *) x));
16437}
16438static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16439 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16440}
16441static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16442 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16443}
16444static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16445 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16446}
16447static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16448 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16449}
16450static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16451 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16452}
16453static void *_p_wxDCTo_p_wxObject(void *x) {
16454 return (void *)((wxObject *) ((wxDC *) x));
16455}
16456static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16457 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16458}
16459static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16460 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16461}
16462static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16463 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16464}
16465static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16466 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16467}
16468static void *_p_wxControlTo_p_wxObject(void *x) {
16469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16470}
16471static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16472 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16473}
16474static void *_p_wxClientDCTo_p_wxObject(void *x) {
16475 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
16476}
16477static void *_p_wxFSFileTo_p_wxObject(void *x) {
16478 return (void *)((wxObject *) ((wxFSFile *) x));
16479}
16480static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
16481 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
16482}
16483static void *_p_wxRegionTo_p_wxObject(void *x) {
16484 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
16485}
16486static void *_p_wxPySizerTo_p_wxObject(void *x) {
16487 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16488}
16489static void *_p_wxWindowDCTo_p_wxObject(void *x) {
16490 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
16491}
16492static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
16493 return (void *)((wxObject *) ((wxGDIObject *) x));
16494}
16495static void *_p_wxEffectsTo_p_wxObject(void *x) {
16496 return (void *)((wxObject *) ((wxEffects *) x));
16497}
16498static void *_p_wxPyEventTo_p_wxObject(void *x) {
16499 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16500}
16501static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16502 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16503}
16504static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
16505 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
16506}
16507static void *_p_wxShowEventTo_p_wxObject(void *x) {
16508 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16509}
16510static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16511 return (void *)((wxObject *) ((wxMenuItem *) x));
16512}
16513static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16514 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16515}
16516static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16518}
16519static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16520 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16521}
16522static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16523 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16524}
16525static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16526 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16527}
16528static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16529 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16530}
16531static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16532 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16533}
16534static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16535 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16536}
16537static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16538 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16539}
16540static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16541 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16542}
16543static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16544 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16545}
16546static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16547 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16548}
16549static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16550 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16551}
16552static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16553 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16554}
16555static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16556 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16557}
16558static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16559 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16560}
16561static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16562 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16563}
16564static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16565 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16566}
16567static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16568 return (void *)((wxObject *) ((wxImageHandler *) x));
16569}
16570static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16571 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16572}
16573static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16574 return (void *)((wxObject *) ((wxEvtHandler *) x));
16575}
16576static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
16577 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16578}
16579static void *_p_wxPaintDCTo_p_wxObject(void *x) {
16580 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
16581}
16582static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
16583 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
16584}
16585static void *_p_wxScreenDCTo_p_wxObject(void *x) {
16586 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
16587}
41f1cec7
RD
16588static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16589 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16590}
d14a1e28
RD
16591static void *_p_wxImageTo_p_wxObject(void *x) {
16592 return (void *)((wxObject *) ((wxImage *) x));
16593}
16594static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16595 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16596}
d14a1e28
RD
16597static void *_p_wxPaletteTo_p_wxObject(void *x) {
16598 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
16599}
16600static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
16601 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
16602}
16603static void *_p_wxImageListTo_p_wxObject(void *x) {
16604 return (void *)((wxObject *) ((wxImageList *) x));
16605}
16606static void *_p_wxCursorTo_p_wxObject(void *x) {
16607 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
16608}
16609static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
16610 return (void *)((wxObject *) ((wxEncodingConverter *) x));
16611}
16612static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
16613 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
16614}
16615static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16617}
16618static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16619 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16620}
16621static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16622 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16623}
16624static void *_p_wxWindowTo_p_wxObject(void *x) {
16625 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16626}
16627static void *_p_wxMenuTo_p_wxObject(void *x) {
16628 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16629}
16630static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16631 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16632}
16633static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
16634 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
16635}
16636static void *_p_wxBrushListTo_p_wxObject(void *x) {
16637 return (void *)((wxObject *) ((wxBrushList *) x));
16638}
16639static void *_p_wxPyPenTo_p_wxObject(void *x) {
16640 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
16641}
16642static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16643 return (void *)((wxObject *) ((wxFileSystem *) x));
16644}
16645static void *_p_wxBitmapTo_p_wxObject(void *x) {
16646 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
16647}
16648static void *_p_wxMaskTo_p_wxObject(void *x) {
16649 return (void *)((wxObject *) ((wxMask *) x));
16650}
16651static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16652 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16653}
16654static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16655 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16656}
16657static void *_p_wxPyAppTo_p_wxObject(void *x) {
16658 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16659}
16660static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16661 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16662}
16663static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16664 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16665}
16666static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16667 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16668}
16669static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16671}
16672static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16673 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16674}
16675static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16676 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16677}
16678static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16679 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16680}
16681static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16683}
16684static void *_p_wxFontTo_p_wxObject(void *x) {
16685 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
16686}
16687static void *_p_wxBrushTo_p_wxObject(void *x) {
16688 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
16689}
16690static void *_p_wxMetaFileTo_p_wxObject(void *x) {
16691 return (void *)((wxObject *) ((wxMetaFile *) x));
16692}
16693static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16694 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16695}
16696static void *_p_wxColourTo_p_wxObject(void *x) {
16697 return (void *)((wxObject *) ((wxColour *) x));
16698}
16699static void *_p_wxFontListTo_p_wxObject(void *x) {
16700 return (void *)((wxObject *) ((wxFontList *) x));
16701}
16702static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16703 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16704}
16705static void *_p_wxValidatorTo_p_wxObject(void *x) {
16706 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16707}
423f194a
RD
16708static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
16709 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
d14a1e28 16710}
423f194a
RD
16711static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
16712 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
d14a1e28 16713}
423f194a
RD
16714static void *_p_wxScreenDCTo_p_wxDC(void *x) {
16715 return (void *)((wxDC *) ((wxScreenDC *) x));
16716}
16717static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
16718 return (void *)((wxDC *) ((wxMirrorDC *) x));
16719}
16720static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
16721 return (void *)((wxDC *) ((wxMemoryDC *) x));
16722}
16723static void *_p_wxWindowDCTo_p_wxDC(void *x) {
16724 return (void *)((wxDC *) ((wxWindowDC *) x));
16725}
16726static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
16727 return (void *)((wxDC *) ((wxMetaFileDC *) x));
16728}
16729static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
16730 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
16731}
16732static void *_p_wxClientDCTo_p_wxDC(void *x) {
16733 return (void *)((wxDC *) ((wxClientDC *) x));
16734}
16735static void *_p_wxPaintDCTo_p_wxDC(void *x) {
16736 return (void *)((wxDC *) ((wxPaintDC *) x));
16737}
16738static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
16739 return (void *)((wxDC *) ((wxPostScriptDC *) x));
16740}
16741static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
16742 return (void *)((wxDC *) ((wxPrinterDC *) x));
16743}
16744static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
16745 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
16746}
16747static void *_p_wxIconTo_p_wxGDIObject(void *x) {
16748 return (void *)((wxGDIObject *) ((wxIcon *) x));
16749}
16750static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
16751 return (void *)((wxGDIObject *) ((wxPalette *) x));
16752}
16753static void *_p_wxPenTo_p_wxGDIObject(void *x) {
16754 return (void *)((wxGDIObject *) ((wxPen *) x));
16755}
16756static void *_p_wxFontTo_p_wxGDIObject(void *x) {
16757 return (void *)((wxGDIObject *) ((wxFont *) x));
16758}
16759static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
16760 return (void *)((wxGDIObject *) ((wxCursor *) x));
16761}
16762static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
16763 return (void *)((wxGDIObject *) ((wxBitmap *) x));
16764}
16765static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
16766 return (void *)((wxGDIObject *) ((wxRegion *) x));
16767}
16768static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
16769 return (void *)((wxGDIObject *) ((wxBrush *) x));
16770}
16771static void *_p_wxPyPenTo_p_wxPen(void *x) {
16772 return (void *)((wxPen *) ((wxPyPen *) x));
d14a1e28
RD
16773}
16774static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
d14a1e28
RD
16775static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
16776static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
d14a1e28
RD
16777static 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}};
16778static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
16779static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16780static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
16781static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
16782static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
16783static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
16784static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
16785static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16786static 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}};
16787static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16788static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
16789static 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}};
16790static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
d14a1e28
RD
16791static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
16792static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
16793static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
16794static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
41f1cec7 16795static 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}};
d14a1e28
RD
16796static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
16797static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16798static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16799static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
16800static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
16801static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16802static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
16803static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
16804static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
16805static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
d14a1e28
RD
16806static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
16807static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
16808static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
16809static 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}};
16810static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
16811static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
16812static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
16813static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
16814static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
16815static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
16816static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
16817static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
16818static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
16819static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
16820static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
16821static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
16822static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
d14a1e28 16823static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
423f194a 16824static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
d14a1e28
RD
16825static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
16826static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
16827static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
16828static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
16829
16830static swig_type_info *swig_types_initial[] = {
16831_swigt__p_wxPostScriptDC,
d14a1e28
RD
16832_swigt__p_wxBrush,
16833_swigt__p_wxColour,
d14a1e28
RD
16834_swigt__p_wxDC,
16835_swigt__p_wxMirrorDC,
16836_swigt__p_byte,
16837_swigt__p_wxPyFontEnumerator,
16838_swigt__p_wxIconLocation,
16839_swigt__p_wxImage,
16840_swigt__p_wxMetaFileDC,
16841_swigt__p_wxMask,
16842_swigt__p_wxFont,
16843_swigt__p_wxWindow,
16844_swigt__p_wxSize,
16845_swigt__p_double,
16846_swigt__p_wxMemoryDC,
16847_swigt__p_wxFontMapper,
d14a1e28
RD
16848_swigt__p_wxEffects,
16849_swigt__p_wxNativeEncodingInfo,
16850_swigt__p_wxPalette,
16851_swigt__p_wxBitmap,
16852_swigt__p_wxObject,
16853_swigt__p_wxRegionIterator,
16854_swigt__p_wxRect,
16855_swigt__p_wxString,
16856_swigt__p_wxPrinterDC,
16857_swigt__p_wxIconBundle,
16858_swigt__p_wxPoint,
16859_swigt__p_wxDash,
16860_swigt__p_wxScreenDC,
16861_swigt__p_wxCursor,
16862_swigt__p_wxClientDC,
d14a1e28
RD
16863_swigt__p_wxBufferedDC,
16864_swigt__p_wxImageList,
16865_swigt__p_unsigned_char,
16866_swigt__p_wxGDIObject,
16867_swigt__p_wxLocale,
16868_swigt__p_wxIcon,
16869_swigt__p_wxRegion,
16870_swigt__p_wxLanguageInfo,
16871_swigt__p_wxConfigBase,
16872_swigt__p_wxWindowDC,
16873_swigt__p_wxPrintData,
16874_swigt__p_wxBrushList,
16875_swigt__p_wxFontList,
16876_swigt__p_wxPen,
16877_swigt__p_wxBufferedPaintDC,
16878_swigt__p_wxPaintDC,
16879_swigt__p_wxPenList,
d14a1e28
RD
16880_swigt__p_wxPyPen,
16881_swigt__p_int,
16882_swigt__p_wxMetaFile,
16883_swigt__p_wxNativeFontInfo,
16884_swigt__p_wxEncodingConverter,
16885_swigt__p_wxColourDatabase,
168860
16887};
16888
16889
16890/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16891
16892static swig_const_info swig_const_table[] = {
16893{ SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0},
16894{ SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0},
16895{ SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0},
16896{ SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0},
16897{ SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0},
16898{ SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0},
16899{ SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0},
16900{ SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0},
16901{ SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0},
16902{ SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0},
16903{ SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0},
16904{ SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0},
16905{ SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0},
16906{ SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0},
16907{ SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0},
16908{ SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0},
16909{ SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0},
16910{ SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0},
16911{ SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0},
16912{ SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0},
16913{ SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0},
16914{ SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0},
16915{ SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0},
16916{ SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0},
16917{ SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0},
16918{ SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0},
16919{ SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0},
16920{ SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0},
16921{ SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0},
16922{ SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0},
16923{ SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0},
16924{ SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0},
16925{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0},
16926{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0},
16927{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0},
16928{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0},
16929{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0},
16930{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0},
16931{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0},
16932{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0},
16933{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0},
16934{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0},
16935{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0},
16936{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0},
16937{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0},
16938{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0},
16939{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0},
16940{ SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0},
16941{ SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0},
16942{ SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0},
16943{ SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0},
16944{ SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0},
16945{ SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0},
16946{ SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0},
16947{ SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0},
16948{ SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0},
16949{ SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0},
16950{ SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0},
16951{ SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0},
16952{ SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0},
16953{ SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0},
16954{ SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0},
16955{ SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0},
16956{ SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0},
16957{ SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0},
16958{ SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0},
16959{ SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0},
16960{ SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0},
16961{ SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0},
16962{ SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0},
16963{ SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0},
16964{ SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0},
16965{ SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0},
16966{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0},
16967{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0},
16968{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0},
16969{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0},
16970{ SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0},
16971{ SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0},
16972{ SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0},
16973{ SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0},
16974{ SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0},
16975{ SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0},
16976{ SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0},
16977{ SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0},
16978{ SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0},
16979{ SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0},
16980{ SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0},
16981{ SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0},
16982{ SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0},
16983{ SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0},
16984{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0},
16985{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0},
16986{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0},
16987{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0},
16988{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0},
16989{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0},
16990{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0},
16991{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0},
16992{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0},
16993{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0},
16994{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0},
16995{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0},
16996{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0},
16997{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0},
16998{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0},
16999{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0},
17000{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0},
17001{ SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0},
17002{ SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0},
17003{ SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0},
17004{ SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0},
17005{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0},
17006{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0},
17007{ SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0},
17008{ SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0},
17009{ SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0},
17010{ SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0},
17011{ SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0},
17012{ SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0},
17013{ SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0},
17014{ SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0},
17015{ SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0},
17016{ SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0},
17017{ SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0},
17018{ SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0},
17019{ SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0},
17020{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0},
17021{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0},
17022{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0},
17023{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0},
17024{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0},
17025{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0},
17026{ SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0},
17027{ SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0},
17028{ SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0},
17029{ SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0},
17030{ SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0},
17031{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0},
17032{ SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0},
17033{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0},
17034{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0},
17035{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0},
17036{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0},
17037{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0},
17038{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0},
17039{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0},
17040{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0},
17041{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0},
17042{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0},
17043{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0},
17044{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0},
17045{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0},
17046{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0},
17047{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0},
17048{ SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0},
17049{ SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0},
17050{ SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0},
17051{ SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0},
17052{ SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0},
17053{ SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0},
17054{ SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0},
17055{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0},
17056{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0},
17057{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0},
17058{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0},
17059{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0},
17060{ SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0},
17061{ SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0},
17062{ SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0},
17063{ SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0},
17064{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0},
17065{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0},
17066{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0},
17067{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0},
17068{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0},
17069{ SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0},
17070{ SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0},
17071{ SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0},
17072{ SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0},
17073{ SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0},
17074{ SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0},
17075{ SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0},
17076{ SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0},
17077{ SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0},
17078{ SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0},
17079{ SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0},
17080{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0},
17081{ SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0},
17082{ SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0},
17083{ SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0},
17084{ SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0},
17085{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0},
17086{ SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0},
17087{ SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0},
17088{ SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0},
17089{ SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0},
17090{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0},
17091{ SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0},
17092{ SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0},
17093{ SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0},
17094{ SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0},
17095{ SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0},
17096{ SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0},
17097{ SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0},
17098{ SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0},
17099{ SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0},
17100{ SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0},
17101{ SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0},
17102{ SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0},
17103{ SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0},
17104{ SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0},
17105{ SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0},
17106{ SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0},
17107{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0},
17108{ SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0},
17109{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0},
17110{ SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0},
17111{ SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0},
17112{ SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0},
17113{ SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0},
17114{ SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0},
17115{ SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0},
17116{ SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0},
17117{ SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0},
17118{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0},
17119{ SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0},
17120{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0},
17121{ SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0},
17122{ SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0},
17123{ SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0},
17124{ SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0},
17125{ SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0},
17126{ SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0},
17127{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0},
17128{ SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0},
17129{ SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0},
17130{ SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0},
17131{ SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0},
17132{ SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0},
17133{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0},
17134{ SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0},
17135{ SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0},
17136{ SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0},
17137{ SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0},
17138{ SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0},
17139{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0},
17140{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0},
17141{ SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0},
17142{ SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0},
17143{ SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0},
17144{ SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0},
17145{ SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0},
17146{ SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0},
17147{ SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0},
17148{ SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0},
17149{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0},
17150{ SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0},
17151{ SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0},
17152{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0},
17153{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0},
17154{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0},
17155{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0},
17156{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0},
17157{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0},
17158{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0},
17159{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0},
17160{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0},
17161{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0},
17162{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0},
17163{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0},
17164{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0},
17165{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0},
17166{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0},
17167{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0},
17168{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0},
17169{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0},
17170{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0},
17171{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0},
17172{ SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0},
17173{ SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0},
17174{ SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0},
17175{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0},
17176{ SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0},
17177{ SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0},
17178{ SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0},
17179{ SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0},
17180{ SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0},
17181{ SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0},
17182{ SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0},
17183{ SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0},
17184{ SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0},
17185{ SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0},
17186{ SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0},
17187{ SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0},
17188{ SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0},
17189{ SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0},
17190{ SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0},
17191{ SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0},
17192{ SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0},
17193{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0},
17194{ SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0},
17195{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0},
17196{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0},
17197{ SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0},
17198{ SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0},
17199{ SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0},
17200{ SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0},
17201{ SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0},
17202{ SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0},
17203{ SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0},
17204{ SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0},
17205{ SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0},
17206{ SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0},
17207{ SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0},
17208{ SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0},
17209{ SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0},
17210{ SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0},
17211{ SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0},
17212{ SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0},
17213{ SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0},
17214{ SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0},
17215{ SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0},
17216{ SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0},
17217{ SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0},
17218{ SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0},
17219{ SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0},
17220{ SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0},
17221{ SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0},
17222{ SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0},
17223{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0},
17224{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0},
17225{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0},
17226{ SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0},
17227{ SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0},
17228{ SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0},
17229{ SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0},
17230{0}};
17231
17232#ifdef __cplusplus
17233}
17234#endif
17235
17236#ifdef __cplusplus
17237extern "C"
17238#endif
17239SWIGEXPORT(void) SWIG_init(void) {
17240 static PyObject *SWIG_globals = 0;
17241 static int typeinit = 0;
17242 PyObject *m, *d;
17243 int i;
17244 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
17245 m = Py_InitModule((char *) SWIG_name, SwigMethods);
17246 d = PyModule_GetDict(m);
17247
17248 if (!typeinit) {
17249 for (i = 0; swig_types_initial[i]; i++) {
17250 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
17251 }
17252 typeinit = 1;
17253 }
17254 SWIG_InstallConstants(d,swig_const_table);
17255
17256
17257 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
17258
17259 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
17260 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
17261 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
17262 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
17263 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
17264 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
17265 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
17266 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
17267 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
17268 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
17269 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
17270 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
17271 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
17272 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
17273 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
17274 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
17275 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
17276 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
17277 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
17278 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
17279 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
17280 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
17281 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
17282 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
17283 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
17284 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
17285 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
17286 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
17287 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
17288 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
17289 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
17290 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
17291 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
17292 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
17293 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
17294 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
17295 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
17296 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
17297 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
17298 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
17299 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
17300 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
17301 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
17302 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
17303 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
17304 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
17305 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
44127b65
RD
17306
17307 // Work around a chicken/egg problem in drawlist.cpp
17308 wxPyDrawList_SetAPIPtr();
17309
d14a1e28
RD
17310}
17311