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