]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.cpp
Added includes to correct compilo
[wxWidgets.git] / wxPython / src / gtk / gdi.cpp
CommitLineData
70551f47 1/*
2cd2fac8 2 * FILE : src/gtk/gdi.cpp
70551f47
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
2cd2fac8 6 * Version 1.1 (Build 883)
70551f47
RD
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
2d091820 27# define SWIGEXPORT(a) __declspec(dllexport) a
70551f47
RD
28# else
29# if defined(__BORLANDC__)
3bcd5e1c 30# define SWIGEXPORT(a) a _export
70551f47 31# else
3bcd5e1c 32# define SWIGEXPORT(a) a
70551f47
RD
33# endif
34# endif
35#else
3bcd5e1c 36# define SWIGEXPORT(a) a
70551f47
RD
37#endif
38
3bcd5e1c
RD
39#include "Python.h"
40
70551f47
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
3bcd5e1c 44
70551f47
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
70551f47
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
70551f47
RD
54#define SWIG_init initgdic
55
56#define SWIG_name "gdic"
57
58#include "helpers.h"
21f8d7ea 59#include <wx/imaglist.h>
059a841c
RD
60#include <wx/fontmap.h>
61#include <wx/fontenc.h>
62#include <wx/fontmap.h>
63#include <wx/fontutil.h>
a884bee5 64#include <wx/dcbuffer.h>
70551f47 65
70551f47
RD
66
67static PyObject* t_output_helper(PyObject* target, PyObject* o) {
68 PyObject* o2;
69 PyObject* o3;
70
3bcd5e1c 71 if (!target) {
70551f47 72 target = o;
3bcd5e1c 73 } else if (target == Py_None) {
70551f47
RD
74 Py_DECREF(Py_None);
75 target = o;
3bcd5e1c 76 } else {
70551f47
RD
77 if (!PyTuple_Check(target)) {
78 o2 = target;
79 target = PyTuple_New(1);
80 PyTuple_SetItem(target, 0, o2);
81 }
3bcd5e1c
RD
82 o3 = PyTuple_New(1);
83 PyTuple_SetItem(o3, 0, o);
70551f47
RD
84
85 o2 = target;
3bcd5e1c
RD
86 target = PySequence_Concat(o2, o3);
87 Py_DECREF(o2);
70551f47
RD
88 Py_DECREF(o3);
89 }
90 return target;
91}
9a74fcaf
RD
92
93 // Put some wx default wxChar* values into wxStrings.
94 static const wxString wxPyEmptyString(wxT(""));
fbcadfca
RD
95 // Implementations of some alternate "constructors"
96
70551f47
RD
97 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
98 return new wxBitmap(width, height, depth);
99 }
100
fbcadfca
RD
101 static char** ConvertListOfStrings(PyObject* listOfStrings) {
102 char** cArray = NULL;
103 int count;
104
105 if (!PyList_Check(listOfStrings)) {
106 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
107 return NULL;
108 }
109 count = PyList_Size(listOfStrings);
110 cArray = new char*[count];
111
112 for(int x=0; x<count; x++) {
113 // TODO: Need some validation and error checking here
114 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
115 }
116 return cArray;
117 }
118
9d6da64a 119
fbcadfca
RD
120 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
121 char** cArray = NULL;
122 wxBitmap* bmp;
123
124 cArray = ConvertListOfStrings(listOfStrings);
125 if (! cArray)
126 return NULL;
127 bmp = new wxBitmap(cArray);
128 delete [] cArray;
129 return bmp;
130 }
131
132
133 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
134 return new wxBitmap(icon);
135 }
136
137
9d6da64a
RD
138 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
139 return new wxBitmap(bits, width, height, depth);
140 }
9e689c06 141
7ff49f0c 142
9d6da64a
RD
143// #ifdef __WXMSW__
144// wxBitmap* wxBitmapFromData(PyObject* data, long type,
145// int width, int height, int depth = 1) {
146// if (! PyString_Check(data)) {
147// PyErr_SetString(PyExc_TypeError, "Expected string object");
148// return NULL;
149// }
150// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
151// }
152// #endif
8bf5d46e 153
70551f47
RD
154 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
155 return new wxMask(bitmap, colour);
fbcadfca
RD
156 }
157 // Implementations of some alternate "constructors"
158 wxIcon* wxEmptyIcon() {
159 return new wxIcon();
160 }
161
162 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
163 char** cArray = NULL;
164 wxIcon* icon;
165
166 cArray = ConvertListOfStrings(listOfStrings);
167 if (! cArray)
168 return NULL;
169 icon = new wxIcon(cArray);
170 delete [] cArray;
171 return icon;
70551f47 172 }
4be61064
RD
173
174 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
175 wxIcon* icon = new wxIcon();
176 icon->CopyFromBitmap(bmp);
177 return icon;
178 }
70551f47 179 // Alternate 'constructor'
b26e2dc4 180 wxCursor* wxPyStockCursor(int id) {
70551f47
RD
181 return new wxCursor(id);
182 }
183 // Alternate 'constructor'
184 wxColour* wxNamedColour(const wxString& colorName) {
185 return new wxColour(colorName);
186 }
65191ae8
RD
187
188class wxPyPen : public wxPen {
189public:
190 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
191 : wxPen(colour, width, style)
192 { m_dash = NULL; }
193 ~wxPyPen() {
194 if (m_dash)
05f30eec 195 delete [] m_dash;
65191ae8
RD
196 }
197
198 void SetDashes(int nb_dashes, const wxDash *dash) {
05f30eec
RD
199 if (m_dash)
200 delete [] m_dash;
65191ae8 201 m_dash = new wxDash[nb_dashes];
05f30eec 202 for (int i=0; i<nb_dashes; i++) {
65191ae8 203 m_dash[i] = dash[i];
05f30eec 204 }
65191ae8
RD
205 wxPen::SetDashes(nb_dashes, m_dash);
206 }
207
208private:
209 wxDash* m_dash;
210};
3bcd5e1c
RD
211
212static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
213 *x1 = dc->MinX();
214 *y1 = dc->MinY();
215 *x2 = dc->MaxX();
216 *y2 = dc->MaxY();
217}
70551f47
RD
218 // Alternate 'constructor'
219 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
220 return new wxMemoryDC(oldDC);
221 }
21f8d7ea
RD
222
223#if 0
70551f47
RD
224extern wxFont * wxNORMAL_FONT;
225extern wxFont * wxSMALL_FONT;
226extern wxFont * wxITALIC_FONT;
227extern wxFont * wxSWISS_FONT;
228extern wxPen * wxRED_PEN;
229extern wxPen * wxCYAN_PEN;
230extern wxPen * wxGREEN_PEN;
231extern wxPen * wxBLACK_PEN;
232extern wxPen * wxWHITE_PEN;
233extern wxPen * wxTRANSPARENT_PEN;
234extern wxPen * wxBLACK_DASHED_PEN;
235extern wxPen * wxGREY_PEN;
236extern wxPen * wxMEDIUM_GREY_PEN;
237extern wxPen * wxLIGHT_GREY_PEN;
238extern wxBrush * wxBLUE_BRUSH;
239extern wxBrush * wxGREEN_BRUSH;
240extern wxBrush * wxWHITE_BRUSH;
241extern wxBrush * wxBLACK_BRUSH;
242extern wxBrush * wxTRANSPARENT_BRUSH;
243extern wxBrush * wxCYAN_BRUSH;
244extern wxBrush * wxRED_BRUSH;
245extern wxBrush * wxGREY_BRUSH;
246extern wxBrush * wxMEDIUM_GREY_BRUSH;
247extern wxBrush * wxLIGHT_GREY_BRUSH;
248extern wxColour * wxBLACK;
249extern wxColour * wxWHITE;
250extern wxColour * wxRED;
251extern wxColour * wxBLUE;
252extern wxColour * wxGREEN;
253extern wxColour * wxCYAN;
254extern wxColour * wxLIGHT_GREY;
255extern wxCursor * wxSTANDARD_CURSOR;
256extern wxCursor * wxHOURGLASS_CURSOR;
257extern wxCursor * wxCROSS_CURSOR;
258extern wxBitmap wxNullBitmap;
259extern wxIcon wxNullIcon;
260extern wxCursor wxNullCursor;
261extern wxPen wxNullPen;
262extern wxBrush wxNullBrush;
263extern wxPalette wxNullPalette;
264extern wxFont wxNullFont;
265extern wxColour wxNullColour;
5e40f9dd
RD
266extern wxFontList * wxTheFontList;
267extern wxPenList * wxThePenList;
65191ae8 268extern wxBrushList * wxTheBrushList;
5e40f9dd 269extern wxColourDatabase * wxTheColourDatabase;
21f8d7ea 270
2d091820
RD
271#endif
272#ifdef __cplusplus
273extern "C" {
21f8d7ea 274#endif
107e4716 275static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
276 PyObject * _resultobj;
277 wxBitmap * _result;
278 int _arg0;
279 int _arg1;
2d091820 280 int _arg2 = (int ) -1;
107e4716 281 char *_kwnames[] = { "width","height","depth", NULL };
70551f47
RD
282 char _ptemp[128];
283
284 self = self;
107e4716 285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 286 return NULL;
ab9bc19b 287{
474c48f9 288 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 289 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
ab9bc19b 290
474c48f9 291 wxPyEndAllowThreads(__tstate);
4dfaa61e 292 if (PyErr_Occurred()) return NULL;
2d091820
RD
293} if (_result) {
294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
295 _resultobj = Py_BuildValue("s",_ptemp);
296 } else {
297 Py_INCREF(Py_None);
298 _resultobj = Py_None;
299 }
70551f47
RD
300 return _resultobj;
301}
302
fbcadfca
RD
303static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
304 PyObject * _resultobj;
305 wxBitmap * _result;
306 PyObject * _arg0;
307 PyObject * _obj0 = 0;
308 char *_kwnames[] = { "listOfStrings", NULL };
309 char _ptemp[128];
310
311 self = self;
312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
313 return NULL;
314{
315 _arg0 = _obj0;
316}
317{
474c48f9 318 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 319 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
fbcadfca 320
474c48f9 321 wxPyEndAllowThreads(__tstate);
4dfaa61e 322 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
323} if (_result) {
324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
325 _resultobj = Py_BuildValue("s",_ptemp);
326 } else {
327 Py_INCREF(Py_None);
328 _resultobj = Py_None;
329 }
330 return _resultobj;
331}
332
333static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxBitmap * _result;
336 wxIcon * _arg0;
337 PyObject * _argo0 = 0;
338 char *_kwnames[] = { "icon", NULL };
339 char _ptemp[128];
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
348 return NULL;
349 }
350 }
351{
474c48f9 352 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 353 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
fbcadfca 354
474c48f9 355 wxPyEndAllowThreads(__tstate);
4dfaa61e 356 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
357} if (_result) {
358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
359 _resultobj = Py_BuildValue("s",_ptemp);
360 } else {
361 Py_INCREF(Py_None);
362 _resultobj = Py_None;
363 }
364 return _resultobj;
365}
366
9d6da64a
RD
367static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
368 PyObject * _resultobj;
369 wxBitmap * _result;
370 char * _arg0;
371 int _arg1;
372 int _arg2;
373 int _arg3 = (int ) 1;
374 char *_kwnames[] = { "bits","width","height","depth", NULL };
375 char _ptemp[128];
376
377 self = self;
378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
379 return NULL;
380{
474c48f9 381 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 382 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
9d6da64a 383
474c48f9 384 wxPyEndAllowThreads(__tstate);
9d6da64a
RD
385 if (PyErr_Occurred()) return NULL;
386} if (_result) {
387 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
388 _resultobj = Py_BuildValue("s",_ptemp);
389 } else {
390 Py_INCREF(Py_None);
391 _resultobj = Py_None;
392 }
393 return _resultobj;
394}
395
107e4716 396static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
397 PyObject * _resultobj;
398 wxMask * _result;
399 wxBitmap * _arg0;
400 wxColour * _arg1;
2d091820 401 PyObject * _argo0 = 0;
f6bcfd97
BP
402 wxColour temp;
403 PyObject * _obj1 = 0;
107e4716 404 char *_kwnames[] = { "bitmap","colour", NULL };
70551f47
RD
405 char _ptemp[128];
406
407 self = self;
f6bcfd97 408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
70551f47 409 return NULL;
2d091820
RD
410 if (_argo0) {
411 if (_argo0 == Py_None) { _arg0 = NULL; }
412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
414 return NULL;
415 }
416 }
f6bcfd97
BP
417{
418 _arg1 = &temp;
419 if (! wxColour_helper(_obj1, &_arg1))
70551f47 420 return NULL;
f6bcfd97 421}
ab9bc19b 422{
474c48f9 423 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 424 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
ab9bc19b 425
474c48f9 426 wxPyEndAllowThreads(__tstate);
4dfaa61e 427 if (PyErr_Occurred()) return NULL;
2d091820
RD
428} if (_result) {
429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
430 _resultobj = Py_BuildValue("s",_ptemp);
431 } else {
432 Py_INCREF(Py_None);
433 _resultobj = Py_None;
434 }
70551f47
RD
435 return _resultobj;
436}
437
fbcadfca
RD
438static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
439 PyObject * _resultobj;
440 wxIcon * _result;
441 char *_kwnames[] = { NULL };
442 char _ptemp[128];
443
444 self = self;
445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
446 return NULL;
447{
474c48f9 448 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 449 _result = (wxIcon *)wxEmptyIcon();
fbcadfca 450
474c48f9 451 wxPyEndAllowThreads(__tstate);
4dfaa61e 452 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
453} if (_result) {
454 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
455 _resultobj = Py_BuildValue("s",_ptemp);
456 } else {
457 Py_INCREF(Py_None);
458 _resultobj = Py_None;
459 }
460 return _resultobj;
461}
462
463static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxIcon * _result;
466 PyObject * _arg0;
467 PyObject * _obj0 = 0;
468 char *_kwnames[] = { "listOfStrings", NULL };
469 char _ptemp[128];
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
473 return NULL;
474{
475 _arg0 = _obj0;
476}
477{
474c48f9 478 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 479 _result = (wxIcon *)wxIconFromXPMData(_arg0);
fbcadfca 480
474c48f9 481 wxPyEndAllowThreads(__tstate);
4dfaa61e 482 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
483} if (_result) {
484 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
485 _resultobj = Py_BuildValue("s",_ptemp);
486 } else {
487 Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 }
490 return _resultobj;
491}
492
4be61064
RD
493static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 wxIcon * _result;
496 wxBitmap * _arg0;
497 PyObject * _argo0 = 0;
498 char *_kwnames[] = { "bmp", NULL };
499 char _ptemp[128];
500
501 self = self;
502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
503 return NULL;
504 if (_argo0) {
505 if (_argo0 == Py_None) { _arg0 = NULL; }
506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
508 return NULL;
509 }
510 }
511{
512 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 513 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
4be61064
RD
514
515 wxPyEndAllowThreads(__tstate);
516 if (PyErr_Occurred()) return NULL;
517} if (_result) {
518 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
519 _resultobj = Py_BuildValue("s",_ptemp);
520 } else {
521 Py_INCREF(Py_None);
522 _resultobj = Py_None;
523 }
524 return _resultobj;
525}
526
107e4716 527static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
528 PyObject * _resultobj;
529 wxCursor * _result;
530 int _arg0;
107e4716 531 char *_kwnames[] = { "id", NULL };
70551f47
RD
532 char _ptemp[128];
533
534 self = self;
107e4716 535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
70551f47 536 return NULL;
ab9bc19b 537{
474c48f9 538 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 539 _result = (wxCursor *)wxPyStockCursor(_arg0);
ab9bc19b 540
474c48f9 541 wxPyEndAllowThreads(__tstate);
4dfaa61e 542 if (PyErr_Occurred()) return NULL;
2d091820
RD
543} if (_result) {
544 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
545 _resultobj = Py_BuildValue("s",_ptemp);
546 } else {
547 Py_INCREF(Py_None);
548 _resultobj = Py_None;
549 }
70551f47
RD
550 return _resultobj;
551}
552
107e4716 553static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
554 PyObject * _resultobj;
555 wxColour * _result;
556 wxString * _arg0;
557 PyObject * _obj0 = 0;
107e4716 558 char *_kwnames[] = { "colorName", NULL };
70551f47
RD
559 char _ptemp[128];
560
561 self = self;
107e4716 562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
70551f47
RD
563 return NULL;
564{
c8bc7bb8
RD
565 _arg0 = wxString_in_helper(_obj0);
566 if (_arg0 == NULL)
70551f47 567 return NULL;
70551f47 568}
ab9bc19b 569{
474c48f9 570 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 571 _result = (wxColour *)wxNamedColour(*_arg0);
ab9bc19b 572
474c48f9 573 wxPyEndAllowThreads(__tstate);
4dfaa61e 574 if (PyErr_Occurred()) return NULL;
2d091820
RD
575} if (_result) {
576 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
577 _resultobj = Py_BuildValue("s",_ptemp);
578 } else {
579 Py_INCREF(Py_None);
580 _resultobj = Py_None;
581 }
70551f47
RD
582{
583 if (_obj0)
584 delete _arg0;
585}
586 return _resultobj;
587}
588
107e4716 589static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
590 PyObject * _resultobj;
591 wxMemoryDC * _result;
592 wxDC * _arg0;
2d091820 593 PyObject * _argo0 = 0;
107e4716 594 char *_kwnames[] = { "oldDC", NULL };
70551f47
RD
595 char _ptemp[128];
596
597 self = self;
107e4716 598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
70551f47 599 return NULL;
2d091820
RD
600 if (_argo0) {
601 if (_argo0 == Py_None) { _arg0 = NULL; }
602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
604 return NULL;
605 }
606 }
ab9bc19b 607{
474c48f9 608 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 609 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
ab9bc19b 610
474c48f9 611 wxPyEndAllowThreads(__tstate);
4dfaa61e 612 if (PyErr_Occurred()) return NULL;
2d091820
RD
613} if (_result) {
614 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
615 _resultobj = Py_BuildValue("s",_ptemp);
616 } else {
617 Py_INCREF(Py_None);
618 _resultobj = Py_None;
619 }
70551f47
RD
620 return _resultobj;
621}
622
623static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
624
625 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
626 return 1;
627}
628
629static PyObject *_wrap_wxNORMAL_FONT_get() {
630 PyObject * pyobj;
631 char ptemp[128];
632
633 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
634 pyobj = PyString_FromString(ptemp);
635 return pyobj;
636}
637
638static int _wrap_wxSMALL_FONT_set(PyObject *val) {
639
640 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
641 return 1;
642}
643
644static PyObject *_wrap_wxSMALL_FONT_get() {
645 PyObject * pyobj;
646 char ptemp[128];
647
648 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
649 pyobj = PyString_FromString(ptemp);
650 return pyobj;
651}
652
653static int _wrap_wxITALIC_FONT_set(PyObject *val) {
654
655 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
656 return 1;
657}
658
659static PyObject *_wrap_wxITALIC_FONT_get() {
660 PyObject * pyobj;
661 char ptemp[128];
662
663 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
664 pyobj = PyString_FromString(ptemp);
665 return pyobj;
666}
667
668static int _wrap_wxSWISS_FONT_set(PyObject *val) {
669
670 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
671 return 1;
672}
673
674static PyObject *_wrap_wxSWISS_FONT_get() {
675 PyObject * pyobj;
676 char ptemp[128];
677
678 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
679 pyobj = PyString_FromString(ptemp);
680 return pyobj;
681}
682
683static int _wrap_wxRED_PEN_set(PyObject *val) {
684
685 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
686 return 1;
687}
688
689static PyObject *_wrap_wxRED_PEN_get() {
690 PyObject * pyobj;
691 char ptemp[128];
692
693 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
694 pyobj = PyString_FromString(ptemp);
695 return pyobj;
696}
697
698static int _wrap_wxCYAN_PEN_set(PyObject *val) {
699
700 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
701 return 1;
702}
703
704static PyObject *_wrap_wxCYAN_PEN_get() {
705 PyObject * pyobj;
706 char ptemp[128];
707
708 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
709 pyobj = PyString_FromString(ptemp);
710 return pyobj;
711}
712
713static int _wrap_wxGREEN_PEN_set(PyObject *val) {
714
715 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
716 return 1;
717}
718
719static PyObject *_wrap_wxGREEN_PEN_get() {
720 PyObject * pyobj;
721 char ptemp[128];
722
723 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
724 pyobj = PyString_FromString(ptemp);
725 return pyobj;
726}
727
728static int _wrap_wxBLACK_PEN_set(PyObject *val) {
729
730 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
731 return 1;
732}
733
734static PyObject *_wrap_wxBLACK_PEN_get() {
735 PyObject * pyobj;
736 char ptemp[128];
737
738 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
739 pyobj = PyString_FromString(ptemp);
740 return pyobj;
741}
742
743static int _wrap_wxWHITE_PEN_set(PyObject *val) {
744
745 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
746 return 1;
747}
748
749static PyObject *_wrap_wxWHITE_PEN_get() {
750 PyObject * pyobj;
751 char ptemp[128];
752
753 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
754 pyobj = PyString_FromString(ptemp);
755 return pyobj;
756}
757
758static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
759
760 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
761 return 1;
762}
763
764static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
765 PyObject * pyobj;
766 char ptemp[128];
767
768 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
769 pyobj = PyString_FromString(ptemp);
770 return pyobj;
771}
772
773static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
774
775 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
776 return 1;
777}
778
779static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
780 PyObject * pyobj;
781 char ptemp[128];
782
783 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
784 pyobj = PyString_FromString(ptemp);
785 return pyobj;
786}
787
788static int _wrap_wxGREY_PEN_set(PyObject *val) {
789
790 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
791 return 1;
792}
793
794static PyObject *_wrap_wxGREY_PEN_get() {
795 PyObject * pyobj;
796 char ptemp[128];
797
798 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
799 pyobj = PyString_FromString(ptemp);
800 return pyobj;
801}
802
803static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
804
805 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
806 return 1;
807}
808
809static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
810 PyObject * pyobj;
811 char ptemp[128];
812
813 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
814 pyobj = PyString_FromString(ptemp);
815 return pyobj;
816}
817
818static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
819
820 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
821 return 1;
822}
823
824static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
825 PyObject * pyobj;
826 char ptemp[128];
827
828 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
829 pyobj = PyString_FromString(ptemp);
830 return pyobj;
831}
832
833static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
834
835 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
836 return 1;
837}
838
839static PyObject *_wrap_wxBLUE_BRUSH_get() {
840 PyObject * pyobj;
841 char ptemp[128];
842
843 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
844 pyobj = PyString_FromString(ptemp);
845 return pyobj;
846}
847
848static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
849
850 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
851 return 1;
852}
853
854static PyObject *_wrap_wxGREEN_BRUSH_get() {
855 PyObject * pyobj;
856 char ptemp[128];
857
858 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
859 pyobj = PyString_FromString(ptemp);
860 return pyobj;
861}
862
863static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
864
865 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
866 return 1;
867}
868
869static PyObject *_wrap_wxWHITE_BRUSH_get() {
870 PyObject * pyobj;
871 char ptemp[128];
872
873 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
874 pyobj = PyString_FromString(ptemp);
875 return pyobj;
876}
877
878static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
879
880 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
881 return 1;
882}
883
884static PyObject *_wrap_wxBLACK_BRUSH_get() {
885 PyObject * pyobj;
886 char ptemp[128];
887
888 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
889 pyobj = PyString_FromString(ptemp);
890 return pyobj;
891}
892
893static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
894
895 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
896 return 1;
897}
898
899static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
900 PyObject * pyobj;
901 char ptemp[128];
902
903 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
904 pyobj = PyString_FromString(ptemp);
905 return pyobj;
906}
907
908static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
909
910 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
911 return 1;
912}
913
914static PyObject *_wrap_wxCYAN_BRUSH_get() {
915 PyObject * pyobj;
916 char ptemp[128];
917
918 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
919 pyobj = PyString_FromString(ptemp);
920 return pyobj;
921}
922
923static int _wrap_wxRED_BRUSH_set(PyObject *val) {
924
925 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
926 return 1;
927}
928
929static PyObject *_wrap_wxRED_BRUSH_get() {
930 PyObject * pyobj;
931 char ptemp[128];
932
933 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
934 pyobj = PyString_FromString(ptemp);
935 return pyobj;
936}
937
938static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
939
940 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
941 return 1;
942}
943
944static PyObject *_wrap_wxGREY_BRUSH_get() {
945 PyObject * pyobj;
946 char ptemp[128];
947
948 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
949 pyobj = PyString_FromString(ptemp);
950 return pyobj;
951}
952
953static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
954
955 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
956 return 1;
957}
958
959static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
960 PyObject * pyobj;
961 char ptemp[128];
962
963 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
964 pyobj = PyString_FromString(ptemp);
965 return pyobj;
966}
967
968static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
969
970 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
971 return 1;
972}
973
974static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
975 PyObject * pyobj;
976 char ptemp[128];
977
978 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
979 pyobj = PyString_FromString(ptemp);
980 return pyobj;
981}
982
983static int _wrap_wxBLACK_set(PyObject *val) {
984
985 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
986 return 1;
987}
988
989static PyObject *_wrap_wxBLACK_get() {
990 PyObject * pyobj;
991 char ptemp[128];
992
993 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
994 pyobj = PyString_FromString(ptemp);
995 return pyobj;
996}
997
998static int _wrap_wxWHITE_set(PyObject *val) {
999
1000 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1001 return 1;
1002}
1003
1004static PyObject *_wrap_wxWHITE_get() {
1005 PyObject * pyobj;
1006 char ptemp[128];
1007
1008 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1009 pyobj = PyString_FromString(ptemp);
1010 return pyobj;
1011}
1012
1013static int _wrap_wxRED_set(PyObject *val) {
1014
1015 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1016 return 1;
1017}
1018
1019static PyObject *_wrap_wxRED_get() {
1020 PyObject * pyobj;
1021 char ptemp[128];
1022
1023 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1024 pyobj = PyString_FromString(ptemp);
1025 return pyobj;
1026}
1027
1028static int _wrap_wxBLUE_set(PyObject *val) {
1029
1030 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1031 return 1;
1032}
1033
1034static PyObject *_wrap_wxBLUE_get() {
1035 PyObject * pyobj;
1036 char ptemp[128];
1037
1038 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1039 pyobj = PyString_FromString(ptemp);
1040 return pyobj;
1041}
1042
1043static int _wrap_wxGREEN_set(PyObject *val) {
1044
1045 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1046 return 1;
1047}
1048
1049static PyObject *_wrap_wxGREEN_get() {
1050 PyObject * pyobj;
1051 char ptemp[128];
1052
1053 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1054 pyobj = PyString_FromString(ptemp);
1055 return pyobj;
1056}
1057
1058static int _wrap_wxCYAN_set(PyObject *val) {
1059
1060 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1061 return 1;
1062}
1063
1064static PyObject *_wrap_wxCYAN_get() {
1065 PyObject * pyobj;
1066 char ptemp[128];
1067
1068 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1069 pyobj = PyString_FromString(ptemp);
1070 return pyobj;
1071}
1072
1073static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1074
1075 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1076 return 1;
1077}
1078
1079static PyObject *_wrap_wxLIGHT_GREY_get() {
1080 PyObject * pyobj;
1081 char ptemp[128];
1082
1083 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1084 pyobj = PyString_FromString(ptemp);
1085 return pyobj;
1086}
1087
1088static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1089
1090 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1091 return 1;
1092}
1093
1094static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1095 PyObject * pyobj;
1096 char ptemp[128];
1097
1098 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1099 pyobj = PyString_FromString(ptemp);
1100 return pyobj;
1101}
1102
1103static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1104
1105 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1106 return 1;
1107}
1108
1109static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1110 PyObject * pyobj;
1111 char ptemp[128];
1112
1113 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1114 pyobj = PyString_FromString(ptemp);
1115 return pyobj;
1116}
1117
1118static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1119
1120 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1121 return 1;
1122}
1123
1124static PyObject *_wrap_wxCROSS_CURSOR_get() {
1125 PyObject * pyobj;
1126 char ptemp[128];
1127
1128 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1129 pyobj = PyString_FromString(ptemp);
1130 return pyobj;
1131}
1132
1133static int _wrap_wxNullBitmap_set(PyObject *val) {
1134
1135 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1136 return 1;
1137}
1138
1139static PyObject *_wrap_wxNullBitmap_get() {
1140 PyObject * pyobj;
1141 char ptemp[128];
1142
1143 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1144 pyobj = PyString_FromString(ptemp);
1145 return pyobj;
1146}
1147
1148static int _wrap_wxNullIcon_set(PyObject *val) {
1149
1150 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1151 return 1;
1152}
1153
1154static PyObject *_wrap_wxNullIcon_get() {
1155 PyObject * pyobj;
1156 char ptemp[128];
1157
1158 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1159 pyobj = PyString_FromString(ptemp);
1160 return pyobj;
1161}
1162
1163static int _wrap_wxNullCursor_set(PyObject *val) {
1164
1165 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1166 return 1;
1167}
1168
1169static PyObject *_wrap_wxNullCursor_get() {
1170 PyObject * pyobj;
1171 char ptemp[128];
1172
1173 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1174 pyobj = PyString_FromString(ptemp);
1175 return pyobj;
1176}
1177
1178static int _wrap_wxNullPen_set(PyObject *val) {
1179
1180 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1181 return 1;
1182}
1183
1184static PyObject *_wrap_wxNullPen_get() {
1185 PyObject * pyobj;
1186 char ptemp[128];
1187
1188 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1189 pyobj = PyString_FromString(ptemp);
1190 return pyobj;
1191}
1192
1193static int _wrap_wxNullBrush_set(PyObject *val) {
1194
1195 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1196 return 1;
1197}
1198
1199static PyObject *_wrap_wxNullBrush_get() {
1200 PyObject * pyobj;
1201 char ptemp[128];
1202
1203 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1204 pyobj = PyString_FromString(ptemp);
1205 return pyobj;
1206}
1207
1208static int _wrap_wxNullPalette_set(PyObject *val) {
1209
1210 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1211 return 1;
1212}
1213
1214static PyObject *_wrap_wxNullPalette_get() {
1215 PyObject * pyobj;
1216 char ptemp[128];
1217
1218 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1219 pyobj = PyString_FromString(ptemp);
1220 return pyobj;
1221}
1222
1223static int _wrap_wxNullFont_set(PyObject *val) {
1224
1225 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1226 return 1;
1227}
1228
1229static PyObject *_wrap_wxNullFont_get() {
1230 PyObject * pyobj;
1231 char ptemp[128];
1232
1233 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1234 pyobj = PyString_FromString(ptemp);
1235 return pyobj;
1236}
1237
1238static int _wrap_wxNullColour_set(PyObject *val) {
1239
1240 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1241 return 1;
1242}
1243
1244static PyObject *_wrap_wxNullColour_get() {
1245 PyObject * pyobj;
1246 char ptemp[128];
1247
1248 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1249 pyobj = PyString_FromString(ptemp);
1250 return pyobj;
1251}
1252
5e40f9dd
RD
1253static int _wrap_wxTheFontList_set(PyObject *val) {
1254
1255 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1256 return 1;
1257}
1258
1259static PyObject *_wrap_wxTheFontList_get() {
1260 PyObject * pyobj;
1261 char ptemp[128];
1262
1263 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1264 pyobj = PyString_FromString(ptemp);
1265 return pyobj;
1266}
1267
1268static int _wrap_wxThePenList_set(PyObject *val) {
1269
1270 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1271 return 1;
1272}
1273
1274static PyObject *_wrap_wxThePenList_get() {
1275 PyObject * pyobj;
1276 char ptemp[128];
1277
1278 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1279 pyobj = PyString_FromString(ptemp);
1280 return pyobj;
1281}
1282
1283static int _wrap_wxTheBrushList_set(PyObject *val) {
1284
1285 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1286 return 1;
1287}
1288
1289static PyObject *_wrap_wxTheBrushList_get() {
1290 PyObject * pyobj;
1291 char ptemp[128];
1292
65191ae8 1293 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
5e40f9dd
RD
1294 pyobj = PyString_FromString(ptemp);
1295 return pyobj;
1296}
1297
1298static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1299
1300 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1301 return 1;
1302}
1303
1304static PyObject *_wrap_wxTheColourDatabase_get() {
1305 PyObject * pyobj;
1306 char ptemp[128];
1307
1308 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1309 pyobj = PyString_FromString(ptemp);
1310 return pyobj;
1311}
1312
9df61a29
RD
1313static void *SwigwxGDIObjectTowxObject(void *ptr) {
1314 wxGDIObject *src;
1315 wxObject *dest;
1316 src = (wxGDIObject *) ptr;
1317 dest = (wxObject *) src;
1318 return (void *) dest;
1319}
1320
1321#define new_wxGDIObject() (new wxGDIObject())
1322static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1323 PyObject * _resultobj;
1324 wxGDIObject * _result;
1325 char *_kwnames[] = { NULL };
1326 char _ptemp[128];
1327
1328 self = self;
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1330 return NULL;
1331{
474c48f9 1332 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1333 _result = (wxGDIObject *)new_wxGDIObject();
9df61a29 1334
474c48f9 1335 wxPyEndAllowThreads(__tstate);
4dfaa61e 1336 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1337} if (_result) {
1338 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1339 _resultobj = Py_BuildValue("s",_ptemp);
1340 } else {
1341 Py_INCREF(Py_None);
1342 _resultobj = Py_None;
1343 }
1344 return _resultobj;
1345}
1346
1347#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1348static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject * _resultobj;
1350 wxGDIObject * _arg0;
1351 PyObject * _argo0 = 0;
1352 char *_kwnames[] = { "self", NULL };
1353
1354 self = self;
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1356 return NULL;
1357 if (_argo0) {
1358 if (_argo0 == Py_None) { _arg0 = NULL; }
1359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1361 return NULL;
1362 }
1363 }
1364{
474c48f9 1365 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1366 delete_wxGDIObject(_arg0);
9df61a29 1367
474c48f9 1368 wxPyEndAllowThreads(__tstate);
4dfaa61e 1369 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1370} Py_INCREF(Py_None);
1371 _resultobj = Py_None;
1372 return _resultobj;
1373}
1374
1375#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1376static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1377 PyObject * _resultobj;
1378 bool _result;
1379 wxGDIObject * _arg0;
1380 PyObject * _argo0 = 0;
1381 char *_kwnames[] = { "self", NULL };
1382
1383 self = self;
1384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1385 return NULL;
1386 if (_argo0) {
1387 if (_argo0 == Py_None) { _arg0 = NULL; }
1388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1390 return NULL;
1391 }
1392 }
1393{
474c48f9 1394 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1395 _result = (bool )wxGDIObject_GetVisible(_arg0);
9df61a29 1396
474c48f9 1397 wxPyEndAllowThreads(__tstate);
4dfaa61e 1398 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1399} _resultobj = Py_BuildValue("i",_result);
1400 return _resultobj;
1401}
1402
1403#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1404static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject * _resultobj;
1406 wxGDIObject * _arg0;
1407 bool _arg1;
1408 PyObject * _argo0 = 0;
1409 int tempbool1;
1410 char *_kwnames[] = { "self","visible", NULL };
1411
1412 self = self;
1413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1414 return NULL;
1415 if (_argo0) {
1416 if (_argo0 == Py_None) { _arg0 = NULL; }
1417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1419 return NULL;
1420 }
1421 }
1422 _arg1 = (bool ) tempbool1;
1423{
474c48f9 1424 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1425 wxGDIObject_SetVisible(_arg0,_arg1);
9df61a29 1426
474c48f9 1427 wxPyEndAllowThreads(__tstate);
4dfaa61e 1428 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1429} Py_INCREF(Py_None);
1430 _resultobj = Py_None;
1431 return _resultobj;
1432}
1433
1434#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1435static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1436 PyObject * _resultobj;
1437 bool _result;
1438 wxGDIObject * _arg0;
1439 PyObject * _argo0 = 0;
1440 char *_kwnames[] = { "self", NULL };
1441
1442 self = self;
1443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1444 return NULL;
1445 if (_argo0) {
1446 if (_argo0 == Py_None) { _arg0 = NULL; }
1447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1449 return NULL;
1450 }
1451 }
1452{
474c48f9 1453 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1454 _result = (bool )wxGDIObject_IsNull(_arg0);
9df61a29 1455
474c48f9 1456 wxPyEndAllowThreads(__tstate);
4dfaa61e 1457 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1458} _resultobj = Py_BuildValue("i",_result);
1459 return _resultobj;
1460}
1461
1462static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1463 wxBitmap *src;
1464 wxGDIObject *dest;
1465 src = (wxBitmap *) ptr;
1466 dest = (wxGDIObject *) src;
1467 return (void *) dest;
1468}
1469
1470static void *SwigwxBitmapTowxObject(void *ptr) {
1471 wxBitmap *src;
1472 wxObject *dest;
1473 src = (wxBitmap *) ptr;
1474 dest = (wxObject *) src;
1475 return (void *) dest;
1476}
1477
70551f47 1478#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
107e4716 1479static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1480 PyObject * _resultobj;
1481 wxBitmap * _result;
1482 wxString * _arg0;
f0972d1e 1483 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
70551f47 1484 PyObject * _obj0 = 0;
107e4716 1485 char *_kwnames[] = { "name","type", NULL };
70551f47
RD
1486 char _ptemp[128];
1487
1488 self = self;
5c0282d5 1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
70551f47
RD
1490 return NULL;
1491{
c8bc7bb8
RD
1492 _arg0 = wxString_in_helper(_obj0);
1493 if (_arg0 == NULL)
70551f47 1494 return NULL;
70551f47 1495}
ab9bc19b 1496{
474c48f9 1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1498 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
ab9bc19b 1499
474c48f9 1500 wxPyEndAllowThreads(__tstate);
4dfaa61e 1501 if (PyErr_Occurred()) return NULL;
2d091820
RD
1502} if (_result) {
1503 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1504 _resultobj = Py_BuildValue("s",_ptemp);
1505 } else {
1506 Py_INCREF(Py_None);
1507 _resultobj = Py_None;
1508 }
70551f47
RD
1509{
1510 if (_obj0)
1511 delete _arg0;
1512}
1513 return _resultobj;
1514}
1515
1516#define delete_wxBitmap(_swigobj) (delete _swigobj)
107e4716 1517static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1518 PyObject * _resultobj;
1519 wxBitmap * _arg0;
2d091820 1520 PyObject * _argo0 = 0;
107e4716 1521 char *_kwnames[] = { "self", NULL };
70551f47
RD
1522
1523 self = self;
107e4716 1524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
70551f47 1525 return NULL;
2d091820
RD
1526 if (_argo0) {
1527 if (_argo0 == Py_None) { _arg0 = NULL; }
1528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1530 return NULL;
1531 }
1532 }
ab9bc19b 1533{
474c48f9 1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1535 delete_wxBitmap(_arg0);
ab9bc19b 1536
474c48f9 1537 wxPyEndAllowThreads(__tstate);
4dfaa61e 1538 if (PyErr_Occurred()) return NULL;
ab9bc19b 1539} Py_INCREF(Py_None);
70551f47
RD
1540 _resultobj = Py_None;
1541 return _resultobj;
1542}
1543
70551f47 1544#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
107e4716 1545static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1546 PyObject * _resultobj;
1547 wxPalette * _result;
1548 wxBitmap * _arg0;
2d091820 1549 PyObject * _argo0 = 0;
107e4716 1550 char *_kwnames[] = { "self", NULL };
70551f47
RD
1551 char _ptemp[128];
1552
1553 self = self;
107e4716 1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
70551f47 1555 return NULL;
2d091820
RD
1556 if (_argo0) {
1557 if (_argo0 == Py_None) { _arg0 = NULL; }
1558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1560 return NULL;
1561 }
1562 }
ab9bc19b 1563{
474c48f9 1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1565 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
ab9bc19b 1566
474c48f9 1567 wxPyEndAllowThreads(__tstate);
4dfaa61e 1568 if (PyErr_Occurred()) return NULL;
2d091820
RD
1569} if (_result) {
1570 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1571 _resultobj = Py_BuildValue("s",_ptemp);
1572 } else {
1573 Py_INCREF(Py_None);
1574 _resultobj = Py_None;
1575 }
70551f47
RD
1576 return _resultobj;
1577}
1578
1579#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
107e4716 1580static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1581 PyObject * _resultobj;
1582 wxMask * _result;
1583 wxBitmap * _arg0;
2d091820 1584 PyObject * _argo0 = 0;
107e4716 1585 char *_kwnames[] = { "self", NULL };
70551f47
RD
1586 char _ptemp[128];
1587
1588 self = self;
107e4716 1589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
70551f47 1590 return NULL;
2d091820
RD
1591 if (_argo0) {
1592 if (_argo0 == Py_None) { _arg0 = NULL; }
1593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1595 return NULL;
1596 }
1597 }
ab9bc19b 1598{
474c48f9 1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1600 _result = (wxMask *)wxBitmap_GetMask(_arg0);
ab9bc19b 1601
474c48f9 1602 wxPyEndAllowThreads(__tstate);
4dfaa61e 1603 if (PyErr_Occurred()) return NULL;
2d091820
RD
1604} if (_result) {
1605 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1606 _resultobj = Py_BuildValue("s",_ptemp);
1607 } else {
1608 Py_INCREF(Py_None);
1609 _resultobj = Py_None;
1610 }
70551f47
RD
1611 return _resultobj;
1612}
1613
56f5d962
RD
1614#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1615static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1616 PyObject * _resultobj;
56f5d962 1617 bool _result;
70551f47 1618 wxBitmap * _arg0;
56f5d962 1619 wxString * _arg1;
f0972d1e 1620 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
2d091820 1621 PyObject * _argo0 = 0;
56f5d962 1622 PyObject * _obj1 = 0;
5c0282d5 1623 char *_kwnames[] = { "self","name","type", NULL };
70551f47
RD
1624
1625 self = self;
5c0282d5 1626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 1627 return NULL;
2d091820
RD
1628 if (_argo0) {
1629 if (_argo0 == Py_None) { _arg0 = NULL; }
1630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
70551f47
RD
1632 return NULL;
1633 }
1634 }
56f5d962 1635{
c8bc7bb8
RD
1636 _arg1 = wxString_in_helper(_obj1);
1637 if (_arg1 == NULL)
56f5d962 1638 return NULL;
56f5d962 1639}
ab9bc19b 1640{
474c48f9 1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1642 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 1643
474c48f9 1644 wxPyEndAllowThreads(__tstate);
4dfaa61e 1645 if (PyErr_Occurred()) return NULL;
ab9bc19b 1646} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
1647{
1648 if (_obj1)
1649 delete _arg1;
1650}
70551f47
RD
1651 return _resultobj;
1652}
1653
56f5d962
RD
1654#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1655static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1656 PyObject * _resultobj;
1657 bool _result;
1658 wxBitmap * _arg0;
1659 wxString * _arg1;
5c0282d5 1660 wxBitmapType _arg2;
56f5d962 1661 wxPalette * _arg3 = (wxPalette *) NULL;
2d091820 1662 PyObject * _argo0 = 0;
70551f47 1663 PyObject * _obj1 = 0;
56f5d962
RD
1664 PyObject * _argo3 = 0;
1665 char *_kwnames[] = { "self","name","type","palette", NULL };
70551f47
RD
1666
1667 self = self;
56f5d962 1668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
70551f47 1669 return NULL;
2d091820
RD
1670 if (_argo0) {
1671 if (_argo0 == Py_None) { _arg0 = NULL; }
1672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
70551f47
RD
1674 return NULL;
1675 }
1676 }
1677{
c8bc7bb8
RD
1678 _arg1 = wxString_in_helper(_obj1);
1679 if (_arg1 == NULL)
2cd2fac8 1680 return NULL;
70551f47 1681}
56f5d962
RD
1682 if (_argo3) {
1683 if (_argo3 == Py_None) { _arg3 = NULL; }
1684 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1685 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1686 return NULL;
1687 }
1688 }
ab9bc19b 1689{
474c48f9 1690 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1691 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1692
474c48f9 1693 wxPyEndAllowThreads(__tstate);
4dfaa61e 1694 if (PyErr_Occurred()) return NULL;
ab9bc19b 1695} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1696{
1697 if (_obj1)
1698 delete _arg1;
1699}
1700 return _resultobj;
1701}
1702
56f5d962
RD
1703#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1704static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1705 PyObject * _resultobj;
1706 wxBitmap * _arg0;
1707 wxMask * _arg1;
1708 PyObject * _argo0 = 0;
1709 PyObject * _argo1 = 0;
1710 char *_kwnames[] = { "self","mask", NULL };
1711
1712 self = self;
1713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1714 return NULL;
1715 if (_argo0) {
1716 if (_argo0 == Py_None) { _arg0 = NULL; }
1717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1719 return NULL;
1720 }
1721 }
1722 if (_argo1) {
1723 if (_argo1 == Py_None) { _arg1 = NULL; }
1724 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1725 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1726 return NULL;
1727 }
1728 }
1729{
474c48f9 1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1731 wxBitmap_SetMask(_arg0,_arg1);
56f5d962 1732
474c48f9 1733 wxPyEndAllowThreads(__tstate);
4dfaa61e 1734 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1735} Py_INCREF(Py_None);
1736 _resultobj = Py_None;
1737 return _resultobj;
1738}
1739
70551f47 1740#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
107e4716 1741static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1742 PyObject * _resultobj;
1743 bool _result;
1744 wxBitmap * _arg0;
2d091820 1745 PyObject * _argo0 = 0;
107e4716 1746 char *_kwnames[] = { "self", NULL };
70551f47
RD
1747
1748 self = self;
107e4716 1749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
70551f47 1750 return NULL;
2d091820
RD
1751 if (_argo0) {
1752 if (_argo0 == Py_None) { _arg0 = NULL; }
1753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1755 return NULL;
1756 }
1757 }
ab9bc19b 1758{
474c48f9 1759 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1760 _result = (bool )wxBitmap_Ok(_arg0);
ab9bc19b 1761
474c48f9 1762 wxPyEndAllowThreads(__tstate);
4dfaa61e 1763 if (PyErr_Occurred()) return NULL;
ab9bc19b 1764} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1765 return _resultobj;
1766}
1767
56f5d962
RD
1768#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1769static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1770 PyObject * _resultobj;
56f5d962 1771 int _result;
70551f47 1772 wxBitmap * _arg0;
2d091820 1773 PyObject * _argo0 = 0;
56f5d962 1774 char *_kwnames[] = { "self", NULL };
70551f47
RD
1775
1776 self = self;
56f5d962 1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
70551f47 1778 return NULL;
2d091820
RD
1779 if (_argo0) {
1780 if (_argo0 == Py_None) { _arg0 = NULL; }
1781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
70551f47
RD
1783 return NULL;
1784 }
1785 }
1786{
474c48f9 1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1788 _result = (int )wxBitmap_GetWidth(_arg0);
56f5d962 1789
474c48f9 1790 wxPyEndAllowThreads(__tstate);
4dfaa61e 1791 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1792} _resultobj = Py_BuildValue("i",_result);
1793 return _resultobj;
70551f47 1794}
56f5d962
RD
1795
1796#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1797static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject * _resultobj;
1799 int _result;
1800 wxBitmap * _arg0;
1801 PyObject * _argo0 = 0;
1802 char *_kwnames[] = { "self", NULL };
1803
1804 self = self;
1805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1806 return NULL;
1807 if (_argo0) {
1808 if (_argo0 == Py_None) { _arg0 = NULL; }
1809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
70551f47
RD
1811 return NULL;
1812 }
1813 }
ab9bc19b 1814{
474c48f9 1815 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1816 _result = (int )wxBitmap_GetHeight(_arg0);
ab9bc19b 1817
474c48f9 1818 wxPyEndAllowThreads(__tstate);
4dfaa61e 1819 if (PyErr_Occurred()) return NULL;
ab9bc19b 1820} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1821 return _resultobj;
1822}
1823
56f5d962
RD
1824#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1825static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1826 PyObject * _resultobj;
56f5d962 1827 int _result;
70551f47 1828 wxBitmap * _arg0;
2d091820 1829 PyObject * _argo0 = 0;
56f5d962 1830 char *_kwnames[] = { "self", NULL };
70551f47
RD
1831
1832 self = self;
56f5d962 1833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
70551f47 1834 return NULL;
2d091820
RD
1835 if (_argo0) {
1836 if (_argo0 == Py_None) { _arg0 = NULL; }
1837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
70551f47
RD
1839 return NULL;
1840 }
1841 }
ab9bc19b 1842{
474c48f9 1843 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1844 _result = (int )wxBitmap_GetDepth(_arg0);
ab9bc19b 1845
474c48f9 1846 wxPyEndAllowThreads(__tstate);
4dfaa61e 1847 if (PyErr_Occurred()) return NULL;
56f5d962 1848} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1849 return _resultobj;
1850}
1851
56f5d962
RD
1852#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1853static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1854 PyObject * _resultobj;
1855 wxBitmap * _arg0;
1856 int _arg1;
2d091820 1857 PyObject * _argo0 = 0;
56f5d962 1858 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
1859
1860 self = self;
56f5d962 1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 1862 return NULL;
2d091820
RD
1863 if (_argo0) {
1864 if (_argo0 == Py_None) { _arg0 = NULL; }
1865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
70551f47
RD
1867 return NULL;
1868 }
1869 }
ab9bc19b 1870{
474c48f9 1871 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1872 wxBitmap_SetWidth(_arg0,_arg1);
ab9bc19b 1873
474c48f9 1874 wxPyEndAllowThreads(__tstate);
4dfaa61e 1875 if (PyErr_Occurred()) return NULL;
ab9bc19b 1876} Py_INCREF(Py_None);
70551f47
RD
1877 _resultobj = Py_None;
1878 return _resultobj;
1879}
1880
56f5d962
RD
1881#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1882static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1883 PyObject * _resultobj;
1884 wxBitmap * _arg0;
56f5d962 1885 int _arg1;
2d091820 1886 PyObject * _argo0 = 0;
56f5d962 1887 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
1888
1889 self = self;
56f5d962 1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 1891 return NULL;
2d091820
RD
1892 if (_argo0) {
1893 if (_argo0 == Py_None) { _arg0 = NULL; }
1894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
70551f47
RD
1896 return NULL;
1897 }
1898 }
ab9bc19b 1899{
474c48f9 1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1901 wxBitmap_SetHeight(_arg0,_arg1);
ab9bc19b 1902
474c48f9 1903 wxPyEndAllowThreads(__tstate);
4dfaa61e 1904 if (PyErr_Occurred()) return NULL;
ab9bc19b 1905} Py_INCREF(Py_None);
70551f47
RD
1906 _resultobj = Py_None;
1907 return _resultobj;
1908}
1909
56f5d962
RD
1910#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1911static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1912 PyObject * _resultobj;
1913 wxBitmap * _arg0;
1914 int _arg1;
2d091820 1915 PyObject * _argo0 = 0;
56f5d962 1916 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
1917
1918 self = self;
56f5d962 1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 1920 return NULL;
2d091820
RD
1921 if (_argo0) {
1922 if (_argo0 == Py_None) { _arg0 = NULL; }
1923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
70551f47
RD
1925 return NULL;
1926 }
1927 }
ab9bc19b 1928{
474c48f9 1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1930 wxBitmap_SetDepth(_arg0,_arg1);
ab9bc19b 1931
474c48f9 1932 wxPyEndAllowThreads(__tstate);
4dfaa61e 1933 if (PyErr_Occurred()) return NULL;
ab9bc19b 1934} Py_INCREF(Py_None);
70551f47
RD
1935 _resultobj = Py_None;
1936 return _resultobj;
1937}
1938
f6bcfd97
BP
1939#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1940static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject * _resultobj;
1942 wxBitmap * _result;
1943 wxBitmap * _arg0;
1944 wxRect * _arg1;
1945 PyObject * _argo0 = 0;
1946 wxRect temp;
1947 PyObject * _obj1 = 0;
1948 char *_kwnames[] = { "self","rect", NULL };
1949 char _ptemp[128];
1950
1951 self = self;
1952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1953 return NULL;
1954 if (_argo0) {
1955 if (_argo0 == Py_None) { _arg0 = NULL; }
1956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1958 return NULL;
1959 }
1960 }
1961{
1962 _arg1 = &temp;
1963 if (! wxRect_helper(_obj1, &_arg1))
1964 return NULL;
1965}
1966{
474c48f9 1967 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1968 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
f6bcfd97 1969
474c48f9 1970 wxPyEndAllowThreads(__tstate);
4dfaa61e 1971 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1972} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1973 _resultobj = Py_BuildValue("s",_ptemp);
1974 return _resultobj;
1975}
1976
65191ae8
RD
1977#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1978static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject * _resultobj;
1980 bool _result;
1981 wxBitmap * _arg0;
1982 wxIcon * _arg1;
1983 PyObject * _argo0 = 0;
1984 PyObject * _argo1 = 0;
1985 char *_kwnames[] = { "self","icon", NULL };
1986
1987 self = self;
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
1989 return NULL;
1990 if (_argo0) {
1991 if (_argo0 == Py_None) { _arg0 = NULL; }
1992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
1994 return NULL;
1995 }
1996 }
1997 if (_argo1) {
1998 if (_argo1 == Py_None) { _arg1 = NULL; }
1999 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2000 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2001 return NULL;
2002 }
2003 }
2004{
474c48f9 2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2006 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
65191ae8 2007
474c48f9 2008 wxPyEndAllowThreads(__tstate);
65191ae8
RD
2009 if (PyErr_Occurred()) return NULL;
2010} _resultobj = Py_BuildValue("i",_result);
2011 return _resultobj;
2012}
2013
9df61a29
RD
2014static void *SwigwxMaskTowxObject(void *ptr) {
2015 wxMask *src;
2016 wxObject *dest;
2017 src = (wxMask *) ptr;
2018 dest = (wxObject *) src;
2019 return (void *) dest;
2020}
2021
70551f47 2022#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
107e4716 2023static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2024 PyObject * _resultobj;
2025 wxMask * _result;
2026 wxBitmap * _arg0;
2d091820 2027 PyObject * _argo0 = 0;
107e4716 2028 char *_kwnames[] = { "bitmap", NULL };
70551f47
RD
2029 char _ptemp[128];
2030
2031 self = self;
107e4716 2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
70551f47 2033 return NULL;
2d091820
RD
2034 if (_argo0) {
2035 if (_argo0 == Py_None) { _arg0 = NULL; }
2036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
2037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2038 return NULL;
2039 }
2040 }
ab9bc19b 2041{
474c48f9 2042 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2043 _result = (wxMask *)new_wxMask(*_arg0);
ab9bc19b 2044
474c48f9 2045 wxPyEndAllowThreads(__tstate);
4dfaa61e 2046 if (PyErr_Occurred()) return NULL;
2d091820
RD
2047} if (_result) {
2048 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2049 _resultobj = Py_BuildValue("s",_ptemp);
2050 } else {
2051 Py_INCREF(Py_None);
2052 _resultobj = Py_None;
2053 }
70551f47
RD
2054 return _resultobj;
2055}
2056
fbcadfca
RD
2057static void wxMask_Destroy(wxMask *self) { delete self; }
2058static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2059 PyObject * _resultobj;
2060 wxMask * _arg0;
2061 PyObject * _argo0 = 0;
2062 char *_kwnames[] = { "self", NULL };
2063
2064 self = self;
2065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2066 return NULL;
2067 if (_argo0) {
2068 if (_argo0 == Py_None) { _arg0 = NULL; }
2069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2071 return NULL;
2072 }
2073 }
2074{
474c48f9 2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2076 wxMask_Destroy(_arg0);
fbcadfca 2077
474c48f9 2078 wxPyEndAllowThreads(__tstate);
4dfaa61e 2079 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2080} Py_INCREF(Py_None);
2081 _resultobj = Py_None;
2082 return _resultobj;
2083}
2084
9df61a29
RD
2085static void *SwigwxIconTowxGDIObject(void *ptr) {
2086 wxIcon *src;
2087 wxGDIObject *dest;
2088 src = (wxIcon *) ptr;
2089 dest = (wxGDIObject *) src;
2090 return (void *) dest;
2091}
2092
2093static void *SwigwxIconTowxObject(void *ptr) {
2094 wxIcon *src;
2095 wxObject *dest;
2096 src = (wxIcon *) ptr;
2097 dest = (wxObject *) src;
2098 return (void *) dest;
2099}
2100
8bf5d46e 2101#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 2102static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
2103 PyObject * _resultobj;
2104 wxIcon * _result;
2105 wxString * _arg0;
2106 long _arg1;
2d091820
RD
2107 int _arg2 = (int ) -1;
2108 int _arg3 = (int ) -1;
8bf5d46e 2109 PyObject * _obj0 = 0;
107e4716 2110 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
8bf5d46e
RD
2111 char _ptemp[128];
2112
2113 self = self;
107e4716 2114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
8bf5d46e
RD
2115 return NULL;
2116{
c8bc7bb8
RD
2117 _arg0 = wxString_in_helper(_obj0);
2118 if (_arg0 == NULL)
8bf5d46e 2119 return NULL;
8bf5d46e
RD
2120}
2121{
474c48f9 2122 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2123 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
8bf5d46e 2124
474c48f9 2125 wxPyEndAllowThreads(__tstate);
4dfaa61e 2126 if (PyErr_Occurred()) return NULL;
2d091820
RD
2127} if (_result) {
2128 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2129 _resultobj = Py_BuildValue("s",_ptemp);
2130 } else {
2131 Py_INCREF(Py_None);
2132 _resultobj = Py_None;
2133 }
8bf5d46e
RD
2134{
2135 if (_obj0)
2136 delete _arg0;
2137}
2138 return _resultobj;
2139}
2140
70551f47 2141#define delete_wxIcon(_swigobj) (delete _swigobj)
107e4716 2142static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2143 PyObject * _resultobj;
2144 wxIcon * _arg0;
2d091820 2145 PyObject * _argo0 = 0;
107e4716 2146 char *_kwnames[] = { "self", NULL };
70551f47
RD
2147
2148 self = self;
107e4716 2149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
70551f47 2150 return NULL;
2d091820
RD
2151 if (_argo0) {
2152 if (_argo0 == Py_None) { _arg0 = NULL; }
2153 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2154 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2155 return NULL;
2156 }
2157 }
ab9bc19b 2158{
474c48f9 2159 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2160 delete_wxIcon(_arg0);
ab9bc19b 2161
474c48f9 2162 wxPyEndAllowThreads(__tstate);
4dfaa61e 2163 if (PyErr_Occurred()) return NULL;
ab9bc19b 2164} Py_INCREF(Py_None);
70551f47
RD
2165 _resultobj = Py_None;
2166 return _resultobj;
2167}
2168
56f5d962
RD
2169#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2170static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2171 PyObject * _resultobj;
56f5d962 2172 bool _result;
70551f47 2173 wxIcon * _arg0;
56f5d962
RD
2174 wxString * _arg1;
2175 long _arg2;
2d091820 2176 PyObject * _argo0 = 0;
56f5d962
RD
2177 PyObject * _obj1 = 0;
2178 char *_kwnames[] = { "self","name","flags", NULL };
70551f47
RD
2179
2180 self = self;
56f5d962 2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 2182 return NULL;
2d091820
RD
2183 if (_argo0) {
2184 if (_argo0 == Py_None) { _arg0 = NULL; }
2185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
70551f47
RD
2187 return NULL;
2188 }
2189 }
56f5d962 2190{
c8bc7bb8
RD
2191 _arg1 = wxString_in_helper(_obj1);
2192 if (_arg1 == NULL)
2cd2fac8 2193 return NULL;
56f5d962 2194}
ab9bc19b 2195{
474c48f9 2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2197 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 2198
474c48f9 2199 wxPyEndAllowThreads(__tstate);
4dfaa61e 2200 if (PyErr_Occurred()) return NULL;
ab9bc19b 2201} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
2202{
2203 if (_obj1)
2204 delete _arg1;
2205}
70551f47
RD
2206 return _resultobj;
2207}
2208
56f5d962
RD
2209#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2210static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2211 PyObject * _resultobj;
56f5d962 2212 bool _result;
70551f47 2213 wxIcon * _arg0;
2d091820 2214 PyObject * _argo0 = 0;
107e4716 2215 char *_kwnames[] = { "self", NULL };
70551f47
RD
2216
2217 self = self;
56f5d962 2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
70551f47 2219 return NULL;
2d091820
RD
2220 if (_argo0) {
2221 if (_argo0 == Py_None) { _arg0 = NULL; }
2222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
70551f47
RD
2224 return NULL;
2225 }
2226 }
ab9bc19b 2227{
474c48f9 2228 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2229 _result = (bool )wxIcon_Ok(_arg0);
ab9bc19b 2230
474c48f9 2231 wxPyEndAllowThreads(__tstate);
4dfaa61e 2232 if (PyErr_Occurred()) return NULL;
ab9bc19b 2233} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2234 return _resultobj;
2235}
2236
2237#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2238static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2239 PyObject * _resultobj;
2240 int _result;
2241 wxIcon * _arg0;
2d091820 2242 PyObject * _argo0 = 0;
107e4716 2243 char *_kwnames[] = { "self", NULL };
70551f47
RD
2244
2245 self = self;
107e4716 2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
70551f47 2247 return NULL;
2d091820
RD
2248 if (_argo0) {
2249 if (_argo0 == Py_None) { _arg0 = NULL; }
2250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2252 return NULL;
2253 }
2254 }
ab9bc19b 2255{
474c48f9 2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2257 _result = (int )wxIcon_GetWidth(_arg0);
ab9bc19b 2258
474c48f9 2259 wxPyEndAllowThreads(__tstate);
4dfaa61e 2260 if (PyErr_Occurred()) return NULL;
ab9bc19b 2261} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2262 return _resultobj;
2263}
2264
56f5d962
RD
2265#define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2266static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2267 PyObject * _resultobj;
56f5d962 2268 int _result;
70551f47 2269 wxIcon * _arg0;
2d091820 2270 PyObject * _argo0 = 0;
56f5d962 2271 char *_kwnames[] = { "self", NULL };
70551f47
RD
2272
2273 self = self;
56f5d962 2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
70551f47 2275 return NULL;
2d091820
RD
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
70551f47
RD
2280 return NULL;
2281 }
2282 }
ab9bc19b 2283{
474c48f9 2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2285 _result = (int )wxIcon_GetHeight(_arg0);
ab9bc19b 2286
474c48f9 2287 wxPyEndAllowThreads(__tstate);
4dfaa61e 2288 if (PyErr_Occurred()) return NULL;
ab9bc19b 2289} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2290 return _resultobj;
2291}
2292
56f5d962
RD
2293#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2294static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2295 PyObject * _resultobj;
56f5d962 2296 int _result;
70551f47 2297 wxIcon * _arg0;
2d091820 2298 PyObject * _argo0 = 0;
107e4716 2299 char *_kwnames[] = { "self", NULL };
70551f47
RD
2300
2301 self = self;
56f5d962 2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
70551f47 2303 return NULL;
2d091820
RD
2304 if (_argo0) {
2305 if (_argo0 == Py_None) { _arg0 = NULL; }
2306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
70551f47
RD
2308 return NULL;
2309 }
2310 }
ab9bc19b 2311{
474c48f9 2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2313 _result = (int )wxIcon_GetDepth(_arg0);
ab9bc19b 2314
474c48f9 2315 wxPyEndAllowThreads(__tstate);
4dfaa61e 2316 if (PyErr_Occurred()) return NULL;
ab9bc19b 2317} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2318 return _resultobj;
2319}
2320
56f5d962
RD
2321#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2322static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2323 PyObject * _resultobj;
2324 wxIcon * _arg0;
2325 int _arg1;
2d091820 2326 PyObject * _argo0 = 0;
56f5d962 2327 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
2328
2329 self = self;
56f5d962 2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 2331 return NULL;
2d091820
RD
2332 if (_argo0) {
2333 if (_argo0 == Py_None) { _arg0 = NULL; }
2334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
70551f47
RD
2336 return NULL;
2337 }
2338 }
ab9bc19b 2339{
474c48f9 2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2341 wxIcon_SetWidth(_arg0,_arg1);
ab9bc19b 2342
474c48f9 2343 wxPyEndAllowThreads(__tstate);
4dfaa61e 2344 if (PyErr_Occurred()) return NULL;
ab9bc19b 2345} Py_INCREF(Py_None);
70551f47
RD
2346 _resultobj = Py_None;
2347 return _resultobj;
2348}
2349
2350#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
107e4716 2351static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2352 PyObject * _resultobj;
2353 wxIcon * _arg0;
2354 int _arg1;
2d091820 2355 PyObject * _argo0 = 0;
56f5d962 2356 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2357
2358 self = self;
107e4716 2359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2360 return NULL;
2d091820
RD
2361 if (_argo0) {
2362 if (_argo0 == Py_None) { _arg0 = NULL; }
2363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2365 return NULL;
2366 }
2367 }
ab9bc19b 2368{
474c48f9 2369 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2370 wxIcon_SetHeight(_arg0,_arg1);
ab9bc19b 2371
474c48f9 2372 wxPyEndAllowThreads(__tstate);
4dfaa61e 2373 if (PyErr_Occurred()) return NULL;
ab9bc19b 2374} Py_INCREF(Py_None);
70551f47
RD
2375 _resultobj = Py_None;
2376 return _resultobj;
2377}
2378
56f5d962
RD
2379#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2380static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2381 PyObject * _resultobj;
2382 wxIcon * _arg0;
2383 int _arg1;
2d091820 2384 PyObject * _argo0 = 0;
56f5d962 2385 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2386
2387 self = self;
56f5d962 2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2389 return NULL;
2d091820
RD
2390 if (_argo0) {
2391 if (_argo0 == Py_None) { _arg0 = NULL; }
2392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
70551f47
RD
2394 return NULL;
2395 }
2396 }
ab9bc19b 2397{
474c48f9 2398 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2399 wxIcon_SetDepth(_arg0,_arg1);
ab9bc19b 2400
474c48f9 2401 wxPyEndAllowThreads(__tstate);
4dfaa61e 2402 if (PyErr_Occurred()) return NULL;
ab9bc19b 2403} Py_INCREF(Py_None);
70551f47
RD
2404 _resultobj = Py_None;
2405 return _resultobj;
2406}
2407
fbcadfca
RD
2408#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2409static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2410 PyObject * _resultobj;
2411 wxIcon * _arg0;
2412 wxBitmap * _arg1;
2413 PyObject * _argo0 = 0;
2414 PyObject * _argo1 = 0;
2415 char *_kwnames[] = { "self","bmp", NULL };
2416
2417 self = self;
2418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2419 return NULL;
2420 if (_argo0) {
2421 if (_argo0 == Py_None) { _arg0 = NULL; }
2422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2424 return NULL;
2425 }
2426 }
2427 if (_argo1) {
2428 if (_argo1 == Py_None) { _arg1 = NULL; }
2429 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2430 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2431 return NULL;
2432 }
2433 }
2434{
474c48f9 2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2436 wxIcon_CopyFromBitmap(_arg0,*_arg1);
fbcadfca 2437
474c48f9 2438 wxPyEndAllowThreads(__tstate);
4dfaa61e 2439 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2440} Py_INCREF(Py_None);
2441 _resultobj = Py_None;
2442 return _resultobj;
2443}
2444
9df61a29
RD
2445static void *SwigwxCursorTowxGDIObject(void *ptr) {
2446 wxCursor *src;
2447 wxGDIObject *dest;
2448 src = (wxCursor *) ptr;
2449 dest = (wxGDIObject *) src;
2450 return (void *) dest;
2451}
2452
2453static void *SwigwxCursorTowxObject(void *ptr) {
2454 wxCursor *src;
2455 wxObject *dest;
2456 src = (wxCursor *) ptr;
2457 dest = (wxObject *) src;
2458 return (void *) dest;
2459}
2460
70551f47 2461#define delete_wxCursor(_swigobj) (delete _swigobj)
107e4716 2462static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2463 PyObject * _resultobj;
2464 wxCursor * _arg0;
2d091820 2465 PyObject * _argo0 = 0;
107e4716 2466 char *_kwnames[] = { "self", NULL };
70551f47
RD
2467
2468 self = self;
107e4716 2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
70551f47 2470 return NULL;
2d091820
RD
2471 if (_argo0) {
2472 if (_argo0 == Py_None) { _arg0 = NULL; }
2473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2475 return NULL;
2476 }
2477 }
ab9bc19b 2478{
474c48f9 2479 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2480 delete_wxCursor(_arg0);
ab9bc19b 2481
474c48f9 2482 wxPyEndAllowThreads(__tstate);
4dfaa61e 2483 if (PyErr_Occurred()) return NULL;
ab9bc19b 2484} Py_INCREF(Py_None);
70551f47
RD
2485 _resultobj = Py_None;
2486 return _resultobj;
2487}
2488
2489#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
107e4716 2490static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2491 PyObject * _resultobj;
2492 bool _result;
2493 wxCursor * _arg0;
2d091820 2494 PyObject * _argo0 = 0;
107e4716 2495 char *_kwnames[] = { "self", NULL };
70551f47
RD
2496
2497 self = self;
107e4716 2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
70551f47 2499 return NULL;
2d091820
RD
2500 if (_argo0) {
2501 if (_argo0 == Py_None) { _arg0 = NULL; }
2502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2504 return NULL;
2505 }
2506 }
ab9bc19b 2507{
474c48f9 2508 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2509 _result = (bool )wxCursor_Ok(_arg0);
ab9bc19b 2510
474c48f9 2511 wxPyEndAllowThreads(__tstate);
4dfaa61e 2512 if (PyErr_Occurred()) return NULL;
ab9bc19b 2513} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2514 return _resultobj;
2515}
2516
1893b029
RD
2517#define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2518static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject * _resultobj;
2520 bool _result;
2521 wxNativeFontInfo * _arg0;
2522 wxString * _arg1;
2523 PyObject * _argo0 = 0;
2524 PyObject * _obj1 = 0;
2525 char *_kwnames[] = { "self","xFontName", NULL };
2526
2527 self = self;
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
2529 return NULL;
2530 if (_argo0) {
2531 if (_argo0 == Py_None) { _arg0 = NULL; }
2532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2534 return NULL;
2535 }
2536 }
2537{
c8bc7bb8
RD
2538 _arg1 = wxString_in_helper(_obj1);
2539 if (_arg1 == NULL)
1893b029 2540 return NULL;
1893b029
RD
2541}
2542{
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2544 _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
1893b029
RD
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) return NULL;
2548} _resultobj = Py_BuildValue("i",_result);
2549{
2550 if (_obj1)
2551 delete _arg1;
2552}
2553 return _resultobj;
2554}
2555
85247b36
RD
2556#define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
2557static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
2558 PyObject * _resultobj;
2559 bool _result;
2560 wxNativeFontInfo * _arg0;
2561 PyObject * _argo0 = 0;
2562 char *_kwnames[] = { "self", NULL };
2563
2564 self = self;
2565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0))
2566 return NULL;
2567 if (_argo0) {
2568 if (_argo0 == Py_None) { _arg0 = NULL; }
2569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
2571 return NULL;
2572 }
2573 }
2574{
2575 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2576 _result = (bool )wxNativeFontInfo_IsDefault(_arg0);
85247b36
RD
2577
2578 wxPyEndAllowThreads(__tstate);
2579 if (PyErr_Occurred()) return NULL;
2580} _resultobj = Py_BuildValue("i",_result);
2581 return _resultobj;
2582}
2583
1893b029
RD
2584#define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2585static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject * _resultobj;
2587 wxString * _result;
2588 wxNativeFontInfo * _arg0;
2589 PyObject * _argo0 = 0;
2590 char *_kwnames[] = { "self", NULL };
2591
2592 self = self;
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
2594 return NULL;
2595 if (_argo0) {
2596 if (_argo0 == Py_None) { _arg0 = NULL; }
2597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2599 return NULL;
2600 }
2601 }
2602{
2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2604 _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
1893b029
RD
2605
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) return NULL;
2608}{
c8bc7bb8
RD
2609#if wxUSE_UNICODE
2610 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2611#else
1893b029 2612 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2613#endif
1893b029
RD
2614}
2615{
2616 delete _result;
2617}
2618 return _resultobj;
2619}
2620
85247b36
RD
2621#define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
2622static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2623 PyObject * _resultobj;
2624 wxNativeFontInfo * _arg0;
2625 wxString * _arg1;
2626 PyObject * _argo0 = 0;
2627 PyObject * _obj1 = 0;
2628 char *_kwnames[] = { "self","xFontName", NULL };
2629
2630 self = self;
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1))
2632 return NULL;
2633 if (_argo0) {
2634 if (_argo0 == Py_None) { _arg0 = NULL; }
2635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
2637 return NULL;
2638 }
2639 }
2640{
c8bc7bb8
RD
2641 _arg1 = wxString_in_helper(_obj1);
2642 if (_arg1 == NULL)
85247b36 2643 return NULL;
85247b36
RD
2644}
2645{
2646 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2647 wxNativeFontInfo_SetXFontName(_arg0,*_arg1);
85247b36
RD
2648
2649 wxPyEndAllowThreads(__tstate);
2650 if (PyErr_Occurred()) return NULL;
2651} Py_INCREF(Py_None);
2652 _resultobj = Py_None;
2653{
2654 if (_obj1)
2655 delete _arg1;
2656}
2657 return _resultobj;
2658}
2659
1893b029
RD
2660#define new_wxNativeFontInfo() (new wxNativeFontInfo())
2661static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject * _resultobj;
2663 wxNativeFontInfo * _result;
2664 char *_kwnames[] = { NULL };
2665 char _ptemp[128];
2666
2667 self = self;
2668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
2669 return NULL;
2670{
2671 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2672 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
1893b029
RD
2673
2674 wxPyEndAllowThreads(__tstate);
2675 if (PyErr_Occurred()) return NULL;
2676} if (_result) {
2677 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
2678 _resultobj = Py_BuildValue("s",_ptemp);
2679 } else {
2680 Py_INCREF(Py_None);
2681 _resultobj = Py_None;
2682 }
2683 return _resultobj;
2684}
2685
2686#define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2687static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2688 PyObject * _resultobj;
2689 wxNativeFontInfo * _arg0;
2690 PyObject * _argo0 = 0;
2691 char *_kwnames[] = { "self", NULL };
2692
2693 self = self;
2694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
2695 return NULL;
2696 if (_argo0) {
2697 if (_argo0 == Py_None) { _arg0 = NULL; }
2698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2700 return NULL;
2701 }
2702 }
2703{
2704 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2705 wxNativeFontInfo_Init(_arg0);
1893b029
RD
2706
2707 wxPyEndAllowThreads(__tstate);
2708 if (PyErr_Occurred()) return NULL;
2709} Py_INCREF(Py_None);
2710 _resultobj = Py_None;
2711 return _resultobj;
2712}
2713
059a841c
RD
2714#define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2715static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2716 PyObject * _resultobj;
059a841c
RD
2717 bool _result;
2718 wxNativeFontInfo * _arg0;
2719 wxString * _arg1;
2720 PyObject * _argo0 = 0;
2721 PyObject * _obj1 = 0;
2722 char *_kwnames[] = { "self","s", NULL };
70551f47
RD
2723
2724 self = self;
059a841c
RD
2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
2726 return NULL;
2727 if (_argo0) {
2728 if (_argo0 == Py_None) { _arg0 = NULL; }
2729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2731 return NULL;
2732 }
2733 }
2734{
c8bc7bb8
RD
2735 _arg1 = wxString_in_helper(_obj1);
2736 if (_arg1 == NULL)
059a841c 2737 return NULL;
059a841c 2738}
ab9bc19b 2739{
474c48f9 2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2741 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
ab9bc19b 2742
474c48f9 2743 wxPyEndAllowThreads(__tstate);
4dfaa61e 2744 if (PyErr_Occurred()) return NULL;
059a841c
RD
2745} _resultobj = Py_BuildValue("i",_result);
2746{
2747 if (_obj1)
2748 delete _arg1;
2749}
70551f47
RD
2750 return _resultobj;
2751}
2752
059a841c
RD
2753#define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2754static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 2755 PyObject * _resultobj;
059a841c
RD
2756 wxString * _result;
2757 wxNativeFontInfo * _arg0;
5e40f9dd
RD
2758 PyObject * _argo0 = 0;
2759 char *_kwnames[] = { "self", NULL };
2760
2761 self = self;
059a841c 2762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
5e40f9dd
RD
2763 return NULL;
2764 if (_argo0) {
2765 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
5e40f9dd
RD
2768 return NULL;
2769 }
2770 }
2771{
474c48f9 2772 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2773 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
5e40f9dd 2774
474c48f9 2775 wxPyEndAllowThreads(__tstate);
4dfaa61e 2776 if (PyErr_Occurred()) return NULL;
059a841c 2777}{
c8bc7bb8
RD
2778#if wxUSE_UNICODE
2779 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2780#else
059a841c 2781 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2782#endif
059a841c
RD
2783}
2784{
2785 delete _result;
2786}
5e40f9dd
RD
2787 return _resultobj;
2788}
2789
059a841c
RD
2790static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
2791 return self->ToString();
2792 }
2793static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
d29aba2f 2794 PyObject * _resultobj;
059a841c
RD
2795 wxString * _result;
2796 wxNativeFontInfo * _arg0;
d29aba2f
RD
2797 PyObject * _argo0 = 0;
2798 char *_kwnames[] = { "self", NULL };
2799
2800 self = self;
059a841c 2801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
d29aba2f
RD
2802 return NULL;
2803 if (_argo0) {
2804 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
d29aba2f
RD
2807 return NULL;
2808 }
2809 }
2810{
474c48f9 2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2812 _result = new wxString (wxNativeFontInfo___str__(_arg0));
d29aba2f 2813
474c48f9 2814 wxPyEndAllowThreads(__tstate);
4dfaa61e 2815 if (PyErr_Occurred()) return NULL;
059a841c 2816}{
c8bc7bb8
RD
2817#if wxUSE_UNICODE
2818 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2819#else
059a841c 2820 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2821#endif
059a841c
RD
2822}
2823{
2824 delete _result;
2825}
d29aba2f
RD
2826 return _resultobj;
2827}
2828
1893b029
RD
2829#define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2830static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2831 PyObject * _resultobj;
2832 bool _result;
2833 wxNativeFontInfo * _arg0;
2834 wxString * _arg1;
2835 PyObject * _argo0 = 0;
2836 PyObject * _obj1 = 0;
2837 char *_kwnames[] = { "self","s", NULL };
2838
2839 self = self;
2840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
2841 return NULL;
2842 if (_argo0) {
2843 if (_argo0 == Py_None) { _arg0 = NULL; }
2844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2846 return NULL;
2847 }
2848 }
2849{
c8bc7bb8
RD
2850 _arg1 = wxString_in_helper(_obj1);
2851 if (_arg1 == NULL)
1893b029 2852 return NULL;
1893b029
RD
2853}
2854{
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2856 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
1893b029
RD
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) return NULL;
2860} _resultobj = Py_BuildValue("i",_result);
2861{
2862 if (_obj1)
2863 delete _arg1;
2864}
2865 return _resultobj;
2866}
2867
2868#define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2869static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject * _resultobj;
2871 wxString * _result;
2872 wxNativeFontInfo * _arg0;
2873 PyObject * _argo0 = 0;
2874 char *_kwnames[] = { "self", NULL };
2875
2876 self = self;
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
2878 return NULL;
2879 if (_argo0) {
2880 if (_argo0 == Py_None) { _arg0 = NULL; }
2881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
2883 return NULL;
2884 }
2885 }
2886{
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2888 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
1893b029
RD
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) return NULL;
2892}{
c8bc7bb8
RD
2893#if wxUSE_UNICODE
2894 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2895#else
1893b029 2896 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2897#endif
1893b029
RD
2898}
2899{
2900 delete _result;
2901}
2902 return _resultobj;
2903}
2904
059a841c
RD
2905#define new_wxFontMapper() (new wxFontMapper())
2906static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2907 PyObject * _resultobj;
059a841c
RD
2908 wxFontMapper * _result;
2909 char *_kwnames[] = { NULL };
2910 char _ptemp[128];
2911
2912 self = self;
2913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
2914 return NULL;
2915{
474c48f9 2916 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2917 _result = (wxFontMapper *)new_wxFontMapper();
059a841c 2918
474c48f9 2919 wxPyEndAllowThreads(__tstate);
059a841c
RD
2920 if (PyErr_Occurred()) return NULL;
2921} if (_result) {
2922 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
2923 _resultobj = Py_BuildValue("s",_ptemp);
2924 } else {
2925 Py_INCREF(Py_None);
2926 _resultobj = Py_None;
2927 }
2928 return _resultobj;
2929}
2930
2931#define delete_wxFontMapper(_swigobj) (delete _swigobj)
2932static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxFontMapper * _arg0;
2d091820 2935 PyObject * _argo0 = 0;
107e4716 2936 char *_kwnames[] = { "self", NULL };
70551f47
RD
2937
2938 self = self;
059a841c 2939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
70551f47 2940 return NULL;
2d091820
RD
2941 if (_argo0) {
2942 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
70551f47
RD
2945 return NULL;
2946 }
2947 }
70551f47 2948{
474c48f9 2949 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2950 delete_wxFontMapper(_arg0);
ab9bc19b 2951
474c48f9 2952 wxPyEndAllowThreads(__tstate);
4dfaa61e 2953 if (PyErr_Occurred()) return NULL;
059a841c
RD
2954} Py_INCREF(Py_None);
2955 _resultobj = Py_None;
70551f47
RD
2956 return _resultobj;
2957}
2958
059a841c
RD
2959static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
2960 wxFontEncoding alt_enc;
2961 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2962 return PyInt_FromLong(alt_enc);
2963 else {
2964 Py_INCREF(Py_None);
2965 return Py_None;
2966 }
2967 }
2968static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2969 PyObject * _resultobj;
059a841c
RD
2970 PyObject * _result;
2971 wxFontMapper * _arg0;
2972 wxFontEncoding _arg1;
9a74fcaf 2973 wxString * _arg2 = (wxString *) &wxPyEmptyString;
059a841c 2974 bool _arg3 = (bool ) TRUE;
2d091820 2975 PyObject * _argo0 = 0;
059a841c
RD
2976 PyObject * _obj2 = 0;
2977 int tempbool3 = (int) TRUE;
2978 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
70551f47
RD
2979
2980 self = self;
059a841c 2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
70551f47 2982 return NULL;
2d091820
RD
2983 if (_argo0) {
2984 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
70551f47
RD
2987 return NULL;
2988 }
2989 }
059a841c
RD
2990 if (_obj2)
2991{
c8bc7bb8
RD
2992 _arg2 = wxString_in_helper(_obj2);
2993 if (_arg2 == NULL)
059a841c 2994 return NULL;
059a841c
RD
2995}
2996 _arg3 = (bool ) tempbool3;
ab9bc19b 2997{
474c48f9 2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2999 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
ab9bc19b 3000
474c48f9 3001 wxPyEndAllowThreads(__tstate);
4dfaa61e 3002 if (PyErr_Occurred()) return NULL;
059a841c
RD
3003}{
3004 _resultobj = _result;
3005}
3006{
3007 if (_obj2)
3008 delete _arg2;
3009}
70551f47
RD
3010 return _resultobj;
3011}
3012
059a841c
RD
3013#define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3014static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3015 PyObject * _resultobj;
059a841c
RD
3016 bool _result;
3017 wxFontMapper * _arg0;
3018 wxFontEncoding _arg1;
9a74fcaf 3019 wxString * _arg2 = (wxString *) &wxPyEmptyString;
2d091820 3020 PyObject * _argo0 = 0;
059a841c
RD
3021 PyObject * _obj2 = 0;
3022 char *_kwnames[] = { "self","encoding","facename", NULL };
70551f47
RD
3023
3024 self = self;
059a841c 3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
70551f47 3026 return NULL;
2d091820
RD
3027 if (_argo0) {
3028 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
70551f47
RD
3031 return NULL;
3032 }
3033 }
059a841c
RD
3034 if (_obj2)
3035{
c8bc7bb8
RD
3036 _arg2 = wxString_in_helper(_obj2);
3037 if (_arg2 == NULL)
059a841c 3038 return NULL;
059a841c 3039}
ab9bc19b 3040{
474c48f9 3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3042 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
ab9bc19b 3043
474c48f9 3044 wxPyEndAllowThreads(__tstate);
4dfaa61e 3045 if (PyErr_Occurred()) return NULL;
ab9bc19b 3046} _resultobj = Py_BuildValue("i",_result);
059a841c
RD
3047{
3048 if (_obj2)
3049 delete _arg2;
3050}
70551f47
RD
3051 return _resultobj;
3052}
3053
059a841c
RD
3054#define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3055static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3056 PyObject * _resultobj;
059a841c
RD
3057 wxFontEncoding _result;
3058 wxFontMapper * _arg0;
3059 wxString * _arg1;
3060 bool _arg2 = (bool ) TRUE;
2d091820 3061 PyObject * _argo0 = 0;
059a841c
RD
3062 PyObject * _obj1 = 0;
3063 int tempbool2 = (int) TRUE;
3064 char *_kwnames[] = { "self","charset","interactive", NULL };
70551f47
RD
3065
3066 self = self;
059a841c 3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
70551f47 3068 return NULL;
2d091820
RD
3069 if (_argo0) {
3070 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
70551f47
RD
3073 return NULL;
3074 }
3075 }
ab9bc19b 3076{
c8bc7bb8
RD
3077 _arg1 = wxString_in_helper(_obj1);
3078 if (_arg1 == NULL)
059a841c 3079 return NULL;
059a841c
RD
3080}
3081 _arg2 = (bool ) tempbool2;
3082{
474c48f9 3083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3084 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
059a841c 3085
474c48f9 3086 wxPyEndAllowThreads(__tstate);
059a841c
RD
3087 if (PyErr_Occurred()) return NULL;
3088} _resultobj = Py_BuildValue("i",_result);
3089{
3090 if (_obj1)
3091 delete _arg1;
3092}
3093 return _resultobj;
3094}
3095
3096static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject * _resultobj;
3098 wxString * _result;
3099 wxFontEncoding _arg0;
3100 char *_kwnames[] = { "encoding", NULL };
3101
3102 self = self;
3103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3104 return NULL;
3105{
474c48f9 3106 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3107 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
059a841c 3108
474c48f9 3109 wxPyEndAllowThreads(__tstate);
059a841c
RD
3110 if (PyErr_Occurred()) return NULL;
3111}{
c8bc7bb8
RD
3112#if wxUSE_UNICODE
3113 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3114#else
059a841c 3115 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3116#endif
059a841c
RD
3117}
3118{
3119 delete _result;
3120}
3121 return _resultobj;
3122}
3123
3124static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject * _resultobj;
3126 wxString * _result;
3127 wxFontEncoding _arg0;
3128 char *_kwnames[] = { "encoding", NULL };
3129
3130 self = self;
3131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3132 return NULL;
3133{
474c48f9 3134 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3135 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
059a841c 3136
474c48f9 3137 wxPyEndAllowThreads(__tstate);
059a841c
RD
3138 if (PyErr_Occurred()) return NULL;
3139}{
c8bc7bb8
RD
3140#if wxUSE_UNICODE
3141 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3142#else
059a841c 3143 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3144#endif
059a841c
RD
3145}
3146{
3147 delete _result;
3148}
3149 return _resultobj;
3150}
3151
3152#define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3153static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3154 PyObject * _resultobj;
3155 wxFontMapper * _arg0;
3156 wxWindow * _arg1;
3157 PyObject * _argo0 = 0;
3158 PyObject * _argo1 = 0;
3159 char *_kwnames[] = { "self","parent", NULL };
3160
3161 self = self;
3162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3163 return NULL;
3164 if (_argo0) {
3165 if (_argo0 == Py_None) { _arg0 = NULL; }
3166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3168 return NULL;
3169 }
3170 }
3171 if (_argo1) {
3172 if (_argo1 == Py_None) { _arg1 = NULL; }
3173 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3174 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3175 return NULL;
3176 }
3177 }
3178{
474c48f9 3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3180 wxFontMapper_SetDialogParent(_arg0,_arg1);
059a841c 3181
474c48f9 3182 wxPyEndAllowThreads(__tstate);
059a841c
RD
3183 if (PyErr_Occurred()) return NULL;
3184} Py_INCREF(Py_None);
3185 _resultobj = Py_None;
3186 return _resultobj;
3187}
3188
3189#define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3190static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3191 PyObject * _resultobj;
3192 wxFontMapper * _arg0;
3193 wxString * _arg1;
3194 PyObject * _argo0 = 0;
3195 PyObject * _obj1 = 0;
3196 char *_kwnames[] = { "self","title", NULL };
3197
3198 self = self;
3199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3200 return NULL;
3201 if (_argo0) {
3202 if (_argo0 == Py_None) { _arg0 = NULL; }
3203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3205 return NULL;
3206 }
3207 }
3208{
c8bc7bb8
RD
3209 _arg1 = wxString_in_helper(_obj1);
3210 if (_arg1 == NULL)
059a841c 3211 return NULL;
059a841c
RD
3212}
3213{
474c48f9 3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3215 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
059a841c 3216
474c48f9 3217 wxPyEndAllowThreads(__tstate);
059a841c
RD
3218 if (PyErr_Occurred()) return NULL;
3219} Py_INCREF(Py_None);
3220 _resultobj = Py_None;
3221{
3222 if (_obj1)
3223 delete _arg1;
3224}
3225 return _resultobj;
3226}
3227
3228#define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3229static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject * _resultobj;
3231 wxFontMapper * _arg0;
3232 wxConfigBase * _arg1;
3233 PyObject * _argo0 = 0;
3234 PyObject * _argo1 = 0;
3235 char *_kwnames[] = { "self","config", NULL };
3236
3237 self = self;
3238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3239 return NULL;
3240 if (_argo0) {
3241 if (_argo0 == Py_None) { _arg0 = NULL; }
3242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3244 return NULL;
3245 }
3246 }
3247 if (_argo1) {
3248 if (_argo1 == Py_None) { _arg1 = NULL; }
3249 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3250 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3251 return NULL;
3252 }
3253 }
3254{
474c48f9 3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3256 wxFontMapper_SetConfig(_arg0,_arg1);
059a841c 3257
474c48f9 3258 wxPyEndAllowThreads(__tstate);
059a841c
RD
3259 if (PyErr_Occurred()) return NULL;
3260} Py_INCREF(Py_None);
3261 _resultobj = Py_None;
3262 return _resultobj;
3263}
3264
3265#define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3266static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3267 PyObject * _resultobj;
3268 wxFontMapper * _arg0;
3269 wxString * _arg1;
3270 PyObject * _argo0 = 0;
3271 PyObject * _obj1 = 0;
3272 char *_kwnames[] = { "self","prefix", NULL };
3273
3274 self = self;
3275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3276 return NULL;
3277 if (_argo0) {
3278 if (_argo0 == Py_None) { _arg0 = NULL; }
3279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3281 return NULL;
3282 }
3283 }
3284{
c8bc7bb8
RD
3285 _arg1 = wxString_in_helper(_obj1);
3286 if (_arg1 == NULL)
059a841c 3287 return NULL;
059a841c
RD
3288}
3289{
474c48f9 3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3291 wxFontMapper_SetConfigPath(_arg0,*_arg1);
059a841c 3292
474c48f9 3293 wxPyEndAllowThreads(__tstate);
059a841c
RD
3294 if (PyErr_Occurred()) return NULL;
3295} Py_INCREF(Py_None);
3296 _resultobj = Py_None;
3297{
3298 if (_obj1)
3299 delete _arg1;
3300}
3301 return _resultobj;
3302}
3303
3304static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3305 PyObject * _resultobj;
9a74fcaf 3306 wxString * _result;
059a841c
RD
3307 char *_kwnames[] = { NULL };
3308
3309 self = self;
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3311 return NULL;
3312{
474c48f9 3313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9a74fcaf 3314 _result = new wxString (wxFontMapper::GetDefaultConfigPath());
059a841c 3315
474c48f9 3316 wxPyEndAllowThreads(__tstate);
059a841c 3317 if (PyErr_Occurred()) return NULL;
9a74fcaf
RD
3318}{
3319#if wxUSE_UNICODE
3320 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3321#else
3322 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3323#endif
3324}
3325{
3326 delete _result;
3327}
059a841c
RD
3328 return _resultobj;
3329}
3330
3331static void *SwigwxFontTowxGDIObject(void *ptr) {
3332 wxFont *src;
3333 wxGDIObject *dest;
3334 src = (wxFont *) ptr;
3335 dest = (wxGDIObject *) src;
3336 return (void *) dest;
3337}
3338
3339static void *SwigwxFontTowxObject(void *ptr) {
3340 wxFont *src;
3341 wxObject *dest;
3342 src = (wxFont *) ptr;
3343 dest = (wxObject *) src;
3344 return (void *) dest;
3345}
3346
3347#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3348static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject * _resultobj;
3350 wxFont * _result;
3351 int _arg0;
3352 int _arg1;
3353 int _arg2;
3354 int _arg3;
3355 int _arg4 = (int ) FALSE;
9a74fcaf 3356 wxString * _arg5 = (wxString *) &wxPyEmptyString;
059a841c 3357 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
9a74fcaf 3358 PyObject * _obj5 = 0;
059a841c
RD
3359 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3360 char _ptemp[128];
3361
3362 self = self;
9a74fcaf
RD
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|iOi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6))
3364 return NULL;
3365 if (_obj5)
3366{
3367 _arg5 = wxString_in_helper(_obj5);
3368 if (_arg5 == NULL)
059a841c 3369 return NULL;
9a74fcaf 3370}
059a841c 3371{
474c48f9 3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9a74fcaf 3373 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,_arg6);
059a841c 3374
474c48f9 3375 wxPyEndAllowThreads(__tstate);
059a841c
RD
3376 if (PyErr_Occurred()) return NULL;
3377} if (_result) {
3378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3379 _resultobj = Py_BuildValue("s",_ptemp);
3380 } else {
3381 Py_INCREF(Py_None);
3382 _resultobj = Py_None;
3383 }
9a74fcaf
RD
3384{
3385 if (_obj5)
3386 delete _arg5;
3387}
059a841c
RD
3388 return _resultobj;
3389}
3390
3391#define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3392static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3393 PyObject * _resultobj;
3394 wxFont * _result;
3395 wxNativeFontInfo * _arg0;
3396 PyObject * _argo0 = 0;
3397 char *_kwnames[] = { "info", NULL };
3398 char _ptemp[128];
3399
3400 self = self;
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3402 return NULL;
3403 if (_argo0) {
3404 if (_argo0 == Py_None) { _arg0 = NULL; }
3405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3407 return NULL;
3408 }
3409 }
3410{
474c48f9 3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3412 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
059a841c 3413
474c48f9 3414 wxPyEndAllowThreads(__tstate);
059a841c
RD
3415 if (PyErr_Occurred()) return NULL;
3416} if (_result) {
3417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3418 _resultobj = Py_BuildValue("s",_ptemp);
3419 } else {
3420 Py_INCREF(Py_None);
3421 _resultobj = Py_None;
3422 }
3423 return _resultobj;
3424}
3425
3426#define delete_wxFont(_swigobj) (delete _swigobj)
3427static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3428 PyObject * _resultobj;
3429 wxFont * _arg0;
3430 PyObject * _argo0 = 0;
3431 char *_kwnames[] = { "self", NULL };
3432
3433 self = self;
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3435 return NULL;
3436 if (_argo0) {
3437 if (_argo0 == Py_None) { _arg0 = NULL; }
3438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3440 return NULL;
3441 }
3442 }
3443{
474c48f9 3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3445 delete_wxFont(_arg0);
059a841c 3446
474c48f9 3447 wxPyEndAllowThreads(__tstate);
059a841c
RD
3448 if (PyErr_Occurred()) return NULL;
3449} Py_INCREF(Py_None);
3450 _resultobj = Py_None;
3451 return _resultobj;
3452}
3453
3454#define wxFont_Ok(_swigobj) (_swigobj->Ok())
3455static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3456 PyObject * _resultobj;
3457 bool _result;
3458 wxFont * _arg0;
3459 PyObject * _argo0 = 0;
3460 char *_kwnames[] = { "self", NULL };
3461
3462 self = self;
3463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3464 return NULL;
3465 if (_argo0) {
3466 if (_argo0 == Py_None) { _arg0 = NULL; }
3467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3469 return NULL;
3470 }
3471 }
3472{
474c48f9 3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3474 _result = (bool )wxFont_Ok(_arg0);
059a841c 3475
474c48f9 3476 wxPyEndAllowThreads(__tstate);
059a841c
RD
3477 if (PyErr_Occurred()) return NULL;
3478} _resultobj = Py_BuildValue("i",_result);
3479 return _resultobj;
3480}
3481
3482#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3483static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject * _resultobj;
3485 int _result;
3486 wxFont * _arg0;
3487 PyObject * _argo0 = 0;
3488 char *_kwnames[] = { "self", NULL };
3489
3490 self = self;
3491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3492 return NULL;
3493 if (_argo0) {
3494 if (_argo0 == Py_None) { _arg0 = NULL; }
3495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3497 return NULL;
3498 }
3499 }
3500{
474c48f9 3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3502 _result = (int )wxFont_GetPointSize(_arg0);
059a841c 3503
474c48f9 3504 wxPyEndAllowThreads(__tstate);
059a841c
RD
3505 if (PyErr_Occurred()) return NULL;
3506} _resultobj = Py_BuildValue("i",_result);
3507 return _resultobj;
3508}
3509
3510#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3511static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3512 PyObject * _resultobj;
3513 int _result;
3514 wxFont * _arg0;
3515 PyObject * _argo0 = 0;
3516 char *_kwnames[] = { "self", NULL };
3517
3518 self = self;
3519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3520 return NULL;
3521 if (_argo0) {
3522 if (_argo0 == Py_None) { _arg0 = NULL; }
3523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3525 return NULL;
3526 }
3527 }
3528{
474c48f9 3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3530 _result = (int )wxFont_GetFamily(_arg0);
059a841c 3531
474c48f9 3532 wxPyEndAllowThreads(__tstate);
059a841c
RD
3533 if (PyErr_Occurred()) return NULL;
3534} _resultobj = Py_BuildValue("i",_result);
3535 return _resultobj;
3536}
3537
3538#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3539static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3540 PyObject * _resultobj;
3541 int _result;
3542 wxFont * _arg0;
3543 PyObject * _argo0 = 0;
3544 char *_kwnames[] = { "self", NULL };
3545
3546 self = self;
3547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3548 return NULL;
3549 if (_argo0) {
3550 if (_argo0 == Py_None) { _arg0 = NULL; }
3551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3553 return NULL;
3554 }
3555 }
3556{
474c48f9 3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3558 _result = (int )wxFont_GetStyle(_arg0);
059a841c 3559
474c48f9 3560 wxPyEndAllowThreads(__tstate);
059a841c
RD
3561 if (PyErr_Occurred()) return NULL;
3562} _resultobj = Py_BuildValue("i",_result);
3563 return _resultobj;
3564}
3565
3566#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3567static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3568 PyObject * _resultobj;
3569 int _result;
3570 wxFont * _arg0;
3571 PyObject * _argo0 = 0;
3572 char *_kwnames[] = { "self", NULL };
3573
3574 self = self;
3575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3576 return NULL;
3577 if (_argo0) {
3578 if (_argo0 == Py_None) { _arg0 = NULL; }
3579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3581 return NULL;
3582 }
3583 }
3584{
474c48f9 3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3586 _result = (int )wxFont_GetWeight(_arg0);
059a841c 3587
474c48f9 3588 wxPyEndAllowThreads(__tstate);
059a841c
RD
3589 if (PyErr_Occurred()) return NULL;
3590} _resultobj = Py_BuildValue("i",_result);
3591 return _resultobj;
3592}
3593
3594#define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3595static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3596 PyObject * _resultobj;
3597 bool _result;
3598 wxFont * _arg0;
3599 PyObject * _argo0 = 0;
3600 char *_kwnames[] = { "self", NULL };
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3609 return NULL;
3610 }
3611 }
3612{
474c48f9 3613 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3614 _result = (bool )wxFont_GetUnderlined(_arg0);
059a841c 3615
474c48f9 3616 wxPyEndAllowThreads(__tstate);
059a841c 3617 if (PyErr_Occurred()) return NULL;
ab9bc19b 3618} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3619 return _resultobj;
3620}
3621
059a841c
RD
3622#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3623static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3624 PyObject * _resultobj;
3625 wxString * _result;
3626 wxFont * _arg0;
3627 PyObject * _argo0 = 0;
3628 char *_kwnames[] = { "self", NULL };
3629
3630 self = self;
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3632 return NULL;
3633 if (_argo0) {
3634 if (_argo0 == Py_None) { _arg0 = NULL; }
3635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3637 return NULL;
3638 }
3639 }
3640{
474c48f9 3641 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3642 _result = new wxString (wxFont_GetFaceName(_arg0));
059a841c 3643
474c48f9 3644 wxPyEndAllowThreads(__tstate);
059a841c
RD
3645 if (PyErr_Occurred()) return NULL;
3646}{
c8bc7bb8
RD
3647#if wxUSE_UNICODE
3648 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3649#else
059a841c 3650 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3651#endif
059a841c
RD
3652}
3653{
3654 delete _result;
3655}
3656 return _resultobj;
3657}
3658
3659#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3660static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3661 PyObject * _resultobj;
059a841c 3662 wxFontEncoding _result;
70551f47 3663 wxFont * _arg0;
2d091820 3664 PyObject * _argo0 = 0;
107e4716 3665 char *_kwnames[] = { "self", NULL };
70551f47
RD
3666
3667 self = self;
059a841c 3668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
70551f47 3669 return NULL;
2d091820
RD
3670 if (_argo0) {
3671 if (_argo0 == Py_None) { _arg0 = NULL; }
3672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
70551f47
RD
3674 return NULL;
3675 }
3676 }
ab9bc19b 3677{
474c48f9 3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3679 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
ab9bc19b 3680
474c48f9 3681 wxPyEndAllowThreads(__tstate);
4dfaa61e 3682 if (PyErr_Occurred()) return NULL;
ab9bc19b 3683} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3684 return _resultobj;
3685}
3686
db34b2d4
RD
3687#define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3688static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject * _resultobj;
3690 bool _result;
3691 wxFont * _arg0;
3692 PyObject * _argo0 = 0;
3693 char *_kwnames[] = { "self", NULL };
3694
3695 self = self;
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
3697 return NULL;
3698 if (_argo0) {
3699 if (_argo0 == Py_None) { _arg0 = NULL; }
3700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3702 return NULL;
3703 }
3704 }
3705{
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3707 _result = (bool )wxFont_IsFixedWidth(_arg0);
db34b2d4
RD
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) return NULL;
3711} _resultobj = Py_BuildValue("i",_result);
3712 return _resultobj;
3713}
3714
059a841c
RD
3715#define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3716static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3717 PyObject * _resultobj;
059a841c 3718 wxNativeFontInfo * _result;
70551f47 3719 wxFont * _arg0;
2d091820 3720 PyObject * _argo0 = 0;
107e4716 3721 char *_kwnames[] = { "self", NULL };
059a841c 3722 char _ptemp[128];
70551f47
RD
3723
3724 self = self;
059a841c 3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
70551f47 3726 return NULL;
2d091820
RD
3727 if (_argo0) {
3728 if (_argo0 == Py_None) { _arg0 = NULL; }
3729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
70551f47
RD
3731 return NULL;
3732 }
3733 }
ab9bc19b 3734{
474c48f9 3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3736 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
ab9bc19b 3737
474c48f9 3738 wxPyEndAllowThreads(__tstate);
4dfaa61e 3739 if (PyErr_Occurred()) return NULL;
059a841c
RD
3740} if (_result) {
3741 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3742 _resultobj = Py_BuildValue("s",_ptemp);
3743 } else {
3744 Py_INCREF(Py_None);
3745 _resultobj = Py_None;
3746 }
70551f47
RD
3747 return _resultobj;
3748}
3749
1893b029
RD
3750#define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3751static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3752 PyObject * _resultobj;
3753 wxString * _result;
3754 wxFont * _arg0;
3755 PyObject * _argo0 = 0;
3756 char *_kwnames[] = { "self", NULL };
3757
3758 self = self;
3759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
3760 return NULL;
3761 if (_argo0) {
3762 if (_argo0 == Py_None) { _arg0 = NULL; }
3763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3765 return NULL;
3766 }
3767 }
3768{
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3770 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
1893b029
RD
3771
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) return NULL;
3774}{
c8bc7bb8
RD
3775#if wxUSE_UNICODE
3776 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3777#else
1893b029 3778 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3779#endif
1893b029
RD
3780}
3781{
3782 delete _result;
3783}
3784 return _resultobj;
3785}
3786
3787#define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3788static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3789 PyObject * _resultobj;
3790 wxString * _result;
3791 wxFont * _arg0;
3792 PyObject * _argo0 = 0;
3793 char *_kwnames[] = { "self", NULL };
3794
3795 self = self;
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
3797 return NULL;
3798 if (_argo0) {
3799 if (_argo0 == Py_None) { _arg0 = NULL; }
3800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3802 return NULL;
3803 }
3804 }
3805{
3806 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3807 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
1893b029
RD
3808
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) return NULL;
3811}{
c8bc7bb8
RD
3812#if wxUSE_UNICODE
3813 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3814#else
1893b029 3815 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3816#endif
1893b029
RD
3817}
3818{
3819 delete _result;
3820}
3821 return _resultobj;
3822}
3823
059a841c
RD
3824#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3825static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc 3826 PyObject * _resultobj;
134d79dc 3827 wxFont * _arg0;
059a841c 3828 int _arg1;
134d79dc 3829 PyObject * _argo0 = 0;
059a841c 3830 char *_kwnames[] = { "self","pointSize", NULL };
134d79dc
RD
3831
3832 self = self;
059a841c 3833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
134d79dc
RD
3834 return NULL;
3835 if (_argo0) {
3836 if (_argo0 == Py_None) { _arg0 = NULL; }
3837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
134d79dc
RD
3839 return NULL;
3840 }
3841 }
3842{
474c48f9 3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3844 wxFont_SetPointSize(_arg0,_arg1);
134d79dc 3845
474c48f9 3846 wxPyEndAllowThreads(__tstate);
4dfaa61e 3847 if (PyErr_Occurred()) return NULL;
059a841c
RD
3848} Py_INCREF(Py_None);
3849 _resultobj = Py_None;
134d79dc
RD
3850 return _resultobj;
3851}
3852
059a841c
RD
3853#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3854static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3855 PyObject * _resultobj;
3856 wxFont * _arg0;
059a841c 3857 int _arg1;
2d091820 3858 PyObject * _argo0 = 0;
059a841c 3859 char *_kwnames[] = { "self","family", NULL };
d3b4d113
RR
3860
3861 self = self;
059a841c 3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
d3b4d113 3863 return NULL;
2d091820
RD
3864 if (_argo0) {
3865 if (_argo0 == Py_None) { _arg0 = NULL; }
3866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
d3b4d113
RR
3868 return NULL;
3869 }
3870 }
ab9bc19b 3871{
474c48f9 3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3873 wxFont_SetFamily(_arg0,_arg1);
ab9bc19b 3874
474c48f9 3875 wxPyEndAllowThreads(__tstate);
4dfaa61e 3876 if (PyErr_Occurred()) return NULL;
ab9bc19b 3877} Py_INCREF(Py_None);
d3b4d113 3878 _resultobj = Py_None;
d3b4d113
RR
3879 return _resultobj;
3880}
3881
059a841c
RD
3882#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3883static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3884 PyObject * _resultobj;
3885 wxFont * _arg0;
3886 int _arg1;
2d091820 3887 PyObject * _argo0 = 0;
059a841c 3888 char *_kwnames[] = { "self","style", NULL };
d3b4d113
RR
3889
3890 self = self;
059a841c 3891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
d3b4d113 3892 return NULL;
2d091820
RD
3893 if (_argo0) {
3894 if (_argo0 == Py_None) { _arg0 = NULL; }
3895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
d3b4d113
RR
3897 return NULL;
3898 }
3899 }
ab9bc19b 3900{
474c48f9 3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3902 wxFont_SetStyle(_arg0,_arg1);
ab9bc19b 3903
474c48f9 3904 wxPyEndAllowThreads(__tstate);
4dfaa61e 3905 if (PyErr_Occurred()) return NULL;
ab9bc19b 3906} Py_INCREF(Py_None);
d3b4d113
RR
3907 _resultobj = Py_None;
3908 return _resultobj;
3909}
3910
059a841c
RD
3911#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3912static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3913 PyObject * _resultobj;
3914 wxFont * _arg0;
3915 int _arg1;
2d091820 3916 PyObject * _argo0 = 0;
059a841c 3917 char *_kwnames[] = { "self","weight", NULL };
d3b4d113
RR
3918
3919 self = self;
059a841c 3920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
d3b4d113 3921 return NULL;
2d091820
RD
3922 if (_argo0) {
3923 if (_argo0 == Py_None) { _arg0 = NULL; }
3924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
d3b4d113
RR
3926 return NULL;
3927 }
3928 }
ab9bc19b 3929{
474c48f9 3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3931 wxFont_SetWeight(_arg0,_arg1);
ab9bc19b 3932
474c48f9 3933 wxPyEndAllowThreads(__tstate);
4dfaa61e 3934 if (PyErr_Occurred()) return NULL;
ab9bc19b 3935} Py_INCREF(Py_None);
d3b4d113
RR
3936 _resultobj = Py_None;
3937 return _resultobj;
3938}
3939
059a841c
RD
3940#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3941static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3942 PyObject * _resultobj;
3943 wxFont * _arg0;
059a841c 3944 wxString * _arg1;
2d091820 3945 PyObject * _argo0 = 0;
059a841c
RD
3946 PyObject * _obj1 = 0;
3947 char *_kwnames[] = { "self","faceName", NULL };
d3b4d113
RR
3948
3949 self = self;
059a841c 3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
d3b4d113 3951 return NULL;
2d091820
RD
3952 if (_argo0) {
3953 if (_argo0 == Py_None) { _arg0 = NULL; }
3954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
d3b4d113
RR
3956 return NULL;
3957 }
3958 }
059a841c 3959{
c8bc7bb8
RD
3960 _arg1 = wxString_in_helper(_obj1);
3961 if (_arg1 == NULL)
059a841c 3962 return NULL;
059a841c 3963}
ab9bc19b 3964{
474c48f9 3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3966 wxFont_SetFaceName(_arg0,*_arg1);
ab9bc19b 3967
474c48f9 3968 wxPyEndAllowThreads(__tstate);
4dfaa61e 3969 if (PyErr_Occurred()) return NULL;
ab9bc19b 3970} Py_INCREF(Py_None);
d3b4d113 3971 _resultobj = Py_None;
059a841c
RD
3972{
3973 if (_obj1)
3974 delete _arg1;
3975}
d3b4d113
RR
3976 return _resultobj;
3977}
3978
3979#define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
107e4716 3980static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3981 PyObject * _resultobj;
3982 wxFont * _arg0;
3983 bool _arg1;
2d091820 3984 PyObject * _argo0 = 0;
d3b4d113 3985 int tempbool1;
107e4716 3986 char *_kwnames[] = { "self","underlined", NULL };
d3b4d113
RR
3987
3988 self = self;
107e4716 3989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
d3b4d113 3990 return NULL;
2d091820
RD
3991 if (_argo0) {
3992 if (_argo0 == Py_None) { _arg0 = NULL; }
3993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
d3b4d113
RR
3994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3995 return NULL;
3996 }
3997 }
3998 _arg1 = (bool ) tempbool1;
ab9bc19b 3999{
474c48f9 4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4001 wxFont_SetUnderlined(_arg0,_arg1);
ab9bc19b 4002
474c48f9 4003 wxPyEndAllowThreads(__tstate);
4dfaa61e 4004 if (PyErr_Occurred()) return NULL;
ab9bc19b 4005} Py_INCREF(Py_None);
d3b4d113
RR
4006 _resultobj = Py_None;
4007 return _resultobj;
4008}
4009
059a841c
RD
4010#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4011static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
4012 PyObject * _resultobj;
4013 wxFont * _arg0;
059a841c 4014 wxFontEncoding _arg1;
2d091820 4015 PyObject * _argo0 = 0;
059a841c 4016 char *_kwnames[] = { "self","encoding", NULL };
d3b4d113
RR
4017
4018 self = self;
059a841c 4019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
d3b4d113 4020 return NULL;
2d091820
RD
4021 if (_argo0) {
4022 if (_argo0 == Py_None) { _arg0 = NULL; }
4023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 4024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
d3b4d113
RR
4025 return NULL;
4026 }
4027 }
ab9bc19b 4028{
474c48f9 4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4030 wxFont_SetEncoding(_arg0,_arg1);
ab9bc19b 4031
474c48f9 4032 wxPyEndAllowThreads(__tstate);
4dfaa61e 4033 if (PyErr_Occurred()) return NULL;
ab9bc19b 4034} Py_INCREF(Py_None);
d3b4d113
RR
4035 _resultobj = Py_None;
4036 return _resultobj;
4037}
4038
059a841c
RD
4039#define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4040static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc
RD
4041 PyObject * _resultobj;
4042 wxFont * _arg0;
059a841c 4043 wxNativeFontInfo * _arg1;
134d79dc 4044 PyObject * _argo0 = 0;
059a841c
RD
4045 PyObject * _argo1 = 0;
4046 char *_kwnames[] = { "self","info", NULL };
134d79dc
RD
4047
4048 self = self;
059a841c 4049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
134d79dc
RD
4050 return NULL;
4051 if (_argo0) {
4052 if (_argo0 == Py_None) { _arg0 = NULL; }
4053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c
RD
4054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4055 return NULL;
4056 }
4057 }
4058 if (_argo1) {
4059 if (_argo1 == Py_None) { _arg1 = NULL; }
4060 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4061 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
134d79dc
RD
4062 return NULL;
4063 }
4064 }
4065{
474c48f9 4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4067 wxFont_SetNativeFontInfo(_arg0,*_arg1);
134d79dc 4068
474c48f9 4069 wxPyEndAllowThreads(__tstate);
4dfaa61e 4070 if (PyErr_Occurred()) return NULL;
134d79dc
RD
4071} Py_INCREF(Py_None);
4072 _resultobj = Py_None;
4073 return _resultobj;
4074}
4075
1893b029
RD
4076#define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4077static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject * _resultobj;
4079 wxFont * _arg0;
4080 wxString * _arg1;
4081 PyObject * _argo0 = 0;
4082 PyObject * _obj1 = 0;
4083 char *_kwnames[] = { "self","info", NULL };
4084
4085 self = self;
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4087 return NULL;
4088 if (_argo0) {
4089 if (_argo0 == Py_None) { _arg0 = NULL; }
4090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4092 return NULL;
4093 }
4094 }
4095{
c8bc7bb8
RD
4096 _arg1 = wxString_in_helper(_obj1);
4097 if (_arg1 == NULL)
1893b029 4098 return NULL;
1893b029
RD
4099}
4100{
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4102 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
1893b029
RD
4103
4104 wxPyEndAllowThreads(__tstate);
4105 if (PyErr_Occurred()) return NULL;
4106} Py_INCREF(Py_None);
4107 _resultobj = Py_None;
4108{
4109 if (_obj1)
4110 delete _arg1;
4111}
4112 return _resultobj;
4113}
4114
134d79dc
RD
4115#define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4116static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4117 PyObject * _resultobj;
4118 wxString * _result;
4119 wxFont * _arg0;
4120 PyObject * _argo0 = 0;
4121 char *_kwnames[] = { "self", NULL };
4122
4123 self = self;
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4125 return NULL;
4126 if (_argo0) {
4127 if (_argo0 == Py_None) { _arg0 = NULL; }
4128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4130 return NULL;
4131 }
4132 }
4133{
474c48f9 4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4135 _result = new wxString (wxFont_GetFamilyString(_arg0));
134d79dc 4136
474c48f9 4137 wxPyEndAllowThreads(__tstate);
4dfaa61e 4138 if (PyErr_Occurred()) return NULL;
134d79dc 4139}{
c8bc7bb8
RD
4140#if wxUSE_UNICODE
4141 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4142#else
e02c03a4 4143 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4144#endif
134d79dc
RD
4145}
4146{
4147 delete _result;
4148}
4149 return _resultobj;
4150}
4151
4152#define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4153static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4154 PyObject * _resultobj;
4155 wxString * _result;
4156 wxFont * _arg0;
4157 PyObject * _argo0 = 0;
4158 char *_kwnames[] = { "self", NULL };
4159
4160 self = self;
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4162 return NULL;
4163 if (_argo0) {
4164 if (_argo0 == Py_None) { _arg0 = NULL; }
4165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4167 return NULL;
4168 }
4169 }
4170{
474c48f9 4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4172 _result = new wxString (wxFont_GetStyleString(_arg0));
134d79dc 4173
474c48f9 4174 wxPyEndAllowThreads(__tstate);
4dfaa61e 4175 if (PyErr_Occurred()) return NULL;
134d79dc 4176}{
c8bc7bb8
RD
4177#if wxUSE_UNICODE
4178 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4179#else
e02c03a4 4180 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4181#endif
134d79dc
RD
4182}
4183{
4184 delete _result;
4185}
4186 return _resultobj;
4187}
4188
4189#define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4190static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject * _resultobj;
4192 wxString * _result;
4193 wxFont * _arg0;
4194 PyObject * _argo0 = 0;
4195 char *_kwnames[] = { "self", NULL };
4196
4197 self = self;
4198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4199 return NULL;
4200 if (_argo0) {
4201 if (_argo0 == Py_None) { _arg0 = NULL; }
4202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4204 return NULL;
4205 }
4206 }
4207{
474c48f9 4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4209 _result = new wxString (wxFont_GetWeightString(_arg0));
134d79dc 4210
474c48f9 4211 wxPyEndAllowThreads(__tstate);
4dfaa61e 4212 if (PyErr_Occurred()) return NULL;
134d79dc 4213}{
c8bc7bb8
RD
4214#if wxUSE_UNICODE
4215 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4216#else
e02c03a4 4217 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4218#endif
134d79dc
RD
4219}
4220{
4221 delete _result;
4222}
4223 return _resultobj;
4224}
4225
059a841c
RD
4226static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject * _resultobj;
4228 wxFontEncoding _result;
4229 char *_kwnames[] = { NULL };
4230
4231 self = self;
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4233 return NULL;
4234{
474c48f9 4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4236 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
059a841c 4237
474c48f9 4238 wxPyEndAllowThreads(__tstate);
059a841c
RD
4239 if (PyErr_Occurred()) return NULL;
4240} _resultobj = Py_BuildValue("i",_result);
4241 return _resultobj;
4242}
4243
4244static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4245 PyObject * _resultobj;
4246 wxFontEncoding _arg0;
4247 char *_kwnames[] = { "encoding", NULL };
4248
4249 self = self;
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4251 return NULL;
4252{
474c48f9 4253 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4254 wxFont::SetDefaultEncoding(_arg0);
059a841c 4255
474c48f9 4256 wxPyEndAllowThreads(__tstate);
059a841c
RD
4257 if (PyErr_Occurred()) return NULL;
4258} Py_INCREF(Py_None);
4259 _resultobj = Py_None;
4260 return _resultobj;
4261}
4262
9df61a29
RD
4263static void *SwigwxFontListTowxObject(void *ptr) {
4264 wxFontList *src;
4265 wxObject *dest;
4266 src = (wxFontList *) ptr;
4267 dest = (wxObject *) src;
4268 return (void *) dest;
4269}
4270
5e40f9dd
RD
4271#define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4272static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4273 PyObject * _resultobj;
4274 wxFontList * _arg0;
4275 wxFont * _arg1;
4276 PyObject * _argo0 = 0;
4277 PyObject * _argo1 = 0;
4278 char *_kwnames[] = { "self","font", NULL };
4279
4280 self = self;
4281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4282 return NULL;
4283 if (_argo0) {
4284 if (_argo0 == Py_None) { _arg0 = NULL; }
4285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4287 return NULL;
4288 }
4289 }
4290 if (_argo1) {
4291 if (_argo1 == Py_None) { _arg1 = NULL; }
4292 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4293 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4294 return NULL;
4295 }
4296 }
4297{
474c48f9 4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4299 wxFontList_AddFont(_arg0,_arg1);
5e40f9dd 4300
474c48f9 4301 wxPyEndAllowThreads(__tstate);
4dfaa61e 4302 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4303} Py_INCREF(Py_None);
4304 _resultobj = Py_None;
4305 return _resultobj;
4306}
4307
4308#define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4309static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject * _resultobj;
4311 wxFont * _result;
4312 wxFontList * _arg0;
4313 int _arg1;
4314 int _arg2;
4315 int _arg3;
4316 int _arg4;
4317 bool _arg5 = (bool ) FALSE;
9a74fcaf 4318 wxString * _arg6 = (wxString *) &wxPyEmptyString;
5e40f9dd
RD
4319 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4320 PyObject * _argo0 = 0;
4321 int tempbool5 = (int) FALSE;
9a74fcaf 4322 PyObject * _obj6 = 0;
5e40f9dd
RD
4323 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4324 char _ptemp[128];
4325
4326 self = self;
9a74fcaf 4327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iOi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_obj6,&_arg7))
5e40f9dd
RD
4328 return NULL;
4329 if (_argo0) {
4330 if (_argo0 == Py_None) { _arg0 = NULL; }
4331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4333 return NULL;
4334 }
4335 }
4336 _arg5 = (bool ) tempbool5;
9a74fcaf
RD
4337 if (_obj6)
4338{
4339 _arg6 = wxString_in_helper(_obj6);
4340 if (_arg6 == NULL)
4341 return NULL;
4342}
5e40f9dd 4343{
474c48f9 4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
9a74fcaf 4345 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,_arg7);
5e40f9dd 4346
474c48f9 4347 wxPyEndAllowThreads(__tstate);
4dfaa61e 4348 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4349} if (_result) {
4350 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4351 _resultobj = Py_BuildValue("s",_ptemp);
4352 } else {
4353 Py_INCREF(Py_None);
4354 _resultobj = Py_None;
4355 }
9a74fcaf
RD
4356{
4357 if (_obj6)
4358 delete _arg6;
4359}
5e40f9dd
RD
4360 return _resultobj;
4361}
4362
4363#define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4364static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4365 PyObject * _resultobj;
4366 wxFontList * _arg0;
4367 wxFont * _arg1;
4368 PyObject * _argo0 = 0;
4369 PyObject * _argo1 = 0;
4370 char *_kwnames[] = { "self","font", NULL };
4371
4372 self = self;
4373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4374 return NULL;
4375 if (_argo0) {
4376 if (_argo0 == Py_None) { _arg0 = NULL; }
4377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4379 return NULL;
4380 }
4381 }
4382 if (_argo1) {
4383 if (_argo1 == Py_None) { _arg1 = NULL; }
4384 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4385 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4386 return NULL;
4387 }
4388 }
4389{
474c48f9 4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4391 wxFontList_RemoveFont(_arg0,_arg1);
5e40f9dd 4392
474c48f9 4393 wxPyEndAllowThreads(__tstate);
4dfaa61e 4394 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4395} Py_INCREF(Py_None);
4396 _resultobj = Py_None;
4397 return _resultobj;
4398}
4399
7a9b33db
RD
4400#define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4401static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4402 PyObject * _resultobj;
4403 int _result;
4404 wxFontList * _arg0;
4405 PyObject * _argo0 = 0;
4406 char *_kwnames[] = { "self", NULL };
4407
4408 self = self;
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4410 return NULL;
4411 if (_argo0) {
4412 if (_argo0 == Py_None) { _arg0 = NULL; }
4413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4415 return NULL;
4416 }
4417 }
4418{
474c48f9 4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4420 _result = (int )wxFontList_GetCount(_arg0);
7a9b33db 4421
474c48f9 4422 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4423 if (PyErr_Occurred()) return NULL;
4424} _resultobj = Py_BuildValue("i",_result);
4425 return _resultobj;
4426}
4427
9df61a29
RD
4428static void *SwigwxColourTowxObject(void *ptr) {
4429 wxColour *src;
4430 wxObject *dest;
4431 src = (wxColour *) ptr;
4432 dest = (wxObject *) src;
4433 return (void *) dest;
4434}
4435
70551f47 4436#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 4437static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4438 PyObject * _resultobj;
4439 wxColour * _result;
2d091820
RD
4440 unsigned char _arg0 = (unsigned char ) 0;
4441 unsigned char _arg1 = (unsigned char ) 0;
4442 unsigned char _arg2 = (unsigned char ) 0;
107e4716 4443 char *_kwnames[] = { "red","green","blue", NULL };
70551f47
RD
4444 char _ptemp[128];
4445
4446 self = self;
107e4716 4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 4448 return NULL;
ab9bc19b 4449{
474c48f9 4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4451 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
ab9bc19b 4452
474c48f9 4453 wxPyEndAllowThreads(__tstate);
4dfaa61e 4454 if (PyErr_Occurred()) return NULL;
2d091820
RD
4455} if (_result) {
4456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4457 _resultobj = Py_BuildValue("s",_ptemp);
4458 } else {
4459 Py_INCREF(Py_None);
4460 _resultobj = Py_None;
4461 }
70551f47
RD
4462 return _resultobj;
4463}
4464
4465#define delete_wxColour(_swigobj) (delete _swigobj)
107e4716 4466static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4467 PyObject * _resultobj;
4468 wxColour * _arg0;
f6bcfd97
BP
4469 wxColour temp;
4470 PyObject * _obj0 = 0;
107e4716 4471 char *_kwnames[] = { "self", NULL };
70551f47
RD
4472
4473 self = self;
f6bcfd97 4474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
70551f47 4475 return NULL;
f6bcfd97
BP
4476{
4477 _arg0 = &temp;
4478 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4479 return NULL;
f6bcfd97 4480}
ab9bc19b 4481{
474c48f9 4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4483 delete_wxColour(_arg0);
ab9bc19b 4484
474c48f9 4485 wxPyEndAllowThreads(__tstate);
4dfaa61e 4486 if (PyErr_Occurred()) return NULL;
ab9bc19b 4487} Py_INCREF(Py_None);
70551f47
RD
4488 _resultobj = Py_None;
4489 return _resultobj;
4490}
4491
4492#define wxColour_Red(_swigobj) (_swigobj->Red())
107e4716 4493static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4494 PyObject * _resultobj;
4495 unsigned char _result;
4496 wxColour * _arg0;
f6bcfd97
BP
4497 wxColour temp;
4498 PyObject * _obj0 = 0;
107e4716 4499 char *_kwnames[] = { "self", NULL };
70551f47
RD
4500
4501 self = self;
f6bcfd97 4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
70551f47 4503 return NULL;
f6bcfd97
BP
4504{
4505 _arg0 = &temp;
4506 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4507 return NULL;
f6bcfd97 4508}
ab9bc19b 4509{
474c48f9 4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4511 _result = (unsigned char )wxColour_Red(_arg0);
ab9bc19b 4512
474c48f9 4513 wxPyEndAllowThreads(__tstate);
4dfaa61e 4514 if (PyErr_Occurred()) return NULL;
ab9bc19b 4515} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4516 return _resultobj;
4517}
4518
4519#define wxColour_Green(_swigobj) (_swigobj->Green())
107e4716 4520static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4521 PyObject * _resultobj;
4522 unsigned char _result;
4523 wxColour * _arg0;
f6bcfd97
BP
4524 wxColour temp;
4525 PyObject * _obj0 = 0;
107e4716 4526 char *_kwnames[] = { "self", NULL };
70551f47
RD
4527
4528 self = self;
f6bcfd97 4529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
70551f47 4530 return NULL;
f6bcfd97
BP
4531{
4532 _arg0 = &temp;
4533 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4534 return NULL;
f6bcfd97 4535}
ab9bc19b 4536{
474c48f9 4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4538 _result = (unsigned char )wxColour_Green(_arg0);
ab9bc19b 4539
474c48f9 4540 wxPyEndAllowThreads(__tstate);
4dfaa61e 4541 if (PyErr_Occurred()) return NULL;
ab9bc19b 4542} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4543 return _resultobj;
4544}
4545
4546#define wxColour_Blue(_swigobj) (_swigobj->Blue())
107e4716 4547static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4548 PyObject * _resultobj;
4549 unsigned char _result;
4550 wxColour * _arg0;
f6bcfd97
BP
4551 wxColour temp;
4552 PyObject * _obj0 = 0;
107e4716 4553 char *_kwnames[] = { "self", NULL };
70551f47
RD
4554
4555 self = self;
f6bcfd97 4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
70551f47 4557 return NULL;
f6bcfd97
BP
4558{
4559 _arg0 = &temp;
4560 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4561 return NULL;
f6bcfd97 4562}
ab9bc19b 4563{
474c48f9 4564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4565 _result = (unsigned char )wxColour_Blue(_arg0);
ab9bc19b 4566
474c48f9 4567 wxPyEndAllowThreads(__tstate);
4dfaa61e 4568 if (PyErr_Occurred()) return NULL;
ab9bc19b 4569} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4570 return _resultobj;
4571}
4572
4573#define wxColour_Ok(_swigobj) (_swigobj->Ok())
107e4716 4574static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4575 PyObject * _resultobj;
4576 bool _result;
4577 wxColour * _arg0;
f6bcfd97
BP
4578 wxColour temp;
4579 PyObject * _obj0 = 0;
107e4716 4580 char *_kwnames[] = { "self", NULL };
70551f47
RD
4581
4582 self = self;
f6bcfd97 4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
70551f47 4584 return NULL;
f6bcfd97
BP
4585{
4586 _arg0 = &temp;
4587 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4588 return NULL;
f6bcfd97 4589}
ab9bc19b 4590{
474c48f9 4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4592 _result = (bool )wxColour_Ok(_arg0);
ab9bc19b 4593
474c48f9 4594 wxPyEndAllowThreads(__tstate);
4dfaa61e 4595 if (PyErr_Occurred()) return NULL;
ab9bc19b 4596} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4597 return _resultobj;
4598}
4599
4600#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
107e4716 4601static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4602 PyObject * _resultobj;
4603 wxColour * _arg0;
4604 unsigned char _arg1;
4605 unsigned char _arg2;
4606 unsigned char _arg3;
f6bcfd97
BP
4607 wxColour temp;
4608 PyObject * _obj0 = 0;
107e4716 4609 char *_kwnames[] = { "self","red","green","blue", NULL };
70551f47
RD
4610
4611 self = self;
f6bcfd97 4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
70551f47 4613 return NULL;
f6bcfd97
BP
4614{
4615 _arg0 = &temp;
4616 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4617 return NULL;
f6bcfd97 4618}
ab9bc19b 4619{
474c48f9 4620 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4621 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 4622
474c48f9 4623 wxPyEndAllowThreads(__tstate);
4dfaa61e 4624 if (PyErr_Occurred()) return NULL;
ab9bc19b 4625} Py_INCREF(Py_None);
70551f47
RD
4626 _resultobj = Py_None;
4627 return _resultobj;
4628}
4629
4630static PyObject * wxColour_Get(wxColour *self) {
4631 PyObject* rv = PyTuple_New(3);
4632 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4633 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4634 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4635 return rv;
4636 }
107e4716 4637static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4638 PyObject * _resultobj;
4639 PyObject * _result;
4640 wxColour * _arg0;
f6bcfd97
BP
4641 wxColour temp;
4642 PyObject * _obj0 = 0;
107e4716 4643 char *_kwnames[] = { "self", NULL };
70551f47
RD
4644
4645 self = self;
f6bcfd97 4646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
70551f47 4647 return NULL;
f6bcfd97
BP
4648{
4649 _arg0 = &temp;
4650 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4651 return NULL;
f6bcfd97 4652}
70551f47 4653{
474c48f9 4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4655 _result = (PyObject *)wxColour_Get(_arg0);
ab9bc19b 4656
474c48f9 4657 wxPyEndAllowThreads(__tstate);
4dfaa61e 4658 if (PyErr_Occurred()) return NULL;
ab9bc19b 4659}{
70551f47
RD
4660 _resultobj = _result;
4661}
4662 return _resultobj;
4663}
4664
9df61a29
RD
4665static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4666 wxColourDatabase *src;
4667 wxObject *dest;
4668 src = (wxColourDatabase *) ptr;
4669 dest = (wxObject *) src;
4670 return (void *) dest;
4671}
4672
5e40f9dd
RD
4673#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4674static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4675 PyObject * _resultobj;
5e40f9dd
RD
4676 wxColour * _result;
4677 wxColourDatabase * _arg0;
4678 wxString * _arg1;
4679 PyObject * _argo0 = 0;
4680 PyObject * _obj1 = 0;
4681 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4682 char _ptemp[128];
4683
4684 self = self;
5e40f9dd
RD
4685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4686 return NULL;
4687 if (_argo0) {
4688 if (_argo0 == Py_None) { _arg0 = NULL; }
4689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
70551f47 4691 return NULL;
5e40f9dd
RD
4692 }
4693 }
f6bcfd97 4694{
c8bc7bb8
RD
4695 _arg1 = wxString_in_helper(_obj1);
4696 if (_arg1 == NULL)
5e40f9dd 4697 return NULL;
f6bcfd97 4698}
ab9bc19b 4699{
474c48f9 4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4701 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
ab9bc19b 4702
474c48f9 4703 wxPyEndAllowThreads(__tstate);
4dfaa61e 4704 if (PyErr_Occurred()) return NULL;
2d091820 4705} if (_result) {
5e40f9dd 4706 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2d091820
RD
4707 _resultobj = Py_BuildValue("s",_ptemp);
4708 } else {
4709 Py_INCREF(Py_None);
4710 _resultobj = Py_None;
4711 }
5e40f9dd
RD
4712{
4713 if (_obj1)
4714 delete _arg1;
4715}
70551f47
RD
4716 return _resultobj;
4717}
4718
5e40f9dd
RD
4719#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4720static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4721 PyObject * _resultobj;
5e40f9dd
RD
4722 wxString * _result;
4723 wxColourDatabase * _arg0;
4724 wxColour * _arg1;
2d091820 4725 PyObject * _argo0 = 0;
5e40f9dd
RD
4726 wxColour temp;
4727 PyObject * _obj1 = 0;
4728 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4729
4730 self = self;
5e40f9dd 4731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
70551f47 4732 return NULL;
2d091820
RD
4733 if (_argo0) {
4734 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
70551f47
RD
4737 return NULL;
4738 }
4739 }
5e40f9dd
RD
4740{
4741 _arg1 = &temp;
4742 if (! wxColour_helper(_obj1, &_arg1))
4743 return NULL;
4744}
ab9bc19b 4745{
474c48f9 4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4747 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
ab9bc19b 4748
474c48f9 4749 wxPyEndAllowThreads(__tstate);
4dfaa61e 4750 if (PyErr_Occurred()) return NULL;
5e40f9dd 4751}{
c8bc7bb8
RD
4752#if wxUSE_UNICODE
4753 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4754#else
5e40f9dd 4755 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4756#endif
5e40f9dd
RD
4757}
4758{
4759 delete _result;
4760}
70551f47
RD
4761 return _resultobj;
4762}
4763
5e40f9dd 4764static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
ef2060fa
RD
4765 // first see if the name is already there
4766 wxString cName = name;
4767 cName.MakeUpper();
4768 wxString cName2 = cName;
49df1f52 4769 if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) )
ef2060fa
RD
4770 cName2.clear();
4771
4772 wxNode *node = self->First();
4773 while ( node ) {
4774 const wxChar *key = node->GetKeyString();
4775 if ( cName == key || cName2 == key ) {
4776 wxColour* c = (wxColour *)node->Data();
4777 c->Set(red, green, blue);
4778 return;
4779 }
4780 node = node->Next();
4781 }
4782
4783 // otherwise append the new colour
5e40f9dd
RD
4784 self->Append(name.c_str(), new wxColour(red, green, blue));
4785 }
4786static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4787 PyObject * _resultobj;
5e40f9dd
RD
4788 wxColourDatabase * _arg0;
4789 wxString * _arg1;
4790 int _arg2;
4791 int _arg3;
4792 int _arg4;
2d091820 4793 PyObject * _argo0 = 0;
5e40f9dd
RD
4794 PyObject * _obj1 = 0;
4795 char *_kwnames[] = { "self","name","red","green","blue", NULL };
70551f47
RD
4796
4797 self = self;
5e40f9dd 4798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
70551f47 4799 return NULL;
2d091820
RD
4800 if (_argo0) {
4801 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
70551f47
RD
4804 return NULL;
4805 }
4806 }
ab9bc19b 4807{
c8bc7bb8
RD
4808 _arg1 = wxString_in_helper(_obj1);
4809 if (_arg1 == NULL)
5e40f9dd 4810 return NULL;
5e40f9dd
RD
4811}
4812{
474c48f9 4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4814 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5e40f9dd 4815
474c48f9 4816 wxPyEndAllowThreads(__tstate);
4dfaa61e 4817 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4818} Py_INCREF(Py_None);
4819 _resultobj = Py_None;
4820{
4821 if (_obj1)
4822 delete _arg1;
4823}
4824 return _resultobj;
4825}
4826
9df61a29
RD
4827static void *SwigwxPenTowxGDIObject(void *ptr) {
4828 wxPen *src;
4829 wxGDIObject *dest;
4830 src = (wxPen *) ptr;
4831 dest = (wxGDIObject *) src;
4832 return (void *) dest;
4833}
4834
4835static void *SwigwxPenTowxObject(void *ptr) {
4836 wxPen *src;
4837 wxObject *dest;
4838 src = (wxPen *) ptr;
4839 dest = (wxObject *) src;
4840 return (void *) dest;
4841}
4842
5e40f9dd
RD
4843#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4844static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4845 PyObject * _resultobj;
4846 wxPen * _result;
4847 wxColour * _arg0;
4848 int _arg1 = (int ) 1;
4849 int _arg2 = (int ) wxSOLID;
4850 wxColour temp;
4851 PyObject * _obj0 = 0;
4852 char *_kwnames[] = { "colour","width","style", NULL };
4853 char _ptemp[128];
4854
4855 self = self;
4856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4857 return NULL;
4858{
4859 _arg0 = &temp;
4860 if (! wxColour_helper(_obj0, &_arg0))
4861 return NULL;
4862}
4863{
474c48f9 4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4865 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5e40f9dd 4866
474c48f9 4867 wxPyEndAllowThreads(__tstate);
4dfaa61e 4868 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4869} if (_result) {
4870 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4871 _resultobj = Py_BuildValue("s",_ptemp);
4872 } else {
4873 Py_INCREF(Py_None);
4874 _resultobj = Py_None;
4875 }
4876 return _resultobj;
4877}
4878
4879#define delete_wxPen(_swigobj) (delete _swigobj)
4880static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject * _resultobj;
4882 wxPen * _arg0;
4883 PyObject * _argo0 = 0;
4884 char *_kwnames[] = { "self", NULL };
4885
4886 self = self;
4887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4888 return NULL;
4889 if (_argo0) {
4890 if (_argo0 == Py_None) { _arg0 = NULL; }
4891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4893 return NULL;
4894 }
4895 }
4896{
474c48f9 4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4898 delete_wxPen(_arg0);
5e40f9dd 4899
474c48f9 4900 wxPyEndAllowThreads(__tstate);
4dfaa61e 4901 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4902} Py_INCREF(Py_None);
4903 _resultobj = Py_None;
4904 return _resultobj;
4905}
4906
4907#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4908static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4909 PyObject * _resultobj;
4910 int _result;
4911 wxPen * _arg0;
4912 PyObject * _argo0 = 0;
4913 char *_kwnames[] = { "self", NULL };
4914
4915 self = self;
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4917 return NULL;
4918 if (_argo0) {
4919 if (_argo0 == Py_None) { _arg0 = NULL; }
4920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4922 return NULL;
4923 }
4924 }
4925{
474c48f9 4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4927 _result = (int )wxPen_GetCap(_arg0);
5e40f9dd 4928
474c48f9 4929 wxPyEndAllowThreads(__tstate);
4dfaa61e 4930 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4931} _resultobj = Py_BuildValue("i",_result);
4932 return _resultobj;
4933}
4934
4935#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4936static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4937 PyObject * _resultobj;
4938 wxColour * _result;
4939 wxPen * _arg0;
4940 PyObject * _argo0 = 0;
4941 char *_kwnames[] = { "self", NULL };
4942 char _ptemp[128];
4943
4944 self = self;
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4946 return NULL;
4947 if (_argo0) {
4948 if (_argo0 == Py_None) { _arg0 = NULL; }
4949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4951 return NULL;
4952 }
4953 }
4954{
474c48f9 4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4956 _result = new wxColour (wxPen_GetColour(_arg0));
5e40f9dd 4957
474c48f9 4958 wxPyEndAllowThreads(__tstate);
4dfaa61e 4959 if (PyErr_Occurred()) return NULL;
84a81942
RD
4960} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4961 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
4962 return _resultobj;
4963}
4964
4965#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
107e4716 4966static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4967 PyObject * _resultobj;
4968 int _result;
4969 wxPen * _arg0;
2d091820 4970 PyObject * _argo0 = 0;
107e4716 4971 char *_kwnames[] = { "self", NULL };
70551f47
RD
4972
4973 self = self;
107e4716 4974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
70551f47 4975 return NULL;
2d091820
RD
4976 if (_argo0) {
4977 if (_argo0 == Py_None) { _arg0 = NULL; }
4978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4980 return NULL;
4981 }
4982 }
ab9bc19b 4983{
474c48f9 4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4985 _result = (int )wxPen_GetJoin(_arg0);
ab9bc19b 4986
474c48f9 4987 wxPyEndAllowThreads(__tstate);
4dfaa61e 4988 if (PyErr_Occurred()) return NULL;
ab9bc19b 4989} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4990 return _resultobj;
4991}
4992
4993#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 4994static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4995 PyObject * _resultobj;
4996 int _result;
4997 wxPen * _arg0;
2d091820 4998 PyObject * _argo0 = 0;
107e4716 4999 char *_kwnames[] = { "self", NULL };
70551f47
RD
5000
5001 self = self;
107e4716 5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
70551f47 5003 return NULL;
2d091820
RD
5004 if (_argo0) {
5005 if (_argo0 == Py_None) { _arg0 = NULL; }
5006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5008 return NULL;
5009 }
5010 }
ab9bc19b 5011{
474c48f9 5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5013 _result = (int )wxPen_GetStyle(_arg0);
ab9bc19b 5014
474c48f9 5015 wxPyEndAllowThreads(__tstate);
4dfaa61e 5016 if (PyErr_Occurred()) return NULL;
ab9bc19b 5017} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5018 return _resultobj;
5019}
5020
5021#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 5022static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5023 PyObject * _resultobj;
5024 int _result;
5025 wxPen * _arg0;
2d091820 5026 PyObject * _argo0 = 0;
107e4716 5027 char *_kwnames[] = { "self", NULL };
70551f47
RD
5028
5029 self = self;
107e4716 5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
70551f47 5031 return NULL;
2d091820
RD
5032 if (_argo0) {
5033 if (_argo0 == Py_None) { _arg0 = NULL; }
5034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5036 return NULL;
5037 }
5038 }
ab9bc19b 5039{
474c48f9 5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5041 _result = (int )wxPen_GetWidth(_arg0);
ab9bc19b 5042
474c48f9 5043 wxPyEndAllowThreads(__tstate);
4dfaa61e 5044 if (PyErr_Occurred()) return NULL;
ab9bc19b 5045} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5046 return _resultobj;
5047}
5048
5049#define wxPen_Ok(_swigobj) (_swigobj->Ok())
107e4716 5050static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5051 PyObject * _resultobj;
5052 bool _result;
5053 wxPen * _arg0;
2d091820 5054 PyObject * _argo0 = 0;
107e4716 5055 char *_kwnames[] = { "self", NULL };
70551f47
RD
5056
5057 self = self;
107e4716 5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
70551f47 5059 return NULL;
2d091820
RD
5060 if (_argo0) {
5061 if (_argo0 == Py_None) { _arg0 = NULL; }
5062 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5063 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5064 return NULL;
5065 }
5066 }
ab9bc19b 5067{
474c48f9 5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5069 _result = (bool )wxPen_Ok(_arg0);
ab9bc19b 5070
474c48f9 5071 wxPyEndAllowThreads(__tstate);
4dfaa61e 5072 if (PyErr_Occurred()) return NULL;
ab9bc19b 5073} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5074 return _resultobj;
5075}
5076
5077#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
107e4716 5078static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5079 PyObject * _resultobj;
5080 wxPen * _arg0;
5081 int _arg1;
2d091820 5082 PyObject * _argo0 = 0;
107e4716 5083 char *_kwnames[] = { "self","cap_style", NULL };
70551f47
RD
5084
5085 self = self;
107e4716 5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
70551f47 5087 return NULL;
2d091820
RD
5088 if (_argo0) {
5089 if (_argo0 == Py_None) { _arg0 = NULL; }
5090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5092 return NULL;
5093 }
5094 }
ab9bc19b 5095{
474c48f9 5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5097 wxPen_SetCap(_arg0,_arg1);
ab9bc19b 5098
474c48f9 5099 wxPyEndAllowThreads(__tstate);
4dfaa61e 5100 if (PyErr_Occurred()) return NULL;
ab9bc19b 5101} Py_INCREF(Py_None);
70551f47
RD
5102 _resultobj = Py_None;
5103 return _resultobj;
5104}
5105
5106#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5107static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5108 PyObject * _resultobj;
5109 wxPen * _arg0;
5110 wxColour * _arg1;
2d091820 5111 PyObject * _argo0 = 0;
f6bcfd97
BP
5112 wxColour temp;
5113 PyObject * _obj1 = 0;
107e4716 5114 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
5115
5116 self = self;
f6bcfd97 5117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
70551f47 5118 return NULL;
2d091820
RD
5119 if (_argo0) {
5120 if (_argo0 == Py_None) { _arg0 = NULL; }
5121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5123 return NULL;
5124 }
5125 }
f6bcfd97
BP
5126{
5127 _arg1 = &temp;
5128 if (! wxColour_helper(_obj1, &_arg1))
70551f47 5129 return NULL;
f6bcfd97 5130}
ab9bc19b 5131{
474c48f9 5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5133 wxPen_SetColour(_arg0,*_arg1);
ab9bc19b 5134
474c48f9 5135 wxPyEndAllowThreads(__tstate);
4dfaa61e 5136 if (PyErr_Occurred()) return NULL;
ab9bc19b 5137} Py_INCREF(Py_None);
70551f47
RD
5138 _resultobj = Py_None;
5139 return _resultobj;
5140}
5141
5142#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
107e4716 5143static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5144 PyObject * _resultobj;
5145 wxPen * _arg0;
5146 int _arg1;
2d091820 5147 PyObject * _argo0 = 0;
107e4716 5148 char *_kwnames[] = { "self","join_style", NULL };
70551f47
RD
5149
5150 self = self;
107e4716 5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
70551f47 5152 return NULL;
2d091820
RD
5153 if (_argo0) {
5154 if (_argo0 == Py_None) { _arg0 = NULL; }
5155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5157 return NULL;
5158 }
5159 }
ab9bc19b 5160{
474c48f9 5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5162 wxPen_SetJoin(_arg0,_arg1);
ab9bc19b 5163
474c48f9 5164 wxPyEndAllowThreads(__tstate);
4dfaa61e 5165 if (PyErr_Occurred()) return NULL;
ab9bc19b 5166} Py_INCREF(Py_None);
70551f47
RD
5167 _resultobj = Py_None;
5168 return _resultobj;
5169}
5170
5171#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5172static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5173 PyObject * _resultobj;
5174 wxPen * _arg0;
5175 int _arg1;
2d091820 5176 PyObject * _argo0 = 0;
107e4716 5177 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
5178
5179 self = self;
107e4716 5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
70551f47 5181 return NULL;
2d091820
RD
5182 if (_argo0) {
5183 if (_argo0 == Py_None) { _arg0 = NULL; }
5184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5186 return NULL;
5187 }
5188 }
ab9bc19b 5189{
474c48f9 5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5191 wxPen_SetStyle(_arg0,_arg1);
ab9bc19b 5192
474c48f9 5193 wxPyEndAllowThreads(__tstate);
4dfaa61e 5194 if (PyErr_Occurred()) return NULL;
ab9bc19b 5195} Py_INCREF(Py_None);
70551f47
RD
5196 _resultobj = Py_None;
5197 return _resultobj;
5198}
5199
5200#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
107e4716 5201static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5202 PyObject * _resultobj;
5203 wxPen * _arg0;
5204 int _arg1;
2d091820 5205 PyObject * _argo0 = 0;
107e4716 5206 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
5207
5208 self = self;
107e4716 5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 5210 return NULL;
2d091820
RD
5211 if (_argo0) {
5212 if (_argo0 == Py_None) { _arg0 = NULL; }
5213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5215 return NULL;
5216 }
5217 }
ab9bc19b 5218{
474c48f9 5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5220 wxPen_SetWidth(_arg0,_arg1);
ab9bc19b 5221
474c48f9 5222 wxPyEndAllowThreads(__tstate);
4dfaa61e 5223 if (PyErr_Occurred()) return NULL;
ab9bc19b 5224} Py_INCREF(Py_None);
70551f47
RD
5225 _resultobj = Py_None;
5226 return _resultobj;
5227}
5228
65191ae8
RD
5229#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5230static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5231 PyObject * _resultobj;
56f5d962 5232 wxPen * _arg0;
65191ae8
RD
5233 int _arg1;
5234 wxDash * _arg2;
56f5d962 5235 PyObject * _argo0 = 0;
65191ae8
RD
5236 PyObject * _obj2 = 0;
5237 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5238
5239 self = self;
65191ae8 5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5241 return NULL;
5242 if (_argo0) {
5243 if (_argo0 == Py_None) { _arg0 = NULL; }
5244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
65191ae8 5245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
56f5d962
RD
5246 return NULL;
5247 }
5248 }
65191ae8
RD
5249 if (_obj2)
5250{
5251 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5252 if (_arg2 == NULL) {
5253 return NULL;
5254 }
5255}
5256{
5257 if (_obj2) {
5258 _arg1 = PyList_Size(_obj2);
5259 }
5260 else {
5261 _arg1 = 0;
5262 }
5263}
5264{
474c48f9 5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5266 wxPen_SetDashes(_arg0,_arg1,_arg2);
65191ae8 5267
474c48f9 5268 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5269 if (PyErr_Occurred()) return NULL;
5270} Py_INCREF(Py_None);
5271 _resultobj = Py_None;
5272{
5273 delete [] _arg2;
5274}
5275 return _resultobj;
5276}
5277
5278static void *SwigwxPyPenTowxPen(void *ptr) {
5279 wxPyPen *src;
5280 wxPen *dest;
5281 src = (wxPyPen *) ptr;
5282 dest = (wxPen *) src;
5283 return (void *) dest;
5284}
5285
5286static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5287 wxPyPen *src;
5288 wxGDIObject *dest;
5289 src = (wxPyPen *) ptr;
5290 dest = (wxGDIObject *) src;
5291 return (void *) dest;
5292}
5293
5294static void *SwigwxPyPenTowxObject(void *ptr) {
5295 wxPyPen *src;
5296 wxObject *dest;
5297 src = (wxPyPen *) ptr;
5298 dest = (wxObject *) src;
5299 return (void *) dest;
5300}
5301
5302#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5303static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5304 PyObject * _resultobj;
5305 wxPyPen * _result;
5306 wxColour * _arg0;
5307 int _arg1 = (int ) 1;
5308 int _arg2 = (int ) wxSOLID;
5309 wxColour temp;
5310 PyObject * _obj0 = 0;
5311 char *_kwnames[] = { "colour","width","style", NULL };
5312 char _ptemp[128];
5313
5314 self = self;
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5316 return NULL;
5317{
5318 _arg0 = &temp;
5319 if (! wxColour_helper(_obj0, &_arg0))
5320 return NULL;
5321}
5322{
474c48f9 5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5324 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
65191ae8 5325
474c48f9 5326 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5327 if (PyErr_Occurred()) return NULL;
5328} if (_result) {
5329 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5330 _resultobj = Py_BuildValue("s",_ptemp);
5331 } else {
5332 Py_INCREF(Py_None);
5333 _resultobj = Py_None;
5334 }
5335 return _resultobj;
5336}
5337
5338#define delete_wxPyPen(_swigobj) (delete _swigobj)
5339static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5340 PyObject * _resultobj;
5341 wxPyPen * _arg0;
5342 PyObject * _argo0 = 0;
5343 char *_kwnames[] = { "self", NULL };
5344
5345 self = self;
5346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5347 return NULL;
5348 if (_argo0) {
5349 if (_argo0 == Py_None) { _arg0 = NULL; }
5350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
56f5d962
RD
5352 return NULL;
5353 }
5354 }
5355{
474c48f9 5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5357 delete_wxPyPen(_arg0);
56f5d962 5358
474c48f9 5359 wxPyEndAllowThreads(__tstate);
4dfaa61e 5360 if (PyErr_Occurred()) return NULL;
65191ae8
RD
5361} Py_INCREF(Py_None);
5362 _resultobj = Py_None;
56f5d962
RD
5363 return _resultobj;
5364}
5365
65191ae8
RD
5366#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5367static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5368 PyObject * _resultobj;
65191ae8 5369 wxPyPen * _arg0;
56f5d962
RD
5370 int _arg1;
5371 wxDash * _arg2;
5372 PyObject * _argo0 = 0;
5373 PyObject * _obj2 = 0;
e02c03a4 5374 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5375
5376 self = self;
65191ae8 5377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5378 return NULL;
5379 if (_argo0) {
5380 if (_argo0 == Py_None) { _arg0 = NULL; }
65191ae8
RD
5381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
56f5d962
RD
5383 return NULL;
5384 }
5385 }
5386 if (_obj2)
5387{
41073357 5388 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
56f5d962
RD
5389 if (_arg2 == NULL) {
5390 return NULL;
5391 }
5392}
5393{
5394 if (_obj2) {
5395 _arg1 = PyList_Size(_obj2);
5396 }
5397 else {
5398 _arg1 = 0;
5399 }
5400}
5401{
474c48f9 5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5403 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
56f5d962 5404
474c48f9 5405 wxPyEndAllowThreads(__tstate);
4dfaa61e 5406 if (PyErr_Occurred()) return NULL;
56f5d962
RD
5407} Py_INCREF(Py_None);
5408 _resultobj = Py_None;
5409{
5410 delete [] _arg2;
5411}
5412 return _resultobj;
5413}
5414
9df61a29
RD
5415static void *SwigwxPenListTowxObject(void *ptr) {
5416 wxPenList *src;
5417 wxObject *dest;
5418 src = (wxPenList *) ptr;
5419 dest = (wxObject *) src;
5420 return (void *) dest;
5421}
5422
5e40f9dd
RD
5423#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5424static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5425 PyObject * _resultobj;
5426 wxPenList * _arg0;
5427 wxPen * _arg1;
5428 PyObject * _argo0 = 0;
5429 PyObject * _argo1 = 0;
5430 char *_kwnames[] = { "self","pen", NULL };
5431
5432 self = self;
5433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5434 return NULL;
5435 if (_argo0) {
5436 if (_argo0 == Py_None) { _arg0 = NULL; }
5437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5439 return NULL;
70551f47 5440 }
5e40f9dd
RD
5441 }
5442 if (_argo1) {
5443 if (_argo1 == Py_None) { _arg1 = NULL; }
5444 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5445 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5446 return NULL;
5447 }
5448 }
5449{
474c48f9 5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5451 wxPenList_AddPen(_arg0,_arg1);
70551f47 5452
474c48f9 5453 wxPyEndAllowThreads(__tstate);
4dfaa61e 5454 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5455} Py_INCREF(Py_None);
5456 _resultobj = Py_None;
5457 return _resultobj;
5458}
5459
5460#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5461static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5462 PyObject * _resultobj;
5463 wxPen * _result;
5464 wxPenList * _arg0;
5465 wxColour * _arg1;
5466 int _arg2;
5467 int _arg3;
5468 PyObject * _argo0 = 0;
5469 wxColour temp;
5470 PyObject * _obj1 = 0;
5471 char *_kwnames[] = { "self","colour","width","style", NULL };
5472 char _ptemp[128];
5473
5474 self = self;
5475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5476 return NULL;
5477 if (_argo0) {
5478 if (_argo0 == Py_None) { _arg0 = NULL; }
5479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5481 return NULL;
5482 }
5483 }
5484{
5485 _arg1 = &temp;
5486 if (! wxColour_helper(_obj1, &_arg1))
5487 return NULL;
5488}
5489{
474c48f9 5490 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5491 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5e40f9dd 5492
474c48f9 5493 wxPyEndAllowThreads(__tstate);
4dfaa61e 5494 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5495} if (_result) {
5496 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5497 _resultobj = Py_BuildValue("s",_ptemp);
5498 } else {
5499 Py_INCREF(Py_None);
5500 _resultobj = Py_None;
5501 }
5502 return _resultobj;
5503}
5504
5505#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5506static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject * _resultobj;
5508 wxPenList * _arg0;
5509 wxPen * _arg1;
5510 PyObject * _argo0 = 0;
5511 PyObject * _argo1 = 0;
5512 char *_kwnames[] = { "self","pen", NULL };
5513
5514 self = self;
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5516 return NULL;
5517 if (_argo0) {
5518 if (_argo0 == Py_None) { _arg0 = NULL; }
5519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5521 return NULL;
5522 }
5523 }
5524 if (_argo1) {
5525 if (_argo1 == Py_None) { _arg1 = NULL; }
5526 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5527 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5528 return NULL;
5529 }
5530 }
5531{
474c48f9 5532 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5533 wxPenList_RemovePen(_arg0,_arg1);
5e40f9dd 5534
474c48f9 5535 wxPyEndAllowThreads(__tstate);
4dfaa61e 5536 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5537} Py_INCREF(Py_None);
5538 _resultobj = Py_None;
5539 return _resultobj;
5540}
5541
7a9b33db
RD
5542#define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5543static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject * _resultobj;
5545 int _result;
5546 wxPenList * _arg0;
5547 PyObject * _argo0 = 0;
5548 char *_kwnames[] = { "self", NULL };
5549
5550 self = self;
5551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5552 return NULL;
5553 if (_argo0) {
5554 if (_argo0 == Py_None) { _arg0 = NULL; }
5555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5557 return NULL;
5558 }
5559 }
5560{
474c48f9 5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5562 _result = (int )wxPenList_GetCount(_arg0);
7a9b33db 5563
474c48f9 5564 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
5565 if (PyErr_Occurred()) return NULL;
5566} _resultobj = Py_BuildValue("i",_result);
5567 return _resultobj;
5568}
5569
9df61a29
RD
5570static void *SwigwxBrushTowxGDIObject(void *ptr) {
5571 wxBrush *src;
5572 wxGDIObject *dest;
5573 src = (wxBrush *) ptr;
5574 dest = (wxGDIObject *) src;
5575 return (void *) dest;
5576}
5577
5578static void *SwigwxBrushTowxObject(void *ptr) {
5579 wxBrush *src;
5580 wxObject *dest;
5581 src = (wxBrush *) ptr;
5582 dest = (wxObject *) src;
5583 return (void *) dest;
5584}
5585
5e40f9dd 5586#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
107e4716 5587static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5588 PyObject * _resultobj;
5589 wxBrush * _result;
5590 wxColour * _arg0;
2d091820 5591 int _arg1 = (int ) wxSOLID;
f6bcfd97
BP
5592 wxColour temp;
5593 PyObject * _obj0 = 0;
107e4716 5594 char *_kwnames[] = { "colour","style", NULL };
70551f47
RD
5595 char _ptemp[128];
5596
5597 self = self;
f6bcfd97 5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
70551f47 5599 return NULL;
f6bcfd97
BP
5600{
5601 _arg0 = &temp;
5602 if (! wxColour_helper(_obj0, &_arg0))
70551f47 5603 return NULL;
f6bcfd97 5604}
ab9bc19b 5605{
474c48f9 5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5607 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
ab9bc19b 5608
474c48f9 5609 wxPyEndAllowThreads(__tstate);
4dfaa61e 5610 if (PyErr_Occurred()) return NULL;
2d091820
RD
5611} if (_result) {
5612 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5613 _resultobj = Py_BuildValue("s",_ptemp);
5614 } else {
5615 Py_INCREF(Py_None);
5616 _resultobj = Py_None;
5617 }
70551f47
RD
5618 return _resultobj;
5619}
5620
5e40f9dd
RD
5621#define delete_wxBrush(_swigobj) (delete _swigobj)
5622static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5623 PyObject * _resultobj;
5624 wxBrush * _arg0;
5625 PyObject * _argo0 = 0;
5626 char *_kwnames[] = { "self", NULL };
5627
5628 self = self;
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5630 return NULL;
5631 if (_argo0) {
5632 if (_argo0 == Py_None) { _arg0 = NULL; }
5633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5635 return NULL;
5636 }
5637 }
5638{
474c48f9 5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5640 delete_wxBrush(_arg0);
5e40f9dd 5641
474c48f9 5642 wxPyEndAllowThreads(__tstate);
4dfaa61e 5643 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5644} Py_INCREF(Py_None);
5645 _resultobj = Py_None;
5646 return _resultobj;
5647}
5648
70551f47 5649#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
107e4716 5650static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5651 PyObject * _resultobj;
5652 wxColour * _result;
5653 wxBrush * _arg0;
2d091820 5654 PyObject * _argo0 = 0;
107e4716 5655 char *_kwnames[] = { "self", NULL };
70551f47
RD
5656 char _ptemp[128];
5657
5658 self = self;
107e4716 5659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
70551f47 5660 return NULL;
2d091820
RD
5661 if (_argo0) {
5662 if (_argo0 == Py_None) { _arg0 = NULL; }
5663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5665 return NULL;
5666 }
5667 }
ab9bc19b 5668{
474c48f9 5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5670 _result = new wxColour (wxBrush_GetColour(_arg0));
ab9bc19b 5671
474c48f9 5672 wxPyEndAllowThreads(__tstate);
4dfaa61e 5673 if (PyErr_Occurred()) return NULL;
84a81942
RD
5674} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5675 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5676 return _resultobj;
5677}
5678
5679#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
107e4716 5680static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5681 PyObject * _resultobj;
5682 wxBitmap * _result;
5683 wxBrush * _arg0;
2d091820 5684 PyObject * _argo0 = 0;
107e4716 5685 char *_kwnames[] = { "self", NULL };
70551f47
RD
5686 char _ptemp[128];
5687
5688 self = self;
107e4716 5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
70551f47 5690 return NULL;
2d091820
RD
5691 if (_argo0) {
5692 if (_argo0 == Py_None) { _arg0 = NULL; }
5693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5695 return NULL;
5696 }
5697 }
ab9bc19b 5698{
474c48f9 5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5700 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
ab9bc19b 5701
474c48f9 5702 wxPyEndAllowThreads(__tstate);
4dfaa61e 5703 if (PyErr_Occurred()) return NULL;
2d091820
RD
5704} if (_result) {
5705 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5706 _resultobj = Py_BuildValue("s",_ptemp);
5707 } else {
5708 Py_INCREF(Py_None);
5709 _resultobj = Py_None;
5710 }
70551f47
RD
5711 return _resultobj;
5712}
5713
5714#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 5715static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5716 PyObject * _resultobj;
5717 int _result;
5718 wxBrush * _arg0;
2d091820 5719 PyObject * _argo0 = 0;
107e4716 5720 char *_kwnames[] = { "self", NULL };
70551f47
RD
5721
5722 self = self;
107e4716 5723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
70551f47 5724 return NULL;
2d091820
RD
5725 if (_argo0) {
5726 if (_argo0 == Py_None) { _arg0 = NULL; }
5727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5729 return NULL;
5730 }
5731 }
ab9bc19b 5732{
474c48f9 5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5734 _result = (int )wxBrush_GetStyle(_arg0);
ab9bc19b 5735
474c48f9 5736 wxPyEndAllowThreads(__tstate);
4dfaa61e 5737 if (PyErr_Occurred()) return NULL;
ab9bc19b 5738} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5739 return _resultobj;
5740}
5741
5742#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
107e4716 5743static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5744 PyObject * _resultobj;
5745 bool _result;
5746 wxBrush * _arg0;
2d091820 5747 PyObject * _argo0 = 0;
107e4716 5748 char *_kwnames[] = { "self", NULL };
70551f47
RD
5749
5750 self = self;
107e4716 5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
70551f47 5752 return NULL;
2d091820
RD
5753 if (_argo0) {
5754 if (_argo0 == Py_None) { _arg0 = NULL; }
5755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5757 return NULL;
5758 }
5759 }
ab9bc19b 5760{
474c48f9 5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5762 _result = (bool )wxBrush_Ok(_arg0);
ab9bc19b 5763
474c48f9 5764 wxPyEndAllowThreads(__tstate);
4dfaa61e 5765 if (PyErr_Occurred()) return NULL;
ab9bc19b 5766} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5767 return _resultobj;
5768}
5769
c95e68d8 5770#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5771static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5772 PyObject * _resultobj;
5773 wxBrush * _arg0;
5774 wxColour * _arg1;
2d091820 5775 PyObject * _argo0 = 0;
f6bcfd97
BP
5776 wxColour temp;
5777 PyObject * _obj1 = 0;
107e4716 5778 char *_kwnames[] = { "self","colour", NULL };
c95e68d8
RD
5779
5780 self = self;
f6bcfd97 5781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
c95e68d8 5782 return NULL;
2d091820
RD
5783 if (_argo0) {
5784 if (_argo0 == Py_None) { _arg0 = NULL; }
5785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5787 return NULL;
5788 }
5789 }
f6bcfd97
BP
5790{
5791 _arg1 = &temp;
5792 if (! wxColour_helper(_obj1, &_arg1))
c95e68d8 5793 return NULL;
f6bcfd97 5794}
ab9bc19b 5795{
474c48f9 5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5797 wxBrush_SetColour(_arg0,*_arg1);
ab9bc19b 5798
474c48f9 5799 wxPyEndAllowThreads(__tstate);
4dfaa61e 5800 if (PyErr_Occurred()) return NULL;
ab9bc19b 5801} Py_INCREF(Py_None);
c95e68d8
RD
5802 _resultobj = Py_None;
5803 return _resultobj;
5804}
5805
5806#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
107e4716 5807static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5808 PyObject * _resultobj;
5809 wxBrush * _arg0;
5810 wxBitmap * _arg1;
2d091820
RD
5811 PyObject * _argo0 = 0;
5812 PyObject * _argo1 = 0;
107e4716 5813 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
5814
5815 self = self;
107e4716 5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
c95e68d8 5817 return NULL;
2d091820
RD
5818 if (_argo0) {
5819 if (_argo0 == Py_None) { _arg0 = NULL; }
5820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5822 return NULL;
5823 }
5824 }
2d091820
RD
5825 if (_argo1) {
5826 if (_argo1 == Py_None) { _arg1 = NULL; }
5827 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
5828 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5829 return NULL;
5830 }
5831 }
ab9bc19b 5832{
474c48f9 5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5834 wxBrush_SetStipple(_arg0,*_arg1);
ab9bc19b 5835
474c48f9 5836 wxPyEndAllowThreads(__tstate);
4dfaa61e 5837 if (PyErr_Occurred()) return NULL;
ab9bc19b 5838} Py_INCREF(Py_None);
c95e68d8
RD
5839 _resultobj = Py_None;
5840 return _resultobj;
5841}
5842
5843#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5844static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5845 PyObject * _resultobj;
5846 wxBrush * _arg0;
5847 int _arg1;
2d091820 5848 PyObject * _argo0 = 0;
107e4716 5849 char *_kwnames[] = { "self","style", NULL };
c95e68d8
RD
5850
5851 self = self;
107e4716 5852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
c95e68d8 5853 return NULL;
2d091820
RD
5854 if (_argo0) {
5855 if (_argo0 == Py_None) { _arg0 = NULL; }
5856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5858 return NULL;
5859 }
5860 }
ab9bc19b 5861{
474c48f9 5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5863 wxBrush_SetStyle(_arg0,_arg1);
ab9bc19b 5864
474c48f9 5865 wxPyEndAllowThreads(__tstate);
4dfaa61e 5866 if (PyErr_Occurred()) return NULL;
ab9bc19b 5867} Py_INCREF(Py_None);
c95e68d8
RD
5868 _resultobj = Py_None;
5869 return _resultobj;
5870}
5871
65191ae8
RD
5872static void *SwigwxBrushListTowxObject(void *ptr) {
5873 wxBrushList *src;
5874 wxObject *dest;
5875 src = (wxBrushList *) ptr;
5876 dest = (wxObject *) src;
5877 return (void *) dest;
5878}
5879
5e40f9dd
RD
5880#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5881static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5882 PyObject * _resultobj;
5883 wxBrushList * _arg0;
5884 wxBrush * _arg1;
5885 PyObject * _argo0 = 0;
5886 PyObject * _argo1 = 0;
5887 char *_kwnames[] = { "self","brush", NULL };
5888
5889 self = self;
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5891 return NULL;
5892 if (_argo0) {
5893 if (_argo0 == Py_None) { _arg0 = NULL; }
5894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5896 return NULL;
5897 }
5898 }
5899 if (_argo1) {
5900 if (_argo1 == Py_None) { _arg1 = NULL; }
5901 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5902 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5903 return NULL;
5904 }
5905 }
5906{
474c48f9 5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5908 wxBrushList_AddBrush(_arg0,_arg1);
5e40f9dd 5909
474c48f9 5910 wxPyEndAllowThreads(__tstate);
4dfaa61e 5911 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5912} Py_INCREF(Py_None);
5913 _resultobj = Py_None;
5914 return _resultobj;
5915}
5916
5917#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5918static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject * _resultobj;
5920 wxBrush * _result;
5921 wxBrushList * _arg0;
5922 wxColour * _arg1;
5923 int _arg2;
5924 PyObject * _argo0 = 0;
5925 wxColour temp;
5926 PyObject * _obj1 = 0;
5927 char *_kwnames[] = { "self","colour","style", NULL };
5928 char _ptemp[128];
5929
5930 self = self;
5931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5932 return NULL;
5933 if (_argo0) {
5934 if (_argo0 == Py_None) { _arg0 = NULL; }
5935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5937 return NULL;
5938 }
5939 }
5940{
5941 _arg1 = &temp;
5942 if (! wxColour_helper(_obj1, &_arg1))
5943 return NULL;
5944}
5945{
474c48f9 5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5947 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5e40f9dd 5948
474c48f9 5949 wxPyEndAllowThreads(__tstate);
4dfaa61e 5950 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5951} if (_result) {
5952 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5953 _resultobj = Py_BuildValue("s",_ptemp);
5954 } else {
5955 Py_INCREF(Py_None);
5956 _resultobj = Py_None;
5957 }
5958 return _resultobj;
5959}
5960
5961#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5962static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject * _resultobj;
5964 wxBrushList * _arg0;
5965 wxBrush * _arg1;
5966 PyObject * _argo0 = 0;
5967 PyObject * _argo1 = 0;
5968 char *_kwnames[] = { "self","brush", NULL };
5969
5970 self = self;
5971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
5972 return NULL;
5973 if (_argo0) {
5974 if (_argo0 == Py_None) { _arg0 = NULL; }
5975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5977 return NULL;
5978 }
5979 }
5980 if (_argo1) {
5981 if (_argo1 == Py_None) { _arg1 = NULL; }
5982 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5983 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5984 return NULL;
5985 }
5986 }
5987{
474c48f9 5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5989 wxBrushList_RemoveBrush(_arg0,_arg1);
5e40f9dd 5990
474c48f9 5991 wxPyEndAllowThreads(__tstate);
4dfaa61e 5992 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5993} Py_INCREF(Py_None);
5994 _resultobj = Py_None;
5995 return _resultobj;
5996}
5997
7a9b33db
RD
5998#define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5999static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6000 PyObject * _resultobj;
6001 int _result;
6002 wxBrushList * _arg0;
6003 PyObject * _argo0 = 0;
6004 char *_kwnames[] = { "self", NULL };
6005
6006 self = self;
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6008 return NULL;
6009 if (_argo0) {
6010 if (_argo0 == Py_None) { _arg0 = NULL; }
6011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6013 return NULL;
6014 }
6015 }
6016{
474c48f9 6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6018 _result = (int )wxBrushList_GetCount(_arg0);
7a9b33db 6019
474c48f9 6020 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
6021 if (PyErr_Occurred()) return NULL;
6022} _resultobj = Py_BuildValue("i",_result);
6023 return _resultobj;
6024}
6025
9df61a29
RD
6026static void *SwigwxDCTowxObject(void *ptr) {
6027 wxDC *src;
6028 wxObject *dest;
6029 src = (wxDC *) ptr;
6030 dest = (wxObject *) src;
6031 return (void *) dest;
6032}
6033
70551f47 6034#define delete_wxDC(_swigobj) (delete _swigobj)
107e4716 6035static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6036 PyObject * _resultobj;
6037 wxDC * _arg0;
2d091820 6038 PyObject * _argo0 = 0;
107e4716 6039 char *_kwnames[] = { "self", NULL };
70551f47
RD
6040
6041 self = self;
107e4716 6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
70551f47 6043 return NULL;
2d091820
RD
6044 if (_argo0) {
6045 if (_argo0 == Py_None) { _arg0 = NULL; }
6046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6048 return NULL;
6049 }
6050 }
ab9bc19b 6051{
474c48f9 6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6053 delete_wxDC(_arg0);
ab9bc19b 6054
474c48f9 6055 wxPyEndAllowThreads(__tstate);
4dfaa61e 6056 if (PyErr_Occurred()) return NULL;
ab9bc19b 6057} Py_INCREF(Py_None);
70551f47
RD
6058 _resultobj = Py_None;
6059 return _resultobj;
6060}
6061
6062#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
107e4716 6063static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6064 PyObject * _resultobj;
6065 wxDC * _arg0;
2d091820 6066 PyObject * _argo0 = 0;
107e4716 6067 char *_kwnames[] = { "self", NULL };
70551f47
RD
6068
6069 self = self;
107e4716 6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
70551f47 6071 return NULL;
2d091820
RD
6072 if (_argo0) {
6073 if (_argo0 == Py_None) { _arg0 = NULL; }
6074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6076 return NULL;
6077 }
6078 }
ab9bc19b 6079{
474c48f9 6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6081 wxDC_BeginDrawing(_arg0);
ab9bc19b 6082
474c48f9 6083 wxPyEndAllowThreads(__tstate);
4dfaa61e 6084 if (PyErr_Occurred()) return NULL;
ab9bc19b 6085} Py_INCREF(Py_None);
70551f47
RD
6086 _resultobj = Py_None;
6087 return _resultobj;
6088}
6089
107e4716
RD
6090#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6091static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6092 PyObject * _resultobj;
6093 bool _result;
6094 wxDC * _arg0;
6095 long _arg1;
6096 long _arg2;
6097 long _arg3;
6098 long _arg4;
6099 wxDC * _arg5;
6100 long _arg6;
6101 long _arg7;
107e4716
RD
6102 int _arg8 = (int ) wxCOPY;
6103 int _arg9 = (int ) FALSE;
2d091820
RD
6104 PyObject * _argo0 = 0;
6105 PyObject * _argo5 = 0;
107e4716 6106 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
70551f47
RD
6107
6108 self = self;
107e4716 6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
70551f47 6110 return NULL;
2d091820
RD
6111 if (_argo0) {
6112 if (_argo0 == Py_None) { _arg0 = NULL; }
6113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6115 return NULL;
6116 }
6117 }
2d091820
RD
6118 if (_argo5) {
6119 if (_argo5 == Py_None) { _arg5 = NULL; }
6120 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
70551f47
RD
6121 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6122 return NULL;
6123 }
6124 }
ab9bc19b 6125{
474c48f9 6126 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6127 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
ab9bc19b 6128
474c48f9 6129 wxPyEndAllowThreads(__tstate);
4dfaa61e 6130 if (PyErr_Occurred()) return NULL;
ab9bc19b 6131} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6132 return _resultobj;
6133}
6134
6135#define wxDC_Clear(_swigobj) (_swigobj->Clear())
107e4716 6136static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6137 PyObject * _resultobj;
6138 wxDC * _arg0;
2d091820 6139 PyObject * _argo0 = 0;
107e4716 6140 char *_kwnames[] = { "self", NULL };
70551f47
RD
6141
6142 self = self;
107e4716 6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
70551f47 6144 return NULL;
2d091820
RD
6145 if (_argo0) {
6146 if (_argo0 == Py_None) { _arg0 = NULL; }
6147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6149 return NULL;
6150 }
6151 }
ab9bc19b 6152{
474c48f9 6153 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6154 wxDC_Clear(_arg0);
ab9bc19b 6155
474c48f9 6156 wxPyEndAllowThreads(__tstate);
4dfaa61e 6157 if (PyErr_Occurred()) return NULL;
ab9bc19b 6158} Py_INCREF(Py_None);
70551f47
RD
6159 _resultobj = Py_None;
6160 return _resultobj;
6161}
6162
6163#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
107e4716 6164static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6165 PyObject * _resultobj;
6166 wxDC * _arg0;
6167 long _arg1;
6168 long _arg2;
2d091820 6169 PyObject * _argo0 = 0;
107e4716 6170 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6171
6172 self = self;
107e4716 6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6174 return NULL;
2d091820
RD
6175 if (_argo0) {
6176 if (_argo0 == Py_None) { _arg0 = NULL; }
6177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6179 return NULL;
6180 }
6181 }
ab9bc19b 6182{
474c48f9 6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6184 wxDC_CrossHair(_arg0,_arg1,_arg2);
ab9bc19b 6185
474c48f9 6186 wxPyEndAllowThreads(__tstate);
4dfaa61e 6187 if (PyErr_Occurred()) return NULL;
ab9bc19b 6188} Py_INCREF(Py_None);
70551f47
RD
6189 _resultobj = Py_None;
6190 return _resultobj;
6191}
6192
6193#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
107e4716 6194static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6195 PyObject * _resultobj;
6196 wxDC * _arg0;
2d091820 6197 PyObject * _argo0 = 0;
107e4716 6198 char *_kwnames[] = { "self", NULL };
70551f47
RD
6199
6200 self = self;
107e4716 6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
70551f47 6202 return NULL;
2d091820
RD
6203 if (_argo0) {
6204 if (_argo0 == Py_None) { _arg0 = NULL; }
6205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6207 return NULL;
6208 }
6209 }
ab9bc19b 6210{
474c48f9 6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6212 wxDC_DestroyClippingRegion(_arg0);
ab9bc19b 6213
474c48f9 6214 wxPyEndAllowThreads(__tstate);
4dfaa61e 6215 if (PyErr_Occurred()) return NULL;
ab9bc19b 6216} Py_INCREF(Py_None);
70551f47
RD
6217 _resultobj = Py_None;
6218 return _resultobj;
6219}
6220
6221#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
107e4716 6222static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6223 PyObject * _resultobj;
6224 long _result;
6225 wxDC * _arg0;
6226 long _arg1;
2d091820 6227 PyObject * _argo0 = 0;
107e4716 6228 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6229
6230 self = self;
107e4716 6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
70551f47 6232 return NULL;
2d091820
RD
6233 if (_argo0) {
6234 if (_argo0 == Py_None) { _arg0 = NULL; }
6235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6237 return NULL;
6238 }
6239 }
ab9bc19b 6240{
474c48f9 6241 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6242 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
ab9bc19b 6243
474c48f9 6244 wxPyEndAllowThreads(__tstate);
4dfaa61e 6245 if (PyErr_Occurred()) return NULL;
ab9bc19b 6246} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6247 return _resultobj;
6248}
6249
6250#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
107e4716 6251static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6252 PyObject * _resultobj;
6253 long _result;
6254 wxDC * _arg0;
6255 long _arg1;
2d091820 6256 PyObject * _argo0 = 0;
107e4716 6257 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6258
6259 self = self;
107e4716 6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
70551f47 6261 return NULL;
2d091820
RD
6262 if (_argo0) {
6263 if (_argo0 == Py_None) { _arg0 = NULL; }
6264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6266 return NULL;
6267 }
6268 }
ab9bc19b 6269{
474c48f9 6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6271 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
ab9bc19b 6272
474c48f9 6273 wxPyEndAllowThreads(__tstate);
4dfaa61e 6274 if (PyErr_Occurred()) return NULL;
ab9bc19b 6275} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6276 return _resultobj;
6277}
6278
6279#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
107e4716 6280static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6281 PyObject * _resultobj;
6282 long _result;
6283 wxDC * _arg0;
6284 long _arg1;
2d091820 6285 PyObject * _argo0 = 0;
107e4716 6286 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6287
6288 self = self;
107e4716 6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
70551f47 6290 return NULL;
2d091820
RD
6291 if (_argo0) {
6292 if (_argo0 == Py_None) { _arg0 = NULL; }
6293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6295 return NULL;
6296 }
6297 }
ab9bc19b 6298{
474c48f9 6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6300 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
ab9bc19b 6301
474c48f9 6302 wxPyEndAllowThreads(__tstate);
4dfaa61e 6303 if (PyErr_Occurred()) return NULL;
ab9bc19b 6304} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6305 return _resultobj;
6306}
6307
6308#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
107e4716 6309static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6310 PyObject * _resultobj;
6311 long _result;
6312 wxDC * _arg0;
6313 long _arg1;
2d091820 6314 PyObject * _argo0 = 0;
107e4716 6315 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6316
6317 self = self;
107e4716 6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
70551f47 6319 return NULL;
2d091820
RD
6320 if (_argo0) {
6321 if (_argo0 == Py_None) { _arg0 = NULL; }
6322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6324 return NULL;
6325 }
6326 }
ab9bc19b 6327{
474c48f9 6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6329 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
ab9bc19b 6330
474c48f9 6331 wxPyEndAllowThreads(__tstate);
4dfaa61e 6332 if (PyErr_Occurred()) return NULL;
ab9bc19b 6333} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6334 return _resultobj;
6335}
6336
6337#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6338static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6339 PyObject * _resultobj;
6340 wxDC * _arg0;
6341 long _arg1;
6342 long _arg2;
6343 long _arg3;
6344 long _arg4;
6345 long _arg5;
6346 long _arg6;
2d091820 6347 PyObject * _argo0 = 0;
107e4716 6348 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
70551f47
RD
6349
6350 self = self;
107e4716 6351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 6352 return NULL;
2d091820
RD
6353 if (_argo0) {
6354 if (_argo0 == Py_None) { _arg0 = NULL; }
6355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6357 return NULL;
6358 }
6359 }
ab9bc19b 6360{
474c48f9 6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6362 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6363
474c48f9 6364 wxPyEndAllowThreads(__tstate);
4dfaa61e 6365 if (PyErr_Occurred()) return NULL;
ab9bc19b 6366} Py_INCREF(Py_None);
70551f47
RD
6367 _resultobj = Py_None;
6368 return _resultobj;
6369}
6370
d24a34bb 6371#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
107e4716 6372static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
6373 PyObject * _resultobj;
6374 wxDC * _arg0;
6375 long _arg1;
6376 long _arg2;
6377 long _arg3;
2d091820 6378 PyObject * _argo0 = 0;
107e4716 6379 char *_kwnames[] = { "self","x","y","radius", NULL };
d24a34bb
RD
6380
6381 self = self;
107e4716 6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
d24a34bb 6383 return NULL;
2d091820
RD
6384 if (_argo0) {
6385 if (_argo0 == Py_None) { _arg0 = NULL; }
6386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
6387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6388 return NULL;
6389 }
6390 }
6391{
474c48f9 6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6393 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
d24a34bb 6394
474c48f9 6395 wxPyEndAllowThreads(__tstate);
4dfaa61e 6396 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
6397} Py_INCREF(Py_None);
6398 _resultobj = Py_None;
6399 return _resultobj;
6400}
6401
70551f47 6402#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6403static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6404 PyObject * _resultobj;
6405 wxDC * _arg0;
6406 long _arg1;
6407 long _arg2;
6408 long _arg3;
6409 long _arg4;
2d091820 6410 PyObject * _argo0 = 0;
107e4716 6411 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6412
6413 self = self;
107e4716 6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6415 return NULL;
2d091820
RD
6416 if (_argo0) {
6417 if (_argo0 == Py_None) { _arg0 = NULL; }
6418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6420 return NULL;
6421 }
6422 }
ab9bc19b 6423{
474c48f9 6424 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6425 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6426
474c48f9 6427 wxPyEndAllowThreads(__tstate);
4dfaa61e 6428 if (PyErr_Occurred()) return NULL;
ab9bc19b 6429} Py_INCREF(Py_None);
70551f47
RD
6430 _resultobj = Py_None;
6431 return _resultobj;
6432}
6433
6434#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6435static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6436 PyObject * _resultobj;
6437 wxDC * _arg0;
6438 long _arg1;
6439 long _arg2;
6440 long _arg3;
6441 long _arg4;
6442 long _arg5;
6443 long _arg6;
2d091820 6444 PyObject * _argo0 = 0;
107e4716 6445 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
70551f47
RD
6446
6447 self = self;
107e4716 6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 6449 return NULL;
2d091820
RD
6450 if (_argo0) {
6451 if (_argo0 == Py_None) { _arg0 = NULL; }
6452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6454 return NULL;
6455 }
6456 }
ab9bc19b 6457{
474c48f9 6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6459 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6460
474c48f9 6461 wxPyEndAllowThreads(__tstate);
4dfaa61e 6462 if (PyErr_Occurred()) return NULL;
ab9bc19b 6463} Py_INCREF(Py_None);
70551f47
RD
6464 _resultobj = Py_None;
6465 return _resultobj;
6466}
6467
6468#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
107e4716 6469static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6470 PyObject * _resultobj;
6471 wxDC * _arg0;
6472 wxIcon * _arg1;
6473 long _arg2;
6474 long _arg3;
2d091820
RD
6475 PyObject * _argo0 = 0;
6476 PyObject * _argo1 = 0;
107e4716 6477 char *_kwnames[] = { "self","icon","x","y", NULL };
70551f47
RD
6478
6479 self = self;
107e4716 6480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
70551f47 6481 return NULL;
2d091820
RD
6482 if (_argo0) {
6483 if (_argo0 == Py_None) { _arg0 = NULL; }
6484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6486 return NULL;
6487 }
6488 }
2d091820
RD
6489 if (_argo1) {
6490 if (_argo1 == Py_None) { _arg1 = NULL; }
6491 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
70551f47
RD
6492 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6493 return NULL;
6494 }
6495 }
ab9bc19b 6496{
474c48f9 6497 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6498 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6499
474c48f9 6500 wxPyEndAllowThreads(__tstate);
4dfaa61e 6501 if (PyErr_Occurred()) return NULL;
ab9bc19b 6502} Py_INCREF(Py_None);
70551f47
RD
6503 _resultobj = Py_None;
6504 return _resultobj;
6505}
6506
8cb49012
RD
6507#define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6508static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6509 PyObject * _resultobj;
6510 wxDC * _arg0;
6511 wxString * _arg1;
6512 wxRect * _arg2;
6513 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6514 int _arg4 = (int ) -1;
6515 PyObject * _argo0 = 0;
6516 PyObject * _obj1 = 0;
6517 wxRect temp;
6518 PyObject * _obj2 = 0;
6519 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6520
6521 self = self;
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6523 return NULL;
6524 if (_argo0) {
6525 if (_argo0 == Py_None) { _arg0 = NULL; }
6526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6528 return NULL;
6529 }
6530 }
6531{
c8bc7bb8
RD
6532 _arg1 = wxString_in_helper(_obj1);
6533 if (_arg1 == NULL)
8cb49012 6534 return NULL;
8cb49012
RD
6535}
6536{
6537 _arg2 = &temp;
6538 if (! wxRect_helper(_obj2, &_arg2))
6539 return NULL;
6540}
6541{
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6543 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
8cb49012
RD
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) return NULL;
6547} Py_INCREF(Py_None);
6548 _resultobj = Py_None;
6549{
6550 if (_obj1)
6551 delete _arg1;
6552}
6553 return _resultobj;
6554}
6555
6556static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6557 wxRect rv;
6558 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6559 return rv;
6560 }
6561static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject * _resultobj;
6563 wxRect * _result;
6564 wxDC * _arg0;
6565 wxString * _arg1;
6566 wxBitmap * _arg2;
6567 wxRect * _arg3;
6568 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6569 int _arg5 = (int ) -1;
6570 PyObject * _argo0 = 0;
6571 PyObject * _obj1 = 0;
6572 PyObject * _argo2 = 0;
6573 wxRect temp;
6574 PyObject * _obj3 = 0;
6575 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6576 char _ptemp[128];
6577
6578 self = self;
6579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6580 return NULL;
6581 if (_argo0) {
6582 if (_argo0 == Py_None) { _arg0 = NULL; }
6583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6585 return NULL;
6586 }
6587 }
6588{
c8bc7bb8
RD
6589 _arg1 = wxString_in_helper(_obj1);
6590 if (_arg1 == NULL)
8cb49012 6591 return NULL;
8cb49012
RD
6592}
6593 if (_argo2) {
6594 if (_argo2 == Py_None) { _arg2 = NULL; }
6595 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6596 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6597 return NULL;
6598 }
6599 }
6600{
6601 _arg3 = &temp;
6602 if (! wxRect_helper(_obj3, &_arg3))
6603 return NULL;
6604}
6605{
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6607 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
8cb49012
RD
6608
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) return NULL;
6611} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6612 _resultobj = Py_BuildValue("s",_ptemp);
6613{
6614 if (_obj1)
6615 delete _arg1;
6616}
6617 return _resultobj;
6618}
6619
70551f47 6620#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6621static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6622 PyObject * _resultobj;
6623 wxDC * _arg0;
6624 long _arg1;
6625 long _arg2;
6626 long _arg3;
6627 long _arg4;
2d091820 6628 PyObject * _argo0 = 0;
107e4716 6629 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
70551f47
RD
6630
6631 self = self;
107e4716 6632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6633 return NULL;
2d091820
RD
6634 if (_argo0) {
6635 if (_argo0 == Py_None) { _arg0 = NULL; }
6636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6638 return NULL;
6639 }
6640 }
ab9bc19b 6641{
474c48f9 6642 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6643 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6644
474c48f9 6645 wxPyEndAllowThreads(__tstate);
4dfaa61e 6646 if (PyErr_Occurred()) return NULL;
ab9bc19b 6647} Py_INCREF(Py_None);
70551f47
RD
6648 _resultobj = Py_None;
6649 return _resultobj;
6650}
6651
6652#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6653static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6654 PyObject * _resultobj;
6655 wxDC * _arg0;
6656 int _arg1;
6657 wxPoint * _arg2;
2d091820
RD
6658 long _arg3 = (long ) 0;
6659 long _arg4 = (long ) 0;
6660 PyObject * _argo0 = 0;
1c09ae54 6661 int NPOINTS;
70551f47 6662 PyObject * _obj2 = 0;
e02c03a4 6663 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
70551f47
RD
6664
6665 self = self;
107e4716 6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
70551f47 6667 return NULL;
2d091820
RD
6668 if (_argo0) {
6669 if (_argo0 == Py_None) { _arg0 = NULL; }
6670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6672 return NULL;
6673 }
6674 }
6675 if (_obj2)
6676{
1c09ae54
RD
6677 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6678 if (_arg2 == NULL) {
6679 return NULL;
6680 }
70551f47
RD
6681}
6682{
1c09ae54 6683 _arg1 = NPOINTS;
70551f47 6684}
ab9bc19b 6685{
474c48f9 6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6687 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6688
474c48f9 6689 wxPyEndAllowThreads(__tstate);
4dfaa61e 6690 if (PyErr_Occurred()) return NULL;
ab9bc19b 6691} Py_INCREF(Py_None);
70551f47
RD
6692 _resultobj = Py_None;
6693{
6694 delete [] _arg2;
6695}
6696 return _resultobj;
6697}
6698
6699#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6700static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6701 PyObject * _resultobj;
6702 wxDC * _arg0;
6703 int _arg1;
6704 wxPoint * _arg2;
2d091820
RD
6705 long _arg3 = (long ) 0;
6706 long _arg4 = (long ) 0;
6707 int _arg5 = (int ) wxODDEVEN_RULE;
6708 PyObject * _argo0 = 0;
1c09ae54 6709 int NPOINTS;
70551f47 6710 PyObject * _obj2 = 0;
e02c03a4 6711 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
70551f47
RD
6712
6713 self = self;
107e4716 6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
70551f47 6715 return NULL;
2d091820
RD
6716 if (_argo0) {
6717 if (_argo0 == Py_None) { _arg0 = NULL; }
6718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6720 return NULL;
6721 }
6722 }
6723 if (_obj2)
6724{
1c09ae54
RD
6725 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6726 if (_arg2 == NULL) {
6727 return NULL;
6728 }
70551f47
RD
6729}
6730{
1c09ae54 6731 _arg1 = NPOINTS;
70551f47 6732}
ab9bc19b 6733{
474c48f9 6734 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6735 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 6736
474c48f9 6737 wxPyEndAllowThreads(__tstate);
4dfaa61e 6738 if (PyErr_Occurred()) return NULL;
ab9bc19b 6739} Py_INCREF(Py_None);
70551f47
RD
6740 _resultobj = Py_None;
6741{
6742 delete [] _arg2;
6743}
6744 return _resultobj;
6745}
6746
6747#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
107e4716 6748static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6749 PyObject * _resultobj;
6750 wxDC * _arg0;
6751 long _arg1;
6752 long _arg2;
2d091820 6753 PyObject * _argo0 = 0;
107e4716 6754 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6755
6756 self = self;
107e4716 6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6758 return NULL;
2d091820
RD
6759 if (_argo0) {
6760 if (_argo0 == Py_None) { _arg0 = NULL; }
6761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6763 return NULL;
6764 }
6765 }
ab9bc19b 6766{
474c48f9 6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6768 wxDC_DrawPoint(_arg0,_arg1,_arg2);
ab9bc19b 6769
474c48f9 6770 wxPyEndAllowThreads(__tstate);
4dfaa61e 6771 if (PyErr_Occurred()) return NULL;
ab9bc19b 6772} Py_INCREF(Py_None);
70551f47
RD
6773 _resultobj = Py_None;
6774 return _resultobj;
6775}
6776
6777#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6778static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6779 PyObject * _resultobj;
6780 wxDC * _arg0;
6781 long _arg1;
6782 long _arg2;
6783 long _arg3;
6784 long _arg4;
2d091820 6785 PyObject * _argo0 = 0;
107e4716 6786 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6787
6788 self = self;
107e4716 6789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6790 return NULL;
2d091820
RD
6791 if (_argo0) {
6792 if (_argo0 == Py_None) { _arg0 = NULL; }
6793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6795 return NULL;
6796 }
6797 }
ab9bc19b 6798{
474c48f9 6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6800 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6801
474c48f9 6802 wxPyEndAllowThreads(__tstate);
4dfaa61e 6803 if (PyErr_Occurred()) return NULL;
ab9bc19b 6804} Py_INCREF(Py_None);
70551f47
RD
6805 _resultobj = Py_None;
6806 return _resultobj;
6807}
6808
56f5d962
RD
6809#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6810static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6811 PyObject * _resultobj;
6812 wxDC * _arg0;
6813 wxString * _arg1;
6814 wxCoord _arg2;
6815 wxCoord _arg3;
6816 double _arg4;
6817 PyObject * _argo0 = 0;
6818 PyObject * _obj1 = 0;
6819 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6820
6821 self = self;
6822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6823 return NULL;
6824 if (_argo0) {
6825 if (_argo0 == Py_None) { _arg0 = NULL; }
6826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6828 return NULL;
6829 }
6830 }
6831{
c8bc7bb8
RD
6832 _arg1 = wxString_in_helper(_obj1);
6833 if (_arg1 == NULL)
2cd2fac8 6834 return NULL;
56f5d962
RD
6835}
6836{
474c48f9 6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6838 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
56f5d962 6839
474c48f9 6840 wxPyEndAllowThreads(__tstate);
4dfaa61e 6841 if (PyErr_Occurred()) return NULL;
56f5d962
RD
6842} Py_INCREF(Py_None);
6843 _resultobj = Py_None;
6844{
6845 if (_obj1)
6846 delete _arg1;
6847}
6848 return _resultobj;
6849}
6850
70551f47 6851#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6852static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6853 PyObject * _resultobj;
6854 wxDC * _arg0;
6855 long _arg1;
6856 long _arg2;
6857 long _arg3;
6858 long _arg4;
2d091820
RD
6859 long _arg5 = (long ) 20;
6860 PyObject * _argo0 = 0;
107e4716 6861 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
70551f47
RD
6862
6863 self = self;
107e4716 6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
70551f47 6865 return NULL;
2d091820
RD
6866 if (_argo0) {
6867 if (_argo0 == Py_None) { _arg0 = NULL; }
6868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6870 return NULL;
6871 }
6872 }
ab9bc19b 6873{
474c48f9 6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6875 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 6876
474c48f9 6877 wxPyEndAllowThreads(__tstate);
4dfaa61e 6878 if (PyErr_Occurred()) return NULL;
ab9bc19b 6879} Py_INCREF(Py_None);
70551f47
RD
6880 _resultobj = Py_None;
6881 return _resultobj;
6882}
6883
6884#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
107e4716 6885static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6886 PyObject * _resultobj;
6887 wxDC * _arg0;
6888 int _arg1;
6889 wxPoint * _arg2;
2d091820 6890 PyObject * _argo0 = 0;
1c09ae54 6891 int NPOINTS;
70551f47 6892 PyObject * _obj2 = 0;
e02c03a4 6893 char *_kwnames[] = { "self","points", NULL };
70551f47
RD
6894
6895 self = self;
107e4716 6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
70551f47 6897 return NULL;
2d091820
RD
6898 if (_argo0) {
6899 if (_argo0 == Py_None) { _arg0 = NULL; }
6900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6902 return NULL;
6903 }
6904 }
6905 if (_obj2)
6906{
1c09ae54
RD
6907 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6908 if (_arg2 == NULL) {
6909 return NULL;
6910 }
70551f47
RD
6911}
6912{
1c09ae54 6913 _arg1 = NPOINTS;
70551f47 6914}
ab9bc19b 6915{
474c48f9 6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6917 wxDC_DrawSpline(_arg0,_arg1,_arg2);
ab9bc19b 6918
474c48f9 6919 wxPyEndAllowThreads(__tstate);
4dfaa61e 6920 if (PyErr_Occurred()) return NULL;
ab9bc19b 6921} Py_INCREF(Py_None);
70551f47
RD
6922 _resultobj = Py_None;
6923{
6924 delete [] _arg2;
6925}
6926 return _resultobj;
6927}
6928
6929#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
107e4716 6930static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6931 PyObject * _resultobj;
6932 wxDC * _arg0;
6933 wxString * _arg1;
6934 long _arg2;
6935 long _arg3;
2d091820 6936 PyObject * _argo0 = 0;
70551f47 6937 PyObject * _obj1 = 0;
107e4716 6938 char *_kwnames[] = { "self","text","x","y", NULL };
70551f47
RD
6939
6940 self = self;
107e4716 6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
70551f47 6942 return NULL;
2d091820
RD
6943 if (_argo0) {
6944 if (_argo0 == Py_None) { _arg0 = NULL; }
6945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6947 return NULL;
6948 }
6949 }
6950{
c8bc7bb8
RD
6951 _arg1 = wxString_in_helper(_obj1);
6952 if (_arg1 == NULL)
70551f47 6953 return NULL;
70551f47 6954}
ab9bc19b 6955{
474c48f9 6956 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6957 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6958
474c48f9 6959 wxPyEndAllowThreads(__tstate);
4dfaa61e 6960 if (PyErr_Occurred()) return NULL;
ab9bc19b 6961} Py_INCREF(Py_None);
70551f47
RD
6962 _resultobj = Py_None;
6963{
6964 if (_obj1)
6965 delete _arg1;
6966}
6967 return _resultobj;
6968}
6969
6970#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
107e4716 6971static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6972 PyObject * _resultobj;
6973 wxDC * _arg0;
2d091820 6974 PyObject * _argo0 = 0;
107e4716 6975 char *_kwnames[] = { "self", NULL };
70551f47
RD
6976
6977 self = self;
107e4716 6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
70551f47 6979 return NULL;
2d091820
RD
6980 if (_argo0) {
6981 if (_argo0 == Py_None) { _arg0 = NULL; }
6982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6984 return NULL;
6985 }
6986 }
ab9bc19b 6987{
474c48f9 6988 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6989 wxDC_EndDoc(_arg0);
ab9bc19b 6990
474c48f9 6991 wxPyEndAllowThreads(__tstate);
4dfaa61e 6992 if (PyErr_Occurred()) return NULL;
ab9bc19b 6993} Py_INCREF(Py_None);
70551f47
RD
6994 _resultobj = Py_None;
6995 return _resultobj;
6996}
6997
6998#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
107e4716 6999static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7000 PyObject * _resultobj;
7001 wxDC * _arg0;
2d091820 7002 PyObject * _argo0 = 0;
107e4716 7003 char *_kwnames[] = { "self", NULL };
70551f47
RD
7004
7005 self = self;
107e4716 7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
70551f47 7007 return NULL;
2d091820
RD
7008 if (_argo0) {
7009 if (_argo0 == Py_None) { _arg0 = NULL; }
7010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7012 return NULL;
7013 }
7014 }
ab9bc19b 7015{
474c48f9 7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7017 wxDC_EndDrawing(_arg0);
ab9bc19b 7018
474c48f9 7019 wxPyEndAllowThreads(__tstate);
4dfaa61e 7020 if (PyErr_Occurred()) return NULL;
ab9bc19b 7021} Py_INCREF(Py_None);
70551f47
RD
7022 _resultobj = Py_None;
7023 return _resultobj;
7024}
7025
7026#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
107e4716 7027static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7028 PyObject * _resultobj;
7029 wxDC * _arg0;
2d091820 7030 PyObject * _argo0 = 0;
107e4716 7031 char *_kwnames[] = { "self", NULL };
70551f47
RD
7032
7033 self = self;
107e4716 7034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
70551f47 7035 return NULL;
2d091820
RD
7036 if (_argo0) {
7037 if (_argo0 == Py_None) { _arg0 = NULL; }
7038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7040 return NULL;
7041 }
7042 }
ab9bc19b 7043{
474c48f9 7044 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7045 wxDC_EndPage(_arg0);
ab9bc19b 7046
474c48f9 7047 wxPyEndAllowThreads(__tstate);
4dfaa61e 7048 if (PyErr_Occurred()) return NULL;
ab9bc19b 7049} Py_INCREF(Py_None);
70551f47
RD
7050 _resultobj = Py_None;
7051 return _resultobj;
7052}
7053
7054#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7055static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7056 PyObject * _resultobj;
7057 wxDC * _arg0;
7058 long _arg1;
7059 long _arg2;
7060 wxColour * _arg3;
2d091820
RD
7061 int _arg4 = (int ) wxFLOOD_SURFACE;
7062 PyObject * _argo0 = 0;
f6bcfd97
BP
7063 wxColour temp;
7064 PyObject * _obj3 = 0;
107e4716 7065 char *_kwnames[] = { "self","x","y","colour","style", NULL };
70551f47
RD
7066
7067 self = self;
f6bcfd97 7068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
70551f47 7069 return NULL;
2d091820
RD
7070 if (_argo0) {
7071 if (_argo0 == Py_None) { _arg0 = NULL; }
7072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7074 return NULL;
7075 }
7076 }
f6bcfd97
BP
7077{
7078 _arg3 = &temp;
7079 if (! wxColour_helper(_obj3, &_arg3))
70551f47 7080 return NULL;
f6bcfd97 7081}
ab9bc19b 7082{
474c48f9 7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7084 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
ab9bc19b 7085
474c48f9 7086 wxPyEndAllowThreads(__tstate);
4dfaa61e 7087 if (PyErr_Occurred()) return NULL;
ab9bc19b 7088} Py_INCREF(Py_None);
70551f47
RD
7089 _resultobj = Py_None;
7090 return _resultobj;
7091}
7092
7093#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
107e4716 7094static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7095 PyObject * _resultobj;
7096 wxBrush * _result;
7097 wxDC * _arg0;
2d091820 7098 PyObject * _argo0 = 0;
107e4716 7099 char *_kwnames[] = { "self", NULL };
70551f47
RD
7100 char _ptemp[128];
7101
7102 self = self;
107e4716 7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
70551f47 7104 return NULL;
2d091820
RD
7105 if (_argo0) {
7106 if (_argo0 == Py_None) { _arg0 = NULL; }
7107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7109 return NULL;
7110 }
7111 }
ab9bc19b 7112{
474c48f9 7113 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7114 _result = new wxBrush (wxDC_GetBackground(_arg0));
ab9bc19b 7115
474c48f9 7116 wxPyEndAllowThreads(__tstate);
4dfaa61e 7117 if (PyErr_Occurred()) return NULL;
3e212503
RD
7118} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7119 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7120 return _resultobj;
7121}
7122
7123#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
107e4716 7124static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7125 PyObject * _resultobj;
7126 wxBrush * _result;
7127 wxDC * _arg0;
2d091820 7128 PyObject * _argo0 = 0;
107e4716 7129 char *_kwnames[] = { "self", NULL };
70551f47
RD
7130 char _ptemp[128];
7131
7132 self = self;
107e4716 7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
70551f47 7134 return NULL;
2d091820
RD
7135 if (_argo0) {
7136 if (_argo0 == Py_None) { _arg0 = NULL; }
7137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7139 return NULL;
7140 }
7141 }
ab9bc19b 7142{
474c48f9 7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7144 _result = new wxBrush (wxDC_GetBrush(_arg0));
ab9bc19b 7145
474c48f9 7146 wxPyEndAllowThreads(__tstate);
4dfaa61e 7147 if (PyErr_Occurred()) return NULL;
3e212503
RD
7148} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7149 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7150 return _resultobj;
7151}
7152
7153#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
107e4716 7154static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7155 PyObject * _resultobj;
7156 long _result;
7157 wxDC * _arg0;
2d091820 7158 PyObject * _argo0 = 0;
107e4716 7159 char *_kwnames[] = { "self", NULL };
70551f47
RD
7160
7161 self = self;
107e4716 7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
70551f47 7163 return NULL;
2d091820
RD
7164 if (_argo0) {
7165 if (_argo0 == Py_None) { _arg0 = NULL; }
7166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7168 return NULL;
7169 }
7170 }
ab9bc19b 7171{
474c48f9 7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7173 _result = (long )wxDC_GetCharHeight(_arg0);
ab9bc19b 7174
474c48f9 7175 wxPyEndAllowThreads(__tstate);
4dfaa61e 7176 if (PyErr_Occurred()) return NULL;
ab9bc19b 7177} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7178 return _resultobj;
7179}
7180
7181#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
107e4716 7182static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7183 PyObject * _resultobj;
7184 long _result;
7185 wxDC * _arg0;
2d091820 7186 PyObject * _argo0 = 0;
107e4716 7187 char *_kwnames[] = { "self", NULL };
70551f47
RD
7188
7189 self = self;
107e4716 7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
70551f47 7191 return NULL;
2d091820
RD
7192 if (_argo0) {
7193 if (_argo0 == Py_None) { _arg0 = NULL; }
7194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7196 return NULL;
7197 }
7198 }
ab9bc19b 7199{
474c48f9 7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7201 _result = (long )wxDC_GetCharWidth(_arg0);
ab9bc19b 7202
474c48f9 7203 wxPyEndAllowThreads(__tstate);
4dfaa61e 7204 if (PyErr_Occurred()) return NULL;
ab9bc19b 7205} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7206 return _resultobj;
7207}
7208
7209#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7210static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7211 PyObject * _resultobj;
7212 wxDC * _arg0;
7213 long * _arg1;
7214 long temp;
7215 long * _arg2;
7216 long temp0;
7217 long * _arg3;
7218 long temp1;
7219 long * _arg4;
7220 long temp2;
2d091820 7221 PyObject * _argo0 = 0;
107e4716 7222 char *_kwnames[] = { "self", NULL };
70551f47
RD
7223
7224 self = self;
7225{
7226 _arg1 = &temp;
7227}
7228{
7229 _arg2 = &temp0;
7230}
7231{
7232 _arg3 = &temp1;
7233}
7234{
7235 _arg4 = &temp2;
7236}
107e4716 7237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
70551f47 7238 return NULL;
2d091820
RD
7239 if (_argo0) {
7240 if (_argo0 == Py_None) { _arg0 = NULL; }
7241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7243 return NULL;
7244 }
7245 }
ab9bc19b 7246{
474c48f9 7247 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7248 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 7249
474c48f9 7250 wxPyEndAllowThreads(__tstate);
4dfaa61e 7251 if (PyErr_Occurred()) return NULL;
ab9bc19b 7252} Py_INCREF(Py_None);
70551f47
RD
7253 _resultobj = Py_None;
7254{
7255 PyObject *o;
7256 o = PyInt_FromLong((long) (*_arg1));
7257 _resultobj = t_output_helper(_resultobj, o);
7258}
7259{
7260 PyObject *o;
7261 o = PyInt_FromLong((long) (*_arg2));
7262 _resultobj = t_output_helper(_resultobj, o);
7263}
7264{
7265 PyObject *o;
7266 o = PyInt_FromLong((long) (*_arg3));
7267 _resultobj = t_output_helper(_resultobj, o);
7268}
7269{
7270 PyObject *o;
7271 o = PyInt_FromLong((long) (*_arg4));
7272 _resultobj = t_output_helper(_resultobj, o);
7273}
7274 return _resultobj;
7275}
7276
7277#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
107e4716 7278static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7279 PyObject * _resultobj;
7280 wxFont * _result;
7281 wxDC * _arg0;
2d091820 7282 PyObject * _argo0 = 0;
107e4716 7283 char *_kwnames[] = { "self", NULL };
70551f47
RD
7284 char _ptemp[128];
7285
7286 self = self;
107e4716 7287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
70551f47 7288 return NULL;
2d091820
RD
7289 if (_argo0) {
7290 if (_argo0 == Py_None) { _arg0 = NULL; }
7291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7293 return NULL;
7294 }
7295 }
ab9bc19b 7296{
474c48f9 7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7298 _result = new wxFont (wxDC_GetFont(_arg0));
ab9bc19b 7299
474c48f9 7300 wxPyEndAllowThreads(__tstate);
4dfaa61e 7301 if (PyErr_Occurred()) return NULL;
3e212503
RD
7302} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7303 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7304 return _resultobj;
7305}
7306
7307#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
107e4716 7308static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7309 PyObject * _resultobj;
7310 int _result;
7311 wxDC * _arg0;
2d091820 7312 PyObject * _argo0 = 0;
107e4716 7313 char *_kwnames[] = { "self", NULL };
70551f47
RD
7314
7315 self = self;
107e4716 7316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
70551f47 7317 return NULL;
2d091820
RD
7318 if (_argo0) {
7319 if (_argo0 == Py_None) { _arg0 = NULL; }
7320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7322 return NULL;
7323 }
7324 }
ab9bc19b 7325{
474c48f9 7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7327 _result = (int )wxDC_GetLogicalFunction(_arg0);
ab9bc19b 7328
474c48f9 7329 wxPyEndAllowThreads(__tstate);
4dfaa61e 7330 if (PyErr_Occurred()) return NULL;
ab9bc19b 7331} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7332 return _resultobj;
7333}
7334
e02c03a4
RD
7335#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7336static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject * _resultobj;
7338 wxDC * _arg0;
7339 double * _arg1;
7340 double temp;
7341 double * _arg2;
7342 double temp0;
7343 PyObject * _argo0 = 0;
7344 char *_kwnames[] = { "self", NULL };
7345
7346 self = self;
7347{
7348 _arg1 = &temp;
7349}
7350{
7351 _arg2 = &temp0;
7352}
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7354 return NULL;
7355 if (_argo0) {
7356 if (_argo0 == Py_None) { _arg0 = NULL; }
7357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7359 return NULL;
7360 }
7361 }
7362{
474c48f9 7363 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7364 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 7365
474c48f9 7366 wxPyEndAllowThreads(__tstate);
4dfaa61e 7367 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7368} Py_INCREF(Py_None);
7369 _resultobj = Py_None;
7370{
7371 PyObject *o;
7372 o = PyFloat_FromDouble((double) (*_arg1));
7373 _resultobj = t_output_helper(_resultobj, o);
7374}
7375{
7376 PyObject *o;
7377 o = PyFloat_FromDouble((double) (*_arg2));
7378 _resultobj = t_output_helper(_resultobj, o);
7379}
7380 return _resultobj;
7381}
7382
70551f47 7383#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
107e4716 7384static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7385 PyObject * _resultobj;
7386 int _result;
7387 wxDC * _arg0;
2d091820 7388 PyObject * _argo0 = 0;
107e4716 7389 char *_kwnames[] = { "self", NULL };
70551f47
RD
7390
7391 self = self;
107e4716 7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
70551f47 7393 return NULL;
2d091820
RD
7394 if (_argo0) {
7395 if (_argo0 == Py_None) { _arg0 = NULL; }
7396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7398 return NULL;
7399 }
7400 }
ab9bc19b 7401{
474c48f9 7402 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7403 _result = (int )wxDC_GetMapMode(_arg0);
ab9bc19b 7404
474c48f9 7405 wxPyEndAllowThreads(__tstate);
4dfaa61e 7406 if (PyErr_Occurred()) return NULL;
ab9bc19b 7407} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7408 return _resultobj;
7409}
7410
7411#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
107e4716 7412static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7413 PyObject * _resultobj;
7414 bool _result;
7415 wxDC * _arg0;
2d091820 7416 PyObject * _argo0 = 0;
107e4716 7417 char *_kwnames[] = { "self", NULL };
70551f47
RD
7418
7419 self = self;
107e4716 7420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
70551f47 7421 return NULL;
2d091820
RD
7422 if (_argo0) {
7423 if (_argo0 == Py_None) { _arg0 = NULL; }
7424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7426 return NULL;
7427 }
7428 }
ab9bc19b 7429{
474c48f9 7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7431 _result = (bool )wxDC_GetOptimization(_arg0);
ab9bc19b 7432
474c48f9 7433 wxPyEndAllowThreads(__tstate);
4dfaa61e 7434 if (PyErr_Occurred()) return NULL;
ab9bc19b 7435} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7436 return _resultobj;
7437}
7438
7439#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
107e4716 7440static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7441 PyObject * _resultobj;
7442 wxPen * _result;
7443 wxDC * _arg0;
2d091820 7444 PyObject * _argo0 = 0;
107e4716 7445 char *_kwnames[] = { "self", NULL };
70551f47
RD
7446 char _ptemp[128];
7447
7448 self = self;
107e4716 7449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
70551f47 7450 return NULL;
2d091820
RD
7451 if (_argo0) {
7452 if (_argo0 == Py_None) { _arg0 = NULL; }
7453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7455 return NULL;
7456 }
7457 }
ab9bc19b 7458{
474c48f9 7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7460 _result = new wxPen (wxDC_GetPen(_arg0));
ab9bc19b 7461
474c48f9 7462 wxPyEndAllowThreads(__tstate);
4dfaa61e 7463 if (PyErr_Occurred()) return NULL;
3e212503
RD
7464} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7465 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7466 return _resultobj;
7467}
7468
7469static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7470 wxColour* wc = new wxColour();
7471 self->GetPixel(x, y, wc);
7472 return wc;
7473 }
107e4716 7474static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7475 PyObject * _resultobj;
7476 wxColour * _result;
7477 wxDC * _arg0;
7478 long _arg1;
7479 long _arg2;
2d091820 7480 PyObject * _argo0 = 0;
107e4716 7481 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
7482 char _ptemp[128];
7483
7484 self = self;
107e4716 7485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7486 return NULL;
2d091820
RD
7487 if (_argo0) {
7488 if (_argo0 == Py_None) { _arg0 = NULL; }
7489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7491 return NULL;
7492 }
7493 }
ab9bc19b 7494{
474c48f9 7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7496 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
ab9bc19b 7497
474c48f9 7498 wxPyEndAllowThreads(__tstate);
4dfaa61e 7499 if (PyErr_Occurred()) return NULL;
2d091820
RD
7500} if (_result) {
7501 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7502 _resultobj = Py_BuildValue("s",_ptemp);
7503 } else {
7504 Py_INCREF(Py_None);
7505 _resultobj = Py_None;
7506 }
70551f47
RD
7507 return _resultobj;
7508}
7509
d24a34bb 7510#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
107e4716 7511static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7512 PyObject * _resultobj;
7513 wxDC * _arg0;
7514 int * _arg1;
7515 int temp;
7516 int * _arg2;
7517 int temp0;
2d091820 7518 PyObject * _argo0 = 0;
107e4716 7519 char *_kwnames[] = { "self", NULL };
70551f47
RD
7520
7521 self = self;
7522{
7523 _arg1 = &temp;
7524}
7525{
7526 _arg2 = &temp0;
7527}
107e4716 7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
70551f47 7529 return NULL;
2d091820
RD
7530 if (_argo0) {
7531 if (_argo0 == Py_None) { _arg0 = NULL; }
7532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb 7533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
70551f47
RD
7534 return NULL;
7535 }
7536 }
ab9bc19b 7537{
474c48f9 7538 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7539 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
ab9bc19b 7540
474c48f9 7541 wxPyEndAllowThreads(__tstate);
4dfaa61e 7542 if (PyErr_Occurred()) return NULL;
ab9bc19b 7543} Py_INCREF(Py_None);
70551f47
RD
7544 _resultobj = Py_None;
7545{
7546 PyObject *o;
7547 o = PyInt_FromLong((long) (*_arg1));
7548 _resultobj = t_output_helper(_resultobj, o);
7549}
7550{
7551 PyObject *o;
7552 o = PyInt_FromLong((long) (*_arg2));
7553 _resultobj = t_output_helper(_resultobj, o);
7554}
7555 return _resultobj;
7556}
7557
d24a34bb 7558#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
107e4716 7559static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
7560 PyObject * _resultobj;
7561 wxSize * _result;
7562 wxDC * _arg0;
2d091820 7563 PyObject * _argo0 = 0;
107e4716 7564 char *_kwnames[] = { "self", NULL };
d24a34bb
RD
7565 char _ptemp[128];
7566
7567 self = self;
107e4716 7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
d24a34bb 7569 return NULL;
2d091820
RD
7570 if (_argo0) {
7571 if (_argo0 == Py_None) { _arg0 = NULL; }
7572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
7573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7574 return NULL;
7575 }
7576 }
7577{
474c48f9 7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7579 _result = new wxSize (wxDC_GetSize(_arg0));
d24a34bb 7580
474c48f9 7581 wxPyEndAllowThreads(__tstate);
4dfaa61e 7582 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
7583} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7584 _resultobj = Py_BuildValue("s",_ptemp);
7585 return _resultobj;
7586}
7587
e02c03a4
RD
7588#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7589static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7590 PyObject * _resultobj;
7591 wxSize * _result;
7592 wxDC * _arg0;
7593 PyObject * _argo0 = 0;
7594 char *_kwnames[] = { "self", NULL };
7595 char _ptemp[128];
7596
7597 self = self;
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7599 return NULL;
7600 if (_argo0) {
7601 if (_argo0 == Py_None) { _arg0 = NULL; }
7602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7604 return NULL;
7605 }
7606 }
7607{
474c48f9 7608 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7609 _result = new wxSize (wxDC_GetSizeMM(_arg0));
e02c03a4 7610
474c48f9 7611 wxPyEndAllowThreads(__tstate);
4dfaa61e 7612 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7613} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7614 _resultobj = Py_BuildValue("s",_ptemp);
7615 return _resultobj;
7616}
7617
70551f47 7618#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
107e4716 7619static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7620 PyObject * _resultobj;
7621 wxColour * _result;
7622 wxDC * _arg0;
2d091820 7623 PyObject * _argo0 = 0;
107e4716 7624 char *_kwnames[] = { "self", NULL };
70551f47
RD
7625 char _ptemp[128];
7626
7627 self = self;
107e4716 7628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
70551f47 7629 return NULL;
2d091820
RD
7630 if (_argo0) {
7631 if (_argo0 == Py_None) { _arg0 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7634 return NULL;
7635 }
7636 }
ab9bc19b 7637{
474c48f9 7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7639 _result = new wxColour (wxDC_GetTextBackground(_arg0));
ab9bc19b 7640
474c48f9 7641 wxPyEndAllowThreads(__tstate);
4dfaa61e 7642 if (PyErr_Occurred()) return NULL;
84a81942
RD
7643} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7644 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7645 return _resultobj;
7646}
7647
21f8d7ea 7648#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
107e4716 7649static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
7650 PyObject * _resultobj;
7651 wxDC * _arg0;
7652 wxString * _arg1;
7653 long * _arg2;
7654 long temp;
7655 long * _arg3;
7656 long temp0;
2d091820 7657 PyObject * _argo0 = 0;
21f8d7ea 7658 PyObject * _obj1 = 0;
107e4716 7659 char *_kwnames[] = { "self","string", NULL };
21f8d7ea
RD
7660
7661 self = self;
7662{
7663 _arg2 = &temp;
7664}
7665{
7666 _arg3 = &temp0;
7667}
107e4716 7668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
21f8d7ea 7669 return NULL;
2d091820
RD
7670 if (_argo0) {
7671 if (_argo0 == Py_None) { _arg0 = NULL; }
7672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea
RD
7673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7674 return NULL;
7675 }
7676 }
7677{
c8bc7bb8
RD
7678 _arg1 = wxString_in_helper(_obj1);
7679 if (_arg1 == NULL)
21f8d7ea 7680 return NULL;
21f8d7ea 7681}
ab9bc19b 7682{
474c48f9 7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7684 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 7685
474c48f9 7686 wxPyEndAllowThreads(__tstate);
4dfaa61e 7687 if (PyErr_Occurred()) return NULL;
ab9bc19b 7688} Py_INCREF(Py_None);
21f8d7ea
RD
7689 _resultobj = Py_None;
7690{
7691 PyObject *o;
7692 o = PyInt_FromLong((long) (*_arg2));
7693 _resultobj = t_output_helper(_resultobj, o);
7694}
7695{
7696 PyObject *o;
7697 o = PyInt_FromLong((long) (*_arg3));
7698 _resultobj = t_output_helper(_resultobj, o);
7699}
7700{
7701 if (_obj1)
7702 delete _arg1;
7703}
7704 return _resultobj;
7705}
7706
7707#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 7708static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7709 PyObject * _resultobj;
7710 wxDC * _arg0;
7711 wxString * _arg1;
7712 long * _arg2;
7713 long temp;
7714 long * _arg3;
7715 long temp0;
7716 long * _arg4;
7717 long temp1;
7718 long * _arg5;
7719 long temp2;
2d091820
RD
7720 wxFont * _arg6 = (wxFont *) NULL;
7721 PyObject * _argo0 = 0;
70551f47 7722 PyObject * _obj1 = 0;
2d091820 7723 PyObject * _argo6 = 0;
107e4716 7724 char *_kwnames[] = { "self","string","font", NULL };
70551f47
RD
7725
7726 self = self;
7727{
7728 _arg2 = &temp;
7729}
7730{
7731 _arg3 = &temp0;
7732}
7733{
7734 _arg4 = &temp1;
7735}
7736{
7737 _arg5 = &temp2;
7738}
107e4716 7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
70551f47 7740 return NULL;
2d091820
RD
7741 if (_argo0) {
7742 if (_argo0 == Py_None) { _arg0 = NULL; }
7743 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea 7744 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
70551f47
RD
7745 return NULL;
7746 }
7747 }
7748{
c8bc7bb8
RD
7749 _arg1 = wxString_in_helper(_obj1);
7750 if (_arg1 == NULL)
2cd2fac8 7751 return NULL;
70551f47 7752}
2d091820
RD
7753 if (_argo6) {
7754 if (_argo6 == Py_None) { _arg6 = NULL; }
7755 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
21f8d7ea
RD
7756 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7757 return NULL;
7758 }
7759 }
ab9bc19b 7760{
474c48f9 7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7762 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 7763
474c48f9 7764 wxPyEndAllowThreads(__tstate);
4dfaa61e 7765 if (PyErr_Occurred()) return NULL;
ab9bc19b 7766} Py_INCREF(Py_None);
70551f47
RD
7767 _resultobj = Py_None;
7768{
7769 PyObject *o;
7770 o = PyInt_FromLong((long) (*_arg2));
7771 _resultobj = t_output_helper(_resultobj, o);
7772}
7773{
7774 PyObject *o;
7775 o = PyInt_FromLong((long) (*_arg3));
7776 _resultobj = t_output_helper(_resultobj, o);
7777}
7778{
7779 PyObject *o;
7780 o = PyInt_FromLong((long) (*_arg4));
7781 _resultobj = t_output_helper(_resultobj, o);
7782}
7783{
7784 PyObject *o;
7785 o = PyInt_FromLong((long) (*_arg5));
7786 _resultobj = t_output_helper(_resultobj, o);
7787}
7788{
7789 if (_obj1)
7790 delete _arg1;
7791}
7792 return _resultobj;
7793}
7794
7795#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
107e4716 7796static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7797 PyObject * _resultobj;
7798 wxColour * _result;
7799 wxDC * _arg0;
2d091820 7800 PyObject * _argo0 = 0;
107e4716 7801 char *_kwnames[] = { "self", NULL };
70551f47
RD
7802 char _ptemp[128];
7803
7804 self = self;
107e4716 7805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
70551f47 7806 return NULL;
2d091820
RD
7807 if (_argo0) {
7808 if (_argo0 == Py_None) { _arg0 = NULL; }
7809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7811 return NULL;
7812 }
7813 }
ab9bc19b 7814{
474c48f9 7815 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7816 _result = new wxColour (wxDC_GetTextForeground(_arg0));
ab9bc19b 7817
474c48f9 7818 wxPyEndAllowThreads(__tstate);
4dfaa61e 7819 if (PyErr_Occurred()) return NULL;
84a81942
RD
7820} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7821 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7822 return _resultobj;
7823}
7824
e02c03a4
RD
7825#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7826static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject * _resultobj;
7828 wxDC * _arg0;
7829 double * _arg1;
7830 double temp;
7831 double * _arg2;
7832 double temp0;
7833 PyObject * _argo0 = 0;
7834 char *_kwnames[] = { "self", NULL };
7835
7836 self = self;
7837{
7838 _arg1 = &temp;
7839}
7840{
7841 _arg2 = &temp0;
7842}
7843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7844 return NULL;
7845 if (_argo0) {
7846 if (_argo0 == Py_None) { _arg0 = NULL; }
7847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7849 return NULL;
7850 }
7851 }
7852{
474c48f9 7853 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7854 wxDC_GetUserScale(_arg0,_arg1,_arg2);
e02c03a4 7855
474c48f9 7856 wxPyEndAllowThreads(__tstate);
4dfaa61e 7857 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7858} Py_INCREF(Py_None);
7859 _resultobj = Py_None;
7860{
7861 PyObject *o;
7862 o = PyFloat_FromDouble((double) (*_arg1));
7863 _resultobj = t_output_helper(_resultobj, o);
7864}
7865{
7866 PyObject *o;
7867 o = PyFloat_FromDouble((double) (*_arg2));
7868 _resultobj = t_output_helper(_resultobj, o);
7869}
7870 return _resultobj;
7871}
7872
70551f47 7873#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
107e4716 7874static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7875 PyObject * _resultobj;
7876 long _result;
7877 wxDC * _arg0;
7878 long _arg1;
2d091820 7879 PyObject * _argo0 = 0;
107e4716 7880 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7881
7882 self = self;
107e4716 7883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
70551f47 7884 return NULL;
2d091820
RD
7885 if (_argo0) {
7886 if (_argo0 == Py_None) { _arg0 = NULL; }
7887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7889 return NULL;
7890 }
7891 }
ab9bc19b 7892{
474c48f9 7893 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7894 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
ab9bc19b 7895
474c48f9 7896 wxPyEndAllowThreads(__tstate);
4dfaa61e 7897 if (PyErr_Occurred()) return NULL;
ab9bc19b 7898} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7899 return _resultobj;
7900}
7901
7902#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
107e4716 7903static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7904 PyObject * _resultobj;
7905 long _result;
7906 wxDC * _arg0;
7907 long _arg1;
2d091820 7908 PyObject * _argo0 = 0;
107e4716 7909 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7910
7911 self = self;
107e4716 7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
70551f47 7913 return NULL;
2d091820
RD
7914 if (_argo0) {
7915 if (_argo0 == Py_None) { _arg0 = NULL; }
7916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7918 return NULL;
7919 }
7920 }
ab9bc19b 7921{
474c48f9 7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7923 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
ab9bc19b 7924
474c48f9 7925 wxPyEndAllowThreads(__tstate);
4dfaa61e 7926 if (PyErr_Occurred()) return NULL;
ab9bc19b 7927} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7928 return _resultobj;
7929}
7930
7931#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
107e4716 7932static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7933 PyObject * _resultobj;
7934 long _result;
7935 wxDC * _arg0;
7936 long _arg1;
2d091820 7937 PyObject * _argo0 = 0;
107e4716 7938 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7939
7940 self = self;
107e4716 7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
70551f47 7942 return NULL;
2d091820
RD
7943 if (_argo0) {
7944 if (_argo0 == Py_None) { _arg0 = NULL; }
7945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7947 return NULL;
7948 }
7949 }
ab9bc19b 7950{
474c48f9 7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7952 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
ab9bc19b 7953
474c48f9 7954 wxPyEndAllowThreads(__tstate);
4dfaa61e 7955 if (PyErr_Occurred()) return NULL;
ab9bc19b 7956} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7957 return _resultobj;
7958}
7959
7960#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
107e4716 7961static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7962 PyObject * _resultobj;
7963 long _result;
7964 wxDC * _arg0;
7965 long _arg1;
2d091820 7966 PyObject * _argo0 = 0;
107e4716 7967 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7968
7969 self = self;
107e4716 7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
70551f47 7971 return NULL;
2d091820
RD
7972 if (_argo0) {
7973 if (_argo0 == Py_None) { _arg0 = NULL; }
7974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7976 return NULL;
7977 }
7978 }
ab9bc19b 7979{
474c48f9 7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7981 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
ab9bc19b 7982
474c48f9 7983 wxPyEndAllowThreads(__tstate);
4dfaa61e 7984 if (PyErr_Occurred()) return NULL;
ab9bc19b 7985} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7986 return _resultobj;
7987}
7988
7989#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
107e4716 7990static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7991 PyObject * _resultobj;
7992 long _result;
7993 wxDC * _arg0;
2d091820 7994 PyObject * _argo0 = 0;
107e4716 7995 char *_kwnames[] = { "self", NULL };
70551f47
RD
7996
7997 self = self;
107e4716 7998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
70551f47 7999 return NULL;
2d091820
RD
8000 if (_argo0) {
8001 if (_argo0 == Py_None) { _arg0 = NULL; }
8002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8004 return NULL;
8005 }
8006 }
ab9bc19b 8007{
474c48f9 8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8009 _result = (long )wxDC_MaxX(_arg0);
ab9bc19b 8010
474c48f9 8011 wxPyEndAllowThreads(__tstate);
4dfaa61e 8012 if (PyErr_Occurred()) return NULL;
ab9bc19b 8013} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8014 return _resultobj;
8015}
8016
8017#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
107e4716 8018static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8019 PyObject * _resultobj;
8020 long _result;
8021 wxDC * _arg0;
2d091820 8022 PyObject * _argo0 = 0;
107e4716 8023 char *_kwnames[] = { "self", NULL };
70551f47
RD
8024
8025 self = self;
107e4716 8026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
70551f47 8027 return NULL;
2d091820
RD
8028 if (_argo0) {
8029 if (_argo0 == Py_None) { _arg0 = NULL; }
8030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8032 return NULL;
8033 }
8034 }
ab9bc19b 8035{
474c48f9 8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8037 _result = (long )wxDC_MaxY(_arg0);
ab9bc19b 8038
474c48f9 8039 wxPyEndAllowThreads(__tstate);
4dfaa61e 8040 if (PyErr_Occurred()) return NULL;
ab9bc19b 8041} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8042 return _resultobj;
8043}
8044
8045#define wxDC_MinX(_swigobj) (_swigobj->MinX())
107e4716 8046static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8047 PyObject * _resultobj;
8048 long _result;
8049 wxDC * _arg0;
2d091820 8050 PyObject * _argo0 = 0;
107e4716 8051 char *_kwnames[] = { "self", NULL };
70551f47
RD
8052
8053 self = self;
107e4716 8054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
70551f47 8055 return NULL;
2d091820
RD
8056 if (_argo0) {
8057 if (_argo0 == Py_None) { _arg0 = NULL; }
8058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8060 return NULL;
8061 }
8062 }
ab9bc19b 8063{
474c48f9 8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8065 _result = (long )wxDC_MinX(_arg0);
ab9bc19b 8066
474c48f9 8067 wxPyEndAllowThreads(__tstate);
4dfaa61e 8068 if (PyErr_Occurred()) return NULL;
ab9bc19b 8069} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8070 return _resultobj;
8071}
8072
8073#define wxDC_MinY(_swigobj) (_swigobj->MinY())
107e4716 8074static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8075 PyObject * _resultobj;
8076 long _result;
8077 wxDC * _arg0;
2d091820 8078 PyObject * _argo0 = 0;
107e4716 8079 char *_kwnames[] = { "self", NULL };
70551f47
RD
8080
8081 self = self;
107e4716 8082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
70551f47 8083 return NULL;
2d091820
RD
8084 if (_argo0) {
8085 if (_argo0 == Py_None) { _arg0 = NULL; }
8086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8088 return NULL;
8089 }
8090 }
ab9bc19b 8091{
474c48f9 8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8093 _result = (long )wxDC_MinY(_arg0);
ab9bc19b 8094
474c48f9 8095 wxPyEndAllowThreads(__tstate);
4dfaa61e 8096 if (PyErr_Occurred()) return NULL;
ab9bc19b 8097} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8098 return _resultobj;
8099}
8100
8101#define wxDC_Ok(_swigobj) (_swigobj->Ok())
107e4716 8102static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8103 PyObject * _resultobj;
8104 bool _result;
8105 wxDC * _arg0;
2d091820 8106 PyObject * _argo0 = 0;
107e4716 8107 char *_kwnames[] = { "self", NULL };
70551f47
RD
8108
8109 self = self;
107e4716 8110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
70551f47 8111 return NULL;
2d091820
RD
8112 if (_argo0) {
8113 if (_argo0 == Py_None) { _arg0 = NULL; }
8114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8116 return NULL;
8117 }
8118 }
ab9bc19b 8119{
474c48f9 8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8121 _result = (bool )wxDC_Ok(_arg0);
ab9bc19b 8122
474c48f9 8123 wxPyEndAllowThreads(__tstate);
4dfaa61e 8124 if (PyErr_Occurred()) return NULL;
ab9bc19b 8125} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8126 return _resultobj;
8127}
8128
8129#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
107e4716 8130static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8131 PyObject * _resultobj;
8132 wxDC * _arg0;
8133 long _arg1;
8134 long _arg2;
2d091820 8135 PyObject * _argo0 = 0;
107e4716 8136 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
8137
8138 self = self;
107e4716 8139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8140 return NULL;
2d091820
RD
8141 if (_argo0) {
8142 if (_argo0 == Py_None) { _arg0 = NULL; }
8143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8145 return NULL;
8146 }
8147 }
ab9bc19b 8148{
474c48f9 8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8150 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
ab9bc19b 8151
474c48f9 8152 wxPyEndAllowThreads(__tstate);
4dfaa61e 8153 if (PyErr_Occurred()) return NULL;
ab9bc19b 8154} Py_INCREF(Py_None);
70551f47
RD
8155 _resultobj = Py_None;
8156 return _resultobj;
8157}
8158
8159#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
107e4716 8160static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8161 PyObject * _resultobj;
8162 wxDC * _arg0;
8163 wxBrush * _arg1;
2d091820
RD
8164 PyObject * _argo0 = 0;
8165 PyObject * _argo1 = 0;
107e4716 8166 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8167
8168 self = self;
107e4716 8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
70551f47 8170 return NULL;
2d091820
RD
8171 if (_argo0) {
8172 if (_argo0 == Py_None) { _arg0 = NULL; }
8173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8175 return NULL;
8176 }
8177 }
2d091820
RD
8178 if (_argo1) {
8179 if (_argo1 == Py_None) { _arg1 = NULL; }
8180 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8181 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8182 return NULL;
8183 }
8184 }
ab9bc19b 8185{
474c48f9 8186 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8187 wxDC_SetBackground(_arg0,*_arg1);
ab9bc19b 8188
474c48f9 8189 wxPyEndAllowThreads(__tstate);
4dfaa61e 8190 if (PyErr_Occurred()) return NULL;
ab9bc19b 8191} Py_INCREF(Py_None);
70551f47
RD
8192 _resultobj = Py_None;
8193 return _resultobj;
8194}
8195
8196#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
107e4716 8197static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8198 PyObject * _resultobj;
8199 wxDC * _arg0;
8200 int _arg1;
2d091820 8201 PyObject * _argo0 = 0;
107e4716 8202 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8203
8204 self = self;
107e4716 8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
70551f47 8206 return NULL;
2d091820
RD
8207 if (_argo0) {
8208 if (_argo0 == Py_None) { _arg0 = NULL; }
8209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8211 return NULL;
8212 }
8213 }
ab9bc19b 8214{
474c48f9 8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8216 wxDC_SetBackgroundMode(_arg0,_arg1);
ab9bc19b 8217
474c48f9 8218 wxPyEndAllowThreads(__tstate);
4dfaa61e 8219 if (PyErr_Occurred()) return NULL;
ab9bc19b 8220} Py_INCREF(Py_None);
70551f47
RD
8221 _resultobj = Py_None;
8222 return _resultobj;
8223}
8224
8225#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8226static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8227 PyObject * _resultobj;
8228 wxDC * _arg0;
8229 long _arg1;
8230 long _arg2;
8231 long _arg3;
8232 long _arg4;
2d091820 8233 PyObject * _argo0 = 0;
107e4716 8234 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
8235
8236 self = self;
107e4716 8237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 8238 return NULL;
2d091820
RD
8239 if (_argo0) {
8240 if (_argo0 == Py_None) { _arg0 = NULL; }
8241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8243 return NULL;
8244 }
8245 }
ab9bc19b 8246{
474c48f9 8247 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8248 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 8249
474c48f9 8250 wxPyEndAllowThreads(__tstate);
4dfaa61e 8251 if (PyErr_Occurred()) return NULL;
ab9bc19b 8252} Py_INCREF(Py_None);
70551f47
RD
8253 _resultobj = Py_None;
8254 return _resultobj;
8255}
8256
059a841c
RD
8257#define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8258static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject * _resultobj;
8260 wxDC * _arg0;
8261 wxRegion * _arg1;
8262 PyObject * _argo0 = 0;
8263 PyObject * _argo1 = 0;
8264 char *_kwnames[] = { "self","region", NULL };
8265
8266 self = self;
8267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8268 return NULL;
8269 if (_argo0) {
8270 if (_argo0 == Py_None) { _arg0 = NULL; }
8271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8273 return NULL;
8274 }
8275 }
8276 if (_argo1) {
8277 if (_argo1 == Py_None) { _arg1 = NULL; }
8278 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8279 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8280 return NULL;
8281 }
8282 }
8283{
474c48f9 8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8285 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
059a841c 8286
474c48f9 8287 wxPyEndAllowThreads(__tstate);
059a841c
RD
8288 if (PyErr_Occurred()) return NULL;
8289} Py_INCREF(Py_None);
8290 _resultobj = Py_None;
8291 return _resultobj;
8292}
8293
70551f47 8294#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
107e4716 8295static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8296 PyObject * _resultobj;
8297 wxDC * _arg0;
8298 wxPalette * _arg1;
2d091820
RD
8299 PyObject * _argo0 = 0;
8300 PyObject * _argo1 = 0;
107e4716 8301 char *_kwnames[] = { "self","colourMap", NULL };
70551f47
RD
8302
8303 self = self;
107e4716 8304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
70551f47 8305 return NULL;
2d091820
RD
8306 if (_argo0) {
8307 if (_argo0 == Py_None) { _arg0 = NULL; }
8308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8310 return NULL;
8311 }
8312 }
2d091820
RD
8313 if (_argo1) {
8314 if (_argo1 == Py_None) { _arg1 = NULL; }
8315 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
70551f47
RD
8316 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8317 return NULL;
8318 }
8319 }
ab9bc19b 8320{
474c48f9 8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8322 wxDC_SetPalette(_arg0,*_arg1);
ab9bc19b 8323
474c48f9 8324 wxPyEndAllowThreads(__tstate);
4dfaa61e 8325 if (PyErr_Occurred()) return NULL;
ab9bc19b 8326} Py_INCREF(Py_None);
70551f47
RD
8327 _resultobj = Py_None;
8328 return _resultobj;
8329}
8330
8331#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
107e4716 8332static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8333 PyObject * _resultobj;
8334 wxDC * _arg0;
8335 wxBrush * _arg1;
2d091820
RD
8336 PyObject * _argo0 = 0;
8337 PyObject * _argo1 = 0;
107e4716 8338 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8339
8340 self = self;
107e4716 8341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
70551f47 8342 return NULL;
2d091820
RD
8343 if (_argo0) {
8344 if (_argo0 == Py_None) { _arg0 = NULL; }
8345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8347 return NULL;
8348 }
8349 }
2d091820
RD
8350 if (_argo1) {
8351 if (_argo1 == Py_None) { _arg1 = NULL; }
8352 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8353 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8354 return NULL;
8355 }
8356 }
ab9bc19b 8357{
474c48f9 8358 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8359 wxDC_SetBrush(_arg0,*_arg1);
ab9bc19b 8360
474c48f9 8361 wxPyEndAllowThreads(__tstate);
4dfaa61e 8362 if (PyErr_Occurred()) return NULL;
ab9bc19b 8363} Py_INCREF(Py_None);
70551f47
RD
8364 _resultobj = Py_None;
8365 return _resultobj;
8366}
8367
8368#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
107e4716 8369static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8370 PyObject * _resultobj;
8371 wxDC * _arg0;
8372 wxFont * _arg1;
2d091820
RD
8373 PyObject * _argo0 = 0;
8374 PyObject * _argo1 = 0;
107e4716 8375 char *_kwnames[] = { "self","font", NULL };
70551f47
RD
8376
8377 self = self;
107e4716 8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
70551f47 8379 return NULL;
2d091820
RD
8380 if (_argo0) {
8381 if (_argo0 == Py_None) { _arg0 = NULL; }
8382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8384 return NULL;
8385 }
8386 }
2d091820
RD
8387 if (_argo1) {
8388 if (_argo1 == Py_None) { _arg1 = NULL; }
8389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
70551f47
RD
8390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8391 return NULL;
8392 }
8393 }
ab9bc19b 8394{
474c48f9 8395 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8396 wxDC_SetFont(_arg0,*_arg1);
ab9bc19b 8397
474c48f9 8398 wxPyEndAllowThreads(__tstate);
4dfaa61e 8399 if (PyErr_Occurred()) return NULL;
ab9bc19b 8400} Py_INCREF(Py_None);
70551f47
RD
8401 _resultobj = Py_None;
8402 return _resultobj;
8403}
8404
8405#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
107e4716 8406static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8407 PyObject * _resultobj;
8408 wxDC * _arg0;
8409 int _arg1;
2d091820 8410 PyObject * _argo0 = 0;
107e4716 8411 char *_kwnames[] = { "self","function", NULL };
70551f47
RD
8412
8413 self = self;
107e4716 8414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
70551f47 8415 return NULL;
2d091820
RD
8416 if (_argo0) {
8417 if (_argo0 == Py_None) { _arg0 = NULL; }
8418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8420 return NULL;
8421 }
8422 }
ab9bc19b 8423{
474c48f9 8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8425 wxDC_SetLogicalFunction(_arg0,_arg1);
ab9bc19b 8426
474c48f9 8427 wxPyEndAllowThreads(__tstate);
4dfaa61e 8428 if (PyErr_Occurred()) return NULL;
ab9bc19b 8429} Py_INCREF(Py_None);
70551f47
RD
8430 _resultobj = Py_None;
8431 return _resultobj;
8432}
8433
e02c03a4
RD
8434#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8435static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject * _resultobj;
8437 wxDC * _arg0;
8438 double _arg1;
8439 double _arg2;
8440 PyObject * _argo0 = 0;
8441 char *_kwnames[] = { "self","x","y", NULL };
8442
8443 self = self;
8444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8445 return NULL;
8446 if (_argo0) {
8447 if (_argo0 == Py_None) { _arg0 = NULL; }
8448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8450 return NULL;
8451 }
8452 }
8453{
474c48f9 8454 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8455 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 8456
474c48f9 8457 wxPyEndAllowThreads(__tstate);
4dfaa61e 8458 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8459} Py_INCREF(Py_None);
8460 _resultobj = Py_None;
8461 return _resultobj;
8462}
8463
70551f47 8464#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
107e4716 8465static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8466 PyObject * _resultobj;
8467 wxDC * _arg0;
8468 int _arg1;
2d091820 8469 PyObject * _argo0 = 0;
107e4716 8470 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8471
8472 self = self;
107e4716 8473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
70551f47 8474 return NULL;
2d091820
RD
8475 if (_argo0) {
8476 if (_argo0 == Py_None) { _arg0 = NULL; }
8477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8479 return NULL;
8480 }
8481 }
ab9bc19b 8482{
474c48f9 8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8484 wxDC_SetMapMode(_arg0,_arg1);
ab9bc19b 8485
474c48f9 8486 wxPyEndAllowThreads(__tstate);
4dfaa61e 8487 if (PyErr_Occurred()) return NULL;
ab9bc19b 8488} Py_INCREF(Py_None);
70551f47
RD
8489 _resultobj = Py_None;
8490 return _resultobj;
8491}
8492
8493#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
107e4716 8494static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8495 PyObject * _resultobj;
8496 wxDC * _arg0;
8497 bool _arg1;
2d091820 8498 PyObject * _argo0 = 0;
70551f47 8499 int tempbool1;
107e4716 8500 char *_kwnames[] = { "self","optimize", NULL };
70551f47
RD
8501
8502 self = self;
107e4716 8503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
70551f47 8504 return NULL;
2d091820
RD
8505 if (_argo0) {
8506 if (_argo0 == Py_None) { _arg0 = NULL; }
8507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8509 return NULL;
8510 }
8511 }
8512 _arg1 = (bool ) tempbool1;
ab9bc19b 8513{
474c48f9 8514 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8515 wxDC_SetOptimization(_arg0,_arg1);
ab9bc19b 8516
474c48f9 8517 wxPyEndAllowThreads(__tstate);
4dfaa61e 8518 if (PyErr_Occurred()) return NULL;
ab9bc19b 8519} Py_INCREF(Py_None);
70551f47
RD
8520 _resultobj = Py_None;
8521 return _resultobj;
8522}
8523
8524#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
107e4716 8525static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8526 PyObject * _resultobj;
8527 wxDC * _arg0;
8528 wxPen * _arg1;
2d091820
RD
8529 PyObject * _argo0 = 0;
8530 PyObject * _argo1 = 0;
107e4716 8531 char *_kwnames[] = { "self","pen", NULL };
70551f47
RD
8532
8533 self = self;
107e4716 8534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
70551f47 8535 return NULL;
2d091820
RD
8536 if (_argo0) {
8537 if (_argo0 == Py_None) { _arg0 = NULL; }
8538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8540 return NULL;
8541 }
8542 }
2d091820
RD
8543 if (_argo1) {
8544 if (_argo1 == Py_None) { _arg1 = NULL; }
8545 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
70551f47
RD
8546 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8547 return NULL;
8548 }
8549 }
ab9bc19b 8550{
474c48f9 8551 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8552 wxDC_SetPen(_arg0,*_arg1);
ab9bc19b 8553
474c48f9 8554 wxPyEndAllowThreads(__tstate);
4dfaa61e 8555 if (PyErr_Occurred()) return NULL;
ab9bc19b 8556} Py_INCREF(Py_None);
70551f47
RD
8557 _resultobj = Py_None;
8558 return _resultobj;
8559}
8560
8561#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
107e4716 8562static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8563 PyObject * _resultobj;
8564 wxDC * _arg0;
8565 wxColour * _arg1;
2d091820 8566 PyObject * _argo0 = 0;
f6bcfd97
BP
8567 wxColour temp;
8568 PyObject * _obj1 = 0;
107e4716 8569 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8570
8571 self = self;
f6bcfd97 8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
70551f47 8573 return NULL;
2d091820
RD
8574 if (_argo0) {
8575 if (_argo0 == Py_None) { _arg0 = NULL; }
8576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8578 return NULL;
8579 }
8580 }
f6bcfd97
BP
8581{
8582 _arg1 = &temp;
8583 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8584 return NULL;
f6bcfd97 8585}
ab9bc19b 8586{
474c48f9 8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8588 wxDC_SetTextBackground(_arg0,*_arg1);
ab9bc19b 8589
474c48f9 8590 wxPyEndAllowThreads(__tstate);
4dfaa61e 8591 if (PyErr_Occurred()) return NULL;
ab9bc19b 8592} Py_INCREF(Py_None);
70551f47
RD
8593 _resultobj = Py_None;
8594 return _resultobj;
8595}
8596
8597#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
107e4716 8598static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8599 PyObject * _resultobj;
8600 wxDC * _arg0;
8601 wxColour * _arg1;
2d091820 8602 PyObject * _argo0 = 0;
f6bcfd97
BP
8603 wxColour temp;
8604 PyObject * _obj1 = 0;
107e4716 8605 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8606
8607 self = self;
f6bcfd97 8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
70551f47 8609 return NULL;
2d091820
RD
8610 if (_argo0) {
8611 if (_argo0 == Py_None) { _arg0 = NULL; }
8612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8614 return NULL;
8615 }
8616 }
f6bcfd97
BP
8617{
8618 _arg1 = &temp;
8619 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8620 return NULL;
f6bcfd97 8621}
ab9bc19b 8622{
474c48f9 8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8624 wxDC_SetTextForeground(_arg0,*_arg1);
ab9bc19b 8625
474c48f9 8626 wxPyEndAllowThreads(__tstate);
4dfaa61e 8627 if (PyErr_Occurred()) return NULL;
ab9bc19b 8628} Py_INCREF(Py_None);
70551f47
RD
8629 _resultobj = Py_None;
8630 return _resultobj;
8631}
8632
8633#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
107e4716 8634static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8635 PyObject * _resultobj;
8636 wxDC * _arg0;
8637 double _arg1;
8638 double _arg2;
2d091820 8639 PyObject * _argo0 = 0;
107e4716 8640 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
70551f47
RD
8641
8642 self = self;
107e4716 8643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8644 return NULL;
2d091820
RD
8645 if (_argo0) {
8646 if (_argo0 == Py_None) { _arg0 = NULL; }
8647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8649 return NULL;
8650 }
8651 }
ab9bc19b 8652{
474c48f9 8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8654 wxDC_SetUserScale(_arg0,_arg1,_arg2);
ab9bc19b 8655
474c48f9 8656 wxPyEndAllowThreads(__tstate);
4dfaa61e 8657 if (PyErr_Occurred()) return NULL;
ab9bc19b 8658} Py_INCREF(Py_None);
70551f47
RD
8659 _resultobj = Py_None;
8660 return _resultobj;
8661}
8662
8663#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
107e4716 8664static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8665 PyObject * _resultobj;
8666 bool _result;
8667 wxDC * _arg0;
8668 wxString * _arg1;
2d091820 8669 PyObject * _argo0 = 0;
70551f47 8670 PyObject * _obj1 = 0;
107e4716 8671 char *_kwnames[] = { "self","message", NULL };
70551f47
RD
8672
8673 self = self;
107e4716 8674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
70551f47 8675 return NULL;
2d091820
RD
8676 if (_argo0) {
8677 if (_argo0 == Py_None) { _arg0 = NULL; }
8678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8680 return NULL;
8681 }
8682 }
8683{
c8bc7bb8
RD
8684 _arg1 = wxString_in_helper(_obj1);
8685 if (_arg1 == NULL)
2cd2fac8 8686 return NULL;
70551f47 8687}
ab9bc19b 8688{
474c48f9 8689 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8690 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
ab9bc19b 8691
474c48f9 8692 wxPyEndAllowThreads(__tstate);
4dfaa61e 8693 if (PyErr_Occurred()) return NULL;
ab9bc19b 8694} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8695{
8696 if (_obj1)
8697 delete _arg1;
8698}
8699 return _resultobj;
8700}
8701
8702#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
107e4716 8703static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8704 PyObject * _resultobj;
8705 wxDC * _arg0;
2d091820 8706 PyObject * _argo0 = 0;
107e4716 8707 char *_kwnames[] = { "self", NULL };
70551f47
RD
8708
8709 self = self;
107e4716 8710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
70551f47 8711 return NULL;
2d091820
RD
8712 if (_argo0) {
8713 if (_argo0 == Py_None) { _arg0 = NULL; }
8714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8716 return NULL;
8717 }
8718 }
ab9bc19b 8719{
474c48f9 8720 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8721 wxDC_StartPage(_arg0);
ab9bc19b 8722
474c48f9 8723 wxPyEndAllowThreads(__tstate);
4dfaa61e 8724 if (PyErr_Occurred()) return NULL;
ab9bc19b 8725} Py_INCREF(Py_None);
70551f47
RD
8726 _resultobj = Py_None;
8727 return _resultobj;
8728}
8729
107e4716
RD
8730#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8731static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8732 PyObject * _resultobj;
8733 wxDC * _arg0;
8734 wxBitmap * _arg1;
8735 long _arg2;
8736 long _arg3;
107e4716 8737 int _arg4 = (int ) FALSE;
2d091820
RD
8738 PyObject * _argo0 = 0;
8739 PyObject * _argo1 = 0;
107e4716 8740 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
70551f47
RD
8741
8742 self = self;
107e4716 8743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
70551f47 8744 return NULL;
2d091820
RD
8745 if (_argo0) {
8746 if (_argo0 == Py_None) { _arg0 = NULL; }
8747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8749 return NULL;
8750 }
8751 }
2d091820
RD
8752 if (_argo1) {
8753 if (_argo1 == Py_None) { _arg1 = NULL; }
8754 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
8755 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8756 return NULL;
8757 }
8758 }
ab9bc19b 8759{
474c48f9 8760 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8761 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
ab9bc19b 8762
474c48f9 8763 wxPyEndAllowThreads(__tstate);
4dfaa61e 8764 if (PyErr_Occurred()) return NULL;
ab9bc19b 8765} Py_INCREF(Py_None);
70551f47
RD
8766 _resultobj = Py_None;
8767 return _resultobj;
8768}
8769
e02c03a4
RD
8770#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8771static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject * _resultobj;
8773 bool _result;
8774 wxDC * _arg0;
8775 PyObject * _argo0 = 0;
8776 char *_kwnames[] = { "self", NULL };
8777
8778 self = self;
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8780 return NULL;
8781 if (_argo0) {
8782 if (_argo0 == Py_None) { _arg0 = NULL; }
8783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8785 return NULL;
8786 }
8787 }
8788{
474c48f9 8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8790 _result = (bool )wxDC_CanDrawBitmap(_arg0);
e02c03a4 8791
474c48f9 8792 wxPyEndAllowThreads(__tstate);
4dfaa61e 8793 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8794} _resultobj = Py_BuildValue("i",_result);
8795 return _resultobj;
8796}
8797
8798#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8799static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8800 PyObject * _resultobj;
8801 bool _result;
8802 wxDC * _arg0;
8803 PyObject * _argo0 = 0;
8804 char *_kwnames[] = { "self", NULL };
8805
8806 self = self;
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8808 return NULL;
8809 if (_argo0) {
8810 if (_argo0 == Py_None) { _arg0 = NULL; }
8811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8813 return NULL;
8814 }
8815 }
8816{
474c48f9 8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8818 _result = (bool )wxDC_CanGetTextExtent(_arg0);
e02c03a4 8819
474c48f9 8820 wxPyEndAllowThreads(__tstate);
4dfaa61e 8821 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8822} _resultobj = Py_BuildValue("i",_result);
8823 return _resultobj;
8824}
8825
8826#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8827static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8828 PyObject * _resultobj;
8829 int _result;
8830 wxDC * _arg0;
8831 PyObject * _argo0 = 0;
8832 char *_kwnames[] = { "self", NULL };
8833
8834 self = self;
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8836 return NULL;
8837 if (_argo0) {
8838 if (_argo0 == Py_None) { _arg0 = NULL; }
8839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8841 return NULL;
8842 }
8843 }
8844{
474c48f9 8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8846 _result = (int )wxDC_GetDepth(_arg0);
e02c03a4 8847
474c48f9 8848 wxPyEndAllowThreads(__tstate);
4dfaa61e 8849 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8850} _resultobj = Py_BuildValue("i",_result);
8851 return _resultobj;
8852}
8853
8854#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8855static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8856 PyObject * _resultobj;
8857 wxSize * _result;
8858 wxDC * _arg0;
8859 PyObject * _argo0 = 0;
8860 char *_kwnames[] = { "self", NULL };
8861 char _ptemp[128];
8862
8863 self = self;
8864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8865 return NULL;
8866 if (_argo0) {
8867 if (_argo0 == Py_None) { _arg0 = NULL; }
8868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8870 return NULL;
8871 }
8872 }
8873{
474c48f9 8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8875 _result = new wxSize (wxDC_GetPPI(_arg0));
e02c03a4 8876
474c48f9 8877 wxPyEndAllowThreads(__tstate);
4dfaa61e 8878 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8879} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8880 _resultobj = Py_BuildValue("s",_ptemp);
8881 return _resultobj;
8882}
8883
8884#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8885static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8886 PyObject * _resultobj;
8887 wxDC * _arg0;
8888 int * _arg1;
8889 int temp;
8890 int * _arg2;
8891 int temp0;
8892 PyObject * _argo0 = 0;
8893 char *_kwnames[] = { "self", NULL };
8894
8895 self = self;
8896{
8897 _arg1 = &temp;
8898}
8899{
8900 _arg2 = &temp0;
8901}
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8903 return NULL;
8904 if (_argo0) {
8905 if (_argo0 == Py_None) { _arg0 = NULL; }
8906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8908 return NULL;
8909 }
8910 }
8911{
474c48f9 8912 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8913 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8914
474c48f9 8915 wxPyEndAllowThreads(__tstate);
4dfaa61e 8916 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8917} Py_INCREF(Py_None);
8918 _resultobj = Py_None;
8919{
8920 PyObject *o;
8921 o = PyInt_FromLong((long) (*_arg1));
8922 _resultobj = t_output_helper(_resultobj, o);
8923}
8924{
8925 PyObject *o;
8926 o = PyInt_FromLong((long) (*_arg2));
8927 _resultobj = t_output_helper(_resultobj, o);
8928}
8929 return _resultobj;
8930}
8931
8932#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8933static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8934 PyObject * _resultobj;
8935 wxDC * _arg0;
8936 int _arg1;
8937 int _arg2;
8938 PyObject * _argo0 = 0;
8939 char *_kwnames[] = { "self","x","y", NULL };
8940
8941 self = self;
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8943 return NULL;
8944 if (_argo0) {
8945 if (_argo0 == Py_None) { _arg0 = NULL; }
8946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8948 return NULL;
8949 }
8950 }
8951{
474c48f9 8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8953 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8954
474c48f9 8955 wxPyEndAllowThreads(__tstate);
4dfaa61e 8956 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8957} Py_INCREF(Py_None);
8958 _resultobj = Py_None;
8959 return _resultobj;
8960}
8961
8962#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8963static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject * _resultobj;
8965 wxDC * _arg0;
8966 int * _arg1;
8967 int temp;
8968 int * _arg2;
8969 int temp0;
8970 PyObject * _argo0 = 0;
8971 char *_kwnames[] = { "self", NULL };
8972
8973 self = self;
8974{
8975 _arg1 = &temp;
8976}
8977{
8978 _arg2 = &temp0;
8979}
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8981 return NULL;
8982 if (_argo0) {
8983 if (_argo0 == Py_None) { _arg0 = NULL; }
8984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8986 return NULL;
8987 }
8988 }
8989{
474c48f9 8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8991 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
e02c03a4 8992
474c48f9 8993 wxPyEndAllowThreads(__tstate);
4dfaa61e 8994 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8995} Py_INCREF(Py_None);
8996 _resultobj = Py_None;
8997{
8998 PyObject *o;
8999 o = PyInt_FromLong((long) (*_arg1));
9000 _resultobj = t_output_helper(_resultobj, o);
9001}
9002{
9003 PyObject *o;
9004 o = PyInt_FromLong((long) (*_arg2));
9005 _resultobj = t_output_helper(_resultobj, o);
9006}
9007 return _resultobj;
9008}
9009
9010#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9011static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9012 PyObject * _resultobj;
9013 wxDC * _arg0;
9014 bool _arg1;
9015 bool _arg2;
9016 PyObject * _argo0 = 0;
9017 int tempbool1;
9018 int tempbool2;
9019 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9020
9021 self = self;
9022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9023 return NULL;
9024 if (_argo0) {
9025 if (_argo0 == Py_None) { _arg0 = NULL; }
9026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9028 return NULL;
9029 }
9030 }
9031 _arg1 = (bool ) tempbool1;
9032 _arg2 = (bool ) tempbool2;
9033{
474c48f9 9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9035 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
e02c03a4 9036
474c48f9 9037 wxPyEndAllowThreads(__tstate);
4dfaa61e 9038 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
9039} Py_INCREF(Py_None);
9040 _resultobj = Py_None;
9041 return _resultobj;
9042}
9043
f6bcfd97
BP
9044#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9045static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9046 PyObject * _resultobj;
9047 wxDC * _arg0;
9048 int _arg1;
9049 int _arg2;
9050 PyObject * _argo0 = 0;
9051 char *_kwnames[] = { "self","x","y", NULL };
9052
9053 self = self;
9054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9055 return NULL;
9056 if (_argo0) {
9057 if (_argo0 == Py_None) { _arg0 = NULL; }
9058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9060 return NULL;
9061 }
9062 }
9063{
474c48f9 9064 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9065 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
f6bcfd97 9066
474c48f9 9067 wxPyEndAllowThreads(__tstate);
4dfaa61e 9068 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9069} Py_INCREF(Py_None);
9070 _resultobj = Py_None;
9071 return _resultobj;
9072}
9073
9074#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9075static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject * _resultobj;
9077 wxDC * _arg0;
9078 PyObject * _argo0 = 0;
9079 char *_kwnames[] = { "self", NULL };
9080
9081 self = self;
9082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9083 return NULL;
9084 if (_argo0) {
9085 if (_argo0 == Py_None) { _arg0 = NULL; }
9086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9088 return NULL;
9089 }
9090 }
9091{
474c48f9 9092 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9093 wxDC_ResetBoundingBox(_arg0);
f6bcfd97 9094
474c48f9 9095 wxPyEndAllowThreads(__tstate);
4dfaa61e 9096 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9097} Py_INCREF(Py_None);
9098 _resultobj = Py_None;
9099 return _resultobj;
9100}
9101
3bcd5e1c
RD
9102static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject * _resultobj;
9104 wxDC * _arg0;
9105 int * _arg1;
9106 int temp;
9107 int * _arg2;
9108 int temp0;
9109 int * _arg3;
9110 int temp1;
9111 int * _arg4;
9112 int temp2;
9113 PyObject * _argo0 = 0;
9114 char *_kwnames[] = { "self", NULL };
9115
9116 self = self;
9117{
9118 _arg1 = &temp;
9119}
9120{
9121 _arg2 = &temp0;
9122}
9123{
9124 _arg3 = &temp1;
9125}
9126{
9127 _arg4 = &temp2;
9128}
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9130 return NULL;
9131 if (_argo0) {
9132 if (_argo0 == Py_None) { _arg0 = NULL; }
9133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9135 return NULL;
9136 }
9137 }
9138{
474c48f9 9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9140 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
3bcd5e1c 9141
474c48f9 9142 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9143 if (PyErr_Occurred()) return NULL;
9144} Py_INCREF(Py_None);
9145 _resultobj = Py_None;
9146{
9147 PyObject *o;
9148 o = PyInt_FromLong((long) (*_arg1));
9149 _resultobj = t_output_helper(_resultobj, o);
9150}
9151{
9152 PyObject *o;
9153 o = PyInt_FromLong((long) (*_arg2));
9154 _resultobj = t_output_helper(_resultobj, o);
9155}
9156{
9157 PyObject *o;
9158 o = PyInt_FromLong((long) (*_arg3));
9159 _resultobj = t_output_helper(_resultobj, o);
9160}
9161{
9162 PyObject *o;
9163 o = PyInt_FromLong((long) (*_arg4));
9164 _resultobj = t_output_helper(_resultobj, o);
9165}
9166 return _resultobj;
9167}
9168
9169static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9170 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9171 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9172 int numObjs = 0;
9173 int numPens = 0;
9174 wxPen* pen;
9175 PyObject* obj;
9176 int x1, y1;
9177 int i = 0;
9178
9179 if (!PySequence_Check(pyPoints)) {
9180 goto err0;
9181 }
9182 if (!PySequence_Check(pyPens)) {
9183 goto err1;
9184 }
9185 numObjs = PySequence_Length(pyPoints);
9186 numPens = PySequence_Length(pyPens);
9187
9188 for (i = 0; i < numObjs; i++) {
9189 // Use a new pen?
9190 if (i < numPens) {
9191 if (isFastPens) {
9192 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9193 }
9194 else {
9195 obj = PySequence_GetItem(pyPens, i);
9196 }
9197 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9198 if (!isFastPens)
9199 Py_DECREF(obj);
9200 goto err1;
9201 }
9202
9203 self->SetPen(*pen);
9204 if (!isFastPens)
9205 Py_DECREF(obj);
9206 }
9207
9208 // Get the point coordinants
9209 if (isFastSeq) {
9210 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9211 }
9212 else {
9213 obj = PySequence_GetItem(pyPoints, i);
9214 }
9215 if (! _2int_seq_helper(obj, &x1, &y1)) {
9216 if (!isFastPens)
9217 Py_DECREF(obj);
9218 goto err0;
9219 }
9220
9221 // Now draw the point
9222 self->DrawPoint(x1, y1);
9223
9224 if (!isFastSeq)
9225 Py_DECREF(obj);
9226 }
9227
9228 Py_INCREF(Py_None);
9229 return Py_None;
9230
9231 err1:
9232 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9233 return NULL;
9234 err0:
9235 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9236 return NULL;
9237 }
9238static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9239 PyObject * _resultobj;
9240 PyObject * _result;
9241 wxDC * _arg0;
9242 PyObject * _arg1;
9243 PyObject * _arg2;
9244 PyObject * _argo0 = 0;
9245 PyObject * _obj1 = 0;
9246 PyObject * _obj2 = 0;
9247 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9248
9249 self = self;
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9251 return NULL;
9252 if (_argo0) {
9253 if (_argo0 == Py_None) { _arg0 = NULL; }
9254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9256 return NULL;
9257 }
9258 }
9259{
9260 _arg1 = _obj1;
9261}
9262{
9263 _arg2 = _obj2;
9264}
9265{
474c48f9 9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9267 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
3bcd5e1c 9268
474c48f9 9269 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9270 if (PyErr_Occurred()) return NULL;
9271}{
9272 _resultobj = _result;
9273}
9274 return _resultobj;
9275}
9276
9277static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9278 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9279 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9280 int numObjs = 0;
9281 int numPens = 0;
9282 wxPen* pen;
9283 PyObject* obj;
9284 int x1, y1, x2, y2;
9285 int i = 0;
9286
9287 if (!PySequence_Check(pyLines)) {
9288 goto err0;
9289 }
9290 if (!PySequence_Check(pyPens)) {
9291 goto err1;
9292 }
9293 numObjs = PySequence_Length(pyLines);
9294 numPens = PySequence_Length(pyPens);
9295
9296 for (i = 0; i < numObjs; i++) {
9297 // Use a new pen?
9298 if (i < numPens) {
9299 if (isFastPens) {
9300 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9301 }
9302 else {
9303 obj = PySequence_GetItem(pyPens, i);
9304 }
9305 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9306 if (!isFastPens)
9307 Py_DECREF(obj);
9308 goto err1;
9309 }
9310
9311 self->SetPen(*pen);
9312 if (!isFastPens)
9313 Py_DECREF(obj);
9314 }
9315
9316 // Get the line coordinants
9317 if (isFastSeq) {
9318 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9319 }
9320 else {
9321 obj = PySequence_GetItem(pyLines, i);
9322 }
9323 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9324 if (!isFastPens)
9325 Py_DECREF(obj);
9326 goto err0;
9327 }
9328
9329 // Now draw the line
9330 self->DrawLine(x1, y1, x2, y2);
9331
9332 if (!isFastSeq)
9333 Py_DECREF(obj);
9334 }
9335
9336 Py_INCREF(Py_None);
9337 return Py_None;
9338
9339 err1:
9340 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9341 return NULL;
9342 err0:
9343 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9344 return NULL;
9345 }
9346static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9347 PyObject * _resultobj;
9348 PyObject * _result;
9349 wxDC * _arg0;
9350 PyObject * _arg1;
9351 PyObject * _arg2;
9352 PyObject * _argo0 = 0;
9353 PyObject * _obj1 = 0;
9354 PyObject * _obj2 = 0;
9355 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9356
9357 self = self;
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9359 return NULL;
9360 if (_argo0) {
9361 if (_argo0 == Py_None) { _arg0 = NULL; }
9362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9364 return NULL;
9365 }
9366 }
9367{
9368 _arg1 = _obj1;
9369}
9370{
9371 _arg2 = _obj2;
9372}
9373{
474c48f9 9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9375 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
3bcd5e1c 9376
474c48f9 9377 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9378 if (PyErr_Occurred()) return NULL;
9379}{
9380 _resultobj = _result;
9381}
9382 return _resultobj;
9383}
9384
70551f47
RD
9385static void *SwigwxMemoryDCTowxDC(void *ptr) {
9386 wxMemoryDC *src;
9387 wxDC *dest;
9388 src = (wxMemoryDC *) ptr;
9389 dest = (wxDC *) src;
9390 return (void *) dest;
9391}
9392
9df61a29
RD
9393static void *SwigwxMemoryDCTowxObject(void *ptr) {
9394 wxMemoryDC *src;
9395 wxObject *dest;
9396 src = (wxMemoryDC *) ptr;
9397 dest = (wxObject *) src;
9398 return (void *) dest;
9399}
9400
70551f47 9401#define new_wxMemoryDC() (new wxMemoryDC())
107e4716 9402static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9403 PyObject * _resultobj;
9404 wxMemoryDC * _result;
107e4716 9405 char *_kwnames[] = { NULL };
70551f47
RD
9406 char _ptemp[128];
9407
9408 self = self;
107e4716 9409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
70551f47 9410 return NULL;
ab9bc19b 9411{
474c48f9 9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9413 _result = (wxMemoryDC *)new_wxMemoryDC();
ab9bc19b 9414
474c48f9 9415 wxPyEndAllowThreads(__tstate);
4dfaa61e 9416 if (PyErr_Occurred()) return NULL;
2d091820
RD
9417} if (_result) {
9418 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9419 _resultobj = Py_BuildValue("s",_ptemp);
9420 } else {
9421 Py_INCREF(Py_None);
9422 _resultobj = Py_None;
9423 }
70551f47
RD
9424 return _resultobj;
9425}
9426
9427#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
107e4716 9428static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9429 PyObject * _resultobj;
9430 wxMemoryDC * _arg0;
9431 wxBitmap * _arg1;
2d091820
RD
9432 PyObject * _argo0 = 0;
9433 PyObject * _argo1 = 0;
107e4716 9434 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
9435
9436 self = self;
107e4716 9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
70551f47 9438 return NULL;
2d091820
RD
9439 if (_argo0) {
9440 if (_argo0 == Py_None) { _arg0 = NULL; }
9441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
70551f47
RD
9442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9443 return NULL;
9444 }
9445 }
2d091820
RD
9446 if (_argo1) {
9447 if (_argo1 == Py_None) { _arg1 = NULL; }
9448 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
9449 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9450 return NULL;
9451 }
9452 }
ab9bc19b 9453{
474c48f9 9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9455 wxMemoryDC_SelectObject(_arg0,*_arg1);
ab9bc19b 9456
474c48f9 9457 wxPyEndAllowThreads(__tstate);
4dfaa61e 9458 if (PyErr_Occurred()) return NULL;
ab9bc19b 9459} Py_INCREF(Py_None);
70551f47
RD
9460 _resultobj = Py_None;
9461 return _resultobj;
9462}
9463
a884bee5
RD
9464static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
9465 wxBufferedDC *src;
9466 wxMemoryDC *dest;
9467 src = (wxBufferedDC *) ptr;
9468 dest = (wxMemoryDC *) src;
9469 return (void *) dest;
9470}
9471
9472static void *SwigwxBufferedDCTowxDC(void *ptr) {
9473 wxBufferedDC *src;
9474 wxDC *dest;
9475 src = (wxBufferedDC *) ptr;
9476 dest = (wxDC *) src;
9477 return (void *) dest;
9478}
9479
9480static void *SwigwxBufferedDCTowxObject(void *ptr) {
9481 wxBufferedDC *src;
9482 wxObject *dest;
9483 src = (wxBufferedDC *) ptr;
9484 dest = (wxObject *) src;
9485 return (void *) dest;
9486}
9487
9488#define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9489static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject * _resultobj;
9491 wxBufferedDC * _result;
9492 wxDC * _arg0;
9493 wxBitmap * _arg1;
9494 PyObject * _argo0 = 0;
9495 PyObject * _argo1 = 0;
9496 char *_kwnames[] = { "dc","buffer", NULL };
9497 char _ptemp[128];
9498
9499 self = self;
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
9501 return NULL;
9502 if (_argo0) {
9503 if (_argo0 == Py_None) { _arg0 = NULL; }
9504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
9506 return NULL;
9507 }
9508 }
9509 if (_argo1) {
9510 if (_argo1 == Py_None) { _arg1 = NULL; }
9511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
9513 return NULL;
9514 }
9515 }
9516{
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
9519
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) return NULL;
9522} if (_result) {
9523 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9524 _resultobj = Py_BuildValue("s",_ptemp);
9525 } else {
9526 Py_INCREF(Py_None);
9527 _resultobj = Py_None;
9528 }
9529 return _resultobj;
9530}
9531
9532#define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
9533static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9534 PyObject * _resultobj;
9535 wxBufferedDC * _result;
9536 wxDC * _arg0;
9537 wxSize * _arg1;
9538 PyObject * _argo0 = 0;
9539 wxSize temp;
9540 PyObject * _obj1 = 0;
9541 char *_kwnames[] = { "dc","area", NULL };
9542 char _ptemp[128];
9543
9544 self = self;
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
9546 return NULL;
9547 if (_argo0) {
9548 if (_argo0 == Py_None) { _arg0 = NULL; }
9549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
9551 return NULL;
9552 }
9553 }
9554{
9555 _arg1 = &temp;
9556 if (! wxSize_helper(_obj1, &_arg1))
9557 return NULL;
9558}
9559{
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) return NULL;
9565} if (_result) {
9566 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
9567 _resultobj = Py_BuildValue("s",_ptemp);
9568 } else {
9569 Py_INCREF(Py_None);
9570 _resultobj = Py_None;
9571 }
9572 return _resultobj;
9573}
9574
9575static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
9576 wxBufferedPaintDC *src;
9577 wxBufferedDC *dest;
9578 src = (wxBufferedPaintDC *) ptr;
9579 dest = (wxBufferedDC *) src;
9580 return (void *) dest;
9581}
9582
9583static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
9584 wxBufferedPaintDC *src;
9585 wxMemoryDC *dest;
9586 src = (wxBufferedPaintDC *) ptr;
9587 dest = (wxMemoryDC *) src;
9588 return (void *) dest;
9589}
9590
9591static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
9592 wxBufferedPaintDC *src;
9593 wxDC *dest;
9594 src = (wxBufferedPaintDC *) ptr;
9595 dest = (wxDC *) src;
9596 return (void *) dest;
9597}
9598
9599static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
9600 wxBufferedPaintDC *src;
9601 wxObject *dest;
9602 src = (wxBufferedPaintDC *) ptr;
9603 dest = (wxObject *) src;
9604 return (void *) dest;
9605}
9606
9607#define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
9608static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject * _resultobj;
9610 wxBufferedPaintDC * _result;
9611 wxWindow * _arg0;
9612 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
9613 PyObject * _argo0 = 0;
9614 PyObject * _argo1 = 0;
9615 char *_kwnames[] = { "window","buffer", NULL };
9616 char _ptemp[128];
9617
9618 self = self;
9619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
9620 return NULL;
9621 if (_argo0) {
9622 if (_argo0 == Py_None) { _arg0 = NULL; }
9623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
9625 return NULL;
9626 }
9627 }
9628 if (_argo1) {
9629 if (_argo1 == Py_None) { _arg1 = NULL; }
9630 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9631 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
9632 return NULL;
9633 }
9634 }
9635{
9636 PyThreadState* __tstate = wxPyBeginAllowThreads();
9637 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
9638
9639 wxPyEndAllowThreads(__tstate);
9640 if (PyErr_Occurred()) return NULL;
9641} if (_result) {
9642 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
9643 _resultobj = Py_BuildValue("s",_ptemp);
9644 } else {
9645 Py_INCREF(Py_None);
9646 _resultobj = Py_None;
9647 }
9648 return _resultobj;
9649}
9650
70551f47
RD
9651static void *SwigwxScreenDCTowxDC(void *ptr) {
9652 wxScreenDC *src;
9653 wxDC *dest;
9654 src = (wxScreenDC *) ptr;
9655 dest = (wxDC *) src;
9656 return (void *) dest;
9657}
9658
9df61a29
RD
9659static void *SwigwxScreenDCTowxObject(void *ptr) {
9660 wxScreenDC *src;
9661 wxObject *dest;
9662 src = (wxScreenDC *) ptr;
9663 dest = (wxObject *) src;
9664 return (void *) dest;
9665}
9666
70551f47 9667#define new_wxScreenDC() (new wxScreenDC())
107e4716 9668static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9669 PyObject * _resultobj;
9670 wxScreenDC * _result;
107e4716 9671 char *_kwnames[] = { NULL };
70551f47
RD
9672 char _ptemp[128];
9673
9674 self = self;
107e4716 9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
70551f47 9676 return NULL;
ab9bc19b 9677{
474c48f9 9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9679 _result = (wxScreenDC *)new_wxScreenDC();
ab9bc19b 9680
474c48f9 9681 wxPyEndAllowThreads(__tstate);
4dfaa61e 9682 if (PyErr_Occurred()) return NULL;
2d091820
RD
9683} if (_result) {
9684 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9685 _resultobj = Py_BuildValue("s",_ptemp);
9686 } else {
9687 Py_INCREF(Py_None);
9688 _resultobj = Py_None;
9689 }
70551f47
RD
9690 return _resultobj;
9691}
9692
2fc99549
RD
9693#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9694static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9695 PyObject * _resultobj;
9696 bool _result;
9697 wxScreenDC * _arg0;
9698 wxWindow * _arg1;
2d091820
RD
9699 PyObject * _argo0 = 0;
9700 PyObject * _argo1 = 0;
107e4716 9701 char *_kwnames[] = { "self","window", NULL };
70551f47
RD
9702
9703 self = self;
2fc99549 9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
70551f47 9705 return NULL;
2d091820
RD
9706 if (_argo0) {
9707 if (_argo0 == Py_None) { _arg0 = NULL; }
9708 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9709 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
70551f47
RD
9710 return NULL;
9711 }
9712 }
2d091820
RD
9713 if (_argo1) {
9714 if (_argo1 == Py_None) { _arg1 = NULL; }
9715 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2fc99549 9716 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
70551f47
RD
9717 return NULL;
9718 }
9719 }
ab9bc19b 9720{
474c48f9 9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9722 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
ab9bc19b 9723
474c48f9 9724 wxPyEndAllowThreads(__tstate);
4dfaa61e 9725 if (PyErr_Occurred()) return NULL;
ab9bc19b 9726} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9727 return _resultobj;
9728}
9729
2fc99549
RD
9730#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9731static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9732 PyObject * _resultobj;
9733 bool _result;
9734 wxScreenDC * _arg0;
2d091820
RD
9735 wxRect * _arg1 = (wxRect *) NULL;
9736 PyObject * _argo0 = 0;
37f6a977
RD
9737 wxRect temp;
9738 PyObject * _obj1 = 0;
107e4716 9739 char *_kwnames[] = { "self","rect", NULL };
70551f47
RD
9740
9741 self = self;
2fc99549 9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
70551f47 9743 return NULL;
2d091820
RD
9744 if (_argo0) {
9745 if (_argo0 == Py_None) { _arg0 = NULL; }
9746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
70551f47
RD
9748 return NULL;
9749 }
9750 }
37f6a977
RD
9751 if (_obj1)
9752{
9753 _arg1 = &temp;
9754 if (! wxRect_helper(_obj1, &_arg1))
70551f47 9755 return NULL;
37f6a977 9756}
ab9bc19b 9757{
474c48f9 9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9759 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
ab9bc19b 9760
474c48f9 9761 wxPyEndAllowThreads(__tstate);
4dfaa61e 9762 if (PyErr_Occurred()) return NULL;
ab9bc19b 9763} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9764 return _resultobj;
9765}
9766
9767#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
107e4716 9768static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9769 PyObject * _resultobj;
9770 bool _result;
9771 wxScreenDC * _arg0;
2d091820 9772 PyObject * _argo0 = 0;
107e4716 9773 char *_kwnames[] = { "self", NULL };
70551f47
RD
9774
9775 self = self;
107e4716 9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
70551f47 9777 return NULL;
2d091820
RD
9778 if (_argo0) {
9779 if (_argo0 == Py_None) { _arg0 = NULL; }
9780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
70551f47
RD
9781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9782 return NULL;
9783 }
9784 }
ab9bc19b 9785{
474c48f9 9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9787 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
ab9bc19b 9788
474c48f9 9789 wxPyEndAllowThreads(__tstate);
4dfaa61e 9790 if (PyErr_Occurred()) return NULL;
ab9bc19b 9791} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9792 return _resultobj;
9793}
9794
9795static void *SwigwxClientDCTowxDC(void *ptr) {
9796 wxClientDC *src;
9797 wxDC *dest;
9798 src = (wxClientDC *) ptr;
9799 dest = (wxDC *) src;
9800 return (void *) dest;
9801}
9802
9df61a29
RD
9803static void *SwigwxClientDCTowxObject(void *ptr) {
9804 wxClientDC *src;
9805 wxObject *dest;
9806 src = (wxClientDC *) ptr;
9807 dest = (wxObject *) src;
9808 return (void *) dest;
9809}
9810
70551f47 9811#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
107e4716 9812static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9813 PyObject * _resultobj;
9814 wxClientDC * _result;
9815 wxWindow * _arg0;
2d091820 9816 PyObject * _argo0 = 0;
107e4716 9817 char *_kwnames[] = { "win", NULL };
70551f47
RD
9818 char _ptemp[128];
9819
9820 self = self;
107e4716 9821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
70551f47 9822 return NULL;
2d091820
RD
9823 if (_argo0) {
9824 if (_argo0 == Py_None) { _arg0 = NULL; }
9825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9827 return NULL;
9828 }
9829 }
ab9bc19b 9830{
474c48f9 9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9832 _result = (wxClientDC *)new_wxClientDC(_arg0);
ab9bc19b 9833
474c48f9 9834 wxPyEndAllowThreads(__tstate);
4dfaa61e 9835 if (PyErr_Occurred()) return NULL;
2d091820
RD
9836} if (_result) {
9837 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9838 _resultobj = Py_BuildValue("s",_ptemp);
9839 } else {
9840 Py_INCREF(Py_None);
9841 _resultobj = Py_None;
9842 }
70551f47
RD
9843 return _resultobj;
9844}
9845
9846static void *SwigwxPaintDCTowxDC(void *ptr) {
9847 wxPaintDC *src;
9848 wxDC *dest;
9849 src = (wxPaintDC *) ptr;
9850 dest = (wxDC *) src;
9851 return (void *) dest;
9852}
9853
9df61a29
RD
9854static void *SwigwxPaintDCTowxObject(void *ptr) {
9855 wxPaintDC *src;
9856 wxObject *dest;
9857 src = (wxPaintDC *) ptr;
9858 dest = (wxObject *) src;
9859 return (void *) dest;
9860}
9861
70551f47 9862#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
107e4716 9863static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9864 PyObject * _resultobj;
9865 wxPaintDC * _result;
9866 wxWindow * _arg0;
2d091820 9867 PyObject * _argo0 = 0;
107e4716 9868 char *_kwnames[] = { "win", NULL };
70551f47
RD
9869 char _ptemp[128];
9870
9871 self = self;
107e4716 9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
70551f47 9873 return NULL;
2d091820
RD
9874 if (_argo0) {
9875 if (_argo0 == Py_None) { _arg0 = NULL; }
9876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9878 return NULL;
9879 }
9880 }
ab9bc19b 9881{
474c48f9 9882 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9883 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
ab9bc19b 9884
474c48f9 9885 wxPyEndAllowThreads(__tstate);
4dfaa61e 9886 if (PyErr_Occurred()) return NULL;
2d091820
RD
9887} if (_result) {
9888 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9889 _resultobj = Py_BuildValue("s",_ptemp);
9890 } else {
9891 Py_INCREF(Py_None);
9892 _resultobj = Py_None;
9893 }
70551f47
RD
9894 return _resultobj;
9895}
9896
c95e68d8
RD
9897static void *SwigwxWindowDCTowxDC(void *ptr) {
9898 wxWindowDC *src;
9899 wxDC *dest;
9900 src = (wxWindowDC *) ptr;
9901 dest = (wxDC *) src;
9902 return (void *) dest;
9903}
9904
9df61a29
RD
9905static void *SwigwxWindowDCTowxObject(void *ptr) {
9906 wxWindowDC *src;
9907 wxObject *dest;
9908 src = (wxWindowDC *) ptr;
9909 dest = (wxObject *) src;
9910 return (void *) dest;
9911}
9912
c95e68d8 9913#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
107e4716 9914static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
9915 PyObject * _resultobj;
9916 wxWindowDC * _result;
9917 wxWindow * _arg0;
2d091820 9918 PyObject * _argo0 = 0;
107e4716 9919 char *_kwnames[] = { "win", NULL };
c95e68d8
RD
9920 char _ptemp[128];
9921
9922 self = self;
107e4716 9923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
c95e68d8 9924 return NULL;
2d091820
RD
9925 if (_argo0) {
9926 if (_argo0 == Py_None) { _arg0 = NULL; }
9927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
9928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9929 return NULL;
9930 }
9931 }
ab9bc19b 9932{
474c48f9 9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9934 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
ab9bc19b 9935
474c48f9 9936 wxPyEndAllowThreads(__tstate);
4dfaa61e 9937 if (PyErr_Occurred()) return NULL;
2d091820
RD
9938} if (_result) {
9939 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9940 _resultobj = Py_BuildValue("s",_ptemp);
9941 } else {
9942 Py_INCREF(Py_None);
9943 _resultobj = Py_None;
9944 }
c95e68d8
RD
9945 return _resultobj;
9946}
9947
9df61a29
RD
9948static void *SwigwxPaletteTowxGDIObject(void *ptr) {
9949 wxPalette *src;
9950 wxGDIObject *dest;
9951 src = (wxPalette *) ptr;
9952 dest = (wxGDIObject *) src;
9953 return (void *) dest;
9954}
9955
9956static void *SwigwxPaletteTowxObject(void *ptr) {
9957 wxPalette *src;
9958 wxObject *dest;
9959 src = (wxPalette *) ptr;
9960 dest = (wxObject *) src;
9961 return (void *) dest;
9962}
9963
105e45b9 9964#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9965static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9966 PyObject * _resultobj;
9967 wxPalette * _result;
9968 int _arg0;
9969 byte * _arg1;
9970 byte * _arg2;
9971 byte * _arg3;
9972 PyObject * _obj1 = 0;
9973 PyObject * _obj2 = 0;
9974 PyObject * _obj3 = 0;
e02c03a4 9975 char *_kwnames[] = { "choices","choices","choices", NULL };
105e45b9
RD
9976 char _ptemp[128];
9977
9978 self = self;
107e4716 9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
105e45b9
RD
9980 return NULL;
9981{
9982 _arg1 = byte_LIST_helper(_obj1);
9983 if (_arg1 == NULL) {
9984 return NULL;
9985 }
9986}
9987{
9988 _arg2 = byte_LIST_helper(_obj2);
9989 if (_arg2 == NULL) {
9990 return NULL;
9991 }
9992}
9993 if (_obj3)
9994{
9995 _arg3 = byte_LIST_helper(_obj3);
9996 if (_arg3 == NULL) {
9997 return NULL;
9998 }
9999}
10000{
ab9bc19b
RD
10001 if (_obj1) {
10002 _arg0 = PyList_Size(_obj1);
10003 }
10004 else {
10005 _arg0 = 0;
10006 }
105e45b9 10007}
ab9bc19b 10008{
474c48f9 10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10010 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 10011
474c48f9 10012 wxPyEndAllowThreads(__tstate);
4dfaa61e 10013 if (PyErr_Occurred()) return NULL;
2d091820
RD
10014} if (_result) {
10015 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10016 _resultobj = Py_BuildValue("s",_ptemp);
10017 } else {
10018 Py_INCREF(Py_None);
10019 _resultobj = Py_None;
10020 }
105e45b9
RD
10021{
10022 delete [] _arg1;
10023}
10024{
10025 delete [] _arg2;
10026}
10027{
10028 delete [] _arg3;
10029}
10030 return _resultobj;
10031}
10032
10033#define delete_wxPalette(_swigobj) (delete _swigobj)
107e4716 10034static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
10035 PyObject * _resultobj;
10036 wxPalette * _arg0;
2d091820 10037 PyObject * _argo0 = 0;
107e4716 10038 char *_kwnames[] = { "self", NULL };
105e45b9
RD
10039
10040 self = self;
107e4716 10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
105e45b9 10042 return NULL;
2d091820
RD
10043 if (_argo0) {
10044 if (_argo0 == Py_None) { _arg0 = NULL; }
10045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
10046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10047 return NULL;
10048 }
10049 }
ab9bc19b 10050{
474c48f9 10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10052 delete_wxPalette(_arg0);
ab9bc19b 10053
474c48f9 10054 wxPyEndAllowThreads(__tstate);
4dfaa61e 10055 if (PyErr_Occurred()) return NULL;
ab9bc19b 10056} Py_INCREF(Py_None);
105e45b9
RD
10057 _resultobj = Py_None;
10058 return _resultobj;
10059}
10060
10061#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
107e4716 10062static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
10063 PyObject * _resultobj;
10064 int _result;
10065 wxPalette * _arg0;
10066 byte _arg1;
10067 byte _arg2;
10068 byte _arg3;
2d091820 10069 PyObject * _argo0 = 0;
107e4716 10070 char *_kwnames[] = { "self","red","green","blue", NULL };
105e45b9
RD
10071
10072 self = self;
107e4716 10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
105e45b9 10074 return NULL;
2d091820
RD
10075 if (_argo0) {
10076 if (_argo0 == Py_None) { _arg0 = NULL; }
10077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
10078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10079 return NULL;
10080 }
10081 }
ab9bc19b 10082{
474c48f9 10083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10084 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 10085
474c48f9 10086 wxPyEndAllowThreads(__tstate);
4dfaa61e 10087 if (PyErr_Occurred()) return NULL;
ab9bc19b 10088} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
10089 return _resultobj;
10090}
10091
10092#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 10093static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
10094 PyObject * _resultobj;
10095 bool _result;
10096 wxPalette * _arg0;
10097 int _arg1;
10098 byte * _arg2;
ef2060fa 10099 int temp;
105e45b9 10100 byte * _arg3;
ef2060fa 10101 int temp0;
105e45b9 10102 byte * _arg4;
ef2060fa 10103 int temp1;
2d091820 10104 PyObject * _argo0 = 0;
ef2060fa 10105 char *_kwnames[] = { "self","pixel", NULL };
105e45b9
RD
10106
10107 self = self;
ef2060fa
RD
10108{
10109 _arg2 = (byte*)&temp;
10110}
10111{
10112 _arg3 = (byte*)&temp0;
10113}
10114{
10115 _arg4 = (byte*)&temp1;
10116}
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
105e45b9 10118 return NULL;
2d091820
RD
10119 if (_argo0) {
10120 if (_argo0 == Py_None) { _arg0 = NULL; }
10121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
10122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10123 return NULL;
10124 }
10125 }
ab9bc19b 10126{
474c48f9 10127 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10128 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 10129
474c48f9 10130 wxPyEndAllowThreads(__tstate);
4dfaa61e 10131 if (PyErr_Occurred()) return NULL;
ab9bc19b 10132} _resultobj = Py_BuildValue("i",_result);
ef2060fa
RD
10133{
10134 PyObject *o;
10135 o = PyInt_FromLong((long) (*_arg2));
10136 _resultobj = t_output_helper(_resultobj, o);
10137}
10138{
10139 PyObject *o;
10140 o = PyInt_FromLong((long) (*_arg3));
10141 _resultobj = t_output_helper(_resultobj, o);
10142}
10143{
10144 PyObject *o;
10145 o = PyInt_FromLong((long) (*_arg4));
10146 _resultobj = t_output_helper(_resultobj, o);
10147}
105e45b9
RD
10148 return _resultobj;
10149}
10150
10151#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
107e4716 10152static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
10153 PyObject * _resultobj;
10154 bool _result;
10155 wxPalette * _arg0;
2d091820 10156 PyObject * _argo0 = 0;
107e4716 10157 char *_kwnames[] = { "self", NULL };
105e45b9
RD
10158
10159 self = self;
107e4716 10160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
105e45b9 10161 return NULL;
2d091820
RD
10162 if (_argo0) {
10163 if (_argo0 == Py_None) { _arg0 = NULL; }
10164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
10165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10166 return NULL;
10167 }
10168 }
ab9bc19b 10169{
474c48f9 10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10171 _result = (bool )wxPalette_Ok(_arg0);
ab9bc19b 10172
474c48f9 10173 wxPyEndAllowThreads(__tstate);
4dfaa61e 10174 if (PyErr_Occurred()) return NULL;
ab9bc19b 10175} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
10176 return _resultobj;
10177}
10178
9df61a29
RD
10179static void *SwigwxImageListTowxObject(void *ptr) {
10180 wxImageList *src;
10181 wxObject *dest;
10182 src = (wxImageList *) ptr;
10183 dest = (wxObject *) src;
10184 return (void *) dest;
10185}
10186
21f8d7ea 10187#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 10188static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10189 PyObject * _resultobj;
10190 wxImageList * _result;
10191 int _arg0;
10192 int _arg1;
7ff49f0c 10193 int _arg2 = (int ) TRUE;
2d091820 10194 int _arg3 = (int ) 1;
107e4716 10195 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
21f8d7ea
RD
10196 char _ptemp[128];
10197
10198 self = self;
56f5d962 10199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
21f8d7ea 10200 return NULL;
ab9bc19b 10201{
474c48f9 10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10203 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 10204
474c48f9 10205 wxPyEndAllowThreads(__tstate);
4dfaa61e 10206 if (PyErr_Occurred()) return NULL;
2d091820
RD
10207} if (_result) {
10208 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10209 _resultobj = Py_BuildValue("s",_ptemp);
10210 } else {
10211 Py_INCREF(Py_None);
10212 _resultobj = Py_None;
10213 }
21f8d7ea
RD
10214 return _resultobj;
10215}
10216
10217#define delete_wxImageList(_swigobj) (delete _swigobj)
107e4716 10218static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10219 PyObject * _resultobj;
10220 wxImageList * _arg0;
2d091820 10221 PyObject * _argo0 = 0;
107e4716 10222 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10223
10224 self = self;
107e4716 10225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
21f8d7ea 10226 return NULL;
2d091820
RD
10227 if (_argo0) {
10228 if (_argo0 == Py_None) { _arg0 = NULL; }
10229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10231 return NULL;
10232 }
10233 }
ab9bc19b 10234{
474c48f9 10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10236 delete_wxImageList(_arg0);
ab9bc19b 10237
474c48f9 10238 wxPyEndAllowThreads(__tstate);
4dfaa61e 10239 if (PyErr_Occurred()) return NULL;
ab9bc19b 10240} Py_INCREF(Py_None);
21f8d7ea
RD
10241 _resultobj = Py_None;
10242 return _resultobj;
10243}
10244
f6bcfd97 10245#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
107e4716 10246static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10247 PyObject * _resultobj;
10248 int _result;
10249 wxImageList * _arg0;
10250 wxBitmap * _arg1;
f6bcfd97 10251 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
2d091820
RD
10252 PyObject * _argo0 = 0;
10253 PyObject * _argo1 = 0;
f6bcfd97
BP
10254 PyObject * _argo2 = 0;
10255 char *_kwnames[] = { "self","bitmap","mask", NULL };
21f8d7ea
RD
10256
10257 self = self;
f6bcfd97 10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
21f8d7ea 10259 return NULL;
2d091820
RD
10260 if (_argo0) {
10261 if (_argo0 == Py_None) { _arg0 = NULL; }
10262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10264 return NULL;
10265 }
10266 }
2d091820
RD
10267 if (_argo1) {
10268 if (_argo1 == Py_None) { _arg1 = NULL; }
10269 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
21f8d7ea
RD
10270 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10271 return NULL;
10272 }
10273 }
f6bcfd97
BP
10274 if (_argo2) {
10275 if (_argo2 == Py_None) { _arg2 = NULL; }
10276 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10277 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10278 return NULL;
10279 }
10280 }
10281{
474c48f9 10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10283 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
f6bcfd97 10284
474c48f9 10285 wxPyEndAllowThreads(__tstate);
4dfaa61e 10286 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10287} _resultobj = Py_BuildValue("i",_result);
10288 return _resultobj;
10289}
10290
10291#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10292static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10293 PyObject * _resultobj;
10294 int _result;
10295 wxImageList * _arg0;
10296 wxBitmap * _arg1;
10297 wxColour * _arg2;
10298 PyObject * _argo0 = 0;
10299 PyObject * _argo1 = 0;
10300 wxColour temp;
10301 PyObject * _obj2 = 0;
10302 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10303
10304 self = self;
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10306 return NULL;
10307 if (_argo0) {
10308 if (_argo0 == Py_None) { _arg0 = NULL; }
10309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10311 return NULL;
10312 }
10313 }
10314 if (_argo1) {
10315 if (_argo1 == Py_None) { _arg1 = NULL; }
10316 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10317 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10318 return NULL;
10319 }
10320 }
10321{
10322 _arg2 = &temp;
10323 if (! wxColour_helper(_obj2, &_arg2))
10324 return NULL;
10325}
ab9bc19b 10326{
474c48f9 10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10328 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
f6bcfd97 10329
474c48f9 10330 wxPyEndAllowThreads(__tstate);
4dfaa61e 10331 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10332} _resultobj = Py_BuildValue("i",_result);
10333 return _resultobj;
10334}
10335
10336#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10337static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10338 PyObject * _resultobj;
10339 int _result;
10340 wxImageList * _arg0;
10341 wxIcon * _arg1;
10342 PyObject * _argo0 = 0;
10343 PyObject * _argo1 = 0;
10344 char *_kwnames[] = { "self","icon", NULL };
10345
10346 self = self;
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10348 return NULL;
10349 if (_argo0) {
10350 if (_argo0 == Py_None) { _arg0 = NULL; }
10351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10353 return NULL;
10354 }
10355 }
10356 if (_argo1) {
10357 if (_argo1 == Py_None) { _arg1 = NULL; }
10358 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10359 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10360 return NULL;
10361 }
10362 }
10363{
474c48f9 10364 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10365 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
ab9bc19b 10366
474c48f9 10367 wxPyEndAllowThreads(__tstate);
4dfaa61e 10368 if (PyErr_Occurred()) return NULL;
ab9bc19b 10369} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10370 return _resultobj;
10371}
10372
10373#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
107e4716 10374static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10375 PyObject * _resultobj;
10376 bool _result;
10377 wxImageList * _arg0;
10378 int _arg1;
10379 wxBitmap * _arg2;
2d091820
RD
10380 PyObject * _argo0 = 0;
10381 PyObject * _argo2 = 0;
107e4716 10382 char *_kwnames[] = { "self","index","bitmap", NULL };
21f8d7ea
RD
10383
10384 self = self;
107e4716 10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
21f8d7ea 10386 return NULL;
2d091820
RD
10387 if (_argo0) {
10388 if (_argo0 == Py_None) { _arg0 = NULL; }
10389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10391 return NULL;
10392 }
10393 }
2d091820
RD
10394 if (_argo2) {
10395 if (_argo2 == Py_None) { _arg2 = NULL; }
10396 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
21f8d7ea
RD
10397 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10398 return NULL;
10399 }
10400 }
ab9bc19b 10401{
474c48f9 10402 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10403 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
ab9bc19b 10404
474c48f9 10405 wxPyEndAllowThreads(__tstate);
4dfaa61e 10406 if (PyErr_Occurred()) return NULL;
ab9bc19b 10407} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10408 return _resultobj;
10409}
10410
10411#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 10412static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10413 PyObject * _resultobj;
10414 bool _result;
10415 wxImageList * _arg0;
10416 int _arg1;
10417 wxDC * _arg2;
10418 int _arg3;
10419 int _arg4;
2d091820
RD
10420 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10421 bool _arg6 = (bool ) FALSE;
10422 PyObject * _argo0 = 0;
10423 PyObject * _argo2 = 0;
10424 int tempbool6 = (int) FALSE;
107e4716 10425 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
21f8d7ea
RD
10426
10427 self = self;
107e4716 10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
21f8d7ea 10429 return NULL;
2d091820
RD
10430 if (_argo0) {
10431 if (_argo0 == Py_None) { _arg0 = NULL; }
10432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10434 return NULL;
10435 }
10436 }
2d091820
RD
10437 if (_argo2) {
10438 if (_argo2 == Py_None) { _arg2 = NULL; }
10439 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
21f8d7ea
RD
10440 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10441 return NULL;
10442 }
10443 }
10444 _arg6 = (bool ) tempbool6;
ab9bc19b 10445{
474c48f9 10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10447 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 10448
474c48f9 10449 wxPyEndAllowThreads(__tstate);
4dfaa61e 10450 if (PyErr_Occurred()) return NULL;
ab9bc19b 10451} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10452 return _resultobj;
10453}
10454
10455#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
107e4716 10456static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10457 PyObject * _resultobj;
10458 int _result;
10459 wxImageList * _arg0;
2d091820 10460 PyObject * _argo0 = 0;
107e4716 10461 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10462
10463 self = self;
107e4716 10464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
21f8d7ea 10465 return NULL;
2d091820
RD
10466 if (_argo0) {
10467 if (_argo0 == Py_None) { _arg0 = NULL; }
10468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10470 return NULL;
10471 }
10472 }
ab9bc19b 10473{
474c48f9 10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10475 _result = (int )wxImageList_GetImageCount(_arg0);
ab9bc19b 10476
474c48f9 10477 wxPyEndAllowThreads(__tstate);
4dfaa61e 10478 if (PyErr_Occurred()) return NULL;
ab9bc19b 10479} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10480 return _resultobj;
10481}
10482
10483#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
107e4716 10484static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10485 PyObject * _resultobj;
10486 bool _result;
10487 wxImageList * _arg0;
10488 int _arg1;
2d091820 10489 PyObject * _argo0 = 0;
107e4716 10490 char *_kwnames[] = { "self","index", NULL };
21f8d7ea
RD
10491
10492 self = self;
107e4716 10493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
21f8d7ea 10494 return NULL;
2d091820
RD
10495 if (_argo0) {
10496 if (_argo0 == Py_None) { _arg0 = NULL; }
10497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10499 return NULL;
10500 }
10501 }
ab9bc19b 10502{
474c48f9 10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10504 _result = (bool )wxImageList_Remove(_arg0,_arg1);
ab9bc19b 10505
474c48f9 10506 wxPyEndAllowThreads(__tstate);
4dfaa61e 10507 if (PyErr_Occurred()) return NULL;
ab9bc19b 10508} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10509 return _resultobj;
10510}
10511
10512#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
107e4716 10513static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10514 PyObject * _resultobj;
10515 bool _result;
10516 wxImageList * _arg0;
2d091820 10517 PyObject * _argo0 = 0;
107e4716 10518 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10519
10520 self = self;
107e4716 10521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
21f8d7ea 10522 return NULL;
2d091820
RD
10523 if (_argo0) {
10524 if (_argo0 == Py_None) { _arg0 = NULL; }
10525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10527 return NULL;
10528 }
10529 }
ab9bc19b 10530{
474c48f9 10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10532 _result = (bool )wxImageList_RemoveAll(_arg0);
ab9bc19b 10533
474c48f9 10534 wxPyEndAllowThreads(__tstate);
4dfaa61e 10535 if (PyErr_Occurred()) return NULL;
ab9bc19b 10536} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10537 return _resultobj;
10538}
10539
f6bcfd97
BP
10540#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10541static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10542 PyObject * _resultobj;
10543 wxImageList * _arg0;
10544 int _arg1;
10545 int * _arg2;
10546 int temp;
10547 int * _arg3;
10548 int temp0;
10549 PyObject * _argo0 = 0;
10550 char *_kwnames[] = { "self","index", NULL };
10551
10552 self = self;
10553{
10554 _arg2 = &temp;
10555}
10556{
10557 _arg3 = &temp0;
10558}
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10560 return NULL;
10561 if (_argo0) {
10562 if (_argo0 == Py_None) { _arg0 = NULL; }
10563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10565 return NULL;
10566 }
10567 }
10568{
474c48f9 10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10570 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
f6bcfd97 10571
474c48f9 10572 wxPyEndAllowThreads(__tstate);
4dfaa61e 10573 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10574} Py_INCREF(Py_None);
10575 _resultobj = Py_None;
10576{
10577 PyObject *o;
10578 o = PyInt_FromLong((long) (*_arg2));
10579 _resultobj = t_output_helper(_resultobj, o);
10580}
10581{
10582 PyObject *o;
10583 o = PyInt_FromLong((long) (*_arg3));
10584 _resultobj = t_output_helper(_resultobj, o);
10585}
10586 return _resultobj;
10587}
10588
9df61a29
RD
10589static void *SwigwxRegionTowxGDIObject(void *ptr) {
10590 wxRegion *src;
10591 wxGDIObject *dest;
10592 src = (wxRegion *) ptr;
10593 dest = (wxGDIObject *) src;
10594 return (void *) dest;
10595}
10596
10597static void *SwigwxRegionTowxObject(void *ptr) {
10598 wxRegion *src;
10599 wxObject *dest;
10600 src = (wxRegion *) ptr;
10601 dest = (wxObject *) src;
10602 return (void *) dest;
10603}
10604
10605#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10606static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10607 PyObject * _resultobj;
10608 wxRegion * _result;
10609 long _arg0 = (long ) 0;
10610 long _arg1 = (long ) 0;
10611 long _arg2 = (long ) 0;
10612 long _arg3 = (long ) 0;
10613 char *_kwnames[] = { "x","y","width","height", NULL };
10614 char _ptemp[128];
10615
10616 self = self;
10617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10618 return NULL;
10619{
474c48f9 10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10621 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
9df61a29 10622
474c48f9 10623 wxPyEndAllowThreads(__tstate);
4dfaa61e 10624 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10625} if (_result) {
10626 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10627 _resultobj = Py_BuildValue("s",_ptemp);
10628 } else {
10629 Py_INCREF(Py_None);
10630 _resultobj = Py_None;
10631 }
10632 return _resultobj;
10633}
10634
10635#define delete_wxRegion(_swigobj) (delete _swigobj)
10636static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10637 PyObject * _resultobj;
10638 wxRegion * _arg0;
10639 PyObject * _argo0 = 0;
10640 char *_kwnames[] = { "self", NULL };
10641
10642 self = self;
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
10644 return NULL;
10645 if (_argo0) {
10646 if (_argo0 == Py_None) { _arg0 = NULL; }
10647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10649 return NULL;
10650 }
10651 }
10652{
474c48f9 10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10654 delete_wxRegion(_arg0);
9df61a29 10655
474c48f9 10656 wxPyEndAllowThreads(__tstate);
4dfaa61e 10657 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10658} Py_INCREF(Py_None);
10659 _resultobj = Py_None;
10660 return _resultobj;
10661}
10662
10663#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10664static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject * _resultobj;
10666 wxRegion * _arg0;
10667 PyObject * _argo0 = 0;
10668 char *_kwnames[] = { "self", NULL };
10669
10670 self = self;
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10672 return NULL;
10673 if (_argo0) {
10674 if (_argo0 == Py_None) { _arg0 = NULL; }
10675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10677 return NULL;
10678 }
10679 }
10680{
474c48f9 10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10682 wxRegion_Clear(_arg0);
9df61a29 10683
474c48f9 10684 wxPyEndAllowThreads(__tstate);
4dfaa61e 10685 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10686} Py_INCREF(Py_None);
10687 _resultobj = Py_None;
10688 return _resultobj;
10689}
10690
8cb49012
RD
10691#define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10692static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
10693 PyObject * _resultobj;
10694 bool _result;
10695 wxRegion * _arg0;
10696 wxCoord _arg1;
10697 wxCoord _arg2;
10698 PyObject * _argo0 = 0;
10699 char *_kwnames[] = { "self","x","y", NULL };
10700
10701 self = self;
10702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
10703 return NULL;
10704 if (_argo0) {
10705 if (_argo0 == Py_None) { _arg0 = NULL; }
10706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10708 return NULL;
10709 }
10710 }
10711{
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10713 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
8cb49012
RD
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) return NULL;
10717} _resultobj = Py_BuildValue("i",_result);
10718 return _resultobj;
10719}
10720
9df61a29
RD
10721#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10722static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10723 PyObject * _resultobj;
10724 wxRegionContain _result;
10725 wxRegion * _arg0;
10726 long _arg1;
10727 long _arg2;
10728 PyObject * _argo0 = 0;
10729 char *_kwnames[] = { "self","x","y", NULL };
10730
10731 self = self;
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
10733 return NULL;
10734 if (_argo0) {
10735 if (_argo0 == Py_None) { _arg0 = NULL; }
10736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10738 return NULL;
10739 }
10740 }
10741{
474c48f9 10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10743 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
9df61a29 10744
474c48f9 10745 wxPyEndAllowThreads(__tstate);
4dfaa61e 10746 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10747} _resultobj = Py_BuildValue("i",_result);
10748 return _resultobj;
10749}
10750
10751#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10752static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10753 PyObject * _resultobj;
10754 wxRegionContain _result;
10755 wxRegion * _arg0;
10756 wxPoint * _arg1;
10757 PyObject * _argo0 = 0;
10758 wxPoint temp;
10759 PyObject * _obj1 = 0;
10760 char *_kwnames[] = { "self","pt", NULL };
10761
10762 self = self;
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10764 return NULL;
10765 if (_argo0) {
10766 if (_argo0 == Py_None) { _arg0 = NULL; }
10767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10769 return NULL;
10770 }
10771 }
10772{
10773 _arg1 = &temp;
10774 if (! wxPoint_helper(_obj1, &_arg1))
10775 return NULL;
10776}
10777{
474c48f9 10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10779 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
9df61a29 10780
474c48f9 10781 wxPyEndAllowThreads(__tstate);
4dfaa61e 10782 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10783} _resultobj = Py_BuildValue("i",_result);
10784 return _resultobj;
10785}
10786
10787#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10788static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10789 PyObject * _resultobj;
10790 wxRegionContain _result;
10791 wxRegion * _arg0;
10792 wxRect * _arg1;
10793 PyObject * _argo0 = 0;
10794 wxRect temp;
10795 PyObject * _obj1 = 0;
10796 char *_kwnames[] = { "self","rect", NULL };
10797
10798 self = self;
10799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10800 return NULL;
10801 if (_argo0) {
10802 if (_argo0 == Py_None) { _arg0 = NULL; }
10803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10805 return NULL;
10806 }
10807 }
10808{
10809 _arg1 = &temp;
10810 if (! wxRect_helper(_obj1, &_arg1))
10811 return NULL;
10812}
10813{
474c48f9 10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10815 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9df61a29 10816
474c48f9 10817 wxPyEndAllowThreads(__tstate);
4dfaa61e 10818 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10819} _resultobj = Py_BuildValue("i",_result);
10820 return _resultobj;
10821}
10822
10823#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10824static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10825 PyObject * _resultobj;
10826 wxRegionContain _result;
10827 wxRegion * _arg0;
10828 long _arg1;
10829 long _arg2;
10830 long _arg3;
10831 long _arg4;
10832 PyObject * _argo0 = 0;
10833 char *_kwnames[] = { "self","x","y","w","h", NULL };
10834
10835 self = self;
10836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10837 return NULL;
10838 if (_argo0) {
10839 if (_argo0 == Py_None) { _arg0 = NULL; }
10840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10842 return NULL;
10843 }
10844 }
10845{
474c48f9 10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10847 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10848
474c48f9 10849 wxPyEndAllowThreads(__tstate);
4dfaa61e 10850 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10851} _resultobj = Py_BuildValue("i",_result);
10852 return _resultobj;
10853}
10854
10855#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10856static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10857 PyObject * _resultobj;
10858 wxRect * _result;
10859 wxRegion * _arg0;
10860 PyObject * _argo0 = 0;
10861 char *_kwnames[] = { "self", NULL };
10862 char _ptemp[128];
10863
10864 self = self;
10865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10866 return NULL;
10867 if (_argo0) {
10868 if (_argo0 == Py_None) { _arg0 = NULL; }
10869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10871 return NULL;
10872 }
10873 }
10874{
474c48f9 10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10876 _result = new wxRect (wxRegion_GetBox(_arg0));
9df61a29 10877
474c48f9 10878 wxPyEndAllowThreads(__tstate);
4dfaa61e 10879 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10880} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10881 _resultobj = Py_BuildValue("s",_ptemp);
10882 return _resultobj;
10883}
10884
10885#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10886static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10887 PyObject * _resultobj;
10888 bool _result;
10889 wxRegion * _arg0;
10890 long _arg1;
10891 long _arg2;
10892 long _arg3;
10893 long _arg4;
10894 PyObject * _argo0 = 0;
10895 char *_kwnames[] = { "self","x","y","width","height", NULL };
10896
10897 self = self;
10898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10899 return NULL;
10900 if (_argo0) {
10901 if (_argo0 == Py_None) { _arg0 = NULL; }
10902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10904 return NULL;
10905 }
10906 }
10907{
474c48f9 10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10909 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10910
474c48f9 10911 wxPyEndAllowThreads(__tstate);
4dfaa61e 10912 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10913} _resultobj = Py_BuildValue("i",_result);
10914 return _resultobj;
10915}
10916
10917#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10918static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10919 PyObject * _resultobj;
10920 bool _result;
10921 wxRegion * _arg0;
10922 wxRect * _arg1;
10923 PyObject * _argo0 = 0;
10924 wxRect temp;
10925 PyObject * _obj1 = 0;
10926 char *_kwnames[] = { "self","rect", NULL };
10927
10928 self = self;
10929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
10930 return NULL;
10931 if (_argo0) {
10932 if (_argo0 == Py_None) { _arg0 = NULL; }
10933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10935 return NULL;
10936 }
10937 }
10938{
10939 _arg1 = &temp;
10940 if (! wxRect_helper(_obj1, &_arg1))
10941 return NULL;
10942}
10943{
474c48f9 10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10945 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9df61a29 10946
474c48f9 10947 wxPyEndAllowThreads(__tstate);
4dfaa61e 10948 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10949} _resultobj = Py_BuildValue("i",_result);
10950 return _resultobj;
10951}
10952
10953#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10954static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10955 PyObject * _resultobj;
10956 bool _result;
10957 wxRegion * _arg0;
10958 wxRegion * _arg1;
10959 PyObject * _argo0 = 0;
10960 PyObject * _argo1 = 0;
10961 char *_kwnames[] = { "self","region", NULL };
10962
10963 self = self;
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
10965 return NULL;
10966 if (_argo0) {
10967 if (_argo0 == Py_None) { _arg0 = NULL; }
10968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10970 return NULL;
10971 }
10972 }
10973 if (_argo1) {
10974 if (_argo1 == Py_None) { _arg1 = NULL; }
10975 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10976 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10977 return NULL;
10978 }
10979 }
10980{
474c48f9 10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10982 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9df61a29 10983
474c48f9 10984 wxPyEndAllowThreads(__tstate);
4dfaa61e 10985 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10986} _resultobj = Py_BuildValue("i",_result);
10987 return _resultobj;
10988}
10989
10990#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10991static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject * _resultobj;
10993 bool _result;
10994 wxRegion * _arg0;
10995 PyObject * _argo0 = 0;
10996 char *_kwnames[] = { "self", NULL };
10997
10998 self = self;
10999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11000 return NULL;
11001 if (_argo0) {
11002 if (_argo0 == Py_None) { _arg0 = NULL; }
11003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11005 return NULL;
11006 }
11007 }
11008{
474c48f9 11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11010 _result = (bool )wxRegion_IsEmpty(_arg0);
9df61a29 11011
474c48f9 11012 wxPyEndAllowThreads(__tstate);
4dfaa61e 11013 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11014} _resultobj = Py_BuildValue("i",_result);
11015 return _resultobj;
11016}
11017
11018#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11019static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11020 PyObject * _resultobj;
11021 bool _result;
11022 wxRegion * _arg0;
11023 long _arg1;
11024 long _arg2;
11025 long _arg3;
11026 long _arg4;
11027 PyObject * _argo0 = 0;
11028 char *_kwnames[] = { "self","x","y","width","height", NULL };
11029
11030 self = self;
11031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11032 return NULL;
11033 if (_argo0) {
11034 if (_argo0 == Py_None) { _arg0 = NULL; }
11035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11037 return NULL;
11038 }
11039 }
11040{
474c48f9 11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11042 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 11043
474c48f9 11044 wxPyEndAllowThreads(__tstate);
4dfaa61e 11045 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11046} _resultobj = Py_BuildValue("i",_result);
11047 return _resultobj;
11048}
11049
11050#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11051static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11052 PyObject * _resultobj;
11053 bool _result;
11054 wxRegion * _arg0;
11055 wxRect * _arg1;
11056 PyObject * _argo0 = 0;
11057 wxRect temp;
11058 PyObject * _obj1 = 0;
11059 char *_kwnames[] = { "self","rect", NULL };
11060
11061 self = self;
11062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11063 return NULL;
11064 if (_argo0) {
11065 if (_argo0 == Py_None) { _arg0 = NULL; }
11066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11068 return NULL;
11069 }
11070 }
11071{
11072 _arg1 = &temp;
11073 if (! wxRect_helper(_obj1, &_arg1))
11074 return NULL;
11075}
11076{
474c48f9 11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11078 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9df61a29 11079
474c48f9 11080 wxPyEndAllowThreads(__tstate);
4dfaa61e 11081 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11082} _resultobj = Py_BuildValue("i",_result);
11083 return _resultobj;
11084}
11085
11086#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11087static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11088 PyObject * _resultobj;
11089 bool _result;
11090 wxRegion * _arg0;
11091 wxRegion * _arg1;
11092 PyObject * _argo0 = 0;
11093 PyObject * _argo1 = 0;
11094 char *_kwnames[] = { "self","region", NULL };
11095
11096 self = self;
11097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11098 return NULL;
11099 if (_argo0) {
11100 if (_argo0 == Py_None) { _arg0 = NULL; }
11101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11103 return NULL;
11104 }
11105 }
11106 if (_argo1) {
11107 if (_argo1 == Py_None) { _arg1 = NULL; }
11108 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11109 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11110 return NULL;
11111 }
11112 }
11113{
474c48f9 11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11115 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9df61a29 11116
474c48f9 11117 wxPyEndAllowThreads(__tstate);
4dfaa61e 11118 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11119} _resultobj = Py_BuildValue("i",_result);
11120 return _resultobj;
11121}
11122
11123#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11124static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject * _resultobj;
11126 bool _result;
11127 wxRegion * _arg0;
11128 long _arg1;
11129 long _arg2;
11130 long _arg3;
11131 long _arg4;
11132 PyObject * _argo0 = 0;
11133 char *_kwnames[] = { "self","x","y","width","height", NULL };
11134
11135 self = self;
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11137 return NULL;
11138 if (_argo0) {
11139 if (_argo0 == Py_None) { _arg0 = NULL; }
11140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11142 return NULL;
11143 }
11144 }
11145{
474c48f9 11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11147 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 11148
474c48f9 11149 wxPyEndAllowThreads(__tstate);
4dfaa61e 11150 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11151} _resultobj = Py_BuildValue("i",_result);
11152 return _resultobj;
11153}
11154
11155#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11156static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11157 PyObject * _resultobj;
11158 bool _result;
11159 wxRegion * _arg0;
11160 wxRect * _arg1;
11161 PyObject * _argo0 = 0;
11162 wxRect temp;
11163 PyObject * _obj1 = 0;
11164 char *_kwnames[] = { "self","rect", NULL };
11165
11166 self = self;
11167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11168 return NULL;
11169 if (_argo0) {
11170 if (_argo0 == Py_None) { _arg0 = NULL; }
11171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11173 return NULL;
11174 }
11175 }
11176{
11177 _arg1 = &temp;
11178 if (! wxRect_helper(_obj1, &_arg1))
11179 return NULL;
11180}
11181{
474c48f9 11182 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11183 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9df61a29 11184
474c48f9 11185 wxPyEndAllowThreads(__tstate);
4dfaa61e 11186 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11187} _resultobj = Py_BuildValue("i",_result);
11188 return _resultobj;
11189}
11190
11191#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11192static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11193 PyObject * _resultobj;
11194 bool _result;
11195 wxRegion * _arg0;
11196 wxRegion * _arg1;
11197 PyObject * _argo0 = 0;
11198 PyObject * _argo1 = 0;
11199 char *_kwnames[] = { "self","region", NULL };
11200
11201 self = self;
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11203 return NULL;
11204 if (_argo0) {
11205 if (_argo0 == Py_None) { _arg0 = NULL; }
11206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11208 return NULL;
11209 }
11210 }
11211 if (_argo1) {
11212 if (_argo1 == Py_None) { _arg1 = NULL; }
11213 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11214 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11215 return NULL;
11216 }
11217 }
11218{
474c48f9 11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11220 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
9df61a29 11221
474c48f9 11222 wxPyEndAllowThreads(__tstate);
4dfaa61e 11223 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11224} _resultobj = Py_BuildValue("i",_result);
11225 return _resultobj;
11226}
11227
11228#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11229static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject * _resultobj;
11231 bool _result;
11232 wxRegion * _arg0;
11233 long _arg1;
11234 long _arg2;
11235 long _arg3;
11236 long _arg4;
11237 PyObject * _argo0 = 0;
11238 char *_kwnames[] = { "self","x","y","width","height", NULL };
11239
11240 self = self;
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11242 return NULL;
11243 if (_argo0) {
11244 if (_argo0 == Py_None) { _arg0 = NULL; }
11245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11247 return NULL;
11248 }
11249 }
11250{
474c48f9 11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11252 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 11253
474c48f9 11254 wxPyEndAllowThreads(__tstate);
4dfaa61e 11255 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11256} _resultobj = Py_BuildValue("i",_result);
11257 return _resultobj;
11258}
11259
11260#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11261static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11262 PyObject * _resultobj;
11263 bool _result;
11264 wxRegion * _arg0;
11265 wxRect * _arg1;
11266 PyObject * _argo0 = 0;
11267 wxRect temp;
11268 PyObject * _obj1 = 0;
11269 char *_kwnames[] = { "self","rect", NULL };
11270
11271 self = self;
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11273 return NULL;
11274 if (_argo0) {
11275 if (_argo0 == Py_None) { _arg0 = NULL; }
11276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11278 return NULL;
11279 }
11280 }
11281{
11282 _arg1 = &temp;
11283 if (! wxRect_helper(_obj1, &_arg1))
11284 return NULL;
11285}
11286{
474c48f9 11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11288 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
9df61a29 11289
474c48f9 11290 wxPyEndAllowThreads(__tstate);
4dfaa61e 11291 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11292} _resultobj = Py_BuildValue("i",_result);
11293 return _resultobj;
11294}
11295
11296#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11297static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11298 PyObject * _resultobj;
11299 bool _result;
11300 wxRegion * _arg0;
11301 wxRegion * _arg1;
11302 PyObject * _argo0 = 0;
11303 PyObject * _argo1 = 0;
11304 char *_kwnames[] = { "self","region", NULL };
11305
11306 self = self;
11307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11308 return NULL;
11309 if (_argo0) {
11310 if (_argo0 == Py_None) { _arg0 = NULL; }
11311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11313 return NULL;
11314 }
11315 }
11316 if (_argo1) {
11317 if (_argo1 == Py_None) { _arg1 = NULL; }
11318 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11319 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11320 return NULL;
11321 }
11322 }
11323{
474c48f9 11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11325 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
9df61a29 11326
474c48f9 11327 wxPyEndAllowThreads(__tstate);
4dfaa61e 11328 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11329} _resultobj = Py_BuildValue("i",_result);
11330 return _resultobj;
11331}
11332
11333static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11334 wxRegionIterator *src;
11335 wxObject *dest;
11336 src = (wxRegionIterator *) ptr;
11337 dest = (wxObject *) src;
11338 return (void *) dest;
11339}
11340
11341#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11342static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11343 PyObject * _resultobj;
11344 wxRegionIterator * _result;
11345 wxRegion * _arg0;
11346 PyObject * _argo0 = 0;
11347 char *_kwnames[] = { "region", NULL };
11348 char _ptemp[128];
11349
11350 self = self;
11351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11352 return NULL;
11353 if (_argo0) {
11354 if (_argo0 == Py_None) { _arg0 = NULL; }
11355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11357 return NULL;
11358 }
11359 }
11360{
474c48f9 11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11362 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
9df61a29 11363
474c48f9 11364 wxPyEndAllowThreads(__tstate);
4dfaa61e 11365 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11366} if (_result) {
11367 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11368 _resultobj = Py_BuildValue("s",_ptemp);
11369 } else {
11370 Py_INCREF(Py_None);
11371 _resultobj = Py_None;
11372 }
11373 return _resultobj;
11374}
11375
11376#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11377static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11378 PyObject * _resultobj;
11379 wxRegionIterator * _arg0;
11380 PyObject * _argo0 = 0;
11381 char *_kwnames[] = { "self", NULL };
11382
11383 self = self;
11384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11385 return NULL;
11386 if (_argo0) {
11387 if (_argo0 == Py_None) { _arg0 = NULL; }
11388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11390 return NULL;
11391 }
11392 }
11393{
474c48f9 11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11395 delete_wxRegionIterator(_arg0);
9df61a29 11396
474c48f9 11397 wxPyEndAllowThreads(__tstate);
4dfaa61e 11398 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11399} Py_INCREF(Py_None);
11400 _resultobj = Py_None;
11401 return _resultobj;
11402}
11403
11404#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11405static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11406 PyObject * _resultobj;
11407 long _result;
11408 wxRegionIterator * _arg0;
11409 PyObject * _argo0 = 0;
11410 char *_kwnames[] = { "self", NULL };
11411
11412 self = self;
11413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11414 return NULL;
11415 if (_argo0) {
11416 if (_argo0 == Py_None) { _arg0 = NULL; }
11417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11419 return NULL;
11420 }
11421 }
11422{
474c48f9 11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11424 _result = (long )wxRegionIterator_GetX(_arg0);
9df61a29 11425
474c48f9 11426 wxPyEndAllowThreads(__tstate);
4dfaa61e 11427 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11428} _resultobj = Py_BuildValue("l",_result);
11429 return _resultobj;
11430}
11431
11432#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11433static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject * _resultobj;
11435 long _result;
11436 wxRegionIterator * _arg0;
11437 PyObject * _argo0 = 0;
11438 char *_kwnames[] = { "self", NULL };
11439
11440 self = self;
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11442 return NULL;
11443 if (_argo0) {
11444 if (_argo0 == Py_None) { _arg0 = NULL; }
11445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11447 return NULL;
11448 }
11449 }
11450{
474c48f9 11451 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11452 _result = (long )wxRegionIterator_GetY(_arg0);
9df61a29 11453
474c48f9 11454 wxPyEndAllowThreads(__tstate);
4dfaa61e 11455 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11456} _resultobj = Py_BuildValue("l",_result);
11457 return _resultobj;
11458}
11459
11460#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11461static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11462 PyObject * _resultobj;
11463 long _result;
11464 wxRegionIterator * _arg0;
11465 PyObject * _argo0 = 0;
11466 char *_kwnames[] = { "self", NULL };
11467
11468 self = self;
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11470 return NULL;
11471 if (_argo0) {
11472 if (_argo0 == Py_None) { _arg0 = NULL; }
11473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11475 return NULL;
11476 }
11477 }
11478{
474c48f9 11479 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11480 _result = (long )wxRegionIterator_GetW(_arg0);
9df61a29 11481
474c48f9 11482 wxPyEndAllowThreads(__tstate);
4dfaa61e 11483 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11484} _resultobj = Py_BuildValue("l",_result);
11485 return _resultobj;
11486}
11487
11488#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11489static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11490 PyObject * _resultobj;
11491 long _result;
11492 wxRegionIterator * _arg0;
11493 PyObject * _argo0 = 0;
11494 char *_kwnames[] = { "self", NULL };
11495
11496 self = self;
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11498 return NULL;
11499 if (_argo0) {
11500 if (_argo0 == Py_None) { _arg0 = NULL; }
11501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11503 return NULL;
11504 }
11505 }
11506{
474c48f9 11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11508 _result = (long )wxRegionIterator_GetWidth(_arg0);
9df61a29 11509
474c48f9 11510 wxPyEndAllowThreads(__tstate);
4dfaa61e 11511 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11512} _resultobj = Py_BuildValue("l",_result);
11513 return _resultobj;
11514}
11515
11516#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11517static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11518 PyObject * _resultobj;
11519 long _result;
11520 wxRegionIterator * _arg0;
11521 PyObject * _argo0 = 0;
11522 char *_kwnames[] = { "self", NULL };
11523
11524 self = self;
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11526 return NULL;
11527 if (_argo0) {
11528 if (_argo0 == Py_None) { _arg0 = NULL; }
11529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11531 return NULL;
11532 }
11533 }
11534{
474c48f9 11535 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11536 _result = (long )wxRegionIterator_GetH(_arg0);
9df61a29 11537
474c48f9 11538 wxPyEndAllowThreads(__tstate);
4dfaa61e 11539 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11540} _resultobj = Py_BuildValue("l",_result);
11541 return _resultobj;
11542}
11543
11544#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11545static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11546 PyObject * _resultobj;
11547 long _result;
11548 wxRegionIterator * _arg0;
11549 PyObject * _argo0 = 0;
11550 char *_kwnames[] = { "self", NULL };
11551
11552 self = self;
11553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
11554 return NULL;
11555 if (_argo0) {
11556 if (_argo0 == Py_None) { _arg0 = NULL; }
11557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11559 return NULL;
11560 }
11561 }
11562{
474c48f9 11563 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11564 _result = (long )wxRegionIterator_GetHeight(_arg0);
9df61a29 11565
474c48f9 11566 wxPyEndAllowThreads(__tstate);
4dfaa61e 11567 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11568} _resultobj = Py_BuildValue("l",_result);
11569 return _resultobj;
11570}
11571
11572#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11573static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject * _resultobj;
11575 wxRect * _result;
11576 wxRegionIterator * _arg0;
11577 PyObject * _argo0 = 0;
11578 char *_kwnames[] = { "self", NULL };
11579 char _ptemp[128];
11580
11581 self = self;
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
11583 return NULL;
11584 if (_argo0) {
11585 if (_argo0 == Py_None) { _arg0 = NULL; }
11586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11588 return NULL;
11589 }
11590 }
11591{
474c48f9 11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11593 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
9df61a29 11594
474c48f9 11595 wxPyEndAllowThreads(__tstate);
4dfaa61e 11596 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11597} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11598 _resultobj = Py_BuildValue("s",_ptemp);
11599 return _resultobj;
11600}
11601
11602#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11603static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11604 PyObject * _resultobj;
11605 bool _result;
11606 wxRegionIterator * _arg0;
11607 PyObject * _argo0 = 0;
11608 char *_kwnames[] = { "self", NULL };
11609
11610 self = self;
11611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11612 return NULL;
11613 if (_argo0) {
11614 if (_argo0 == Py_None) { _arg0 = NULL; }
11615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11617 return NULL;
11618 }
11619 }
11620{
474c48f9 11621 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11622 _result = (bool )wxRegionIterator_HaveRects(_arg0);
9df61a29 11623
474c48f9 11624 wxPyEndAllowThreads(__tstate);
4dfaa61e 11625 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11626} _resultobj = Py_BuildValue("i",_result);
11627 return _resultobj;
11628}
11629
11630#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11631static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11632 PyObject * _resultobj;
11633 wxRegionIterator * _arg0;
11634 PyObject * _argo0 = 0;
11635 char *_kwnames[] = { "self", NULL };
11636
11637 self = self;
11638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11639 return NULL;
11640 if (_argo0) {
11641 if (_argo0 == Py_None) { _arg0 = NULL; }
11642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11644 return NULL;
11645 }
11646 }
11647{
474c48f9 11648 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11649 wxRegionIterator_Reset(_arg0);
9df61a29 11650
474c48f9 11651 wxPyEndAllowThreads(__tstate);
4dfaa61e 11652 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11653} Py_INCREF(Py_None);
11654 _resultobj = Py_None;
11655 return _resultobj;
11656}
11657
11658static void wxRegionIterator_Next(wxRegionIterator *self) {
11659 (*self) ++;
11660 }
11661static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11662 PyObject * _resultobj;
11663 wxRegionIterator * _arg0;
11664 PyObject * _argo0 = 0;
11665 char *_kwnames[] = { "self", NULL };
11666
11667 self = self;
11668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11669 return NULL;
11670 if (_argo0) {
11671 if (_argo0 == Py_None) { _arg0 = NULL; }
11672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11674 return NULL;
11675 }
11676 }
11677{
474c48f9 11678 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11679 wxRegionIterator_Next(_arg0);
9df61a29 11680
474c48f9 11681 wxPyEndAllowThreads(__tstate);
4dfaa61e 11682 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11683} Py_INCREF(Py_None);
11684 _resultobj = Py_None;
11685 return _resultobj;
11686}
11687
70551f47 11688static PyMethodDef gdicMethods[] = {
9df61a29
RD
11689 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11690 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11691 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11692 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11693 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11694 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11695 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11696 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11697 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11698 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11699 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11700 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11701 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11702 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11703 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11704 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11705 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11706 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11707 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11708 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11709 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11710 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11711 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11712 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11713 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11714 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11715 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11716 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11717 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11718 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
8cb49012 11719 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11720 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11721 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
11722 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11723 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11724 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11725 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11726 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11727 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11728 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11729 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11730 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11731 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11732 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11733 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11734 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11735 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11736 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11737 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11738 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11739 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11740 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11741 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11742 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
107e4716 11743 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
2fc99549 11744 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
107e4716 11745 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
a884bee5
RD
11746 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
11747 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
11748 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11749 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11750 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
3bcd5e1c
RD
11751 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11752 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11753 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11754 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11755 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
e02c03a4
RD
11756 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11757 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11758 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11759 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11760 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11761 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11762 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11763 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11764 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11765 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11766 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11767 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11768 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11769 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11770 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11771 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11772 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11773 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11774 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11775 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11776 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11777 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
059a841c 11778 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11779 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11780 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11781 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11782 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11783 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11784 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11785 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11786 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11787 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11788 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11789 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11790 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11791 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11792 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11793 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
11794 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11795 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11796 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11797 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11798 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11799 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11800 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11801 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11802 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11803 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11804 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11805 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11806 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11807 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11808 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11809 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11810 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11811 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11812 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11813 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11814 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11815 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11816 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11817 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11818 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
56f5d962 11819 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11820 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11821 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11822 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11823 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11824 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
8cb49012
RD
11825 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
11826 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11827 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11828 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11829 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11830 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11831 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11832 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11833 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11834 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11835 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11836 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11837 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11838 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11839 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11840 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11841 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11842 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11843 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11844 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11845 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11846 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11847 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11848 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11849 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11850 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11851 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11852 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11853 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
107e4716 11854 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11855 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11856 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11857 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11858 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
11859 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11860 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11861 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
56f5d962 11862 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11863 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11864 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11865 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11866 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11867 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11868 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11869 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11870 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11871 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11872 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11873 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11874 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
107e4716 11875 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11876 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
11877 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
11878 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11879 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11880 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11881 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11882 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11883 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11884 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11885 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11886 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11887 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11888 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
11889 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
11890 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11891 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11892 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
134d79dc
RD
11893 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
11894 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
11895 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
1893b029 11896 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11897 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
134d79dc 11898 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
107e4716 11899 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11900 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11901 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11902 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11903 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11904 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11905 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11906 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11907 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
db34b2d4 11908 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
134d79dc 11909 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
059a841c 11910 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
107e4716 11911 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c 11912 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11913 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11914 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11915 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
d29aba2f 11916 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11917 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c 11918 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
107e4716 11919 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11920 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
11921 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
11922 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
11923 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
11924 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
11925 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
11926 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
11927 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
11928 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
11929 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
11930 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11931 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11932 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
11933 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11934 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
11935 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
11936 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11937 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
11938 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
85247b36 11939 { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS },
1893b029 11940 { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
85247b36 11941 { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS },
1893b029 11942 { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11943 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
11944 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11945 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716 11946 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11947 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
11948 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
11949 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
11950 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
11951 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11952 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
11953 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11954 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
11955 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11956 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
107e4716 11957 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
65191ae8 11958 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11959 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11960 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
11961 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11962 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11963 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
11964 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
11965 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
11966 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
107e4716 11967 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
107e4716 11968 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 11969 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11970 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
11971 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11972 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
11973 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11974 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
11975 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
11976 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
11977 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
11978 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11979 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
11980 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
11981 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
4be61064 11982 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11983 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
11984 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
107e4716 11985 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
9d6da64a 11986 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11987 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
11988 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
107e4716 11989 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
11990 { NULL, NULL }
11991};
2d091820
RD
11992#ifdef __cplusplus
11993}
11994#endif
11995/*
11996 * This table is used by the pointer type-checker
11997 */
11998static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 11999 { "_signed_long","_long",0},
4120ef2b 12000 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
12001 { "_wxPrintQuality","_int",0},
12002 { "_wxPrintQuality","_signed_int",0},
12003 { "_wxPrintQuality","_unsigned_int",0},
12004 { "_wxPrintQuality","_wxWindowID",0},
12005 { "_wxPrintQuality","_uint",0},
12006 { "_wxPrintQuality","_EBool",0},
12007 { "_wxPrintQuality","_size_t",0},
c368d904 12008 { "_wxPrintQuality","_time_t",0},
65191ae8 12009 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
2d091820 12010 { "_byte","_unsigned_char",0},
2d091820
RD
12011 { "_long","_unsigned_long",0},
12012 { "_long","_signed_long",0},
9df61a29 12013 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
9df61a29 12014 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
9df61a29 12015 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
65191ae8 12016 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
9df61a29 12017 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
9df61a29 12018 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
9df61a29 12019 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
9df61a29 12020 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
9df61a29 12021 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
2d091820 12022 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
2d091820 12023 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
2d091820 12024 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
2d091820 12025 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
a884bee5
RD
12026 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
12027 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
2d091820 12028 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
4120ef2b 12029 { "_size_t","_wxCoord",0},
2d091820 12030 { "_size_t","_wxPrintQuality",0},
c368d904 12031 { "_size_t","_time_t",0},
2d091820
RD
12032 { "_size_t","_unsigned_int",0},
12033 { "_size_t","_int",0},
12034 { "_size_t","_wxWindowID",0},
12035 { "_size_t","_uint",0},
4120ef2b 12036 { "_uint","_wxCoord",0},
2d091820 12037 { "_uint","_wxPrintQuality",0},
c368d904 12038 { "_uint","_time_t",0},
2d091820
RD
12039 { "_uint","_size_t",0},
12040 { "_uint","_unsigned_int",0},
12041 { "_uint","_int",0},
12042 { "_uint","_wxWindowID",0},
f6bcfd97 12043 { "_wxChar","_char",0},
f6bcfd97 12044 { "_char","_wxChar",0},
a884bee5 12045 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
059a841c 12046 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 12047 { "_EBool","_wxCoord",0},
2d091820
RD
12048 { "_EBool","_wxPrintQuality",0},
12049 { "_EBool","_signed_int",0},
12050 { "_EBool","_int",0},
12051 { "_EBool","_wxWindowID",0},
2d091820 12052 { "_unsigned_long","_long",0},
059a841c 12053 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 12054 { "_signed_int","_wxCoord",0},
2d091820
RD
12055 { "_signed_int","_wxPrintQuality",0},
12056 { "_signed_int","_EBool",0},
12057 { "_signed_int","_wxWindowID",0},
12058 { "_signed_int","_int",0},
2d091820
RD
12059 { "_WXTYPE","_short",0},
12060 { "_WXTYPE","_signed_short",0},
12061 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
12062 { "_unsigned_short","_WXTYPE",0},
12063 { "_unsigned_short","_short",0},
9df61a29 12064 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
9df61a29 12065 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
9df61a29 12066 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
9df61a29 12067 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
9df61a29 12068 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
9df61a29 12069 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
9df61a29 12070 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
9df61a29 12071 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
a884bee5
RD
12072 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
12073 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
9df61a29 12074 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
9df61a29 12075 { "_wxObject","_wxDC",SwigwxDCTowxObject},
65191ae8 12076 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
9df61a29 12077 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
9df61a29 12078 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
65191ae8 12079 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
9df61a29 12080 { "_wxObject","_wxPen",SwigwxPenTowxObject},
9df61a29 12081 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
9df61a29 12082 { "_wxObject","_wxColour",SwigwxColourTowxObject},
9df61a29 12083 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
9df61a29 12084 { "_wxObject","_wxFont",SwigwxFontTowxObject},
9df61a29 12085 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
9df61a29 12086 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
9df61a29 12087 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
9df61a29 12088 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
9df61a29 12089 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
2d091820
RD
12090 { "_signed_short","_WXTYPE",0},
12091 { "_signed_short","_short",0},
a884bee5
RD
12092 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
12093 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
2d091820 12094 { "_unsigned_char","_byte",0},
4120ef2b 12095 { "_unsigned_int","_wxCoord",0},
2d091820 12096 { "_unsigned_int","_wxPrintQuality",0},
c368d904 12097 { "_unsigned_int","_time_t",0},
2d091820
RD
12098 { "_unsigned_int","_size_t",0},
12099 { "_unsigned_int","_uint",0},
12100 { "_unsigned_int","_wxWindowID",0},
12101 { "_unsigned_int","_int",0},
2d091820
RD
12102 { "_short","_WXTYPE",0},
12103 { "_short","_unsigned_short",0},
12104 { "_short","_signed_short",0},
4120ef2b 12105 { "_wxWindowID","_wxCoord",0},
2d091820 12106 { "_wxWindowID","_wxPrintQuality",0},
c368d904 12107 { "_wxWindowID","_time_t",0},
2d091820
RD
12108 { "_wxWindowID","_size_t",0},
12109 { "_wxWindowID","_EBool",0},
12110 { "_wxWindowID","_uint",0},
12111 { "_wxWindowID","_int",0},
12112 { "_wxWindowID","_signed_int",0},
12113 { "_wxWindowID","_unsigned_int",0},
4120ef2b 12114 { "_int","_wxCoord",0},
2d091820 12115 { "_int","_wxPrintQuality",0},
c368d904 12116 { "_int","_time_t",0},
2d091820
RD
12117 { "_int","_size_t",0},
12118 { "_int","_EBool",0},
12119 { "_int","_uint",0},
12120 { "_int","_wxWindowID",0},
12121 { "_int","_unsigned_int",0},
12122 { "_int","_signed_int",0},
c368d904
RD
12123 { "_time_t","_wxCoord",0},
12124 { "_time_t","_wxPrintQuality",0},
12125 { "_time_t","_unsigned_int",0},
12126 { "_time_t","_int",0},
12127 { "_time_t","_wxWindowID",0},
12128 { "_time_t","_uint",0},
12129 { "_time_t","_size_t",0},
4120ef2b
RD
12130 { "_wxCoord","_int",0},
12131 { "_wxCoord","_signed_int",0},
12132 { "_wxCoord","_unsigned_int",0},
12133 { "_wxCoord","_wxWindowID",0},
12134 { "_wxCoord","_uint",0},
12135 { "_wxCoord","_EBool",0},
12136 { "_wxCoord","_size_t",0},
c368d904 12137 { "_wxCoord","_time_t",0},
4120ef2b 12138 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
12139{0,0,0}};
12140
70551f47
RD
12141static PyObject *SWIG_globals;
12142#ifdef __cplusplus
12143extern "C"
12144#endif
2d091820 12145SWIGEXPORT(void) initgdic() {
70551f47
RD
12146 PyObject *m, *d;
12147 SWIG_globals = SWIG_newvarlink();
12148 m = Py_InitModule("gdic", gdicMethods);
12149 d = PyModule_GetDict(m);
059a841c
RD
12150 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12151 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12152 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12153 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12154 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12155 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12156 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12157 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
85247b36 12158 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
059a841c
RD
12159 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12160 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12161 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12162 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12163 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12164 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12165 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12166 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
134d79dc
RD
12167 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12168 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12169 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12170 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12171 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12172 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12173 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12174 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12175 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12176 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12177 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12178 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12179 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12180 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12181 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12182 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12183 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
059a841c 12184 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
134d79dc
RD
12185 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12186 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12187 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12188 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12189 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12190 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12191 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12192 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
059a841c 12193 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
a57d56d6
RD
12194 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12195 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12196 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12197 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
134d79dc
RD
12198 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12199 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12200 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
059a841c
RD
12201 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12202 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12203 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12204 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12205 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12206 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12207 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12208 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12209 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
134d79dc 12210 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
3e212503
RD
12211 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12212 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12213 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12214 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12215 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12216 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12217 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12218 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12219 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12220 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
70551f47
RD
12221 PyDict_SetItemString(d,"cvar", SWIG_globals);
12222 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12223 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12224 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12225 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12226 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12227 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12228 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12229 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12230 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12231 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12232 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12233 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12234 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12235 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12236 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12237 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12238 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12239 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12240 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12241 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12242 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12243 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12244 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12245 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12246 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12247 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12248 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12249 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12250 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12251 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12252 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12253 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12254 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12255 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12256 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12257 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12258 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12259 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12260 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12261 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12262 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12263 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
5e40f9dd
RD
12264 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12265 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12266 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12267 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
2d091820
RD
12268{
12269 int i;
12270 for (i = 0; _swig_mapping[i].n1; i++)
12271 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12272}
70551f47 12273}