]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.cpp
Updated note about wxSTC using wxPopupWindow
[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>
a323d3bd 65#include <wx/iconbndl.h>
70551f47 66
70551f47
RD
67
68static PyObject* t_output_helper(PyObject* target, PyObject* o) {
69 PyObject* o2;
70 PyObject* o3;
71
3bcd5e1c 72 if (!target) {
70551f47 73 target = o;
3bcd5e1c 74 } else if (target == Py_None) {
70551f47
RD
75 Py_DECREF(Py_None);
76 target = o;
3bcd5e1c 77 } else {
70551f47
RD
78 if (!PyTuple_Check(target)) {
79 o2 = target;
80 target = PyTuple_New(1);
81 PyTuple_SetItem(target, 0, o2);
82 }
3bcd5e1c
RD
83 o3 = PyTuple_New(1);
84 PyTuple_SetItem(o3, 0, o);
70551f47
RD
85
86 o2 = target;
3bcd5e1c
RD
87 target = PySequence_Concat(o2, o3);
88 Py_DECREF(o2);
70551f47
RD
89 Py_DECREF(o3);
90 }
91 return target;
92}
9a74fcaf
RD
93
94 // Put some wx default wxChar* values into wxStrings.
95 static const wxString wxPyEmptyString(wxT(""));
fbcadfca
RD
96 // Implementations of some alternate "constructors"
97
70551f47
RD
98 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
99 return new wxBitmap(width, height, depth);
100 }
101
fbcadfca
RD
102 static char** ConvertListOfStrings(PyObject* listOfStrings) {
103 char** cArray = NULL;
104 int count;
105
106 if (!PyList_Check(listOfStrings)) {
107 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
108 return NULL;
109 }
110 count = PyList_Size(listOfStrings);
111 cArray = new char*[count];
112
113 for(int x=0; x<count; x++) {
114 // TODO: Need some validation and error checking here
115 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
116 }
117 return cArray;
118 }
119
9d6da64a 120
fbcadfca
RD
121 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
122 char** cArray = NULL;
123 wxBitmap* bmp;
124
125 cArray = ConvertListOfStrings(listOfStrings);
126 if (! cArray)
127 return NULL;
128 bmp = new wxBitmap(cArray);
129 delete [] cArray;
130 return bmp;
131 }
132
133
134 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
135 return new wxBitmap(icon);
136 }
137
138
ba77f390
RD
139 wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) {
140 char* buf;
141 int length;
142 PyString_AsStringAndSize(bits, &buf, &length);
143 return new wxBitmap(buf, width, height, depth);
9d6da64a 144 }
9e689c06 145
7ff49f0c 146
9d6da64a
RD
147// #ifdef __WXMSW__
148// wxBitmap* wxBitmapFromData(PyObject* data, long type,
149// int width, int height, int depth = 1) {
150// if (! PyString_Check(data)) {
151// PyErr_SetString(PyExc_TypeError, "Expected string object");
152// return NULL;
153// }
154// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155// }
156// #endif
8bf5d46e 157
70551f47
RD
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
fbcadfca
RD
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
70551f47 176 }
4be61064
RD
177
178 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
179 wxIcon* icon = new wxIcon();
180 icon->CopyFromBitmap(bmp);
181 return icon;
182 }
70551f47 183 // Alternate 'constructor'
b26e2dc4 184 wxCursor* wxPyStockCursor(int id) {
70551f47
RD
185 return new wxCursor(id);
186 }
187 // Alternate 'constructor'
188 wxColour* wxNamedColour(const wxString& colorName) {
189 return new wxColour(colorName);
190 }
65191ae8
RD
191
192class wxPyPen : public wxPen {
193public:
194 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
195 : wxPen(colour, width, style)
196 { m_dash = NULL; }
197 ~wxPyPen() {
198 if (m_dash)
05f30eec 199 delete [] m_dash;
65191ae8
RD
200 }
201
202 void SetDashes(int nb_dashes, const wxDash *dash) {
05f30eec
RD
203 if (m_dash)
204 delete [] m_dash;
65191ae8 205 m_dash = new wxDash[nb_dashes];
05f30eec 206 for (int i=0; i<nb_dashes; i++) {
65191ae8 207 m_dash[i] = dash[i];
05f30eec 208 }
65191ae8
RD
209 wxPen::SetDashes(nb_dashes, m_dash);
210 }
211
212private:
213 wxDash* m_dash;
214};
3bcd5e1c
RD
215
216static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
217 *x1 = dc->MinX();
218 *y1 = dc->MinY();
219 *x2 = dc->MaxX();
220 *y2 = dc->MaxY();
221}
70551f47
RD
222 // Alternate 'constructor'
223 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
224 return new wxMemoryDC(oldDC);
225 }
21f8d7ea
RD
226
227#if 0
70551f47
RD
228extern wxFont * wxNORMAL_FONT;
229extern wxFont * wxSMALL_FONT;
230extern wxFont * wxITALIC_FONT;
231extern wxFont * wxSWISS_FONT;
232extern wxPen * wxRED_PEN;
233extern wxPen * wxCYAN_PEN;
234extern wxPen * wxGREEN_PEN;
235extern wxPen * wxBLACK_PEN;
236extern wxPen * wxWHITE_PEN;
237extern wxPen * wxTRANSPARENT_PEN;
238extern wxPen * wxBLACK_DASHED_PEN;
239extern wxPen * wxGREY_PEN;
240extern wxPen * wxMEDIUM_GREY_PEN;
241extern wxPen * wxLIGHT_GREY_PEN;
242extern wxBrush * wxBLUE_BRUSH;
243extern wxBrush * wxGREEN_BRUSH;
244extern wxBrush * wxWHITE_BRUSH;
245extern wxBrush * wxBLACK_BRUSH;
246extern wxBrush * wxTRANSPARENT_BRUSH;
247extern wxBrush * wxCYAN_BRUSH;
248extern wxBrush * wxRED_BRUSH;
249extern wxBrush * wxGREY_BRUSH;
250extern wxBrush * wxMEDIUM_GREY_BRUSH;
251extern wxBrush * wxLIGHT_GREY_BRUSH;
252extern wxColour * wxBLACK;
253extern wxColour * wxWHITE;
254extern wxColour * wxRED;
255extern wxColour * wxBLUE;
256extern wxColour * wxGREEN;
257extern wxColour * wxCYAN;
258extern wxColour * wxLIGHT_GREY;
259extern wxCursor * wxSTANDARD_CURSOR;
260extern wxCursor * wxHOURGLASS_CURSOR;
261extern wxCursor * wxCROSS_CURSOR;
262extern wxBitmap wxNullBitmap;
263extern wxIcon wxNullIcon;
264extern wxCursor wxNullCursor;
265extern wxPen wxNullPen;
266extern wxBrush wxNullBrush;
267extern wxPalette wxNullPalette;
268extern wxFont wxNullFont;
269extern wxColour wxNullColour;
5e40f9dd
RD
270extern wxFontList * wxTheFontList;
271extern wxPenList * wxThePenList;
65191ae8 272extern wxBrushList * wxTheBrushList;
5e40f9dd 273extern wxColourDatabase * wxTheColourDatabase;
21f8d7ea 274
2d091820
RD
275#endif
276#ifdef __cplusplus
277extern "C" {
21f8d7ea 278#endif
107e4716 279static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
280 PyObject * _resultobj;
281 wxBitmap * _result;
282 int _arg0;
283 int _arg1;
2d091820 284 int _arg2 = (int ) -1;
107e4716 285 char *_kwnames[] = { "width","height","depth", NULL };
70551f47
RD
286 char _ptemp[128];
287
288 self = self;
107e4716 289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 290 return NULL;
ab9bc19b 291{
474c48f9 292 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 293 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
ab9bc19b 294
474c48f9 295 wxPyEndAllowThreads(__tstate);
4dfaa61e 296 if (PyErr_Occurred()) return NULL;
2d091820
RD
297} if (_result) {
298 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
299 _resultobj = Py_BuildValue("s",_ptemp);
300 } else {
301 Py_INCREF(Py_None);
302 _resultobj = Py_None;
303 }
70551f47
RD
304 return _resultobj;
305}
306
fbcadfca
RD
307static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
308 PyObject * _resultobj;
309 wxBitmap * _result;
310 PyObject * _arg0;
311 PyObject * _obj0 = 0;
312 char *_kwnames[] = { "listOfStrings", NULL };
313 char _ptemp[128];
314
315 self = self;
316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
317 return NULL;
318{
319 _arg0 = _obj0;
320}
321{
474c48f9 322 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 323 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
fbcadfca 324
474c48f9 325 wxPyEndAllowThreads(__tstate);
4dfaa61e 326 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
327} if (_result) {
328 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
329 _resultobj = Py_BuildValue("s",_ptemp);
330 } else {
331 Py_INCREF(Py_None);
332 _resultobj = Py_None;
333 }
334 return _resultobj;
335}
336
337static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
338 PyObject * _resultobj;
339 wxBitmap * _result;
340 wxIcon * _arg0;
341 PyObject * _argo0 = 0;
342 char *_kwnames[] = { "icon", NULL };
343 char _ptemp[128];
344
345 self = self;
346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
347 return NULL;
348 if (_argo0) {
349 if (_argo0 == Py_None) { _arg0 = NULL; }
350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
352 return NULL;
353 }
354 }
355{
474c48f9 356 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 357 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
fbcadfca 358
474c48f9 359 wxPyEndAllowThreads(__tstate);
4dfaa61e 360 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
361} if (_result) {
362 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
363 _resultobj = Py_BuildValue("s",_ptemp);
364 } else {
365 Py_INCREF(Py_None);
366 _resultobj = Py_None;
367 }
368 return _resultobj;
369}
370
9d6da64a
RD
371static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
372 PyObject * _resultobj;
373 wxBitmap * _result;
ba77f390 374 PyObject * _arg0;
9d6da64a
RD
375 int _arg1;
376 int _arg2;
377 int _arg3 = (int ) 1;
ba77f390 378 PyObject * _obj0 = 0;
9d6da64a
RD
379 char *_kwnames[] = { "bits","width","height","depth", NULL };
380 char _ptemp[128];
381
382 self = self;
ba77f390 383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
9d6da64a 384 return NULL;
ba77f390
RD
385{
386 _arg0 = _obj0;
387}
9d6da64a 388{
474c48f9 389 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 390 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
9d6da64a 391
474c48f9 392 wxPyEndAllowThreads(__tstate);
9d6da64a
RD
393 if (PyErr_Occurred()) return NULL;
394} if (_result) {
395 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
396 _resultobj = Py_BuildValue("s",_ptemp);
397 } else {
398 Py_INCREF(Py_None);
399 _resultobj = Py_None;
400 }
401 return _resultobj;
402}
403
107e4716 404static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
405 PyObject * _resultobj;
406 wxMask * _result;
407 wxBitmap * _arg0;
408 wxColour * _arg1;
2d091820 409 PyObject * _argo0 = 0;
f6bcfd97
BP
410 wxColour temp;
411 PyObject * _obj1 = 0;
107e4716 412 char *_kwnames[] = { "bitmap","colour", NULL };
70551f47
RD
413 char _ptemp[128];
414
415 self = self;
f6bcfd97 416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
70551f47 417 return NULL;
2d091820
RD
418 if (_argo0) {
419 if (_argo0 == Py_None) { _arg0 = NULL; }
420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
422 return NULL;
423 }
424 }
f6bcfd97
BP
425{
426 _arg1 = &temp;
427 if (! wxColour_helper(_obj1, &_arg1))
70551f47 428 return NULL;
f6bcfd97 429}
ab9bc19b 430{
474c48f9 431 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 432 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
ab9bc19b 433
474c48f9 434 wxPyEndAllowThreads(__tstate);
4dfaa61e 435 if (PyErr_Occurred()) return NULL;
2d091820
RD
436} if (_result) {
437 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
438 _resultobj = Py_BuildValue("s",_ptemp);
439 } else {
440 Py_INCREF(Py_None);
441 _resultobj = Py_None;
442 }
70551f47
RD
443 return _resultobj;
444}
445
fbcadfca
RD
446static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
447 PyObject * _resultobj;
448 wxIcon * _result;
449 char *_kwnames[] = { NULL };
450 char _ptemp[128];
451
452 self = self;
453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
454 return NULL;
455{
474c48f9 456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 457 _result = (wxIcon *)wxEmptyIcon();
fbcadfca 458
474c48f9 459 wxPyEndAllowThreads(__tstate);
4dfaa61e 460 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
461} if (_result) {
462 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
463 _resultobj = Py_BuildValue("s",_ptemp);
464 } else {
465 Py_INCREF(Py_None);
466 _resultobj = Py_None;
467 }
468 return _resultobj;
469}
470
471static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
472 PyObject * _resultobj;
473 wxIcon * _result;
474 PyObject * _arg0;
475 PyObject * _obj0 = 0;
476 char *_kwnames[] = { "listOfStrings", NULL };
477 char _ptemp[128];
478
479 self = self;
480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
481 return NULL;
482{
483 _arg0 = _obj0;
484}
485{
474c48f9 486 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 487 _result = (wxIcon *)wxIconFromXPMData(_arg0);
fbcadfca 488
474c48f9 489 wxPyEndAllowThreads(__tstate);
4dfaa61e 490 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
491} if (_result) {
492 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
493 _resultobj = Py_BuildValue("s",_ptemp);
494 } else {
495 Py_INCREF(Py_None);
496 _resultobj = Py_None;
497 }
498 return _resultobj;
499}
500
4be61064
RD
501static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
502 PyObject * _resultobj;
503 wxIcon * _result;
504 wxBitmap * _arg0;
505 PyObject * _argo0 = 0;
506 char *_kwnames[] = { "bmp", NULL };
507 char _ptemp[128];
508
509 self = self;
510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
511 return NULL;
512 if (_argo0) {
513 if (_argo0 == Py_None) { _arg0 = NULL; }
514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
516 return NULL;
517 }
518 }
519{
520 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 521 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
4be61064
RD
522
523 wxPyEndAllowThreads(__tstate);
524 if (PyErr_Occurred()) return NULL;
525} if (_result) {
526 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
527 _resultobj = Py_BuildValue("s",_ptemp);
528 } else {
529 Py_INCREF(Py_None);
530 _resultobj = Py_None;
531 }
532 return _resultobj;
533}
534
107e4716 535static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
536 PyObject * _resultobj;
537 wxCursor * _result;
538 int _arg0;
107e4716 539 char *_kwnames[] = { "id", NULL };
70551f47
RD
540 char _ptemp[128];
541
542 self = self;
107e4716 543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
70551f47 544 return NULL;
ab9bc19b 545{
474c48f9 546 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 547 _result = (wxCursor *)wxPyStockCursor(_arg0);
ab9bc19b 548
474c48f9 549 wxPyEndAllowThreads(__tstate);
4dfaa61e 550 if (PyErr_Occurred()) return NULL;
2d091820
RD
551} if (_result) {
552 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
553 _resultobj = Py_BuildValue("s",_ptemp);
554 } else {
555 Py_INCREF(Py_None);
556 _resultobj = Py_None;
557 }
70551f47
RD
558 return _resultobj;
559}
560
107e4716 561static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
562 PyObject * _resultobj;
563 wxColour * _result;
564 wxString * _arg0;
565 PyObject * _obj0 = 0;
107e4716 566 char *_kwnames[] = { "colorName", NULL };
70551f47
RD
567 char _ptemp[128];
568
569 self = self;
107e4716 570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
70551f47
RD
571 return NULL;
572{
c8bc7bb8
RD
573 _arg0 = wxString_in_helper(_obj0);
574 if (_arg0 == NULL)
70551f47 575 return NULL;
70551f47 576}
ab9bc19b 577{
474c48f9 578 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 579 _result = (wxColour *)wxNamedColour(*_arg0);
ab9bc19b 580
474c48f9 581 wxPyEndAllowThreads(__tstate);
4dfaa61e 582 if (PyErr_Occurred()) return NULL;
2d091820
RD
583} if (_result) {
584 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
585 _resultobj = Py_BuildValue("s",_ptemp);
586 } else {
587 Py_INCREF(Py_None);
588 _resultobj = Py_None;
589 }
70551f47
RD
590{
591 if (_obj0)
592 delete _arg0;
593}
594 return _resultobj;
595}
596
107e4716 597static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
598 PyObject * _resultobj;
599 wxMemoryDC * _result;
600 wxDC * _arg0;
2d091820 601 PyObject * _argo0 = 0;
107e4716 602 char *_kwnames[] = { "oldDC", NULL };
70551f47
RD
603 char _ptemp[128];
604
605 self = self;
107e4716 606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
70551f47 607 return NULL;
2d091820
RD
608 if (_argo0) {
609 if (_argo0 == Py_None) { _arg0 = NULL; }
610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
612 return NULL;
613 }
614 }
ab9bc19b 615{
474c48f9 616 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 617 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
ab9bc19b 618
474c48f9 619 wxPyEndAllowThreads(__tstate);
4dfaa61e 620 if (PyErr_Occurred()) return NULL;
2d091820
RD
621} if (_result) {
622 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
623 _resultobj = Py_BuildValue("s",_ptemp);
624 } else {
625 Py_INCREF(Py_None);
626 _resultobj = Py_None;
627 }
70551f47
RD
628 return _resultobj;
629}
630
631static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
632
633 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
634 return 1;
635}
636
637static PyObject *_wrap_wxNORMAL_FONT_get() {
638 PyObject * pyobj;
639 char ptemp[128];
640
641 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
642 pyobj = PyString_FromString(ptemp);
643 return pyobj;
644}
645
646static int _wrap_wxSMALL_FONT_set(PyObject *val) {
647
648 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
649 return 1;
650}
651
652static PyObject *_wrap_wxSMALL_FONT_get() {
653 PyObject * pyobj;
654 char ptemp[128];
655
656 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
657 pyobj = PyString_FromString(ptemp);
658 return pyobj;
659}
660
661static int _wrap_wxITALIC_FONT_set(PyObject *val) {
662
663 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
664 return 1;
665}
666
667static PyObject *_wrap_wxITALIC_FONT_get() {
668 PyObject * pyobj;
669 char ptemp[128];
670
671 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
672 pyobj = PyString_FromString(ptemp);
673 return pyobj;
674}
675
676static int _wrap_wxSWISS_FONT_set(PyObject *val) {
677
678 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
679 return 1;
680}
681
682static PyObject *_wrap_wxSWISS_FONT_get() {
683 PyObject * pyobj;
684 char ptemp[128];
685
686 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
687 pyobj = PyString_FromString(ptemp);
688 return pyobj;
689}
690
691static int _wrap_wxRED_PEN_set(PyObject *val) {
692
693 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
694 return 1;
695}
696
697static PyObject *_wrap_wxRED_PEN_get() {
698 PyObject * pyobj;
699 char ptemp[128];
700
701 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
702 pyobj = PyString_FromString(ptemp);
703 return pyobj;
704}
705
706static int _wrap_wxCYAN_PEN_set(PyObject *val) {
707
708 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
709 return 1;
710}
711
712static PyObject *_wrap_wxCYAN_PEN_get() {
713 PyObject * pyobj;
714 char ptemp[128];
715
716 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
717 pyobj = PyString_FromString(ptemp);
718 return pyobj;
719}
720
721static int _wrap_wxGREEN_PEN_set(PyObject *val) {
722
723 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
724 return 1;
725}
726
727static PyObject *_wrap_wxGREEN_PEN_get() {
728 PyObject * pyobj;
729 char ptemp[128];
730
731 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
732 pyobj = PyString_FromString(ptemp);
733 return pyobj;
734}
735
736static int _wrap_wxBLACK_PEN_set(PyObject *val) {
737
738 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
739 return 1;
740}
741
742static PyObject *_wrap_wxBLACK_PEN_get() {
743 PyObject * pyobj;
744 char ptemp[128];
745
746 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
747 pyobj = PyString_FromString(ptemp);
748 return pyobj;
749}
750
751static int _wrap_wxWHITE_PEN_set(PyObject *val) {
752
753 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
754 return 1;
755}
756
757static PyObject *_wrap_wxWHITE_PEN_get() {
758 PyObject * pyobj;
759 char ptemp[128];
760
761 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
762 pyobj = PyString_FromString(ptemp);
763 return pyobj;
764}
765
766static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
767
768 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
769 return 1;
770}
771
772static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
773 PyObject * pyobj;
774 char ptemp[128];
775
776 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
777 pyobj = PyString_FromString(ptemp);
778 return pyobj;
779}
780
781static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
782
783 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
784 return 1;
785}
786
787static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
788 PyObject * pyobj;
789 char ptemp[128];
790
791 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
792 pyobj = PyString_FromString(ptemp);
793 return pyobj;
794}
795
796static int _wrap_wxGREY_PEN_set(PyObject *val) {
797
798 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
799 return 1;
800}
801
802static PyObject *_wrap_wxGREY_PEN_get() {
803 PyObject * pyobj;
804 char ptemp[128];
805
806 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
807 pyobj = PyString_FromString(ptemp);
808 return pyobj;
809}
810
811static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
812
813 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
814 return 1;
815}
816
817static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
818 PyObject * pyobj;
819 char ptemp[128];
820
821 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
822 pyobj = PyString_FromString(ptemp);
823 return pyobj;
824}
825
826static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
827
828 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
829 return 1;
830}
831
832static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
833 PyObject * pyobj;
834 char ptemp[128];
835
836 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
837 pyobj = PyString_FromString(ptemp);
838 return pyobj;
839}
840
841static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
842
843 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
844 return 1;
845}
846
847static PyObject *_wrap_wxBLUE_BRUSH_get() {
848 PyObject * pyobj;
849 char ptemp[128];
850
851 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
852 pyobj = PyString_FromString(ptemp);
853 return pyobj;
854}
855
856static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
857
858 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
859 return 1;
860}
861
862static PyObject *_wrap_wxGREEN_BRUSH_get() {
863 PyObject * pyobj;
864 char ptemp[128];
865
866 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
867 pyobj = PyString_FromString(ptemp);
868 return pyobj;
869}
870
871static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
872
873 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
874 return 1;
875}
876
877static PyObject *_wrap_wxWHITE_BRUSH_get() {
878 PyObject * pyobj;
879 char ptemp[128];
880
881 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
882 pyobj = PyString_FromString(ptemp);
883 return pyobj;
884}
885
886static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
887
888 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
889 return 1;
890}
891
892static PyObject *_wrap_wxBLACK_BRUSH_get() {
893 PyObject * pyobj;
894 char ptemp[128];
895
896 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
897 pyobj = PyString_FromString(ptemp);
898 return pyobj;
899}
900
901static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
902
903 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
904 return 1;
905}
906
907static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
908 PyObject * pyobj;
909 char ptemp[128];
910
911 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
912 pyobj = PyString_FromString(ptemp);
913 return pyobj;
914}
915
916static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
917
918 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
919 return 1;
920}
921
922static PyObject *_wrap_wxCYAN_BRUSH_get() {
923 PyObject * pyobj;
924 char ptemp[128];
925
926 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
927 pyobj = PyString_FromString(ptemp);
928 return pyobj;
929}
930
931static int _wrap_wxRED_BRUSH_set(PyObject *val) {
932
933 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
934 return 1;
935}
936
937static PyObject *_wrap_wxRED_BRUSH_get() {
938 PyObject * pyobj;
939 char ptemp[128];
940
941 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
942 pyobj = PyString_FromString(ptemp);
943 return pyobj;
944}
945
946static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
947
948 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
949 return 1;
950}
951
952static PyObject *_wrap_wxGREY_BRUSH_get() {
953 PyObject * pyobj;
954 char ptemp[128];
955
956 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
957 pyobj = PyString_FromString(ptemp);
958 return pyobj;
959}
960
961static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
962
963 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
964 return 1;
965}
966
967static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
968 PyObject * pyobj;
969 char ptemp[128];
970
971 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
972 pyobj = PyString_FromString(ptemp);
973 return pyobj;
974}
975
976static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
977
978 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
979 return 1;
980}
981
982static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
983 PyObject * pyobj;
984 char ptemp[128];
985
986 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
987 pyobj = PyString_FromString(ptemp);
988 return pyobj;
989}
990
991static int _wrap_wxBLACK_set(PyObject *val) {
992
993 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
994 return 1;
995}
996
997static PyObject *_wrap_wxBLACK_get() {
998 PyObject * pyobj;
999 char ptemp[128];
1000
1001 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
1002 pyobj = PyString_FromString(ptemp);
1003 return pyobj;
1004}
1005
1006static int _wrap_wxWHITE_set(PyObject *val) {
1007
1008 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1009 return 1;
1010}
1011
1012static PyObject *_wrap_wxWHITE_get() {
1013 PyObject * pyobj;
1014 char ptemp[128];
1015
1016 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1017 pyobj = PyString_FromString(ptemp);
1018 return pyobj;
1019}
1020
1021static int _wrap_wxRED_set(PyObject *val) {
1022
1023 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1024 return 1;
1025}
1026
1027static PyObject *_wrap_wxRED_get() {
1028 PyObject * pyobj;
1029 char ptemp[128];
1030
1031 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1032 pyobj = PyString_FromString(ptemp);
1033 return pyobj;
1034}
1035
1036static int _wrap_wxBLUE_set(PyObject *val) {
1037
1038 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1039 return 1;
1040}
1041
1042static PyObject *_wrap_wxBLUE_get() {
1043 PyObject * pyobj;
1044 char ptemp[128];
1045
1046 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1047 pyobj = PyString_FromString(ptemp);
1048 return pyobj;
1049}
1050
1051static int _wrap_wxGREEN_set(PyObject *val) {
1052
1053 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1054 return 1;
1055}
1056
1057static PyObject *_wrap_wxGREEN_get() {
1058 PyObject * pyobj;
1059 char ptemp[128];
1060
1061 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1062 pyobj = PyString_FromString(ptemp);
1063 return pyobj;
1064}
1065
1066static int _wrap_wxCYAN_set(PyObject *val) {
1067
1068 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1069 return 1;
1070}
1071
1072static PyObject *_wrap_wxCYAN_get() {
1073 PyObject * pyobj;
1074 char ptemp[128];
1075
1076 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1077 pyobj = PyString_FromString(ptemp);
1078 return pyobj;
1079}
1080
1081static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1082
1083 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1084 return 1;
1085}
1086
1087static PyObject *_wrap_wxLIGHT_GREY_get() {
1088 PyObject * pyobj;
1089 char ptemp[128];
1090
1091 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1092 pyobj = PyString_FromString(ptemp);
1093 return pyobj;
1094}
1095
1096static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1097
1098 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1099 return 1;
1100}
1101
1102static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1103 PyObject * pyobj;
1104 char ptemp[128];
1105
1106 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1107 pyobj = PyString_FromString(ptemp);
1108 return pyobj;
1109}
1110
1111static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1112
1113 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1114 return 1;
1115}
1116
1117static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1118 PyObject * pyobj;
1119 char ptemp[128];
1120
1121 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1122 pyobj = PyString_FromString(ptemp);
1123 return pyobj;
1124}
1125
1126static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1127
1128 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1129 return 1;
1130}
1131
1132static PyObject *_wrap_wxCROSS_CURSOR_get() {
1133 PyObject * pyobj;
1134 char ptemp[128];
1135
1136 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1137 pyobj = PyString_FromString(ptemp);
1138 return pyobj;
1139}
1140
1141static int _wrap_wxNullBitmap_set(PyObject *val) {
1142
1143 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1144 return 1;
1145}
1146
1147static PyObject *_wrap_wxNullBitmap_get() {
1148 PyObject * pyobj;
1149 char ptemp[128];
1150
1151 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1152 pyobj = PyString_FromString(ptemp);
1153 return pyobj;
1154}
1155
1156static int _wrap_wxNullIcon_set(PyObject *val) {
1157
1158 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1159 return 1;
1160}
1161
1162static PyObject *_wrap_wxNullIcon_get() {
1163 PyObject * pyobj;
1164 char ptemp[128];
1165
1166 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1167 pyobj = PyString_FromString(ptemp);
1168 return pyobj;
1169}
1170
1171static int _wrap_wxNullCursor_set(PyObject *val) {
1172
1173 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1174 return 1;
1175}
1176
1177static PyObject *_wrap_wxNullCursor_get() {
1178 PyObject * pyobj;
1179 char ptemp[128];
1180
1181 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1182 pyobj = PyString_FromString(ptemp);
1183 return pyobj;
1184}
1185
1186static int _wrap_wxNullPen_set(PyObject *val) {
1187
1188 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1189 return 1;
1190}
1191
1192static PyObject *_wrap_wxNullPen_get() {
1193 PyObject * pyobj;
1194 char ptemp[128];
1195
1196 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1197 pyobj = PyString_FromString(ptemp);
1198 return pyobj;
1199}
1200
1201static int _wrap_wxNullBrush_set(PyObject *val) {
1202
1203 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1204 return 1;
1205}
1206
1207static PyObject *_wrap_wxNullBrush_get() {
1208 PyObject * pyobj;
1209 char ptemp[128];
1210
1211 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1212 pyobj = PyString_FromString(ptemp);
1213 return pyobj;
1214}
1215
1216static int _wrap_wxNullPalette_set(PyObject *val) {
1217
1218 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1219 return 1;
1220}
1221
1222static PyObject *_wrap_wxNullPalette_get() {
1223 PyObject * pyobj;
1224 char ptemp[128];
1225
1226 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1227 pyobj = PyString_FromString(ptemp);
1228 return pyobj;
1229}
1230
1231static int _wrap_wxNullFont_set(PyObject *val) {
1232
1233 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1234 return 1;
1235}
1236
1237static PyObject *_wrap_wxNullFont_get() {
1238 PyObject * pyobj;
1239 char ptemp[128];
1240
1241 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1242 pyobj = PyString_FromString(ptemp);
1243 return pyobj;
1244}
1245
1246static int _wrap_wxNullColour_set(PyObject *val) {
1247
1248 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1249 return 1;
1250}
1251
1252static PyObject *_wrap_wxNullColour_get() {
1253 PyObject * pyobj;
1254 char ptemp[128];
1255
1256 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1257 pyobj = PyString_FromString(ptemp);
1258 return pyobj;
1259}
1260
5e40f9dd
RD
1261static int _wrap_wxTheFontList_set(PyObject *val) {
1262
1263 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1264 return 1;
1265}
1266
1267static PyObject *_wrap_wxTheFontList_get() {
1268 PyObject * pyobj;
1269 char ptemp[128];
1270
1271 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1272 pyobj = PyString_FromString(ptemp);
1273 return pyobj;
1274}
1275
1276static int _wrap_wxThePenList_set(PyObject *val) {
1277
1278 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1279 return 1;
1280}
1281
1282static PyObject *_wrap_wxThePenList_get() {
1283 PyObject * pyobj;
1284 char ptemp[128];
1285
1286 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1287 pyobj = PyString_FromString(ptemp);
1288 return pyobj;
1289}
1290
1291static int _wrap_wxTheBrushList_set(PyObject *val) {
1292
1293 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1294 return 1;
1295}
1296
1297static PyObject *_wrap_wxTheBrushList_get() {
1298 PyObject * pyobj;
1299 char ptemp[128];
1300
65191ae8 1301 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
5e40f9dd
RD
1302 pyobj = PyString_FromString(ptemp);
1303 return pyobj;
1304}
1305
1306static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1307
1308 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1309 return 1;
1310}
1311
1312static PyObject *_wrap_wxTheColourDatabase_get() {
1313 PyObject * pyobj;
1314 char ptemp[128];
1315
1316 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1317 pyobj = PyString_FromString(ptemp);
1318 return pyobj;
1319}
1320
9df61a29
RD
1321static void *SwigwxGDIObjectTowxObject(void *ptr) {
1322 wxGDIObject *src;
1323 wxObject *dest;
1324 src = (wxGDIObject *) ptr;
1325 dest = (wxObject *) src;
1326 return (void *) dest;
1327}
1328
1329#define new_wxGDIObject() (new wxGDIObject())
1330static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1331 PyObject * _resultobj;
1332 wxGDIObject * _result;
1333 char *_kwnames[] = { NULL };
1334 char _ptemp[128];
1335
1336 self = self;
1337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1338 return NULL;
1339{
474c48f9 1340 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1341 _result = (wxGDIObject *)new_wxGDIObject();
9df61a29 1342
474c48f9 1343 wxPyEndAllowThreads(__tstate);
4dfaa61e 1344 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1345} if (_result) {
1346 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1347 _resultobj = Py_BuildValue("s",_ptemp);
1348 } else {
1349 Py_INCREF(Py_None);
1350 _resultobj = Py_None;
1351 }
1352 return _resultobj;
1353}
1354
1355#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1356static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject * _resultobj;
1358 wxGDIObject * _arg0;
1359 PyObject * _argo0 = 0;
1360 char *_kwnames[] = { "self", NULL };
1361
1362 self = self;
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1364 return NULL;
1365 if (_argo0) {
1366 if (_argo0 == Py_None) { _arg0 = NULL; }
1367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1369 return NULL;
1370 }
1371 }
1372{
474c48f9 1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1374 delete_wxGDIObject(_arg0);
9df61a29 1375
474c48f9 1376 wxPyEndAllowThreads(__tstate);
4dfaa61e 1377 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1378} Py_INCREF(Py_None);
1379 _resultobj = Py_None;
1380 return _resultobj;
1381}
1382
1383#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1384static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject * _resultobj;
1386 bool _result;
1387 wxGDIObject * _arg0;
1388 PyObject * _argo0 = 0;
1389 char *_kwnames[] = { "self", NULL };
1390
1391 self = self;
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1393 return NULL;
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1398 return NULL;
1399 }
1400 }
1401{
474c48f9 1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1403 _result = (bool )wxGDIObject_GetVisible(_arg0);
9df61a29 1404
474c48f9 1405 wxPyEndAllowThreads(__tstate);
4dfaa61e 1406 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1407} _resultobj = Py_BuildValue("i",_result);
1408 return _resultobj;
1409}
1410
1411#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1412static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 wxGDIObject * _arg0;
1415 bool _arg1;
1416 PyObject * _argo0 = 0;
1417 int tempbool1;
1418 char *_kwnames[] = { "self","visible", NULL };
1419
1420 self = self;
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1422 return NULL;
1423 if (_argo0) {
1424 if (_argo0 == Py_None) { _arg0 = NULL; }
1425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1427 return NULL;
1428 }
1429 }
1430 _arg1 = (bool ) tempbool1;
1431{
474c48f9 1432 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1433 wxGDIObject_SetVisible(_arg0,_arg1);
9df61a29 1434
474c48f9 1435 wxPyEndAllowThreads(__tstate);
4dfaa61e 1436 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1437} Py_INCREF(Py_None);
1438 _resultobj = Py_None;
1439 return _resultobj;
1440}
1441
1442#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1443static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject * _resultobj;
1445 bool _result;
1446 wxGDIObject * _arg0;
1447 PyObject * _argo0 = 0;
1448 char *_kwnames[] = { "self", NULL };
1449
1450 self = self;
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1452 return NULL;
1453 if (_argo0) {
1454 if (_argo0 == Py_None) { _arg0 = NULL; }
1455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1457 return NULL;
1458 }
1459 }
1460{
474c48f9 1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1462 _result = (bool )wxGDIObject_IsNull(_arg0);
9df61a29 1463
474c48f9 1464 wxPyEndAllowThreads(__tstate);
4dfaa61e 1465 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1466} _resultobj = Py_BuildValue("i",_result);
1467 return _resultobj;
1468}
1469
1470static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1471 wxBitmap *src;
1472 wxGDIObject *dest;
1473 src = (wxBitmap *) ptr;
1474 dest = (wxGDIObject *) src;
1475 return (void *) dest;
1476}
1477
1478static void *SwigwxBitmapTowxObject(void *ptr) {
1479 wxBitmap *src;
1480 wxObject *dest;
1481 src = (wxBitmap *) ptr;
1482 dest = (wxObject *) src;
1483 return (void *) dest;
1484}
1485
70551f47 1486#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
107e4716 1487static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1488 PyObject * _resultobj;
1489 wxBitmap * _result;
1490 wxString * _arg0;
f0972d1e 1491 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
70551f47 1492 PyObject * _obj0 = 0;
107e4716 1493 char *_kwnames[] = { "name","type", NULL };
70551f47
RD
1494 char _ptemp[128];
1495
1496 self = self;
5c0282d5 1497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
70551f47
RD
1498 return NULL;
1499{
c8bc7bb8
RD
1500 _arg0 = wxString_in_helper(_obj0);
1501 if (_arg0 == NULL)
70551f47 1502 return NULL;
70551f47 1503}
ab9bc19b 1504{
474c48f9 1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1506 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
ab9bc19b 1507
474c48f9 1508 wxPyEndAllowThreads(__tstate);
4dfaa61e 1509 if (PyErr_Occurred()) return NULL;
2d091820
RD
1510} if (_result) {
1511 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1512 _resultobj = Py_BuildValue("s",_ptemp);
1513 } else {
1514 Py_INCREF(Py_None);
1515 _resultobj = Py_None;
1516 }
70551f47
RD
1517{
1518 if (_obj0)
1519 delete _arg0;
1520}
1521 return _resultobj;
1522}
1523
1524#define delete_wxBitmap(_swigobj) (delete _swigobj)
107e4716 1525static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1526 PyObject * _resultobj;
1527 wxBitmap * _arg0;
2d091820 1528 PyObject * _argo0 = 0;
107e4716 1529 char *_kwnames[] = { "self", NULL };
70551f47
RD
1530
1531 self = self;
107e4716 1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
70551f47 1533 return NULL;
2d091820
RD
1534 if (_argo0) {
1535 if (_argo0 == Py_None) { _arg0 = NULL; }
1536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1538 return NULL;
1539 }
1540 }
ab9bc19b 1541{
474c48f9 1542 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1543 delete_wxBitmap(_arg0);
ab9bc19b 1544
474c48f9 1545 wxPyEndAllowThreads(__tstate);
4dfaa61e 1546 if (PyErr_Occurred()) return NULL;
ab9bc19b 1547} Py_INCREF(Py_None);
70551f47
RD
1548 _resultobj = Py_None;
1549 return _resultobj;
1550}
1551
70551f47 1552#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
107e4716 1553static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1554 PyObject * _resultobj;
1555 wxPalette * _result;
1556 wxBitmap * _arg0;
2d091820 1557 PyObject * _argo0 = 0;
107e4716 1558 char *_kwnames[] = { "self", NULL };
70551f47
RD
1559 char _ptemp[128];
1560
1561 self = self;
107e4716 1562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
70551f47 1563 return NULL;
2d091820
RD
1564 if (_argo0) {
1565 if (_argo0 == Py_None) { _arg0 = NULL; }
1566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1568 return NULL;
1569 }
1570 }
ab9bc19b 1571{
474c48f9 1572 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1573 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
ab9bc19b 1574
474c48f9 1575 wxPyEndAllowThreads(__tstate);
4dfaa61e 1576 if (PyErr_Occurred()) return NULL;
2d091820
RD
1577} if (_result) {
1578 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1579 _resultobj = Py_BuildValue("s",_ptemp);
1580 } else {
1581 Py_INCREF(Py_None);
1582 _resultobj = Py_None;
1583 }
70551f47
RD
1584 return _resultobj;
1585}
1586
1587#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
107e4716 1588static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1589 PyObject * _resultobj;
1590 wxMask * _result;
1591 wxBitmap * _arg0;
2d091820 1592 PyObject * _argo0 = 0;
107e4716 1593 char *_kwnames[] = { "self", NULL };
70551f47
RD
1594 char _ptemp[128];
1595
1596 self = self;
107e4716 1597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
70551f47 1598 return NULL;
2d091820
RD
1599 if (_argo0) {
1600 if (_argo0 == Py_None) { _arg0 = NULL; }
1601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1603 return NULL;
1604 }
1605 }
ab9bc19b 1606{
474c48f9 1607 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1608 _result = (wxMask *)wxBitmap_GetMask(_arg0);
ab9bc19b 1609
474c48f9 1610 wxPyEndAllowThreads(__tstate);
4dfaa61e 1611 if (PyErr_Occurred()) return NULL;
2d091820
RD
1612} if (_result) {
1613 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1614 _resultobj = Py_BuildValue("s",_ptemp);
1615 } else {
1616 Py_INCREF(Py_None);
1617 _resultobj = Py_None;
1618 }
70551f47
RD
1619 return _resultobj;
1620}
1621
56f5d962
RD
1622#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1623static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1624 PyObject * _resultobj;
56f5d962 1625 bool _result;
70551f47 1626 wxBitmap * _arg0;
56f5d962 1627 wxString * _arg1;
f0972d1e 1628 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
2d091820 1629 PyObject * _argo0 = 0;
56f5d962 1630 PyObject * _obj1 = 0;
5c0282d5 1631 char *_kwnames[] = { "self","name","type", NULL };
70551f47
RD
1632
1633 self = self;
5c0282d5 1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 1635 return NULL;
2d091820
RD
1636 if (_argo0) {
1637 if (_argo0 == Py_None) { _arg0 = NULL; }
1638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
70551f47
RD
1640 return NULL;
1641 }
1642 }
56f5d962 1643{
c8bc7bb8
RD
1644 _arg1 = wxString_in_helper(_obj1);
1645 if (_arg1 == NULL)
56f5d962 1646 return NULL;
56f5d962 1647}
ab9bc19b 1648{
474c48f9 1649 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1650 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 1651
474c48f9 1652 wxPyEndAllowThreads(__tstate);
4dfaa61e 1653 if (PyErr_Occurred()) return NULL;
ab9bc19b 1654} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
1655{
1656 if (_obj1)
1657 delete _arg1;
1658}
70551f47
RD
1659 return _resultobj;
1660}
1661
56f5d962
RD
1662#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1663static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1664 PyObject * _resultobj;
1665 bool _result;
1666 wxBitmap * _arg0;
1667 wxString * _arg1;
5c0282d5 1668 wxBitmapType _arg2;
56f5d962 1669 wxPalette * _arg3 = (wxPalette *) NULL;
2d091820 1670 PyObject * _argo0 = 0;
70551f47 1671 PyObject * _obj1 = 0;
56f5d962
RD
1672 PyObject * _argo3 = 0;
1673 char *_kwnames[] = { "self","name","type","palette", NULL };
70551f47
RD
1674
1675 self = self;
56f5d962 1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
70551f47 1677 return NULL;
2d091820
RD
1678 if (_argo0) {
1679 if (_argo0 == Py_None) { _arg0 = NULL; }
1680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
70551f47
RD
1682 return NULL;
1683 }
1684 }
1685{
c8bc7bb8
RD
1686 _arg1 = wxString_in_helper(_obj1);
1687 if (_arg1 == NULL)
2cd2fac8 1688 return NULL;
70551f47 1689}
56f5d962
RD
1690 if (_argo3) {
1691 if (_argo3 == Py_None) { _arg3 = NULL; }
1692 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1693 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1694 return NULL;
1695 }
1696 }
ab9bc19b 1697{
474c48f9 1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1699 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1700
474c48f9 1701 wxPyEndAllowThreads(__tstate);
4dfaa61e 1702 if (PyErr_Occurred()) return NULL;
ab9bc19b 1703} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1704{
1705 if (_obj1)
1706 delete _arg1;
1707}
1708 return _resultobj;
1709}
1710
56f5d962
RD
1711#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1712static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject * _resultobj;
1714 wxBitmap * _arg0;
1715 wxMask * _arg1;
1716 PyObject * _argo0 = 0;
1717 PyObject * _argo1 = 0;
1718 char *_kwnames[] = { "self","mask", NULL };
1719
1720 self = self;
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1722 return NULL;
1723 if (_argo0) {
1724 if (_argo0 == Py_None) { _arg0 = NULL; }
1725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1727 return NULL;
1728 }
1729 }
1730 if (_argo1) {
1731 if (_argo1 == Py_None) { _arg1 = NULL; }
1732 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1733 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1734 return NULL;
1735 }
1736 }
1737{
474c48f9 1738 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1739 wxBitmap_SetMask(_arg0,_arg1);
56f5d962 1740
474c48f9 1741 wxPyEndAllowThreads(__tstate);
4dfaa61e 1742 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1743} Py_INCREF(Py_None);
1744 _resultobj = Py_None;
1745 return _resultobj;
1746}
1747
70551f47 1748#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
107e4716 1749static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1750 PyObject * _resultobj;
1751 bool _result;
1752 wxBitmap * _arg0;
2d091820 1753 PyObject * _argo0 = 0;
107e4716 1754 char *_kwnames[] = { "self", NULL };
70551f47
RD
1755
1756 self = self;
107e4716 1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
70551f47 1758 return NULL;
2d091820
RD
1759 if (_argo0) {
1760 if (_argo0 == Py_None) { _arg0 = NULL; }
1761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1763 return NULL;
1764 }
1765 }
ab9bc19b 1766{
474c48f9 1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1768 _result = (bool )wxBitmap_Ok(_arg0);
ab9bc19b 1769
474c48f9 1770 wxPyEndAllowThreads(__tstate);
4dfaa61e 1771 if (PyErr_Occurred()) return NULL;
ab9bc19b 1772} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1773 return _resultobj;
1774}
1775
56f5d962
RD
1776#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1777static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1778 PyObject * _resultobj;
56f5d962 1779 int _result;
70551f47 1780 wxBitmap * _arg0;
2d091820 1781 PyObject * _argo0 = 0;
56f5d962 1782 char *_kwnames[] = { "self", NULL };
70551f47
RD
1783
1784 self = self;
56f5d962 1785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
70551f47 1786 return NULL;
2d091820
RD
1787 if (_argo0) {
1788 if (_argo0 == Py_None) { _arg0 = NULL; }
1789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
70551f47
RD
1791 return NULL;
1792 }
1793 }
1794{
474c48f9 1795 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1796 _result = (int )wxBitmap_GetWidth(_arg0);
56f5d962 1797
474c48f9 1798 wxPyEndAllowThreads(__tstate);
4dfaa61e 1799 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1800} _resultobj = Py_BuildValue("i",_result);
1801 return _resultobj;
70551f47 1802}
56f5d962
RD
1803
1804#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1805static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1806 PyObject * _resultobj;
1807 int _result;
1808 wxBitmap * _arg0;
1809 PyObject * _argo0 = 0;
1810 char *_kwnames[] = { "self", NULL };
1811
1812 self = self;
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1814 return NULL;
1815 if (_argo0) {
1816 if (_argo0 == Py_None) { _arg0 = NULL; }
1817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
70551f47
RD
1819 return NULL;
1820 }
1821 }
ab9bc19b 1822{
474c48f9 1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1824 _result = (int )wxBitmap_GetHeight(_arg0);
ab9bc19b 1825
474c48f9 1826 wxPyEndAllowThreads(__tstate);
4dfaa61e 1827 if (PyErr_Occurred()) return NULL;
ab9bc19b 1828} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1829 return _resultobj;
1830}
1831
56f5d962
RD
1832#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1833static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1834 PyObject * _resultobj;
56f5d962 1835 int _result;
70551f47 1836 wxBitmap * _arg0;
2d091820 1837 PyObject * _argo0 = 0;
56f5d962 1838 char *_kwnames[] = { "self", NULL };
70551f47
RD
1839
1840 self = self;
56f5d962 1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
70551f47 1842 return NULL;
2d091820
RD
1843 if (_argo0) {
1844 if (_argo0 == Py_None) { _arg0 = NULL; }
1845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
70551f47
RD
1847 return NULL;
1848 }
1849 }
ab9bc19b 1850{
474c48f9 1851 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1852 _result = (int )wxBitmap_GetDepth(_arg0);
ab9bc19b 1853
474c48f9 1854 wxPyEndAllowThreads(__tstate);
4dfaa61e 1855 if (PyErr_Occurred()) return NULL;
56f5d962 1856} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1857 return _resultobj;
1858}
1859
56f5d962
RD
1860#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1861static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1862 PyObject * _resultobj;
1863 wxBitmap * _arg0;
1864 int _arg1;
2d091820 1865 PyObject * _argo0 = 0;
56f5d962 1866 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
1867
1868 self = self;
56f5d962 1869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 1870 return NULL;
2d091820
RD
1871 if (_argo0) {
1872 if (_argo0 == Py_None) { _arg0 = NULL; }
1873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
70551f47
RD
1875 return NULL;
1876 }
1877 }
ab9bc19b 1878{
474c48f9 1879 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1880 wxBitmap_SetWidth(_arg0,_arg1);
ab9bc19b 1881
474c48f9 1882 wxPyEndAllowThreads(__tstate);
4dfaa61e 1883 if (PyErr_Occurred()) return NULL;
ab9bc19b 1884} Py_INCREF(Py_None);
70551f47
RD
1885 _resultobj = Py_None;
1886 return _resultobj;
1887}
1888
56f5d962
RD
1889#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1890static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1891 PyObject * _resultobj;
1892 wxBitmap * _arg0;
56f5d962 1893 int _arg1;
2d091820 1894 PyObject * _argo0 = 0;
56f5d962 1895 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
1896
1897 self = self;
56f5d962 1898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 1899 return NULL;
2d091820
RD
1900 if (_argo0) {
1901 if (_argo0 == Py_None) { _arg0 = NULL; }
1902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
70551f47
RD
1904 return NULL;
1905 }
1906 }
ab9bc19b 1907{
474c48f9 1908 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1909 wxBitmap_SetHeight(_arg0,_arg1);
ab9bc19b 1910
474c48f9 1911 wxPyEndAllowThreads(__tstate);
4dfaa61e 1912 if (PyErr_Occurred()) return NULL;
ab9bc19b 1913} Py_INCREF(Py_None);
70551f47
RD
1914 _resultobj = Py_None;
1915 return _resultobj;
1916}
1917
56f5d962
RD
1918#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1919static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1920 PyObject * _resultobj;
1921 wxBitmap * _arg0;
1922 int _arg1;
2d091820 1923 PyObject * _argo0 = 0;
56f5d962 1924 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
1925
1926 self = self;
56f5d962 1927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 1928 return NULL;
2d091820
RD
1929 if (_argo0) {
1930 if (_argo0 == Py_None) { _arg0 = NULL; }
1931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
70551f47
RD
1933 return NULL;
1934 }
1935 }
ab9bc19b 1936{
474c48f9 1937 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1938 wxBitmap_SetDepth(_arg0,_arg1);
ab9bc19b 1939
474c48f9 1940 wxPyEndAllowThreads(__tstate);
4dfaa61e 1941 if (PyErr_Occurred()) return NULL;
ab9bc19b 1942} Py_INCREF(Py_None);
70551f47
RD
1943 _resultobj = Py_None;
1944 return _resultobj;
1945}
1946
f6bcfd97
BP
1947#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1948static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject * _resultobj;
1950 wxBitmap * _result;
1951 wxBitmap * _arg0;
1952 wxRect * _arg1;
1953 PyObject * _argo0 = 0;
1954 wxRect temp;
1955 PyObject * _obj1 = 0;
1956 char *_kwnames[] = { "self","rect", NULL };
1957 char _ptemp[128];
1958
1959 self = self;
1960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1961 return NULL;
1962 if (_argo0) {
1963 if (_argo0 == Py_None) { _arg0 = NULL; }
1964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1966 return NULL;
1967 }
1968 }
1969{
1970 _arg1 = &temp;
1971 if (! wxRect_helper(_obj1, &_arg1))
1972 return NULL;
1973}
1974{
474c48f9 1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1976 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
f6bcfd97 1977
474c48f9 1978 wxPyEndAllowThreads(__tstate);
4dfaa61e 1979 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1980} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1981 _resultobj = Py_BuildValue("s",_ptemp);
1982 return _resultobj;
1983}
1984
65191ae8
RD
1985#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1986static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1987 PyObject * _resultobj;
1988 bool _result;
1989 wxBitmap * _arg0;
1990 wxIcon * _arg1;
1991 PyObject * _argo0 = 0;
1992 PyObject * _argo1 = 0;
1993 char *_kwnames[] = { "self","icon", NULL };
1994
1995 self = self;
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
1997 return NULL;
1998 if (_argo0) {
1999 if (_argo0 == Py_None) { _arg0 = NULL; }
2000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2002 return NULL;
2003 }
2004 }
2005 if (_argo1) {
2006 if (_argo1 == Py_None) { _arg1 = NULL; }
2007 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2008 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2009 return NULL;
2010 }
2011 }
2012{
474c48f9 2013 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2014 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
65191ae8 2015
474c48f9 2016 wxPyEndAllowThreads(__tstate);
65191ae8
RD
2017 if (PyErr_Occurred()) return NULL;
2018} _resultobj = Py_BuildValue("i",_result);
2019 return _resultobj;
2020}
2021
9df61a29
RD
2022static void *SwigwxMaskTowxObject(void *ptr) {
2023 wxMask *src;
2024 wxObject *dest;
2025 src = (wxMask *) ptr;
2026 dest = (wxObject *) src;
2027 return (void *) dest;
2028}
2029
70551f47 2030#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
107e4716 2031static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2032 PyObject * _resultobj;
2033 wxMask * _result;
2034 wxBitmap * _arg0;
2d091820 2035 PyObject * _argo0 = 0;
107e4716 2036 char *_kwnames[] = { "bitmap", NULL };
70551f47
RD
2037 char _ptemp[128];
2038
2039 self = self;
107e4716 2040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
70551f47 2041 return NULL;
2d091820
RD
2042 if (_argo0) {
2043 if (_argo0 == Py_None) { _arg0 = NULL; }
2044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
2045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2046 return NULL;
2047 }
2048 }
ab9bc19b 2049{
474c48f9 2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2051 _result = (wxMask *)new_wxMask(*_arg0);
ab9bc19b 2052
474c48f9 2053 wxPyEndAllowThreads(__tstate);
4dfaa61e 2054 if (PyErr_Occurred()) return NULL;
2d091820
RD
2055} if (_result) {
2056 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2057 _resultobj = Py_BuildValue("s",_ptemp);
2058 } else {
2059 Py_INCREF(Py_None);
2060 _resultobj = Py_None;
2061 }
70551f47
RD
2062 return _resultobj;
2063}
2064
fbcadfca
RD
2065static void wxMask_Destroy(wxMask *self) { delete self; }
2066static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2067 PyObject * _resultobj;
2068 wxMask * _arg0;
2069 PyObject * _argo0 = 0;
2070 char *_kwnames[] = { "self", NULL };
2071
2072 self = self;
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2074 return NULL;
2075 if (_argo0) {
2076 if (_argo0 == Py_None) { _arg0 = NULL; }
2077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2079 return NULL;
2080 }
2081 }
2082{
474c48f9 2083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2084 wxMask_Destroy(_arg0);
fbcadfca 2085
474c48f9 2086 wxPyEndAllowThreads(__tstate);
4dfaa61e 2087 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2088} Py_INCREF(Py_None);
2089 _resultobj = Py_None;
2090 return _resultobj;
2091}
2092
9df61a29
RD
2093static void *SwigwxIconTowxGDIObject(void *ptr) {
2094 wxIcon *src;
2095 wxGDIObject *dest;
2096 src = (wxIcon *) ptr;
2097 dest = (wxGDIObject *) src;
2098 return (void *) dest;
2099}
2100
2101static void *SwigwxIconTowxObject(void *ptr) {
2102 wxIcon *src;
2103 wxObject *dest;
2104 src = (wxIcon *) ptr;
2105 dest = (wxObject *) src;
2106 return (void *) dest;
2107}
2108
8bf5d46e 2109#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 2110static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
2111 PyObject * _resultobj;
2112 wxIcon * _result;
2113 wxString * _arg0;
2114 long _arg1;
2d091820
RD
2115 int _arg2 = (int ) -1;
2116 int _arg3 = (int ) -1;
8bf5d46e 2117 PyObject * _obj0 = 0;
107e4716 2118 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
8bf5d46e
RD
2119 char _ptemp[128];
2120
2121 self = self;
107e4716 2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
8bf5d46e
RD
2123 return NULL;
2124{
c8bc7bb8
RD
2125 _arg0 = wxString_in_helper(_obj0);
2126 if (_arg0 == NULL)
8bf5d46e 2127 return NULL;
8bf5d46e
RD
2128}
2129{
474c48f9 2130 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2131 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
8bf5d46e 2132
474c48f9 2133 wxPyEndAllowThreads(__tstate);
4dfaa61e 2134 if (PyErr_Occurred()) return NULL;
2d091820
RD
2135} if (_result) {
2136 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2137 _resultobj = Py_BuildValue("s",_ptemp);
2138 } else {
2139 Py_INCREF(Py_None);
2140 _resultobj = Py_None;
2141 }
8bf5d46e
RD
2142{
2143 if (_obj0)
2144 delete _arg0;
2145}
2146 return _resultobj;
2147}
2148
70551f47 2149#define delete_wxIcon(_swigobj) (delete _swigobj)
107e4716 2150static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2151 PyObject * _resultobj;
2152 wxIcon * _arg0;
2d091820 2153 PyObject * _argo0 = 0;
107e4716 2154 char *_kwnames[] = { "self", NULL };
70551f47
RD
2155
2156 self = self;
107e4716 2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
70551f47 2158 return NULL;
2d091820
RD
2159 if (_argo0) {
2160 if (_argo0 == Py_None) { _arg0 = NULL; }
2161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2163 return NULL;
2164 }
2165 }
ab9bc19b 2166{
474c48f9 2167 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2168 delete_wxIcon(_arg0);
ab9bc19b 2169
474c48f9 2170 wxPyEndAllowThreads(__tstate);
4dfaa61e 2171 if (PyErr_Occurred()) return NULL;
ab9bc19b 2172} Py_INCREF(Py_None);
70551f47
RD
2173 _resultobj = Py_None;
2174 return _resultobj;
2175}
2176
56f5d962
RD
2177#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2178static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2179 PyObject * _resultobj;
56f5d962 2180 bool _result;
70551f47 2181 wxIcon * _arg0;
56f5d962
RD
2182 wxString * _arg1;
2183 long _arg2;
2d091820 2184 PyObject * _argo0 = 0;
56f5d962
RD
2185 PyObject * _obj1 = 0;
2186 char *_kwnames[] = { "self","name","flags", NULL };
70551f47
RD
2187
2188 self = self;
56f5d962 2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 2190 return NULL;
2d091820
RD
2191 if (_argo0) {
2192 if (_argo0 == Py_None) { _arg0 = NULL; }
2193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
70551f47
RD
2195 return NULL;
2196 }
2197 }
56f5d962 2198{
c8bc7bb8
RD
2199 _arg1 = wxString_in_helper(_obj1);
2200 if (_arg1 == NULL)
2cd2fac8 2201 return NULL;
56f5d962 2202}
ab9bc19b 2203{
474c48f9 2204 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2205 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 2206
474c48f9 2207 wxPyEndAllowThreads(__tstate);
4dfaa61e 2208 if (PyErr_Occurred()) return NULL;
ab9bc19b 2209} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
2210{
2211 if (_obj1)
2212 delete _arg1;
2213}
70551f47
RD
2214 return _resultobj;
2215}
2216
56f5d962
RD
2217#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2218static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2219 PyObject * _resultobj;
56f5d962 2220 bool _result;
70551f47 2221 wxIcon * _arg0;
2d091820 2222 PyObject * _argo0 = 0;
107e4716 2223 char *_kwnames[] = { "self", NULL };
70551f47
RD
2224
2225 self = self;
56f5d962 2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
70551f47 2227 return NULL;
2d091820
RD
2228 if (_argo0) {
2229 if (_argo0 == Py_None) { _arg0 = NULL; }
2230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
70551f47
RD
2232 return NULL;
2233 }
2234 }
ab9bc19b 2235{
474c48f9 2236 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2237 _result = (bool )wxIcon_Ok(_arg0);
ab9bc19b 2238
474c48f9 2239 wxPyEndAllowThreads(__tstate);
4dfaa61e 2240 if (PyErr_Occurred()) return NULL;
ab9bc19b 2241} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2242 return _resultobj;
2243}
2244
2245#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2246static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2247 PyObject * _resultobj;
2248 int _result;
2249 wxIcon * _arg0;
2d091820 2250 PyObject * _argo0 = 0;
107e4716 2251 char *_kwnames[] = { "self", NULL };
70551f47
RD
2252
2253 self = self;
107e4716 2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
70551f47 2255 return NULL;
2d091820
RD
2256 if (_argo0) {
2257 if (_argo0 == Py_None) { _arg0 = NULL; }
2258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2260 return NULL;
2261 }
2262 }
ab9bc19b 2263{
474c48f9 2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2265 _result = (int )wxIcon_GetWidth(_arg0);
ab9bc19b 2266
474c48f9 2267 wxPyEndAllowThreads(__tstate);
4dfaa61e 2268 if (PyErr_Occurred()) return NULL;
ab9bc19b 2269} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2270 return _resultobj;
2271}
2272
56f5d962
RD
2273#define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2274static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2275 PyObject * _resultobj;
56f5d962 2276 int _result;
70551f47 2277 wxIcon * _arg0;
2d091820 2278 PyObject * _argo0 = 0;
56f5d962 2279 char *_kwnames[] = { "self", NULL };
70551f47
RD
2280
2281 self = self;
56f5d962 2282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
70551f47 2283 return NULL;
2d091820
RD
2284 if (_argo0) {
2285 if (_argo0 == Py_None) { _arg0 = NULL; }
2286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
70551f47
RD
2288 return NULL;
2289 }
2290 }
ab9bc19b 2291{
474c48f9 2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2293 _result = (int )wxIcon_GetHeight(_arg0);
ab9bc19b 2294
474c48f9 2295 wxPyEndAllowThreads(__tstate);
4dfaa61e 2296 if (PyErr_Occurred()) return NULL;
ab9bc19b 2297} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2298 return _resultobj;
2299}
2300
56f5d962
RD
2301#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2302static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2303 PyObject * _resultobj;
56f5d962 2304 int _result;
70551f47 2305 wxIcon * _arg0;
2d091820 2306 PyObject * _argo0 = 0;
107e4716 2307 char *_kwnames[] = { "self", NULL };
70551f47
RD
2308
2309 self = self;
56f5d962 2310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
70551f47 2311 return NULL;
2d091820
RD
2312 if (_argo0) {
2313 if (_argo0 == Py_None) { _arg0 = NULL; }
2314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
70551f47
RD
2316 return NULL;
2317 }
2318 }
ab9bc19b 2319{
474c48f9 2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2321 _result = (int )wxIcon_GetDepth(_arg0);
ab9bc19b 2322
474c48f9 2323 wxPyEndAllowThreads(__tstate);
4dfaa61e 2324 if (PyErr_Occurred()) return NULL;
ab9bc19b 2325} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2326 return _resultobj;
2327}
2328
56f5d962
RD
2329#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2330static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2331 PyObject * _resultobj;
2332 wxIcon * _arg0;
2333 int _arg1;
2d091820 2334 PyObject * _argo0 = 0;
56f5d962 2335 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
2336
2337 self = self;
56f5d962 2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 2339 return NULL;
2d091820
RD
2340 if (_argo0) {
2341 if (_argo0 == Py_None) { _arg0 = NULL; }
2342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
70551f47
RD
2344 return NULL;
2345 }
2346 }
ab9bc19b 2347{
474c48f9 2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2349 wxIcon_SetWidth(_arg0,_arg1);
ab9bc19b 2350
474c48f9 2351 wxPyEndAllowThreads(__tstate);
4dfaa61e 2352 if (PyErr_Occurred()) return NULL;
ab9bc19b 2353} Py_INCREF(Py_None);
70551f47
RD
2354 _resultobj = Py_None;
2355 return _resultobj;
2356}
2357
2358#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
107e4716 2359static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2360 PyObject * _resultobj;
2361 wxIcon * _arg0;
2362 int _arg1;
2d091820 2363 PyObject * _argo0 = 0;
56f5d962 2364 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2365
2366 self = self;
107e4716 2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2368 return NULL;
2d091820
RD
2369 if (_argo0) {
2370 if (_argo0 == Py_None) { _arg0 = NULL; }
2371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2373 return NULL;
2374 }
2375 }
ab9bc19b 2376{
474c48f9 2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2378 wxIcon_SetHeight(_arg0,_arg1);
ab9bc19b 2379
474c48f9 2380 wxPyEndAllowThreads(__tstate);
4dfaa61e 2381 if (PyErr_Occurred()) return NULL;
ab9bc19b 2382} Py_INCREF(Py_None);
70551f47
RD
2383 _resultobj = Py_None;
2384 return _resultobj;
2385}
2386
56f5d962
RD
2387#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2388static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2389 PyObject * _resultobj;
2390 wxIcon * _arg0;
2391 int _arg1;
2d091820 2392 PyObject * _argo0 = 0;
56f5d962 2393 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2394
2395 self = self;
56f5d962 2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2397 return NULL;
2d091820
RD
2398 if (_argo0) {
2399 if (_argo0 == Py_None) { _arg0 = NULL; }
2400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
70551f47
RD
2402 return NULL;
2403 }
2404 }
ab9bc19b 2405{
474c48f9 2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2407 wxIcon_SetDepth(_arg0,_arg1);
ab9bc19b 2408
474c48f9 2409 wxPyEndAllowThreads(__tstate);
4dfaa61e 2410 if (PyErr_Occurred()) return NULL;
ab9bc19b 2411} Py_INCREF(Py_None);
70551f47
RD
2412 _resultobj = Py_None;
2413 return _resultobj;
2414}
2415
fbcadfca
RD
2416#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2417static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2418 PyObject * _resultobj;
2419 wxIcon * _arg0;
2420 wxBitmap * _arg1;
2421 PyObject * _argo0 = 0;
2422 PyObject * _argo1 = 0;
2423 char *_kwnames[] = { "self","bmp", NULL };
2424
2425 self = self;
2426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2427 return NULL;
2428 if (_argo0) {
2429 if (_argo0 == Py_None) { _arg0 = NULL; }
2430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2432 return NULL;
2433 }
2434 }
2435 if (_argo1) {
2436 if (_argo1 == Py_None) { _arg1 = NULL; }
2437 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2438 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2439 return NULL;
2440 }
2441 }
2442{
474c48f9 2443 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2444 wxIcon_CopyFromBitmap(_arg0,*_arg1);
fbcadfca 2445
474c48f9 2446 wxPyEndAllowThreads(__tstate);
4dfaa61e 2447 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2448} Py_INCREF(Py_None);
2449 _resultobj = Py_None;
2450 return _resultobj;
2451}
2452
a323d3bd
RD
2453#define new_wxIconBundle() (new wxIconBundle())
2454static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
1893b029 2455 PyObject * _resultobj;
a323d3bd 2456 wxIconBundle * _result;
1893b029
RD
2457 char *_kwnames[] = { NULL };
2458 char _ptemp[128];
2459
2460 self = self;
a323d3bd 2461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames))
1893b029
RD
2462 return NULL;
2463{
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2465 _result = (wxIconBundle *)new_wxIconBundle();
1893b029
RD
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) return NULL;
2469} if (_result) {
a323d3bd 2470 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
1893b029
RD
2471 _resultobj = Py_BuildValue("s",_ptemp);
2472 } else {
2473 Py_INCREF(Py_None);
2474 _resultobj = Py_None;
2475 }
2476 return _resultobj;
2477}
2478
a323d3bd
RD
2479#define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2480static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2481 PyObject * _resultobj;
a323d3bd
RD
2482 wxIconBundle * _result;
2483 wxString * _arg0;
2484 long _arg1;
2485 PyObject * _obj0 = 0;
2486 char *_kwnames[] = { "file","type", NULL };
2487 char _ptemp[128];
d3b4d113
RR
2488
2489 self = self;
a323d3bd 2490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1))
d3b4d113 2491 return NULL;
059a841c 2492{
a323d3bd
RD
2493 _arg0 = wxString_in_helper(_obj0);
2494 if (_arg0 == NULL)
059a841c 2495 return NULL;
059a841c 2496}
ab9bc19b 2497{
474c48f9 2498 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2499 _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1);
ab9bc19b 2500
474c48f9 2501 wxPyEndAllowThreads(__tstate);
4dfaa61e 2502 if (PyErr_Occurred()) return NULL;
a323d3bd
RD
2503} if (_result) {
2504 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2505 _resultobj = Py_BuildValue("s",_ptemp);
2506 } else {
2507 Py_INCREF(Py_None);
2508 _resultobj = Py_None;
2509 }
059a841c 2510{
a323d3bd
RD
2511 if (_obj0)
2512 delete _arg0;
059a841c 2513}
d3b4d113
RR
2514 return _resultobj;
2515}
2516
a323d3bd
RD
2517#define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2518static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2519 PyObject * _resultobj;
a323d3bd
RD
2520 wxIconBundle * _result;
2521 wxIcon * _arg0;
2d091820 2522 PyObject * _argo0 = 0;
a323d3bd
RD
2523 char *_kwnames[] = { "icon", NULL };
2524 char _ptemp[128];
d3b4d113
RR
2525
2526 self = self;
a323d3bd 2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0))
d3b4d113 2528 return NULL;
2d091820
RD
2529 if (_argo0) {
2530 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
d3b4d113
RR
2533 return NULL;
2534 }
2535 }
ab9bc19b 2536{
474c48f9 2537 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2538 _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0);
ab9bc19b 2539
474c48f9 2540 wxPyEndAllowThreads(__tstate);
4dfaa61e 2541 if (PyErr_Occurred()) return NULL;
a323d3bd
RD
2542} if (_result) {
2543 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2544 _resultobj = Py_BuildValue("s",_ptemp);
2545 } else {
2546 Py_INCREF(Py_None);
2547 _resultobj = Py_None;
2548 }
d3b4d113
RR
2549 return _resultobj;
2550}
2551
a323d3bd
RD
2552#define delete_wxIconBundle(_swigobj) (delete _swigobj)
2553static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2554 PyObject * _resultobj;
a323d3bd 2555 wxIconBundle * _arg0;
2d091820 2556 PyObject * _argo0 = 0;
a323d3bd 2557 char *_kwnames[] = { "self", NULL };
d3b4d113
RR
2558
2559 self = self;
a323d3bd 2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0))
d3b4d113 2561 return NULL;
2d091820
RD
2562 if (_argo0) {
2563 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
d3b4d113
RR
2566 return NULL;
2567 }
2568 }
ab9bc19b 2569{
474c48f9 2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2571 delete_wxIconBundle(_arg0);
ab9bc19b 2572
474c48f9 2573 wxPyEndAllowThreads(__tstate);
4dfaa61e 2574 if (PyErr_Occurred()) return NULL;
ab9bc19b 2575} Py_INCREF(Py_None);
d3b4d113
RR
2576 _resultobj = Py_None;
2577 return _resultobj;
2578}
2579
a323d3bd
RD
2580#define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2581static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc 2582 PyObject * _resultobj;
a323d3bd
RD
2583 wxIconBundle * _arg0;
2584 wxIcon * _arg1;
134d79dc 2585 PyObject * _argo0 = 0;
059a841c 2586 PyObject * _argo1 = 0;
a323d3bd 2587 char *_kwnames[] = { "self","icon", NULL };
134d79dc
RD
2588
2589 self = self;
a323d3bd 2590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1))
134d79dc
RD
2591 return NULL;
2592 if (_argo0) {
2593 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
059a841c
RD
2596 return NULL;
2597 }
2598 }
2599 if (_argo1) {
2600 if (_argo1 == Py_None) { _arg1 = NULL; }
a323d3bd
RD
2601 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2602 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
134d79dc
RD
2603 return NULL;
2604 }
2605 }
2606{
474c48f9 2607 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2608 wxIconBundle_AddIcon(_arg0,*_arg1);
134d79dc 2609
474c48f9 2610 wxPyEndAllowThreads(__tstate);
4dfaa61e 2611 if (PyErr_Occurred()) return NULL;
134d79dc
RD
2612} Py_INCREF(Py_None);
2613 _resultobj = Py_None;
2614 return _resultobj;
2615}
2616
a323d3bd
RD
2617#define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2618static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1893b029 2619 PyObject * _resultobj;
a323d3bd 2620 wxIconBundle * _arg0;
1893b029 2621 wxString * _arg1;
a323d3bd 2622 long _arg2;
1893b029
RD
2623 PyObject * _argo0 = 0;
2624 PyObject * _obj1 = 0;
a323d3bd 2625 char *_kwnames[] = { "self","file","type", NULL };
1893b029
RD
2626
2627 self = self;
a323d3bd 2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2))
1893b029
RD
2629 return NULL;
2630 if (_argo0) {
2631 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
1893b029
RD
2634 return NULL;
2635 }
2636 }
2637{
c8bc7bb8
RD
2638 _arg1 = wxString_in_helper(_obj1);
2639 if (_arg1 == NULL)
1893b029 2640 return NULL;
1893b029
RD
2641}
2642{
2643 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2644 wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2);
1893b029
RD
2645
2646 wxPyEndAllowThreads(__tstate);
2647 if (PyErr_Occurred()) return NULL;
2648} Py_INCREF(Py_None);
2649 _resultobj = Py_None;
2650{
2651 if (_obj1)
2652 delete _arg1;
2653}
2654 return _resultobj;
2655}
2656
a323d3bd
RD
2657#define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
2658static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 2659 PyObject * _resultobj;
a323d3bd
RD
2660 wxIcon * _result;
2661 wxIconBundle * _arg0;
2662 wxSize * _arg1;
5e40f9dd 2663 PyObject * _argo0 = 0;
a323d3bd
RD
2664 wxSize temp;
2665 PyObject * _obj1 = 0;
2666 char *_kwnames[] = { "self","size", NULL };
5e40f9dd
RD
2667 char _ptemp[128];
2668
2669 self = self;
a323d3bd 2670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1))
5e40f9dd
RD
2671 return NULL;
2672 if (_argo0) {
2673 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
5e40f9dd
RD
2676 return NULL;
2677 }
2678 }
9a74fcaf 2679{
a323d3bd
RD
2680 _arg1 = &temp;
2681 if (! wxSize_helper(_obj1, &_arg1))
9a74fcaf
RD
2682 return NULL;
2683}
5e40f9dd 2684{
474c48f9 2685 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd
RD
2686 const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1);
2687 _result = (wxIcon *) &_result_ref;
5e40f9dd 2688
474c48f9 2689 wxPyEndAllowThreads(__tstate);
4dfaa61e 2690 if (PyErr_Occurred()) return NULL;
5e40f9dd 2691} if (_result) {
a323d3bd 2692 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
5e40f9dd
RD
2693 _resultobj = Py_BuildValue("s",_ptemp);
2694 } else {
2695 Py_INCREF(Py_None);
2696 _resultobj = Py_None;
2697 }
2698 return _resultobj;
2699}
2700
a323d3bd
RD
2701static void *SwigwxCursorTowxGDIObject(void *ptr) {
2702 wxCursor *src;
2703 wxGDIObject *dest;
2704 src = (wxCursor *) ptr;
2705 dest = (wxGDIObject *) src;
2706 return (void *) dest;
2707}
2708
2709static void *SwigwxCursorTowxObject(void *ptr) {
2710 wxCursor *src;
2711 wxObject *dest;
2712 src = (wxCursor *) ptr;
2713 dest = (wxObject *) src;
2714 return (void *) dest;
2715}
2716
2717#define delete_wxCursor(_swigobj) (delete _swigobj)
2718static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 2719 PyObject * _resultobj;
a323d3bd 2720 wxCursor * _arg0;
5e40f9dd 2721 PyObject * _argo0 = 0;
a323d3bd 2722 char *_kwnames[] = { "self", NULL };
5e40f9dd
RD
2723
2724 self = self;
a323d3bd 2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
5e40f9dd
RD
2726 return NULL;
2727 if (_argo0) {
2728 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
5e40f9dd
RD
2731 return NULL;
2732 }
2733 }
2734{
474c48f9 2735 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2736 delete_wxCursor(_arg0);
5e40f9dd 2737
474c48f9 2738 wxPyEndAllowThreads(__tstate);
4dfaa61e 2739 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
2740} Py_INCREF(Py_None);
2741 _resultobj = Py_None;
2742 return _resultobj;
2743}
2744
a323d3bd
RD
2745#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2746static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7a9b33db 2747 PyObject * _resultobj;
a323d3bd
RD
2748 bool _result;
2749 wxCursor * _arg0;
7a9b33db
RD
2750 PyObject * _argo0 = 0;
2751 char *_kwnames[] = { "self", NULL };
2752
2753 self = self;
a323d3bd 2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
7a9b33db
RD
2755 return NULL;
2756 if (_argo0) {
2757 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
7a9b33db
RD
2760 return NULL;
2761 }
2762 }
2763{
474c48f9 2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2765 _result = (bool )wxCursor_Ok(_arg0);
7a9b33db 2766
474c48f9 2767 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
2768 if (PyErr_Occurred()) return NULL;
2769} _resultobj = Py_BuildValue("i",_result);
2770 return _resultobj;
2771}
2772
9df61a29
RD
2773static void *SwigwxColourTowxObject(void *ptr) {
2774 wxColour *src;
2775 wxObject *dest;
2776 src = (wxColour *) ptr;
2777 dest = (wxObject *) src;
2778 return (void *) dest;
2779}
2780
70551f47 2781#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 2782static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2783 PyObject * _resultobj;
2784 wxColour * _result;
2d091820
RD
2785 unsigned char _arg0 = (unsigned char ) 0;
2786 unsigned char _arg1 = (unsigned char ) 0;
2787 unsigned char _arg2 = (unsigned char ) 0;
107e4716 2788 char *_kwnames[] = { "red","green","blue", NULL };
70551f47
RD
2789 char _ptemp[128];
2790
2791 self = self;
107e4716 2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 2793 return NULL;
ab9bc19b 2794{
474c48f9 2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2796 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
ab9bc19b 2797
474c48f9 2798 wxPyEndAllowThreads(__tstate);
4dfaa61e 2799 if (PyErr_Occurred()) return NULL;
2d091820
RD
2800} if (_result) {
2801 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2802 _resultobj = Py_BuildValue("s",_ptemp);
2803 } else {
2804 Py_INCREF(Py_None);
2805 _resultobj = Py_None;
2806 }
70551f47
RD
2807 return _resultobj;
2808}
2809
2810#define delete_wxColour(_swigobj) (delete _swigobj)
107e4716 2811static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2812 PyObject * _resultobj;
2813 wxColour * _arg0;
f6bcfd97
BP
2814 wxColour temp;
2815 PyObject * _obj0 = 0;
107e4716 2816 char *_kwnames[] = { "self", NULL };
70551f47
RD
2817
2818 self = self;
f6bcfd97 2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
70551f47 2820 return NULL;
f6bcfd97
BP
2821{
2822 _arg0 = &temp;
2823 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2824 return NULL;
f6bcfd97 2825}
ab9bc19b 2826{
474c48f9 2827 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2828 delete_wxColour(_arg0);
ab9bc19b 2829
474c48f9 2830 wxPyEndAllowThreads(__tstate);
4dfaa61e 2831 if (PyErr_Occurred()) return NULL;
ab9bc19b 2832} Py_INCREF(Py_None);
70551f47
RD
2833 _resultobj = Py_None;
2834 return _resultobj;
2835}
2836
2837#define wxColour_Red(_swigobj) (_swigobj->Red())
107e4716 2838static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2839 PyObject * _resultobj;
2840 unsigned char _result;
2841 wxColour * _arg0;
f6bcfd97
BP
2842 wxColour temp;
2843 PyObject * _obj0 = 0;
107e4716 2844 char *_kwnames[] = { "self", NULL };
70551f47
RD
2845
2846 self = self;
f6bcfd97 2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
70551f47 2848 return NULL;
f6bcfd97
BP
2849{
2850 _arg0 = &temp;
2851 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2852 return NULL;
f6bcfd97 2853}
ab9bc19b 2854{
474c48f9 2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2856 _result = (unsigned char )wxColour_Red(_arg0);
ab9bc19b 2857
474c48f9 2858 wxPyEndAllowThreads(__tstate);
4dfaa61e 2859 if (PyErr_Occurred()) return NULL;
ab9bc19b 2860} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
2861 return _resultobj;
2862}
2863
2864#define wxColour_Green(_swigobj) (_swigobj->Green())
107e4716 2865static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2866 PyObject * _resultobj;
2867 unsigned char _result;
2868 wxColour * _arg0;
f6bcfd97
BP
2869 wxColour temp;
2870 PyObject * _obj0 = 0;
107e4716 2871 char *_kwnames[] = { "self", NULL };
70551f47
RD
2872
2873 self = self;
f6bcfd97 2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
70551f47 2875 return NULL;
f6bcfd97
BP
2876{
2877 _arg0 = &temp;
2878 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2879 return NULL;
f6bcfd97 2880}
ab9bc19b 2881{
474c48f9 2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2883 _result = (unsigned char )wxColour_Green(_arg0);
ab9bc19b 2884
474c48f9 2885 wxPyEndAllowThreads(__tstate);
4dfaa61e 2886 if (PyErr_Occurred()) return NULL;
ab9bc19b 2887} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
2888 return _resultobj;
2889}
2890
2891#define wxColour_Blue(_swigobj) (_swigobj->Blue())
107e4716 2892static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2893 PyObject * _resultobj;
2894 unsigned char _result;
2895 wxColour * _arg0;
f6bcfd97
BP
2896 wxColour temp;
2897 PyObject * _obj0 = 0;
107e4716 2898 char *_kwnames[] = { "self", NULL };
70551f47
RD
2899
2900 self = self;
f6bcfd97 2901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
70551f47 2902 return NULL;
f6bcfd97
BP
2903{
2904 _arg0 = &temp;
2905 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2906 return NULL;
f6bcfd97 2907}
ab9bc19b 2908{
474c48f9 2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2910 _result = (unsigned char )wxColour_Blue(_arg0);
ab9bc19b 2911
474c48f9 2912 wxPyEndAllowThreads(__tstate);
4dfaa61e 2913 if (PyErr_Occurred()) return NULL;
ab9bc19b 2914} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
2915 return _resultobj;
2916}
2917
2918#define wxColour_Ok(_swigobj) (_swigobj->Ok())
107e4716 2919static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2920 PyObject * _resultobj;
2921 bool _result;
2922 wxColour * _arg0;
f6bcfd97
BP
2923 wxColour temp;
2924 PyObject * _obj0 = 0;
107e4716 2925 char *_kwnames[] = { "self", NULL };
70551f47
RD
2926
2927 self = self;
f6bcfd97 2928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
70551f47 2929 return NULL;
f6bcfd97
BP
2930{
2931 _arg0 = &temp;
2932 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2933 return NULL;
f6bcfd97 2934}
ab9bc19b 2935{
474c48f9 2936 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2937 _result = (bool )wxColour_Ok(_arg0);
ab9bc19b 2938
474c48f9 2939 wxPyEndAllowThreads(__tstate);
4dfaa61e 2940 if (PyErr_Occurred()) return NULL;
ab9bc19b 2941} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2942 return _resultobj;
2943}
2944
2945#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
107e4716 2946static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2947 PyObject * _resultobj;
2948 wxColour * _arg0;
2949 unsigned char _arg1;
2950 unsigned char _arg2;
2951 unsigned char _arg3;
f6bcfd97
BP
2952 wxColour temp;
2953 PyObject * _obj0 = 0;
107e4716 2954 char *_kwnames[] = { "self","red","green","blue", NULL };
70551f47
RD
2955
2956 self = self;
f6bcfd97 2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
70551f47 2958 return NULL;
f6bcfd97
BP
2959{
2960 _arg0 = &temp;
2961 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2962 return NULL;
f6bcfd97 2963}
ab9bc19b 2964{
474c48f9 2965 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2966 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 2967
474c48f9 2968 wxPyEndAllowThreads(__tstate);
4dfaa61e 2969 if (PyErr_Occurred()) return NULL;
ab9bc19b 2970} Py_INCREF(Py_None);
70551f47
RD
2971 _resultobj = Py_None;
2972 return _resultobj;
2973}
2974
2975static PyObject * wxColour_Get(wxColour *self) {
2976 PyObject* rv = PyTuple_New(3);
2977 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
2978 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
2979 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
2980 return rv;
2981 }
107e4716 2982static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2983 PyObject * _resultobj;
2984 PyObject * _result;
2985 wxColour * _arg0;
f6bcfd97
BP
2986 wxColour temp;
2987 PyObject * _obj0 = 0;
107e4716 2988 char *_kwnames[] = { "self", NULL };
70551f47
RD
2989
2990 self = self;
f6bcfd97 2991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
70551f47 2992 return NULL;
f6bcfd97
BP
2993{
2994 _arg0 = &temp;
2995 if (! wxColour_helper(_obj0, &_arg0))
70551f47 2996 return NULL;
f6bcfd97 2997}
70551f47 2998{
474c48f9 2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3000 _result = (PyObject *)wxColour_Get(_arg0);
ab9bc19b 3001
474c48f9 3002 wxPyEndAllowThreads(__tstate);
4dfaa61e 3003 if (PyErr_Occurred()) return NULL;
ab9bc19b 3004}{
70551f47
RD
3005 _resultobj = _result;
3006}
3007 return _resultobj;
3008}
3009
9df61a29
RD
3010static void *SwigwxColourDatabaseTowxObject(void *ptr) {
3011 wxColourDatabase *src;
3012 wxObject *dest;
3013 src = (wxColourDatabase *) ptr;
3014 dest = (wxObject *) src;
3015 return (void *) dest;
3016}
3017
5e40f9dd
RD
3018#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3019static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3020 PyObject * _resultobj;
5e40f9dd
RD
3021 wxColour * _result;
3022 wxColourDatabase * _arg0;
3023 wxString * _arg1;
3024 PyObject * _argo0 = 0;
3025 PyObject * _obj1 = 0;
3026 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
3027 char _ptemp[128];
3028
3029 self = self;
5e40f9dd
RD
3030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
3031 return NULL;
3032 if (_argo0) {
3033 if (_argo0 == Py_None) { _arg0 = NULL; }
3034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
70551f47 3036 return NULL;
5e40f9dd
RD
3037 }
3038 }
f6bcfd97 3039{
c8bc7bb8
RD
3040 _arg1 = wxString_in_helper(_obj1);
3041 if (_arg1 == NULL)
5e40f9dd 3042 return NULL;
f6bcfd97 3043}
ab9bc19b 3044{
474c48f9 3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3046 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
ab9bc19b 3047
474c48f9 3048 wxPyEndAllowThreads(__tstate);
4dfaa61e 3049 if (PyErr_Occurred()) return NULL;
2d091820 3050} if (_result) {
5e40f9dd 3051 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2d091820
RD
3052 _resultobj = Py_BuildValue("s",_ptemp);
3053 } else {
3054 Py_INCREF(Py_None);
3055 _resultobj = Py_None;
3056 }
5e40f9dd
RD
3057{
3058 if (_obj1)
3059 delete _arg1;
3060}
70551f47
RD
3061 return _resultobj;
3062}
3063
5e40f9dd
RD
3064#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3065static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3066 PyObject * _resultobj;
5e40f9dd
RD
3067 wxString * _result;
3068 wxColourDatabase * _arg0;
3069 wxColour * _arg1;
2d091820 3070 PyObject * _argo0 = 0;
5e40f9dd
RD
3071 wxColour temp;
3072 PyObject * _obj1 = 0;
3073 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
3074
3075 self = self;
5e40f9dd 3076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
70551f47 3077 return NULL;
2d091820
RD
3078 if (_argo0) {
3079 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
3080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
70551f47
RD
3082 return NULL;
3083 }
3084 }
5e40f9dd
RD
3085{
3086 _arg1 = &temp;
3087 if (! wxColour_helper(_obj1, &_arg1))
3088 return NULL;
3089}
ab9bc19b 3090{
474c48f9 3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3092 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
ab9bc19b 3093
474c48f9 3094 wxPyEndAllowThreads(__tstate);
4dfaa61e 3095 if (PyErr_Occurred()) return NULL;
5e40f9dd 3096}{
c8bc7bb8
RD
3097#if wxUSE_UNICODE
3098 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3099#else
5e40f9dd 3100 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3101#endif
5e40f9dd
RD
3102}
3103{
3104 delete _result;
3105}
70551f47
RD
3106 return _resultobj;
3107}
3108
5e40f9dd 3109static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
ef2060fa
RD
3110 // first see if the name is already there
3111 wxString cName = name;
3112 cName.MakeUpper();
3113 wxString cName2 = cName;
49df1f52 3114 if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) )
ef2060fa
RD
3115 cName2.clear();
3116
3117 wxNode *node = self->First();
3118 while ( node ) {
3119 const wxChar *key = node->GetKeyString();
3120 if ( cName == key || cName2 == key ) {
3121 wxColour* c = (wxColour *)node->Data();
3122 c->Set(red, green, blue);
3123 return;
3124 }
3125 node = node->Next();
3126 }
3127
3128 // otherwise append the new colour
5e40f9dd
RD
3129 self->Append(name.c_str(), new wxColour(red, green, blue));
3130 }
3131static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3132 PyObject * _resultobj;
5e40f9dd
RD
3133 wxColourDatabase * _arg0;
3134 wxString * _arg1;
3135 int _arg2;
3136 int _arg3;
3137 int _arg4;
2d091820 3138 PyObject * _argo0 = 0;
5e40f9dd
RD
3139 PyObject * _obj1 = 0;
3140 char *_kwnames[] = { "self","name","red","green","blue", NULL };
70551f47
RD
3141
3142 self = self;
5e40f9dd 3143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
70551f47 3144 return NULL;
2d091820
RD
3145 if (_argo0) {
3146 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
3147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
70551f47
RD
3149 return NULL;
3150 }
3151 }
ab9bc19b 3152{
c8bc7bb8
RD
3153 _arg1 = wxString_in_helper(_obj1);
3154 if (_arg1 == NULL)
5e40f9dd 3155 return NULL;
5e40f9dd
RD
3156}
3157{
474c48f9 3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3159 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5e40f9dd 3160
474c48f9 3161 wxPyEndAllowThreads(__tstate);
4dfaa61e 3162 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3163} Py_INCREF(Py_None);
3164 _resultobj = Py_None;
3165{
3166 if (_obj1)
3167 delete _arg1;
3168}
3169 return _resultobj;
3170}
3171
9df61a29
RD
3172static void *SwigwxPenTowxGDIObject(void *ptr) {
3173 wxPen *src;
3174 wxGDIObject *dest;
3175 src = (wxPen *) ptr;
3176 dest = (wxGDIObject *) src;
3177 return (void *) dest;
3178}
3179
3180static void *SwigwxPenTowxObject(void *ptr) {
3181 wxPen *src;
3182 wxObject *dest;
3183 src = (wxPen *) ptr;
3184 dest = (wxObject *) src;
3185 return (void *) dest;
3186}
3187
5e40f9dd
RD
3188#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3189static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3190 PyObject * _resultobj;
3191 wxPen * _result;
3192 wxColour * _arg0;
3193 int _arg1 = (int ) 1;
3194 int _arg2 = (int ) wxSOLID;
3195 wxColour temp;
3196 PyObject * _obj0 = 0;
3197 char *_kwnames[] = { "colour","width","style", NULL };
3198 char _ptemp[128];
3199
3200 self = self;
3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
3202 return NULL;
3203{
3204 _arg0 = &temp;
3205 if (! wxColour_helper(_obj0, &_arg0))
3206 return NULL;
3207}
3208{
474c48f9 3209 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3210 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5e40f9dd 3211
474c48f9 3212 wxPyEndAllowThreads(__tstate);
4dfaa61e 3213 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3214} if (_result) {
3215 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3216 _resultobj = Py_BuildValue("s",_ptemp);
3217 } else {
3218 Py_INCREF(Py_None);
3219 _resultobj = Py_None;
3220 }
3221 return _resultobj;
3222}
3223
3224#define delete_wxPen(_swigobj) (delete _swigobj)
3225static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3226 PyObject * _resultobj;
3227 wxPen * _arg0;
3228 PyObject * _argo0 = 0;
3229 char *_kwnames[] = { "self", NULL };
3230
3231 self = self;
3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
3233 return NULL;
3234 if (_argo0) {
3235 if (_argo0 == Py_None) { _arg0 = NULL; }
3236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3238 return NULL;
3239 }
3240 }
3241{
474c48f9 3242 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3243 delete_wxPen(_arg0);
5e40f9dd 3244
474c48f9 3245 wxPyEndAllowThreads(__tstate);
4dfaa61e 3246 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3247} Py_INCREF(Py_None);
3248 _resultobj = Py_None;
3249 return _resultobj;
3250}
3251
3252#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3253static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
3254 PyObject * _resultobj;
3255 int _result;
3256 wxPen * _arg0;
3257 PyObject * _argo0 = 0;
3258 char *_kwnames[] = { "self", NULL };
3259
3260 self = self;
3261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
3262 return NULL;
3263 if (_argo0) {
3264 if (_argo0 == Py_None) { _arg0 = NULL; }
3265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3267 return NULL;
3268 }
3269 }
3270{
474c48f9 3271 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3272 _result = (int )wxPen_GetCap(_arg0);
5e40f9dd 3273
474c48f9 3274 wxPyEndAllowThreads(__tstate);
4dfaa61e 3275 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3276} _resultobj = Py_BuildValue("i",_result);
3277 return _resultobj;
3278}
3279
3280#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3281static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject * _resultobj;
3283 wxColour * _result;
3284 wxPen * _arg0;
3285 PyObject * _argo0 = 0;
3286 char *_kwnames[] = { "self", NULL };
3287 char _ptemp[128];
3288
3289 self = self;
3290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
3291 return NULL;
3292 if (_argo0) {
3293 if (_argo0 == Py_None) { _arg0 = NULL; }
3294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3296 return NULL;
3297 }
3298 }
3299{
474c48f9 3300 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3301 _result = new wxColour (wxPen_GetColour(_arg0));
5e40f9dd 3302
474c48f9 3303 wxPyEndAllowThreads(__tstate);
4dfaa61e 3304 if (PyErr_Occurred()) return NULL;
84a81942
RD
3305} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
3306 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
3307 return _resultobj;
3308}
3309
3310#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
107e4716 3311static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3312 PyObject * _resultobj;
3313 int _result;
3314 wxPen * _arg0;
2d091820 3315 PyObject * _argo0 = 0;
107e4716 3316 char *_kwnames[] = { "self", NULL };
70551f47
RD
3317
3318 self = self;
107e4716 3319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
70551f47 3320 return NULL;
2d091820
RD
3321 if (_argo0) {
3322 if (_argo0 == Py_None) { _arg0 = NULL; }
3323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3325 return NULL;
3326 }
3327 }
ab9bc19b 3328{
474c48f9 3329 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3330 _result = (int )wxPen_GetJoin(_arg0);
ab9bc19b 3331
474c48f9 3332 wxPyEndAllowThreads(__tstate);
4dfaa61e 3333 if (PyErr_Occurred()) return NULL;
ab9bc19b 3334} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3335 return _resultobj;
3336}
3337
3338#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 3339static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3340 PyObject * _resultobj;
3341 int _result;
3342 wxPen * _arg0;
2d091820 3343 PyObject * _argo0 = 0;
107e4716 3344 char *_kwnames[] = { "self", NULL };
70551f47
RD
3345
3346 self = self;
107e4716 3347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
70551f47 3348 return NULL;
2d091820
RD
3349 if (_argo0) {
3350 if (_argo0 == Py_None) { _arg0 = NULL; }
3351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3353 return NULL;
3354 }
3355 }
ab9bc19b 3356{
474c48f9 3357 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3358 _result = (int )wxPen_GetStyle(_arg0);
ab9bc19b 3359
474c48f9 3360 wxPyEndAllowThreads(__tstate);
4dfaa61e 3361 if (PyErr_Occurred()) return NULL;
ab9bc19b 3362} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3363 return _resultobj;
3364}
3365
3366#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 3367static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3368 PyObject * _resultobj;
3369 int _result;
3370 wxPen * _arg0;
2d091820 3371 PyObject * _argo0 = 0;
107e4716 3372 char *_kwnames[] = { "self", NULL };
70551f47
RD
3373
3374 self = self;
107e4716 3375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
70551f47 3376 return NULL;
2d091820
RD
3377 if (_argo0) {
3378 if (_argo0 == Py_None) { _arg0 = NULL; }
3379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3381 return NULL;
3382 }
3383 }
ab9bc19b 3384{
474c48f9 3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3386 _result = (int )wxPen_GetWidth(_arg0);
ab9bc19b 3387
474c48f9 3388 wxPyEndAllowThreads(__tstate);
4dfaa61e 3389 if (PyErr_Occurred()) return NULL;
ab9bc19b 3390} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3391 return _resultobj;
3392}
3393
3394#define wxPen_Ok(_swigobj) (_swigobj->Ok())
107e4716 3395static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3396 PyObject * _resultobj;
3397 bool _result;
3398 wxPen * _arg0;
2d091820 3399 PyObject * _argo0 = 0;
107e4716 3400 char *_kwnames[] = { "self", NULL };
70551f47
RD
3401
3402 self = self;
107e4716 3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
70551f47 3404 return NULL;
2d091820
RD
3405 if (_argo0) {
3406 if (_argo0 == Py_None) { _arg0 = NULL; }
3407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3409 return NULL;
3410 }
3411 }
ab9bc19b 3412{
474c48f9 3413 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3414 _result = (bool )wxPen_Ok(_arg0);
ab9bc19b 3415
474c48f9 3416 wxPyEndAllowThreads(__tstate);
4dfaa61e 3417 if (PyErr_Occurred()) return NULL;
ab9bc19b 3418} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3419 return _resultobj;
3420}
3421
3422#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
107e4716 3423static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3424 PyObject * _resultobj;
3425 wxPen * _arg0;
3426 int _arg1;
2d091820 3427 PyObject * _argo0 = 0;
107e4716 3428 char *_kwnames[] = { "self","cap_style", NULL };
70551f47
RD
3429
3430 self = self;
107e4716 3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
70551f47 3432 return NULL;
2d091820
RD
3433 if (_argo0) {
3434 if (_argo0 == Py_None) { _arg0 = NULL; }
3435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3437 return NULL;
3438 }
3439 }
ab9bc19b 3440{
474c48f9 3441 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3442 wxPen_SetCap(_arg0,_arg1);
ab9bc19b 3443
474c48f9 3444 wxPyEndAllowThreads(__tstate);
4dfaa61e 3445 if (PyErr_Occurred()) return NULL;
ab9bc19b 3446} Py_INCREF(Py_None);
70551f47
RD
3447 _resultobj = Py_None;
3448 return _resultobj;
3449}
3450
3451#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 3452static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3453 PyObject * _resultobj;
3454 wxPen * _arg0;
3455 wxColour * _arg1;
2d091820 3456 PyObject * _argo0 = 0;
f6bcfd97
BP
3457 wxColour temp;
3458 PyObject * _obj1 = 0;
107e4716 3459 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
3460
3461 self = self;
f6bcfd97 3462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
70551f47 3463 return NULL;
2d091820
RD
3464 if (_argo0) {
3465 if (_argo0 == Py_None) { _arg0 = NULL; }
3466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3468 return NULL;
3469 }
3470 }
f6bcfd97
BP
3471{
3472 _arg1 = &temp;
3473 if (! wxColour_helper(_obj1, &_arg1))
70551f47 3474 return NULL;
f6bcfd97 3475}
ab9bc19b 3476{
474c48f9 3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3478 wxPen_SetColour(_arg0,*_arg1);
ab9bc19b 3479
474c48f9 3480 wxPyEndAllowThreads(__tstate);
4dfaa61e 3481 if (PyErr_Occurred()) return NULL;
ab9bc19b 3482} Py_INCREF(Py_None);
70551f47
RD
3483 _resultobj = Py_None;
3484 return _resultobj;
3485}
3486
3487#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
107e4716 3488static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3489 PyObject * _resultobj;
3490 wxPen * _arg0;
3491 int _arg1;
2d091820 3492 PyObject * _argo0 = 0;
107e4716 3493 char *_kwnames[] = { "self","join_style", NULL };
70551f47
RD
3494
3495 self = self;
107e4716 3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
70551f47 3497 return NULL;
2d091820
RD
3498 if (_argo0) {
3499 if (_argo0 == Py_None) { _arg0 = NULL; }
3500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
3502 return NULL;
3503 }
3504 }
ab9bc19b 3505{
474c48f9 3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3507 wxPen_SetJoin(_arg0,_arg1);
ab9bc19b 3508
474c48f9 3509 wxPyEndAllowThreads(__tstate);
4dfaa61e 3510 if (PyErr_Occurred()) return NULL;
ab9bc19b 3511} Py_INCREF(Py_None);
70551f47
RD
3512 _resultobj = Py_None;
3513 return _resultobj;
3514}
3515
3516#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 3517static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3518 PyObject * _resultobj;
3519 wxPen * _arg0;
3520 int _arg1;
2d091820 3521 PyObject * _argo0 = 0;
107e4716 3522 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
3523
3524 self = self;
107e4716 3525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
70551f47 3526 return NULL;
2d091820
RD
3527 if (_argo0) {
3528 if (_argo0 == Py_None) { _arg0 = NULL; }
3529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
3531 return NULL;
3532 }
3533 }
ab9bc19b 3534{
474c48f9 3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3536 wxPen_SetStyle(_arg0,_arg1);
ab9bc19b 3537
474c48f9 3538 wxPyEndAllowThreads(__tstate);
4dfaa61e 3539 if (PyErr_Occurred()) return NULL;
ab9bc19b 3540} Py_INCREF(Py_None);
70551f47
RD
3541 _resultobj = Py_None;
3542 return _resultobj;
3543}
3544
3545#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
107e4716 3546static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3547 PyObject * _resultobj;
3548 wxPen * _arg0;
3549 int _arg1;
2d091820 3550 PyObject * _argo0 = 0;
107e4716 3551 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
3552
3553 self = self;
107e4716 3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 3555 return NULL;
2d091820
RD
3556 if (_argo0) {
3557 if (_argo0 == Py_None) { _arg0 = NULL; }
3558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
3560 return NULL;
3561 }
3562 }
ab9bc19b 3563{
474c48f9 3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3565 wxPen_SetWidth(_arg0,_arg1);
ab9bc19b 3566
474c48f9 3567 wxPyEndAllowThreads(__tstate);
4dfaa61e 3568 if (PyErr_Occurred()) return NULL;
ab9bc19b 3569} Py_INCREF(Py_None);
70551f47
RD
3570 _resultobj = Py_None;
3571 return _resultobj;
3572}
3573
65191ae8
RD
3574#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3575static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 3576 PyObject * _resultobj;
56f5d962 3577 wxPen * _arg0;
65191ae8
RD
3578 int _arg1;
3579 wxDash * _arg2;
56f5d962 3580 PyObject * _argo0 = 0;
65191ae8
RD
3581 PyObject * _obj2 = 0;
3582 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
3583
3584 self = self;
65191ae8 3585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
3586 return NULL;
3587 if (_argo0) {
3588 if (_argo0 == Py_None) { _arg0 = NULL; }
3589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
65191ae8 3590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
56f5d962
RD
3591 return NULL;
3592 }
3593 }
65191ae8
RD
3594 if (_obj2)
3595{
3596 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
3597 if (_arg2 == NULL) {
3598 return NULL;
3599 }
3600}
3601{
3602 if (_obj2) {
3603 _arg1 = PyList_Size(_obj2);
3604 }
3605 else {
3606 _arg1 = 0;
3607 }
3608}
3609{
474c48f9 3610 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3611 wxPen_SetDashes(_arg0,_arg1,_arg2);
65191ae8 3612
474c48f9 3613 wxPyEndAllowThreads(__tstate);
65191ae8
RD
3614 if (PyErr_Occurred()) return NULL;
3615} Py_INCREF(Py_None);
3616 _resultobj = Py_None;
3617{
3618 delete [] _arg2;
3619}
3620 return _resultobj;
3621}
3622
298ae144
RD
3623static PyObject * wxPen_GetDashes(wxPen *self) {
3624 wxDash* dashes;
3625 int count = self->GetDashes(&dashes);
3626 wxPyBeginBlockThreads();
3627 PyObject* retval = PyList_New(0);
3628 for (int x=0; x<count; x++)
3629 PyList_Append(retval, PyInt_FromLong(dashes[x]));
3630 wxPyEndBlockThreads();
3631 return retval;
3632 }
3633static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
3634 PyObject * _resultobj;
3635 PyObject * _result;
3636 wxPen * _arg0;
3637 PyObject * _argo0 = 0;
3638 char *_kwnames[] = { "self", NULL };
3639
3640 self = self;
3641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0))
3642 return NULL;
3643 if (_argo0) {
3644 if (_argo0 == Py_None) { _arg0 = NULL; }
3645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
3647 return NULL;
3648 }
3649 }
3650{
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 _result = (PyObject *)wxPen_GetDashes(_arg0);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) return NULL;
3656}{
3657 _resultobj = _result;
3658}
3659 return _resultobj;
3660}
3661
65191ae8
RD
3662static void *SwigwxPyPenTowxPen(void *ptr) {
3663 wxPyPen *src;
3664 wxPen *dest;
3665 src = (wxPyPen *) ptr;
3666 dest = (wxPen *) src;
3667 return (void *) dest;
3668}
3669
3670static void *SwigwxPyPenTowxGDIObject(void *ptr) {
3671 wxPyPen *src;
3672 wxGDIObject *dest;
3673 src = (wxPyPen *) ptr;
3674 dest = (wxGDIObject *) src;
3675 return (void *) dest;
3676}
3677
3678static void *SwigwxPyPenTowxObject(void *ptr) {
3679 wxPyPen *src;
3680 wxObject *dest;
3681 src = (wxPyPen *) ptr;
3682 dest = (wxObject *) src;
3683 return (void *) dest;
3684}
3685
3686#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
3687static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3688 PyObject * _resultobj;
3689 wxPyPen * _result;
3690 wxColour * _arg0;
3691 int _arg1 = (int ) 1;
3692 int _arg2 = (int ) wxSOLID;
3693 wxColour temp;
3694 PyObject * _obj0 = 0;
3695 char *_kwnames[] = { "colour","width","style", NULL };
3696 char _ptemp[128];
3697
3698 self = self;
3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
3700 return NULL;
3701{
3702 _arg0 = &temp;
3703 if (! wxColour_helper(_obj0, &_arg0))
3704 return NULL;
3705}
3706{
474c48f9 3707 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3708 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
65191ae8 3709
474c48f9 3710 wxPyEndAllowThreads(__tstate);
65191ae8
RD
3711 if (PyErr_Occurred()) return NULL;
3712} if (_result) {
3713 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
3714 _resultobj = Py_BuildValue("s",_ptemp);
3715 } else {
3716 Py_INCREF(Py_None);
3717 _resultobj = Py_None;
3718 }
3719 return _resultobj;
3720}
3721
3722#define delete_wxPyPen(_swigobj) (delete _swigobj)
3723static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3724 PyObject * _resultobj;
3725 wxPyPen * _arg0;
3726 PyObject * _argo0 = 0;
3727 char *_kwnames[] = { "self", NULL };
3728
3729 self = self;
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
3731 return NULL;
3732 if (_argo0) {
3733 if (_argo0 == Py_None) { _arg0 = NULL; }
3734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
3735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
56f5d962
RD
3736 return NULL;
3737 }
3738 }
3739{
474c48f9 3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3741 delete_wxPyPen(_arg0);
56f5d962 3742
474c48f9 3743 wxPyEndAllowThreads(__tstate);
4dfaa61e 3744 if (PyErr_Occurred()) return NULL;
65191ae8
RD
3745} Py_INCREF(Py_None);
3746 _resultobj = Py_None;
56f5d962
RD
3747 return _resultobj;
3748}
3749
65191ae8
RD
3750#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
3751static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 3752 PyObject * _resultobj;
65191ae8 3753 wxPyPen * _arg0;
56f5d962
RD
3754 int _arg1;
3755 wxDash * _arg2;
3756 PyObject * _argo0 = 0;
3757 PyObject * _obj2 = 0;
e02c03a4 3758 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
3759
3760 self = self;
65191ae8 3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
3762 return NULL;
3763 if (_argo0) {
3764 if (_argo0 == Py_None) { _arg0 = NULL; }
65191ae8
RD
3765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
3766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
56f5d962
RD
3767 return NULL;
3768 }
3769 }
3770 if (_obj2)
3771{
41073357 3772 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
56f5d962
RD
3773 if (_arg2 == NULL) {
3774 return NULL;
3775 }
3776}
3777{
3778 if (_obj2) {
3779 _arg1 = PyList_Size(_obj2);
3780 }
3781 else {
3782 _arg1 = 0;
3783 }
3784}
3785{
474c48f9 3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3787 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
56f5d962 3788
474c48f9 3789 wxPyEndAllowThreads(__tstate);
4dfaa61e 3790 if (PyErr_Occurred()) return NULL;
56f5d962
RD
3791} Py_INCREF(Py_None);
3792 _resultobj = Py_None;
3793{
3794 delete [] _arg2;
3795}
3796 return _resultobj;
3797}
3798
9df61a29
RD
3799static void *SwigwxPenListTowxObject(void *ptr) {
3800 wxPenList *src;
3801 wxObject *dest;
3802 src = (wxPenList *) ptr;
3803 dest = (wxObject *) src;
3804 return (void *) dest;
3805}
3806
5e40f9dd
RD
3807#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
3808static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject * _resultobj;
3810 wxPenList * _arg0;
3811 wxPen * _arg1;
3812 PyObject * _argo0 = 0;
3813 PyObject * _argo1 = 0;
3814 char *_kwnames[] = { "self","pen", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
3823 return NULL;
70551f47 3824 }
5e40f9dd
RD
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
3830 return NULL;
3831 }
3832 }
3833{
474c48f9 3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3835 wxPenList_AddPen(_arg0,_arg1);
70551f47 3836
474c48f9 3837 wxPyEndAllowThreads(__tstate);
4dfaa61e 3838 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3839} Py_INCREF(Py_None);
3840 _resultobj = Py_None;
3841 return _resultobj;
3842}
3843
3844#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
3845static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
3846 PyObject * _resultobj;
3847 wxPen * _result;
3848 wxPenList * _arg0;
3849 wxColour * _arg1;
3850 int _arg2;
3851 int _arg3;
3852 PyObject * _argo0 = 0;
3853 wxColour temp;
3854 PyObject * _obj1 = 0;
3855 char *_kwnames[] = { "self","colour","width","style", NULL };
3856 char _ptemp[128];
3857
3858 self = self;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
3860 return NULL;
3861 if (_argo0) {
3862 if (_argo0 == Py_None) { _arg0 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
3865 return NULL;
3866 }
3867 }
3868{
3869 _arg1 = &temp;
3870 if (! wxColour_helper(_obj1, &_arg1))
3871 return NULL;
3872}
3873{
474c48f9 3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3875 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5e40f9dd 3876
474c48f9 3877 wxPyEndAllowThreads(__tstate);
4dfaa61e 3878 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3879} if (_result) {
3880 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3881 _resultobj = Py_BuildValue("s",_ptemp);
3882 } else {
3883 Py_INCREF(Py_None);
3884 _resultobj = Py_None;
3885 }
3886 return _resultobj;
3887}
3888
3889#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
3890static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject * _resultobj;
3892 wxPenList * _arg0;
3893 wxPen * _arg1;
3894 PyObject * _argo0 = 0;
3895 PyObject * _argo1 = 0;
3896 char *_kwnames[] = { "self","pen", NULL };
3897
3898 self = self;
3899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
3900 return NULL;
3901 if (_argo0) {
3902 if (_argo0 == Py_None) { _arg0 = NULL; }
3903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
3905 return NULL;
3906 }
3907 }
3908 if (_argo1) {
3909 if (_argo1 == Py_None) { _arg1 = NULL; }
3910 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
3911 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
3912 return NULL;
3913 }
3914 }
3915{
474c48f9 3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3917 wxPenList_RemovePen(_arg0,_arg1);
5e40f9dd 3918
474c48f9 3919 wxPyEndAllowThreads(__tstate);
4dfaa61e 3920 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3921} Py_INCREF(Py_None);
3922 _resultobj = Py_None;
3923 return _resultobj;
3924}
3925
7a9b33db
RD
3926#define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
3927static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
3928 PyObject * _resultobj;
3929 int _result;
3930 wxPenList * _arg0;
3931 PyObject * _argo0 = 0;
3932 char *_kwnames[] = { "self", NULL };
3933
3934 self = self;
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
3936 return NULL;
3937 if (_argo0) {
3938 if (_argo0 == Py_None) { _arg0 = NULL; }
3939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
3940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
3941 return NULL;
3942 }
3943 }
3944{
474c48f9 3945 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3946 _result = (int )wxPenList_GetCount(_arg0);
7a9b33db 3947
474c48f9 3948 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
3949 if (PyErr_Occurred()) return NULL;
3950} _resultobj = Py_BuildValue("i",_result);
3951 return _resultobj;
3952}
3953
9df61a29
RD
3954static void *SwigwxBrushTowxGDIObject(void *ptr) {
3955 wxBrush *src;
3956 wxGDIObject *dest;
3957 src = (wxBrush *) ptr;
3958 dest = (wxGDIObject *) src;
3959 return (void *) dest;
3960}
3961
3962static void *SwigwxBrushTowxObject(void *ptr) {
3963 wxBrush *src;
3964 wxObject *dest;
3965 src = (wxBrush *) ptr;
3966 dest = (wxObject *) src;
3967 return (void *) dest;
3968}
3969
5e40f9dd 3970#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
107e4716 3971static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3972 PyObject * _resultobj;
3973 wxBrush * _result;
3974 wxColour * _arg0;
2d091820 3975 int _arg1 = (int ) wxSOLID;
f6bcfd97
BP
3976 wxColour temp;
3977 PyObject * _obj0 = 0;
107e4716 3978 char *_kwnames[] = { "colour","style", NULL };
70551f47
RD
3979 char _ptemp[128];
3980
3981 self = self;
f6bcfd97 3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
70551f47 3983 return NULL;
f6bcfd97
BP
3984{
3985 _arg0 = &temp;
3986 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3987 return NULL;
f6bcfd97 3988}
ab9bc19b 3989{
474c48f9 3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3991 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
ab9bc19b 3992
474c48f9 3993 wxPyEndAllowThreads(__tstate);
4dfaa61e 3994 if (PyErr_Occurred()) return NULL;
2d091820
RD
3995} if (_result) {
3996 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
3997 _resultobj = Py_BuildValue("s",_ptemp);
3998 } else {
3999 Py_INCREF(Py_None);
4000 _resultobj = Py_None;
4001 }
70551f47
RD
4002 return _resultobj;
4003}
4004
5e40f9dd
RD
4005#define delete_wxBrush(_swigobj) (delete _swigobj)
4006static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4007 PyObject * _resultobj;
4008 wxBrush * _arg0;
4009 PyObject * _argo0 = 0;
4010 char *_kwnames[] = { "self", NULL };
4011
4012 self = self;
4013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
4014 return NULL;
4015 if (_argo0) {
4016 if (_argo0 == Py_None) { _arg0 = NULL; }
4017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4019 return NULL;
4020 }
4021 }
4022{
474c48f9 4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4024 delete_wxBrush(_arg0);
5e40f9dd 4025
474c48f9 4026 wxPyEndAllowThreads(__tstate);
4dfaa61e 4027 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4028} Py_INCREF(Py_None);
4029 _resultobj = Py_None;
4030 return _resultobj;
4031}
4032
70551f47 4033#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
107e4716 4034static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4035 PyObject * _resultobj;
4036 wxColour * _result;
4037 wxBrush * _arg0;
2d091820 4038 PyObject * _argo0 = 0;
107e4716 4039 char *_kwnames[] = { "self", NULL };
70551f47
RD
4040 char _ptemp[128];
4041
4042 self = self;
107e4716 4043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
70551f47 4044 return NULL;
2d091820
RD
4045 if (_argo0) {
4046 if (_argo0 == Py_None) { _arg0 = NULL; }
4047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4049 return NULL;
4050 }
4051 }
ab9bc19b 4052{
474c48f9 4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4054 _result = new wxColour (wxBrush_GetColour(_arg0));
ab9bc19b 4055
474c48f9 4056 wxPyEndAllowThreads(__tstate);
4dfaa61e 4057 if (PyErr_Occurred()) return NULL;
84a81942
RD
4058} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4059 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
4060 return _resultobj;
4061}
4062
4063#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
107e4716 4064static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4065 PyObject * _resultobj;
4066 wxBitmap * _result;
4067 wxBrush * _arg0;
2d091820 4068 PyObject * _argo0 = 0;
107e4716 4069 char *_kwnames[] = { "self", NULL };
70551f47
RD
4070 char _ptemp[128];
4071
4072 self = self;
107e4716 4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
70551f47 4074 return NULL;
2d091820
RD
4075 if (_argo0) {
4076 if (_argo0 == Py_None) { _arg0 = NULL; }
4077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4079 return NULL;
4080 }
4081 }
ab9bc19b 4082{
474c48f9 4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4084 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
ab9bc19b 4085
474c48f9 4086 wxPyEndAllowThreads(__tstate);
4dfaa61e 4087 if (PyErr_Occurred()) return NULL;
2d091820
RD
4088} if (_result) {
4089 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4090 _resultobj = Py_BuildValue("s",_ptemp);
4091 } else {
4092 Py_INCREF(Py_None);
4093 _resultobj = Py_None;
4094 }
70551f47
RD
4095 return _resultobj;
4096}
4097
4098#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 4099static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4100 PyObject * _resultobj;
4101 int _result;
4102 wxBrush * _arg0;
2d091820 4103 PyObject * _argo0 = 0;
107e4716 4104 char *_kwnames[] = { "self", NULL };
70551f47
RD
4105
4106 self = self;
107e4716 4107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
70551f47 4108 return NULL;
2d091820
RD
4109 if (_argo0) {
4110 if (_argo0 == Py_None) { _arg0 = NULL; }
4111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4113 return NULL;
4114 }
4115 }
ab9bc19b 4116{
474c48f9 4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4118 _result = (int )wxBrush_GetStyle(_arg0);
ab9bc19b 4119
474c48f9 4120 wxPyEndAllowThreads(__tstate);
4dfaa61e 4121 if (PyErr_Occurred()) return NULL;
ab9bc19b 4122} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4123 return _resultobj;
4124}
4125
4126#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
107e4716 4127static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4128 PyObject * _resultobj;
4129 bool _result;
4130 wxBrush * _arg0;
2d091820 4131 PyObject * _argo0 = 0;
107e4716 4132 char *_kwnames[] = { "self", NULL };
70551f47
RD
4133
4134 self = self;
107e4716 4135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
70551f47 4136 return NULL;
2d091820
RD
4137 if (_argo0) {
4138 if (_argo0 == Py_None) { _arg0 = NULL; }
4139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4141 return NULL;
4142 }
4143 }
ab9bc19b 4144{
474c48f9 4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4146 _result = (bool )wxBrush_Ok(_arg0);
ab9bc19b 4147
474c48f9 4148 wxPyEndAllowThreads(__tstate);
4dfaa61e 4149 if (PyErr_Occurred()) return NULL;
ab9bc19b 4150} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4151 return _resultobj;
4152}
4153
c95e68d8 4154#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 4155static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4156 PyObject * _resultobj;
4157 wxBrush * _arg0;
4158 wxColour * _arg1;
2d091820 4159 PyObject * _argo0 = 0;
f6bcfd97
BP
4160 wxColour temp;
4161 PyObject * _obj1 = 0;
107e4716 4162 char *_kwnames[] = { "self","colour", NULL };
c95e68d8
RD
4163
4164 self = self;
f6bcfd97 4165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
c95e68d8 4166 return NULL;
2d091820
RD
4167 if (_argo0) {
4168 if (_argo0 == Py_None) { _arg0 = NULL; }
4169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4171 return NULL;
4172 }
4173 }
f6bcfd97
BP
4174{
4175 _arg1 = &temp;
4176 if (! wxColour_helper(_obj1, &_arg1))
c95e68d8 4177 return NULL;
f6bcfd97 4178}
ab9bc19b 4179{
474c48f9 4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4181 wxBrush_SetColour(_arg0,*_arg1);
ab9bc19b 4182
474c48f9 4183 wxPyEndAllowThreads(__tstate);
4dfaa61e 4184 if (PyErr_Occurred()) return NULL;
ab9bc19b 4185} Py_INCREF(Py_None);
c95e68d8
RD
4186 _resultobj = Py_None;
4187 return _resultobj;
4188}
4189
4190#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
107e4716 4191static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4192 PyObject * _resultobj;
4193 wxBrush * _arg0;
4194 wxBitmap * _arg1;
2d091820
RD
4195 PyObject * _argo0 = 0;
4196 PyObject * _argo1 = 0;
107e4716 4197 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
4198
4199 self = self;
107e4716 4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
c95e68d8 4201 return NULL;
2d091820
RD
4202 if (_argo0) {
4203 if (_argo0 == Py_None) { _arg0 = NULL; }
4204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4206 return NULL;
4207 }
4208 }
2d091820
RD
4209 if (_argo1) {
4210 if (_argo1 == Py_None) { _arg1 = NULL; }
4211 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
4212 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4213 return NULL;
4214 }
4215 }
ab9bc19b 4216{
474c48f9 4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4218 wxBrush_SetStipple(_arg0,*_arg1);
ab9bc19b 4219
474c48f9 4220 wxPyEndAllowThreads(__tstate);
4dfaa61e 4221 if (PyErr_Occurred()) return NULL;
ab9bc19b 4222} Py_INCREF(Py_None);
c95e68d8
RD
4223 _resultobj = Py_None;
4224 return _resultobj;
4225}
4226
4227#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 4228static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4229 PyObject * _resultobj;
4230 wxBrush * _arg0;
4231 int _arg1;
2d091820 4232 PyObject * _argo0 = 0;
107e4716 4233 char *_kwnames[] = { "self","style", NULL };
c95e68d8
RD
4234
4235 self = self;
107e4716 4236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
c95e68d8 4237 return NULL;
2d091820
RD
4238 if (_argo0) {
4239 if (_argo0 == Py_None) { _arg0 = NULL; }
4240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4242 return NULL;
4243 }
4244 }
ab9bc19b 4245{
474c48f9 4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4247 wxBrush_SetStyle(_arg0,_arg1);
ab9bc19b 4248
474c48f9 4249 wxPyEndAllowThreads(__tstate);
4dfaa61e 4250 if (PyErr_Occurred()) return NULL;
ab9bc19b 4251} Py_INCREF(Py_None);
c95e68d8
RD
4252 _resultobj = Py_None;
4253 return _resultobj;
4254}
4255
65191ae8
RD
4256static void *SwigwxBrushListTowxObject(void *ptr) {
4257 wxBrushList *src;
4258 wxObject *dest;
4259 src = (wxBrushList *) ptr;
4260 dest = (wxObject *) src;
4261 return (void *) dest;
4262}
4263
5e40f9dd
RD
4264#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4265static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4266 PyObject * _resultobj;
4267 wxBrushList * _arg0;
4268 wxBrush * _arg1;
4269 PyObject * _argo0 = 0;
4270 PyObject * _argo1 = 0;
4271 char *_kwnames[] = { "self","brush", NULL };
4272
4273 self = self;
4274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
4275 return NULL;
4276 if (_argo0) {
4277 if (_argo0 == Py_None) { _arg0 = NULL; }
4278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4280 return NULL;
4281 }
4282 }
4283 if (_argo1) {
4284 if (_argo1 == Py_None) { _arg1 = NULL; }
4285 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4286 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4287 return NULL;
4288 }
4289 }
4290{
474c48f9 4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4292 wxBrushList_AddBrush(_arg0,_arg1);
5e40f9dd 4293
474c48f9 4294 wxPyEndAllowThreads(__tstate);
4dfaa61e 4295 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4296} Py_INCREF(Py_None);
4297 _resultobj = Py_None;
4298 return _resultobj;
4299}
4300
4301#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4302static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject * _resultobj;
4304 wxBrush * _result;
4305 wxBrushList * _arg0;
4306 wxColour * _arg1;
4307 int _arg2;
4308 PyObject * _argo0 = 0;
4309 wxColour temp;
4310 PyObject * _obj1 = 0;
4311 char *_kwnames[] = { "self","colour","style", NULL };
4312 char _ptemp[128];
4313
4314 self = self;
4315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
4316 return NULL;
4317 if (_argo0) {
4318 if (_argo0 == Py_None) { _arg0 = NULL; }
4319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4321 return NULL;
4322 }
4323 }
4324{
4325 _arg1 = &temp;
4326 if (! wxColour_helper(_obj1, &_arg1))
4327 return NULL;
4328}
4329{
474c48f9 4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4331 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5e40f9dd 4332
474c48f9 4333 wxPyEndAllowThreads(__tstate);
4dfaa61e 4334 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4335} if (_result) {
4336 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4337 _resultobj = Py_BuildValue("s",_ptemp);
4338 } else {
4339 Py_INCREF(Py_None);
4340 _resultobj = Py_None;
4341 }
4342 return _resultobj;
4343}
4344
4345#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4346static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject * _resultobj;
4348 wxBrushList * _arg0;
4349 wxBrush * _arg1;
4350 PyObject * _argo0 = 0;
4351 PyObject * _argo1 = 0;
4352 char *_kwnames[] = { "self","brush", NULL };
4353
4354 self = self;
4355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
4356 return NULL;
4357 if (_argo0) {
4358 if (_argo0 == Py_None) { _arg0 = NULL; }
4359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4361 return NULL;
4362 }
4363 }
4364 if (_argo1) {
4365 if (_argo1 == Py_None) { _arg1 = NULL; }
4366 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4367 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4368 return NULL;
4369 }
4370 }
4371{
474c48f9 4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4373 wxBrushList_RemoveBrush(_arg0,_arg1);
5e40f9dd 4374
474c48f9 4375 wxPyEndAllowThreads(__tstate);
4dfaa61e 4376 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4377} Py_INCREF(Py_None);
4378 _resultobj = Py_None;
4379 return _resultobj;
4380}
4381
7a9b33db
RD
4382#define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4383static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4384 PyObject * _resultobj;
4385 int _result;
4386 wxBrushList * _arg0;
4387 PyObject * _argo0 = 0;
4388 char *_kwnames[] = { "self", NULL };
4389
4390 self = self;
4391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
4392 return NULL;
4393 if (_argo0) {
4394 if (_argo0 == Py_None) { _arg0 = NULL; }
4395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4397 return NULL;
4398 }
4399 }
4400{
474c48f9 4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4402 _result = (int )wxBrushList_GetCount(_arg0);
7a9b33db 4403
474c48f9 4404 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4405 if (PyErr_Occurred()) return NULL;
4406} _resultobj = Py_BuildValue("i",_result);
4407 return _resultobj;
4408}
4409
9df61a29
RD
4410static void *SwigwxDCTowxObject(void *ptr) {
4411 wxDC *src;
4412 wxObject *dest;
4413 src = (wxDC *) ptr;
4414 dest = (wxObject *) src;
4415 return (void *) dest;
4416}
4417
70551f47 4418#define delete_wxDC(_swigobj) (delete _swigobj)
107e4716 4419static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4420 PyObject * _resultobj;
4421 wxDC * _arg0;
2d091820 4422 PyObject * _argo0 = 0;
107e4716 4423 char *_kwnames[] = { "self", NULL };
70551f47
RD
4424
4425 self = self;
107e4716 4426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
70551f47 4427 return NULL;
2d091820
RD
4428 if (_argo0) {
4429 if (_argo0 == Py_None) { _arg0 = NULL; }
4430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4432 return NULL;
4433 }
4434 }
ab9bc19b 4435{
474c48f9 4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4437 delete_wxDC(_arg0);
ab9bc19b 4438
474c48f9 4439 wxPyEndAllowThreads(__tstate);
4dfaa61e 4440 if (PyErr_Occurred()) return NULL;
ab9bc19b 4441} Py_INCREF(Py_None);
70551f47
RD
4442 _resultobj = Py_None;
4443 return _resultobj;
4444}
4445
4446#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
107e4716 4447static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4448 PyObject * _resultobj;
4449 wxDC * _arg0;
2d091820 4450 PyObject * _argo0 = 0;
107e4716 4451 char *_kwnames[] = { "self", NULL };
70551f47
RD
4452
4453 self = self;
107e4716 4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
70551f47 4455 return NULL;
2d091820
RD
4456 if (_argo0) {
4457 if (_argo0 == Py_None) { _arg0 = NULL; }
4458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4460 return NULL;
4461 }
4462 }
ab9bc19b 4463{
474c48f9 4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4465 wxDC_BeginDrawing(_arg0);
ab9bc19b 4466
474c48f9 4467 wxPyEndAllowThreads(__tstate);
4dfaa61e 4468 if (PyErr_Occurred()) return NULL;
ab9bc19b 4469} Py_INCREF(Py_None);
70551f47
RD
4470 _resultobj = Py_None;
4471 return _resultobj;
4472}
4473
107e4716
RD
4474#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4475static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4476 PyObject * _resultobj;
4477 bool _result;
4478 wxDC * _arg0;
4479 long _arg1;
4480 long _arg2;
4481 long _arg3;
4482 long _arg4;
4483 wxDC * _arg5;
4484 long _arg6;
4485 long _arg7;
107e4716
RD
4486 int _arg8 = (int ) wxCOPY;
4487 int _arg9 = (int ) FALSE;
2d091820
RD
4488 PyObject * _argo0 = 0;
4489 PyObject * _argo5 = 0;
107e4716 4490 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
70551f47
RD
4491
4492 self = self;
107e4716 4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
70551f47 4494 return NULL;
2d091820
RD
4495 if (_argo0) {
4496 if (_argo0 == Py_None) { _arg0 = NULL; }
4497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4499 return NULL;
4500 }
4501 }
2d091820
RD
4502 if (_argo5) {
4503 if (_argo5 == Py_None) { _arg5 = NULL; }
4504 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
70551f47
RD
4505 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4506 return NULL;
4507 }
4508 }
ab9bc19b 4509{
474c48f9 4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4511 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
ab9bc19b 4512
474c48f9 4513 wxPyEndAllowThreads(__tstate);
4dfaa61e 4514 if (PyErr_Occurred()) return NULL;
ab9bc19b 4515} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4516 return _resultobj;
4517}
4518
4519#define wxDC_Clear(_swigobj) (_swigobj->Clear())
107e4716 4520static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4521 PyObject * _resultobj;
4522 wxDC * _arg0;
2d091820 4523 PyObject * _argo0 = 0;
107e4716 4524 char *_kwnames[] = { "self", NULL };
70551f47
RD
4525
4526 self = self;
107e4716 4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
70551f47 4528 return NULL;
2d091820
RD
4529 if (_argo0) {
4530 if (_argo0 == Py_None) { _arg0 = NULL; }
4531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4533 return NULL;
4534 }
4535 }
ab9bc19b 4536{
474c48f9 4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4538 wxDC_Clear(_arg0);
ab9bc19b 4539
474c48f9 4540 wxPyEndAllowThreads(__tstate);
4dfaa61e 4541 if (PyErr_Occurred()) return NULL;
ab9bc19b 4542} Py_INCREF(Py_None);
70551f47
RD
4543 _resultobj = Py_None;
4544 return _resultobj;
4545}
4546
4547#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
107e4716 4548static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4549 PyObject * _resultobj;
4550 wxDC * _arg0;
4551 long _arg1;
4552 long _arg2;
2d091820 4553 PyObject * _argo0 = 0;
107e4716 4554 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
4555
4556 self = self;
107e4716 4557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 4558 return NULL;
2d091820
RD
4559 if (_argo0) {
4560 if (_argo0 == Py_None) { _arg0 = NULL; }
4561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4563 return NULL;
4564 }
4565 }
ab9bc19b 4566{
474c48f9 4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4568 wxDC_CrossHair(_arg0,_arg1,_arg2);
ab9bc19b 4569
474c48f9 4570 wxPyEndAllowThreads(__tstate);
4dfaa61e 4571 if (PyErr_Occurred()) return NULL;
ab9bc19b 4572} Py_INCREF(Py_None);
70551f47
RD
4573 _resultobj = Py_None;
4574 return _resultobj;
4575}
4576
4577#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
107e4716 4578static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4579 PyObject * _resultobj;
4580 wxDC * _arg0;
2d091820 4581 PyObject * _argo0 = 0;
107e4716 4582 char *_kwnames[] = { "self", NULL };
70551f47
RD
4583
4584 self = self;
107e4716 4585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
70551f47 4586 return NULL;
2d091820
RD
4587 if (_argo0) {
4588 if (_argo0 == Py_None) { _arg0 = NULL; }
4589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4591 return NULL;
4592 }
4593 }
ab9bc19b 4594{
474c48f9 4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4596 wxDC_DestroyClippingRegion(_arg0);
ab9bc19b 4597
474c48f9 4598 wxPyEndAllowThreads(__tstate);
4dfaa61e 4599 if (PyErr_Occurred()) return NULL;
ab9bc19b 4600} Py_INCREF(Py_None);
70551f47
RD
4601 _resultobj = Py_None;
4602 return _resultobj;
4603}
4604
4605#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
107e4716 4606static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4607 PyObject * _resultobj;
4608 long _result;
4609 wxDC * _arg0;
4610 long _arg1;
2d091820 4611 PyObject * _argo0 = 0;
107e4716 4612 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
4613
4614 self = self;
107e4716 4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
70551f47 4616 return NULL;
2d091820
RD
4617 if (_argo0) {
4618 if (_argo0 == Py_None) { _arg0 = NULL; }
4619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4621 return NULL;
4622 }
4623 }
ab9bc19b 4624{
474c48f9 4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4626 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
ab9bc19b 4627
474c48f9 4628 wxPyEndAllowThreads(__tstate);
4dfaa61e 4629 if (PyErr_Occurred()) return NULL;
ab9bc19b 4630} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
4631 return _resultobj;
4632}
4633
4634#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
107e4716 4635static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4636 PyObject * _resultobj;
4637 long _result;
4638 wxDC * _arg0;
4639 long _arg1;
2d091820 4640 PyObject * _argo0 = 0;
107e4716 4641 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
4642
4643 self = self;
107e4716 4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
70551f47 4645 return NULL;
2d091820
RD
4646 if (_argo0) {
4647 if (_argo0 == Py_None) { _arg0 = NULL; }
4648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4650 return NULL;
4651 }
4652 }
ab9bc19b 4653{
474c48f9 4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4655 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
ab9bc19b 4656
474c48f9 4657 wxPyEndAllowThreads(__tstate);
4dfaa61e 4658 if (PyErr_Occurred()) return NULL;
ab9bc19b 4659} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
4660 return _resultobj;
4661}
4662
4663#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
107e4716 4664static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4665 PyObject * _resultobj;
4666 long _result;
4667 wxDC * _arg0;
4668 long _arg1;
2d091820 4669 PyObject * _argo0 = 0;
107e4716 4670 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
4671
4672 self = self;
107e4716 4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
70551f47 4674 return NULL;
2d091820
RD
4675 if (_argo0) {
4676 if (_argo0 == Py_None) { _arg0 = NULL; }
4677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4679 return NULL;
4680 }
4681 }
ab9bc19b 4682{
474c48f9 4683 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4684 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
ab9bc19b 4685
474c48f9 4686 wxPyEndAllowThreads(__tstate);
4dfaa61e 4687 if (PyErr_Occurred()) return NULL;
ab9bc19b 4688} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
4689 return _resultobj;
4690}
4691
4692#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
107e4716 4693static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4694 PyObject * _resultobj;
4695 long _result;
4696 wxDC * _arg0;
4697 long _arg1;
2d091820 4698 PyObject * _argo0 = 0;
107e4716 4699 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
4700
4701 self = self;
107e4716 4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
70551f47 4703 return NULL;
2d091820
RD
4704 if (_argo0) {
4705 if (_argo0 == Py_None) { _arg0 = NULL; }
4706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
4708 return NULL;
4709 }
4710 }
ab9bc19b 4711{
474c48f9 4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4713 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
ab9bc19b 4714
474c48f9 4715 wxPyEndAllowThreads(__tstate);
4dfaa61e 4716 if (PyErr_Occurred()) return NULL;
ab9bc19b 4717} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
4718 return _resultobj;
4719}
4720
4721#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 4722static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4723 PyObject * _resultobj;
4724 wxDC * _arg0;
4725 long _arg1;
4726 long _arg2;
4727 long _arg3;
4728 long _arg4;
4729 long _arg5;
4730 long _arg6;
2d091820 4731 PyObject * _argo0 = 0;
107e4716 4732 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
70551f47
RD
4733
4734 self = self;
107e4716 4735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 4736 return NULL;
2d091820
RD
4737 if (_argo0) {
4738 if (_argo0 == Py_None) { _arg0 = NULL; }
4739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
4741 return NULL;
4742 }
4743 }
ab9bc19b 4744{
474c48f9 4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4746 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 4747
474c48f9 4748 wxPyEndAllowThreads(__tstate);
4dfaa61e 4749 if (PyErr_Occurred()) return NULL;
ab9bc19b 4750} Py_INCREF(Py_None);
70551f47
RD
4751 _resultobj = Py_None;
4752 return _resultobj;
4753}
4754
d24a34bb 4755#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
107e4716 4756static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
4757 PyObject * _resultobj;
4758 wxDC * _arg0;
4759 long _arg1;
4760 long _arg2;
4761 long _arg3;
2d091820 4762 PyObject * _argo0 = 0;
107e4716 4763 char *_kwnames[] = { "self","x","y","radius", NULL };
d24a34bb
RD
4764
4765 self = self;
107e4716 4766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
d24a34bb 4767 return NULL;
2d091820
RD
4768 if (_argo0) {
4769 if (_argo0 == Py_None) { _arg0 = NULL; }
4770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
4771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
4772 return NULL;
4773 }
4774 }
4775{
474c48f9 4776 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4777 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
d24a34bb 4778
474c48f9 4779 wxPyEndAllowThreads(__tstate);
4dfaa61e 4780 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
4781} Py_INCREF(Py_None);
4782 _resultobj = Py_None;
4783 return _resultobj;
4784}
4785
70551f47 4786#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 4787static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4788 PyObject * _resultobj;
4789 wxDC * _arg0;
4790 long _arg1;
4791 long _arg2;
4792 long _arg3;
4793 long _arg4;
2d091820 4794 PyObject * _argo0 = 0;
107e4716 4795 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
4796
4797 self = self;
107e4716 4798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 4799 return NULL;
2d091820
RD
4800 if (_argo0) {
4801 if (_argo0 == Py_None) { _arg0 = NULL; }
4802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
4804 return NULL;
4805 }
4806 }
ab9bc19b 4807{
474c48f9 4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4809 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 4810
474c48f9 4811 wxPyEndAllowThreads(__tstate);
4dfaa61e 4812 if (PyErr_Occurred()) return NULL;
ab9bc19b 4813} Py_INCREF(Py_None);
70551f47
RD
4814 _resultobj = Py_None;
4815 return _resultobj;
4816}
4817
4818#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 4819static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4820 PyObject * _resultobj;
4821 wxDC * _arg0;
4822 long _arg1;
4823 long _arg2;
4824 long _arg3;
4825 long _arg4;
4826 long _arg5;
4827 long _arg6;
2d091820 4828 PyObject * _argo0 = 0;
107e4716 4829 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
70551f47
RD
4830
4831 self = self;
107e4716 4832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 4833 return NULL;
2d091820
RD
4834 if (_argo0) {
4835 if (_argo0 == Py_None) { _arg0 = NULL; }
4836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
4838 return NULL;
4839 }
4840 }
ab9bc19b 4841{
474c48f9 4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4843 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 4844
474c48f9 4845 wxPyEndAllowThreads(__tstate);
4dfaa61e 4846 if (PyErr_Occurred()) return NULL;
ab9bc19b 4847} Py_INCREF(Py_None);
70551f47
RD
4848 _resultobj = Py_None;
4849 return _resultobj;
4850}
4851
4852#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
107e4716 4853static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4854 PyObject * _resultobj;
4855 wxDC * _arg0;
4856 wxIcon * _arg1;
4857 long _arg2;
4858 long _arg3;
2d091820
RD
4859 PyObject * _argo0 = 0;
4860 PyObject * _argo1 = 0;
107e4716 4861 char *_kwnames[] = { "self","icon","x","y", NULL };
70551f47
RD
4862
4863 self = self;
107e4716 4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
70551f47 4865 return NULL;
2d091820
RD
4866 if (_argo0) {
4867 if (_argo0 == Py_None) { _arg0 = NULL; }
4868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
4869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
4870 return NULL;
4871 }
4872 }
2d091820
RD
4873 if (_argo1) {
4874 if (_argo1 == Py_None) { _arg1 = NULL; }
4875 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
70551f47
RD
4876 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
4877 return NULL;
4878 }
4879 }
ab9bc19b 4880{
474c48f9 4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4882 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 4883
474c48f9 4884 wxPyEndAllowThreads(__tstate);
4dfaa61e 4885 if (PyErr_Occurred()) return NULL;
ab9bc19b 4886} Py_INCREF(Py_None);
70551f47
RD
4887 _resultobj = Py_None;
4888 return _resultobj;
4889}
4890
8cb49012
RD
4891#define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4892static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4893 PyObject * _resultobj;
4894 wxDC * _arg0;
4895 wxString * _arg1;
4896 wxRect * _arg2;
4897 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
4898 int _arg4 = (int ) -1;
4899 PyObject * _argo0 = 0;
4900 PyObject * _obj1 = 0;
4901 wxRect temp;
4902 PyObject * _obj2 = 0;
4903 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
4904
4905 self = self;
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
4907 return NULL;
4908 if (_argo0) {
4909 if (_argo0 == Py_None) { _arg0 = NULL; }
4910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
4912 return NULL;
4913 }
4914 }
4915{
c8bc7bb8
RD
4916 _arg1 = wxString_in_helper(_obj1);
4917 if (_arg1 == NULL)
8cb49012 4918 return NULL;
8cb49012
RD
4919}
4920{
4921 _arg2 = &temp;
4922 if (! wxRect_helper(_obj2, &_arg2))
4923 return NULL;
4924}
4925{
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4927 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
8cb49012
RD
4928
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) return NULL;
4931} Py_INCREF(Py_None);
4932 _resultobj = Py_None;
4933{
4934 if (_obj1)
4935 delete _arg1;
4936}
4937 return _resultobj;
4938}
4939
4940static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
4941 wxRect rv;
4942 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
4943 return rv;
4944 }
4945static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4946 PyObject * _resultobj;
4947 wxRect * _result;
4948 wxDC * _arg0;
4949 wxString * _arg1;
4950 wxBitmap * _arg2;
4951 wxRect * _arg3;
4952 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
4953 int _arg5 = (int ) -1;
4954 PyObject * _argo0 = 0;
4955 PyObject * _obj1 = 0;
4956 PyObject * _argo2 = 0;
4957 wxRect temp;
4958 PyObject * _obj3 = 0;
4959 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
4960 char _ptemp[128];
4961
4962 self = self;
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
4964 return NULL;
4965 if (_argo0) {
4966 if (_argo0 == Py_None) { _arg0 = NULL; }
4967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
4969 return NULL;
4970 }
4971 }
4972{
c8bc7bb8
RD
4973 _arg1 = wxString_in_helper(_obj1);
4974 if (_arg1 == NULL)
8cb49012 4975 return NULL;
8cb49012
RD
4976}
4977 if (_argo2) {
4978 if (_argo2 == Py_None) { _arg2 = NULL; }
4979 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
4980 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
4981 return NULL;
4982 }
4983 }
4984{
4985 _arg3 = &temp;
4986 if (! wxRect_helper(_obj3, &_arg3))
4987 return NULL;
4988}
4989{
4990 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4991 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
8cb49012
RD
4992
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) return NULL;
4995} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
4996 _resultobj = Py_BuildValue("s",_ptemp);
4997{
4998 if (_obj1)
4999 delete _arg1;
5000}
5001 return _resultobj;
5002}
5003
70551f47 5004#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5005static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5006 PyObject * _resultobj;
5007 wxDC * _arg0;
5008 long _arg1;
5009 long _arg2;
5010 long _arg3;
5011 long _arg4;
2d091820 5012 PyObject * _argo0 = 0;
107e4716 5013 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
70551f47
RD
5014
5015 self = self;
107e4716 5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 5017 return NULL;
2d091820
RD
5018 if (_argo0) {
5019 if (_argo0 == Py_None) { _arg0 = NULL; }
5020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5022 return NULL;
5023 }
5024 }
ab9bc19b 5025{
474c48f9 5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5027 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5028
474c48f9 5029 wxPyEndAllowThreads(__tstate);
4dfaa61e 5030 if (PyErr_Occurred()) return NULL;
ab9bc19b 5031} Py_INCREF(Py_None);
70551f47
RD
5032 _resultobj = Py_None;
5033 return _resultobj;
5034}
5035
5036#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5037static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5038 PyObject * _resultobj;
5039 wxDC * _arg0;
5040 int _arg1;
5041 wxPoint * _arg2;
2d091820
RD
5042 long _arg3 = (long ) 0;
5043 long _arg4 = (long ) 0;
5044 PyObject * _argo0 = 0;
1c09ae54 5045 int NPOINTS;
70551f47 5046 PyObject * _obj2 = 0;
e02c03a4 5047 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
70551f47
RD
5048
5049 self = self;
107e4716 5050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
70551f47 5051 return NULL;
2d091820
RD
5052 if (_argo0) {
5053 if (_argo0 == Py_None) { _arg0 = NULL; }
5054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5056 return NULL;
5057 }
5058 }
5059 if (_obj2)
5060{
1c09ae54
RD
5061 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5062 if (_arg2 == NULL) {
5063 return NULL;
5064 }
70551f47
RD
5065}
5066{
1c09ae54 5067 _arg1 = NPOINTS;
70551f47 5068}
ab9bc19b 5069{
474c48f9 5070 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5071 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5072
474c48f9 5073 wxPyEndAllowThreads(__tstate);
4dfaa61e 5074 if (PyErr_Occurred()) return NULL;
ab9bc19b 5075} Py_INCREF(Py_None);
70551f47
RD
5076 _resultobj = Py_None;
5077{
5078 delete [] _arg2;
5079}
5080 return _resultobj;
5081}
5082
5083#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 5084static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5085 PyObject * _resultobj;
5086 wxDC * _arg0;
5087 int _arg1;
5088 wxPoint * _arg2;
2d091820
RD
5089 long _arg3 = (long ) 0;
5090 long _arg4 = (long ) 0;
5091 int _arg5 = (int ) wxODDEVEN_RULE;
5092 PyObject * _argo0 = 0;
1c09ae54 5093 int NPOINTS;
70551f47 5094 PyObject * _obj2 = 0;
e02c03a4 5095 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
70551f47
RD
5096
5097 self = self;
107e4716 5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
70551f47 5099 return NULL;
2d091820
RD
5100 if (_argo0) {
5101 if (_argo0 == Py_None) { _arg0 = NULL; }
5102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5104 return NULL;
5105 }
5106 }
5107 if (_obj2)
5108{
1c09ae54
RD
5109 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5110 if (_arg2 == NULL) {
5111 return NULL;
5112 }
70551f47
RD
5113}
5114{
1c09ae54 5115 _arg1 = NPOINTS;
70551f47 5116}
ab9bc19b 5117{
474c48f9 5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5119 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 5120
474c48f9 5121 wxPyEndAllowThreads(__tstate);
4dfaa61e 5122 if (PyErr_Occurred()) return NULL;
ab9bc19b 5123} Py_INCREF(Py_None);
70551f47
RD
5124 _resultobj = Py_None;
5125{
5126 delete [] _arg2;
5127}
5128 return _resultobj;
5129}
5130
5131#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
107e4716 5132static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5133 PyObject * _resultobj;
5134 wxDC * _arg0;
5135 long _arg1;
5136 long _arg2;
2d091820 5137 PyObject * _argo0 = 0;
107e4716 5138 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
5139
5140 self = self;
107e4716 5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 5142 return NULL;
2d091820
RD
5143 if (_argo0) {
5144 if (_argo0 == Py_None) { _arg0 = NULL; }
5145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5147 return NULL;
5148 }
5149 }
ab9bc19b 5150{
474c48f9 5151 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5152 wxDC_DrawPoint(_arg0,_arg1,_arg2);
ab9bc19b 5153
474c48f9 5154 wxPyEndAllowThreads(__tstate);
4dfaa61e 5155 if (PyErr_Occurred()) return NULL;
ab9bc19b 5156} Py_INCREF(Py_None);
70551f47
RD
5157 _resultobj = Py_None;
5158 return _resultobj;
5159}
5160
5161#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5162static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5163 PyObject * _resultobj;
5164 wxDC * _arg0;
5165 long _arg1;
5166 long _arg2;
5167 long _arg3;
5168 long _arg4;
2d091820 5169 PyObject * _argo0 = 0;
107e4716 5170 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
5171
5172 self = self;
107e4716 5173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 5174 return NULL;
2d091820
RD
5175 if (_argo0) {
5176 if (_argo0 == Py_None) { _arg0 = NULL; }
5177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5179 return NULL;
5180 }
5181 }
ab9bc19b 5182{
474c48f9 5183 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5184 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5185
474c48f9 5186 wxPyEndAllowThreads(__tstate);
4dfaa61e 5187 if (PyErr_Occurred()) return NULL;
ab9bc19b 5188} Py_INCREF(Py_None);
70551f47
RD
5189 _resultobj = Py_None;
5190 return _resultobj;
5191}
5192
b2a2e5bf
RD
5193#define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5194static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5195 PyObject * _resultobj;
5196 wxDC * _arg0;
5197 wxRect * _arg1;
5198 PyObject * _argo0 = 0;
5199 wxRect temp;
5200 PyObject * _obj1 = 0;
5201 char *_kwnames[] = { "self","rect", NULL };
5202
5203 self = self;
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1))
5205 return NULL;
5206 if (_argo0) {
5207 if (_argo0 == Py_None) { _arg0 = NULL; }
5208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5210 return NULL;
5211 }
5212 }
5213{
5214 _arg1 = &temp;
5215 if (! wxRect_helper(_obj1, &_arg1))
5216 return NULL;
5217}
5218{
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 wxDC_DrawRectangleRect(_arg0,*_arg1);
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) return NULL;
5224} Py_INCREF(Py_None);
5225 _resultobj = Py_None;
5226 return _resultobj;
5227}
5228
56f5d962
RD
5229#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5230static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
5231 PyObject * _resultobj;
5232 wxDC * _arg0;
5233 wxString * _arg1;
5234 wxCoord _arg2;
5235 wxCoord _arg3;
5236 double _arg4;
5237 PyObject * _argo0 = 0;
5238 PyObject * _obj1 = 0;
5239 char *_kwnames[] = { "self","text","x","y","angle", NULL };
5240
5241 self = self;
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5243 return NULL;
5244 if (_argo0) {
5245 if (_argo0 == Py_None) { _arg0 = NULL; }
5246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5248 return NULL;
5249 }
5250 }
5251{
c8bc7bb8
RD
5252 _arg1 = wxString_in_helper(_obj1);
5253 if (_arg1 == NULL)
2cd2fac8 5254 return NULL;
56f5d962
RD
5255}
5256{
474c48f9 5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5258 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
56f5d962 5259
474c48f9 5260 wxPyEndAllowThreads(__tstate);
4dfaa61e 5261 if (PyErr_Occurred()) return NULL;
56f5d962
RD
5262} Py_INCREF(Py_None);
5263 _resultobj = Py_None;
5264{
5265 if (_obj1)
5266 delete _arg1;
5267}
5268 return _resultobj;
5269}
5270
70551f47 5271#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 5272static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5273 PyObject * _resultobj;
5274 wxDC * _arg0;
5275 long _arg1;
5276 long _arg2;
5277 long _arg3;
5278 long _arg4;
2d091820
RD
5279 long _arg5 = (long ) 20;
5280 PyObject * _argo0 = 0;
107e4716 5281 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
70551f47
RD
5282
5283 self = self;
107e4716 5284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
70551f47 5285 return NULL;
2d091820
RD
5286 if (_argo0) {
5287 if (_argo0 == Py_None) { _arg0 = NULL; }
5288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5290 return NULL;
5291 }
5292 }
ab9bc19b 5293{
474c48f9 5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5295 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 5296
474c48f9 5297 wxPyEndAllowThreads(__tstate);
4dfaa61e 5298 if (PyErr_Occurred()) return NULL;
ab9bc19b 5299} Py_INCREF(Py_None);
70551f47
RD
5300 _resultobj = Py_None;
5301 return _resultobj;
5302}
5303
5304#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
107e4716 5305static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5306 PyObject * _resultobj;
5307 wxDC * _arg0;
5308 int _arg1;
5309 wxPoint * _arg2;
2d091820 5310 PyObject * _argo0 = 0;
1c09ae54 5311 int NPOINTS;
70551f47 5312 PyObject * _obj2 = 0;
e02c03a4 5313 char *_kwnames[] = { "self","points", NULL };
70551f47
RD
5314
5315 self = self;
107e4716 5316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
70551f47 5317 return NULL;
2d091820
RD
5318 if (_argo0) {
5319 if (_argo0 == Py_None) { _arg0 = NULL; }
5320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5322 return NULL;
5323 }
5324 }
5325 if (_obj2)
5326{
1c09ae54
RD
5327 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5328 if (_arg2 == NULL) {
5329 return NULL;
5330 }
70551f47
RD
5331}
5332{
1c09ae54 5333 _arg1 = NPOINTS;
70551f47 5334}
ab9bc19b 5335{
474c48f9 5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5337 wxDC_DrawSpline(_arg0,_arg1,_arg2);
ab9bc19b 5338
474c48f9 5339 wxPyEndAllowThreads(__tstate);
4dfaa61e 5340 if (PyErr_Occurred()) return NULL;
ab9bc19b 5341} Py_INCREF(Py_None);
70551f47
RD
5342 _resultobj = Py_None;
5343{
5344 delete [] _arg2;
5345}
5346 return _resultobj;
5347}
5348
5349#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
107e4716 5350static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5351 PyObject * _resultobj;
5352 wxDC * _arg0;
5353 wxString * _arg1;
5354 long _arg2;
5355 long _arg3;
2d091820 5356 PyObject * _argo0 = 0;
70551f47 5357 PyObject * _obj1 = 0;
107e4716 5358 char *_kwnames[] = { "self","text","x","y", NULL };
70551f47
RD
5359
5360 self = self;
107e4716 5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
70551f47 5362 return NULL;
2d091820
RD
5363 if (_argo0) {
5364 if (_argo0 == Py_None) { _arg0 = NULL; }
5365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5367 return NULL;
5368 }
5369 }
5370{
c8bc7bb8
RD
5371 _arg1 = wxString_in_helper(_obj1);
5372 if (_arg1 == NULL)
70551f47 5373 return NULL;
70551f47 5374}
ab9bc19b 5375{
474c48f9 5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5377 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 5378
474c48f9 5379 wxPyEndAllowThreads(__tstate);
4dfaa61e 5380 if (PyErr_Occurred()) return NULL;
ab9bc19b 5381} Py_INCREF(Py_None);
70551f47
RD
5382 _resultobj = Py_None;
5383{
5384 if (_obj1)
5385 delete _arg1;
5386}
5387 return _resultobj;
5388}
5389
5390#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
107e4716 5391static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5392 PyObject * _resultobj;
5393 wxDC * _arg0;
2d091820 5394 PyObject * _argo0 = 0;
107e4716 5395 char *_kwnames[] = { "self", NULL };
70551f47
RD
5396
5397 self = self;
107e4716 5398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
70551f47 5399 return NULL;
2d091820
RD
5400 if (_argo0) {
5401 if (_argo0 == Py_None) { _arg0 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5404 return NULL;
5405 }
5406 }
ab9bc19b 5407{
474c48f9 5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5409 wxDC_EndDoc(_arg0);
ab9bc19b 5410
474c48f9 5411 wxPyEndAllowThreads(__tstate);
4dfaa61e 5412 if (PyErr_Occurred()) return NULL;
ab9bc19b 5413} Py_INCREF(Py_None);
70551f47
RD
5414 _resultobj = Py_None;
5415 return _resultobj;
5416}
5417
5418#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
107e4716 5419static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5420 PyObject * _resultobj;
5421 wxDC * _arg0;
2d091820 5422 PyObject * _argo0 = 0;
107e4716 5423 char *_kwnames[] = { "self", NULL };
70551f47
RD
5424
5425 self = self;
107e4716 5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
70551f47 5427 return NULL;
2d091820
RD
5428 if (_argo0) {
5429 if (_argo0 == Py_None) { _arg0 = NULL; }
5430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5432 return NULL;
5433 }
5434 }
ab9bc19b 5435{
474c48f9 5436 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5437 wxDC_EndDrawing(_arg0);
ab9bc19b 5438
474c48f9 5439 wxPyEndAllowThreads(__tstate);
4dfaa61e 5440 if (PyErr_Occurred()) return NULL;
ab9bc19b 5441} Py_INCREF(Py_None);
70551f47
RD
5442 _resultobj = Py_None;
5443 return _resultobj;
5444}
5445
5446#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
107e4716 5447static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5448 PyObject * _resultobj;
5449 wxDC * _arg0;
2d091820 5450 PyObject * _argo0 = 0;
107e4716 5451 char *_kwnames[] = { "self", NULL };
70551f47
RD
5452
5453 self = self;
107e4716 5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
70551f47 5455 return NULL;
2d091820
RD
5456 if (_argo0) {
5457 if (_argo0 == Py_None) { _arg0 = NULL; }
5458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5460 return NULL;
5461 }
5462 }
ab9bc19b 5463{
474c48f9 5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5465 wxDC_EndPage(_arg0);
ab9bc19b 5466
474c48f9 5467 wxPyEndAllowThreads(__tstate);
4dfaa61e 5468 if (PyErr_Occurred()) return NULL;
ab9bc19b 5469} Py_INCREF(Py_None);
70551f47
RD
5470 _resultobj = Py_None;
5471 return _resultobj;
5472}
5473
5474#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5475static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 5476 PyObject * _resultobj;
b98a5dfc 5477 bool _result;
70551f47
RD
5478 wxDC * _arg0;
5479 long _arg1;
5480 long _arg2;
5481 wxColour * _arg3;
2d091820
RD
5482 int _arg4 = (int ) wxFLOOD_SURFACE;
5483 PyObject * _argo0 = 0;
f6bcfd97
BP
5484 wxColour temp;
5485 PyObject * _obj3 = 0;
107e4716 5486 char *_kwnames[] = { "self","x","y","colour","style", NULL };
70551f47
RD
5487
5488 self = self;
f6bcfd97 5489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
70551f47 5490 return NULL;
2d091820
RD
5491 if (_argo0) {
5492 if (_argo0 == Py_None) { _arg0 = NULL; }
5493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5495 return NULL;
5496 }
5497 }
f6bcfd97
BP
5498{
5499 _arg3 = &temp;
5500 if (! wxColour_helper(_obj3, &_arg3))
70551f47 5501 return NULL;
f6bcfd97 5502}
ab9bc19b 5503{
474c48f9 5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
b98a5dfc 5505 _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
ab9bc19b 5506
474c48f9 5507 wxPyEndAllowThreads(__tstate);
4dfaa61e 5508 if (PyErr_Occurred()) return NULL;
b98a5dfc 5509} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5510 return _resultobj;
5511}
5512
5513#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
107e4716 5514static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5515 PyObject * _resultobj;
5516 wxBrush * _result;
5517 wxDC * _arg0;
2d091820 5518 PyObject * _argo0 = 0;
107e4716 5519 char *_kwnames[] = { "self", NULL };
70551f47
RD
5520 char _ptemp[128];
5521
5522 self = self;
107e4716 5523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
70551f47 5524 return NULL;
2d091820
RD
5525 if (_argo0) {
5526 if (_argo0 == Py_None) { _arg0 = NULL; }
5527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5529 return NULL;
5530 }
5531 }
ab9bc19b 5532{
474c48f9 5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5534 _result = new wxBrush (wxDC_GetBackground(_arg0));
ab9bc19b 5535
474c48f9 5536 wxPyEndAllowThreads(__tstate);
4dfaa61e 5537 if (PyErr_Occurred()) return NULL;
3e212503
RD
5538} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
5539 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5540 return _resultobj;
5541}
5542
5543#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
107e4716 5544static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5545 PyObject * _resultobj;
5546 wxBrush * _result;
5547 wxDC * _arg0;
2d091820 5548 PyObject * _argo0 = 0;
107e4716 5549 char *_kwnames[] = { "self", NULL };
70551f47
RD
5550 char _ptemp[128];
5551
5552 self = self;
107e4716 5553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
70551f47 5554 return NULL;
2d091820
RD
5555 if (_argo0) {
5556 if (_argo0 == Py_None) { _arg0 = NULL; }
5557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5559 return NULL;
5560 }
5561 }
ab9bc19b 5562{
474c48f9 5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5564 _result = new wxBrush (wxDC_GetBrush(_arg0));
ab9bc19b 5565
474c48f9 5566 wxPyEndAllowThreads(__tstate);
4dfaa61e 5567 if (PyErr_Occurred()) return NULL;
3e212503
RD
5568} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
5569 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5570 return _resultobj;
5571}
5572
5573#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
107e4716 5574static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5575 PyObject * _resultobj;
5576 long _result;
5577 wxDC * _arg0;
2d091820 5578 PyObject * _argo0 = 0;
107e4716 5579 char *_kwnames[] = { "self", NULL };
70551f47
RD
5580
5581 self = self;
107e4716 5582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
70551f47 5583 return NULL;
2d091820
RD
5584 if (_argo0) {
5585 if (_argo0 == Py_None) { _arg0 = NULL; }
5586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5588 return NULL;
5589 }
5590 }
ab9bc19b 5591{
474c48f9 5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5593 _result = (long )wxDC_GetCharHeight(_arg0);
ab9bc19b 5594
474c48f9 5595 wxPyEndAllowThreads(__tstate);
4dfaa61e 5596 if (PyErr_Occurred()) return NULL;
ab9bc19b 5597} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
5598 return _resultobj;
5599}
5600
5601#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
107e4716 5602static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5603 PyObject * _resultobj;
5604 long _result;
5605 wxDC * _arg0;
2d091820 5606 PyObject * _argo0 = 0;
107e4716 5607 char *_kwnames[] = { "self", NULL };
70551f47
RD
5608
5609 self = self;
107e4716 5610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
70551f47 5611 return NULL;
2d091820
RD
5612 if (_argo0) {
5613 if (_argo0 == Py_None) { _arg0 = NULL; }
5614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5616 return NULL;
5617 }
5618 }
ab9bc19b 5619{
474c48f9 5620 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5621 _result = (long )wxDC_GetCharWidth(_arg0);
ab9bc19b 5622
474c48f9 5623 wxPyEndAllowThreads(__tstate);
4dfaa61e 5624 if (PyErr_Occurred()) return NULL;
ab9bc19b 5625} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
5626 return _resultobj;
5627}
5628
5629#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5630static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5631 PyObject * _resultobj;
5632 wxDC * _arg0;
5633 long * _arg1;
5634 long temp;
5635 long * _arg2;
5636 long temp0;
5637 long * _arg3;
5638 long temp1;
5639 long * _arg4;
5640 long temp2;
2d091820 5641 PyObject * _argo0 = 0;
107e4716 5642 char *_kwnames[] = { "self", NULL };
70551f47
RD
5643
5644 self = self;
5645{
5646 _arg1 = &temp;
5647}
5648{
5649 _arg2 = &temp0;
5650}
5651{
5652 _arg3 = &temp1;
5653}
5654{
5655 _arg4 = &temp2;
5656}
107e4716 5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
70551f47 5658 return NULL;
2d091820
RD
5659 if (_argo0) {
5660 if (_argo0 == Py_None) { _arg0 = NULL; }
5661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5663 return NULL;
5664 }
5665 }
ab9bc19b 5666{
474c48f9 5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5668 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5669
474c48f9 5670 wxPyEndAllowThreads(__tstate);
4dfaa61e 5671 if (PyErr_Occurred()) return NULL;
ab9bc19b 5672} Py_INCREF(Py_None);
70551f47
RD
5673 _resultobj = Py_None;
5674{
5675 PyObject *o;
5676 o = PyInt_FromLong((long) (*_arg1));
5677 _resultobj = t_output_helper(_resultobj, o);
5678}
5679{
5680 PyObject *o;
5681 o = PyInt_FromLong((long) (*_arg2));
5682 _resultobj = t_output_helper(_resultobj, o);
5683}
5684{
5685 PyObject *o;
5686 o = PyInt_FromLong((long) (*_arg3));
5687 _resultobj = t_output_helper(_resultobj, o);
5688}
5689{
5690 PyObject *o;
5691 o = PyInt_FromLong((long) (*_arg4));
5692 _resultobj = t_output_helper(_resultobj, o);
5693}
5694 return _resultobj;
5695}
5696
5697#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
107e4716 5698static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5699 PyObject * _resultobj;
5700 wxFont * _result;
5701 wxDC * _arg0;
2d091820 5702 PyObject * _argo0 = 0;
107e4716 5703 char *_kwnames[] = { "self", NULL };
70551f47
RD
5704 char _ptemp[128];
5705
5706 self = self;
107e4716 5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
70551f47 5708 return NULL;
2d091820
RD
5709 if (_argo0) {
5710 if (_argo0 == Py_None) { _arg0 = NULL; }
5711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5713 return NULL;
5714 }
5715 }
ab9bc19b 5716{
474c48f9 5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5718 _result = new wxFont (wxDC_GetFont(_arg0));
ab9bc19b 5719
474c48f9 5720 wxPyEndAllowThreads(__tstate);
4dfaa61e 5721 if (PyErr_Occurred()) return NULL;
3e212503
RD
5722} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
5723 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5724 return _resultobj;
5725}
5726
5727#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
107e4716 5728static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5729 PyObject * _resultobj;
5730 int _result;
5731 wxDC * _arg0;
2d091820 5732 PyObject * _argo0 = 0;
107e4716 5733 char *_kwnames[] = { "self", NULL };
70551f47
RD
5734
5735 self = self;
107e4716 5736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
70551f47 5737 return NULL;
2d091820
RD
5738 if (_argo0) {
5739 if (_argo0 == Py_None) { _arg0 = NULL; }
5740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5742 return NULL;
5743 }
5744 }
ab9bc19b 5745{
474c48f9 5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5747 _result = (int )wxDC_GetLogicalFunction(_arg0);
ab9bc19b 5748
474c48f9 5749 wxPyEndAllowThreads(__tstate);
4dfaa61e 5750 if (PyErr_Occurred()) return NULL;
ab9bc19b 5751} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5752 return _resultobj;
5753}
5754
e02c03a4
RD
5755#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5756static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject * _resultobj;
5758 wxDC * _arg0;
5759 double * _arg1;
5760 double temp;
5761 double * _arg2;
5762 double temp0;
5763 PyObject * _argo0 = 0;
5764 char *_kwnames[] = { "self", NULL };
5765
5766 self = self;
5767{
5768 _arg1 = &temp;
5769}
5770{
5771 _arg2 = &temp0;
5772}
5773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
5774 return NULL;
5775 if (_argo0) {
5776 if (_argo0 == Py_None) { _arg0 = NULL; }
5777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5779 return NULL;
5780 }
5781 }
5782{
474c48f9 5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5784 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 5785
474c48f9 5786 wxPyEndAllowThreads(__tstate);
4dfaa61e 5787 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
5788} Py_INCREF(Py_None);
5789 _resultobj = Py_None;
5790{
5791 PyObject *o;
5792 o = PyFloat_FromDouble((double) (*_arg1));
5793 _resultobj = t_output_helper(_resultobj, o);
5794}
5795{
5796 PyObject *o;
5797 o = PyFloat_FromDouble((double) (*_arg2));
5798 _resultobj = t_output_helper(_resultobj, o);
5799}
5800 return _resultobj;
5801}
5802
70551f47 5803#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
107e4716 5804static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5805 PyObject * _resultobj;
5806 int _result;
5807 wxDC * _arg0;
2d091820 5808 PyObject * _argo0 = 0;
107e4716 5809 char *_kwnames[] = { "self", NULL };
70551f47
RD
5810
5811 self = self;
107e4716 5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
70551f47 5813 return NULL;
2d091820
RD
5814 if (_argo0) {
5815 if (_argo0 == Py_None) { _arg0 = NULL; }
5816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
5818 return NULL;
5819 }
5820 }
ab9bc19b 5821{
474c48f9 5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5823 _result = (int )wxDC_GetMapMode(_arg0);
ab9bc19b 5824
474c48f9 5825 wxPyEndAllowThreads(__tstate);
4dfaa61e 5826 if (PyErr_Occurred()) return NULL;
ab9bc19b 5827} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5828 return _resultobj;
5829}
5830
5831#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
107e4716 5832static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5833 PyObject * _resultobj;
5834 bool _result;
5835 wxDC * _arg0;
2d091820 5836 PyObject * _argo0 = 0;
107e4716 5837 char *_kwnames[] = { "self", NULL };
70551f47
RD
5838
5839 self = self;
107e4716 5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
70551f47 5841 return NULL;
2d091820
RD
5842 if (_argo0) {
5843 if (_argo0 == Py_None) { _arg0 = NULL; }
5844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
5846 return NULL;
5847 }
5848 }
ab9bc19b 5849{
474c48f9 5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5851 _result = (bool )wxDC_GetOptimization(_arg0);
ab9bc19b 5852
474c48f9 5853 wxPyEndAllowThreads(__tstate);
4dfaa61e 5854 if (PyErr_Occurred()) return NULL;
ab9bc19b 5855} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5856 return _resultobj;
5857}
5858
5859#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
107e4716 5860static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5861 PyObject * _resultobj;
5862 wxPen * _result;
5863 wxDC * _arg0;
2d091820 5864 PyObject * _argo0 = 0;
107e4716 5865 char *_kwnames[] = { "self", NULL };
70551f47
RD
5866 char _ptemp[128];
5867
5868 self = self;
107e4716 5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
70551f47 5870 return NULL;
2d091820
RD
5871 if (_argo0) {
5872 if (_argo0 == Py_None) { _arg0 = NULL; }
5873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
5875 return NULL;
5876 }
5877 }
ab9bc19b 5878{
474c48f9 5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5880 _result = new wxPen (wxDC_GetPen(_arg0));
ab9bc19b 5881
474c48f9 5882 wxPyEndAllowThreads(__tstate);
4dfaa61e 5883 if (PyErr_Occurred()) return NULL;
3e212503
RD
5884} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
5885 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5886 return _resultobj;
5887}
5888
5889static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
5890 wxColour* wc = new wxColour();
5891 self->GetPixel(x, y, wc);
5892 return wc;
5893 }
107e4716 5894static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5895 PyObject * _resultobj;
5896 wxColour * _result;
5897 wxDC * _arg0;
5898 long _arg1;
5899 long _arg2;
2d091820 5900 PyObject * _argo0 = 0;
107e4716 5901 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
5902 char _ptemp[128];
5903
5904 self = self;
107e4716 5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 5906 return NULL;
2d091820
RD
5907 if (_argo0) {
5908 if (_argo0 == Py_None) { _arg0 = NULL; }
5909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
5911 return NULL;
5912 }
5913 }
ab9bc19b 5914{
474c48f9 5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5916 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
ab9bc19b 5917
474c48f9 5918 wxPyEndAllowThreads(__tstate);
4dfaa61e 5919 if (PyErr_Occurred()) return NULL;
2d091820
RD
5920} if (_result) {
5921 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5922 _resultobj = Py_BuildValue("s",_ptemp);
5923 } else {
5924 Py_INCREF(Py_None);
5925 _resultobj = Py_None;
5926 }
70551f47
RD
5927 return _resultobj;
5928}
5929
d24a34bb 5930#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
107e4716 5931static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5932 PyObject * _resultobj;
5933 wxDC * _arg0;
5934 int * _arg1;
5935 int temp;
5936 int * _arg2;
5937 int temp0;
2d091820 5938 PyObject * _argo0 = 0;
107e4716 5939 char *_kwnames[] = { "self", NULL };
70551f47
RD
5940
5941 self = self;
5942{
5943 _arg1 = &temp;
5944}
5945{
5946 _arg2 = &temp0;
5947}
107e4716 5948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
70551f47 5949 return NULL;
2d091820
RD
5950 if (_argo0) {
5951 if (_argo0 == Py_None) { _arg0 = NULL; }
5952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb 5953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
70551f47
RD
5954 return NULL;
5955 }
5956 }
ab9bc19b 5957{
474c48f9 5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5959 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
ab9bc19b 5960
474c48f9 5961 wxPyEndAllowThreads(__tstate);
4dfaa61e 5962 if (PyErr_Occurred()) return NULL;
ab9bc19b 5963} Py_INCREF(Py_None);
70551f47
RD
5964 _resultobj = Py_None;
5965{
5966 PyObject *o;
5967 o = PyInt_FromLong((long) (*_arg1));
5968 _resultobj = t_output_helper(_resultobj, o);
5969}
5970{
5971 PyObject *o;
5972 o = PyInt_FromLong((long) (*_arg2));
5973 _resultobj = t_output_helper(_resultobj, o);
5974}
5975 return _resultobj;
5976}
5977
d24a34bb 5978#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
107e4716 5979static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
5980 PyObject * _resultobj;
5981 wxSize * _result;
5982 wxDC * _arg0;
2d091820 5983 PyObject * _argo0 = 0;
107e4716 5984 char *_kwnames[] = { "self", NULL };
d24a34bb
RD
5985 char _ptemp[128];
5986
5987 self = self;
107e4716 5988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
d24a34bb 5989 return NULL;
2d091820
RD
5990 if (_argo0) {
5991 if (_argo0 == Py_None) { _arg0 = NULL; }
5992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
5993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
5994 return NULL;
5995 }
5996 }
5997{
474c48f9 5998 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5999 _result = new wxSize (wxDC_GetSize(_arg0));
d24a34bb 6000
474c48f9 6001 wxPyEndAllowThreads(__tstate);
4dfaa61e 6002 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
6003} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6004 _resultobj = Py_BuildValue("s",_ptemp);
6005 return _resultobj;
6006}
6007
e02c03a4
RD
6008#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6009static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject * _resultobj;
6011 wxSize * _result;
6012 wxDC * _arg0;
6013 PyObject * _argo0 = 0;
6014 char *_kwnames[] = { "self", NULL };
6015 char _ptemp[128];
6016
6017 self = self;
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
6019 return NULL;
6020 if (_argo0) {
6021 if (_argo0 == Py_None) { _arg0 = NULL; }
6022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6024 return NULL;
6025 }
6026 }
6027{
474c48f9 6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6029 _result = new wxSize (wxDC_GetSizeMM(_arg0));
e02c03a4 6030
474c48f9 6031 wxPyEndAllowThreads(__tstate);
4dfaa61e 6032 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6033} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6034 _resultobj = Py_BuildValue("s",_ptemp);
6035 return _resultobj;
6036}
6037
70551f47 6038#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
107e4716 6039static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6040 PyObject * _resultobj;
6041 wxColour * _result;
6042 wxDC * _arg0;
2d091820 6043 PyObject * _argo0 = 0;
107e4716 6044 char *_kwnames[] = { "self", NULL };
70551f47
RD
6045 char _ptemp[128];
6046
6047 self = self;
107e4716 6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
70551f47 6049 return NULL;
2d091820
RD
6050 if (_argo0) {
6051 if (_argo0 == Py_None) { _arg0 = NULL; }
6052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6054 return NULL;
6055 }
6056 }
ab9bc19b 6057{
474c48f9 6058 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6059 _result = new wxColour (wxDC_GetTextBackground(_arg0));
ab9bc19b 6060
474c48f9 6061 wxPyEndAllowThreads(__tstate);
4dfaa61e 6062 if (PyErr_Occurred()) return NULL;
84a81942
RD
6063} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6064 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6065 return _resultobj;
6066}
6067
21f8d7ea 6068#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
107e4716 6069static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
6070 PyObject * _resultobj;
6071 wxDC * _arg0;
6072 wxString * _arg1;
6073 long * _arg2;
6074 long temp;
6075 long * _arg3;
6076 long temp0;
2d091820 6077 PyObject * _argo0 = 0;
21f8d7ea 6078 PyObject * _obj1 = 0;
107e4716 6079 char *_kwnames[] = { "self","string", NULL };
21f8d7ea
RD
6080
6081 self = self;
6082{
6083 _arg2 = &temp;
6084}
6085{
6086 _arg3 = &temp0;
6087}
107e4716 6088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
21f8d7ea 6089 return NULL;
2d091820
RD
6090 if (_argo0) {
6091 if (_argo0 == Py_None) { _arg0 = NULL; }
6092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea
RD
6093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6094 return NULL;
6095 }
6096 }
6097{
c8bc7bb8
RD
6098 _arg1 = wxString_in_helper(_obj1);
6099 if (_arg1 == NULL)
21f8d7ea 6100 return NULL;
21f8d7ea 6101}
ab9bc19b 6102{
474c48f9 6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6104 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6105
474c48f9 6106 wxPyEndAllowThreads(__tstate);
4dfaa61e 6107 if (PyErr_Occurred()) return NULL;
ab9bc19b 6108} Py_INCREF(Py_None);
21f8d7ea
RD
6109 _resultobj = Py_None;
6110{
6111 PyObject *o;
6112 o = PyInt_FromLong((long) (*_arg2));
6113 _resultobj = t_output_helper(_resultobj, o);
6114}
6115{
6116 PyObject *o;
6117 o = PyInt_FromLong((long) (*_arg3));
6118 _resultobj = t_output_helper(_resultobj, o);
6119}
6120{
6121 if (_obj1)
6122 delete _arg1;
6123}
6124 return _resultobj;
6125}
6126
6127#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6128static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6129 PyObject * _resultobj;
6130 wxDC * _arg0;
6131 wxString * _arg1;
6132 long * _arg2;
6133 long temp;
6134 long * _arg3;
6135 long temp0;
6136 long * _arg4;
6137 long temp1;
6138 long * _arg5;
6139 long temp2;
2d091820
RD
6140 wxFont * _arg6 = (wxFont *) NULL;
6141 PyObject * _argo0 = 0;
70551f47 6142 PyObject * _obj1 = 0;
2d091820 6143 PyObject * _argo6 = 0;
107e4716 6144 char *_kwnames[] = { "self","string","font", NULL };
70551f47
RD
6145
6146 self = self;
6147{
6148 _arg2 = &temp;
6149}
6150{
6151 _arg3 = &temp0;
6152}
6153{
6154 _arg4 = &temp1;
6155}
6156{
6157 _arg5 = &temp2;
6158}
107e4716 6159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
70551f47 6160 return NULL;
2d091820
RD
6161 if (_argo0) {
6162 if (_argo0 == Py_None) { _arg0 = NULL; }
6163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea 6164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
70551f47
RD
6165 return NULL;
6166 }
6167 }
6168{
c8bc7bb8
RD
6169 _arg1 = wxString_in_helper(_obj1);
6170 if (_arg1 == NULL)
2cd2fac8 6171 return NULL;
70551f47 6172}
2d091820
RD
6173 if (_argo6) {
6174 if (_argo6 == Py_None) { _arg6 = NULL; }
6175 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
21f8d7ea
RD
6176 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6177 return NULL;
6178 }
6179 }
ab9bc19b 6180{
474c48f9 6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6182 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6183
474c48f9 6184 wxPyEndAllowThreads(__tstate);
4dfaa61e 6185 if (PyErr_Occurred()) return NULL;
ab9bc19b 6186} Py_INCREF(Py_None);
70551f47
RD
6187 _resultobj = Py_None;
6188{
6189 PyObject *o;
6190 o = PyInt_FromLong((long) (*_arg2));
6191 _resultobj = t_output_helper(_resultobj, o);
6192}
6193{
6194 PyObject *o;
6195 o = PyInt_FromLong((long) (*_arg3));
6196 _resultobj = t_output_helper(_resultobj, o);
6197}
6198{
6199 PyObject *o;
6200 o = PyInt_FromLong((long) (*_arg4));
6201 _resultobj = t_output_helper(_resultobj, o);
6202}
6203{
6204 PyObject *o;
6205 o = PyInt_FromLong((long) (*_arg5));
6206 _resultobj = t_output_helper(_resultobj, o);
6207}
6208{
6209 if (_obj1)
6210 delete _arg1;
6211}
6212 return _resultobj;
6213}
6214
6215#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
107e4716 6216static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6217 PyObject * _resultobj;
6218 wxColour * _result;
6219 wxDC * _arg0;
2d091820 6220 PyObject * _argo0 = 0;
107e4716 6221 char *_kwnames[] = { "self", NULL };
70551f47
RD
6222 char _ptemp[128];
6223
6224 self = self;
107e4716 6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
70551f47 6226 return NULL;
2d091820
RD
6227 if (_argo0) {
6228 if (_argo0 == Py_None) { _arg0 = NULL; }
6229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6231 return NULL;
6232 }
6233 }
ab9bc19b 6234{
474c48f9 6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6236 _result = new wxColour (wxDC_GetTextForeground(_arg0));
ab9bc19b 6237
474c48f9 6238 wxPyEndAllowThreads(__tstate);
4dfaa61e 6239 if (PyErr_Occurred()) return NULL;
84a81942
RD
6240} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6241 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6242 return _resultobj;
6243}
6244
e02c03a4
RD
6245#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6246static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6247 PyObject * _resultobj;
6248 wxDC * _arg0;
6249 double * _arg1;
6250 double temp;
6251 double * _arg2;
6252 double temp0;
6253 PyObject * _argo0 = 0;
6254 char *_kwnames[] = { "self", NULL };
6255
6256 self = self;
6257{
6258 _arg1 = &temp;
6259}
6260{
6261 _arg2 = &temp0;
6262}
6263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
6264 return NULL;
6265 if (_argo0) {
6266 if (_argo0 == Py_None) { _arg0 = NULL; }
6267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6269 return NULL;
6270 }
6271 }
6272{
474c48f9 6273 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6274 wxDC_GetUserScale(_arg0,_arg1,_arg2);
e02c03a4 6275
474c48f9 6276 wxPyEndAllowThreads(__tstate);
4dfaa61e 6277 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6278} Py_INCREF(Py_None);
6279 _resultobj = Py_None;
6280{
6281 PyObject *o;
6282 o = PyFloat_FromDouble((double) (*_arg1));
6283 _resultobj = t_output_helper(_resultobj, o);
6284}
6285{
6286 PyObject *o;
6287 o = PyFloat_FromDouble((double) (*_arg2));
6288 _resultobj = t_output_helper(_resultobj, o);
6289}
6290 return _resultobj;
6291}
6292
70551f47 6293#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
107e4716 6294static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6295 PyObject * _resultobj;
6296 long _result;
6297 wxDC * _arg0;
6298 long _arg1;
2d091820 6299 PyObject * _argo0 = 0;
107e4716 6300 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6301
6302 self = self;
107e4716 6303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
70551f47 6304 return NULL;
2d091820
RD
6305 if (_argo0) {
6306 if (_argo0 == Py_None) { _arg0 = NULL; }
6307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6309 return NULL;
6310 }
6311 }
ab9bc19b 6312{
474c48f9 6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6314 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
ab9bc19b 6315
474c48f9 6316 wxPyEndAllowThreads(__tstate);
4dfaa61e 6317 if (PyErr_Occurred()) return NULL;
ab9bc19b 6318} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6319 return _resultobj;
6320}
6321
6322#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
107e4716 6323static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6324 PyObject * _resultobj;
6325 long _result;
6326 wxDC * _arg0;
6327 long _arg1;
2d091820 6328 PyObject * _argo0 = 0;
107e4716 6329 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6330
6331 self = self;
107e4716 6332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
70551f47 6333 return NULL;
2d091820
RD
6334 if (_argo0) {
6335 if (_argo0 == Py_None) { _arg0 = NULL; }
6336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6338 return NULL;
6339 }
6340 }
ab9bc19b 6341{
474c48f9 6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6343 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
ab9bc19b 6344
474c48f9 6345 wxPyEndAllowThreads(__tstate);
4dfaa61e 6346 if (PyErr_Occurred()) return NULL;
ab9bc19b 6347} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6348 return _resultobj;
6349}
6350
6351#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
107e4716 6352static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6353 PyObject * _resultobj;
6354 long _result;
6355 wxDC * _arg0;
6356 long _arg1;
2d091820 6357 PyObject * _argo0 = 0;
107e4716 6358 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6359
6360 self = self;
107e4716 6361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
70551f47 6362 return NULL;
2d091820
RD
6363 if (_argo0) {
6364 if (_argo0 == Py_None) { _arg0 = NULL; }
6365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6367 return NULL;
6368 }
6369 }
ab9bc19b 6370{
474c48f9 6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6372 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
ab9bc19b 6373
474c48f9 6374 wxPyEndAllowThreads(__tstate);
4dfaa61e 6375 if (PyErr_Occurred()) return NULL;
ab9bc19b 6376} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6377 return _resultobj;
6378}
6379
6380#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
107e4716 6381static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6382 PyObject * _resultobj;
6383 long _result;
6384 wxDC * _arg0;
6385 long _arg1;
2d091820 6386 PyObject * _argo0 = 0;
107e4716 6387 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6388
6389 self = self;
107e4716 6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
70551f47 6391 return NULL;
2d091820
RD
6392 if (_argo0) {
6393 if (_argo0 == Py_None) { _arg0 = NULL; }
6394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6396 return NULL;
6397 }
6398 }
ab9bc19b 6399{
474c48f9 6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6401 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
ab9bc19b 6402
474c48f9 6403 wxPyEndAllowThreads(__tstate);
4dfaa61e 6404 if (PyErr_Occurred()) return NULL;
ab9bc19b 6405} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6406 return _resultobj;
6407}
6408
6409#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
107e4716 6410static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6411 PyObject * _resultobj;
6412 long _result;
6413 wxDC * _arg0;
2d091820 6414 PyObject * _argo0 = 0;
107e4716 6415 char *_kwnames[] = { "self", NULL };
70551f47
RD
6416
6417 self = self;
107e4716 6418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
70551f47 6419 return NULL;
2d091820
RD
6420 if (_argo0) {
6421 if (_argo0 == Py_None) { _arg0 = NULL; }
6422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6424 return NULL;
6425 }
6426 }
ab9bc19b 6427{
474c48f9 6428 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6429 _result = (long )wxDC_MaxX(_arg0);
ab9bc19b 6430
474c48f9 6431 wxPyEndAllowThreads(__tstate);
4dfaa61e 6432 if (PyErr_Occurred()) return NULL;
ab9bc19b 6433} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6434 return _resultobj;
6435}
6436
6437#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
107e4716 6438static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6439 PyObject * _resultobj;
6440 long _result;
6441 wxDC * _arg0;
2d091820 6442 PyObject * _argo0 = 0;
107e4716 6443 char *_kwnames[] = { "self", NULL };
70551f47
RD
6444
6445 self = self;
107e4716 6446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
70551f47 6447 return NULL;
2d091820
RD
6448 if (_argo0) {
6449 if (_argo0 == Py_None) { _arg0 = NULL; }
6450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6452 return NULL;
6453 }
6454 }
ab9bc19b 6455{
474c48f9 6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6457 _result = (long )wxDC_MaxY(_arg0);
ab9bc19b 6458
474c48f9 6459 wxPyEndAllowThreads(__tstate);
4dfaa61e 6460 if (PyErr_Occurred()) return NULL;
ab9bc19b 6461} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6462 return _resultobj;
6463}
6464
6465#define wxDC_MinX(_swigobj) (_swigobj->MinX())
107e4716 6466static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6467 PyObject * _resultobj;
6468 long _result;
6469 wxDC * _arg0;
2d091820 6470 PyObject * _argo0 = 0;
107e4716 6471 char *_kwnames[] = { "self", NULL };
70551f47
RD
6472
6473 self = self;
107e4716 6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
70551f47 6475 return NULL;
2d091820
RD
6476 if (_argo0) {
6477 if (_argo0 == Py_None) { _arg0 = NULL; }
6478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6480 return NULL;
6481 }
6482 }
ab9bc19b 6483{
474c48f9 6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6485 _result = (long )wxDC_MinX(_arg0);
ab9bc19b 6486
474c48f9 6487 wxPyEndAllowThreads(__tstate);
4dfaa61e 6488 if (PyErr_Occurred()) return NULL;
ab9bc19b 6489} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6490 return _resultobj;
6491}
6492
6493#define wxDC_MinY(_swigobj) (_swigobj->MinY())
107e4716 6494static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6495 PyObject * _resultobj;
6496 long _result;
6497 wxDC * _arg0;
2d091820 6498 PyObject * _argo0 = 0;
107e4716 6499 char *_kwnames[] = { "self", NULL };
70551f47
RD
6500
6501 self = self;
107e4716 6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
70551f47 6503 return NULL;
2d091820
RD
6504 if (_argo0) {
6505 if (_argo0 == Py_None) { _arg0 = NULL; }
6506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6508 return NULL;
6509 }
6510 }
ab9bc19b 6511{
474c48f9 6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6513 _result = (long )wxDC_MinY(_arg0);
ab9bc19b 6514
474c48f9 6515 wxPyEndAllowThreads(__tstate);
4dfaa61e 6516 if (PyErr_Occurred()) return NULL;
ab9bc19b 6517} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6518 return _resultobj;
6519}
6520
6521#define wxDC_Ok(_swigobj) (_swigobj->Ok())
107e4716 6522static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6523 PyObject * _resultobj;
6524 bool _result;
6525 wxDC * _arg0;
2d091820 6526 PyObject * _argo0 = 0;
107e4716 6527 char *_kwnames[] = { "self", NULL };
70551f47
RD
6528
6529 self = self;
107e4716 6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
70551f47 6531 return NULL;
2d091820
RD
6532 if (_argo0) {
6533 if (_argo0 == Py_None) { _arg0 = NULL; }
6534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6536 return NULL;
6537 }
6538 }
ab9bc19b 6539{
474c48f9 6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6541 _result = (bool )wxDC_Ok(_arg0);
ab9bc19b 6542
474c48f9 6543 wxPyEndAllowThreads(__tstate);
4dfaa61e 6544 if (PyErr_Occurred()) return NULL;
ab9bc19b 6545} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6546 return _resultobj;
6547}
6548
6549#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
107e4716 6550static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6551 PyObject * _resultobj;
6552 wxDC * _arg0;
6553 long _arg1;
6554 long _arg2;
2d091820 6555 PyObject * _argo0 = 0;
107e4716 6556 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6557
6558 self = self;
107e4716 6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6560 return NULL;
2d091820
RD
6561 if (_argo0) {
6562 if (_argo0 == Py_None) { _arg0 = NULL; }
6563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6565 return NULL;
6566 }
6567 }
ab9bc19b 6568{
474c48f9 6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6570 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
ab9bc19b 6571
474c48f9 6572 wxPyEndAllowThreads(__tstate);
4dfaa61e 6573 if (PyErr_Occurred()) return NULL;
ab9bc19b 6574} Py_INCREF(Py_None);
70551f47
RD
6575 _resultobj = Py_None;
6576 return _resultobj;
6577}
6578
6579#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
107e4716 6580static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6581 PyObject * _resultobj;
6582 wxDC * _arg0;
6583 wxBrush * _arg1;
2d091820
RD
6584 PyObject * _argo0 = 0;
6585 PyObject * _argo1 = 0;
107e4716 6586 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
6587
6588 self = self;
107e4716 6589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
70551f47 6590 return NULL;
2d091820
RD
6591 if (_argo0) {
6592 if (_argo0 == Py_None) { _arg0 = NULL; }
6593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6595 return NULL;
6596 }
6597 }
2d091820
RD
6598 if (_argo1) {
6599 if (_argo1 == Py_None) { _arg1 = NULL; }
6600 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
6601 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6602 return NULL;
6603 }
6604 }
ab9bc19b 6605{
474c48f9 6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6607 wxDC_SetBackground(_arg0,*_arg1);
ab9bc19b 6608
474c48f9 6609 wxPyEndAllowThreads(__tstate);
4dfaa61e 6610 if (PyErr_Occurred()) return NULL;
ab9bc19b 6611} Py_INCREF(Py_None);
70551f47
RD
6612 _resultobj = Py_None;
6613 return _resultobj;
6614}
6615
6616#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
107e4716 6617static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6618 PyObject * _resultobj;
6619 wxDC * _arg0;
6620 int _arg1;
2d091820 6621 PyObject * _argo0 = 0;
107e4716 6622 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
6623
6624 self = self;
107e4716 6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
70551f47 6626 return NULL;
2d091820
RD
6627 if (_argo0) {
6628 if (_argo0 == Py_None) { _arg0 = NULL; }
6629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6631 return NULL;
6632 }
6633 }
ab9bc19b 6634{
474c48f9 6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6636 wxDC_SetBackgroundMode(_arg0,_arg1);
ab9bc19b 6637
474c48f9 6638 wxPyEndAllowThreads(__tstate);
4dfaa61e 6639 if (PyErr_Occurred()) return NULL;
ab9bc19b 6640} Py_INCREF(Py_None);
70551f47
RD
6641 _resultobj = Py_None;
6642 return _resultobj;
6643}
6644
6645#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6646static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6647 PyObject * _resultobj;
6648 wxDC * _arg0;
6649 long _arg1;
6650 long _arg2;
6651 long _arg3;
6652 long _arg4;
2d091820 6653 PyObject * _argo0 = 0;
107e4716 6654 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6655
6656 self = self;
107e4716 6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6658 return NULL;
2d091820
RD
6659 if (_argo0) {
6660 if (_argo0 == Py_None) { _arg0 = NULL; }
6661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6663 return NULL;
6664 }
6665 }
ab9bc19b 6666{
474c48f9 6667 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6668 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6669
474c48f9 6670 wxPyEndAllowThreads(__tstate);
4dfaa61e 6671 if (PyErr_Occurred()) return NULL;
ab9bc19b 6672} Py_INCREF(Py_None);
70551f47
RD
6673 _resultobj = Py_None;
6674 return _resultobj;
6675}
6676
059a841c
RD
6677#define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6678static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6679 PyObject * _resultobj;
6680 wxDC * _arg0;
6681 wxRegion * _arg1;
6682 PyObject * _argo0 = 0;
6683 PyObject * _argo1 = 0;
6684 char *_kwnames[] = { "self","region", NULL };
6685
6686 self = self;
6687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
6688 return NULL;
6689 if (_argo0) {
6690 if (_argo0 == Py_None) { _arg0 = NULL; }
6691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
6693 return NULL;
6694 }
6695 }
6696 if (_argo1) {
6697 if (_argo1 == Py_None) { _arg1 = NULL; }
6698 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
6699 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
6700 return NULL;
6701 }
6702 }
6703{
474c48f9 6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6705 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
059a841c 6706
474c48f9 6707 wxPyEndAllowThreads(__tstate);
059a841c
RD
6708 if (PyErr_Occurred()) return NULL;
6709} Py_INCREF(Py_None);
6710 _resultobj = Py_None;
6711 return _resultobj;
6712}
6713
b2a2e5bf
RD
6714#define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
6715static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6716 PyObject * _resultobj;
6717 wxDC * _arg0;
6718 wxRect * _arg1;
6719 PyObject * _argo0 = 0;
6720 wxRect temp;
6721 PyObject * _obj1 = 0;
6722 char *_kwnames[] = { "self","rect", NULL };
6723
6724 self = self;
6725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1))
6726 return NULL;
6727 if (_argo0) {
6728 if (_argo0 == Py_None) { _arg0 = NULL; }
6729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
6731 return NULL;
6732 }
6733 }
6734{
6735 _arg1 = &temp;
6736 if (! wxRect_helper(_obj1, &_arg1))
6737 return NULL;
6738}
6739{
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 wxDC_SetClippingRect(_arg0,*_arg1);
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) return NULL;
6745} Py_INCREF(Py_None);
6746 _resultobj = Py_None;
6747 return _resultobj;
6748}
6749
70551f47 6750#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
107e4716 6751static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6752 PyObject * _resultobj;
6753 wxDC * _arg0;
6754 wxPalette * _arg1;
2d091820
RD
6755 PyObject * _argo0 = 0;
6756 PyObject * _argo1 = 0;
107e4716 6757 char *_kwnames[] = { "self","colourMap", NULL };
70551f47
RD
6758
6759 self = self;
107e4716 6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
70551f47 6761 return NULL;
2d091820
RD
6762 if (_argo0) {
6763 if (_argo0 == Py_None) { _arg0 = NULL; }
6764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6766 return NULL;
6767 }
6768 }
2d091820
RD
6769 if (_argo1) {
6770 if (_argo1 == Py_None) { _arg1 = NULL; }
6771 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
70551f47
RD
6772 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6773 return NULL;
6774 }
6775 }
ab9bc19b 6776{
474c48f9 6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6778 wxDC_SetPalette(_arg0,*_arg1);
ab9bc19b 6779
474c48f9 6780 wxPyEndAllowThreads(__tstate);
4dfaa61e 6781 if (PyErr_Occurred()) return NULL;
ab9bc19b 6782} Py_INCREF(Py_None);
70551f47
RD
6783 _resultobj = Py_None;
6784 return _resultobj;
6785}
6786
6787#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
107e4716 6788static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6789 PyObject * _resultobj;
6790 wxDC * _arg0;
6791 wxBrush * _arg1;
2d091820
RD
6792 PyObject * _argo0 = 0;
6793 PyObject * _argo1 = 0;
107e4716 6794 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
6795
6796 self = self;
107e4716 6797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
70551f47 6798 return NULL;
2d091820
RD
6799 if (_argo0) {
6800 if (_argo0 == Py_None) { _arg0 = NULL; }
6801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6803 return NULL;
6804 }
6805 }
2d091820
RD
6806 if (_argo1) {
6807 if (_argo1 == Py_None) { _arg1 = NULL; }
6808 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
6809 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6810 return NULL;
6811 }
6812 }
ab9bc19b 6813{
474c48f9 6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6815 wxDC_SetBrush(_arg0,*_arg1);
ab9bc19b 6816
474c48f9 6817 wxPyEndAllowThreads(__tstate);
4dfaa61e 6818 if (PyErr_Occurred()) return NULL;
ab9bc19b 6819} Py_INCREF(Py_None);
70551f47
RD
6820 _resultobj = Py_None;
6821 return _resultobj;
6822}
6823
6824#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
107e4716 6825static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6826 PyObject * _resultobj;
6827 wxDC * _arg0;
6828 wxFont * _arg1;
2d091820
RD
6829 PyObject * _argo0 = 0;
6830 PyObject * _argo1 = 0;
107e4716 6831 char *_kwnames[] = { "self","font", NULL };
70551f47
RD
6832
6833 self = self;
107e4716 6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
70551f47 6835 return NULL;
2d091820
RD
6836 if (_argo0) {
6837 if (_argo0 == Py_None) { _arg0 = NULL; }
6838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
6840 return NULL;
6841 }
6842 }
2d091820
RD
6843 if (_argo1) {
6844 if (_argo1 == Py_None) { _arg1 = NULL; }
6845 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
70551f47
RD
6846 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
6847 return NULL;
6848 }
6849 }
ab9bc19b 6850{
474c48f9 6851 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6852 wxDC_SetFont(_arg0,*_arg1);
ab9bc19b 6853
474c48f9 6854 wxPyEndAllowThreads(__tstate);
4dfaa61e 6855 if (PyErr_Occurred()) return NULL;
ab9bc19b 6856} Py_INCREF(Py_None);
70551f47
RD
6857 _resultobj = Py_None;
6858 return _resultobj;
6859}
6860
6861#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
107e4716 6862static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6863 PyObject * _resultobj;
6864 wxDC * _arg0;
6865 int _arg1;
2d091820 6866 PyObject * _argo0 = 0;
107e4716 6867 char *_kwnames[] = { "self","function", NULL };
70551f47
RD
6868
6869 self = self;
107e4716 6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
70551f47 6871 return NULL;
2d091820
RD
6872 if (_argo0) {
6873 if (_argo0 == Py_None) { _arg0 = NULL; }
6874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
6876 return NULL;
6877 }
6878 }
ab9bc19b 6879{
474c48f9 6880 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6881 wxDC_SetLogicalFunction(_arg0,_arg1);
ab9bc19b 6882
474c48f9 6883 wxPyEndAllowThreads(__tstate);
4dfaa61e 6884 if (PyErr_Occurred()) return NULL;
ab9bc19b 6885} Py_INCREF(Py_None);
70551f47
RD
6886 _resultobj = Py_None;
6887 return _resultobj;
6888}
6889
e02c03a4
RD
6890#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
6891static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6892 PyObject * _resultobj;
6893 wxDC * _arg0;
6894 double _arg1;
6895 double _arg2;
6896 PyObject * _argo0 = 0;
6897 char *_kwnames[] = { "self","x","y", NULL };
6898
6899 self = self;
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
6901 return NULL;
6902 if (_argo0) {
6903 if (_argo0 == Py_None) { _arg0 = NULL; }
6904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
6906 return NULL;
6907 }
6908 }
6909{
474c48f9 6910 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6911 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 6912
474c48f9 6913 wxPyEndAllowThreads(__tstate);
4dfaa61e 6914 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6915} Py_INCREF(Py_None);
6916 _resultobj = Py_None;
6917 return _resultobj;
6918}
6919
70551f47 6920#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
107e4716 6921static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6922 PyObject * _resultobj;
6923 wxDC * _arg0;
6924 int _arg1;
2d091820 6925 PyObject * _argo0 = 0;
107e4716 6926 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
6927
6928 self = self;
107e4716 6929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
70551f47 6930 return NULL;
2d091820
RD
6931 if (_argo0) {
6932 if (_argo0 == Py_None) { _arg0 = NULL; }
6933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
6935 return NULL;
6936 }
6937 }
ab9bc19b 6938{
474c48f9 6939 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6940 wxDC_SetMapMode(_arg0,_arg1);
ab9bc19b 6941
474c48f9 6942 wxPyEndAllowThreads(__tstate);
4dfaa61e 6943 if (PyErr_Occurred()) return NULL;
ab9bc19b 6944} Py_INCREF(Py_None);
70551f47
RD
6945 _resultobj = Py_None;
6946 return _resultobj;
6947}
6948
6949#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
107e4716 6950static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6951 PyObject * _resultobj;
6952 wxDC * _arg0;
6953 bool _arg1;
2d091820 6954 PyObject * _argo0 = 0;
70551f47 6955 int tempbool1;
107e4716 6956 char *_kwnames[] = { "self","optimize", NULL };
70551f47
RD
6957
6958 self = self;
107e4716 6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
70551f47 6960 return NULL;
2d091820
RD
6961 if (_argo0) {
6962 if (_argo0 == Py_None) { _arg0 = NULL; }
6963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
6965 return NULL;
6966 }
6967 }
6968 _arg1 = (bool ) tempbool1;
ab9bc19b 6969{
474c48f9 6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6971 wxDC_SetOptimization(_arg0,_arg1);
ab9bc19b 6972
474c48f9 6973 wxPyEndAllowThreads(__tstate);
4dfaa61e 6974 if (PyErr_Occurred()) return NULL;
ab9bc19b 6975} Py_INCREF(Py_None);
70551f47
RD
6976 _resultobj = Py_None;
6977 return _resultobj;
6978}
6979
6980#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
107e4716 6981static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6982 PyObject * _resultobj;
6983 wxDC * _arg0;
6984 wxPen * _arg1;
2d091820
RD
6985 PyObject * _argo0 = 0;
6986 PyObject * _argo1 = 0;
107e4716 6987 char *_kwnames[] = { "self","pen", NULL };
70551f47
RD
6988
6989 self = self;
107e4716 6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
70551f47 6991 return NULL;
2d091820
RD
6992 if (_argo0) {
6993 if (_argo0 == Py_None) { _arg0 = NULL; }
6994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
6996 return NULL;
6997 }
6998 }
2d091820
RD
6999 if (_argo1) {
7000 if (_argo1 == Py_None) { _arg1 = NULL; }
7001 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
70551f47
RD
7002 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7003 return NULL;
7004 }
7005 }
ab9bc19b 7006{
474c48f9 7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7008 wxDC_SetPen(_arg0,*_arg1);
ab9bc19b 7009
474c48f9 7010 wxPyEndAllowThreads(__tstate);
4dfaa61e 7011 if (PyErr_Occurred()) return NULL;
ab9bc19b 7012} Py_INCREF(Py_None);
70551f47
RD
7013 _resultobj = Py_None;
7014 return _resultobj;
7015}
7016
7017#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
107e4716 7018static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7019 PyObject * _resultobj;
7020 wxDC * _arg0;
7021 wxColour * _arg1;
2d091820 7022 PyObject * _argo0 = 0;
f6bcfd97
BP
7023 wxColour temp;
7024 PyObject * _obj1 = 0;
107e4716 7025 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
7026
7027 self = self;
f6bcfd97 7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
70551f47 7029 return NULL;
2d091820
RD
7030 if (_argo0) {
7031 if (_argo0 == Py_None) { _arg0 = NULL; }
7032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7034 return NULL;
7035 }
7036 }
f6bcfd97
BP
7037{
7038 _arg1 = &temp;
7039 if (! wxColour_helper(_obj1, &_arg1))
70551f47 7040 return NULL;
f6bcfd97 7041}
ab9bc19b 7042{
474c48f9 7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7044 wxDC_SetTextBackground(_arg0,*_arg1);
ab9bc19b 7045
474c48f9 7046 wxPyEndAllowThreads(__tstate);
4dfaa61e 7047 if (PyErr_Occurred()) return NULL;
ab9bc19b 7048} Py_INCREF(Py_None);
70551f47
RD
7049 _resultobj = Py_None;
7050 return _resultobj;
7051}
7052
7053#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
107e4716 7054static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7055 PyObject * _resultobj;
7056 wxDC * _arg0;
7057 wxColour * _arg1;
2d091820 7058 PyObject * _argo0 = 0;
f6bcfd97
BP
7059 wxColour temp;
7060 PyObject * _obj1 = 0;
107e4716 7061 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
7062
7063 self = self;
f6bcfd97 7064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
70551f47 7065 return NULL;
2d091820
RD
7066 if (_argo0) {
7067 if (_argo0 == Py_None) { _arg0 = NULL; }
7068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7070 return NULL;
7071 }
7072 }
f6bcfd97
BP
7073{
7074 _arg1 = &temp;
7075 if (! wxColour_helper(_obj1, &_arg1))
70551f47 7076 return NULL;
f6bcfd97 7077}
ab9bc19b 7078{
474c48f9 7079 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7080 wxDC_SetTextForeground(_arg0,*_arg1);
ab9bc19b 7081
474c48f9 7082 wxPyEndAllowThreads(__tstate);
4dfaa61e 7083 if (PyErr_Occurred()) return NULL;
ab9bc19b 7084} Py_INCREF(Py_None);
70551f47
RD
7085 _resultobj = Py_None;
7086 return _resultobj;
7087}
7088
7089#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
107e4716 7090static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7091 PyObject * _resultobj;
7092 wxDC * _arg0;
7093 double _arg1;
7094 double _arg2;
2d091820 7095 PyObject * _argo0 = 0;
107e4716 7096 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
70551f47
RD
7097
7098 self = self;
107e4716 7099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7100 return NULL;
2d091820
RD
7101 if (_argo0) {
7102 if (_argo0 == Py_None) { _arg0 = NULL; }
7103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7105 return NULL;
7106 }
7107 }
ab9bc19b 7108{
474c48f9 7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7110 wxDC_SetUserScale(_arg0,_arg1,_arg2);
ab9bc19b 7111
474c48f9 7112 wxPyEndAllowThreads(__tstate);
4dfaa61e 7113 if (PyErr_Occurred()) return NULL;
ab9bc19b 7114} Py_INCREF(Py_None);
70551f47
RD
7115 _resultobj = Py_None;
7116 return _resultobj;
7117}
7118
7119#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
107e4716 7120static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7121 PyObject * _resultobj;
7122 bool _result;
7123 wxDC * _arg0;
7124 wxString * _arg1;
2d091820 7125 PyObject * _argo0 = 0;
70551f47 7126 PyObject * _obj1 = 0;
107e4716 7127 char *_kwnames[] = { "self","message", NULL };
70551f47
RD
7128
7129 self = self;
107e4716 7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
70551f47 7131 return NULL;
2d091820
RD
7132 if (_argo0) {
7133 if (_argo0 == Py_None) { _arg0 = NULL; }
7134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7136 return NULL;
7137 }
7138 }
7139{
c8bc7bb8
RD
7140 _arg1 = wxString_in_helper(_obj1);
7141 if (_arg1 == NULL)
2cd2fac8 7142 return NULL;
70551f47 7143}
ab9bc19b 7144{
474c48f9 7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7146 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
ab9bc19b 7147
474c48f9 7148 wxPyEndAllowThreads(__tstate);
4dfaa61e 7149 if (PyErr_Occurred()) return NULL;
ab9bc19b 7150} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7151{
7152 if (_obj1)
7153 delete _arg1;
7154}
7155 return _resultobj;
7156}
7157
7158#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
107e4716 7159static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7160 PyObject * _resultobj;
7161 wxDC * _arg0;
2d091820 7162 PyObject * _argo0 = 0;
107e4716 7163 char *_kwnames[] = { "self", NULL };
70551f47
RD
7164
7165 self = self;
107e4716 7166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
70551f47 7167 return NULL;
2d091820
RD
7168 if (_argo0) {
7169 if (_argo0 == Py_None) { _arg0 = NULL; }
7170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7172 return NULL;
7173 }
7174 }
ab9bc19b 7175{
474c48f9 7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7177 wxDC_StartPage(_arg0);
ab9bc19b 7178
474c48f9 7179 wxPyEndAllowThreads(__tstate);
4dfaa61e 7180 if (PyErr_Occurred()) return NULL;
ab9bc19b 7181} Py_INCREF(Py_None);
70551f47
RD
7182 _resultobj = Py_None;
7183 return _resultobj;
7184}
7185
107e4716
RD
7186#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7187static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7188 PyObject * _resultobj;
7189 wxDC * _arg0;
7190 wxBitmap * _arg1;
7191 long _arg2;
7192 long _arg3;
107e4716 7193 int _arg4 = (int ) FALSE;
2d091820
RD
7194 PyObject * _argo0 = 0;
7195 PyObject * _argo1 = 0;
107e4716 7196 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
70551f47
RD
7197
7198 self = self;
107e4716 7199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
70551f47 7200 return NULL;
2d091820
RD
7201 if (_argo0) {
7202 if (_argo0 == Py_None) { _arg0 = NULL; }
7203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7205 return NULL;
7206 }
7207 }
2d091820
RD
7208 if (_argo1) {
7209 if (_argo1 == Py_None) { _arg1 = NULL; }
7210 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
7211 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7212 return NULL;
7213 }
7214 }
ab9bc19b 7215{
474c48f9 7216 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7217 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
ab9bc19b 7218
474c48f9 7219 wxPyEndAllowThreads(__tstate);
4dfaa61e 7220 if (PyErr_Occurred()) return NULL;
ab9bc19b 7221} Py_INCREF(Py_None);
70551f47
RD
7222 _resultobj = Py_None;
7223 return _resultobj;
7224}
7225
e02c03a4
RD
7226#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7227static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7228 PyObject * _resultobj;
7229 bool _result;
7230 wxDC * _arg0;
7231 PyObject * _argo0 = 0;
7232 char *_kwnames[] = { "self", NULL };
7233
7234 self = self;
7235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
7236 return NULL;
7237 if (_argo0) {
7238 if (_argo0 == Py_None) { _arg0 = NULL; }
7239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7241 return NULL;
7242 }
7243 }
7244{
474c48f9 7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7246 _result = (bool )wxDC_CanDrawBitmap(_arg0);
e02c03a4 7247
474c48f9 7248 wxPyEndAllowThreads(__tstate);
4dfaa61e 7249 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7250} _resultobj = Py_BuildValue("i",_result);
7251 return _resultobj;
7252}
7253
7254#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7255static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7256 PyObject * _resultobj;
7257 bool _result;
7258 wxDC * _arg0;
7259 PyObject * _argo0 = 0;
7260 char *_kwnames[] = { "self", NULL };
7261
7262 self = self;
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
7264 return NULL;
7265 if (_argo0) {
7266 if (_argo0 == Py_None) { _arg0 = NULL; }
7267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7269 return NULL;
7270 }
7271 }
7272{
474c48f9 7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7274 _result = (bool )wxDC_CanGetTextExtent(_arg0);
e02c03a4 7275
474c48f9 7276 wxPyEndAllowThreads(__tstate);
4dfaa61e 7277 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7278} _resultobj = Py_BuildValue("i",_result);
7279 return _resultobj;
7280}
7281
7282#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7283static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
7284 PyObject * _resultobj;
7285 int _result;
7286 wxDC * _arg0;
7287 PyObject * _argo0 = 0;
7288 char *_kwnames[] = { "self", NULL };
7289
7290 self = self;
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
7292 return NULL;
7293 if (_argo0) {
7294 if (_argo0 == Py_None) { _arg0 = NULL; }
7295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7297 return NULL;
7298 }
7299 }
7300{
474c48f9 7301 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7302 _result = (int )wxDC_GetDepth(_arg0);
e02c03a4 7303
474c48f9 7304 wxPyEndAllowThreads(__tstate);
4dfaa61e 7305 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7306} _resultobj = Py_BuildValue("i",_result);
7307 return _resultobj;
7308}
7309
7310#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7311static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
7312 PyObject * _resultobj;
7313 wxSize * _result;
7314 wxDC * _arg0;
7315 PyObject * _argo0 = 0;
7316 char *_kwnames[] = { "self", NULL };
7317 char _ptemp[128];
7318
7319 self = self;
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
7321 return NULL;
7322 if (_argo0) {
7323 if (_argo0 == Py_None) { _arg0 = NULL; }
7324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7326 return NULL;
7327 }
7328 }
7329{
474c48f9 7330 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7331 _result = new wxSize (wxDC_GetPPI(_arg0));
e02c03a4 7332
474c48f9 7333 wxPyEndAllowThreads(__tstate);
4dfaa61e 7334 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7335} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7336 _resultobj = Py_BuildValue("s",_ptemp);
7337 return _resultobj;
7338}
7339
7340#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7341static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7342 PyObject * _resultobj;
7343 wxDC * _arg0;
7344 int * _arg1;
7345 int temp;
7346 int * _arg2;
7347 int temp0;
7348 PyObject * _argo0 = 0;
7349 char *_kwnames[] = { "self", NULL };
7350
7351 self = self;
7352{
7353 _arg1 = &temp;
7354}
7355{
7356 _arg2 = &temp0;
7357}
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
7359 return NULL;
7360 if (_argo0) {
7361 if (_argo0 == Py_None) { _arg0 = NULL; }
7362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7364 return NULL;
7365 }
7366 }
7367{
474c48f9 7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7369 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 7370
474c48f9 7371 wxPyEndAllowThreads(__tstate);
4dfaa61e 7372 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7373} Py_INCREF(Py_None);
7374 _resultobj = Py_None;
7375{
7376 PyObject *o;
7377 o = PyInt_FromLong((long) (*_arg1));
7378 _resultobj = t_output_helper(_resultobj, o);
7379}
7380{
7381 PyObject *o;
7382 o = PyInt_FromLong((long) (*_arg2));
7383 _resultobj = t_output_helper(_resultobj, o);
7384}
7385 return _resultobj;
7386}
7387
7388#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7389static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7390 PyObject * _resultobj;
7391 wxDC * _arg0;
7392 int _arg1;
7393 int _arg2;
7394 PyObject * _argo0 = 0;
7395 char *_kwnames[] = { "self","x","y", NULL };
7396
7397 self = self;
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7399 return NULL;
7400 if (_argo0) {
7401 if (_argo0 == Py_None) { _arg0 = NULL; }
7402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7404 return NULL;
7405 }
7406 }
7407{
474c48f9 7408 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7409 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 7410
474c48f9 7411 wxPyEndAllowThreads(__tstate);
4dfaa61e 7412 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7413} Py_INCREF(Py_None);
7414 _resultobj = Py_None;
7415 return _resultobj;
7416}
7417
7418#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7419static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7420 PyObject * _resultobj;
7421 wxDC * _arg0;
7422 int * _arg1;
7423 int temp;
7424 int * _arg2;
7425 int temp0;
7426 PyObject * _argo0 = 0;
7427 char *_kwnames[] = { "self", NULL };
7428
7429 self = self;
7430{
7431 _arg1 = &temp;
7432}
7433{
7434 _arg2 = &temp0;
7435}
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
7437 return NULL;
7438 if (_argo0) {
7439 if (_argo0 == Py_None) { _arg0 = NULL; }
7440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7442 return NULL;
7443 }
7444 }
7445{
474c48f9 7446 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7447 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
e02c03a4 7448
474c48f9 7449 wxPyEndAllowThreads(__tstate);
4dfaa61e 7450 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7451} Py_INCREF(Py_None);
7452 _resultobj = Py_None;
7453{
7454 PyObject *o;
7455 o = PyInt_FromLong((long) (*_arg1));
7456 _resultobj = t_output_helper(_resultobj, o);
7457}
7458{
7459 PyObject *o;
7460 o = PyInt_FromLong((long) (*_arg2));
7461 _resultobj = t_output_helper(_resultobj, o);
7462}
7463 return _resultobj;
7464}
7465
7466#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7467static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
7468 PyObject * _resultobj;
7469 wxDC * _arg0;
7470 bool _arg1;
7471 bool _arg2;
7472 PyObject * _argo0 = 0;
7473 int tempbool1;
7474 int tempbool2;
7475 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
7476
7477 self = self;
7478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
7479 return NULL;
7480 if (_argo0) {
7481 if (_argo0 == Py_None) { _arg0 = NULL; }
7482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7484 return NULL;
7485 }
7486 }
7487 _arg1 = (bool ) tempbool1;
7488 _arg2 = (bool ) tempbool2;
7489{
474c48f9 7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7491 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
e02c03a4 7492
474c48f9 7493 wxPyEndAllowThreads(__tstate);
4dfaa61e 7494 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7495} Py_INCREF(Py_None);
7496 _resultobj = Py_None;
7497 return _resultobj;
7498}
7499
f6bcfd97
BP
7500#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7501static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject * _resultobj;
7503 wxDC * _arg0;
7504 int _arg1;
7505 int _arg2;
7506 PyObject * _argo0 = 0;
7507 char *_kwnames[] = { "self","x","y", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7516 return NULL;
7517 }
7518 }
7519{
474c48f9 7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7521 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
f6bcfd97 7522
474c48f9 7523 wxPyEndAllowThreads(__tstate);
4dfaa61e 7524 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
7525} Py_INCREF(Py_None);
7526 _resultobj = Py_None;
7527 return _resultobj;
7528}
7529
7530#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7531static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject * _resultobj;
7533 wxDC * _arg0;
7534 PyObject * _argo0 = 0;
7535 char *_kwnames[] = { "self", NULL };
7536
7537 self = self;
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
7539 return NULL;
7540 if (_argo0) {
7541 if (_argo0 == Py_None) { _arg0 = NULL; }
7542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7544 return NULL;
7545 }
7546 }
7547{
474c48f9 7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7549 wxDC_ResetBoundingBox(_arg0);
f6bcfd97 7550
474c48f9 7551 wxPyEndAllowThreads(__tstate);
4dfaa61e 7552 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
7553} Py_INCREF(Py_None);
7554 _resultobj = Py_None;
7555 return _resultobj;
7556}
7557
3bcd5e1c
RD
7558static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7559 PyObject * _resultobj;
7560 wxDC * _arg0;
7561 int * _arg1;
7562 int temp;
7563 int * _arg2;
7564 int temp0;
7565 int * _arg3;
7566 int temp1;
7567 int * _arg4;
7568 int temp2;
7569 PyObject * _argo0 = 0;
7570 char *_kwnames[] = { "self", NULL };
7571
7572 self = self;
7573{
7574 _arg1 = &temp;
7575}
7576{
7577 _arg2 = &temp0;
7578}
7579{
7580 _arg3 = &temp1;
7581}
7582{
7583 _arg4 = &temp2;
7584}
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
7586 return NULL;
7587 if (_argo0) {
7588 if (_argo0 == Py_None) { _arg0 = NULL; }
7589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
7591 return NULL;
7592 }
7593 }
7594{
474c48f9 7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7596 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
3bcd5e1c 7597
474c48f9 7598 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
7599 if (PyErr_Occurred()) return NULL;
7600} Py_INCREF(Py_None);
7601 _resultobj = Py_None;
7602{
7603 PyObject *o;
7604 o = PyInt_FromLong((long) (*_arg1));
7605 _resultobj = t_output_helper(_resultobj, o);
7606}
7607{
7608 PyObject *o;
7609 o = PyInt_FromLong((long) (*_arg2));
7610 _resultobj = t_output_helper(_resultobj, o);
7611}
7612{
7613 PyObject *o;
7614 o = PyInt_FromLong((long) (*_arg3));
7615 _resultobj = t_output_helper(_resultobj, o);
7616}
7617{
7618 PyObject *o;
7619 o = PyInt_FromLong((long) (*_arg4));
7620 _resultobj = t_output_helper(_resultobj, o);
7621}
7622 return _resultobj;
7623}
7624
7625static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
7626 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
7627 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
7628 int numObjs = 0;
7629 int numPens = 0;
7630 wxPen* pen;
7631 PyObject* obj;
7632 int x1, y1;
7633 int i = 0;
7634
7635 if (!PySequence_Check(pyPoints)) {
7636 goto err0;
7637 }
7638 if (!PySequence_Check(pyPens)) {
7639 goto err1;
7640 }
7641 numObjs = PySequence_Length(pyPoints);
7642 numPens = PySequence_Length(pyPens);
7643
7644 for (i = 0; i < numObjs; i++) {
7645 // Use a new pen?
7646 if (i < numPens) {
7647 if (isFastPens) {
7648 obj = PySequence_Fast_GET_ITEM(pyPens, i);
7649 }
7650 else {
7651 obj = PySequence_GetItem(pyPens, i);
7652 }
7653 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
7654 if (!isFastPens)
7655 Py_DECREF(obj);
7656 goto err1;
7657 }
7658
7659 self->SetPen(*pen);
7660 if (!isFastPens)
7661 Py_DECREF(obj);
7662 }
7663
7664 // Get the point coordinants
7665 if (isFastSeq) {
7666 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
7667 }
7668 else {
7669 obj = PySequence_GetItem(pyPoints, i);
7670 }
7671 if (! _2int_seq_helper(obj, &x1, &y1)) {
7672 if (!isFastPens)
7673 Py_DECREF(obj);
7674 goto err0;
7675 }
7676
7677 // Now draw the point
7678 self->DrawPoint(x1, y1);
7679
7680 if (!isFastSeq)
7681 Py_DECREF(obj);
7682 }
7683
7684 Py_INCREF(Py_None);
7685 return Py_None;
7686
7687 err1:
7688 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
7689 return NULL;
7690 err0:
7691 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
7692 return NULL;
7693 }
7694static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
7695 PyObject * _resultobj;
7696 PyObject * _result;
7697 wxDC * _arg0;
7698 PyObject * _arg1;
7699 PyObject * _arg2;
7700 PyObject * _argo0 = 0;
7701 PyObject * _obj1 = 0;
7702 PyObject * _obj2 = 0;
7703 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
7704
7705 self = self;
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
7707 return NULL;
7708 if (_argo0) {
7709 if (_argo0 == Py_None) { _arg0 = NULL; }
7710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
7712 return NULL;
7713 }
7714 }
7715{
7716 _arg1 = _obj1;
7717}
7718{
7719 _arg2 = _obj2;
7720}
7721{
474c48f9 7722 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7723 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
3bcd5e1c 7724
474c48f9 7725 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
7726 if (PyErr_Occurred()) return NULL;
7727}{
7728 _resultobj = _result;
7729}
7730 return _resultobj;
7731}
7732
7733static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
7734 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
7735 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
7736 int numObjs = 0;
7737 int numPens = 0;
7738 wxPen* pen;
7739 PyObject* obj;
7740 int x1, y1, x2, y2;
7741 int i = 0;
7742
7743 if (!PySequence_Check(pyLines)) {
7744 goto err0;
7745 }
7746 if (!PySequence_Check(pyPens)) {
7747 goto err1;
7748 }
7749 numObjs = PySequence_Length(pyLines);
7750 numPens = PySequence_Length(pyPens);
7751
7752 for (i = 0; i < numObjs; i++) {
7753 // Use a new pen?
7754 if (i < numPens) {
7755 if (isFastPens) {
7756 obj = PySequence_Fast_GET_ITEM(pyPens, i);
7757 }
7758 else {
7759 obj = PySequence_GetItem(pyPens, i);
7760 }
7761 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
7762 if (!isFastPens)
7763 Py_DECREF(obj);
7764 goto err1;
7765 }
7766
7767 self->SetPen(*pen);
7768 if (!isFastPens)
7769 Py_DECREF(obj);
7770 }
7771
7772 // Get the line coordinants
7773 if (isFastSeq) {
7774 obj = PySequence_Fast_GET_ITEM(pyLines, i);
7775 }
7776 else {
7777 obj = PySequence_GetItem(pyLines, i);
7778 }
7779 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
7780 if (!isFastPens)
7781 Py_DECREF(obj);
7782 goto err0;
7783 }
7784
7785 // Now draw the line
7786 self->DrawLine(x1, y1, x2, y2);
7787
7788 if (!isFastSeq)
7789 Py_DECREF(obj);
7790 }
7791
7792 Py_INCREF(Py_None);
7793 return Py_None;
7794
7795 err1:
7796 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
7797 return NULL;
7798 err0:
7799 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
7800 return NULL;
7801 }
7802static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject * _resultobj;
7804 PyObject * _result;
7805 wxDC * _arg0;
7806 PyObject * _arg1;
7807 PyObject * _arg2;
7808 PyObject * _argo0 = 0;
7809 PyObject * _obj1 = 0;
7810 PyObject * _obj2 = 0;
7811 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
7812
7813 self = self;
7814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
7815 return NULL;
7816 if (_argo0) {
7817 if (_argo0 == Py_None) { _arg0 = NULL; }
7818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
7820 return NULL;
7821 }
7822 }
7823{
7824 _arg1 = _obj1;
7825}
7826{
7827 _arg2 = _obj2;
7828}
7829{
474c48f9 7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7831 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
3bcd5e1c 7832
474c48f9 7833 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
7834 if (PyErr_Occurred()) return NULL;
7835}{
7836 _resultobj = _result;
7837}
7838 return _resultobj;
7839}
7840
70551f47
RD
7841static void *SwigwxMemoryDCTowxDC(void *ptr) {
7842 wxMemoryDC *src;
7843 wxDC *dest;
7844 src = (wxMemoryDC *) ptr;
7845 dest = (wxDC *) src;
7846 return (void *) dest;
7847}
7848
9df61a29
RD
7849static void *SwigwxMemoryDCTowxObject(void *ptr) {
7850 wxMemoryDC *src;
7851 wxObject *dest;
7852 src = (wxMemoryDC *) ptr;
7853 dest = (wxObject *) src;
7854 return (void *) dest;
7855}
7856
70551f47 7857#define new_wxMemoryDC() (new wxMemoryDC())
107e4716 7858static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7859 PyObject * _resultobj;
7860 wxMemoryDC * _result;
107e4716 7861 char *_kwnames[] = { NULL };
70551f47
RD
7862 char _ptemp[128];
7863
7864 self = self;
107e4716 7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
70551f47 7866 return NULL;
ab9bc19b 7867{
474c48f9 7868 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7869 _result = (wxMemoryDC *)new_wxMemoryDC();
ab9bc19b 7870
474c48f9 7871 wxPyEndAllowThreads(__tstate);
4dfaa61e 7872 if (PyErr_Occurred()) return NULL;
2d091820
RD
7873} if (_result) {
7874 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
7875 _resultobj = Py_BuildValue("s",_ptemp);
7876 } else {
7877 Py_INCREF(Py_None);
7878 _resultobj = Py_None;
7879 }
70551f47
RD
7880 return _resultobj;
7881}
7882
7883#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
107e4716 7884static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7885 PyObject * _resultobj;
7886 wxMemoryDC * _arg0;
7887 wxBitmap * _arg1;
2d091820
RD
7888 PyObject * _argo0 = 0;
7889 PyObject * _argo1 = 0;
107e4716 7890 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
7891
7892 self = self;
107e4716 7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
70551f47 7894 return NULL;
2d091820
RD
7895 if (_argo0) {
7896 if (_argo0 == Py_None) { _arg0 = NULL; }
7897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
70551f47
RD
7898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7899 return NULL;
7900 }
7901 }
2d091820
RD
7902 if (_argo1) {
7903 if (_argo1 == Py_None) { _arg1 = NULL; }
7904 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
7905 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7906 return NULL;
7907 }
7908 }
ab9bc19b 7909{
474c48f9 7910 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7911 wxMemoryDC_SelectObject(_arg0,*_arg1);
ab9bc19b 7912
474c48f9 7913 wxPyEndAllowThreads(__tstate);
4dfaa61e 7914 if (PyErr_Occurred()) return NULL;
ab9bc19b 7915} Py_INCREF(Py_None);
70551f47
RD
7916 _resultobj = Py_None;
7917 return _resultobj;
7918}
7919
a884bee5
RD
7920static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
7921 wxBufferedDC *src;
7922 wxMemoryDC *dest;
7923 src = (wxBufferedDC *) ptr;
7924 dest = (wxMemoryDC *) src;
7925 return (void *) dest;
7926}
7927
7928static void *SwigwxBufferedDCTowxDC(void *ptr) {
7929 wxBufferedDC *src;
7930 wxDC *dest;
7931 src = (wxBufferedDC *) ptr;
7932 dest = (wxDC *) src;
7933 return (void *) dest;
7934}
7935
7936static void *SwigwxBufferedDCTowxObject(void *ptr) {
7937 wxBufferedDC *src;
7938 wxObject *dest;
7939 src = (wxBufferedDC *) ptr;
7940 dest = (wxObject *) src;
7941 return (void *) dest;
7942}
7943
7944#define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7945static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7946 PyObject * _resultobj;
7947 wxBufferedDC * _result;
7948 wxDC * _arg0;
7949 wxBitmap * _arg1;
7950 PyObject * _argo0 = 0;
7951 PyObject * _argo1 = 0;
7952 char *_kwnames[] = { "dc","buffer", NULL };
7953 char _ptemp[128];
7954
7955 self = self;
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
7957 return NULL;
7958 if (_argo0) {
7959 if (_argo0 == Py_None) { _arg0 = NULL; }
7960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
7962 return NULL;
7963 }
7964 }
7965 if (_argo1) {
7966 if (_argo1 == Py_None) { _arg1 = NULL; }
7967 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7968 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
7969 return NULL;
7970 }
7971 }
7972{
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) return NULL;
7978} if (_result) {
7979 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
7980 _resultobj = Py_BuildValue("s",_ptemp);
7981 } else {
7982 Py_INCREF(Py_None);
7983 _resultobj = Py_None;
7984 }
7985 return _resultobj;
7986}
7987
7988#define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
7989static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
7990 PyObject * _resultobj;
7991 wxBufferedDC * _result;
7992 wxDC * _arg0;
7993 wxSize * _arg1;
7994 PyObject * _argo0 = 0;
7995 wxSize temp;
7996 PyObject * _obj1 = 0;
7997 char *_kwnames[] = { "dc","area", NULL };
7998 char _ptemp[128];
7999
8000 self = self;
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
8002 return NULL;
8003 if (_argo0) {
8004 if (_argo0 == Py_None) { _arg0 = NULL; }
8005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8007 return NULL;
8008 }
8009 }
8010{
8011 _arg1 = &temp;
8012 if (! wxSize_helper(_obj1, &_arg1))
8013 return NULL;
8014}
8015{
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
8018
8019 wxPyEndAllowThreads(__tstate);
8020 if (PyErr_Occurred()) return NULL;
8021} if (_result) {
8022 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
8023 _resultobj = Py_BuildValue("s",_ptemp);
8024 } else {
8025 Py_INCREF(Py_None);
8026 _resultobj = Py_None;
8027 }
8028 return _resultobj;
8029}
8030
301dfd67
RD
8031#define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8032static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
8033 PyObject * _resultobj;
8034 wxBufferedDC * _arg0;
8035 PyObject * _argo0 = 0;
8036 char *_kwnames[] = { "self", NULL };
8037
8038 self = self;
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0))
8040 return NULL;
8041 if (_argo0) {
8042 if (_argo0 == Py_None) { _arg0 = NULL; }
8043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) {
8044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8045 return NULL;
8046 }
8047 }
8048{
8049 PyThreadState* __tstate = wxPyBeginAllowThreads();
8050 wxBufferedDC_UnMask(_arg0);
8051
8052 wxPyEndAllowThreads(__tstate);
8053 if (PyErr_Occurred()) return NULL;
8054} Py_INCREF(Py_None);
8055 _resultobj = Py_None;
8056 return _resultobj;
8057}
8058
a884bee5
RD
8059static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
8060 wxBufferedPaintDC *src;
8061 wxBufferedDC *dest;
8062 src = (wxBufferedPaintDC *) ptr;
8063 dest = (wxBufferedDC *) src;
8064 return (void *) dest;
8065}
8066
8067static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
8068 wxBufferedPaintDC *src;
8069 wxMemoryDC *dest;
8070 src = (wxBufferedPaintDC *) ptr;
8071 dest = (wxMemoryDC *) src;
8072 return (void *) dest;
8073}
8074
8075static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
8076 wxBufferedPaintDC *src;
8077 wxDC *dest;
8078 src = (wxBufferedPaintDC *) ptr;
8079 dest = (wxDC *) src;
8080 return (void *) dest;
8081}
8082
8083static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
8084 wxBufferedPaintDC *src;
8085 wxObject *dest;
8086 src = (wxBufferedPaintDC *) ptr;
8087 dest = (wxObject *) src;
8088 return (void *) dest;
8089}
8090
8091#define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8092static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8093 PyObject * _resultobj;
8094 wxBufferedPaintDC * _result;
8095 wxWindow * _arg0;
8096 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
8097 PyObject * _argo0 = 0;
8098 PyObject * _argo1 = 0;
8099 char *_kwnames[] = { "window","buffer", NULL };
8100 char _ptemp[128];
8101
8102 self = self;
8103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
8104 return NULL;
8105 if (_argo0) {
8106 if (_argo0 == Py_None) { _arg0 = NULL; }
8107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8109 return NULL;
8110 }
8111 }
8112 if (_argo1) {
8113 if (_argo1 == Py_None) { _arg1 = NULL; }
8114 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8115 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8116 return NULL;
8117 }
8118 }
8119{
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) return NULL;
8125} if (_result) {
8126 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
8127 _resultobj = Py_BuildValue("s",_ptemp);
8128 } else {
8129 Py_INCREF(Py_None);
8130 _resultobj = Py_None;
8131 }
8132 return _resultobj;
8133}
8134
70551f47
RD
8135static void *SwigwxScreenDCTowxDC(void *ptr) {
8136 wxScreenDC *src;
8137 wxDC *dest;
8138 src = (wxScreenDC *) ptr;
8139 dest = (wxDC *) src;
8140 return (void *) dest;
8141}
8142
9df61a29
RD
8143static void *SwigwxScreenDCTowxObject(void *ptr) {
8144 wxScreenDC *src;
8145 wxObject *dest;
8146 src = (wxScreenDC *) ptr;
8147 dest = (wxObject *) src;
8148 return (void *) dest;
8149}
8150
70551f47 8151#define new_wxScreenDC() (new wxScreenDC())
107e4716 8152static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8153 PyObject * _resultobj;
8154 wxScreenDC * _result;
107e4716 8155 char *_kwnames[] = { NULL };
70551f47
RD
8156 char _ptemp[128];
8157
8158 self = self;
107e4716 8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
70551f47 8160 return NULL;
ab9bc19b 8161{
474c48f9 8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8163 _result = (wxScreenDC *)new_wxScreenDC();
ab9bc19b 8164
474c48f9 8165 wxPyEndAllowThreads(__tstate);
4dfaa61e 8166 if (PyErr_Occurred()) return NULL;
2d091820
RD
8167} if (_result) {
8168 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
8169 _resultobj = Py_BuildValue("s",_ptemp);
8170 } else {
8171 Py_INCREF(Py_None);
8172 _resultobj = Py_None;
8173 }
70551f47
RD
8174 return _resultobj;
8175}
8176
2fc99549
RD
8177#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8178static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8179 PyObject * _resultobj;
8180 bool _result;
8181 wxScreenDC * _arg0;
8182 wxWindow * _arg1;
2d091820
RD
8183 PyObject * _argo0 = 0;
8184 PyObject * _argo1 = 0;
107e4716 8185 char *_kwnames[] = { "self","window", NULL };
70551f47
RD
8186
8187 self = self;
2fc99549 8188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
70551f47 8189 return NULL;
2d091820
RD
8190 if (_argo0) {
8191 if (_argo0 == Py_None) { _arg0 = NULL; }
8192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 8193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
70551f47
RD
8194 return NULL;
8195 }
8196 }
2d091820
RD
8197 if (_argo1) {
8198 if (_argo1 == Py_None) { _arg1 = NULL; }
8199 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2fc99549 8200 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
70551f47
RD
8201 return NULL;
8202 }
8203 }
ab9bc19b 8204{
474c48f9 8205 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8206 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
ab9bc19b 8207
474c48f9 8208 wxPyEndAllowThreads(__tstate);
4dfaa61e 8209 if (PyErr_Occurred()) return NULL;
ab9bc19b 8210} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8211 return _resultobj;
8212}
8213
2fc99549
RD
8214#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8215static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8216 PyObject * _resultobj;
8217 bool _result;
8218 wxScreenDC * _arg0;
2d091820
RD
8219 wxRect * _arg1 = (wxRect *) NULL;
8220 PyObject * _argo0 = 0;
37f6a977
RD
8221 wxRect temp;
8222 PyObject * _obj1 = 0;
107e4716 8223 char *_kwnames[] = { "self","rect", NULL };
70551f47
RD
8224
8225 self = self;
2fc99549 8226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
70551f47 8227 return NULL;
2d091820
RD
8228 if (_argo0) {
8229 if (_argo0 == Py_None) { _arg0 = NULL; }
8230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 8231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
70551f47
RD
8232 return NULL;
8233 }
8234 }
37f6a977
RD
8235 if (_obj1)
8236{
8237 _arg1 = &temp;
8238 if (! wxRect_helper(_obj1, &_arg1))
70551f47 8239 return NULL;
37f6a977 8240}
ab9bc19b 8241{
474c48f9 8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8243 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
ab9bc19b 8244
474c48f9 8245 wxPyEndAllowThreads(__tstate);
4dfaa61e 8246 if (PyErr_Occurred()) return NULL;
ab9bc19b 8247} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8248 return _resultobj;
8249}
8250
8251#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
107e4716 8252static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8253 PyObject * _resultobj;
8254 bool _result;
8255 wxScreenDC * _arg0;
2d091820 8256 PyObject * _argo0 = 0;
107e4716 8257 char *_kwnames[] = { "self", NULL };
70551f47
RD
8258
8259 self = self;
107e4716 8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
70551f47 8261 return NULL;
2d091820
RD
8262 if (_argo0) {
8263 if (_argo0 == Py_None) { _arg0 = NULL; }
8264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
70551f47
RD
8265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8266 return NULL;
8267 }
8268 }
ab9bc19b 8269{
474c48f9 8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8271 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
ab9bc19b 8272
474c48f9 8273 wxPyEndAllowThreads(__tstate);
4dfaa61e 8274 if (PyErr_Occurred()) return NULL;
ab9bc19b 8275} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8276 return _resultobj;
8277}
8278
8279static void *SwigwxClientDCTowxDC(void *ptr) {
8280 wxClientDC *src;
8281 wxDC *dest;
8282 src = (wxClientDC *) ptr;
8283 dest = (wxDC *) src;
8284 return (void *) dest;
8285}
8286
9df61a29
RD
8287static void *SwigwxClientDCTowxObject(void *ptr) {
8288 wxClientDC *src;
8289 wxObject *dest;
8290 src = (wxClientDC *) ptr;
8291 dest = (wxObject *) src;
8292 return (void *) dest;
8293}
8294
70551f47 8295#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
107e4716 8296static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8297 PyObject * _resultobj;
8298 wxClientDC * _result;
8299 wxWindow * _arg0;
2d091820 8300 PyObject * _argo0 = 0;
107e4716 8301 char *_kwnames[] = { "win", NULL };
70551f47
RD
8302 char _ptemp[128];
8303
8304 self = self;
107e4716 8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
70551f47 8306 return NULL;
2d091820
RD
8307 if (_argo0) {
8308 if (_argo0 == Py_None) { _arg0 = NULL; }
8309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
8310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8311 return NULL;
8312 }
8313 }
ab9bc19b 8314{
474c48f9 8315 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8316 _result = (wxClientDC *)new_wxClientDC(_arg0);
ab9bc19b 8317
474c48f9 8318 wxPyEndAllowThreads(__tstate);
4dfaa61e 8319 if (PyErr_Occurred()) return NULL;
2d091820
RD
8320} if (_result) {
8321 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
8322 _resultobj = Py_BuildValue("s",_ptemp);
8323 } else {
8324 Py_INCREF(Py_None);
8325 _resultobj = Py_None;
8326 }
70551f47
RD
8327 return _resultobj;
8328}
8329
8330static void *SwigwxPaintDCTowxDC(void *ptr) {
8331 wxPaintDC *src;
8332 wxDC *dest;
8333 src = (wxPaintDC *) ptr;
8334 dest = (wxDC *) src;
8335 return (void *) dest;
8336}
8337
9df61a29
RD
8338static void *SwigwxPaintDCTowxObject(void *ptr) {
8339 wxPaintDC *src;
8340 wxObject *dest;
8341 src = (wxPaintDC *) ptr;
8342 dest = (wxObject *) src;
8343 return (void *) dest;
8344}
8345
70551f47 8346#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
107e4716 8347static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8348 PyObject * _resultobj;
8349 wxPaintDC * _result;
8350 wxWindow * _arg0;
2d091820 8351 PyObject * _argo0 = 0;
107e4716 8352 char *_kwnames[] = { "win", NULL };
70551f47
RD
8353 char _ptemp[128];
8354
8355 self = self;
107e4716 8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
70551f47 8357 return NULL;
2d091820
RD
8358 if (_argo0) {
8359 if (_argo0 == Py_None) { _arg0 = NULL; }
8360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
8361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8362 return NULL;
8363 }
8364 }
ab9bc19b 8365{
474c48f9 8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8367 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
ab9bc19b 8368
474c48f9 8369 wxPyEndAllowThreads(__tstate);
4dfaa61e 8370 if (PyErr_Occurred()) return NULL;
2d091820
RD
8371} if (_result) {
8372 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
8373 _resultobj = Py_BuildValue("s",_ptemp);
8374 } else {
8375 Py_INCREF(Py_None);
8376 _resultobj = Py_None;
8377 }
70551f47
RD
8378 return _resultobj;
8379}
8380
c95e68d8
RD
8381static void *SwigwxWindowDCTowxDC(void *ptr) {
8382 wxWindowDC *src;
8383 wxDC *dest;
8384 src = (wxWindowDC *) ptr;
8385 dest = (wxDC *) src;
8386 return (void *) dest;
8387}
8388
9df61a29
RD
8389static void *SwigwxWindowDCTowxObject(void *ptr) {
8390 wxWindowDC *src;
8391 wxObject *dest;
8392 src = (wxWindowDC *) ptr;
8393 dest = (wxObject *) src;
8394 return (void *) dest;
8395}
8396
c95e68d8 8397#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
107e4716 8398static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
8399 PyObject * _resultobj;
8400 wxWindowDC * _result;
8401 wxWindow * _arg0;
2d091820 8402 PyObject * _argo0 = 0;
107e4716 8403 char *_kwnames[] = { "win", NULL };
c95e68d8
RD
8404 char _ptemp[128];
8405
8406 self = self;
107e4716 8407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
c95e68d8 8408 return NULL;
2d091820
RD
8409 if (_argo0) {
8410 if (_argo0 == Py_None) { _arg0 = NULL; }
8411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
8412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8413 return NULL;
8414 }
8415 }
ab9bc19b 8416{
474c48f9 8417 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8418 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
ab9bc19b 8419
474c48f9 8420 wxPyEndAllowThreads(__tstate);
4dfaa61e 8421 if (PyErr_Occurred()) return NULL;
2d091820
RD
8422} if (_result) {
8423 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
8424 _resultobj = Py_BuildValue("s",_ptemp);
8425 } else {
8426 Py_INCREF(Py_None);
8427 _resultobj = Py_None;
8428 }
c95e68d8
RD
8429 return _resultobj;
8430}
8431
9df61a29
RD
8432static void *SwigwxPaletteTowxGDIObject(void *ptr) {
8433 wxPalette *src;
8434 wxGDIObject *dest;
8435 src = (wxPalette *) ptr;
8436 dest = (wxGDIObject *) src;
8437 return (void *) dest;
8438}
8439
8440static void *SwigwxPaletteTowxObject(void *ptr) {
8441 wxPalette *src;
8442 wxObject *dest;
8443 src = (wxPalette *) ptr;
8444 dest = (wxObject *) src;
8445 return (void *) dest;
8446}
8447
105e45b9 8448#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8449static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
8450 PyObject * _resultobj;
8451 wxPalette * _result;
8452 int _arg0;
8453 byte * _arg1;
8454 byte * _arg2;
8455 byte * _arg3;
8456 PyObject * _obj1 = 0;
8457 PyObject * _obj2 = 0;
8458 PyObject * _obj3 = 0;
e02c03a4 8459 char *_kwnames[] = { "choices","choices","choices", NULL };
105e45b9
RD
8460 char _ptemp[128];
8461
8462 self = self;
107e4716 8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
105e45b9
RD
8464 return NULL;
8465{
8466 _arg1 = byte_LIST_helper(_obj1);
8467 if (_arg1 == NULL) {
8468 return NULL;
8469 }
8470}
8471{
8472 _arg2 = byte_LIST_helper(_obj2);
8473 if (_arg2 == NULL) {
8474 return NULL;
8475 }
8476}
8477 if (_obj3)
8478{
8479 _arg3 = byte_LIST_helper(_obj3);
8480 if (_arg3 == NULL) {
8481 return NULL;
8482 }
8483}
8484{
ab9bc19b
RD
8485 if (_obj1) {
8486 _arg0 = PyList_Size(_obj1);
8487 }
8488 else {
8489 _arg0 = 0;
8490 }
105e45b9 8491}
ab9bc19b 8492{
474c48f9 8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8494 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 8495
474c48f9 8496 wxPyEndAllowThreads(__tstate);
4dfaa61e 8497 if (PyErr_Occurred()) return NULL;
2d091820
RD
8498} if (_result) {
8499 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
8500 _resultobj = Py_BuildValue("s",_ptemp);
8501 } else {
8502 Py_INCREF(Py_None);
8503 _resultobj = Py_None;
8504 }
105e45b9
RD
8505{
8506 delete [] _arg1;
8507}
8508{
8509 delete [] _arg2;
8510}
8511{
8512 delete [] _arg3;
8513}
8514 return _resultobj;
8515}
8516
8517#define delete_wxPalette(_swigobj) (delete _swigobj)
107e4716 8518static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
8519 PyObject * _resultobj;
8520 wxPalette * _arg0;
2d091820 8521 PyObject * _argo0 = 0;
107e4716 8522 char *_kwnames[] = { "self", NULL };
105e45b9
RD
8523
8524 self = self;
107e4716 8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
105e45b9 8526 return NULL;
2d091820
RD
8527 if (_argo0) {
8528 if (_argo0 == Py_None) { _arg0 = NULL; }
8529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
8530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8531 return NULL;
8532 }
8533 }
ab9bc19b 8534{
474c48f9 8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8536 delete_wxPalette(_arg0);
ab9bc19b 8537
474c48f9 8538 wxPyEndAllowThreads(__tstate);
4dfaa61e 8539 if (PyErr_Occurred()) return NULL;
ab9bc19b 8540} Py_INCREF(Py_None);
105e45b9
RD
8541 _resultobj = Py_None;
8542 return _resultobj;
8543}
8544
8545#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
107e4716 8546static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
8547 PyObject * _resultobj;
8548 int _result;
8549 wxPalette * _arg0;
8550 byte _arg1;
8551 byte _arg2;
8552 byte _arg3;
2d091820 8553 PyObject * _argo0 = 0;
107e4716 8554 char *_kwnames[] = { "self","red","green","blue", NULL };
105e45b9
RD
8555
8556 self = self;
107e4716 8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
105e45b9 8558 return NULL;
2d091820
RD
8559 if (_argo0) {
8560 if (_argo0 == Py_None) { _arg0 = NULL; }
8561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
8562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8563 return NULL;
8564 }
8565 }
ab9bc19b 8566{
474c48f9 8567 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8568 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 8569
474c48f9 8570 wxPyEndAllowThreads(__tstate);
4dfaa61e 8571 if (PyErr_Occurred()) return NULL;
ab9bc19b 8572} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
8573 return _resultobj;
8574}
8575
8576#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8577static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
8578 PyObject * _resultobj;
8579 bool _result;
8580 wxPalette * _arg0;
8581 int _arg1;
8582 byte * _arg2;
ef2060fa 8583 int temp;
105e45b9 8584 byte * _arg3;
ef2060fa 8585 int temp0;
105e45b9 8586 byte * _arg4;
ef2060fa 8587 int temp1;
2d091820 8588 PyObject * _argo0 = 0;
ef2060fa 8589 char *_kwnames[] = { "self","pixel", NULL };
105e45b9
RD
8590
8591 self = self;
ef2060fa
RD
8592{
8593 _arg2 = (byte*)&temp;
8594}
8595{
8596 _arg3 = (byte*)&temp0;
8597}
8598{
8599 _arg4 = (byte*)&temp1;
8600}
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
105e45b9 8602 return NULL;
2d091820
RD
8603 if (_argo0) {
8604 if (_argo0 == Py_None) { _arg0 = NULL; }
8605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
8606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8607 return NULL;
8608 }
8609 }
ab9bc19b 8610{
474c48f9 8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8612 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 8613
474c48f9 8614 wxPyEndAllowThreads(__tstate);
4dfaa61e 8615 if (PyErr_Occurred()) return NULL;
ab9bc19b 8616} _resultobj = Py_BuildValue("i",_result);
ef2060fa
RD
8617{
8618 PyObject *o;
8619 o = PyInt_FromLong((long) (*_arg2));
8620 _resultobj = t_output_helper(_resultobj, o);
8621}
8622{
8623 PyObject *o;
8624 o = PyInt_FromLong((long) (*_arg3));
8625 _resultobj = t_output_helper(_resultobj, o);
8626}
8627{
8628 PyObject *o;
8629 o = PyInt_FromLong((long) (*_arg4));
8630 _resultobj = t_output_helper(_resultobj, o);
8631}
105e45b9
RD
8632 return _resultobj;
8633}
8634
8635#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
107e4716 8636static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
8637 PyObject * _resultobj;
8638 bool _result;
8639 wxPalette * _arg0;
2d091820 8640 PyObject * _argo0 = 0;
107e4716 8641 char *_kwnames[] = { "self", NULL };
105e45b9
RD
8642
8643 self = self;
107e4716 8644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
105e45b9 8645 return NULL;
2d091820
RD
8646 if (_argo0) {
8647 if (_argo0 == Py_None) { _arg0 = NULL; }
8648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
8649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8650 return NULL;
8651 }
8652 }
ab9bc19b 8653{
474c48f9 8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8655 _result = (bool )wxPalette_Ok(_arg0);
ab9bc19b 8656
474c48f9 8657 wxPyEndAllowThreads(__tstate);
4dfaa61e 8658 if (PyErr_Occurred()) return NULL;
ab9bc19b 8659} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
8660 return _resultobj;
8661}
8662
9df61a29
RD
8663static void *SwigwxImageListTowxObject(void *ptr) {
8664 wxImageList *src;
8665 wxObject *dest;
8666 src = (wxImageList *) ptr;
8667 dest = (wxObject *) src;
8668 return (void *) dest;
8669}
8670
21f8d7ea 8671#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8672static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8673 PyObject * _resultobj;
8674 wxImageList * _result;
8675 int _arg0;
8676 int _arg1;
7ff49f0c 8677 int _arg2 = (int ) TRUE;
2d091820 8678 int _arg3 = (int ) 1;
107e4716 8679 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
21f8d7ea
RD
8680 char _ptemp[128];
8681
8682 self = self;
56f5d962 8683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
21f8d7ea 8684 return NULL;
ab9bc19b 8685{
474c48f9 8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8687 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 8688
474c48f9 8689 wxPyEndAllowThreads(__tstate);
4dfaa61e 8690 if (PyErr_Occurred()) return NULL;
2d091820
RD
8691} if (_result) {
8692 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
8693 _resultobj = Py_BuildValue("s",_ptemp);
8694 } else {
8695 Py_INCREF(Py_None);
8696 _resultobj = Py_None;
8697 }
21f8d7ea
RD
8698 return _resultobj;
8699}
8700
8701#define delete_wxImageList(_swigobj) (delete _swigobj)
107e4716 8702static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8703 PyObject * _resultobj;
8704 wxImageList * _arg0;
2d091820 8705 PyObject * _argo0 = 0;
107e4716 8706 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
8707
8708 self = self;
107e4716 8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
21f8d7ea 8710 return NULL;
2d091820
RD
8711 if (_argo0) {
8712 if (_argo0 == Py_None) { _arg0 = NULL; }
8713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8715 return NULL;
8716 }
8717 }
ab9bc19b 8718{
474c48f9 8719 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8720 delete_wxImageList(_arg0);
ab9bc19b 8721
474c48f9 8722 wxPyEndAllowThreads(__tstate);
4dfaa61e 8723 if (PyErr_Occurred()) return NULL;
ab9bc19b 8724} Py_INCREF(Py_None);
21f8d7ea
RD
8725 _resultobj = Py_None;
8726 return _resultobj;
8727}
8728
f6bcfd97 8729#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
107e4716 8730static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8731 PyObject * _resultobj;
8732 int _result;
8733 wxImageList * _arg0;
8734 wxBitmap * _arg1;
f6bcfd97 8735 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
2d091820
RD
8736 PyObject * _argo0 = 0;
8737 PyObject * _argo1 = 0;
f6bcfd97
BP
8738 PyObject * _argo2 = 0;
8739 char *_kwnames[] = { "self","bitmap","mask", NULL };
21f8d7ea
RD
8740
8741 self = self;
f6bcfd97 8742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
21f8d7ea 8743 return NULL;
2d091820
RD
8744 if (_argo0) {
8745 if (_argo0 == Py_None) { _arg0 = NULL; }
8746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8748 return NULL;
8749 }
8750 }
2d091820
RD
8751 if (_argo1) {
8752 if (_argo1 == Py_None) { _arg1 = NULL; }
8753 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
21f8d7ea
RD
8754 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8755 return NULL;
8756 }
8757 }
f6bcfd97
BP
8758 if (_argo2) {
8759 if (_argo2 == Py_None) { _arg2 = NULL; }
8760 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8761 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8762 return NULL;
8763 }
8764 }
8765{
474c48f9 8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8767 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
f6bcfd97 8768
474c48f9 8769 wxPyEndAllowThreads(__tstate);
4dfaa61e 8770 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
8771} _resultobj = Py_BuildValue("i",_result);
8772 return _resultobj;
8773}
8774
8775#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8776static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
8777 PyObject * _resultobj;
8778 int _result;
8779 wxImageList * _arg0;
8780 wxBitmap * _arg1;
8781 wxColour * _arg2;
8782 PyObject * _argo0 = 0;
8783 PyObject * _argo1 = 0;
8784 wxColour temp;
8785 PyObject * _obj2 = 0;
8786 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
8787
8788 self = self;
8789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
8790 return NULL;
8791 if (_argo0) {
8792 if (_argo0 == Py_None) { _arg0 = NULL; }
8793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8795 return NULL;
8796 }
8797 }
8798 if (_argo1) {
8799 if (_argo1 == Py_None) { _arg1 = NULL; }
8800 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8801 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8802 return NULL;
8803 }
8804 }
8805{
8806 _arg2 = &temp;
8807 if (! wxColour_helper(_obj2, &_arg2))
8808 return NULL;
8809}
ab9bc19b 8810{
474c48f9 8811 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8812 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
f6bcfd97 8813
474c48f9 8814 wxPyEndAllowThreads(__tstate);
4dfaa61e 8815 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
8816} _resultobj = Py_BuildValue("i",_result);
8817 return _resultobj;
8818}
8819
8820#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8821static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject * _resultobj;
8823 int _result;
8824 wxImageList * _arg0;
8825 wxIcon * _arg1;
8826 PyObject * _argo0 = 0;
8827 PyObject * _argo1 = 0;
8828 char *_kwnames[] = { "self","icon", NULL };
8829
8830 self = self;
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
8832 return NULL;
8833 if (_argo0) {
8834 if (_argo0 == Py_None) { _arg0 = NULL; }
8835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8837 return NULL;
8838 }
8839 }
8840 if (_argo1) {
8841 if (_argo1 == Py_None) { _arg1 = NULL; }
8842 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8843 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8844 return NULL;
8845 }
8846 }
8847{
474c48f9 8848 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8849 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
ab9bc19b 8850
474c48f9 8851 wxPyEndAllowThreads(__tstate);
4dfaa61e 8852 if (PyErr_Occurred()) return NULL;
ab9bc19b 8853} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
8854 return _resultobj;
8855}
8856
8857#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
107e4716 8858static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8859 PyObject * _resultobj;
8860 bool _result;
8861 wxImageList * _arg0;
8862 int _arg1;
8863 wxBitmap * _arg2;
2d091820
RD
8864 PyObject * _argo0 = 0;
8865 PyObject * _argo2 = 0;
107e4716 8866 char *_kwnames[] = { "self","index","bitmap", NULL };
21f8d7ea
RD
8867
8868 self = self;
107e4716 8869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
21f8d7ea 8870 return NULL;
2d091820
RD
8871 if (_argo0) {
8872 if (_argo0 == Py_None) { _arg0 = NULL; }
8873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8875 return NULL;
8876 }
8877 }
2d091820
RD
8878 if (_argo2) {
8879 if (_argo2 == Py_None) { _arg2 = NULL; }
8880 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
21f8d7ea
RD
8881 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8882 return NULL;
8883 }
8884 }
ab9bc19b 8885{
474c48f9 8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8887 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
ab9bc19b 8888
474c48f9 8889 wxPyEndAllowThreads(__tstate);
4dfaa61e 8890 if (PyErr_Occurred()) return NULL;
ab9bc19b 8891} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
8892 return _resultobj;
8893}
8894
8895#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 8896static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8897 PyObject * _resultobj;
8898 bool _result;
8899 wxImageList * _arg0;
8900 int _arg1;
8901 wxDC * _arg2;
8902 int _arg3;
8903 int _arg4;
2d091820
RD
8904 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
8905 bool _arg6 = (bool ) FALSE;
8906 PyObject * _argo0 = 0;
8907 PyObject * _argo2 = 0;
8908 int tempbool6 = (int) FALSE;
107e4716 8909 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
21f8d7ea
RD
8910
8911 self = self;
107e4716 8912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
21f8d7ea 8913 return NULL;
2d091820
RD
8914 if (_argo0) {
8915 if (_argo0 == Py_None) { _arg0 = NULL; }
8916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8918 return NULL;
8919 }
8920 }
2d091820
RD
8921 if (_argo2) {
8922 if (_argo2 == Py_None) { _arg2 = NULL; }
8923 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
21f8d7ea
RD
8924 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8925 return NULL;
8926 }
8927 }
8928 _arg6 = (bool ) tempbool6;
ab9bc19b 8929{
474c48f9 8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8931 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 8932
474c48f9 8933 wxPyEndAllowThreads(__tstate);
4dfaa61e 8934 if (PyErr_Occurred()) return NULL;
ab9bc19b 8935} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
8936 return _resultobj;
8937}
8938
8939#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
107e4716 8940static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8941 PyObject * _resultobj;
8942 int _result;
8943 wxImageList * _arg0;
2d091820 8944 PyObject * _argo0 = 0;
107e4716 8945 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
8946
8947 self = self;
107e4716 8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
21f8d7ea 8949 return NULL;
2d091820
RD
8950 if (_argo0) {
8951 if (_argo0 == Py_None) { _arg0 = NULL; }
8952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8954 return NULL;
8955 }
8956 }
ab9bc19b 8957{
474c48f9 8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8959 _result = (int )wxImageList_GetImageCount(_arg0);
ab9bc19b 8960
474c48f9 8961 wxPyEndAllowThreads(__tstate);
4dfaa61e 8962 if (PyErr_Occurred()) return NULL;
ab9bc19b 8963} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
8964 return _resultobj;
8965}
8966
8967#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
107e4716 8968static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8969 PyObject * _resultobj;
8970 bool _result;
8971 wxImageList * _arg0;
8972 int _arg1;
2d091820 8973 PyObject * _argo0 = 0;
107e4716 8974 char *_kwnames[] = { "self","index", NULL };
21f8d7ea
RD
8975
8976 self = self;
107e4716 8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
21f8d7ea 8978 return NULL;
2d091820
RD
8979 if (_argo0) {
8980 if (_argo0 == Py_None) { _arg0 = NULL; }
8981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
8982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8983 return NULL;
8984 }
8985 }
ab9bc19b 8986{
474c48f9 8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8988 _result = (bool )wxImageList_Remove(_arg0,_arg1);
ab9bc19b 8989
474c48f9 8990 wxPyEndAllowThreads(__tstate);
4dfaa61e 8991 if (PyErr_Occurred()) return NULL;
ab9bc19b 8992} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
8993 return _resultobj;
8994}
8995
8996#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
107e4716 8997static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
8998 PyObject * _resultobj;
8999 bool _result;
9000 wxImageList * _arg0;
2d091820 9001 PyObject * _argo0 = 0;
107e4716 9002 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
9003
9004 self = self;
107e4716 9005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
21f8d7ea 9006 return NULL;
2d091820
RD
9007 if (_argo0) {
9008 if (_argo0 == Py_None) { _arg0 = NULL; }
9009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9011 return NULL;
9012 }
9013 }
ab9bc19b 9014{
474c48f9 9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9016 _result = (bool )wxImageList_RemoveAll(_arg0);
ab9bc19b 9017
474c48f9 9018 wxPyEndAllowThreads(__tstate);
4dfaa61e 9019 if (PyErr_Occurred()) return NULL;
ab9bc19b 9020} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9021 return _resultobj;
9022}
9023
f6bcfd97
BP
9024#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9025static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject * _resultobj;
9027 wxImageList * _arg0;
9028 int _arg1;
9029 int * _arg2;
9030 int temp;
9031 int * _arg3;
9032 int temp0;
9033 PyObject * _argo0 = 0;
9034 char *_kwnames[] = { "self","index", NULL };
9035
9036 self = self;
9037{
9038 _arg2 = &temp;
9039}
9040{
9041 _arg3 = &temp0;
9042}
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
9044 return NULL;
9045 if (_argo0) {
9046 if (_argo0 == Py_None) { _arg0 = NULL; }
9047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9049 return NULL;
9050 }
9051 }
9052{
474c48f9 9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9054 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
f6bcfd97 9055
474c48f9 9056 wxPyEndAllowThreads(__tstate);
4dfaa61e 9057 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9058} Py_INCREF(Py_None);
9059 _resultobj = Py_None;
9060{
9061 PyObject *o;
9062 o = PyInt_FromLong((long) (*_arg2));
9063 _resultobj = t_output_helper(_resultobj, o);
9064}
9065{
9066 PyObject *o;
9067 o = PyInt_FromLong((long) (*_arg3));
9068 _resultobj = t_output_helper(_resultobj, o);
9069}
9070 return _resultobj;
9071}
9072
9df61a29
RD
9073static void *SwigwxRegionTowxGDIObject(void *ptr) {
9074 wxRegion *src;
9075 wxGDIObject *dest;
9076 src = (wxRegion *) ptr;
9077 dest = (wxGDIObject *) src;
9078 return (void *) dest;
9079}
9080
9081static void *SwigwxRegionTowxObject(void *ptr) {
9082 wxRegion *src;
9083 wxObject *dest;
9084 src = (wxRegion *) ptr;
9085 dest = (wxObject *) src;
9086 return (void *) dest;
9087}
9088
9089#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9090static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9091 PyObject * _resultobj;
9092 wxRegion * _result;
9093 long _arg0 = (long ) 0;
9094 long _arg1 = (long ) 0;
9095 long _arg2 = (long ) 0;
9096 long _arg3 = (long ) 0;
9097 char *_kwnames[] = { "x","y","width","height", NULL };
9098 char _ptemp[128];
9099
9100 self = self;
9101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
9102 return NULL;
9103{
474c48f9 9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9105 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
9df61a29 9106
474c48f9 9107 wxPyEndAllowThreads(__tstate);
4dfaa61e 9108 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9109} if (_result) {
9110 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
9111 _resultobj = Py_BuildValue("s",_ptemp);
9112 } else {
9113 Py_INCREF(Py_None);
9114 _resultobj = Py_None;
9115 }
9116 return _resultobj;
9117}
9118
9119#define delete_wxRegion(_swigobj) (delete _swigobj)
9120static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject * _resultobj;
9122 wxRegion * _arg0;
9123 PyObject * _argo0 = 0;
9124 char *_kwnames[] = { "self", NULL };
9125
9126 self = self;
9127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
9128 return NULL;
9129 if (_argo0) {
9130 if (_argo0 == Py_None) { _arg0 = NULL; }
9131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9133 return NULL;
9134 }
9135 }
9136{
474c48f9 9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9138 delete_wxRegion(_arg0);
9df61a29 9139
474c48f9 9140 wxPyEndAllowThreads(__tstate);
4dfaa61e 9141 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9142} Py_INCREF(Py_None);
9143 _resultobj = Py_None;
9144 return _resultobj;
9145}
9146
9147#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9148static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
9149 PyObject * _resultobj;
9150 wxRegion * _arg0;
9151 PyObject * _argo0 = 0;
9152 char *_kwnames[] = { "self", NULL };
9153
9154 self = self;
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
9156 return NULL;
9157 if (_argo0) {
9158 if (_argo0 == Py_None) { _arg0 = NULL; }
9159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9161 return NULL;
9162 }
9163 }
9164{
474c48f9 9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9166 wxRegion_Clear(_arg0);
9df61a29 9167
474c48f9 9168 wxPyEndAllowThreads(__tstate);
4dfaa61e 9169 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9170} Py_INCREF(Py_None);
9171 _resultobj = Py_None;
9172 return _resultobj;
9173}
9174
8cb49012
RD
9175#define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
9176static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
9177 PyObject * _resultobj;
9178 bool _result;
9179 wxRegion * _arg0;
9180 wxCoord _arg1;
9181 wxCoord _arg2;
9182 PyObject * _argo0 = 0;
9183 char *_kwnames[] = { "self","x","y", NULL };
9184
9185 self = self;
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
9187 return NULL;
9188 if (_argo0) {
9189 if (_argo0 == Py_None) { _arg0 = NULL; }
9190 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9191 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
9192 return NULL;
9193 }
9194 }
9195{
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9197 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
8cb49012
RD
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) return NULL;
9201} _resultobj = Py_BuildValue("i",_result);
9202 return _resultobj;
9203}
9204
9df61a29
RD
9205#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9206static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
9207 PyObject * _resultobj;
9208 wxRegionContain _result;
9209 wxRegion * _arg0;
9210 long _arg1;
9211 long _arg2;
9212 PyObject * _argo0 = 0;
9213 char *_kwnames[] = { "self","x","y", NULL };
9214
9215 self = self;
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
9217 return NULL;
9218 if (_argo0) {
9219 if (_argo0 == Py_None) { _arg0 = NULL; }
9220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9222 return NULL;
9223 }
9224 }
9225{
474c48f9 9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9227 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
9df61a29 9228
474c48f9 9229 wxPyEndAllowThreads(__tstate);
4dfaa61e 9230 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9231} _resultobj = Py_BuildValue("i",_result);
9232 return _resultobj;
9233}
9234
9235#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9236static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9237 PyObject * _resultobj;
9238 wxRegionContain _result;
9239 wxRegion * _arg0;
9240 wxPoint * _arg1;
9241 PyObject * _argo0 = 0;
9242 wxPoint temp;
9243 PyObject * _obj1 = 0;
9244 char *_kwnames[] = { "self","pt", NULL };
9245
9246 self = self;
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
9248 return NULL;
9249 if (_argo0) {
9250 if (_argo0 == Py_None) { _arg0 = NULL; }
9251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9253 return NULL;
9254 }
9255 }
9256{
9257 _arg1 = &temp;
9258 if (! wxPoint_helper(_obj1, &_arg1))
9259 return NULL;
9260}
9261{
474c48f9 9262 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9263 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
9df61a29 9264
474c48f9 9265 wxPyEndAllowThreads(__tstate);
4dfaa61e 9266 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9267} _resultobj = Py_BuildValue("i",_result);
9268 return _resultobj;
9269}
9270
9271#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9272static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9273 PyObject * _resultobj;
9274 wxRegionContain _result;
9275 wxRegion * _arg0;
9276 wxRect * _arg1;
9277 PyObject * _argo0 = 0;
9278 wxRect temp;
9279 PyObject * _obj1 = 0;
9280 char *_kwnames[] = { "self","rect", NULL };
9281
9282 self = self;
9283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
9284 return NULL;
9285 if (_argo0) {
9286 if (_argo0 == Py_None) { _arg0 = NULL; }
9287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9289 return NULL;
9290 }
9291 }
9292{
9293 _arg1 = &temp;
9294 if (! wxRect_helper(_obj1, &_arg1))
9295 return NULL;
9296}
9297{
474c48f9 9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9299 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9df61a29 9300
474c48f9 9301 wxPyEndAllowThreads(__tstate);
4dfaa61e 9302 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9303} _resultobj = Py_BuildValue("i",_result);
9304 return _resultobj;
9305}
9306
9307#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9308static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
9309 PyObject * _resultobj;
9310 wxRegionContain _result;
9311 wxRegion * _arg0;
9312 long _arg1;
9313 long _arg2;
9314 long _arg3;
9315 long _arg4;
9316 PyObject * _argo0 = 0;
9317 char *_kwnames[] = { "self","x","y","w","h", NULL };
9318
9319 self = self;
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9321 return NULL;
9322 if (_argo0) {
9323 if (_argo0 == Py_None) { _arg0 = NULL; }
9324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9326 return NULL;
9327 }
9328 }
9329{
474c48f9 9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9331 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 9332
474c48f9 9333 wxPyEndAllowThreads(__tstate);
4dfaa61e 9334 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9335} _resultobj = Py_BuildValue("i",_result);
9336 return _resultobj;
9337}
9338
9339#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9340static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9341 PyObject * _resultobj;
9342 wxRect * _result;
9343 wxRegion * _arg0;
9344 PyObject * _argo0 = 0;
9345 char *_kwnames[] = { "self", NULL };
9346 char _ptemp[128];
9347
9348 self = self;
9349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
9350 return NULL;
9351 if (_argo0) {
9352 if (_argo0 == Py_None) { _arg0 = NULL; }
9353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9355 return NULL;
9356 }
9357 }
9358{
474c48f9 9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9360 _result = new wxRect (wxRegion_GetBox(_arg0));
9df61a29 9361
474c48f9 9362 wxPyEndAllowThreads(__tstate);
4dfaa61e 9363 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9364} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9365 _resultobj = Py_BuildValue("s",_ptemp);
9366 return _resultobj;
9367}
9368
9369#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9370static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
9371 PyObject * _resultobj;
9372 bool _result;
9373 wxRegion * _arg0;
9374 long _arg1;
9375 long _arg2;
9376 long _arg3;
9377 long _arg4;
9378 PyObject * _argo0 = 0;
9379 char *_kwnames[] = { "self","x","y","width","height", NULL };
9380
9381 self = self;
9382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9383 return NULL;
9384 if (_argo0) {
9385 if (_argo0 == Py_None) { _arg0 = NULL; }
9386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9388 return NULL;
9389 }
9390 }
9391{
474c48f9 9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9393 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 9394
474c48f9 9395 wxPyEndAllowThreads(__tstate);
4dfaa61e 9396 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9397} _resultobj = Py_BuildValue("i",_result);
9398 return _resultobj;
9399}
9400
9401#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9402static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9403 PyObject * _resultobj;
9404 bool _result;
9405 wxRegion * _arg0;
9406 wxRect * _arg1;
9407 PyObject * _argo0 = 0;
9408 wxRect temp;
9409 PyObject * _obj1 = 0;
9410 char *_kwnames[] = { "self","rect", NULL };
9411
9412 self = self;
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
9414 return NULL;
9415 if (_argo0) {
9416 if (_argo0 == Py_None) { _arg0 = NULL; }
9417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9419 return NULL;
9420 }
9421 }
9422{
9423 _arg1 = &temp;
9424 if (! wxRect_helper(_obj1, &_arg1))
9425 return NULL;
9426}
9427{
474c48f9 9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9429 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9df61a29 9430
474c48f9 9431 wxPyEndAllowThreads(__tstate);
4dfaa61e 9432 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9433} _resultobj = Py_BuildValue("i",_result);
9434 return _resultobj;
9435}
9436
9437#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9438static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject * _resultobj;
9440 bool _result;
9441 wxRegion * _arg0;
9442 wxRegion * _arg1;
9443 PyObject * _argo0 = 0;
9444 PyObject * _argo1 = 0;
9445 char *_kwnames[] = { "self","region", NULL };
9446
9447 self = self;
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
9449 return NULL;
9450 if (_argo0) {
9451 if (_argo0 == Py_None) { _arg0 = NULL; }
9452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9454 return NULL;
9455 }
9456 }
9457 if (_argo1) {
9458 if (_argo1 == Py_None) { _arg1 = NULL; }
9459 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9460 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9461 return NULL;
9462 }
9463 }
9464{
474c48f9 9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9466 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9df61a29 9467
474c48f9 9468 wxPyEndAllowThreads(__tstate);
4dfaa61e 9469 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9470} _resultobj = Py_BuildValue("i",_result);
9471 return _resultobj;
9472}
9473
9474#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9475static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject * _resultobj;
9477 bool _result;
9478 wxRegion * _arg0;
9479 PyObject * _argo0 = 0;
9480 char *_kwnames[] = { "self", NULL };
9481
9482 self = self;
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
9484 return NULL;
9485 if (_argo0) {
9486 if (_argo0 == Py_None) { _arg0 = NULL; }
9487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9489 return NULL;
9490 }
9491 }
9492{
474c48f9 9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9494 _result = (bool )wxRegion_IsEmpty(_arg0);
9df61a29 9495
474c48f9 9496 wxPyEndAllowThreads(__tstate);
4dfaa61e 9497 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9498} _resultobj = Py_BuildValue("i",_result);
9499 return _resultobj;
9500}
9501
9502#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9503static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject * _resultobj;
9505 bool _result;
9506 wxRegion * _arg0;
9507 long _arg1;
9508 long _arg2;
9509 long _arg3;
9510 long _arg4;
9511 PyObject * _argo0 = 0;
9512 char *_kwnames[] = { "self","x","y","width","height", NULL };
9513
9514 self = self;
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9516 return NULL;
9517 if (_argo0) {
9518 if (_argo0 == Py_None) { _arg0 = NULL; }
9519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9521 return NULL;
9522 }
9523 }
9524{
474c48f9 9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9526 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 9527
474c48f9 9528 wxPyEndAllowThreads(__tstate);
4dfaa61e 9529 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9530} _resultobj = Py_BuildValue("i",_result);
9531 return _resultobj;
9532}
9533
9534#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9535static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9536 PyObject * _resultobj;
9537 bool _result;
9538 wxRegion * _arg0;
9539 wxRect * _arg1;
9540 PyObject * _argo0 = 0;
9541 wxRect temp;
9542 PyObject * _obj1 = 0;
9543 char *_kwnames[] = { "self","rect", NULL };
9544
9545 self = self;
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
9547 return NULL;
9548 if (_argo0) {
9549 if (_argo0 == Py_None) { _arg0 = NULL; }
9550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9552 return NULL;
9553 }
9554 }
9555{
9556 _arg1 = &temp;
9557 if (! wxRect_helper(_obj1, &_arg1))
9558 return NULL;
9559}
9560{
474c48f9 9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9562 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9df61a29 9563
474c48f9 9564 wxPyEndAllowThreads(__tstate);
4dfaa61e 9565 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9566} _resultobj = Py_BuildValue("i",_result);
9567 return _resultobj;
9568}
9569
9570#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9571static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9572 PyObject * _resultobj;
9573 bool _result;
9574 wxRegion * _arg0;
9575 wxRegion * _arg1;
9576 PyObject * _argo0 = 0;
9577 PyObject * _argo1 = 0;
9578 char *_kwnames[] = { "self","region", NULL };
9579
9580 self = self;
9581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
9582 return NULL;
9583 if (_argo0) {
9584 if (_argo0 == Py_None) { _arg0 = NULL; }
9585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9587 return NULL;
9588 }
9589 }
9590 if (_argo1) {
9591 if (_argo1 == Py_None) { _arg1 = NULL; }
9592 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9593 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9594 return NULL;
9595 }
9596 }
9597{
474c48f9 9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9599 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9df61a29 9600
474c48f9 9601 wxPyEndAllowThreads(__tstate);
4dfaa61e 9602 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9603} _resultobj = Py_BuildValue("i",_result);
9604 return _resultobj;
9605}
9606
9607#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9608static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject * _resultobj;
9610 bool _result;
9611 wxRegion * _arg0;
9612 long _arg1;
9613 long _arg2;
9614 long _arg3;
9615 long _arg4;
9616 PyObject * _argo0 = 0;
9617 char *_kwnames[] = { "self","x","y","width","height", NULL };
9618
9619 self = self;
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9621 return NULL;
9622 if (_argo0) {
9623 if (_argo0 == Py_None) { _arg0 = NULL; }
9624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9626 return NULL;
9627 }
9628 }
9629{
474c48f9 9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9631 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 9632
474c48f9 9633 wxPyEndAllowThreads(__tstate);
4dfaa61e 9634 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9635} _resultobj = Py_BuildValue("i",_result);
9636 return _resultobj;
9637}
9638
9639#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9640static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9641 PyObject * _resultobj;
9642 bool _result;
9643 wxRegion * _arg0;
9644 wxRect * _arg1;
9645 PyObject * _argo0 = 0;
9646 wxRect temp;
9647 PyObject * _obj1 = 0;
9648 char *_kwnames[] = { "self","rect", NULL };
9649
9650 self = self;
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
9652 return NULL;
9653 if (_argo0) {
9654 if (_argo0 == Py_None) { _arg0 = NULL; }
9655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9657 return NULL;
9658 }
9659 }
9660{
9661 _arg1 = &temp;
9662 if (! wxRect_helper(_obj1, &_arg1))
9663 return NULL;
9664}
9665{
474c48f9 9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9667 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9df61a29 9668
474c48f9 9669 wxPyEndAllowThreads(__tstate);
4dfaa61e 9670 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9671} _resultobj = Py_BuildValue("i",_result);
9672 return _resultobj;
9673}
9674
9675#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9676static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9677 PyObject * _resultobj;
9678 bool _result;
9679 wxRegion * _arg0;
9680 wxRegion * _arg1;
9681 PyObject * _argo0 = 0;
9682 PyObject * _argo1 = 0;
9683 char *_kwnames[] = { "self","region", NULL };
9684
9685 self = self;
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
9687 return NULL;
9688 if (_argo0) {
9689 if (_argo0 == Py_None) { _arg0 = NULL; }
9690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9692 return NULL;
9693 }
9694 }
9695 if (_argo1) {
9696 if (_argo1 == Py_None) { _arg1 = NULL; }
9697 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9698 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9699 return NULL;
9700 }
9701 }
9702{
474c48f9 9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9704 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
9df61a29 9705
474c48f9 9706 wxPyEndAllowThreads(__tstate);
4dfaa61e 9707 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9708} _resultobj = Py_BuildValue("i",_result);
9709 return _resultobj;
9710}
9711
9712#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9713static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
9714 PyObject * _resultobj;
9715 bool _result;
9716 wxRegion * _arg0;
9717 long _arg1;
9718 long _arg2;
9719 long _arg3;
9720 long _arg4;
9721 PyObject * _argo0 = 0;
9722 char *_kwnames[] = { "self","x","y","width","height", NULL };
9723
9724 self = self;
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9726 return NULL;
9727 if (_argo0) {
9728 if (_argo0 == Py_None) { _arg0 = NULL; }
9729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9731 return NULL;
9732 }
9733 }
9734{
474c48f9 9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9736 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 9737
474c48f9 9738 wxPyEndAllowThreads(__tstate);
4dfaa61e 9739 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9740} _resultobj = Py_BuildValue("i",_result);
9741 return _resultobj;
9742}
9743
9744#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9745static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9746 PyObject * _resultobj;
9747 bool _result;
9748 wxRegion * _arg0;
9749 wxRect * _arg1;
9750 PyObject * _argo0 = 0;
9751 wxRect temp;
9752 PyObject * _obj1 = 0;
9753 char *_kwnames[] = { "self","rect", NULL };
9754
9755 self = self;
9756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
9757 return NULL;
9758 if (_argo0) {
9759 if (_argo0 == Py_None) { _arg0 = NULL; }
9760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9762 return NULL;
9763 }
9764 }
9765{
9766 _arg1 = &temp;
9767 if (! wxRect_helper(_obj1, &_arg1))
9768 return NULL;
9769}
9770{
474c48f9 9771 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9772 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
9df61a29 9773
474c48f9 9774 wxPyEndAllowThreads(__tstate);
4dfaa61e 9775 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9776} _resultobj = Py_BuildValue("i",_result);
9777 return _resultobj;
9778}
9779
9780#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9781static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject * _resultobj;
9783 bool _result;
9784 wxRegion * _arg0;
9785 wxRegion * _arg1;
9786 PyObject * _argo0 = 0;
9787 PyObject * _argo1 = 0;
9788 char *_kwnames[] = { "self","region", NULL };
9789
9790 self = self;
9791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
9792 return NULL;
9793 if (_argo0) {
9794 if (_argo0 == Py_None) { _arg0 = NULL; }
9795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9797 return NULL;
9798 }
9799 }
9800 if (_argo1) {
9801 if (_argo1 == Py_None) { _arg1 = NULL; }
9802 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9803 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9804 return NULL;
9805 }
9806 }
9807{
474c48f9 9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9809 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
9df61a29 9810
474c48f9 9811 wxPyEndAllowThreads(__tstate);
4dfaa61e 9812 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9813} _resultobj = Py_BuildValue("i",_result);
9814 return _resultobj;
9815}
9816
9817static void *SwigwxRegionIteratorTowxObject(void *ptr) {
9818 wxRegionIterator *src;
9819 wxObject *dest;
9820 src = (wxRegionIterator *) ptr;
9821 dest = (wxObject *) src;
9822 return (void *) dest;
9823}
9824
9825#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9826static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject * _resultobj;
9828 wxRegionIterator * _result;
9829 wxRegion * _arg0;
9830 PyObject * _argo0 = 0;
9831 char *_kwnames[] = { "region", NULL };
9832 char _ptemp[128];
9833
9834 self = self;
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
9836 return NULL;
9837 if (_argo0) {
9838 if (_argo0 == Py_None) { _arg0 = NULL; }
9839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9841 return NULL;
9842 }
9843 }
9844{
474c48f9 9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9846 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
9df61a29 9847
474c48f9 9848 wxPyEndAllowThreads(__tstate);
4dfaa61e 9849 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9850} if (_result) {
9851 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
9852 _resultobj = Py_BuildValue("s",_ptemp);
9853 } else {
9854 Py_INCREF(Py_None);
9855 _resultobj = Py_None;
9856 }
9857 return _resultobj;
9858}
9859
9860#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9861static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9862 PyObject * _resultobj;
9863 wxRegionIterator * _arg0;
9864 PyObject * _argo0 = 0;
9865 char *_kwnames[] = { "self", NULL };
9866
9867 self = self;
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
9869 return NULL;
9870 if (_argo0) {
9871 if (_argo0 == Py_None) { _arg0 = NULL; }
9872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9874 return NULL;
9875 }
9876 }
9877{
474c48f9 9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9879 delete_wxRegionIterator(_arg0);
9df61a29 9880
474c48f9 9881 wxPyEndAllowThreads(__tstate);
4dfaa61e 9882 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9883} Py_INCREF(Py_None);
9884 _resultobj = Py_None;
9885 return _resultobj;
9886}
9887
9888#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9889static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
9890 PyObject * _resultobj;
9891 long _result;
9892 wxRegionIterator * _arg0;
9893 PyObject * _argo0 = 0;
9894 char *_kwnames[] = { "self", NULL };
9895
9896 self = self;
9897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
9898 return NULL;
9899 if (_argo0) {
9900 if (_argo0 == Py_None) { _arg0 = NULL; }
9901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9903 return NULL;
9904 }
9905 }
9906{
474c48f9 9907 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9908 _result = (long )wxRegionIterator_GetX(_arg0);
9df61a29 9909
474c48f9 9910 wxPyEndAllowThreads(__tstate);
4dfaa61e 9911 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9912} _resultobj = Py_BuildValue("l",_result);
9913 return _resultobj;
9914}
9915
9916#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9917static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
9918 PyObject * _resultobj;
9919 long _result;
9920 wxRegionIterator * _arg0;
9921 PyObject * _argo0 = 0;
9922 char *_kwnames[] = { "self", NULL };
9923
9924 self = self;
9925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
9926 return NULL;
9927 if (_argo0) {
9928 if (_argo0 == Py_None) { _arg0 = NULL; }
9929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9931 return NULL;
9932 }
9933 }
9934{
474c48f9 9935 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9936 _result = (long )wxRegionIterator_GetY(_arg0);
9df61a29 9937
474c48f9 9938 wxPyEndAllowThreads(__tstate);
4dfaa61e 9939 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9940} _resultobj = Py_BuildValue("l",_result);
9941 return _resultobj;
9942}
9943
9944#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9945static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
9946 PyObject * _resultobj;
9947 long _result;
9948 wxRegionIterator * _arg0;
9949 PyObject * _argo0 = 0;
9950 char *_kwnames[] = { "self", NULL };
9951
9952 self = self;
9953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
9954 return NULL;
9955 if (_argo0) {
9956 if (_argo0 == Py_None) { _arg0 = NULL; }
9957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9959 return NULL;
9960 }
9961 }
9962{
474c48f9 9963 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9964 _result = (long )wxRegionIterator_GetW(_arg0);
9df61a29 9965
474c48f9 9966 wxPyEndAllowThreads(__tstate);
4dfaa61e 9967 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9968} _resultobj = Py_BuildValue("l",_result);
9969 return _resultobj;
9970}
9971
9972#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9973static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9974 PyObject * _resultobj;
9975 long _result;
9976 wxRegionIterator * _arg0;
9977 PyObject * _argo0 = 0;
9978 char *_kwnames[] = { "self", NULL };
9979
9980 self = self;
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
9982 return NULL;
9983 if (_argo0) {
9984 if (_argo0 == Py_None) { _arg0 = NULL; }
9985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9987 return NULL;
9988 }
9989 }
9990{
474c48f9 9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9992 _result = (long )wxRegionIterator_GetWidth(_arg0);
9df61a29 9993
474c48f9 9994 wxPyEndAllowThreads(__tstate);
4dfaa61e 9995 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9996} _resultobj = Py_BuildValue("l",_result);
9997 return _resultobj;
9998}
9999
10000#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10001static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
10002 PyObject * _resultobj;
10003 long _result;
10004 wxRegionIterator * _arg0;
10005 PyObject * _argo0 = 0;
10006 char *_kwnames[] = { "self", NULL };
10007
10008 self = self;
10009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
10010 return NULL;
10011 if (_argo0) {
10012 if (_argo0 == Py_None) { _arg0 = NULL; }
10013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10015 return NULL;
10016 }
10017 }
10018{
474c48f9 10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10020 _result = (long )wxRegionIterator_GetH(_arg0);
9df61a29 10021
474c48f9 10022 wxPyEndAllowThreads(__tstate);
4dfaa61e 10023 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10024} _resultobj = Py_BuildValue("l",_result);
10025 return _resultobj;
10026}
10027
10028#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10029static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10030 PyObject * _resultobj;
10031 long _result;
10032 wxRegionIterator * _arg0;
10033 PyObject * _argo0 = 0;
10034 char *_kwnames[] = { "self", NULL };
10035
10036 self = self;
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
10038 return NULL;
10039 if (_argo0) {
10040 if (_argo0 == Py_None) { _arg0 = NULL; }
10041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10043 return NULL;
10044 }
10045 }
10046{
474c48f9 10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10048 _result = (long )wxRegionIterator_GetHeight(_arg0);
9df61a29 10049
474c48f9 10050 wxPyEndAllowThreads(__tstate);
4dfaa61e 10051 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10052} _resultobj = Py_BuildValue("l",_result);
10053 return _resultobj;
10054}
10055
10056#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10057static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject * _resultobj;
10059 wxRect * _result;
10060 wxRegionIterator * _arg0;
10061 PyObject * _argo0 = 0;
10062 char *_kwnames[] = { "self", NULL };
10063 char _ptemp[128];
10064
10065 self = self;
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
10067 return NULL;
10068 if (_argo0) {
10069 if (_argo0 == Py_None) { _arg0 = NULL; }
10070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10072 return NULL;
10073 }
10074 }
10075{
474c48f9 10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10077 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
9df61a29 10078
474c48f9 10079 wxPyEndAllowThreads(__tstate);
4dfaa61e 10080 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10081} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10082 _resultobj = Py_BuildValue("s",_ptemp);
10083 return _resultobj;
10084}
10085
10086#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10087static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
10088 PyObject * _resultobj;
10089 bool _result;
10090 wxRegionIterator * _arg0;
10091 PyObject * _argo0 = 0;
10092 char *_kwnames[] = { "self", NULL };
10093
10094 self = self;
10095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
10096 return NULL;
10097 if (_argo0) {
10098 if (_argo0 == Py_None) { _arg0 = NULL; }
10099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10101 return NULL;
10102 }
10103 }
10104{
474c48f9 10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10106 _result = (bool )wxRegionIterator_HaveRects(_arg0);
9df61a29 10107
474c48f9 10108 wxPyEndAllowThreads(__tstate);
4dfaa61e 10109 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10110} _resultobj = Py_BuildValue("i",_result);
10111 return _resultobj;
10112}
10113
10114#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10115static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
10116 PyObject * _resultobj;
10117 wxRegionIterator * _arg0;
10118 PyObject * _argo0 = 0;
10119 char *_kwnames[] = { "self", NULL };
10120
10121 self = self;
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
10123 return NULL;
10124 if (_argo0) {
10125 if (_argo0 == Py_None) { _arg0 = NULL; }
10126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10128 return NULL;
10129 }
10130 }
10131{
474c48f9 10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10133 wxRegionIterator_Reset(_arg0);
9df61a29 10134
474c48f9 10135 wxPyEndAllowThreads(__tstate);
4dfaa61e 10136 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10137} Py_INCREF(Py_None);
10138 _resultobj = Py_None;
10139 return _resultobj;
10140}
10141
10142static void wxRegionIterator_Next(wxRegionIterator *self) {
10143 (*self) ++;
10144 }
10145static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
10146 PyObject * _resultobj;
10147 wxRegionIterator * _arg0;
10148 PyObject * _argo0 = 0;
10149 char *_kwnames[] = { "self", NULL };
10150
10151 self = self;
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
10153 return NULL;
10154 if (_argo0) {
10155 if (_argo0 == Py_None) { _arg0 = NULL; }
10156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10158 return NULL;
10159 }
10160 }
10161{
474c48f9 10162 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10163 wxRegionIterator_Next(_arg0);
9df61a29 10164
474c48f9 10165 wxPyEndAllowThreads(__tstate);
4dfaa61e 10166 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10167} Py_INCREF(Py_None);
10168 _resultobj = Py_None;
10169 return _resultobj;
10170}
10171
70551f47 10172static PyMethodDef gdicMethods[] = {
9df61a29
RD
10173 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
10174 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
10175 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
10176 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
10177 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
10178 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
10179 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
10180 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
10181 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
10182 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
10183 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
10184 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
10185 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
10186 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
10187 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
10188 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
10189 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
10190 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
10191 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
10192 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
10193 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
10194 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
10195 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
10196 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
10197 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
10198 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
10199 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
10200 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
10201 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
10202 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
8cb49012 10203 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
10204 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
10205 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
10206 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 10207 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10208 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
10209 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
10210 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
10211 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
10212 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
10213 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
10214 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10215 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
10216 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
10217 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
10218 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
10219 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
10220 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
10221 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
10222 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10223 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
10224 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
10225 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
10226 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
107e4716 10227 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
2fc99549 10228 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
107e4716 10229 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
a884bee5 10230 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
301dfd67 10231 { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
a884bee5
RD
10232 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
10233 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10234 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
10235 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
3bcd5e1c
RD
10236 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
10237 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
10238 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
10239 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
10240 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
e02c03a4
RD
10241 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
10242 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10243 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10244 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10245 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
10246 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
10247 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
10248 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10249 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
10250 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
10251 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
10252 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
10253 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
10254 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
10255 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
10256 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
10257 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 10258 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10259 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10260 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
10261 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
10262 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
b2a2e5bf 10263 { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
059a841c 10264 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10265 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
10266 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
10267 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
10268 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10269 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
10270 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
10271 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
10272 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
10273 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
10274 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
10275 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
10276 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
10277 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
e02c03a4 10278 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10279 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
10280 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
10281 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10282 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
e02c03a4 10283 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10284 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
10285 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10286 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
10287 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
10288 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
10289 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 10290 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10291 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10292 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
10293 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
10294 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10295 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10296 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
10297 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
10298 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
10299 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
10300 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
10301 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
10302 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
10303 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
10304 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
56f5d962 10305 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
b2a2e5bf 10306 { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10307 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
10308 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
10309 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
10310 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
10311 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
8cb49012
RD
10312 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
10313 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10314 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
10315 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
10316 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
10317 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
10318 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
10319 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
10320 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
10321 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
10322 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
10323 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
10324 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
10325 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
10326 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
10327 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
10328 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
7a9b33db 10329 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
10330 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
10331 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
10332 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10333 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
10334 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
10335 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
10336 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
10337 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
10338 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
10339 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 10340 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
107e4716 10341 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
7a9b33db 10342 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
10343 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
10344 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
10345 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
10346 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
10347 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
10348 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
298ae144 10349 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
56f5d962 10350 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10351 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
10352 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
10353 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
10354 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
10355 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
10356 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
10357 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
10358 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
10359 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
10360 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
10361 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 10362 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
107e4716 10363 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
10364 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
10365 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
10366 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10367 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
10368 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
10369 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
10370 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
10371 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
10372 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
10373 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
10374 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10375 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
10376 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
a323d3bd
RD
10377 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
10378 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
10379 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
10380 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
10381 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
10382 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
10383 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
fbcadfca 10384 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716 10385 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
10386 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
10387 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
10388 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
10389 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
10390 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10391 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
10392 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10393 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
10394 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
fbcadfca 10395 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
107e4716 10396 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
65191ae8 10397 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 10398 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
10399 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
10400 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
107e4716 10401 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
10402 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
10403 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
10404 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
10405 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
107e4716 10406 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
107e4716 10407 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 10408 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10409 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
10410 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10411 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10412 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
10413 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
10414 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
10415 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
10416 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10417 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
10418 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
10419 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
10420 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
4be61064 10421 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
10422 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
10423 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
107e4716 10424 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
9d6da64a 10425 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
10426 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
10427 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
107e4716 10428 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
10429 { NULL, NULL }
10430};
2d091820
RD
10431#ifdef __cplusplus
10432}
10433#endif
10434/*
10435 * This table is used by the pointer type-checker
10436 */
10437static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 10438 { "_signed_long","_long",0},
4120ef2b 10439 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
10440 { "_wxPrintQuality","_int",0},
10441 { "_wxPrintQuality","_signed_int",0},
10442 { "_wxPrintQuality","_unsigned_int",0},
10443 { "_wxPrintQuality","_wxWindowID",0},
10444 { "_wxPrintQuality","_uint",0},
10445 { "_wxPrintQuality","_EBool",0},
10446 { "_wxPrintQuality","_size_t",0},
c368d904 10447 { "_wxPrintQuality","_time_t",0},
65191ae8 10448 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
2d091820 10449 { "_byte","_unsigned_char",0},
2d091820
RD
10450 { "_long","_unsigned_long",0},
10451 { "_long","_signed_long",0},
9df61a29 10452 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
9df61a29 10453 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
9df61a29 10454 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
65191ae8 10455 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
9df61a29 10456 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
9df61a29 10457 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
9df61a29 10458 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
9df61a29 10459 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
2d091820 10460 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
2d091820 10461 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
2d091820 10462 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
2d091820 10463 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
a884bee5
RD
10464 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
10465 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
2d091820 10466 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
4120ef2b 10467 { "_size_t","_wxCoord",0},
2d091820 10468 { "_size_t","_wxPrintQuality",0},
c368d904 10469 { "_size_t","_time_t",0},
2d091820
RD
10470 { "_size_t","_unsigned_int",0},
10471 { "_size_t","_int",0},
10472 { "_size_t","_wxWindowID",0},
10473 { "_size_t","_uint",0},
4120ef2b 10474 { "_uint","_wxCoord",0},
2d091820 10475 { "_uint","_wxPrintQuality",0},
c368d904 10476 { "_uint","_time_t",0},
2d091820
RD
10477 { "_uint","_size_t",0},
10478 { "_uint","_unsigned_int",0},
10479 { "_uint","_int",0},
10480 { "_uint","_wxWindowID",0},
f6bcfd97 10481 { "_wxChar","_char",0},
f6bcfd97 10482 { "_char","_wxChar",0},
a884bee5 10483 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
059a841c 10484 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 10485 { "_EBool","_wxCoord",0},
2d091820
RD
10486 { "_EBool","_wxPrintQuality",0},
10487 { "_EBool","_signed_int",0},
10488 { "_EBool","_int",0},
10489 { "_EBool","_wxWindowID",0},
2d091820 10490 { "_unsigned_long","_long",0},
059a841c 10491 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 10492 { "_signed_int","_wxCoord",0},
2d091820
RD
10493 { "_signed_int","_wxPrintQuality",0},
10494 { "_signed_int","_EBool",0},
10495 { "_signed_int","_wxWindowID",0},
10496 { "_signed_int","_int",0},
2d091820
RD
10497 { "_WXTYPE","_short",0},
10498 { "_WXTYPE","_signed_short",0},
10499 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
10500 { "_unsigned_short","_WXTYPE",0},
10501 { "_unsigned_short","_short",0},
9df61a29 10502 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
9df61a29 10503 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
9df61a29 10504 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
9df61a29 10505 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
9df61a29 10506 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
9df61a29 10507 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
9df61a29 10508 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
9df61a29 10509 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
a884bee5
RD
10510 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
10511 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
9df61a29 10512 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
9df61a29 10513 { "_wxObject","_wxDC",SwigwxDCTowxObject},
65191ae8 10514 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
9df61a29 10515 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
9df61a29 10516 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
65191ae8 10517 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
9df61a29 10518 { "_wxObject","_wxPen",SwigwxPenTowxObject},
9df61a29 10519 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
9df61a29 10520 { "_wxObject","_wxColour",SwigwxColourTowxObject},
9df61a29 10521 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
9df61a29 10522 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
9df61a29 10523 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
9df61a29 10524 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
9df61a29 10525 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
2d091820
RD
10526 { "_signed_short","_WXTYPE",0},
10527 { "_signed_short","_short",0},
a884bee5
RD
10528 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
10529 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
2d091820 10530 { "_unsigned_char","_byte",0},
4120ef2b 10531 { "_unsigned_int","_wxCoord",0},
2d091820 10532 { "_unsigned_int","_wxPrintQuality",0},
c368d904 10533 { "_unsigned_int","_time_t",0},
2d091820
RD
10534 { "_unsigned_int","_size_t",0},
10535 { "_unsigned_int","_uint",0},
10536 { "_unsigned_int","_wxWindowID",0},
10537 { "_unsigned_int","_int",0},
2d091820
RD
10538 { "_short","_WXTYPE",0},
10539 { "_short","_unsigned_short",0},
10540 { "_short","_signed_short",0},
4120ef2b 10541 { "_wxWindowID","_wxCoord",0},
2d091820 10542 { "_wxWindowID","_wxPrintQuality",0},
c368d904 10543 { "_wxWindowID","_time_t",0},
2d091820
RD
10544 { "_wxWindowID","_size_t",0},
10545 { "_wxWindowID","_EBool",0},
10546 { "_wxWindowID","_uint",0},
10547 { "_wxWindowID","_int",0},
10548 { "_wxWindowID","_signed_int",0},
10549 { "_wxWindowID","_unsigned_int",0},
4120ef2b 10550 { "_int","_wxCoord",0},
2d091820 10551 { "_int","_wxPrintQuality",0},
c368d904 10552 { "_int","_time_t",0},
2d091820
RD
10553 { "_int","_size_t",0},
10554 { "_int","_EBool",0},
10555 { "_int","_uint",0},
10556 { "_int","_wxWindowID",0},
10557 { "_int","_unsigned_int",0},
10558 { "_int","_signed_int",0},
c368d904
RD
10559 { "_time_t","_wxCoord",0},
10560 { "_time_t","_wxPrintQuality",0},
10561 { "_time_t","_unsigned_int",0},
10562 { "_time_t","_int",0},
10563 { "_time_t","_wxWindowID",0},
10564 { "_time_t","_uint",0},
10565 { "_time_t","_size_t",0},
4120ef2b
RD
10566 { "_wxCoord","_int",0},
10567 { "_wxCoord","_signed_int",0},
10568 { "_wxCoord","_unsigned_int",0},
10569 { "_wxCoord","_wxWindowID",0},
10570 { "_wxCoord","_uint",0},
10571 { "_wxCoord","_EBool",0},
10572 { "_wxCoord","_size_t",0},
c368d904 10573 { "_wxCoord","_time_t",0},
4120ef2b 10574 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
10575{0,0,0}};
10576
70551f47
RD
10577static PyObject *SWIG_globals;
10578#ifdef __cplusplus
10579extern "C"
10580#endif
2d091820 10581SWIGEXPORT(void) initgdic() {
70551f47
RD
10582 PyObject *m, *d;
10583 SWIG_globals = SWIG_newvarlink();
10584 m = Py_InitModule("gdic", gdicMethods);
10585 d = PyModule_GetDict(m);
3e212503
RD
10586 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
10587 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
10588 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
10589 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
10590 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
10591 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
10592 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
10593 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
10594 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
10595 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
70551f47
RD
10596 PyDict_SetItemString(d,"cvar", SWIG_globals);
10597 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
10598 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
10599 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
10600 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
10601 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
10602 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
10603 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
10604 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
10605 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
10606 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
10607 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
10608 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
10609 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
10610 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
10611 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
10612 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
10613 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
10614 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
10615 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
10616 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
10617 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
10618 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
10619 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
10620 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
10621 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
10622 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
10623 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
10624 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
10625 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
10626 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
10627 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
10628 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
10629 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
10630 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
10631 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
10632 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
10633 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
10634 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
10635 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
10636 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
10637 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
10638 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
5e40f9dd
RD
10639 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
10640 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
10641 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
10642 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
2d091820
RD
10643{
10644 int i;
10645 for (i = 0; _swig_mapping[i].n1; i++)
10646 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10647}
70551f47 10648}