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