]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.cpp
Since wxGTK's wxGauge doesn't derive from wxGaugeBase it needs to have
[wxWidgets.git] / wxPython / src / gtk / gdi.cpp
CommitLineData
70551f47 1/*
2cd2fac8 2 * FILE : src/gtk/gdi.cpp
70551f47
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
2cd2fac8 6 * Version 1.1 (Build 883)
70551f47
RD
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
b67a9327
RD
22#include "Python.h"
23
70551f47
RD
24#include <string.h>
25#include <stdlib.h>
26/* Definitions for Windows/Unix exporting */
27#if defined(__WIN32__)
28# if defined(_MSC_VER)
2d091820 29# define SWIGEXPORT(a) __declspec(dllexport) a
70551f47
RD
30# else
31# if defined(__BORLANDC__)
3bcd5e1c 32# define SWIGEXPORT(a) a _export
70551f47 33# else
3bcd5e1c 34# define SWIGEXPORT(a) a
70551f47
RD
35# endif
36# endif
37#else
3bcd5e1c 38# define SWIGEXPORT(a) a
70551f47
RD
39#endif
40
41#ifdef __cplusplus
42extern "C" {
43#endif
70551f47
RD
44extern void SWIG_MakePtr(char *, void *, char *);
45extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 47extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
70551f47
RD
48extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49extern PyObject *SWIG_newvarlink(void);
50#ifdef __cplusplus
51}
52#endif
70551f47
RD
53#define SWIG_init initgdic
54
55#define SWIG_name "gdic"
56
57#include "helpers.h"
21f8d7ea 58#include <wx/imaglist.h>
059a841c
RD
59#include <wx/fontmap.h>
60#include <wx/fontenc.h>
61#include <wx/fontmap.h>
62#include <wx/fontutil.h>
a884bee5 63#include <wx/dcbuffer.h>
3ef86e32 64#include <wx/dcmirror.h>
a323d3bd 65#include <wx/iconbndl.h>
70551f47 66
70551f47
RD
67
68static PyObject* t_output_helper(PyObject* target, PyObject* o) {
69 PyObject* o2;
70 PyObject* o3;
71
3bcd5e1c 72 if (!target) {
70551f47 73 target = o;
3bcd5e1c 74 } else if (target == Py_None) {
70551f47
RD
75 Py_DECREF(Py_None);
76 target = o;
3bcd5e1c 77 } else {
70551f47
RD
78 if (!PyTuple_Check(target)) {
79 o2 = target;
80 target = PyTuple_New(1);
81 PyTuple_SetItem(target, 0, o2);
82 }
3bcd5e1c
RD
83 o3 = PyTuple_New(1);
84 PyTuple_SetItem(o3, 0, o);
70551f47
RD
85
86 o2 = target;
3bcd5e1c
RD
87 target = PySequence_Concat(o2, o3);
88 Py_DECREF(o2);
70551f47
RD
89 Py_DECREF(o3);
90 }
91 return target;
92}
9a74fcaf
RD
93
94 // Put some wx default wxChar* values into wxStrings.
95 static const wxString wxPyEmptyString(wxT(""));
fbcadfca
RD
96 // Implementations of some alternate "constructors"
97
70551f47
RD
98 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
99 return new wxBitmap(width, height, depth);
100 }
101
fbcadfca
RD
102 static char** ConvertListOfStrings(PyObject* listOfStrings) {
103 char** cArray = NULL;
104 int count;
105
106 if (!PyList_Check(listOfStrings)) {
107 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
108 return NULL;
109 }
110 count = PyList_Size(listOfStrings);
111 cArray = new char*[count];
112
113 for(int x=0; x<count; x++) {
114 // TODO: Need some validation and error checking here
115 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
116 }
117 return cArray;
118 }
119
9d6da64a 120
fbcadfca
RD
121 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
122 char** cArray = NULL;
123 wxBitmap* bmp;
124
125 cArray = ConvertListOfStrings(listOfStrings);
126 if (! cArray)
127 return NULL;
128 bmp = new wxBitmap(cArray);
129 delete [] cArray;
130 return bmp;
131 }
132
133
134 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
135 return new wxBitmap(icon);
136 }
137
138
ba77f390
RD
139 wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) {
140 char* buf;
141 int length;
142 PyString_AsStringAndSize(bits, &buf, &length);
143 return new wxBitmap(buf, width, height, depth);
9d6da64a 144 }
9e689c06 145
7ff49f0c 146
9d6da64a
RD
147// #ifdef __WXMSW__
148// wxBitmap* wxBitmapFromData(PyObject* data, long type,
149// int width, int height, int depth = 1) {
150// if (! PyString_Check(data)) {
151// PyErr_SetString(PyExc_TypeError, "Expected string object");
152// return NULL;
153// }
154// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155// }
156// #endif
8bf5d46e 157
70551f47
RD
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
fbcadfca
RD
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
70551f47 176 }
4be61064
RD
177
178 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
179 wxIcon* icon = new wxIcon();
180 icon->CopyFromBitmap(bmp);
181 return icon;
182 }
1fded56b 183
3ef86e32
RD
184 wxIcon* wxIconFromLocation(const wxIconLocation& loc) {
185 wxIcon* icon = new wxIcon(loc);
186 return icon;
187 }
188
b26e2dc4 189 wxCursor* wxPyStockCursor(int id) {
70551f47 190 return new wxCursor(id);
b67a9327
RD
191 }
192
193 wxCursor* wxCursorFromImage(const wxImage& image) {
b67a9327 194 return new wxCursor(image);
1fded56b
RD
195 }
196
197 wxCursor* wxCursorFromBits(PyObject* bits, int width, int height,
198 int hotSpotX=-1, int hotSpotY=-1,
199 PyObject* maskBits=0) {
200 char* bitsbuf;
201 char* maskbuf = NULL;
202 int length;
203 PyString_AsStringAndSize(bits, &bitsbuf, &length);
204 if (maskBits)
205 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
206 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
70551f47
RD
207 }
208 // Alternate 'constructor'
209 wxColour* wxNamedColour(const wxString& colorName) {
210 return new wxColour(colorName);
211 }
65191ae8
RD
212
213class wxPyPen : public wxPen {
214public:
215 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
216 : wxPen(colour, width, style)
217 { m_dash = NULL; }
218 ~wxPyPen() {
219 if (m_dash)
05f30eec 220 delete [] m_dash;
65191ae8
RD
221 }
222
223 void SetDashes(int nb_dashes, const wxDash *dash) {
05f30eec
RD
224 if (m_dash)
225 delete [] m_dash;
65191ae8 226 m_dash = new wxDash[nb_dashes];
05f30eec 227 for (int i=0; i<nb_dashes; i++) {
65191ae8 228 m_dash[i] = dash[i];
05f30eec 229 }
65191ae8
RD
230 wxPen::SetDashes(nb_dashes, m_dash);
231 }
232
233private:
234 wxDash* m_dash;
235};
3bcd5e1c
RD
236
237static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
238 *x1 = dc->MinX();
239 *y1 = dc->MinY();
240 *x2 = dc->MaxX();
241 *y2 = dc->MaxY();
242}
70551f47
RD
243 // Alternate 'constructor'
244 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
245 return new wxMemoryDC(oldDC);
246 }
21f8d7ea
RD
247
248#if 0
70551f47
RD
249extern wxFont * wxNORMAL_FONT;
250extern wxFont * wxSMALL_FONT;
251extern wxFont * wxITALIC_FONT;
252extern wxFont * wxSWISS_FONT;
253extern wxPen * wxRED_PEN;
254extern wxPen * wxCYAN_PEN;
255extern wxPen * wxGREEN_PEN;
256extern wxPen * wxBLACK_PEN;
257extern wxPen * wxWHITE_PEN;
258extern wxPen * wxTRANSPARENT_PEN;
259extern wxPen * wxBLACK_DASHED_PEN;
260extern wxPen * wxGREY_PEN;
261extern wxPen * wxMEDIUM_GREY_PEN;
262extern wxPen * wxLIGHT_GREY_PEN;
263extern wxBrush * wxBLUE_BRUSH;
264extern wxBrush * wxGREEN_BRUSH;
265extern wxBrush * wxWHITE_BRUSH;
266extern wxBrush * wxBLACK_BRUSH;
267extern wxBrush * wxTRANSPARENT_BRUSH;
268extern wxBrush * wxCYAN_BRUSH;
269extern wxBrush * wxRED_BRUSH;
270extern wxBrush * wxGREY_BRUSH;
271extern wxBrush * wxMEDIUM_GREY_BRUSH;
272extern wxBrush * wxLIGHT_GREY_BRUSH;
273extern wxColour * wxBLACK;
274extern wxColour * wxWHITE;
275extern wxColour * wxRED;
276extern wxColour * wxBLUE;
277extern wxColour * wxGREEN;
278extern wxColour * wxCYAN;
279extern wxColour * wxLIGHT_GREY;
280extern wxCursor * wxSTANDARD_CURSOR;
281extern wxCursor * wxHOURGLASS_CURSOR;
282extern wxCursor * wxCROSS_CURSOR;
283extern wxBitmap wxNullBitmap;
284extern wxIcon wxNullIcon;
285extern wxCursor wxNullCursor;
286extern wxPen wxNullPen;
287extern wxBrush wxNullBrush;
288extern wxPalette wxNullPalette;
289extern wxFont wxNullFont;
290extern wxColour wxNullColour;
5e40f9dd
RD
291extern wxFontList * wxTheFontList;
292extern wxPenList * wxThePenList;
65191ae8 293extern wxBrushList * wxTheBrushList;
5e40f9dd 294extern wxColourDatabase * wxTheColourDatabase;
21f8d7ea 295
2d091820
RD
296#endif
297#ifdef __cplusplus
298extern "C" {
21f8d7ea 299#endif
107e4716 300static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
301 PyObject * _resultobj;
302 wxBitmap * _result;
303 int _arg0;
304 int _arg1;
2d091820 305 int _arg2 = (int ) -1;
107e4716 306 char *_kwnames[] = { "width","height","depth", NULL };
70551f47
RD
307 char _ptemp[128];
308
309 self = self;
107e4716 310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 311 return NULL;
ab9bc19b 312{
474c48f9 313 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 314 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
ab9bc19b 315
474c48f9 316 wxPyEndAllowThreads(__tstate);
4dfaa61e 317 if (PyErr_Occurred()) return NULL;
2d091820
RD
318} if (_result) {
319 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
320 _resultobj = Py_BuildValue("s",_ptemp);
321 } else {
322 Py_INCREF(Py_None);
323 _resultobj = Py_None;
324 }
70551f47
RD
325 return _resultobj;
326}
327
fbcadfca
RD
328static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
329 PyObject * _resultobj;
330 wxBitmap * _result;
331 PyObject * _arg0;
332 PyObject * _obj0 = 0;
333 char *_kwnames[] = { "listOfStrings", NULL };
334 char _ptemp[128];
335
336 self = self;
337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
338 return NULL;
339{
340 _arg0 = _obj0;
341}
342{
474c48f9 343 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 344 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
fbcadfca 345
474c48f9 346 wxPyEndAllowThreads(__tstate);
4dfaa61e 347 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
348} if (_result) {
349 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
350 _resultobj = Py_BuildValue("s",_ptemp);
351 } else {
352 Py_INCREF(Py_None);
353 _resultobj = Py_None;
354 }
355 return _resultobj;
356}
357
358static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
359 PyObject * _resultobj;
360 wxBitmap * _result;
361 wxIcon * _arg0;
362 PyObject * _argo0 = 0;
363 char *_kwnames[] = { "icon", NULL };
364 char _ptemp[128];
365
366 self = self;
367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
368 return NULL;
369 if (_argo0) {
b67a9327 370 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
fbcadfca
RD
371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
372 return NULL;
373 }
374 }
375{
474c48f9 376 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 377 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
fbcadfca 378
474c48f9 379 wxPyEndAllowThreads(__tstate);
4dfaa61e 380 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
381} if (_result) {
382 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
383 _resultobj = Py_BuildValue("s",_ptemp);
384 } else {
385 Py_INCREF(Py_None);
386 _resultobj = Py_None;
387 }
388 return _resultobj;
389}
390
9d6da64a
RD
391static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
392 PyObject * _resultobj;
393 wxBitmap * _result;
ba77f390 394 PyObject * _arg0;
9d6da64a
RD
395 int _arg1;
396 int _arg2;
397 int _arg3 = (int ) 1;
ba77f390 398 PyObject * _obj0 = 0;
9d6da64a
RD
399 char *_kwnames[] = { "bits","width","height","depth", NULL };
400 char _ptemp[128];
401
402 self = self;
ba77f390 403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
9d6da64a 404 return NULL;
ba77f390
RD
405{
406 _arg0 = _obj0;
407}
9d6da64a 408{
474c48f9 409 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 410 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
9d6da64a 411
474c48f9 412 wxPyEndAllowThreads(__tstate);
9d6da64a
RD
413 if (PyErr_Occurred()) return NULL;
414} if (_result) {
415 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
416 _resultobj = Py_BuildValue("s",_ptemp);
417 } else {
418 Py_INCREF(Py_None);
419 _resultobj = Py_None;
420 }
421 return _resultobj;
422}
423
107e4716 424static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
425 PyObject * _resultobj;
426 wxMask * _result;
427 wxBitmap * _arg0;
428 wxColour * _arg1;
2d091820 429 PyObject * _argo0 = 0;
f6bcfd97
BP
430 wxColour temp;
431 PyObject * _obj1 = 0;
107e4716 432 char *_kwnames[] = { "bitmap","colour", NULL };
70551f47
RD
433 char _ptemp[128];
434
435 self = self;
f6bcfd97 436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
70551f47 437 return NULL;
2d091820 438 if (_argo0) {
b67a9327 439 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
441 return NULL;
442 }
443 }
f6bcfd97
BP
444{
445 _arg1 = &temp;
446 if (! wxColour_helper(_obj1, &_arg1))
70551f47 447 return NULL;
f6bcfd97 448}
ab9bc19b 449{
474c48f9 450 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 451 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
ab9bc19b 452
474c48f9 453 wxPyEndAllowThreads(__tstate);
4dfaa61e 454 if (PyErr_Occurred()) return NULL;
2d091820
RD
455} if (_result) {
456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
457 _resultobj = Py_BuildValue("s",_ptemp);
458 } else {
459 Py_INCREF(Py_None);
460 _resultobj = Py_None;
461 }
70551f47
RD
462 return _resultobj;
463}
464
fbcadfca
RD
465static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
466 PyObject * _resultobj;
467 wxIcon * _result;
468 char *_kwnames[] = { NULL };
469 char _ptemp[128];
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
473 return NULL;
474{
474c48f9 475 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 476 _result = (wxIcon *)wxEmptyIcon();
fbcadfca 477
474c48f9 478 wxPyEndAllowThreads(__tstate);
4dfaa61e 479 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
480} if (_result) {
481 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
482 _resultobj = Py_BuildValue("s",_ptemp);
483 } else {
484 Py_INCREF(Py_None);
485 _resultobj = Py_None;
486 }
487 return _resultobj;
488}
489
490static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
491 PyObject * _resultobj;
492 wxIcon * _result;
493 PyObject * _arg0;
494 PyObject * _obj0 = 0;
495 char *_kwnames[] = { "listOfStrings", NULL };
496 char _ptemp[128];
497
498 self = self;
499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
500 return NULL;
501{
502 _arg0 = _obj0;
503}
504{
474c48f9 505 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 506 _result = (wxIcon *)wxIconFromXPMData(_arg0);
fbcadfca 507
474c48f9 508 wxPyEndAllowThreads(__tstate);
4dfaa61e 509 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
510} if (_result) {
511 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
512 _resultobj = Py_BuildValue("s",_ptemp);
513 } else {
514 Py_INCREF(Py_None);
515 _resultobj = Py_None;
516 }
517 return _resultobj;
518}
519
4be61064
RD
520static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
521 PyObject * _resultobj;
522 wxIcon * _result;
523 wxBitmap * _arg0;
524 PyObject * _argo0 = 0;
525 char *_kwnames[] = { "bmp", NULL };
526 char _ptemp[128];
527
528 self = self;
529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
530 return NULL;
531 if (_argo0) {
b67a9327 532 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
4be61064
RD
533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
534 return NULL;
535 }
536 }
537{
538 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 539 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
4be61064
RD
540
541 wxPyEndAllowThreads(__tstate);
542 if (PyErr_Occurred()) return NULL;
543} if (_result) {
544 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
545 _resultobj = Py_BuildValue("s",_ptemp);
546 } else {
547 Py_INCREF(Py_None);
548 _resultobj = Py_None;
549 }
550 return _resultobj;
551}
552
3ef86e32
RD
553static PyObject *_wrap_wxIconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
554 PyObject * _resultobj;
555 wxIcon * _result;
556 wxIconLocation * _arg0;
557 PyObject * _argo0 = 0;
558 char *_kwnames[] = { "loc", NULL };
559 char _ptemp[128];
560
561 self = self;
562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromLocation",_kwnames,&_argo0))
563 return NULL;
564 if (_argo0) {
565 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromLocation. Expected _wxIconLocation_p.");
567 return NULL;
568 }
569 }
570{
571 PyThreadState* __tstate = wxPyBeginAllowThreads();
572 _result = (wxIcon *)wxIconFromLocation(*_arg0);
573
574 wxPyEndAllowThreads(__tstate);
575 if (PyErr_Occurred()) return NULL;
576} if (_result) {
577 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
578 _resultobj = Py_BuildValue("s",_ptemp);
579 } else {
580 Py_INCREF(Py_None);
581 _resultobj = Py_None;
582 }
583 return _resultobj;
584}
585
107e4716 586static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
587 PyObject * _resultobj;
588 wxCursor * _result;
589 int _arg0;
107e4716 590 char *_kwnames[] = { "id", NULL };
70551f47
RD
591 char _ptemp[128];
592
593 self = self;
107e4716 594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
70551f47 595 return NULL;
ab9bc19b 596{
474c48f9 597 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 598 _result = (wxCursor *)wxPyStockCursor(_arg0);
ab9bc19b 599
474c48f9 600 wxPyEndAllowThreads(__tstate);
4dfaa61e 601 if (PyErr_Occurred()) return NULL;
2d091820
RD
602} if (_result) {
603 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
604 _resultobj = Py_BuildValue("s",_ptemp);
605 } else {
606 Py_INCREF(Py_None);
607 _resultobj = Py_None;
608 }
70551f47
RD
609 return _resultobj;
610}
611
b67a9327
RD
612static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
613 PyObject * _resultobj;
614 wxCursor * _result;
615 wxImage * _arg0;
616 PyObject * _argo0 = 0;
617 char *_kwnames[] = { "image", NULL };
618 char _ptemp[128];
619
620 self = self;
621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursorFromImage",_kwnames,&_argo0))
622 return NULL;
623 if (_argo0) {
624 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
626 return NULL;
627 }
628 }
629{
630 PyThreadState* __tstate = wxPyBeginAllowThreads();
631 _result = (wxCursor *)wxCursorFromImage(*_arg0);
632
633 wxPyEndAllowThreads(__tstate);
634 if (PyErr_Occurred()) return NULL;
635} if (_result) {
636 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
637 _resultobj = Py_BuildValue("s",_ptemp);
638 } else {
639 Py_INCREF(Py_None);
640 _resultobj = Py_None;
641 }
642 return _resultobj;
643}
644
1fded56b
RD
645static PyObject *_wrap_wxCursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
646 PyObject * _resultobj;
647 wxCursor * _result;
648 PyObject * _arg0;
649 int _arg1;
650 int _arg2;
651 int _arg3 = (int ) -1;
652 int _arg4 = (int ) -1;
653 PyObject * _arg5 = (PyObject *) 0;
654 PyObject * _obj0 = 0;
655 PyObject * _obj5 = 0;
656 char *_kwnames[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL };
657 char _ptemp[128];
658
659 self = self;
660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiO:wxCursorFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
661 return NULL;
662{
663 _arg0 = _obj0;
664}
665 if (_obj5)
666{
667 _arg5 = _obj5;
668}
669{
670 PyThreadState* __tstate = wxPyBeginAllowThreads();
671 _result = (wxCursor *)wxCursorFromBits(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
672
673 wxPyEndAllowThreads(__tstate);
674 if (PyErr_Occurred()) return NULL;
675} if (_result) {
676 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
677 _resultobj = Py_BuildValue("s",_ptemp);
678 } else {
679 Py_INCREF(Py_None);
680 _resultobj = Py_None;
681 }
682 return _resultobj;
683}
684
107e4716 685static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
686 PyObject * _resultobj;
687 wxColour * _result;
688 wxString * _arg0;
689 PyObject * _obj0 = 0;
107e4716 690 char *_kwnames[] = { "colorName", NULL };
70551f47
RD
691 char _ptemp[128];
692
693 self = self;
107e4716 694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
70551f47
RD
695 return NULL;
696{
c8bc7bb8
RD
697 _arg0 = wxString_in_helper(_obj0);
698 if (_arg0 == NULL)
70551f47 699 return NULL;
70551f47 700}
ab9bc19b 701{
474c48f9 702 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 703 _result = (wxColour *)wxNamedColour(*_arg0);
ab9bc19b 704
474c48f9 705 wxPyEndAllowThreads(__tstate);
4dfaa61e 706 if (PyErr_Occurred()) return NULL;
2d091820
RD
707} if (_result) {
708 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
709 _resultobj = Py_BuildValue("s",_ptemp);
710 } else {
711 Py_INCREF(Py_None);
712 _resultobj = Py_None;
713 }
70551f47
RD
714{
715 if (_obj0)
716 delete _arg0;
717}
718 return _resultobj;
719}
720
107e4716 721static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
722 PyObject * _resultobj;
723 wxMemoryDC * _result;
724 wxDC * _arg0;
2d091820 725 PyObject * _argo0 = 0;
107e4716 726 char *_kwnames[] = { "oldDC", NULL };
70551f47
RD
727 char _ptemp[128];
728
729 self = self;
107e4716 730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
70551f47 731 return NULL;
2d091820
RD
732 if (_argo0) {
733 if (_argo0 == Py_None) { _arg0 = NULL; }
734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
736 return NULL;
737 }
738 }
ab9bc19b 739{
474c48f9 740 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 741 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
ab9bc19b 742
474c48f9 743 wxPyEndAllowThreads(__tstate);
4dfaa61e 744 if (PyErr_Occurred()) return NULL;
2d091820
RD
745} if (_result) {
746 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
747 _resultobj = Py_BuildValue("s",_ptemp);
748 } else {
749 Py_INCREF(Py_None);
750 _resultobj = Py_None;
751 }
70551f47
RD
752 return _resultobj;
753}
754
755static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
756
757 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
758 return 1;
759}
760
761static PyObject *_wrap_wxNORMAL_FONT_get() {
762 PyObject * pyobj;
763 char ptemp[128];
764
765 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
766 pyobj = PyString_FromString(ptemp);
767 return pyobj;
768}
769
770static int _wrap_wxSMALL_FONT_set(PyObject *val) {
771
772 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
773 return 1;
774}
775
776static PyObject *_wrap_wxSMALL_FONT_get() {
777 PyObject * pyobj;
778 char ptemp[128];
779
780 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
781 pyobj = PyString_FromString(ptemp);
782 return pyobj;
783}
784
785static int _wrap_wxITALIC_FONT_set(PyObject *val) {
786
787 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
788 return 1;
789}
790
791static PyObject *_wrap_wxITALIC_FONT_get() {
792 PyObject * pyobj;
793 char ptemp[128];
794
795 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
796 pyobj = PyString_FromString(ptemp);
797 return pyobj;
798}
799
800static int _wrap_wxSWISS_FONT_set(PyObject *val) {
801
802 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
803 return 1;
804}
805
806static PyObject *_wrap_wxSWISS_FONT_get() {
807 PyObject * pyobj;
808 char ptemp[128];
809
810 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
811 pyobj = PyString_FromString(ptemp);
812 return pyobj;
813}
814
815static int _wrap_wxRED_PEN_set(PyObject *val) {
816
817 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
818 return 1;
819}
820
821static PyObject *_wrap_wxRED_PEN_get() {
822 PyObject * pyobj;
823 char ptemp[128];
824
825 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
826 pyobj = PyString_FromString(ptemp);
827 return pyobj;
828}
829
830static int _wrap_wxCYAN_PEN_set(PyObject *val) {
831
832 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
833 return 1;
834}
835
836static PyObject *_wrap_wxCYAN_PEN_get() {
837 PyObject * pyobj;
838 char ptemp[128];
839
840 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
841 pyobj = PyString_FromString(ptemp);
842 return pyobj;
843}
844
845static int _wrap_wxGREEN_PEN_set(PyObject *val) {
846
847 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
848 return 1;
849}
850
851static PyObject *_wrap_wxGREEN_PEN_get() {
852 PyObject * pyobj;
853 char ptemp[128];
854
855 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
856 pyobj = PyString_FromString(ptemp);
857 return pyobj;
858}
859
860static int _wrap_wxBLACK_PEN_set(PyObject *val) {
861
862 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
863 return 1;
864}
865
866static PyObject *_wrap_wxBLACK_PEN_get() {
867 PyObject * pyobj;
868 char ptemp[128];
869
870 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
871 pyobj = PyString_FromString(ptemp);
872 return pyobj;
873}
874
875static int _wrap_wxWHITE_PEN_set(PyObject *val) {
876
877 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
878 return 1;
879}
880
881static PyObject *_wrap_wxWHITE_PEN_get() {
882 PyObject * pyobj;
883 char ptemp[128];
884
885 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
886 pyobj = PyString_FromString(ptemp);
887 return pyobj;
888}
889
890static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
891
892 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
893 return 1;
894}
895
896static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
897 PyObject * pyobj;
898 char ptemp[128];
899
900 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
901 pyobj = PyString_FromString(ptemp);
902 return pyobj;
903}
904
905static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
906
907 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
908 return 1;
909}
910
911static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
912 PyObject * pyobj;
913 char ptemp[128];
914
915 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
916 pyobj = PyString_FromString(ptemp);
917 return pyobj;
918}
919
920static int _wrap_wxGREY_PEN_set(PyObject *val) {
921
922 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
923 return 1;
924}
925
926static PyObject *_wrap_wxGREY_PEN_get() {
927 PyObject * pyobj;
928 char ptemp[128];
929
930 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
931 pyobj = PyString_FromString(ptemp);
932 return pyobj;
933}
934
935static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
936
937 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
938 return 1;
939}
940
941static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
942 PyObject * pyobj;
943 char ptemp[128];
944
945 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
946 pyobj = PyString_FromString(ptemp);
947 return pyobj;
948}
949
950static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
951
952 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
953 return 1;
954}
955
956static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
957 PyObject * pyobj;
958 char ptemp[128];
959
960 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
961 pyobj = PyString_FromString(ptemp);
962 return pyobj;
963}
964
965static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
966
967 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
968 return 1;
969}
970
971static PyObject *_wrap_wxBLUE_BRUSH_get() {
972 PyObject * pyobj;
973 char ptemp[128];
974
975 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
976 pyobj = PyString_FromString(ptemp);
977 return pyobj;
978}
979
980static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
981
982 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
983 return 1;
984}
985
986static PyObject *_wrap_wxGREEN_BRUSH_get() {
987 PyObject * pyobj;
988 char ptemp[128];
989
990 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
991 pyobj = PyString_FromString(ptemp);
992 return pyobj;
993}
994
995static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
996
997 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
998 return 1;
999}
1000
1001static PyObject *_wrap_wxWHITE_BRUSH_get() {
1002 PyObject * pyobj;
1003 char ptemp[128];
1004
1005 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
1006 pyobj = PyString_FromString(ptemp);
1007 return pyobj;
1008}
1009
1010static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
1011
1012 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
1013 return 1;
1014}
1015
1016static PyObject *_wrap_wxBLACK_BRUSH_get() {
1017 PyObject * pyobj;
1018 char ptemp[128];
1019
1020 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
1021 pyobj = PyString_FromString(ptemp);
1022 return pyobj;
1023}
1024
1025static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
1026
1027 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
1028 return 1;
1029}
1030
1031static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
1032 PyObject * pyobj;
1033 char ptemp[128];
1034
1035 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
1036 pyobj = PyString_FromString(ptemp);
1037 return pyobj;
1038}
1039
1040static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
1041
1042 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
1043 return 1;
1044}
1045
1046static PyObject *_wrap_wxCYAN_BRUSH_get() {
1047 PyObject * pyobj;
1048 char ptemp[128];
1049
1050 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
1051 pyobj = PyString_FromString(ptemp);
1052 return pyobj;
1053}
1054
1055static int _wrap_wxRED_BRUSH_set(PyObject *val) {
1056
1057 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
1058 return 1;
1059}
1060
1061static PyObject *_wrap_wxRED_BRUSH_get() {
1062 PyObject * pyobj;
1063 char ptemp[128];
1064
1065 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
1066 pyobj = PyString_FromString(ptemp);
1067 return pyobj;
1068}
1069
1070static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
1071
1072 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
1073 return 1;
1074}
1075
1076static PyObject *_wrap_wxGREY_BRUSH_get() {
1077 PyObject * pyobj;
1078 char ptemp[128];
1079
1080 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
1081 pyobj = PyString_FromString(ptemp);
1082 return pyobj;
1083}
1084
1085static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
1086
1087 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
1088 return 1;
1089}
1090
1091static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
1092 PyObject * pyobj;
1093 char ptemp[128];
1094
1095 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
1096 pyobj = PyString_FromString(ptemp);
1097 return pyobj;
1098}
1099
1100static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
1101
1102 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
1103 return 1;
1104}
1105
1106static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
1107 PyObject * pyobj;
1108 char ptemp[128];
1109
1110 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
1111 pyobj = PyString_FromString(ptemp);
1112 return pyobj;
1113}
1114
1115static int _wrap_wxBLACK_set(PyObject *val) {
1116
1117 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
1118 return 1;
1119}
1120
1121static PyObject *_wrap_wxBLACK_get() {
1122 PyObject * pyobj;
1123 char ptemp[128];
1124
1125 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
1126 pyobj = PyString_FromString(ptemp);
1127 return pyobj;
1128}
1129
1130static int _wrap_wxWHITE_set(PyObject *val) {
1131
1132 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1133 return 1;
1134}
1135
1136static PyObject *_wrap_wxWHITE_get() {
1137 PyObject * pyobj;
1138 char ptemp[128];
1139
1140 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1141 pyobj = PyString_FromString(ptemp);
1142 return pyobj;
1143}
1144
1145static int _wrap_wxRED_set(PyObject *val) {
1146
1147 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1148 return 1;
1149}
1150
1151static PyObject *_wrap_wxRED_get() {
1152 PyObject * pyobj;
1153 char ptemp[128];
1154
1155 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1156 pyobj = PyString_FromString(ptemp);
1157 return pyobj;
1158}
1159
1160static int _wrap_wxBLUE_set(PyObject *val) {
1161
1162 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1163 return 1;
1164}
1165
1166static PyObject *_wrap_wxBLUE_get() {
1167 PyObject * pyobj;
1168 char ptemp[128];
1169
1170 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1171 pyobj = PyString_FromString(ptemp);
1172 return pyobj;
1173}
1174
1175static int _wrap_wxGREEN_set(PyObject *val) {
1176
1177 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1178 return 1;
1179}
1180
1181static PyObject *_wrap_wxGREEN_get() {
1182 PyObject * pyobj;
1183 char ptemp[128];
1184
1185 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1186 pyobj = PyString_FromString(ptemp);
1187 return pyobj;
1188}
1189
1190static int _wrap_wxCYAN_set(PyObject *val) {
1191
1192 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1193 return 1;
1194}
1195
1196static PyObject *_wrap_wxCYAN_get() {
1197 PyObject * pyobj;
1198 char ptemp[128];
1199
1200 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1201 pyobj = PyString_FromString(ptemp);
1202 return pyobj;
1203}
1204
1205static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1206
1207 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1208 return 1;
1209}
1210
1211static PyObject *_wrap_wxLIGHT_GREY_get() {
1212 PyObject * pyobj;
1213 char ptemp[128];
1214
1215 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1216 pyobj = PyString_FromString(ptemp);
1217 return pyobj;
1218}
1219
1220static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1221
1222 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1223 return 1;
1224}
1225
1226static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1227 PyObject * pyobj;
1228 char ptemp[128];
1229
1230 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1231 pyobj = PyString_FromString(ptemp);
1232 return pyobj;
1233}
1234
1235static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1236
1237 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1238 return 1;
1239}
1240
1241static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1242 PyObject * pyobj;
1243 char ptemp[128];
1244
1245 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1246 pyobj = PyString_FromString(ptemp);
1247 return pyobj;
1248}
1249
1250static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1251
1252 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1253 return 1;
1254}
1255
1256static PyObject *_wrap_wxCROSS_CURSOR_get() {
1257 PyObject * pyobj;
1258 char ptemp[128];
1259
1260 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1261 pyobj = PyString_FromString(ptemp);
1262 return pyobj;
1263}
1264
1265static int _wrap_wxNullBitmap_set(PyObject *val) {
1266
1267 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1268 return 1;
1269}
1270
1271static PyObject *_wrap_wxNullBitmap_get() {
1272 PyObject * pyobj;
1273 char ptemp[128];
1274
1275 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1276 pyobj = PyString_FromString(ptemp);
1277 return pyobj;
1278}
1279
1280static int _wrap_wxNullIcon_set(PyObject *val) {
1281
1282 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1283 return 1;
1284}
1285
1286static PyObject *_wrap_wxNullIcon_get() {
1287 PyObject * pyobj;
1288 char ptemp[128];
1289
1290 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1291 pyobj = PyString_FromString(ptemp);
1292 return pyobj;
1293}
1294
1295static int _wrap_wxNullCursor_set(PyObject *val) {
1296
1297 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1298 return 1;
1299}
1300
1301static PyObject *_wrap_wxNullCursor_get() {
1302 PyObject * pyobj;
1303 char ptemp[128];
1304
1305 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1306 pyobj = PyString_FromString(ptemp);
1307 return pyobj;
1308}
1309
1310static int _wrap_wxNullPen_set(PyObject *val) {
1311
1312 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1313 return 1;
1314}
1315
1316static PyObject *_wrap_wxNullPen_get() {
1317 PyObject * pyobj;
1318 char ptemp[128];
1319
1320 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1321 pyobj = PyString_FromString(ptemp);
1322 return pyobj;
1323}
1324
1325static int _wrap_wxNullBrush_set(PyObject *val) {
1326
1327 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1328 return 1;
1329}
1330
1331static PyObject *_wrap_wxNullBrush_get() {
1332 PyObject * pyobj;
1333 char ptemp[128];
1334
1335 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1336 pyobj = PyString_FromString(ptemp);
1337 return pyobj;
1338}
1339
1340static int _wrap_wxNullPalette_set(PyObject *val) {
1341
1342 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1343 return 1;
1344}
1345
1346static PyObject *_wrap_wxNullPalette_get() {
1347 PyObject * pyobj;
1348 char ptemp[128];
1349
1350 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1351 pyobj = PyString_FromString(ptemp);
1352 return pyobj;
1353}
1354
1355static int _wrap_wxNullFont_set(PyObject *val) {
1356
1357 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1358 return 1;
1359}
1360
1361static PyObject *_wrap_wxNullFont_get() {
1362 PyObject * pyobj;
1363 char ptemp[128];
1364
1365 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1366 pyobj = PyString_FromString(ptemp);
1367 return pyobj;
1368}
1369
1370static int _wrap_wxNullColour_set(PyObject *val) {
1371
1372 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1373 return 1;
1374}
1375
1376static PyObject *_wrap_wxNullColour_get() {
1377 PyObject * pyobj;
1378 char ptemp[128];
1379
1380 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1381 pyobj = PyString_FromString(ptemp);
1382 return pyobj;
1383}
1384
5e40f9dd
RD
1385static int _wrap_wxTheFontList_set(PyObject *val) {
1386
1387 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1388 return 1;
1389}
1390
1391static PyObject *_wrap_wxTheFontList_get() {
1392 PyObject * pyobj;
1393 char ptemp[128];
1394
1395 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1396 pyobj = PyString_FromString(ptemp);
1397 return pyobj;
1398}
1399
1400static int _wrap_wxThePenList_set(PyObject *val) {
1401
1402 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1403 return 1;
1404}
1405
1406static PyObject *_wrap_wxThePenList_get() {
1407 PyObject * pyobj;
1408 char ptemp[128];
1409
1410 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1411 pyobj = PyString_FromString(ptemp);
1412 return pyobj;
1413}
1414
1415static int _wrap_wxTheBrushList_set(PyObject *val) {
1416
1417 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1418 return 1;
1419}
1420
1421static PyObject *_wrap_wxTheBrushList_get() {
1422 PyObject * pyobj;
1423 char ptemp[128];
1424
65191ae8 1425 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
5e40f9dd
RD
1426 pyobj = PyString_FromString(ptemp);
1427 return pyobj;
1428}
1429
1430static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1431
1432 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1433 return 1;
1434}
1435
1436static PyObject *_wrap_wxTheColourDatabase_get() {
1437 PyObject * pyobj;
1438 char ptemp[128];
1439
1440 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1441 pyobj = PyString_FromString(ptemp);
1442 return pyobj;
1443}
1444
9df61a29
RD
1445static void *SwigwxGDIObjectTowxObject(void *ptr) {
1446 wxGDIObject *src;
1447 wxObject *dest;
1448 src = (wxGDIObject *) ptr;
1449 dest = (wxObject *) src;
1450 return (void *) dest;
1451}
1452
1453#define new_wxGDIObject() (new wxGDIObject())
1454static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject * _resultobj;
1456 wxGDIObject * _result;
1457 char *_kwnames[] = { NULL };
1458 char _ptemp[128];
1459
1460 self = self;
1461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1462 return NULL;
1463{
474c48f9 1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1465 _result = (wxGDIObject *)new_wxGDIObject();
9df61a29 1466
474c48f9 1467 wxPyEndAllowThreads(__tstate);
4dfaa61e 1468 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1469} if (_result) {
1470 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1471 _resultobj = Py_BuildValue("s",_ptemp);
1472 } else {
1473 Py_INCREF(Py_None);
1474 _resultobj = Py_None;
1475 }
1476 return _resultobj;
1477}
1478
1479#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1480static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1481 PyObject * _resultobj;
1482 wxGDIObject * _arg0;
1483 PyObject * _argo0 = 0;
1484 char *_kwnames[] = { "self", NULL };
1485
1486 self = self;
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1488 return NULL;
1489 if (_argo0) {
1490 if (_argo0 == Py_None) { _arg0 = NULL; }
1491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1493 return NULL;
1494 }
1495 }
1496{
474c48f9 1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1498 delete_wxGDIObject(_arg0);
9df61a29 1499
474c48f9 1500 wxPyEndAllowThreads(__tstate);
4dfaa61e 1501 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1502} Py_INCREF(Py_None);
1503 _resultobj = Py_None;
1504 return _resultobj;
1505}
1506
1507#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1508static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1509 PyObject * _resultobj;
1510 bool _result;
1511 wxGDIObject * _arg0;
1512 PyObject * _argo0 = 0;
1513 char *_kwnames[] = { "self", NULL };
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1517 return NULL;
1518 if (_argo0) {
1519 if (_argo0 == Py_None) { _arg0 = NULL; }
1520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1522 return NULL;
1523 }
1524 }
1525{
474c48f9 1526 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1527 _result = (bool )wxGDIObject_GetVisible(_arg0);
9df61a29 1528
474c48f9 1529 wxPyEndAllowThreads(__tstate);
4dfaa61e 1530 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1531} _resultobj = Py_BuildValue("i",_result);
1532 return _resultobj;
1533}
1534
1535#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1536static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1537 PyObject * _resultobj;
1538 wxGDIObject * _arg0;
1539 bool _arg1;
1540 PyObject * _argo0 = 0;
1541 int tempbool1;
1542 char *_kwnames[] = { "self","visible", NULL };
1543
1544 self = self;
1545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1546 return NULL;
1547 if (_argo0) {
1548 if (_argo0 == Py_None) { _arg0 = NULL; }
1549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1551 return NULL;
1552 }
1553 }
1554 _arg1 = (bool ) tempbool1;
1555{
474c48f9 1556 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1557 wxGDIObject_SetVisible(_arg0,_arg1);
9df61a29 1558
474c48f9 1559 wxPyEndAllowThreads(__tstate);
4dfaa61e 1560 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1561} Py_INCREF(Py_None);
1562 _resultobj = Py_None;
1563 return _resultobj;
1564}
1565
1566#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1567static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1568 PyObject * _resultobj;
1569 bool _result;
1570 wxGDIObject * _arg0;
1571 PyObject * _argo0 = 0;
1572 char *_kwnames[] = { "self", NULL };
1573
1574 self = self;
1575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1576 return NULL;
1577 if (_argo0) {
1578 if (_argo0 == Py_None) { _arg0 = NULL; }
1579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1581 return NULL;
1582 }
1583 }
1584{
474c48f9 1585 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1586 _result = (bool )wxGDIObject_IsNull(_arg0);
9df61a29 1587
474c48f9 1588 wxPyEndAllowThreads(__tstate);
4dfaa61e 1589 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1590} _resultobj = Py_BuildValue("i",_result);
1591 return _resultobj;
1592}
1593
1594static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1595 wxBitmap *src;
1596 wxGDIObject *dest;
1597 src = (wxBitmap *) ptr;
1598 dest = (wxGDIObject *) src;
1599 return (void *) dest;
1600}
1601
1602static void *SwigwxBitmapTowxObject(void *ptr) {
1603 wxBitmap *src;
1604 wxObject *dest;
1605 src = (wxBitmap *) ptr;
1606 dest = (wxObject *) src;
1607 return (void *) dest;
1608}
1609
70551f47 1610#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
107e4716 1611static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1612 PyObject * _resultobj;
1613 wxBitmap * _result;
1614 wxString * _arg0;
f0972d1e 1615 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
70551f47 1616 PyObject * _obj0 = 0;
107e4716 1617 char *_kwnames[] = { "name","type", NULL };
70551f47
RD
1618 char _ptemp[128];
1619
1620 self = self;
5c0282d5 1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
70551f47
RD
1622 return NULL;
1623{
c8bc7bb8
RD
1624 _arg0 = wxString_in_helper(_obj0);
1625 if (_arg0 == NULL)
70551f47 1626 return NULL;
70551f47 1627}
ab9bc19b 1628{
474c48f9 1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1630 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
ab9bc19b 1631
474c48f9 1632 wxPyEndAllowThreads(__tstate);
4dfaa61e 1633 if (PyErr_Occurred()) return NULL;
2d091820
RD
1634} if (_result) {
1635 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1636 _resultobj = Py_BuildValue("s",_ptemp);
1637 } else {
1638 Py_INCREF(Py_None);
1639 _resultobj = Py_None;
1640 }
70551f47
RD
1641{
1642 if (_obj0)
1643 delete _arg0;
1644}
1645 return _resultobj;
1646}
1647
1648#define delete_wxBitmap(_swigobj) (delete _swigobj)
107e4716 1649static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1650 PyObject * _resultobj;
1651 wxBitmap * _arg0;
2d091820 1652 PyObject * _argo0 = 0;
107e4716 1653 char *_kwnames[] = { "self", NULL };
70551f47
RD
1654
1655 self = self;
107e4716 1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
70551f47 1657 return NULL;
2d091820
RD
1658 if (_argo0) {
1659 if (_argo0 == Py_None) { _arg0 = NULL; }
1660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1662 return NULL;
1663 }
1664 }
ab9bc19b 1665{
474c48f9 1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1667 delete_wxBitmap(_arg0);
ab9bc19b 1668
474c48f9 1669 wxPyEndAllowThreads(__tstate);
4dfaa61e 1670 if (PyErr_Occurred()) return NULL;
ab9bc19b 1671} Py_INCREF(Py_None);
70551f47
RD
1672 _resultobj = Py_None;
1673 return _resultobj;
1674}
1675
70551f47 1676#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
107e4716 1677static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1678 PyObject * _resultobj;
1679 wxPalette * _result;
1680 wxBitmap * _arg0;
2d091820 1681 PyObject * _argo0 = 0;
107e4716 1682 char *_kwnames[] = { "self", NULL };
70551f47
RD
1683 char _ptemp[128];
1684
1685 self = self;
107e4716 1686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
70551f47 1687 return NULL;
2d091820
RD
1688 if (_argo0) {
1689 if (_argo0 == Py_None) { _arg0 = NULL; }
1690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1692 return NULL;
1693 }
1694 }
ab9bc19b 1695{
474c48f9 1696 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1697 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
ab9bc19b 1698
474c48f9 1699 wxPyEndAllowThreads(__tstate);
4dfaa61e 1700 if (PyErr_Occurred()) return NULL;
2d091820
RD
1701} if (_result) {
1702 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1703 _resultobj = Py_BuildValue("s",_ptemp);
1704 } else {
1705 Py_INCREF(Py_None);
1706 _resultobj = Py_None;
1707 }
70551f47
RD
1708 return _resultobj;
1709}
1710
1711#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
107e4716 1712static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1713 PyObject * _resultobj;
1714 wxMask * _result;
1715 wxBitmap * _arg0;
2d091820 1716 PyObject * _argo0 = 0;
107e4716 1717 char *_kwnames[] = { "self", NULL };
70551f47
RD
1718 char _ptemp[128];
1719
1720 self = self;
107e4716 1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
70551f47 1722 return NULL;
2d091820
RD
1723 if (_argo0) {
1724 if (_argo0 == Py_None) { _arg0 = NULL; }
1725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1727 return NULL;
1728 }
1729 }
ab9bc19b 1730{
474c48f9 1731 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1732 _result = (wxMask *)wxBitmap_GetMask(_arg0);
ab9bc19b 1733
474c48f9 1734 wxPyEndAllowThreads(__tstate);
4dfaa61e 1735 if (PyErr_Occurred()) return NULL;
2d091820
RD
1736} if (_result) {
1737 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1738 _resultobj = Py_BuildValue("s",_ptemp);
1739 } else {
1740 Py_INCREF(Py_None);
1741 _resultobj = Py_None;
1742 }
70551f47
RD
1743 return _resultobj;
1744}
1745
56f5d962
RD
1746#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1747static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1748 PyObject * _resultobj;
56f5d962 1749 bool _result;
70551f47 1750 wxBitmap * _arg0;
56f5d962 1751 wxString * _arg1;
f0972d1e 1752 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
2d091820 1753 PyObject * _argo0 = 0;
56f5d962 1754 PyObject * _obj1 = 0;
5c0282d5 1755 char *_kwnames[] = { "self","name","type", NULL };
70551f47
RD
1756
1757 self = self;
5c0282d5 1758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 1759 return NULL;
2d091820
RD
1760 if (_argo0) {
1761 if (_argo0 == Py_None) { _arg0 = NULL; }
1762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
70551f47
RD
1764 return NULL;
1765 }
1766 }
56f5d962 1767{
c8bc7bb8
RD
1768 _arg1 = wxString_in_helper(_obj1);
1769 if (_arg1 == NULL)
56f5d962 1770 return NULL;
56f5d962 1771}
ab9bc19b 1772{
474c48f9 1773 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1774 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 1775
474c48f9 1776 wxPyEndAllowThreads(__tstate);
4dfaa61e 1777 if (PyErr_Occurred()) return NULL;
ab9bc19b 1778} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
1779{
1780 if (_obj1)
1781 delete _arg1;
1782}
70551f47
RD
1783 return _resultobj;
1784}
1785
56f5d962
RD
1786#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1787static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1788 PyObject * _resultobj;
1789 bool _result;
1790 wxBitmap * _arg0;
1791 wxString * _arg1;
5c0282d5 1792 wxBitmapType _arg2;
56f5d962 1793 wxPalette * _arg3 = (wxPalette *) NULL;
2d091820 1794 PyObject * _argo0 = 0;
70551f47 1795 PyObject * _obj1 = 0;
56f5d962
RD
1796 PyObject * _argo3 = 0;
1797 char *_kwnames[] = { "self","name","type","palette", NULL };
70551f47
RD
1798
1799 self = self;
56f5d962 1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
70551f47 1801 return NULL;
2d091820
RD
1802 if (_argo0) {
1803 if (_argo0 == Py_None) { _arg0 = NULL; }
1804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
70551f47
RD
1806 return NULL;
1807 }
1808 }
1809{
c8bc7bb8
RD
1810 _arg1 = wxString_in_helper(_obj1);
1811 if (_arg1 == NULL)
2cd2fac8 1812 return NULL;
70551f47 1813}
56f5d962
RD
1814 if (_argo3) {
1815 if (_argo3 == Py_None) { _arg3 = NULL; }
1816 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1817 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1818 return NULL;
1819 }
1820 }
ab9bc19b 1821{
474c48f9 1822 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1823 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1824
474c48f9 1825 wxPyEndAllowThreads(__tstate);
4dfaa61e 1826 if (PyErr_Occurred()) return NULL;
ab9bc19b 1827} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1828{
1829 if (_obj1)
1830 delete _arg1;
1831}
1832 return _resultobj;
1833}
1834
56f5d962
RD
1835#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1836static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1837 PyObject * _resultobj;
1838 wxBitmap * _arg0;
1839 wxMask * _arg1;
1840 PyObject * _argo0 = 0;
1841 PyObject * _argo1 = 0;
1842 char *_kwnames[] = { "self","mask", NULL };
1843
1844 self = self;
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1846 return NULL;
1847 if (_argo0) {
1848 if (_argo0 == Py_None) { _arg0 = NULL; }
1849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1851 return NULL;
1852 }
1853 }
1854 if (_argo1) {
1855 if (_argo1 == Py_None) { _arg1 = NULL; }
1856 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1857 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1858 return NULL;
1859 }
1860 }
1861{
474c48f9 1862 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1863 wxBitmap_SetMask(_arg0,_arg1);
56f5d962 1864
474c48f9 1865 wxPyEndAllowThreads(__tstate);
4dfaa61e 1866 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1867} Py_INCREF(Py_None);
1868 _resultobj = Py_None;
1869 return _resultobj;
1870}
1871
70551f47 1872#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
107e4716 1873static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1874 PyObject * _resultobj;
1875 bool _result;
1876 wxBitmap * _arg0;
2d091820 1877 PyObject * _argo0 = 0;
107e4716 1878 char *_kwnames[] = { "self", NULL };
70551f47
RD
1879
1880 self = self;
107e4716 1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
70551f47 1882 return NULL;
2d091820
RD
1883 if (_argo0) {
1884 if (_argo0 == Py_None) { _arg0 = NULL; }
1885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1887 return NULL;
1888 }
1889 }
ab9bc19b 1890{
474c48f9 1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1892 _result = (bool )wxBitmap_Ok(_arg0);
ab9bc19b 1893
474c48f9 1894 wxPyEndAllowThreads(__tstate);
4dfaa61e 1895 if (PyErr_Occurred()) return NULL;
ab9bc19b 1896} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1897 return _resultobj;
1898}
1899
56f5d962
RD
1900#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1901static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1902 PyObject * _resultobj;
56f5d962 1903 int _result;
70551f47 1904 wxBitmap * _arg0;
2d091820 1905 PyObject * _argo0 = 0;
56f5d962 1906 char *_kwnames[] = { "self", NULL };
70551f47
RD
1907
1908 self = self;
56f5d962 1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
70551f47 1910 return NULL;
2d091820
RD
1911 if (_argo0) {
1912 if (_argo0 == Py_None) { _arg0 = NULL; }
1913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
70551f47
RD
1915 return NULL;
1916 }
1917 }
1918{
474c48f9 1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1920 _result = (int )wxBitmap_GetWidth(_arg0);
56f5d962 1921
474c48f9 1922 wxPyEndAllowThreads(__tstate);
4dfaa61e 1923 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1924} _resultobj = Py_BuildValue("i",_result);
1925 return _resultobj;
70551f47 1926}
56f5d962
RD
1927
1928#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1929static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 int _result;
1932 wxBitmap * _arg0;
1933 PyObject * _argo0 = 0;
1934 char *_kwnames[] = { "self", NULL };
1935
1936 self = self;
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1938 return NULL;
1939 if (_argo0) {
1940 if (_argo0 == Py_None) { _arg0 = NULL; }
1941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
70551f47
RD
1943 return NULL;
1944 }
1945 }
ab9bc19b 1946{
474c48f9 1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1948 _result = (int )wxBitmap_GetHeight(_arg0);
ab9bc19b 1949
474c48f9 1950 wxPyEndAllowThreads(__tstate);
4dfaa61e 1951 if (PyErr_Occurred()) return NULL;
ab9bc19b 1952} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1953 return _resultobj;
1954}
1955
56f5d962
RD
1956#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1957static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1958 PyObject * _resultobj;
56f5d962 1959 int _result;
70551f47 1960 wxBitmap * _arg0;
2d091820 1961 PyObject * _argo0 = 0;
56f5d962 1962 char *_kwnames[] = { "self", NULL };
70551f47
RD
1963
1964 self = self;
56f5d962 1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
70551f47 1966 return NULL;
2d091820
RD
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
70551f47
RD
1971 return NULL;
1972 }
1973 }
ab9bc19b 1974{
474c48f9 1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1976 _result = (int )wxBitmap_GetDepth(_arg0);
ab9bc19b 1977
474c48f9 1978 wxPyEndAllowThreads(__tstate);
4dfaa61e 1979 if (PyErr_Occurred()) return NULL;
56f5d962 1980} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1981 return _resultobj;
1982}
1983
56f5d962
RD
1984#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1985static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1986 PyObject * _resultobj;
1987 wxBitmap * _arg0;
1988 int _arg1;
2d091820 1989 PyObject * _argo0 = 0;
56f5d962 1990 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
1991
1992 self = self;
56f5d962 1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 1994 return NULL;
2d091820
RD
1995 if (_argo0) {
1996 if (_argo0 == Py_None) { _arg0 = NULL; }
1997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
70551f47
RD
1999 return NULL;
2000 }
2001 }
ab9bc19b 2002{
474c48f9 2003 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2004 wxBitmap_SetWidth(_arg0,_arg1);
ab9bc19b 2005
474c48f9 2006 wxPyEndAllowThreads(__tstate);
4dfaa61e 2007 if (PyErr_Occurred()) return NULL;
ab9bc19b 2008} Py_INCREF(Py_None);
70551f47
RD
2009 _resultobj = Py_None;
2010 return _resultobj;
2011}
2012
56f5d962
RD
2013#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2014static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2015 PyObject * _resultobj;
2016 wxBitmap * _arg0;
56f5d962 2017 int _arg1;
2d091820 2018 PyObject * _argo0 = 0;
56f5d962 2019 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2020
2021 self = self;
56f5d962 2022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2023 return NULL;
2d091820
RD
2024 if (_argo0) {
2025 if (_argo0 == Py_None) { _arg0 = NULL; }
2026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 2027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
70551f47
RD
2028 return NULL;
2029 }
2030 }
ab9bc19b 2031{
474c48f9 2032 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2033 wxBitmap_SetHeight(_arg0,_arg1);
ab9bc19b 2034
474c48f9 2035 wxPyEndAllowThreads(__tstate);
4dfaa61e 2036 if (PyErr_Occurred()) return NULL;
ab9bc19b 2037} Py_INCREF(Py_None);
70551f47
RD
2038 _resultobj = Py_None;
2039 return _resultobj;
2040}
2041
56f5d962
RD
2042#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2043static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2044 PyObject * _resultobj;
2045 wxBitmap * _arg0;
2046 int _arg1;
2d091820 2047 PyObject * _argo0 = 0;
56f5d962 2048 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2049
2050 self = self;
56f5d962 2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2052 return NULL;
2d091820
RD
2053 if (_argo0) {
2054 if (_argo0 == Py_None) { _arg0 = NULL; }
2055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 2056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
70551f47
RD
2057 return NULL;
2058 }
2059 }
ab9bc19b 2060{
474c48f9 2061 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2062 wxBitmap_SetDepth(_arg0,_arg1);
ab9bc19b 2063
474c48f9 2064 wxPyEndAllowThreads(__tstate);
4dfaa61e 2065 if (PyErr_Occurred()) return NULL;
ab9bc19b 2066} Py_INCREF(Py_None);
70551f47
RD
2067 _resultobj = Py_None;
2068 return _resultobj;
2069}
2070
f6bcfd97
BP
2071#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2072static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject * _resultobj;
2074 wxBitmap * _result;
2075 wxBitmap * _arg0;
2076 wxRect * _arg1;
2077 PyObject * _argo0 = 0;
2078 wxRect temp;
2079 PyObject * _obj1 = 0;
2080 char *_kwnames[] = { "self","rect", NULL };
2081 char _ptemp[128];
2082
2083 self = self;
2084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2085 return NULL;
2086 if (_argo0) {
2087 if (_argo0 == Py_None) { _arg0 = NULL; }
2088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2090 return NULL;
2091 }
2092 }
2093{
2094 _arg1 = &temp;
2095 if (! wxRect_helper(_obj1, &_arg1))
2096 return NULL;
2097}
2098{
474c48f9 2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2100 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
f6bcfd97 2101
474c48f9 2102 wxPyEndAllowThreads(__tstate);
4dfaa61e 2103 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2104} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2105 _resultobj = Py_BuildValue("s",_ptemp);
2106 return _resultobj;
2107}
2108
65191ae8
RD
2109#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2110static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2111 PyObject * _resultobj;
2112 bool _result;
2113 wxBitmap * _arg0;
2114 wxIcon * _arg1;
2115 PyObject * _argo0 = 0;
2116 PyObject * _argo1 = 0;
2117 char *_kwnames[] = { "self","icon", NULL };
2118
2119 self = self;
2120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2121 return NULL;
2122 if (_argo0) {
2123 if (_argo0 == Py_None) { _arg0 = NULL; }
2124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2126 return NULL;
2127 }
2128 }
2129 if (_argo1) {
b67a9327 2130 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
65191ae8
RD
2131 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2132 return NULL;
2133 }
2134 }
2135{
474c48f9 2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2137 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
65191ae8 2138
474c48f9 2139 wxPyEndAllowThreads(__tstate);
65191ae8
RD
2140 if (PyErr_Occurred()) return NULL;
2141} _resultobj = Py_BuildValue("i",_result);
2142 return _resultobj;
2143}
2144
9df61a29
RD
2145static void *SwigwxMaskTowxObject(void *ptr) {
2146 wxMask *src;
2147 wxObject *dest;
2148 src = (wxMask *) ptr;
2149 dest = (wxObject *) src;
2150 return (void *) dest;
2151}
2152
70551f47 2153#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
107e4716 2154static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2155 PyObject * _resultobj;
2156 wxMask * _result;
2157 wxBitmap * _arg0;
2d091820 2158 PyObject * _argo0 = 0;
107e4716 2159 char *_kwnames[] = { "bitmap", NULL };
70551f47
RD
2160 char _ptemp[128];
2161
2162 self = self;
107e4716 2163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
70551f47 2164 return NULL;
2d091820 2165 if (_argo0) {
b67a9327 2166 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
2167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2168 return NULL;
2169 }
2170 }
ab9bc19b 2171{
474c48f9 2172 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2173 _result = (wxMask *)new_wxMask(*_arg0);
ab9bc19b 2174
474c48f9 2175 wxPyEndAllowThreads(__tstate);
4dfaa61e 2176 if (PyErr_Occurred()) return NULL;
2d091820
RD
2177} if (_result) {
2178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2179 _resultobj = Py_BuildValue("s",_ptemp);
2180 } else {
2181 Py_INCREF(Py_None);
2182 _resultobj = Py_None;
2183 }
70551f47
RD
2184 return _resultobj;
2185}
2186
fbcadfca
RD
2187static void wxMask_Destroy(wxMask *self) { delete self; }
2188static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2189 PyObject * _resultobj;
2190 wxMask * _arg0;
2191 PyObject * _argo0 = 0;
2192 char *_kwnames[] = { "self", NULL };
2193
2194 self = self;
2195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2196 return NULL;
2197 if (_argo0) {
2198 if (_argo0 == Py_None) { _arg0 = NULL; }
2199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2201 return NULL;
2202 }
2203 }
2204{
474c48f9 2205 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2206 wxMask_Destroy(_arg0);
fbcadfca 2207
474c48f9 2208 wxPyEndAllowThreads(__tstate);
4dfaa61e 2209 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2210} Py_INCREF(Py_None);
2211 _resultobj = Py_None;
2212 return _resultobj;
2213}
2214
9df61a29
RD
2215static void *SwigwxIconTowxGDIObject(void *ptr) {
2216 wxIcon *src;
2217 wxGDIObject *dest;
2218 src = (wxIcon *) ptr;
2219 dest = (wxGDIObject *) src;
2220 return (void *) dest;
2221}
2222
2223static void *SwigwxIconTowxObject(void *ptr) {
2224 wxIcon *src;
2225 wxObject *dest;
2226 src = (wxIcon *) ptr;
2227 dest = (wxObject *) src;
2228 return (void *) dest;
2229}
2230
8bf5d46e 2231#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 2232static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
2233 PyObject * _resultobj;
2234 wxIcon * _result;
2235 wxString * _arg0;
2236 long _arg1;
2d091820
RD
2237 int _arg2 = (int ) -1;
2238 int _arg3 = (int ) -1;
8bf5d46e 2239 PyObject * _obj0 = 0;
107e4716 2240 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
8bf5d46e
RD
2241 char _ptemp[128];
2242
2243 self = self;
107e4716 2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
8bf5d46e
RD
2245 return NULL;
2246{
c8bc7bb8
RD
2247 _arg0 = wxString_in_helper(_obj0);
2248 if (_arg0 == NULL)
8bf5d46e 2249 return NULL;
8bf5d46e
RD
2250}
2251{
474c48f9 2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2253 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
8bf5d46e 2254
474c48f9 2255 wxPyEndAllowThreads(__tstate);
4dfaa61e 2256 if (PyErr_Occurred()) return NULL;
2d091820
RD
2257} if (_result) {
2258 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2259 _resultobj = Py_BuildValue("s",_ptemp);
2260 } else {
2261 Py_INCREF(Py_None);
2262 _resultobj = Py_None;
2263 }
8bf5d46e
RD
2264{
2265 if (_obj0)
2266 delete _arg0;
2267}
2268 return _resultobj;
2269}
2270
70551f47 2271#define delete_wxIcon(_swigobj) (delete _swigobj)
107e4716 2272static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2273 PyObject * _resultobj;
2274 wxIcon * _arg0;
2d091820 2275 PyObject * _argo0 = 0;
107e4716 2276 char *_kwnames[] = { "self", NULL };
70551f47
RD
2277
2278 self = self;
107e4716 2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
70551f47 2280 return NULL;
2d091820
RD
2281 if (_argo0) {
2282 if (_argo0 == Py_None) { _arg0 = NULL; }
2283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2285 return NULL;
2286 }
2287 }
ab9bc19b 2288{
474c48f9 2289 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2290 delete_wxIcon(_arg0);
ab9bc19b 2291
474c48f9 2292 wxPyEndAllowThreads(__tstate);
4dfaa61e 2293 if (PyErr_Occurred()) return NULL;
ab9bc19b 2294} Py_INCREF(Py_None);
70551f47
RD
2295 _resultobj = Py_None;
2296 return _resultobj;
2297}
2298
56f5d962
RD
2299#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2300static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2301 PyObject * _resultobj;
56f5d962 2302 bool _result;
70551f47 2303 wxIcon * _arg0;
56f5d962
RD
2304 wxString * _arg1;
2305 long _arg2;
2d091820 2306 PyObject * _argo0 = 0;
56f5d962
RD
2307 PyObject * _obj1 = 0;
2308 char *_kwnames[] = { "self","name","flags", NULL };
70551f47
RD
2309
2310 self = self;
56f5d962 2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 2312 return NULL;
2d091820
RD
2313 if (_argo0) {
2314 if (_argo0 == Py_None) { _arg0 = NULL; }
2315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
70551f47
RD
2317 return NULL;
2318 }
2319 }
56f5d962 2320{
c8bc7bb8
RD
2321 _arg1 = wxString_in_helper(_obj1);
2322 if (_arg1 == NULL)
2cd2fac8 2323 return NULL;
56f5d962 2324}
ab9bc19b 2325{
474c48f9 2326 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2327 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 2328
474c48f9 2329 wxPyEndAllowThreads(__tstate);
4dfaa61e 2330 if (PyErr_Occurred()) return NULL;
ab9bc19b 2331} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
2332{
2333 if (_obj1)
2334 delete _arg1;
2335}
70551f47
RD
2336 return _resultobj;
2337}
2338
56f5d962
RD
2339#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2340static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2341 PyObject * _resultobj;
56f5d962 2342 bool _result;
70551f47 2343 wxIcon * _arg0;
2d091820 2344 PyObject * _argo0 = 0;
107e4716 2345 char *_kwnames[] = { "self", NULL };
70551f47
RD
2346
2347 self = self;
56f5d962 2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
70551f47 2349 return NULL;
2d091820
RD
2350 if (_argo0) {
2351 if (_argo0 == Py_None) { _arg0 = NULL; }
2352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
70551f47
RD
2354 return NULL;
2355 }
2356 }
ab9bc19b 2357{
474c48f9 2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2359 _result = (bool )wxIcon_Ok(_arg0);
ab9bc19b 2360
474c48f9 2361 wxPyEndAllowThreads(__tstate);
4dfaa61e 2362 if (PyErr_Occurred()) return NULL;
ab9bc19b 2363} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2364 return _resultobj;
2365}
2366
2367#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2368static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2369 PyObject * _resultobj;
2370 int _result;
2371 wxIcon * _arg0;
2d091820 2372 PyObject * _argo0 = 0;
107e4716 2373 char *_kwnames[] = { "self", NULL };
70551f47
RD
2374
2375 self = self;
107e4716 2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
70551f47 2377 return NULL;
2d091820
RD
2378 if (_argo0) {
2379 if (_argo0 == Py_None) { _arg0 = NULL; }
2380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2382 return NULL;
2383 }
2384 }
ab9bc19b 2385{
474c48f9 2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2387 _result = (int )wxIcon_GetWidth(_arg0);
ab9bc19b 2388
474c48f9 2389 wxPyEndAllowThreads(__tstate);
4dfaa61e 2390 if (PyErr_Occurred()) return NULL;
ab9bc19b 2391} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2392 return _resultobj;
2393}
2394
56f5d962
RD
2395#define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2396static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2397 PyObject * _resultobj;
56f5d962 2398 int _result;
70551f47 2399 wxIcon * _arg0;
2d091820 2400 PyObject * _argo0 = 0;
56f5d962 2401 char *_kwnames[] = { "self", NULL };
70551f47
RD
2402
2403 self = self;
56f5d962 2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
70551f47 2405 return NULL;
2d091820
RD
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
70551f47
RD
2410 return NULL;
2411 }
2412 }
ab9bc19b 2413{
474c48f9 2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2415 _result = (int )wxIcon_GetHeight(_arg0);
ab9bc19b 2416
474c48f9 2417 wxPyEndAllowThreads(__tstate);
4dfaa61e 2418 if (PyErr_Occurred()) return NULL;
ab9bc19b 2419} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2420 return _resultobj;
2421}
2422
56f5d962
RD
2423#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2424static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2425 PyObject * _resultobj;
56f5d962 2426 int _result;
70551f47 2427 wxIcon * _arg0;
2d091820 2428 PyObject * _argo0 = 0;
107e4716 2429 char *_kwnames[] = { "self", NULL };
70551f47
RD
2430
2431 self = self;
56f5d962 2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
70551f47 2433 return NULL;
2d091820
RD
2434 if (_argo0) {
2435 if (_argo0 == Py_None) { _arg0 = NULL; }
2436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
70551f47
RD
2438 return NULL;
2439 }
2440 }
ab9bc19b 2441{
474c48f9 2442 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2443 _result = (int )wxIcon_GetDepth(_arg0);
ab9bc19b 2444
474c48f9 2445 wxPyEndAllowThreads(__tstate);
4dfaa61e 2446 if (PyErr_Occurred()) return NULL;
ab9bc19b 2447} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2448 return _resultobj;
2449}
2450
56f5d962
RD
2451#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2452static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2453 PyObject * _resultobj;
2454 wxIcon * _arg0;
2455 int _arg1;
2d091820 2456 PyObject * _argo0 = 0;
56f5d962 2457 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
2458
2459 self = self;
56f5d962 2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 2461 return NULL;
2d091820
RD
2462 if (_argo0) {
2463 if (_argo0 == Py_None) { _arg0 = NULL; }
2464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
70551f47
RD
2466 return NULL;
2467 }
2468 }
ab9bc19b 2469{
474c48f9 2470 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2471 wxIcon_SetWidth(_arg0,_arg1);
ab9bc19b 2472
474c48f9 2473 wxPyEndAllowThreads(__tstate);
4dfaa61e 2474 if (PyErr_Occurred()) return NULL;
ab9bc19b 2475} Py_INCREF(Py_None);
70551f47
RD
2476 _resultobj = Py_None;
2477 return _resultobj;
2478}
2479
2480#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
107e4716 2481static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2482 PyObject * _resultobj;
2483 wxIcon * _arg0;
2484 int _arg1;
2d091820 2485 PyObject * _argo0 = 0;
56f5d962 2486 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2487
2488 self = self;
107e4716 2489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2490 return NULL;
2d091820
RD
2491 if (_argo0) {
2492 if (_argo0 == Py_None) { _arg0 = NULL; }
2493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2495 return NULL;
2496 }
2497 }
ab9bc19b 2498{
474c48f9 2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2500 wxIcon_SetHeight(_arg0,_arg1);
ab9bc19b 2501
474c48f9 2502 wxPyEndAllowThreads(__tstate);
4dfaa61e 2503 if (PyErr_Occurred()) return NULL;
ab9bc19b 2504} Py_INCREF(Py_None);
70551f47
RD
2505 _resultobj = Py_None;
2506 return _resultobj;
2507}
2508
56f5d962
RD
2509#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2510static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2511 PyObject * _resultobj;
2512 wxIcon * _arg0;
2513 int _arg1;
2d091820 2514 PyObject * _argo0 = 0;
56f5d962 2515 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2516
2517 self = self;
56f5d962 2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2519 return NULL;
2d091820
RD
2520 if (_argo0) {
2521 if (_argo0 == Py_None) { _arg0 = NULL; }
2522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
70551f47
RD
2524 return NULL;
2525 }
2526 }
ab9bc19b 2527{
474c48f9 2528 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2529 wxIcon_SetDepth(_arg0,_arg1);
ab9bc19b 2530
474c48f9 2531 wxPyEndAllowThreads(__tstate);
4dfaa61e 2532 if (PyErr_Occurred()) return NULL;
ab9bc19b 2533} Py_INCREF(Py_None);
70551f47
RD
2534 _resultobj = Py_None;
2535 return _resultobj;
2536}
2537
fbcadfca
RD
2538#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2539static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2540 PyObject * _resultobj;
2541 wxIcon * _arg0;
2542 wxBitmap * _arg1;
2543 PyObject * _argo0 = 0;
2544 PyObject * _argo1 = 0;
2545 char *_kwnames[] = { "self","bmp", NULL };
2546
2547 self = self;
2548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2549 return NULL;
2550 if (_argo0) {
2551 if (_argo0 == Py_None) { _arg0 = NULL; }
2552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2554 return NULL;
2555 }
2556 }
2557 if (_argo1) {
b67a9327 2558 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
fbcadfca
RD
2559 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2560 return NULL;
2561 }
2562 }
2563{
474c48f9 2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2565 wxIcon_CopyFromBitmap(_arg0,*_arg1);
fbcadfca 2566
474c48f9 2567 wxPyEndAllowThreads(__tstate);
4dfaa61e 2568 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2569} Py_INCREF(Py_None);
2570 _resultobj = Py_None;
2571 return _resultobj;
2572}
2573
3ef86e32
RD
2574static wxIconLocation *new_wxIconLocation(const wxString *filename,int num) {
2575#ifdef __WXMSW__
2576 return new wxIconLocation(*filename, num);
2577#else
2578 return new wxIconLocation(*filename);
2579#endif
2580 }
2581
2582static PyObject *_wrap_new_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2583 PyObject * _resultobj;
2584 wxIconLocation * _result;
2585 wxString * _arg0 = (wxString *) &wxPyEmptyString;
2586 int _arg1 = (int ) 0;
2587 PyObject * _obj0 = 0;
2588 char *_kwnames[] = { "filename","num", NULL };
2589 char _ptemp[128];
2590
2591 self = self;
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxIconLocation",_kwnames,&_obj0,&_arg1))
2593 return NULL;
2594 if (_obj0)
2595{
2596 _arg0 = wxString_in_helper(_obj0);
2597 if (_arg0 == NULL)
2598 return NULL;
2599}
2600{
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 _result = (wxIconLocation *)new_wxIconLocation(_arg0,_arg1);
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) return NULL;
2606} if (_result) {
2607 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconLocation_p");
2608 _resultobj = Py_BuildValue("s",_ptemp);
2609 } else {
2610 Py_INCREF(Py_None);
2611 _resultobj = Py_None;
2612 }
2613{
2614 if (_obj0)
2615 delete _arg0;
2616}
2617 return _resultobj;
2618}
2619
2620#define delete_wxIconLocation(_swigobj) (delete _swigobj)
2621static PyObject *_wrap_delete_wxIconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject * _resultobj;
2623 wxIconLocation * _arg0;
2624 PyObject * _argo0 = 0;
2625 char *_kwnames[] = { "self", NULL };
2626
2627 self = self;
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconLocation",_kwnames,&_argo0))
2629 return NULL;
2630 if (_argo0) {
2631 if (_argo0 == Py_None) { _arg0 = NULL; }
2632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconLocation. Expected _wxIconLocation_p.");
2634 return NULL;
2635 }
2636 }
2637{
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 delete_wxIconLocation(_arg0);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) return NULL;
2643} Py_INCREF(Py_None);
2644 _resultobj = Py_None;
2645 return _resultobj;
2646}
2647
2648#define wxIconLocation_IsOk(_swigobj) (_swigobj->IsOk())
2649static PyObject *_wrap_wxIconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject * _resultobj;
2651 bool _result;
2652 wxIconLocation * _arg0;
2653 PyObject * _argo0 = 0;
2654 char *_kwnames[] = { "self", NULL };
2655
2656 self = self;
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_IsOk",_kwnames,&_argo0))
2658 return NULL;
2659 if (_argo0) {
2660 if (_argo0 == Py_None) { _arg0 = NULL; }
2661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_IsOk. Expected _wxIconLocation_p.");
2663 return NULL;
2664 }
2665 }
2666{
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
2668 _result = (bool )wxIconLocation_IsOk(_arg0);
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) return NULL;
2672} _resultobj = Py_BuildValue("i",_result);
2673 return _resultobj;
2674}
2675
2676#define wxIconLocation_SetFileName(_swigobj,_swigarg0) (_swigobj->SetFileName(_swigarg0))
2677static PyObject *_wrap_wxIconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
2678 PyObject * _resultobj;
2679 wxIconLocation * _arg0;
2680 wxString * _arg1;
2681 PyObject * _argo0 = 0;
2682 PyObject * _obj1 = 0;
2683 char *_kwnames[] = { "self","filename", NULL };
2684
2685 self = self;
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconLocation_SetFileName",_kwnames,&_argo0,&_obj1))
2687 return NULL;
2688 if (_argo0) {
2689 if (_argo0 == Py_None) { _arg0 = NULL; }
2690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetFileName. Expected _wxIconLocation_p.");
2692 return NULL;
2693 }
2694 }
2695{
2696 _arg1 = wxString_in_helper(_obj1);
2697 if (_arg1 == NULL)
2698 return NULL;
2699}
2700{
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 wxIconLocation_SetFileName(_arg0,*_arg1);
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) return NULL;
2706} Py_INCREF(Py_None);
2707 _resultobj = Py_None;
2708{
2709 if (_obj1)
2710 delete _arg1;
2711}
2712 return _resultobj;
2713}
2714
2715#define wxIconLocation_GetFileName(_swigobj) (_swigobj->GetFileName())
2716static PyObject *_wrap_wxIconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
2717 PyObject * _resultobj;
2718 wxString * _result;
2719 wxIconLocation * _arg0;
2720 PyObject * _argo0 = 0;
2721 char *_kwnames[] = { "self", NULL };
2722
2723 self = self;
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetFileName",_kwnames,&_argo0))
2725 return NULL;
2726 if (_argo0) {
2727 if (_argo0 == Py_None) { _arg0 = NULL; }
2728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetFileName. Expected _wxIconLocation_p.");
2730 return NULL;
2731 }
2732 }
2733{
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 const wxString & _result_ref = wxIconLocation_GetFileName(_arg0);
2736 _result = (wxString *) &_result_ref;
2737
2738 wxPyEndAllowThreads(__tstate);
2739 if (PyErr_Occurred()) return NULL;
2740}{
2741#if wxUSE_UNICODE
2742 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2743#else
2744 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2745#endif
2746}
2747 return _resultobj;
2748}
2749
2750static void wxIconLocation_SetIndex(wxIconLocation *self,int num) {
2751#ifdef __WXMSW__
2752 self->SetIndex(num);
2753#else
2754 // do nothing
2755#endif
2756 }
2757static PyObject *_wrap_wxIconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2758 PyObject * _resultobj;
2759 wxIconLocation * _arg0;
2760 int _arg1;
2761 PyObject * _argo0 = 0;
2762 char *_kwnames[] = { "self","num", NULL };
2763
2764 self = self;
2765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIconLocation_SetIndex",_kwnames,&_argo0,&_arg1))
2766 return NULL;
2767 if (_argo0) {
2768 if (_argo0 == Py_None) { _arg0 = NULL; }
2769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_SetIndex. Expected _wxIconLocation_p.");
2771 return NULL;
2772 }
2773 }
2774{
2775 PyThreadState* __tstate = wxPyBeginAllowThreads();
2776 wxIconLocation_SetIndex(_arg0,_arg1);
2777
2778 wxPyEndAllowThreads(__tstate);
2779 if (PyErr_Occurred()) return NULL;
2780} Py_INCREF(Py_None);
2781 _resultobj = Py_None;
2782 return _resultobj;
2783}
2784
2785static int wxIconLocation_GetIndex(wxIconLocation *self) {
2786#ifdef __WXMSW__
2787 return self->GetIndex();
2788#else
2789 return -1;
2790#endif
2791 }
2792static PyObject *_wrap_wxIconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject * _resultobj;
2794 int _result;
2795 wxIconLocation * _arg0;
2796 PyObject * _argo0 = 0;
2797 char *_kwnames[] = { "self", NULL };
2798
2799 self = self;
2800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconLocation_GetIndex",_kwnames,&_argo0))
2801 return NULL;
2802 if (_argo0) {
2803 if (_argo0 == Py_None) { _arg0 = NULL; }
2804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconLocation_p")) {
2805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconLocation_GetIndex. Expected _wxIconLocation_p.");
2806 return NULL;
2807 }
2808 }
2809{
2810 PyThreadState* __tstate = wxPyBeginAllowThreads();
2811 _result = (int )wxIconLocation_GetIndex(_arg0);
2812
2813 wxPyEndAllowThreads(__tstate);
2814 if (PyErr_Occurred()) return NULL;
2815} _resultobj = Py_BuildValue("i",_result);
2816 return _resultobj;
2817}
2818
a323d3bd
RD
2819#define new_wxIconBundle() (new wxIconBundle())
2820static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
1893b029 2821 PyObject * _resultobj;
a323d3bd 2822 wxIconBundle * _result;
1893b029
RD
2823 char *_kwnames[] = { NULL };
2824 char _ptemp[128];
2825
2826 self = self;
a323d3bd 2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames))
1893b029
RD
2828 return NULL;
2829{
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2831 _result = (wxIconBundle *)new_wxIconBundle();
1893b029
RD
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) return NULL;
2835} if (_result) {
a323d3bd 2836 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
1893b029
RD
2837 _resultobj = Py_BuildValue("s",_ptemp);
2838 } else {
2839 Py_INCREF(Py_None);
2840 _resultobj = Py_None;
2841 }
2842 return _resultobj;
2843}
2844
a323d3bd
RD
2845#define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1))
2846static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2847 PyObject * _resultobj;
a323d3bd
RD
2848 wxIconBundle * _result;
2849 wxString * _arg0;
2850 long _arg1;
2851 PyObject * _obj0 = 0;
2852 char *_kwnames[] = { "file","type", NULL };
2853 char _ptemp[128];
d3b4d113
RR
2854
2855 self = self;
a323d3bd 2856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1))
d3b4d113 2857 return NULL;
059a841c 2858{
a323d3bd
RD
2859 _arg0 = wxString_in_helper(_obj0);
2860 if (_arg0 == NULL)
059a841c 2861 return NULL;
059a841c 2862}
ab9bc19b 2863{
474c48f9 2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2865 _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1);
ab9bc19b 2866
474c48f9 2867 wxPyEndAllowThreads(__tstate);
4dfaa61e 2868 if (PyErr_Occurred()) return NULL;
a323d3bd
RD
2869} if (_result) {
2870 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2871 _resultobj = Py_BuildValue("s",_ptemp);
2872 } else {
2873 Py_INCREF(Py_None);
2874 _resultobj = Py_None;
2875 }
059a841c 2876{
a323d3bd
RD
2877 if (_obj0)
2878 delete _arg0;
059a841c 2879}
d3b4d113
RR
2880 return _resultobj;
2881}
2882
a323d3bd
RD
2883#define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0))
2884static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2885 PyObject * _resultobj;
a323d3bd
RD
2886 wxIconBundle * _result;
2887 wxIcon * _arg0;
2d091820 2888 PyObject * _argo0 = 0;
a323d3bd
RD
2889 char *_kwnames[] = { "icon", NULL };
2890 char _ptemp[128];
d3b4d113
RR
2891
2892 self = self;
a323d3bd 2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0))
d3b4d113 2894 return NULL;
2d091820 2895 if (_argo0) {
b67a9327 2896 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
a323d3bd 2897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p.");
d3b4d113
RR
2898 return NULL;
2899 }
2900 }
ab9bc19b 2901{
474c48f9 2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2903 _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0);
ab9bc19b 2904
474c48f9 2905 wxPyEndAllowThreads(__tstate);
4dfaa61e 2906 if (PyErr_Occurred()) return NULL;
a323d3bd
RD
2907} if (_result) {
2908 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p");
2909 _resultobj = Py_BuildValue("s",_ptemp);
2910 } else {
2911 Py_INCREF(Py_None);
2912 _resultobj = Py_None;
2913 }
d3b4d113
RR
2914 return _resultobj;
2915}
2916
a323d3bd
RD
2917#define delete_wxIconBundle(_swigobj) (delete _swigobj)
2918static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113 2919 PyObject * _resultobj;
a323d3bd 2920 wxIconBundle * _arg0;
2d091820 2921 PyObject * _argo0 = 0;
a323d3bd 2922 char *_kwnames[] = { "self", NULL };
d3b4d113
RR
2923
2924 self = self;
a323d3bd 2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0))
d3b4d113 2926 return NULL;
2d091820
RD
2927 if (_argo0) {
2928 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p.");
d3b4d113
RR
2931 return NULL;
2932 }
2933 }
ab9bc19b 2934{
474c48f9 2935 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2936 delete_wxIconBundle(_arg0);
ab9bc19b 2937
474c48f9 2938 wxPyEndAllowThreads(__tstate);
4dfaa61e 2939 if (PyErr_Occurred()) return NULL;
ab9bc19b 2940} Py_INCREF(Py_None);
d3b4d113
RR
2941 _resultobj = Py_None;
2942 return _resultobj;
2943}
2944
a323d3bd
RD
2945#define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0))
2946static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc 2947 PyObject * _resultobj;
a323d3bd
RD
2948 wxIconBundle * _arg0;
2949 wxIcon * _arg1;
134d79dc 2950 PyObject * _argo0 = 0;
059a841c 2951 PyObject * _argo1 = 0;
a323d3bd 2952 char *_kwnames[] = { "self","icon", NULL };
134d79dc
RD
2953
2954 self = self;
a323d3bd 2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1))
134d79dc
RD
2956 return NULL;
2957 if (_argo0) {
2958 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p.");
059a841c
RD
2961 return NULL;
2962 }
2963 }
2964 if (_argo1) {
b67a9327 2965 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
a323d3bd 2966 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p.");
134d79dc
RD
2967 return NULL;
2968 }
2969 }
2970{
474c48f9 2971 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 2972 wxIconBundle_AddIcon(_arg0,*_arg1);
134d79dc 2973
474c48f9 2974 wxPyEndAllowThreads(__tstate);
4dfaa61e 2975 if (PyErr_Occurred()) return NULL;
134d79dc
RD
2976} Py_INCREF(Py_None);
2977 _resultobj = Py_None;
2978 return _resultobj;
2979}
2980
a323d3bd
RD
2981#define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1))
2982static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1893b029 2983 PyObject * _resultobj;
a323d3bd 2984 wxIconBundle * _arg0;
1893b029 2985 wxString * _arg1;
a323d3bd 2986 long _arg2;
1893b029
RD
2987 PyObject * _argo0 = 0;
2988 PyObject * _obj1 = 0;
a323d3bd 2989 char *_kwnames[] = { "self","file","type", NULL };
1893b029
RD
2990
2991 self = self;
a323d3bd 2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2))
1893b029
RD
2993 return NULL;
2994 if (_argo0) {
2995 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
2996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
2997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p.");
1893b029
RD
2998 return NULL;
2999 }
3000 }
3001{
c8bc7bb8
RD
3002 _arg1 = wxString_in_helper(_obj1);
3003 if (_arg1 == NULL)
1893b029 3004 return NULL;
1893b029
RD
3005}
3006{
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 3008 wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2);
1893b029
RD
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) return NULL;
3012} Py_INCREF(Py_None);
3013 _resultobj = Py_None;
3014{
3015 if (_obj1)
3016 delete _arg1;
3017}
3018 return _resultobj;
3019}
3020
a323d3bd
RD
3021#define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0))
3022static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 3023 PyObject * _resultobj;
a323d3bd
RD
3024 wxIcon * _result;
3025 wxIconBundle * _arg0;
3026 wxSize * _arg1;
5e40f9dd 3027 PyObject * _argo0 = 0;
a323d3bd
RD
3028 wxSize temp;
3029 PyObject * _obj1 = 0;
3030 char *_kwnames[] = { "self","size", NULL };
5e40f9dd
RD
3031 char _ptemp[128];
3032
3033 self = self;
a323d3bd 3034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1))
5e40f9dd
RD
3035 return NULL;
3036 if (_argo0) {
3037 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
3038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) {
3039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p.");
5e40f9dd
RD
3040 return NULL;
3041 }
3042 }
9a74fcaf 3043{
a323d3bd
RD
3044 _arg1 = &temp;
3045 if (! wxSize_helper(_obj1, &_arg1))
9a74fcaf
RD
3046 return NULL;
3047}
5e40f9dd 3048{
474c48f9 3049 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd
RD
3050 const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1);
3051 _result = (wxIcon *) &_result_ref;
5e40f9dd 3052
474c48f9 3053 wxPyEndAllowThreads(__tstate);
4dfaa61e 3054 if (PyErr_Occurred()) return NULL;
5e40f9dd 3055} if (_result) {
a323d3bd 3056 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
5e40f9dd
RD
3057 _resultobj = Py_BuildValue("s",_ptemp);
3058 } else {
3059 Py_INCREF(Py_None);
3060 _resultobj = Py_None;
3061 }
3062 return _resultobj;
3063}
3064
a323d3bd
RD
3065static void *SwigwxCursorTowxGDIObject(void *ptr) {
3066 wxCursor *src;
3067 wxGDIObject *dest;
3068 src = (wxCursor *) ptr;
3069 dest = (wxGDIObject *) src;
3070 return (void *) dest;
3071}
3072
3073static void *SwigwxCursorTowxObject(void *ptr) {
3074 wxCursor *src;
3075 wxObject *dest;
3076 src = (wxCursor *) ptr;
3077 dest = (wxObject *) src;
3078 return (void *) dest;
3079}
3080
1fded56b
RD
3081static wxCursor *new_wxCursor(const wxString *cursorName,long flags,int hotSpotX,int hotSpotY) {
3082#ifdef __WXGTK__
3083 wxCHECK_MSG(FALSE, NULL,
3084 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
3085#else
3086 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
3087#endif
3088 }
3089
3090static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3091 PyObject * _resultobj;
3092 wxCursor * _result;
3093 wxString * _arg0;
3094 long _arg1;
3095 int _arg2 = (int ) 0;
3096 int _arg3 = (int ) 0;
3097 PyObject * _obj0 = 0;
3098 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
3099 char _ptemp[128];
3100
3101 self = self;
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
3103 return NULL;
3104{
3105 _arg0 = wxString_in_helper(_obj0);
3106 if (_arg0 == NULL)
3107 return NULL;
3108}
3109{
3110 PyThreadState* __tstate = wxPyBeginAllowThreads();
3111 _result = (wxCursor *)new_wxCursor(_arg0,_arg1,_arg2,_arg3);
3112
3113 wxPyEndAllowThreads(__tstate);
3114 if (PyErr_Occurred()) return NULL;
3115} if (_result) {
3116 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
3117 _resultobj = Py_BuildValue("s",_ptemp);
3118 } else {
3119 Py_INCREF(Py_None);
3120 _resultobj = Py_None;
3121 }
3122{
3123 if (_obj0)
3124 delete _arg0;
3125}
3126 return _resultobj;
3127}
3128
a323d3bd
RD
3129#define delete_wxCursor(_swigobj) (delete _swigobj)
3130static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 3131 PyObject * _resultobj;
a323d3bd 3132 wxCursor * _arg0;
5e40f9dd 3133 PyObject * _argo0 = 0;
a323d3bd 3134 char *_kwnames[] = { "self", NULL };
5e40f9dd
RD
3135
3136 self = self;
a323d3bd 3137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
5e40f9dd
RD
3138 return NULL;
3139 if (_argo0) {
3140 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
3141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
5e40f9dd
RD
3143 return NULL;
3144 }
3145 }
3146{
474c48f9 3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 3148 delete_wxCursor(_arg0);
5e40f9dd 3149
474c48f9 3150 wxPyEndAllowThreads(__tstate);
4dfaa61e 3151 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3152} Py_INCREF(Py_None);
3153 _resultobj = Py_None;
3154 return _resultobj;
3155}
3156
a323d3bd
RD
3157#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
3158static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7a9b33db 3159 PyObject * _resultobj;
a323d3bd
RD
3160 bool _result;
3161 wxCursor * _arg0;
7a9b33db
RD
3162 PyObject * _argo0 = 0;
3163 char *_kwnames[] = { "self", NULL };
3164
3165 self = self;
a323d3bd 3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
7a9b33db
RD
3167 return NULL;
3168 if (_argo0) {
3169 if (_argo0 == Py_None) { _arg0 = NULL; }
a323d3bd
RD
3170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
7a9b33db
RD
3172 return NULL;
3173 }
3174 }
3175{
474c48f9 3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
a323d3bd 3177 _result = (bool )wxCursor_Ok(_arg0);
7a9b33db 3178
474c48f9 3179 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
3180 if (PyErr_Occurred()) return NULL;
3181} _resultobj = Py_BuildValue("i",_result);
3182 return _resultobj;
3183}
3184
9df61a29
RD
3185static void *SwigwxColourTowxObject(void *ptr) {
3186 wxColour *src;
3187 wxObject *dest;
3188 src = (wxColour *) ptr;
3189 dest = (wxObject *) src;
3190 return (void *) dest;
3191}
3192
70551f47 3193#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 3194static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3195 PyObject * _resultobj;
3196 wxColour * _result;
2d091820
RD
3197 unsigned char _arg0 = (unsigned char ) 0;
3198 unsigned char _arg1 = (unsigned char ) 0;
3199 unsigned char _arg2 = (unsigned char ) 0;
107e4716 3200 char *_kwnames[] = { "red","green","blue", NULL };
70551f47
RD
3201 char _ptemp[128];
3202
3203 self = self;
107e4716 3204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 3205 return NULL;
ab9bc19b 3206{
474c48f9 3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3208 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
ab9bc19b 3209
474c48f9 3210 wxPyEndAllowThreads(__tstate);
4dfaa61e 3211 if (PyErr_Occurred()) return NULL;
2d091820
RD
3212} if (_result) {
3213 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3214 _resultobj = Py_BuildValue("s",_ptemp);
3215 } else {
3216 Py_INCREF(Py_None);
3217 _resultobj = Py_None;
3218 }
70551f47
RD
3219 return _resultobj;
3220}
3221
3222#define delete_wxColour(_swigobj) (delete _swigobj)
107e4716 3223static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3224 PyObject * _resultobj;
3225 wxColour * _arg0;
f6bcfd97
BP
3226 wxColour temp;
3227 PyObject * _obj0 = 0;
107e4716 3228 char *_kwnames[] = { "self", NULL };
70551f47
RD
3229
3230 self = self;
f6bcfd97 3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
70551f47 3232 return NULL;
f6bcfd97
BP
3233{
3234 _arg0 = &temp;
3235 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3236 return NULL;
f6bcfd97 3237}
ab9bc19b 3238{
474c48f9 3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3240 delete_wxColour(_arg0);
ab9bc19b 3241
474c48f9 3242 wxPyEndAllowThreads(__tstate);
4dfaa61e 3243 if (PyErr_Occurred()) return NULL;
ab9bc19b 3244} Py_INCREF(Py_None);
70551f47
RD
3245 _resultobj = Py_None;
3246 return _resultobj;
3247}
3248
3249#define wxColour_Red(_swigobj) (_swigobj->Red())
107e4716 3250static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3251 PyObject * _resultobj;
3252 unsigned char _result;
3253 wxColour * _arg0;
f6bcfd97
BP
3254 wxColour temp;
3255 PyObject * _obj0 = 0;
107e4716 3256 char *_kwnames[] = { "self", NULL };
70551f47
RD
3257
3258 self = self;
f6bcfd97 3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
70551f47 3260 return NULL;
f6bcfd97
BP
3261{
3262 _arg0 = &temp;
3263 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3264 return NULL;
f6bcfd97 3265}
ab9bc19b 3266{
474c48f9 3267 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3268 _result = (unsigned char )wxColour_Red(_arg0);
ab9bc19b 3269
474c48f9 3270 wxPyEndAllowThreads(__tstate);
4dfaa61e 3271 if (PyErr_Occurred()) return NULL;
ab9bc19b 3272} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
3273 return _resultobj;
3274}
3275
3276#define wxColour_Green(_swigobj) (_swigobj->Green())
107e4716 3277static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3278 PyObject * _resultobj;
3279 unsigned char _result;
3280 wxColour * _arg0;
f6bcfd97
BP
3281 wxColour temp;
3282 PyObject * _obj0 = 0;
107e4716 3283 char *_kwnames[] = { "self", NULL };
70551f47
RD
3284
3285 self = self;
f6bcfd97 3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
70551f47 3287 return NULL;
f6bcfd97
BP
3288{
3289 _arg0 = &temp;
3290 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3291 return NULL;
f6bcfd97 3292}
ab9bc19b 3293{
474c48f9 3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3295 _result = (unsigned char )wxColour_Green(_arg0);
ab9bc19b 3296
474c48f9 3297 wxPyEndAllowThreads(__tstate);
4dfaa61e 3298 if (PyErr_Occurred()) return NULL;
ab9bc19b 3299} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
3300 return _resultobj;
3301}
3302
3303#define wxColour_Blue(_swigobj) (_swigobj->Blue())
107e4716 3304static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3305 PyObject * _resultobj;
3306 unsigned char _result;
3307 wxColour * _arg0;
f6bcfd97
BP
3308 wxColour temp;
3309 PyObject * _obj0 = 0;
107e4716 3310 char *_kwnames[] = { "self", NULL };
70551f47
RD
3311
3312 self = self;
f6bcfd97 3313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
70551f47 3314 return NULL;
f6bcfd97
BP
3315{
3316 _arg0 = &temp;
3317 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3318 return NULL;
f6bcfd97 3319}
ab9bc19b 3320{
474c48f9 3321 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3322 _result = (unsigned char )wxColour_Blue(_arg0);
ab9bc19b 3323
474c48f9 3324 wxPyEndAllowThreads(__tstate);
4dfaa61e 3325 if (PyErr_Occurred()) return NULL;
ab9bc19b 3326} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
3327 return _resultobj;
3328}
3329
3330#define wxColour_Ok(_swigobj) (_swigobj->Ok())
107e4716 3331static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3332 PyObject * _resultobj;
3333 bool _result;
3334 wxColour * _arg0;
f6bcfd97
BP
3335 wxColour temp;
3336 PyObject * _obj0 = 0;
107e4716 3337 char *_kwnames[] = { "self", NULL };
70551f47
RD
3338
3339 self = self;
f6bcfd97 3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
70551f47 3341 return NULL;
f6bcfd97
BP
3342{
3343 _arg0 = &temp;
3344 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3345 return NULL;
f6bcfd97 3346}
ab9bc19b 3347{
474c48f9 3348 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3349 _result = (bool )wxColour_Ok(_arg0);
ab9bc19b 3350
474c48f9 3351 wxPyEndAllowThreads(__tstate);
4dfaa61e 3352 if (PyErr_Occurred()) return NULL;
ab9bc19b 3353} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3354 return _resultobj;
3355}
3356
3357#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
107e4716 3358static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3359 PyObject * _resultobj;
3360 wxColour * _arg0;
3361 unsigned char _arg1;
3362 unsigned char _arg2;
3363 unsigned char _arg3;
f6bcfd97
BP
3364 wxColour temp;
3365 PyObject * _obj0 = 0;
107e4716 3366 char *_kwnames[] = { "self","red","green","blue", NULL };
70551f47
RD
3367
3368 self = self;
f6bcfd97 3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
70551f47 3370 return NULL;
f6bcfd97
BP
3371{
3372 _arg0 = &temp;
3373 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3374 return NULL;
f6bcfd97 3375}
ab9bc19b 3376{
474c48f9 3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3378 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 3379
474c48f9 3380 wxPyEndAllowThreads(__tstate);
4dfaa61e 3381 if (PyErr_Occurred()) return NULL;
ab9bc19b 3382} Py_INCREF(Py_None);
70551f47
RD
3383 _resultobj = Py_None;
3384 return _resultobj;
3385}
3386
3387static PyObject * wxColour_Get(wxColour *self) {
3388 PyObject* rv = PyTuple_New(3);
b67a9327
RD
3389 int red = -1;
3390 int green = -1;
3391 int blue = -1;
3392 if (self->Ok()) {
3393 red = self->Red();
3394 green = self->Green();
3395 blue = self->Blue();
3396 }
3397 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
3398 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
3399 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
70551f47
RD
3400 return rv;
3401 }
107e4716 3402static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3403 PyObject * _resultobj;
3404 PyObject * _result;
3405 wxColour * _arg0;
f6bcfd97
BP
3406 wxColour temp;
3407 PyObject * _obj0 = 0;
107e4716 3408 char *_kwnames[] = { "self", NULL };
70551f47
RD
3409
3410 self = self;
f6bcfd97 3411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
70551f47 3412 return NULL;
f6bcfd97
BP
3413{
3414 _arg0 = &temp;
3415 if (! wxColour_helper(_obj0, &_arg0))
70551f47 3416 return NULL;
f6bcfd97 3417}
70551f47 3418{
474c48f9 3419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3420 _result = (PyObject *)wxColour_Get(_arg0);
ab9bc19b 3421
474c48f9 3422 wxPyEndAllowThreads(__tstate);
4dfaa61e 3423 if (PyErr_Occurred()) return NULL;
ab9bc19b 3424}{
70551f47
RD
3425 _resultobj = _result;
3426}
3427 return _resultobj;
3428}
3429
b67a9327
RD
3430static bool wxColour___eq__(wxColour *self,PyObject * obj) {
3431 wxColour tmp;
3432 wxColour* ptr = &tmp;
3433 if (obj == Py_None) return FALSE;
3434 wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear());
3435 if (! success) return FALSE;
3436 return *self == *ptr;
3437 }
3438static PyObject *_wrap_wxColour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3439 PyObject * _resultobj;
3440 bool _result;
3441 wxColour * _arg0;
3442 PyObject * _arg1;
3443 wxColour temp;
3444 PyObject * _obj0 = 0;
3445 PyObject * _obj1 = 0;
3446 char *_kwnames[] = { "self","obj", NULL };
3447
3448 self = self;
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___eq__",_kwnames,&_obj0,&_obj1))
3450 return NULL;
3451{
3452 _arg0 = &temp;
3453 if (! wxColour_helper(_obj0, &_arg0))
3454 return NULL;
3455}
3456{
3457 _arg1 = _obj1;
3458}
3459{
3460 PyThreadState* __tstate = wxPyBeginAllowThreads();
3461 _result = (bool )wxColour___eq__(_arg0,_arg1);
3462
3463 wxPyEndAllowThreads(__tstate);
3464 if (PyErr_Occurred()) return NULL;
3465} _resultobj = Py_BuildValue("i",_result);
3466 return _resultobj;
3467}
3468
3469static bool wxColour___ne__(wxColour *self,PyObject * obj) {
3470 wxColour tmp;
3471 wxColour* ptr = &tmp;
3472 if (obj == Py_None) return TRUE;
3473 wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear());
3474 if (! success) return TRUE;
3475 return *self != *ptr;
3476 }
3477static PyObject *_wrap_wxColour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3478 PyObject * _resultobj;
3479 bool _result;
3480 wxColour * _arg0;
3481 PyObject * _arg1;
3482 wxColour temp;
3483 PyObject * _obj0 = 0;
3484 PyObject * _obj1 = 0;
3485 char *_kwnames[] = { "self","obj", NULL };
3486
3487 self = self;
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___ne__",_kwnames,&_obj0,&_obj1))
3489 return NULL;
3490{
3491 _arg0 = &temp;
3492 if (! wxColour_helper(_obj0, &_arg0))
3493 return NULL;
3494}
3495{
3496 _arg1 = _obj1;
3497}
3498{
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 _result = (bool )wxColour___ne__(_arg0,_arg1);
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) return NULL;
3504} _resultobj = Py_BuildValue("i",_result);
3505 return _resultobj;
3506}
3507
9df61a29
RD
3508static void *SwigwxColourDatabaseTowxObject(void *ptr) {
3509 wxColourDatabase *src;
3510 wxObject *dest;
3511 src = (wxColourDatabase *) ptr;
3512 dest = (wxObject *) src;
3513 return (void *) dest;
3514}
3515
5e40f9dd
RD
3516#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
3517static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3518 PyObject * _resultobj;
5e40f9dd
RD
3519 wxColour * _result;
3520 wxColourDatabase * _arg0;
3521 wxString * _arg1;
3522 PyObject * _argo0 = 0;
3523 PyObject * _obj1 = 0;
3524 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
3525 char _ptemp[128];
3526
3527 self = self;
5e40f9dd
RD
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
3529 return NULL;
3530 if (_argo0) {
3531 if (_argo0 == Py_None) { _arg0 = NULL; }
3532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
70551f47 3534 return NULL;
5e40f9dd
RD
3535 }
3536 }
f6bcfd97 3537{
c8bc7bb8
RD
3538 _arg1 = wxString_in_helper(_obj1);
3539 if (_arg1 == NULL)
5e40f9dd 3540 return NULL;
f6bcfd97 3541}
ab9bc19b 3542{
474c48f9 3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3544 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
ab9bc19b 3545
474c48f9 3546 wxPyEndAllowThreads(__tstate);
4dfaa61e 3547 if (PyErr_Occurred()) return NULL;
2d091820 3548} if (_result) {
5e40f9dd 3549 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2d091820
RD
3550 _resultobj = Py_BuildValue("s",_ptemp);
3551 } else {
3552 Py_INCREF(Py_None);
3553 _resultobj = Py_None;
3554 }
5e40f9dd
RD
3555{
3556 if (_obj1)
3557 delete _arg1;
3558}
70551f47
RD
3559 return _resultobj;
3560}
3561
dd116e73
RD
3562#define wxColourDatabase_FindColourNoAdd(_swigobj,_swigarg0) (_swigobj->FindColourNoAdd(_swigarg0))
3563static PyObject *_wrap_wxColourDatabase_FindColourNoAdd(PyObject *self, PyObject *args, PyObject *kwargs) {
3564 PyObject * _resultobj;
3565 wxColour * _result;
3566 wxColourDatabase * _arg0;
3567 wxString * _arg1;
3568 PyObject * _argo0 = 0;
3569 PyObject * _obj1 = 0;
3570 char *_kwnames[] = { "self","colour", NULL };
3571 char _ptemp[128];
3572
3573 self = self;
3574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColourNoAdd",_kwnames,&_argo0,&_obj1))
3575 return NULL;
3576 if (_argo0) {
3577 if (_argo0 == Py_None) { _arg0 = NULL; }
3578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColourNoAdd. Expected _wxColourDatabase_p.");
3580 return NULL;
3581 }
3582 }
3583{
3584 _arg1 = wxString_in_helper(_obj1);
3585 if (_arg1 == NULL)
3586 return NULL;
3587}
3588{
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 _result = (wxColour *)wxColourDatabase_FindColourNoAdd(_arg0,*_arg1);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) return NULL;
3594} if (_result) {
3595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3596 _resultobj = Py_BuildValue("s",_ptemp);
3597 } else {
3598 Py_INCREF(Py_None);
3599 _resultobj = Py_None;
3600 }
3601{
3602 if (_obj1)
3603 delete _arg1;
3604}
3605 return _resultobj;
3606}
3607
5e40f9dd
RD
3608#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
3609static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3610 PyObject * _resultobj;
5e40f9dd
RD
3611 wxString * _result;
3612 wxColourDatabase * _arg0;
3613 wxColour * _arg1;
2d091820 3614 PyObject * _argo0 = 0;
5e40f9dd
RD
3615 wxColour temp;
3616 PyObject * _obj1 = 0;
3617 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
3618
3619 self = self;
5e40f9dd 3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
70551f47 3621 return NULL;
2d091820
RD
3622 if (_argo0) {
3623 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
3624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
70551f47
RD
3626 return NULL;
3627 }
3628 }
5e40f9dd
RD
3629{
3630 _arg1 = &temp;
3631 if (! wxColour_helper(_obj1, &_arg1))
3632 return NULL;
3633}
ab9bc19b 3634{
474c48f9 3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3636 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
ab9bc19b 3637
474c48f9 3638 wxPyEndAllowThreads(__tstate);
4dfaa61e 3639 if (PyErr_Occurred()) return NULL;
5e40f9dd 3640}{
c8bc7bb8 3641#if wxUSE_UNICODE
b67a9327 3642 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
c8bc7bb8 3643#else
5e40f9dd 3644 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3645#endif
5e40f9dd
RD
3646}
3647{
3648 delete _result;
3649}
70551f47
RD
3650 return _resultobj;
3651}
3652
dd116e73
RD
3653static void wxColourDatabase_AddColour(wxColourDatabase *self,const wxString & name,wxColour * colour) {
3654 // make a copy since the python one will be GC'd
3655 wxColour* c = new wxColour(*colour);
3656 self->AddColour(name, c);
3657 }
3658static PyObject *_wrap_wxColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3659 PyObject * _resultobj;
3660 wxColourDatabase * _arg0;
3661 wxString * _arg1;
3662 wxColour * _arg2;
3663 PyObject * _argo0 = 0;
3664 PyObject * _obj1 = 0;
3665 wxColour temp;
3666 PyObject * _obj2 = 0;
3667 char *_kwnames[] = { "self","name","colour", NULL };
3668
3669 self = self;
3670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxColourDatabase_AddColour",_kwnames,&_argo0,&_obj1,&_obj2))
3671 return NULL;
3672 if (_argo0) {
3673 if (_argo0 == Py_None) { _arg0 = NULL; }
3674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_AddColour. Expected _wxColourDatabase_p.");
3676 return NULL;
3677 }
3678 }
3679{
3680 _arg1 = wxString_in_helper(_obj1);
3681 if (_arg1 == NULL)
3682 return NULL;
3683}
3684{
3685 _arg2 = &temp;
3686 if (! wxColour_helper(_obj2, &_arg2))
3687 return NULL;
3688}
3689{
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 wxColourDatabase_AddColour(_arg0,*_arg1,_arg2);
ef2060fa 3692
dd116e73
RD
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) return NULL;
3695} Py_INCREF(Py_None);
3696 _resultobj = Py_None;
3697{
3698 if (_obj1)
3699 delete _arg1;
3700}
3701 return _resultobj;
3702}
3703
3704static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
3705 wxColour* c = new wxColour(red, green, blue);
3706 self->AddColour(name, c);
5e40f9dd
RD
3707 }
3708static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3709 PyObject * _resultobj;
5e40f9dd
RD
3710 wxColourDatabase * _arg0;
3711 wxString * _arg1;
3712 int _arg2;
3713 int _arg3;
3714 int _arg4;
2d091820 3715 PyObject * _argo0 = 0;
5e40f9dd
RD
3716 PyObject * _obj1 = 0;
3717 char *_kwnames[] = { "self","name","red","green","blue", NULL };
70551f47
RD
3718
3719 self = self;
5e40f9dd 3720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
70551f47 3721 return NULL;
2d091820
RD
3722 if (_argo0) {
3723 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
3724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
3725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
70551f47
RD
3726 return NULL;
3727 }
3728 }
ab9bc19b 3729{
c8bc7bb8
RD
3730 _arg1 = wxString_in_helper(_obj1);
3731 if (_arg1 == NULL)
5e40f9dd 3732 return NULL;
5e40f9dd
RD
3733}
3734{
474c48f9 3735 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3736 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5e40f9dd 3737
474c48f9 3738 wxPyEndAllowThreads(__tstate);
4dfaa61e 3739 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3740} Py_INCREF(Py_None);
3741 _resultobj = Py_None;
3742{
3743 if (_obj1)
3744 delete _arg1;
3745}
3746 return _resultobj;
3747}
3748
9df61a29
RD
3749static void *SwigwxPenTowxGDIObject(void *ptr) {
3750 wxPen *src;
3751 wxGDIObject *dest;
3752 src = (wxPen *) ptr;
3753 dest = (wxGDIObject *) src;
3754 return (void *) dest;
3755}
3756
3757static void *SwigwxPenTowxObject(void *ptr) {
3758 wxPen *src;
3759 wxObject *dest;
3760 src = (wxPen *) ptr;
3761 dest = (wxObject *) src;
3762 return (void *) dest;
3763}
3764
5e40f9dd
RD
3765#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
3766static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3767 PyObject * _resultobj;
3768 wxPen * _result;
3769 wxColour * _arg0;
3770 int _arg1 = (int ) 1;
3771 int _arg2 = (int ) wxSOLID;
3772 wxColour temp;
3773 PyObject * _obj0 = 0;
3774 char *_kwnames[] = { "colour","width","style", NULL };
3775 char _ptemp[128];
3776
3777 self = self;
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
3779 return NULL;
3780{
3781 _arg0 = &temp;
3782 if (! wxColour_helper(_obj0, &_arg0))
3783 return NULL;
3784}
3785{
474c48f9 3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3787 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5e40f9dd 3788
474c48f9 3789 wxPyEndAllowThreads(__tstate);
4dfaa61e 3790 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3791} if (_result) {
3792 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
3793 _resultobj = Py_BuildValue("s",_ptemp);
3794 } else {
3795 Py_INCREF(Py_None);
3796 _resultobj = Py_None;
3797 }
3798 return _resultobj;
3799}
3800
3801#define delete_wxPen(_swigobj) (delete _swigobj)
3802static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
3803 PyObject * _resultobj;
3804 wxPen * _arg0;
3805 PyObject * _argo0 = 0;
3806 char *_kwnames[] = { "self", NULL };
3807
3808 self = self;
3809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
3810 return NULL;
3811 if (_argo0) {
3812 if (_argo0 == Py_None) { _arg0 = NULL; }
3813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
3815 return NULL;
3816 }
3817 }
3818{
474c48f9 3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3820 delete_wxPen(_arg0);
5e40f9dd 3821
474c48f9 3822 wxPyEndAllowThreads(__tstate);
4dfaa61e 3823 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3824} Py_INCREF(Py_None);
3825 _resultobj = Py_None;
3826 return _resultobj;
3827}
3828
3829#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
3830static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject * _resultobj;
3832 int _result;
3833 wxPen * _arg0;
3834 PyObject * _argo0 = 0;
3835 char *_kwnames[] = { "self", NULL };
3836
3837 self = self;
3838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
3839 return NULL;
3840 if (_argo0) {
3841 if (_argo0 == Py_None) { _arg0 = NULL; }
3842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
3844 return NULL;
3845 }
3846 }
3847{
474c48f9 3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3849 _result = (int )wxPen_GetCap(_arg0);
5e40f9dd 3850
474c48f9 3851 wxPyEndAllowThreads(__tstate);
4dfaa61e 3852 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
3853} _resultobj = Py_BuildValue("i",_result);
3854 return _resultobj;
3855}
3856
3857#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
3858static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3859 PyObject * _resultobj;
3860 wxColour * _result;
3861 wxPen * _arg0;
3862 PyObject * _argo0 = 0;
3863 char *_kwnames[] = { "self", NULL };
3864 char _ptemp[128];
3865
3866 self = self;
3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
3868 return NULL;
3869 if (_argo0) {
3870 if (_argo0 == Py_None) { _arg0 = NULL; }
3871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
3873 return NULL;
3874 }
3875 }
3876{
474c48f9 3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3878 _result = new wxColour (wxPen_GetColour(_arg0));
5e40f9dd 3879
474c48f9 3880 wxPyEndAllowThreads(__tstate);
4dfaa61e 3881 if (PyErr_Occurred()) return NULL;
84a81942
RD
3882} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
3883 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
3884 return _resultobj;
3885}
3886
3887#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
107e4716 3888static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3889 PyObject * _resultobj;
3890 int _result;
3891 wxPen * _arg0;
2d091820 3892 PyObject * _argo0 = 0;
107e4716 3893 char *_kwnames[] = { "self", NULL };
70551f47
RD
3894
3895 self = self;
107e4716 3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
70551f47 3897 return NULL;
2d091820
RD
3898 if (_argo0) {
3899 if (_argo0 == Py_None) { _arg0 = NULL; }
3900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3902 return NULL;
3903 }
3904 }
ab9bc19b 3905{
474c48f9 3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3907 _result = (int )wxPen_GetJoin(_arg0);
ab9bc19b 3908
474c48f9 3909 wxPyEndAllowThreads(__tstate);
4dfaa61e 3910 if (PyErr_Occurred()) return NULL;
ab9bc19b 3911} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3912 return _resultobj;
3913}
3914
3915#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 3916static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3917 PyObject * _resultobj;
3918 int _result;
3919 wxPen * _arg0;
2d091820 3920 PyObject * _argo0 = 0;
107e4716 3921 char *_kwnames[] = { "self", NULL };
70551f47
RD
3922
3923 self = self;
107e4716 3924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
70551f47 3925 return NULL;
2d091820
RD
3926 if (_argo0) {
3927 if (_argo0 == Py_None) { _arg0 = NULL; }
3928 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3929 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3930 return NULL;
3931 }
3932 }
ab9bc19b 3933{
474c48f9 3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3935 _result = (int )wxPen_GetStyle(_arg0);
ab9bc19b 3936
474c48f9 3937 wxPyEndAllowThreads(__tstate);
4dfaa61e 3938 if (PyErr_Occurred()) return NULL;
ab9bc19b 3939} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3940 return _resultobj;
3941}
3942
3943#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 3944static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3945 PyObject * _resultobj;
3946 int _result;
3947 wxPen * _arg0;
2d091820 3948 PyObject * _argo0 = 0;
107e4716 3949 char *_kwnames[] = { "self", NULL };
70551f47
RD
3950
3951 self = self;
107e4716 3952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
70551f47 3953 return NULL;
2d091820
RD
3954 if (_argo0) {
3955 if (_argo0 == Py_None) { _arg0 = NULL; }
3956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3958 return NULL;
3959 }
3960 }
ab9bc19b 3961{
474c48f9 3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3963 _result = (int )wxPen_GetWidth(_arg0);
ab9bc19b 3964
474c48f9 3965 wxPyEndAllowThreads(__tstate);
4dfaa61e 3966 if (PyErr_Occurred()) return NULL;
ab9bc19b 3967} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3968 return _resultobj;
3969}
3970
3971#define wxPen_Ok(_swigobj) (_swigobj->Ok())
107e4716 3972static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
3973 PyObject * _resultobj;
3974 bool _result;
3975 wxPen * _arg0;
2d091820 3976 PyObject * _argo0 = 0;
107e4716 3977 char *_kwnames[] = { "self", NULL };
70551f47
RD
3978
3979 self = self;
107e4716 3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
70551f47 3981 return NULL;
2d091820
RD
3982 if (_argo0) {
3983 if (_argo0 == Py_None) { _arg0 = NULL; }
3984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
3985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3986 return NULL;
3987 }
3988 }
ab9bc19b 3989{
474c48f9 3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3991 _result = (bool )wxPen_Ok(_arg0);
ab9bc19b 3992
474c48f9 3993 wxPyEndAllowThreads(__tstate);
4dfaa61e 3994 if (PyErr_Occurred()) return NULL;
ab9bc19b 3995} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3996 return _resultobj;
3997}
3998
3999#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
107e4716 4000static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4001 PyObject * _resultobj;
4002 wxPen * _arg0;
4003 int _arg1;
2d091820 4004 PyObject * _argo0 = 0;
107e4716 4005 char *_kwnames[] = { "self","cap_style", NULL };
70551f47
RD
4006
4007 self = self;
107e4716 4008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
70551f47 4009 return NULL;
2d091820
RD
4010 if (_argo0) {
4011 if (_argo0 == Py_None) { _arg0 = NULL; }
4012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4014 return NULL;
4015 }
4016 }
ab9bc19b 4017{
474c48f9 4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4019 wxPen_SetCap(_arg0,_arg1);
ab9bc19b 4020
474c48f9 4021 wxPyEndAllowThreads(__tstate);
4dfaa61e 4022 if (PyErr_Occurred()) return NULL;
ab9bc19b 4023} Py_INCREF(Py_None);
70551f47
RD
4024 _resultobj = Py_None;
4025 return _resultobj;
4026}
4027
4028#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 4029static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4030 PyObject * _resultobj;
4031 wxPen * _arg0;
4032 wxColour * _arg1;
2d091820 4033 PyObject * _argo0 = 0;
f6bcfd97
BP
4034 wxColour temp;
4035 PyObject * _obj1 = 0;
107e4716 4036 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4037
4038 self = self;
f6bcfd97 4039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
70551f47 4040 return NULL;
2d091820
RD
4041 if (_argo0) {
4042 if (_argo0 == Py_None) { _arg0 = NULL; }
4043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4045 return NULL;
4046 }
4047 }
f6bcfd97
BP
4048{
4049 _arg1 = &temp;
4050 if (! wxColour_helper(_obj1, &_arg1))
70551f47 4051 return NULL;
f6bcfd97 4052}
ab9bc19b 4053{
474c48f9 4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4055 wxPen_SetColour(_arg0,*_arg1);
ab9bc19b 4056
474c48f9 4057 wxPyEndAllowThreads(__tstate);
4dfaa61e 4058 if (PyErr_Occurred()) return NULL;
ab9bc19b 4059} Py_INCREF(Py_None);
70551f47
RD
4060 _resultobj = Py_None;
4061 return _resultobj;
4062}
4063
4064#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
107e4716 4065static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4066 PyObject * _resultobj;
4067 wxPen * _arg0;
4068 int _arg1;
2d091820 4069 PyObject * _argo0 = 0;
107e4716 4070 char *_kwnames[] = { "self","join_style", NULL };
70551f47
RD
4071
4072 self = self;
107e4716 4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
70551f47 4074 return NULL;
2d091820
RD
4075 if (_argo0) {
4076 if (_argo0 == Py_None) { _arg0 = NULL; }
4077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4079 return NULL;
4080 }
4081 }
ab9bc19b 4082{
474c48f9 4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4084 wxPen_SetJoin(_arg0,_arg1);
ab9bc19b 4085
474c48f9 4086 wxPyEndAllowThreads(__tstate);
4dfaa61e 4087 if (PyErr_Occurred()) return NULL;
ab9bc19b 4088} Py_INCREF(Py_None);
70551f47
RD
4089 _resultobj = Py_None;
4090 return _resultobj;
4091}
4092
4093#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 4094static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4095 PyObject * _resultobj;
4096 wxPen * _arg0;
4097 int _arg1;
2d091820 4098 PyObject * _argo0 = 0;
107e4716 4099 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
4100
4101 self = self;
107e4716 4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
70551f47 4103 return NULL;
2d091820
RD
4104 if (_argo0) {
4105 if (_argo0 == Py_None) { _arg0 = NULL; }
4106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4108 return NULL;
4109 }
4110 }
ab9bc19b 4111{
474c48f9 4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4113 wxPen_SetStyle(_arg0,_arg1);
ab9bc19b 4114
474c48f9 4115 wxPyEndAllowThreads(__tstate);
4dfaa61e 4116 if (PyErr_Occurred()) return NULL;
ab9bc19b 4117} Py_INCREF(Py_None);
70551f47
RD
4118 _resultobj = Py_None;
4119 return _resultobj;
4120}
4121
4122#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
107e4716 4123static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4124 PyObject * _resultobj;
4125 wxPen * _arg0;
4126 int _arg1;
2d091820 4127 PyObject * _argo0 = 0;
107e4716 4128 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
4129
4130 self = self;
107e4716 4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 4132 return NULL;
2d091820
RD
4133 if (_argo0) {
4134 if (_argo0 == Py_None) { _arg0 = NULL; }
4135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4137 return NULL;
4138 }
4139 }
ab9bc19b 4140{
474c48f9 4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4142 wxPen_SetWidth(_arg0,_arg1);
ab9bc19b 4143
474c48f9 4144 wxPyEndAllowThreads(__tstate);
4dfaa61e 4145 if (PyErr_Occurred()) return NULL;
ab9bc19b 4146} Py_INCREF(Py_None);
70551f47
RD
4147 _resultobj = Py_None;
4148 return _resultobj;
4149}
4150
65191ae8
RD
4151#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4152static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 4153 PyObject * _resultobj;
56f5d962 4154 wxPen * _arg0;
65191ae8
RD
4155 int _arg1;
4156 wxDash * _arg2;
56f5d962 4157 PyObject * _argo0 = 0;
65191ae8
RD
4158 PyObject * _obj2 = 0;
4159 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
4160
4161 self = self;
65191ae8 4162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
4163 return NULL;
4164 if (_argo0) {
4165 if (_argo0 == Py_None) { _arg0 = NULL; }
4166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
65191ae8 4167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
56f5d962
RD
4168 return NULL;
4169 }
4170 }
65191ae8
RD
4171 if (_obj2)
4172{
4173 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
4174 if (_arg2 == NULL) {
4175 return NULL;
4176 }
4177}
4178{
4179 if (_obj2) {
4180 _arg1 = PyList_Size(_obj2);
4181 }
4182 else {
4183 _arg1 = 0;
4184 }
4185}
4186{
474c48f9 4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4188 wxPen_SetDashes(_arg0,_arg1,_arg2);
65191ae8 4189
474c48f9 4190 wxPyEndAllowThreads(__tstate);
65191ae8
RD
4191 if (PyErr_Occurred()) return NULL;
4192} Py_INCREF(Py_None);
4193 _resultobj = Py_None;
4194{
4195 delete [] _arg2;
4196}
4197 return _resultobj;
4198}
4199
298ae144
RD
4200static PyObject * wxPen_GetDashes(wxPen *self) {
4201 wxDash* dashes;
4202 int count = self->GetDashes(&dashes);
4203 wxPyBeginBlockThreads();
4204 PyObject* retval = PyList_New(0);
4205 for (int x=0; x<count; x++)
4206 PyList_Append(retval, PyInt_FromLong(dashes[x]));
4207 wxPyEndBlockThreads();
4208 return retval;
4209 }
4210static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject * _resultobj;
4212 PyObject * _result;
4213 wxPen * _arg0;
4214 PyObject * _argo0 = 0;
4215 char *_kwnames[] = { "self", NULL };
4216
4217 self = self;
4218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0))
4219 return NULL;
4220 if (_argo0) {
4221 if (_argo0 == Py_None) { _arg0 = NULL; }
4222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4224 return NULL;
4225 }
4226 }
4227{
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 _result = (PyObject *)wxPen_GetDashes(_arg0);
4230
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) return NULL;
4233}{
4234 _resultobj = _result;
4235}
4236 return _resultobj;
4237}
4238
65191ae8
RD
4239static void *SwigwxPyPenTowxPen(void *ptr) {
4240 wxPyPen *src;
4241 wxPen *dest;
4242 src = (wxPyPen *) ptr;
4243 dest = (wxPen *) src;
4244 return (void *) dest;
4245}
4246
4247static void *SwigwxPyPenTowxGDIObject(void *ptr) {
4248 wxPyPen *src;
4249 wxGDIObject *dest;
4250 src = (wxPyPen *) ptr;
4251 dest = (wxGDIObject *) src;
4252 return (void *) dest;
4253}
4254
4255static void *SwigwxPyPenTowxObject(void *ptr) {
4256 wxPyPen *src;
4257 wxObject *dest;
4258 src = (wxPyPen *) ptr;
4259 dest = (wxObject *) src;
4260 return (void *) dest;
4261}
4262
4263#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
4264static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4265 PyObject * _resultobj;
4266 wxPyPen * _result;
4267 wxColour * _arg0;
4268 int _arg1 = (int ) 1;
4269 int _arg2 = (int ) wxSOLID;
4270 wxColour temp;
4271 PyObject * _obj0 = 0;
4272 char *_kwnames[] = { "colour","width","style", NULL };
4273 char _ptemp[128];
4274
4275 self = self;
4276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
4277 return NULL;
4278{
4279 _arg0 = &temp;
4280 if (! wxColour_helper(_obj0, &_arg0))
4281 return NULL;
4282}
4283{
474c48f9 4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4285 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
65191ae8 4286
474c48f9 4287 wxPyEndAllowThreads(__tstate);
65191ae8
RD
4288 if (PyErr_Occurred()) return NULL;
4289} if (_result) {
4290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_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 delete_wxPyPen(_swigobj) (delete _swigobj)
4300static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4301 PyObject * _resultobj;
4302 wxPyPen * _arg0;
4303 PyObject * _argo0 = 0;
4304 char *_kwnames[] = { "self", NULL };
4305
4306 self = self;
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
4308 return NULL;
4309 if (_argo0) {
4310 if (_argo0 == Py_None) { _arg0 = NULL; }
4311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
56f5d962
RD
4313 return NULL;
4314 }
4315 }
4316{
474c48f9 4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4318 delete_wxPyPen(_arg0);
56f5d962 4319
474c48f9 4320 wxPyEndAllowThreads(__tstate);
4dfaa61e 4321 if (PyErr_Occurred()) return NULL;
65191ae8
RD
4322} Py_INCREF(Py_None);
4323 _resultobj = Py_None;
56f5d962
RD
4324 return _resultobj;
4325}
4326
65191ae8
RD
4327#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4328static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 4329 PyObject * _resultobj;
65191ae8 4330 wxPyPen * _arg0;
56f5d962
RD
4331 int _arg1;
4332 wxDash * _arg2;
4333 PyObject * _argo0 = 0;
4334 PyObject * _obj2 = 0;
e02c03a4 4335 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
4336
4337 self = self;
65191ae8 4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
4339 return NULL;
4340 if (_argo0) {
4341 if (_argo0 == Py_None) { _arg0 = NULL; }
65191ae8
RD
4342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
4343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
56f5d962
RD
4344 return NULL;
4345 }
4346 }
4347 if (_obj2)
4348{
41073357 4349 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
56f5d962
RD
4350 if (_arg2 == NULL) {
4351 return NULL;
4352 }
4353}
4354{
4355 if (_obj2) {
4356 _arg1 = PyList_Size(_obj2);
4357 }
4358 else {
4359 _arg1 = 0;
4360 }
4361}
4362{
474c48f9 4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4364 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
56f5d962 4365
474c48f9 4366 wxPyEndAllowThreads(__tstate);
4dfaa61e 4367 if (PyErr_Occurred()) return NULL;
56f5d962
RD
4368} Py_INCREF(Py_None);
4369 _resultobj = Py_None;
4370{
4371 delete [] _arg2;
4372}
4373 return _resultobj;
4374}
4375
9df61a29
RD
4376static void *SwigwxPenListTowxObject(void *ptr) {
4377 wxPenList *src;
4378 wxObject *dest;
4379 src = (wxPenList *) ptr;
4380 dest = (wxObject *) src;
4381 return (void *) dest;
4382}
4383
5e40f9dd
RD
4384#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4385static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4386 PyObject * _resultobj;
4387 wxPenList * _arg0;
4388 wxPen * _arg1;
4389 PyObject * _argo0 = 0;
4390 PyObject * _argo1 = 0;
4391 char *_kwnames[] = { "self","pen", NULL };
4392
4393 self = self;
4394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
4395 return NULL;
4396 if (_argo0) {
4397 if (_argo0 == Py_None) { _arg0 = NULL; }
4398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4400 return NULL;
70551f47 4401 }
5e40f9dd
RD
4402 }
4403 if (_argo1) {
4404 if (_argo1 == Py_None) { _arg1 = NULL; }
4405 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4406 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4407 return NULL;
4408 }
4409 }
4410{
474c48f9 4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4412 wxPenList_AddPen(_arg0,_arg1);
70551f47 4413
474c48f9 4414 wxPyEndAllowThreads(__tstate);
4dfaa61e 4415 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4416} Py_INCREF(Py_None);
4417 _resultobj = Py_None;
4418 return _resultobj;
4419}
4420
4421#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4422static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject * _resultobj;
4424 wxPen * _result;
4425 wxPenList * _arg0;
4426 wxColour * _arg1;
4427 int _arg2;
4428 int _arg3;
4429 PyObject * _argo0 = 0;
4430 wxColour temp;
4431 PyObject * _obj1 = 0;
4432 char *_kwnames[] = { "self","colour","width","style", NULL };
4433 char _ptemp[128];
4434
4435 self = self;
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
4437 return NULL;
4438 if (_argo0) {
4439 if (_argo0 == Py_None) { _arg0 = NULL; }
4440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4442 return NULL;
4443 }
4444 }
4445{
4446 _arg1 = &temp;
4447 if (! wxColour_helper(_obj1, &_arg1))
4448 return NULL;
4449}
4450{
474c48f9 4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4452 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5e40f9dd 4453
474c48f9 4454 wxPyEndAllowThreads(__tstate);
4dfaa61e 4455 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4456} if (_result) {
4457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4458 _resultobj = Py_BuildValue("s",_ptemp);
4459 } else {
4460 Py_INCREF(Py_None);
4461 _resultobj = Py_None;
4462 }
4463 return _resultobj;
4464}
4465
4466#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4467static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 wxPenList * _arg0;
4470 wxPen * _arg1;
4471 PyObject * _argo0 = 0;
4472 PyObject * _argo1 = 0;
4473 char *_kwnames[] = { "self","pen", NULL };
4474
4475 self = self;
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
4477 return NULL;
4478 if (_argo0) {
4479 if (_argo0 == Py_None) { _arg0 = NULL; }
4480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4482 return NULL;
4483 }
4484 }
4485 if (_argo1) {
4486 if (_argo1 == Py_None) { _arg1 = NULL; }
4487 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4488 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4489 return NULL;
4490 }
4491 }
4492{
474c48f9 4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4494 wxPenList_RemovePen(_arg0,_arg1);
5e40f9dd 4495
474c48f9 4496 wxPyEndAllowThreads(__tstate);
4dfaa61e 4497 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4498} Py_INCREF(Py_None);
4499 _resultobj = Py_None;
4500 return _resultobj;
4501}
4502
7a9b33db
RD
4503#define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
4504static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4505 PyObject * _resultobj;
4506 int _result;
4507 wxPenList * _arg0;
4508 PyObject * _argo0 = 0;
4509 char *_kwnames[] = { "self", NULL };
4510
4511 self = self;
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
4513 return NULL;
4514 if (_argo0) {
4515 if (_argo0 == Py_None) { _arg0 = NULL; }
4516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
4518 return NULL;
4519 }
4520 }
4521{
474c48f9 4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4523 _result = (int )wxPenList_GetCount(_arg0);
7a9b33db 4524
474c48f9 4525 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4526 if (PyErr_Occurred()) return NULL;
4527} _resultobj = Py_BuildValue("i",_result);
4528 return _resultobj;
4529}
4530
9df61a29
RD
4531static void *SwigwxBrushTowxGDIObject(void *ptr) {
4532 wxBrush *src;
4533 wxGDIObject *dest;
4534 src = (wxBrush *) ptr;
4535 dest = (wxGDIObject *) src;
4536 return (void *) dest;
4537}
4538
4539static void *SwigwxBrushTowxObject(void *ptr) {
4540 wxBrush *src;
4541 wxObject *dest;
4542 src = (wxBrush *) ptr;
4543 dest = (wxObject *) src;
4544 return (void *) dest;
4545}
4546
5e40f9dd 4547#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
107e4716 4548static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4549 PyObject * _resultobj;
4550 wxBrush * _result;
4551 wxColour * _arg0;
2d091820 4552 int _arg1 = (int ) wxSOLID;
f6bcfd97
BP
4553 wxColour temp;
4554 PyObject * _obj0 = 0;
107e4716 4555 char *_kwnames[] = { "colour","style", NULL };
70551f47
RD
4556 char _ptemp[128];
4557
4558 self = self;
f6bcfd97 4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
70551f47 4560 return NULL;
f6bcfd97
BP
4561{
4562 _arg0 = &temp;
4563 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4564 return NULL;
f6bcfd97 4565}
ab9bc19b 4566{
474c48f9 4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4568 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
ab9bc19b 4569
474c48f9 4570 wxPyEndAllowThreads(__tstate);
4dfaa61e 4571 if (PyErr_Occurred()) return NULL;
2d091820
RD
4572} if (_result) {
4573 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4574 _resultobj = Py_BuildValue("s",_ptemp);
4575 } else {
4576 Py_INCREF(Py_None);
4577 _resultobj = Py_None;
4578 }
70551f47
RD
4579 return _resultobj;
4580}
4581
5e40f9dd
RD
4582#define delete_wxBrush(_swigobj) (delete _swigobj)
4583static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4584 PyObject * _resultobj;
4585 wxBrush * _arg0;
4586 PyObject * _argo0 = 0;
4587 char *_kwnames[] = { "self", NULL };
4588
4589 self = self;
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
4591 return NULL;
4592 if (_argo0) {
4593 if (_argo0 == Py_None) { _arg0 = NULL; }
4594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4596 return NULL;
4597 }
4598 }
4599{
474c48f9 4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4601 delete_wxBrush(_arg0);
5e40f9dd 4602
474c48f9 4603 wxPyEndAllowThreads(__tstate);
4dfaa61e 4604 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4605} Py_INCREF(Py_None);
4606 _resultobj = Py_None;
4607 return _resultobj;
4608}
4609
70551f47 4610#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
107e4716 4611static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4612 PyObject * _resultobj;
4613 wxColour * _result;
4614 wxBrush * _arg0;
2d091820 4615 PyObject * _argo0 = 0;
107e4716 4616 char *_kwnames[] = { "self", NULL };
70551f47
RD
4617 char _ptemp[128];
4618
4619 self = self;
107e4716 4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
70551f47 4621 return NULL;
2d091820
RD
4622 if (_argo0) {
4623 if (_argo0 == Py_None) { _arg0 = NULL; }
4624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4626 return NULL;
4627 }
4628 }
ab9bc19b 4629{
474c48f9 4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4631 _result = new wxColour (wxBrush_GetColour(_arg0));
ab9bc19b 4632
474c48f9 4633 wxPyEndAllowThreads(__tstate);
4dfaa61e 4634 if (PyErr_Occurred()) return NULL;
84a81942
RD
4635} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4636 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
4637 return _resultobj;
4638}
4639
4640#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
107e4716 4641static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4642 PyObject * _resultobj;
4643 wxBitmap * _result;
4644 wxBrush * _arg0;
2d091820 4645 PyObject * _argo0 = 0;
107e4716 4646 char *_kwnames[] = { "self", NULL };
70551f47
RD
4647 char _ptemp[128];
4648
4649 self = self;
107e4716 4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
70551f47 4651 return NULL;
2d091820
RD
4652 if (_argo0) {
4653 if (_argo0 == Py_None) { _arg0 = NULL; }
4654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4656 return NULL;
4657 }
4658 }
ab9bc19b 4659{
474c48f9 4660 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4661 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
ab9bc19b 4662
474c48f9 4663 wxPyEndAllowThreads(__tstate);
4dfaa61e 4664 if (PyErr_Occurred()) return NULL;
2d091820
RD
4665} if (_result) {
4666 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4667 _resultobj = Py_BuildValue("s",_ptemp);
4668 } else {
4669 Py_INCREF(Py_None);
4670 _resultobj = Py_None;
4671 }
70551f47
RD
4672 return _resultobj;
4673}
4674
4675#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 4676static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4677 PyObject * _resultobj;
4678 int _result;
4679 wxBrush * _arg0;
2d091820 4680 PyObject * _argo0 = 0;
107e4716 4681 char *_kwnames[] = { "self", NULL };
70551f47
RD
4682
4683 self = self;
107e4716 4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
70551f47 4685 return NULL;
2d091820
RD
4686 if (_argo0) {
4687 if (_argo0 == Py_None) { _arg0 = NULL; }
4688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4690 return NULL;
4691 }
4692 }
ab9bc19b 4693{
474c48f9 4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4695 _result = (int )wxBrush_GetStyle(_arg0);
ab9bc19b 4696
474c48f9 4697 wxPyEndAllowThreads(__tstate);
4dfaa61e 4698 if (PyErr_Occurred()) return NULL;
ab9bc19b 4699} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4700 return _resultobj;
4701}
4702
4703#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
107e4716 4704static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4705 PyObject * _resultobj;
4706 bool _result;
4707 wxBrush * _arg0;
2d091820 4708 PyObject * _argo0 = 0;
107e4716 4709 char *_kwnames[] = { "self", NULL };
70551f47
RD
4710
4711 self = self;
107e4716 4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
70551f47 4713 return NULL;
2d091820
RD
4714 if (_argo0) {
4715 if (_argo0 == Py_None) { _arg0 = NULL; }
4716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
4717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4718 return NULL;
4719 }
4720 }
ab9bc19b 4721{
474c48f9 4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4723 _result = (bool )wxBrush_Ok(_arg0);
ab9bc19b 4724
474c48f9 4725 wxPyEndAllowThreads(__tstate);
4dfaa61e 4726 if (PyErr_Occurred()) return NULL;
ab9bc19b 4727} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4728 return _resultobj;
4729}
4730
c95e68d8 4731#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 4732static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4733 PyObject * _resultobj;
4734 wxBrush * _arg0;
4735 wxColour * _arg1;
2d091820 4736 PyObject * _argo0 = 0;
f6bcfd97
BP
4737 wxColour temp;
4738 PyObject * _obj1 = 0;
107e4716 4739 char *_kwnames[] = { "self","colour", NULL };
c95e68d8
RD
4740
4741 self = self;
f6bcfd97 4742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
c95e68d8 4743 return NULL;
2d091820
RD
4744 if (_argo0) {
4745 if (_argo0 == Py_None) { _arg0 = NULL; }
4746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4748 return NULL;
4749 }
4750 }
f6bcfd97
BP
4751{
4752 _arg1 = &temp;
4753 if (! wxColour_helper(_obj1, &_arg1))
c95e68d8 4754 return NULL;
f6bcfd97 4755}
ab9bc19b 4756{
474c48f9 4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4758 wxBrush_SetColour(_arg0,*_arg1);
ab9bc19b 4759
474c48f9 4760 wxPyEndAllowThreads(__tstate);
4dfaa61e 4761 if (PyErr_Occurred()) return NULL;
ab9bc19b 4762} Py_INCREF(Py_None);
c95e68d8
RD
4763 _resultobj = Py_None;
4764 return _resultobj;
4765}
4766
4767#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
107e4716 4768static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4769 PyObject * _resultobj;
4770 wxBrush * _arg0;
4771 wxBitmap * _arg1;
2d091820
RD
4772 PyObject * _argo0 = 0;
4773 PyObject * _argo1 = 0;
107e4716 4774 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
4775
4776 self = self;
107e4716 4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
c95e68d8 4778 return NULL;
2d091820
RD
4779 if (_argo0) {
4780 if (_argo0 == Py_None) { _arg0 = NULL; }
4781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4783 return NULL;
4784 }
4785 }
2d091820 4786 if (_argo1) {
b67a9327 4787 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
4788 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4789 return NULL;
4790 }
4791 }
ab9bc19b 4792{
474c48f9 4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4794 wxBrush_SetStipple(_arg0,*_arg1);
ab9bc19b 4795
474c48f9 4796 wxPyEndAllowThreads(__tstate);
4dfaa61e 4797 if (PyErr_Occurred()) return NULL;
ab9bc19b 4798} Py_INCREF(Py_None);
c95e68d8
RD
4799 _resultobj = Py_None;
4800 return _resultobj;
4801}
4802
4803#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 4804static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
4805 PyObject * _resultobj;
4806 wxBrush * _arg0;
4807 int _arg1;
2d091820 4808 PyObject * _argo0 = 0;
107e4716 4809 char *_kwnames[] = { "self","style", NULL };
c95e68d8
RD
4810
4811 self = self;
107e4716 4812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
c95e68d8 4813 return NULL;
2d091820
RD
4814 if (_argo0) {
4815 if (_argo0 == Py_None) { _arg0 = NULL; }
4816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
4817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4818 return NULL;
4819 }
4820 }
ab9bc19b 4821{
474c48f9 4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4823 wxBrush_SetStyle(_arg0,_arg1);
ab9bc19b 4824
474c48f9 4825 wxPyEndAllowThreads(__tstate);
4dfaa61e 4826 if (PyErr_Occurred()) return NULL;
ab9bc19b 4827} Py_INCREF(Py_None);
c95e68d8
RD
4828 _resultobj = Py_None;
4829 return _resultobj;
4830}
4831
65191ae8
RD
4832static void *SwigwxBrushListTowxObject(void *ptr) {
4833 wxBrushList *src;
4834 wxObject *dest;
4835 src = (wxBrushList *) ptr;
4836 dest = (wxObject *) src;
4837 return (void *) dest;
4838}
4839
5e40f9dd
RD
4840#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4841static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4842 PyObject * _resultobj;
4843 wxBrushList * _arg0;
4844 wxBrush * _arg1;
4845 PyObject * _argo0 = 0;
4846 PyObject * _argo1 = 0;
4847 char *_kwnames[] = { "self","brush", NULL };
4848
4849 self = self;
4850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
4851 return NULL;
4852 if (_argo0) {
4853 if (_argo0 == Py_None) { _arg0 = NULL; }
4854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4856 return NULL;
4857 }
4858 }
4859 if (_argo1) {
4860 if (_argo1 == Py_None) { _arg1 = NULL; }
4861 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4862 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4863 return NULL;
4864 }
4865 }
4866{
474c48f9 4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4868 wxBrushList_AddBrush(_arg0,_arg1);
5e40f9dd 4869
474c48f9 4870 wxPyEndAllowThreads(__tstate);
4dfaa61e 4871 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4872} Py_INCREF(Py_None);
4873 _resultobj = Py_None;
4874 return _resultobj;
4875}
4876
4877#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4878static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject * _resultobj;
4880 wxBrush * _result;
4881 wxBrushList * _arg0;
4882 wxColour * _arg1;
4883 int _arg2;
4884 PyObject * _argo0 = 0;
4885 wxColour temp;
4886 PyObject * _obj1 = 0;
4887 char *_kwnames[] = { "self","colour","style", NULL };
4888 char _ptemp[128];
4889
4890 self = self;
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
4892 return NULL;
4893 if (_argo0) {
4894 if (_argo0 == Py_None) { _arg0 = NULL; }
4895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4897 return NULL;
4898 }
4899 }
4900{
4901 _arg1 = &temp;
4902 if (! wxColour_helper(_obj1, &_arg1))
4903 return NULL;
4904}
4905{
474c48f9 4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4907 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5e40f9dd 4908
474c48f9 4909 wxPyEndAllowThreads(__tstate);
4dfaa61e 4910 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4911} if (_result) {
4912 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4913 _resultobj = Py_BuildValue("s",_ptemp);
4914 } else {
4915 Py_INCREF(Py_None);
4916 _resultobj = Py_None;
4917 }
4918 return _resultobj;
4919}
4920
4921#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4922static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject * _resultobj;
4924 wxBrushList * _arg0;
4925 wxBrush * _arg1;
4926 PyObject * _argo0 = 0;
4927 PyObject * _argo1 = 0;
4928 char *_kwnames[] = { "self","brush", NULL };
4929
4930 self = self;
4931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
4932 return NULL;
4933 if (_argo0) {
4934 if (_argo0 == Py_None) { _arg0 = NULL; }
4935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4937 return NULL;
4938 }
4939 }
4940 if (_argo1) {
4941 if (_argo1 == Py_None) { _arg1 = NULL; }
4942 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4943 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4944 return NULL;
4945 }
4946 }
4947{
474c48f9 4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4949 wxBrushList_RemoveBrush(_arg0,_arg1);
5e40f9dd 4950
474c48f9 4951 wxPyEndAllowThreads(__tstate);
4dfaa61e 4952 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4953} Py_INCREF(Py_None);
4954 _resultobj = Py_None;
4955 return _resultobj;
4956}
4957
7a9b33db
RD
4958#define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
4959static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject * _resultobj;
4961 int _result;
4962 wxBrushList * _arg0;
4963 PyObject * _argo0 = 0;
4964 char *_kwnames[] = { "self", NULL };
4965
4966 self = self;
4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
4968 return NULL;
4969 if (_argo0) {
4970 if (_argo0 == Py_None) { _arg0 = NULL; }
4971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
4973 return NULL;
4974 }
4975 }
4976{
474c48f9 4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4978 _result = (int )wxBrushList_GetCount(_arg0);
7a9b33db 4979
474c48f9 4980 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4981 if (PyErr_Occurred()) return NULL;
4982} _resultobj = Py_BuildValue("i",_result);
4983 return _resultobj;
4984}
4985
9df61a29
RD
4986static void *SwigwxDCTowxObject(void *ptr) {
4987 wxDC *src;
4988 wxObject *dest;
4989 src = (wxDC *) ptr;
4990 dest = (wxObject *) src;
4991 return (void *) dest;
4992}
4993
70551f47 4994#define delete_wxDC(_swigobj) (delete _swigobj)
107e4716 4995static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4996 PyObject * _resultobj;
4997 wxDC * _arg0;
2d091820 4998 PyObject * _argo0 = 0;
107e4716 4999 char *_kwnames[] = { "self", NULL };
70551f47
RD
5000
5001 self = self;
107e4716 5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
70551f47 5003 return NULL;
2d091820
RD
5004 if (_argo0) {
5005 if (_argo0 == Py_None) { _arg0 = NULL; }
5006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5008 return NULL;
5009 }
5010 }
ab9bc19b 5011{
474c48f9 5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5013 delete_wxDC(_arg0);
ab9bc19b 5014
474c48f9 5015 wxPyEndAllowThreads(__tstate);
4dfaa61e 5016 if (PyErr_Occurred()) return NULL;
ab9bc19b 5017} Py_INCREF(Py_None);
70551f47
RD
5018 _resultobj = Py_None;
5019 return _resultobj;
5020}
5021
5022#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
107e4716 5023static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5024 PyObject * _resultobj;
5025 wxDC * _arg0;
2d091820 5026 PyObject * _argo0 = 0;
107e4716 5027 char *_kwnames[] = { "self", NULL };
70551f47
RD
5028
5029 self = self;
107e4716 5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
70551f47 5031 return NULL;
2d091820
RD
5032 if (_argo0) {
5033 if (_argo0 == Py_None) { _arg0 = NULL; }
5034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5036 return NULL;
5037 }
5038 }
ab9bc19b 5039{
474c48f9 5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5041 wxDC_BeginDrawing(_arg0);
ab9bc19b 5042
474c48f9 5043 wxPyEndAllowThreads(__tstate);
4dfaa61e 5044 if (PyErr_Occurred()) return NULL;
ab9bc19b 5045} Py_INCREF(Py_None);
70551f47
RD
5046 _resultobj = Py_None;
5047 return _resultobj;
5048}
5049
107e4716
RD
5050#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5051static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5052 PyObject * _resultobj;
5053 bool _result;
5054 wxDC * _arg0;
b67a9327
RD
5055 wxCoord _arg1;
5056 wxCoord _arg2;
5057 wxCoord _arg3;
5058 wxCoord _arg4;
70551f47 5059 wxDC * _arg5;
b67a9327
RD
5060 wxCoord _arg6;
5061 wxCoord _arg7;
107e4716
RD
5062 int _arg8 = (int ) wxCOPY;
5063 int _arg9 = (int ) FALSE;
2d091820
RD
5064 PyObject * _argo0 = 0;
5065 PyObject * _argo5 = 0;
107e4716 5066 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
70551f47
RD
5067
5068 self = self;
b67a9327 5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiiOii|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
70551f47 5070 return NULL;
2d091820
RD
5071 if (_argo0) {
5072 if (_argo0 == Py_None) { _arg0 = NULL; }
5073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5075 return NULL;
5076 }
5077 }
2d091820
RD
5078 if (_argo5) {
5079 if (_argo5 == Py_None) { _arg5 = NULL; }
5080 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
70551f47
RD
5081 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5082 return NULL;
5083 }
5084 }
ab9bc19b 5085{
474c48f9 5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5087 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
ab9bc19b 5088
474c48f9 5089 wxPyEndAllowThreads(__tstate);
4dfaa61e 5090 if (PyErr_Occurred()) return NULL;
ab9bc19b 5091} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5092 return _resultobj;
5093}
5094
5095#define wxDC_Clear(_swigobj) (_swigobj->Clear())
107e4716 5096static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5097 PyObject * _resultobj;
5098 wxDC * _arg0;
2d091820 5099 PyObject * _argo0 = 0;
107e4716 5100 char *_kwnames[] = { "self", NULL };
70551f47
RD
5101
5102 self = self;
107e4716 5103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
70551f47 5104 return NULL;
2d091820
RD
5105 if (_argo0) {
5106 if (_argo0 == Py_None) { _arg0 = NULL; }
5107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5109 return NULL;
5110 }
5111 }
ab9bc19b 5112{
474c48f9 5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5114 wxDC_Clear(_arg0);
ab9bc19b 5115
474c48f9 5116 wxPyEndAllowThreads(__tstate);
4dfaa61e 5117 if (PyErr_Occurred()) return NULL;
ab9bc19b 5118} Py_INCREF(Py_None);
70551f47
RD
5119 _resultobj = Py_None;
5120 return _resultobj;
5121}
5122
5123#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
107e4716 5124static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5125 PyObject * _resultobj;
5126 wxDC * _arg0;
b67a9327
RD
5127 wxCoord _arg1;
5128 wxCoord _arg2;
2d091820 5129 PyObject * _argo0 = 0;
107e4716 5130 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
5131
5132 self = self;
b67a9327 5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 5134 return NULL;
2d091820
RD
5135 if (_argo0) {
5136 if (_argo0 == Py_None) { _arg0 = NULL; }
5137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5139 return NULL;
5140 }
5141 }
ab9bc19b 5142{
474c48f9 5143 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5144 wxDC_CrossHair(_arg0,_arg1,_arg2);
ab9bc19b 5145
474c48f9 5146 wxPyEndAllowThreads(__tstate);
4dfaa61e 5147 if (PyErr_Occurred()) return NULL;
ab9bc19b 5148} Py_INCREF(Py_None);
70551f47
RD
5149 _resultobj = Py_None;
5150 return _resultobj;
5151}
5152
5153#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
107e4716 5154static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5155 PyObject * _resultobj;
5156 wxDC * _arg0;
2d091820 5157 PyObject * _argo0 = 0;
107e4716 5158 char *_kwnames[] = { "self", NULL };
70551f47
RD
5159
5160 self = self;
107e4716 5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
70551f47 5162 return NULL;
2d091820
RD
5163 if (_argo0) {
5164 if (_argo0 == Py_None) { _arg0 = NULL; }
5165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5167 return NULL;
5168 }
5169 }
ab9bc19b 5170{
474c48f9 5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5172 wxDC_DestroyClippingRegion(_arg0);
ab9bc19b 5173
474c48f9 5174 wxPyEndAllowThreads(__tstate);
4dfaa61e 5175 if (PyErr_Occurred()) return NULL;
ab9bc19b 5176} Py_INCREF(Py_None);
70551f47
RD
5177 _resultobj = Py_None;
5178 return _resultobj;
5179}
5180
5181#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
107e4716 5182static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 5183 PyObject * _resultobj;
b67a9327 5184 wxCoord _result;
70551f47 5185 wxDC * _arg0;
b67a9327 5186 wxCoord _arg1;
2d091820 5187 PyObject * _argo0 = 0;
107e4716 5188 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
5189
5190 self = self;
b67a9327 5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
70551f47 5192 return NULL;
2d091820
RD
5193 if (_argo0) {
5194 if (_argo0 == Py_None) { _arg0 = NULL; }
5195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5197 return NULL;
5198 }
5199 }
ab9bc19b 5200{
474c48f9 5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 5202 _result = (wxCoord )wxDC_DeviceToLogicalX(_arg0,_arg1);
ab9bc19b 5203
474c48f9 5204 wxPyEndAllowThreads(__tstate);
4dfaa61e 5205 if (PyErr_Occurred()) return NULL;
b67a9327 5206} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5207 return _resultobj;
5208}
5209
5210#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
107e4716 5211static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 5212 PyObject * _resultobj;
b67a9327 5213 wxCoord _result;
70551f47 5214 wxDC * _arg0;
b67a9327 5215 wxCoord _arg1;
2d091820 5216 PyObject * _argo0 = 0;
107e4716 5217 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
5218
5219 self = self;
b67a9327 5220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
70551f47 5221 return NULL;
2d091820
RD
5222 if (_argo0) {
5223 if (_argo0 == Py_None) { _arg0 = NULL; }
5224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5226 return NULL;
5227 }
5228 }
ab9bc19b 5229{
474c48f9 5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 5231 _result = (wxCoord )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
ab9bc19b 5232
474c48f9 5233 wxPyEndAllowThreads(__tstate);
4dfaa61e 5234 if (PyErr_Occurred()) return NULL;
b67a9327 5235} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5236 return _resultobj;
5237}
5238
5239#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
107e4716 5240static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 5241 PyObject * _resultobj;
b67a9327 5242 wxCoord _result;
70551f47 5243 wxDC * _arg0;
b67a9327 5244 wxCoord _arg1;
2d091820 5245 PyObject * _argo0 = 0;
107e4716 5246 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
5247
5248 self = self;
b67a9327 5249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
70551f47 5250 return NULL;
2d091820
RD
5251 if (_argo0) {
5252 if (_argo0 == Py_None) { _arg0 = NULL; }
5253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5255 return NULL;
5256 }
5257 }
ab9bc19b 5258{
474c48f9 5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 5260 _result = (wxCoord )wxDC_DeviceToLogicalY(_arg0,_arg1);
ab9bc19b 5261
474c48f9 5262 wxPyEndAllowThreads(__tstate);
4dfaa61e 5263 if (PyErr_Occurred()) return NULL;
b67a9327 5264} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5265 return _resultobj;
5266}
5267
5268#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
107e4716 5269static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 5270 PyObject * _resultobj;
b67a9327 5271 wxCoord _result;
70551f47 5272 wxDC * _arg0;
b67a9327 5273 wxCoord _arg1;
2d091820 5274 PyObject * _argo0 = 0;
107e4716 5275 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
5276
5277 self = self;
b67a9327 5278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
70551f47 5279 return NULL;
2d091820
RD
5280 if (_argo0) {
5281 if (_argo0 == Py_None) { _arg0 = NULL; }
5282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5284 return NULL;
5285 }
5286 }
ab9bc19b 5287{
474c48f9 5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 5289 _result = (wxCoord )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
ab9bc19b 5290
474c48f9 5291 wxPyEndAllowThreads(__tstate);
4dfaa61e 5292 if (PyErr_Occurred()) return NULL;
b67a9327 5293} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5294 return _resultobj;
5295}
5296
5297#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 5298static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5299 PyObject * _resultobj;
5300 wxDC * _arg0;
b67a9327
RD
5301 wxCoord _arg1;
5302 wxCoord _arg2;
5303 wxCoord _arg3;
5304 wxCoord _arg4;
5305 wxCoord _arg5;
5306 wxCoord _arg6;
2d091820 5307 PyObject * _argo0 = 0;
107e4716 5308 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
70551f47
RD
5309
5310 self = self;
b67a9327 5311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 5312 return NULL;
2d091820
RD
5313 if (_argo0) {
5314 if (_argo0 == Py_None) { _arg0 = NULL; }
5315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5317 return NULL;
5318 }
5319 }
ab9bc19b 5320{
474c48f9 5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5322 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 5323
474c48f9 5324 wxPyEndAllowThreads(__tstate);
4dfaa61e 5325 if (PyErr_Occurred()) return NULL;
ab9bc19b 5326} Py_INCREF(Py_None);
70551f47
RD
5327 _resultobj = Py_None;
5328 return _resultobj;
5329}
5330
d24a34bb 5331#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
107e4716 5332static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
5333 PyObject * _resultobj;
5334 wxDC * _arg0;
b67a9327
RD
5335 wxCoord _arg1;
5336 wxCoord _arg2;
5337 wxCoord _arg3;
2d091820 5338 PyObject * _argo0 = 0;
107e4716 5339 char *_kwnames[] = { "self","x","y","radius", NULL };
d24a34bb
RD
5340
5341 self = self;
b67a9327 5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
d24a34bb 5343 return NULL;
2d091820
RD
5344 if (_argo0) {
5345 if (_argo0 == Py_None) { _arg0 = NULL; }
5346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
5347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5348 return NULL;
5349 }
5350 }
5351{
474c48f9 5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5353 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
d24a34bb 5354
474c48f9 5355 wxPyEndAllowThreads(__tstate);
4dfaa61e 5356 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
5357} Py_INCREF(Py_None);
5358 _resultobj = Py_None;
5359 return _resultobj;
5360}
5361
70551f47 5362#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5363static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5364 PyObject * _resultobj;
5365 wxDC * _arg0;
b67a9327
RD
5366 wxCoord _arg1;
5367 wxCoord _arg2;
5368 wxCoord _arg3;
5369 wxCoord _arg4;
2d091820 5370 PyObject * _argo0 = 0;
107e4716 5371 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
5372
5373 self = self;
b67a9327 5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 5375 return NULL;
2d091820
RD
5376 if (_argo0) {
5377 if (_argo0 == Py_None) { _arg0 = NULL; }
5378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5380 return NULL;
5381 }
5382 }
ab9bc19b 5383{
474c48f9 5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5385 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5386
474c48f9 5387 wxPyEndAllowThreads(__tstate);
4dfaa61e 5388 if (PyErr_Occurred()) return NULL;
ab9bc19b 5389} Py_INCREF(Py_None);
70551f47
RD
5390 _resultobj = Py_None;
5391 return _resultobj;
5392}
5393
5394#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 5395static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5396 PyObject * _resultobj;
5397 wxDC * _arg0;
b67a9327
RD
5398 wxCoord _arg1;
5399 wxCoord _arg2;
5400 wxCoord _arg3;
5401 wxCoord _arg4;
5402 wxCoord _arg5;
5403 wxCoord _arg6;
2d091820 5404 PyObject * _argo0 = 0;
107e4716 5405 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
70551f47
RD
5406
5407 self = self;
b67a9327 5408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 5409 return NULL;
2d091820
RD
5410 if (_argo0) {
5411 if (_argo0 == Py_None) { _arg0 = NULL; }
5412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5414 return NULL;
5415 }
5416 }
ab9bc19b 5417{
474c48f9 5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5419 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 5420
474c48f9 5421 wxPyEndAllowThreads(__tstate);
4dfaa61e 5422 if (PyErr_Occurred()) return NULL;
ab9bc19b 5423} Py_INCREF(Py_None);
70551f47
RD
5424 _resultobj = Py_None;
5425 return _resultobj;
5426}
5427
5428#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
107e4716 5429static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5430 PyObject * _resultobj;
5431 wxDC * _arg0;
5432 wxIcon * _arg1;
b67a9327
RD
5433 wxCoord _arg2;
5434 wxCoord _arg3;
2d091820
RD
5435 PyObject * _argo0 = 0;
5436 PyObject * _argo1 = 0;
107e4716 5437 char *_kwnames[] = { "self","icon","x","y", NULL };
70551f47
RD
5438
5439 self = self;
b67a9327 5440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
70551f47 5441 return NULL;
2d091820
RD
5442 if (_argo0) {
5443 if (_argo0 == Py_None) { _arg0 = NULL; }
5444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5446 return NULL;
5447 }
5448 }
2d091820 5449 if (_argo1) {
b67a9327 5450 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
70551f47
RD
5451 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5452 return NULL;
5453 }
5454 }
ab9bc19b 5455{
474c48f9 5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5457 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 5458
474c48f9 5459 wxPyEndAllowThreads(__tstate);
4dfaa61e 5460 if (PyErr_Occurred()) return NULL;
ab9bc19b 5461} Py_INCREF(Py_None);
70551f47
RD
5462 _resultobj = Py_None;
5463 return _resultobj;
5464}
5465
8cb49012
RD
5466#define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5467static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject * _resultobj;
5469 wxDC * _arg0;
5470 wxString * _arg1;
5471 wxRect * _arg2;
5472 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
5473 int _arg4 = (int ) -1;
5474 PyObject * _argo0 = 0;
5475 PyObject * _obj1 = 0;
5476 wxRect temp;
5477 PyObject * _obj2 = 0;
5478 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
5482 return NULL;
5483 if (_argo0) {
5484 if (_argo0 == Py_None) { _arg0 = NULL; }
5485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
5487 return NULL;
5488 }
5489 }
5490{
c8bc7bb8
RD
5491 _arg1 = wxString_in_helper(_obj1);
5492 if (_arg1 == NULL)
8cb49012 5493 return NULL;
8cb49012
RD
5494}
5495{
5496 _arg2 = &temp;
5497 if (! wxRect_helper(_obj2, &_arg2))
5498 return NULL;
5499}
5500{
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5502 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
8cb49012
RD
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) return NULL;
5506} Py_INCREF(Py_None);
5507 _resultobj = Py_None;
5508{
5509 if (_obj1)
5510 delete _arg1;
5511}
5512 return _resultobj;
5513}
5514
5515static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
5516 wxRect rv;
5517 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
5518 return rv;
5519 }
5520static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5521 PyObject * _resultobj;
5522 wxRect * _result;
5523 wxDC * _arg0;
5524 wxString * _arg1;
5525 wxBitmap * _arg2;
5526 wxRect * _arg3;
5527 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
5528 int _arg5 = (int ) -1;
5529 PyObject * _argo0 = 0;
5530 PyObject * _obj1 = 0;
5531 PyObject * _argo2 = 0;
5532 wxRect temp;
5533 PyObject * _obj3 = 0;
5534 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
5535 char _ptemp[128];
5536
5537 self = self;
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
5539 return NULL;
5540 if (_argo0) {
5541 if (_argo0 == Py_None) { _arg0 = NULL; }
5542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
5544 return NULL;
5545 }
5546 }
5547{
c8bc7bb8
RD
5548 _arg1 = wxString_in_helper(_obj1);
5549 if (_arg1 == NULL)
8cb49012 5550 return NULL;
8cb49012
RD
5551}
5552 if (_argo2) {
b67a9327 5553 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8cb49012
RD
5554 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
5555 return NULL;
5556 }
5557 }
5558{
5559 _arg3 = &temp;
5560 if (! wxRect_helper(_obj3, &_arg3))
5561 return NULL;
5562}
5563{
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5565 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
8cb49012
RD
5566
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) return NULL;
5569} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
5570 _resultobj = Py_BuildValue("s",_ptemp);
5571{
5572 if (_obj1)
5573 delete _arg1;
5574}
5575 return _resultobj;
5576}
5577
70551f47 5578#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5579static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5580 PyObject * _resultobj;
5581 wxDC * _arg0;
b67a9327
RD
5582 wxCoord _arg1;
5583 wxCoord _arg2;
5584 wxCoord _arg3;
5585 wxCoord _arg4;
2d091820 5586 PyObject * _argo0 = 0;
107e4716 5587 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
70551f47
RD
5588
5589 self = self;
b67a9327 5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 5591 return NULL;
2d091820
RD
5592 if (_argo0) {
5593 if (_argo0 == Py_None) { _arg0 = NULL; }
5594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5596 return NULL;
5597 }
5598 }
ab9bc19b 5599{
474c48f9 5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5601 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5602
474c48f9 5603 wxPyEndAllowThreads(__tstate);
4dfaa61e 5604 if (PyErr_Occurred()) return NULL;
ab9bc19b 5605} Py_INCREF(Py_None);
70551f47
RD
5606 _resultobj = Py_None;
5607 return _resultobj;
5608}
5609
5610#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5611static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5612 PyObject * _resultobj;
5613 wxDC * _arg0;
5614 int _arg1;
5615 wxPoint * _arg2;
b67a9327
RD
5616 wxCoord _arg3 = (wxCoord ) 0;
5617 wxCoord _arg4 = (wxCoord ) 0;
2d091820 5618 PyObject * _argo0 = 0;
1c09ae54 5619 int NPOINTS;
70551f47 5620 PyObject * _obj2 = 0;
e02c03a4 5621 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
70551f47
RD
5622
5623 self = self;
b67a9327 5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
70551f47 5625 return NULL;
2d091820
RD
5626 if (_argo0) {
5627 if (_argo0 == Py_None) { _arg0 = NULL; }
5628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5630 return NULL;
5631 }
5632 }
5633 if (_obj2)
5634{
1c09ae54
RD
5635 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5636 if (_arg2 == NULL) {
5637 return NULL;
5638 }
70551f47
RD
5639}
5640{
1c09ae54 5641 _arg1 = NPOINTS;
70551f47 5642}
ab9bc19b 5643{
474c48f9 5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5645 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5646
474c48f9 5647 wxPyEndAllowThreads(__tstate);
4dfaa61e 5648 if (PyErr_Occurred()) return NULL;
ab9bc19b 5649} Py_INCREF(Py_None);
70551f47
RD
5650 _resultobj = Py_None;
5651{
5652 delete [] _arg2;
5653}
5654 return _resultobj;
5655}
5656
5657#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 5658static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5659 PyObject * _resultobj;
5660 wxDC * _arg0;
5661 int _arg1;
5662 wxPoint * _arg2;
b67a9327
RD
5663 wxCoord _arg3 = (wxCoord ) 0;
5664 wxCoord _arg4 = (wxCoord ) 0;
2d091820
RD
5665 int _arg5 = (int ) wxODDEVEN_RULE;
5666 PyObject * _argo0 = 0;
1c09ae54 5667 int NPOINTS;
70551f47 5668 PyObject * _obj2 = 0;
e02c03a4 5669 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
70551f47
RD
5670
5671 self = self;
b67a9327 5672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iii:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
70551f47 5673 return NULL;
2d091820
RD
5674 if (_argo0) {
5675 if (_argo0 == Py_None) { _arg0 = NULL; }
5676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5678 return NULL;
5679 }
5680 }
5681 if (_obj2)
5682{
1c09ae54
RD
5683 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5684 if (_arg2 == NULL) {
5685 return NULL;
5686 }
70551f47
RD
5687}
5688{
1c09ae54 5689 _arg1 = NPOINTS;
70551f47 5690}
ab9bc19b 5691{
474c48f9 5692 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5693 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 5694
474c48f9 5695 wxPyEndAllowThreads(__tstate);
4dfaa61e 5696 if (PyErr_Occurred()) return NULL;
ab9bc19b 5697} Py_INCREF(Py_None);
70551f47
RD
5698 _resultobj = Py_None;
5699{
5700 delete [] _arg2;
5701}
5702 return _resultobj;
5703}
5704
5705#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
107e4716 5706static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5707 PyObject * _resultobj;
5708 wxDC * _arg0;
b67a9327
RD
5709 wxCoord _arg1;
5710 wxCoord _arg2;
2d091820 5711 PyObject * _argo0 = 0;
107e4716 5712 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
5713
5714 self = self;
b67a9327 5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 5716 return NULL;
2d091820
RD
5717 if (_argo0) {
5718 if (_argo0 == Py_None) { _arg0 = NULL; }
5719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5721 return NULL;
5722 }
5723 }
ab9bc19b 5724{
474c48f9 5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5726 wxDC_DrawPoint(_arg0,_arg1,_arg2);
ab9bc19b 5727
474c48f9 5728 wxPyEndAllowThreads(__tstate);
4dfaa61e 5729 if (PyErr_Occurred()) return NULL;
ab9bc19b 5730} Py_INCREF(Py_None);
70551f47
RD
5731 _resultobj = Py_None;
5732 return _resultobj;
5733}
5734
5735#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 5736static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5737 PyObject * _resultobj;
5738 wxDC * _arg0;
b67a9327
RD
5739 wxCoord _arg1;
5740 wxCoord _arg2;
5741 wxCoord _arg3;
5742 wxCoord _arg4;
2d091820 5743 PyObject * _argo0 = 0;
107e4716 5744 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
5745
5746 self = self;
b67a9327 5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 5748 return NULL;
2d091820
RD
5749 if (_argo0) {
5750 if (_argo0 == Py_None) { _arg0 = NULL; }
5751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5753 return NULL;
5754 }
5755 }
ab9bc19b 5756{
474c48f9 5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5758 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 5759
474c48f9 5760 wxPyEndAllowThreads(__tstate);
4dfaa61e 5761 if (PyErr_Occurred()) return NULL;
ab9bc19b 5762} Py_INCREF(Py_None);
70551f47
RD
5763 _resultobj = Py_None;
5764 return _resultobj;
5765}
5766
b2a2e5bf
RD
5767#define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0))
5768static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5769 PyObject * _resultobj;
5770 wxDC * _arg0;
5771 wxRect * _arg1;
5772 PyObject * _argo0 = 0;
5773 wxRect temp;
5774 PyObject * _obj1 = 0;
5775 char *_kwnames[] = { "self","rect", NULL };
5776
5777 self = self;
5778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1))
5779 return NULL;
5780 if (_argo0) {
5781 if (_argo0 == Py_None) { _arg0 = NULL; }
5782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p.");
5784 return NULL;
5785 }
5786 }
5787{
5788 _arg1 = &temp;
5789 if (! wxRect_helper(_obj1, &_arg1))
5790 return NULL;
5791}
5792{
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 wxDC_DrawRectangleRect(_arg0,*_arg1);
5795
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) return NULL;
5798} Py_INCREF(Py_None);
5799 _resultobj = Py_None;
5800 return _resultobj;
5801}
5802
56f5d962
RD
5803#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5804static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
5805 PyObject * _resultobj;
5806 wxDC * _arg0;
5807 wxString * _arg1;
5808 wxCoord _arg2;
5809 wxCoord _arg3;
5810 double _arg4;
5811 PyObject * _argo0 = 0;
5812 PyObject * _obj1 = 0;
5813 char *_kwnames[] = { "self","text","x","y","angle", NULL };
5814
5815 self = self;
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5817 return NULL;
5818 if (_argo0) {
5819 if (_argo0 == Py_None) { _arg0 = NULL; }
5820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5822 return NULL;
5823 }
5824 }
5825{
c8bc7bb8
RD
5826 _arg1 = wxString_in_helper(_obj1);
5827 if (_arg1 == NULL)
2cd2fac8 5828 return NULL;
56f5d962
RD
5829}
5830{
474c48f9 5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5832 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
56f5d962 5833
474c48f9 5834 wxPyEndAllowThreads(__tstate);
4dfaa61e 5835 if (PyErr_Occurred()) return NULL;
56f5d962
RD
5836} Py_INCREF(Py_None);
5837 _resultobj = Py_None;
5838{
5839 if (_obj1)
5840 delete _arg1;
5841}
5842 return _resultobj;
5843}
5844
70551f47 5845#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 5846static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5847 PyObject * _resultobj;
5848 wxDC * _arg0;
b67a9327
RD
5849 wxCoord _arg1;
5850 wxCoord _arg2;
5851 wxCoord _arg3;
5852 wxCoord _arg4;
5853 wxCoord _arg5 = (wxCoord ) 20;
2d091820 5854 PyObject * _argo0 = 0;
107e4716 5855 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
70551f47
RD
5856
5857 self = self;
b67a9327 5858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
70551f47 5859 return NULL;
2d091820
RD
5860 if (_argo0) {
5861 if (_argo0 == Py_None) { _arg0 = NULL; }
5862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5864 return NULL;
5865 }
5866 }
ab9bc19b 5867{
474c48f9 5868 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5869 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 5870
474c48f9 5871 wxPyEndAllowThreads(__tstate);
4dfaa61e 5872 if (PyErr_Occurred()) return NULL;
ab9bc19b 5873} Py_INCREF(Py_None);
70551f47
RD
5874 _resultobj = Py_None;
5875 return _resultobj;
5876}
5877
5878#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
107e4716 5879static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5880 PyObject * _resultobj;
5881 wxDC * _arg0;
5882 int _arg1;
5883 wxPoint * _arg2;
2d091820 5884 PyObject * _argo0 = 0;
1c09ae54 5885 int NPOINTS;
70551f47 5886 PyObject * _obj2 = 0;
e02c03a4 5887 char *_kwnames[] = { "self","points", NULL };
70551f47
RD
5888
5889 self = self;
107e4716 5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
70551f47 5891 return NULL;
2d091820
RD
5892 if (_argo0) {
5893 if (_argo0 == Py_None) { _arg0 = NULL; }
5894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5896 return NULL;
5897 }
5898 }
5899 if (_obj2)
5900{
1c09ae54
RD
5901 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5902 if (_arg2 == NULL) {
5903 return NULL;
5904 }
70551f47
RD
5905}
5906{
1c09ae54 5907 _arg1 = NPOINTS;
70551f47 5908}
ab9bc19b 5909{
474c48f9 5910 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5911 wxDC_DrawSpline(_arg0,_arg1,_arg2);
ab9bc19b 5912
474c48f9 5913 wxPyEndAllowThreads(__tstate);
4dfaa61e 5914 if (PyErr_Occurred()) return NULL;
ab9bc19b 5915} Py_INCREF(Py_None);
70551f47
RD
5916 _resultobj = Py_None;
5917{
5918 delete [] _arg2;
5919}
5920 return _resultobj;
5921}
5922
5923#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
107e4716 5924static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5925 PyObject * _resultobj;
5926 wxDC * _arg0;
5927 wxString * _arg1;
b67a9327
RD
5928 wxCoord _arg2;
5929 wxCoord _arg3;
2d091820 5930 PyObject * _argo0 = 0;
70551f47 5931 PyObject * _obj1 = 0;
107e4716 5932 char *_kwnames[] = { "self","text","x","y", NULL };
70551f47
RD
5933
5934 self = self;
b67a9327 5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
70551f47 5936 return NULL;
2d091820
RD
5937 if (_argo0) {
5938 if (_argo0 == Py_None) { _arg0 = NULL; }
5939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5941 return NULL;
5942 }
5943 }
5944{
c8bc7bb8
RD
5945 _arg1 = wxString_in_helper(_obj1);
5946 if (_arg1 == NULL)
70551f47 5947 return NULL;
70551f47 5948}
ab9bc19b 5949{
474c48f9 5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5951 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 5952
474c48f9 5953 wxPyEndAllowThreads(__tstate);
4dfaa61e 5954 if (PyErr_Occurred()) return NULL;
ab9bc19b 5955} Py_INCREF(Py_None);
70551f47
RD
5956 _resultobj = Py_None;
5957{
5958 if (_obj1)
5959 delete _arg1;
5960}
5961 return _resultobj;
5962}
5963
5964#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
107e4716 5965static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5966 PyObject * _resultobj;
5967 wxDC * _arg0;
2d091820 5968 PyObject * _argo0 = 0;
107e4716 5969 char *_kwnames[] = { "self", NULL };
70551f47
RD
5970
5971 self = self;
107e4716 5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
70551f47 5973 return NULL;
2d091820
RD
5974 if (_argo0) {
5975 if (_argo0 == Py_None) { _arg0 = NULL; }
5976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
5977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5978 return NULL;
5979 }
5980 }
ab9bc19b 5981{
474c48f9 5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5983 wxDC_EndDoc(_arg0);
ab9bc19b 5984
474c48f9 5985 wxPyEndAllowThreads(__tstate);
4dfaa61e 5986 if (PyErr_Occurred()) return NULL;
ab9bc19b 5987} Py_INCREF(Py_None);
70551f47
RD
5988 _resultobj = Py_None;
5989 return _resultobj;
5990}
5991
5992#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
107e4716 5993static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5994 PyObject * _resultobj;
5995 wxDC * _arg0;
2d091820 5996 PyObject * _argo0 = 0;
107e4716 5997 char *_kwnames[] = { "self", NULL };
70551f47
RD
5998
5999 self = self;
107e4716 6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
70551f47 6001 return NULL;
2d091820
RD
6002 if (_argo0) {
6003 if (_argo0 == Py_None) { _arg0 = NULL; }
6004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6006 return NULL;
6007 }
6008 }
ab9bc19b 6009{
474c48f9 6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6011 wxDC_EndDrawing(_arg0);
ab9bc19b 6012
474c48f9 6013 wxPyEndAllowThreads(__tstate);
4dfaa61e 6014 if (PyErr_Occurred()) return NULL;
ab9bc19b 6015} Py_INCREF(Py_None);
70551f47
RD
6016 _resultobj = Py_None;
6017 return _resultobj;
6018}
6019
6020#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
107e4716 6021static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6022 PyObject * _resultobj;
6023 wxDC * _arg0;
2d091820 6024 PyObject * _argo0 = 0;
107e4716 6025 char *_kwnames[] = { "self", NULL };
70551f47
RD
6026
6027 self = self;
107e4716 6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
70551f47 6029 return NULL;
2d091820
RD
6030 if (_argo0) {
6031 if (_argo0 == Py_None) { _arg0 = NULL; }
6032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6034 return NULL;
6035 }
6036 }
ab9bc19b 6037{
474c48f9 6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6039 wxDC_EndPage(_arg0);
ab9bc19b 6040
474c48f9 6041 wxPyEndAllowThreads(__tstate);
4dfaa61e 6042 if (PyErr_Occurred()) return NULL;
ab9bc19b 6043} Py_INCREF(Py_None);
70551f47
RD
6044 _resultobj = Py_None;
6045 return _resultobj;
6046}
6047
6048#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6049static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6050 PyObject * _resultobj;
b98a5dfc 6051 bool _result;
70551f47 6052 wxDC * _arg0;
b67a9327
RD
6053 wxCoord _arg1;
6054 wxCoord _arg2;
70551f47 6055 wxColour * _arg3;
2d091820
RD
6056 int _arg4 = (int ) wxFLOOD_SURFACE;
6057 PyObject * _argo0 = 0;
f6bcfd97
BP
6058 wxColour temp;
6059 PyObject * _obj3 = 0;
107e4716 6060 char *_kwnames[] = { "self","x","y","colour","style", NULL };
70551f47
RD
6061
6062 self = self;
b67a9327 6063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
70551f47 6064 return NULL;
2d091820
RD
6065 if (_argo0) {
6066 if (_argo0 == Py_None) { _arg0 = NULL; }
6067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6069 return NULL;
6070 }
6071 }
f6bcfd97
BP
6072{
6073 _arg3 = &temp;
6074 if (! wxColour_helper(_obj3, &_arg3))
70551f47 6075 return NULL;
f6bcfd97 6076}
ab9bc19b 6077{
474c48f9 6078 PyThreadState* __tstate = wxPyBeginAllowThreads();
b98a5dfc 6079 _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
ab9bc19b 6080
474c48f9 6081 wxPyEndAllowThreads(__tstate);
4dfaa61e 6082 if (PyErr_Occurred()) return NULL;
b98a5dfc 6083} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6084 return _resultobj;
6085}
6086
6087#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
107e4716 6088static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6089 PyObject * _resultobj;
6090 wxBrush * _result;
6091 wxDC * _arg0;
2d091820 6092 PyObject * _argo0 = 0;
107e4716 6093 char *_kwnames[] = { "self", NULL };
70551f47
RD
6094 char _ptemp[128];
6095
6096 self = self;
107e4716 6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
70551f47 6098 return NULL;
2d091820
RD
6099 if (_argo0) {
6100 if (_argo0 == Py_None) { _arg0 = NULL; }
6101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6103 return NULL;
6104 }
6105 }
ab9bc19b 6106{
474c48f9 6107 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6108 _result = new wxBrush (wxDC_GetBackground(_arg0));
ab9bc19b 6109
474c48f9 6110 wxPyEndAllowThreads(__tstate);
4dfaa61e 6111 if (PyErr_Occurred()) return NULL;
3e212503
RD
6112} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6113 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6114 return _resultobj;
6115}
6116
6117#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
107e4716 6118static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6119 PyObject * _resultobj;
6120 wxBrush * _result;
6121 wxDC * _arg0;
2d091820 6122 PyObject * _argo0 = 0;
107e4716 6123 char *_kwnames[] = { "self", NULL };
70551f47
RD
6124 char _ptemp[128];
6125
6126 self = self;
107e4716 6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
70551f47 6128 return NULL;
2d091820
RD
6129 if (_argo0) {
6130 if (_argo0 == Py_None) { _arg0 = NULL; }
6131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6133 return NULL;
6134 }
6135 }
ab9bc19b 6136{
474c48f9 6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6138 _result = new wxBrush (wxDC_GetBrush(_arg0));
ab9bc19b 6139
474c48f9 6140 wxPyEndAllowThreads(__tstate);
4dfaa61e 6141 if (PyErr_Occurred()) return NULL;
3e212503
RD
6142} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
6143 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6144 return _resultobj;
6145}
6146
6147#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
107e4716 6148static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6149 PyObject * _resultobj;
b67a9327 6150 wxCoord _result;
70551f47 6151 wxDC * _arg0;
2d091820 6152 PyObject * _argo0 = 0;
107e4716 6153 char *_kwnames[] = { "self", NULL };
70551f47
RD
6154
6155 self = self;
107e4716 6156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
70551f47 6157 return NULL;
2d091820
RD
6158 if (_argo0) {
6159 if (_argo0 == Py_None) { _arg0 = NULL; }
6160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6162 return NULL;
6163 }
6164 }
ab9bc19b 6165{
474c48f9 6166 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 6167 _result = (wxCoord )wxDC_GetCharHeight(_arg0);
ab9bc19b 6168
474c48f9 6169 wxPyEndAllowThreads(__tstate);
4dfaa61e 6170 if (PyErr_Occurred()) return NULL;
b67a9327 6171} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6172 return _resultobj;
6173}
6174
6175#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
107e4716 6176static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6177 PyObject * _resultobj;
b67a9327 6178 wxCoord _result;
70551f47 6179 wxDC * _arg0;
2d091820 6180 PyObject * _argo0 = 0;
107e4716 6181 char *_kwnames[] = { "self", NULL };
70551f47
RD
6182
6183 self = self;
107e4716 6184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
70551f47 6185 return NULL;
2d091820
RD
6186 if (_argo0) {
6187 if (_argo0 == Py_None) { _arg0 = NULL; }
6188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6190 return NULL;
6191 }
6192 }
ab9bc19b 6193{
474c48f9 6194 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 6195 _result = (wxCoord )wxDC_GetCharWidth(_arg0);
ab9bc19b 6196
474c48f9 6197 wxPyEndAllowThreads(__tstate);
4dfaa61e 6198 if (PyErr_Occurred()) return NULL;
b67a9327 6199} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6200 return _resultobj;
6201}
6202
6203#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6204static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6205 PyObject * _resultobj;
6206 wxDC * _arg0;
b67a9327
RD
6207 wxCoord * _arg1;
6208 int temp;
6209 wxCoord * _arg2;
6210 int temp0;
6211 wxCoord * _arg3;
6212 int temp1;
6213 wxCoord * _arg4;
6214 int temp2;
2d091820 6215 PyObject * _argo0 = 0;
107e4716 6216 char *_kwnames[] = { "self", NULL };
70551f47
RD
6217
6218 self = self;
6219{
6220 _arg1 = &temp;
6221}
6222{
6223 _arg2 = &temp0;
6224}
6225{
6226 _arg3 = &temp1;
6227}
6228{
6229 _arg4 = &temp2;
6230}
107e4716 6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
70551f47 6232 return NULL;
2d091820
RD
6233 if (_argo0) {
6234 if (_argo0 == Py_None) { _arg0 = NULL; }
6235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6237 return NULL;
6238 }
6239 }
ab9bc19b 6240{
474c48f9 6241 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6242 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6243
474c48f9 6244 wxPyEndAllowThreads(__tstate);
4dfaa61e 6245 if (PyErr_Occurred()) return NULL;
ab9bc19b 6246} Py_INCREF(Py_None);
70551f47
RD
6247 _resultobj = Py_None;
6248{
6249 PyObject *o;
6250 o = PyInt_FromLong((long) (*_arg1));
6251 _resultobj = t_output_helper(_resultobj, o);
6252}
6253{
6254 PyObject *o;
6255 o = PyInt_FromLong((long) (*_arg2));
6256 _resultobj = t_output_helper(_resultobj, o);
6257}
6258{
6259 PyObject *o;
6260 o = PyInt_FromLong((long) (*_arg3));
6261 _resultobj = t_output_helper(_resultobj, o);
6262}
6263{
6264 PyObject *o;
6265 o = PyInt_FromLong((long) (*_arg4));
6266 _resultobj = t_output_helper(_resultobj, o);
6267}
6268 return _resultobj;
6269}
6270
6271#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
107e4716 6272static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6273 PyObject * _resultobj;
6274 wxFont * _result;
6275 wxDC * _arg0;
2d091820 6276 PyObject * _argo0 = 0;
107e4716 6277 char *_kwnames[] = { "self", NULL };
70551f47
RD
6278 char _ptemp[128];
6279
6280 self = self;
107e4716 6281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
70551f47 6282 return NULL;
2d091820
RD
6283 if (_argo0) {
6284 if (_argo0 == Py_None) { _arg0 = NULL; }
6285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6287 return NULL;
6288 }
6289 }
ab9bc19b 6290{
474c48f9 6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6292 _result = new wxFont (wxDC_GetFont(_arg0));
ab9bc19b 6293
474c48f9 6294 wxPyEndAllowThreads(__tstate);
4dfaa61e 6295 if (PyErr_Occurred()) return NULL;
3e212503
RD
6296} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
6297 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6298 return _resultobj;
6299}
6300
6301#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
107e4716 6302static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6303 PyObject * _resultobj;
6304 int _result;
6305 wxDC * _arg0;
2d091820 6306 PyObject * _argo0 = 0;
107e4716 6307 char *_kwnames[] = { "self", NULL };
70551f47
RD
6308
6309 self = self;
107e4716 6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
70551f47 6311 return NULL;
2d091820
RD
6312 if (_argo0) {
6313 if (_argo0 == Py_None) { _arg0 = NULL; }
6314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6316 return NULL;
6317 }
6318 }
ab9bc19b 6319{
474c48f9 6320 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6321 _result = (int )wxDC_GetLogicalFunction(_arg0);
ab9bc19b 6322
474c48f9 6323 wxPyEndAllowThreads(__tstate);
4dfaa61e 6324 if (PyErr_Occurred()) return NULL;
ab9bc19b 6325} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6326 return _resultobj;
6327}
6328
e02c03a4
RD
6329#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6330static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6331 PyObject * _resultobj;
6332 wxDC * _arg0;
6333 double * _arg1;
6334 double temp;
6335 double * _arg2;
6336 double temp0;
6337 PyObject * _argo0 = 0;
6338 char *_kwnames[] = { "self", NULL };
6339
6340 self = self;
6341{
6342 _arg1 = &temp;
6343}
6344{
6345 _arg2 = &temp0;
6346}
6347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
6348 return NULL;
6349 if (_argo0) {
6350 if (_argo0 == Py_None) { _arg0 = NULL; }
6351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6353 return NULL;
6354 }
6355 }
6356{
474c48f9 6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6358 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 6359
474c48f9 6360 wxPyEndAllowThreads(__tstate);
4dfaa61e 6361 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6362} Py_INCREF(Py_None);
6363 _resultobj = Py_None;
6364{
6365 PyObject *o;
6366 o = PyFloat_FromDouble((double) (*_arg1));
6367 _resultobj = t_output_helper(_resultobj, o);
6368}
6369{
6370 PyObject *o;
6371 o = PyFloat_FromDouble((double) (*_arg2));
6372 _resultobj = t_output_helper(_resultobj, o);
6373}
6374 return _resultobj;
6375}
6376
70551f47 6377#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
107e4716 6378static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6379 PyObject * _resultobj;
6380 int _result;
6381 wxDC * _arg0;
2d091820 6382 PyObject * _argo0 = 0;
107e4716 6383 char *_kwnames[] = { "self", NULL };
70551f47
RD
6384
6385 self = self;
107e4716 6386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
70551f47 6387 return NULL;
2d091820
RD
6388 if (_argo0) {
6389 if (_argo0 == Py_None) { _arg0 = NULL; }
6390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6392 return NULL;
6393 }
6394 }
ab9bc19b 6395{
474c48f9 6396 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6397 _result = (int )wxDC_GetMapMode(_arg0);
ab9bc19b 6398
474c48f9 6399 wxPyEndAllowThreads(__tstate);
4dfaa61e 6400 if (PyErr_Occurred()) return NULL;
ab9bc19b 6401} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6402 return _resultobj;
6403}
6404
6405#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
107e4716 6406static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6407 PyObject * _resultobj;
6408 bool _result;
6409 wxDC * _arg0;
2d091820 6410 PyObject * _argo0 = 0;
107e4716 6411 char *_kwnames[] = { "self", NULL };
70551f47
RD
6412
6413 self = self;
107e4716 6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
70551f47 6415 return NULL;
2d091820
RD
6416 if (_argo0) {
6417 if (_argo0 == Py_None) { _arg0 = NULL; }
6418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6420 return NULL;
6421 }
6422 }
ab9bc19b 6423{
474c48f9 6424 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6425 _result = (bool )wxDC_GetOptimization(_arg0);
ab9bc19b 6426
474c48f9 6427 wxPyEndAllowThreads(__tstate);
4dfaa61e 6428 if (PyErr_Occurred()) return NULL;
ab9bc19b 6429} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6430 return _resultobj;
6431}
6432
6433#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
107e4716 6434static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6435 PyObject * _resultobj;
6436 wxPen * _result;
6437 wxDC * _arg0;
2d091820 6438 PyObject * _argo0 = 0;
107e4716 6439 char *_kwnames[] = { "self", NULL };
70551f47
RD
6440 char _ptemp[128];
6441
6442 self = self;
107e4716 6443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
70551f47 6444 return NULL;
2d091820
RD
6445 if (_argo0) {
6446 if (_argo0 == Py_None) { _arg0 = NULL; }
6447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6449 return NULL;
6450 }
6451 }
ab9bc19b 6452{
474c48f9 6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6454 _result = new wxPen (wxDC_GetPen(_arg0));
ab9bc19b 6455
474c48f9 6456 wxPyEndAllowThreads(__tstate);
4dfaa61e 6457 if (PyErr_Occurred()) return NULL;
3e212503
RD
6458} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
6459 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6460 return _resultobj;
6461}
6462
b67a9327 6463static wxColour * wxDC_GetPixel(wxDC *self,wxCoord x,wxCoord y) {
70551f47
RD
6464 wxColour* wc = new wxColour();
6465 self->GetPixel(x, y, wc);
6466 return wc;
6467 }
107e4716 6468static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6469 PyObject * _resultobj;
6470 wxColour * _result;
6471 wxDC * _arg0;
b67a9327
RD
6472 wxCoord _arg1;
6473 wxCoord _arg2;
2d091820 6474 PyObject * _argo0 = 0;
107e4716 6475 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6476 char _ptemp[128];
6477
6478 self = self;
b67a9327 6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6480 return NULL;
2d091820
RD
6481 if (_argo0) {
6482 if (_argo0 == Py_None) { _arg0 = NULL; }
6483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6485 return NULL;
6486 }
6487 }
ab9bc19b 6488{
474c48f9 6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6490 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
ab9bc19b 6491
474c48f9 6492 wxPyEndAllowThreads(__tstate);
4dfaa61e 6493 if (PyErr_Occurred()) return NULL;
2d091820
RD
6494} if (_result) {
6495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6496 _resultobj = Py_BuildValue("s",_ptemp);
6497 } else {
6498 Py_INCREF(Py_None);
6499 _resultobj = Py_None;
6500 }
70551f47
RD
6501 return _resultobj;
6502}
6503
d24a34bb 6504#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
107e4716 6505static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6506 PyObject * _resultobj;
6507 wxDC * _arg0;
6508 int * _arg1;
6509 int temp;
6510 int * _arg2;
6511 int temp0;
2d091820 6512 PyObject * _argo0 = 0;
107e4716 6513 char *_kwnames[] = { "self", NULL };
70551f47
RD
6514
6515 self = self;
6516{
6517 _arg1 = &temp;
6518}
6519{
6520 _arg2 = &temp0;
6521}
107e4716 6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
70551f47 6523 return NULL;
2d091820
RD
6524 if (_argo0) {
6525 if (_argo0 == Py_None) { _arg0 = NULL; }
6526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb 6527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
70551f47
RD
6528 return NULL;
6529 }
6530 }
ab9bc19b 6531{
474c48f9 6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6533 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
ab9bc19b 6534
474c48f9 6535 wxPyEndAllowThreads(__tstate);
4dfaa61e 6536 if (PyErr_Occurred()) return NULL;
ab9bc19b 6537} Py_INCREF(Py_None);
70551f47
RD
6538 _resultobj = Py_None;
6539{
6540 PyObject *o;
6541 o = PyInt_FromLong((long) (*_arg1));
6542 _resultobj = t_output_helper(_resultobj, o);
6543}
6544{
6545 PyObject *o;
6546 o = PyInt_FromLong((long) (*_arg2));
6547 _resultobj = t_output_helper(_resultobj, o);
6548}
6549 return _resultobj;
6550}
6551
d24a34bb 6552#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
107e4716 6553static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
6554 PyObject * _resultobj;
6555 wxSize * _result;
6556 wxDC * _arg0;
2d091820 6557 PyObject * _argo0 = 0;
107e4716 6558 char *_kwnames[] = { "self", NULL };
d24a34bb
RD
6559 char _ptemp[128];
6560
6561 self = self;
107e4716 6562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
d24a34bb 6563 return NULL;
2d091820
RD
6564 if (_argo0) {
6565 if (_argo0 == Py_None) { _arg0 = NULL; }
6566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
6567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6568 return NULL;
6569 }
6570 }
6571{
474c48f9 6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6573 _result = new wxSize (wxDC_GetSize(_arg0));
d24a34bb 6574
474c48f9 6575 wxPyEndAllowThreads(__tstate);
4dfaa61e 6576 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
6577} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6578 _resultobj = Py_BuildValue("s",_ptemp);
6579 return _resultobj;
6580}
6581
e02c03a4
RD
6582#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6583static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
6584 PyObject * _resultobj;
6585 wxSize * _result;
6586 wxDC * _arg0;
6587 PyObject * _argo0 = 0;
6588 char *_kwnames[] = { "self", NULL };
6589 char _ptemp[128];
6590
6591 self = self;
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
6593 return NULL;
6594 if (_argo0) {
6595 if (_argo0 == Py_None) { _arg0 = NULL; }
6596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6598 return NULL;
6599 }
6600 }
6601{
474c48f9 6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6603 _result = new wxSize (wxDC_GetSizeMM(_arg0));
e02c03a4 6604
474c48f9 6605 wxPyEndAllowThreads(__tstate);
4dfaa61e 6606 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6607} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6608 _resultobj = Py_BuildValue("s",_ptemp);
6609 return _resultobj;
6610}
6611
70551f47 6612#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
107e4716 6613static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6614 PyObject * _resultobj;
6615 wxColour * _result;
6616 wxDC * _arg0;
2d091820 6617 PyObject * _argo0 = 0;
107e4716 6618 char *_kwnames[] = { "self", NULL };
70551f47
RD
6619 char _ptemp[128];
6620
6621 self = self;
107e4716 6622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
70551f47 6623 return NULL;
2d091820
RD
6624 if (_argo0) {
6625 if (_argo0 == Py_None) { _arg0 = NULL; }
6626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6628 return NULL;
6629 }
6630 }
ab9bc19b 6631{
474c48f9 6632 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6633 _result = new wxColour (wxDC_GetTextBackground(_arg0));
ab9bc19b 6634
474c48f9 6635 wxPyEndAllowThreads(__tstate);
4dfaa61e 6636 if (PyErr_Occurred()) return NULL;
84a81942
RD
6637} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6638 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
6639 return _resultobj;
6640}
6641
21f8d7ea 6642#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
107e4716 6643static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
6644 PyObject * _resultobj;
6645 wxDC * _arg0;
6646 wxString * _arg1;
b67a9327
RD
6647 wxCoord * _arg2;
6648 int temp;
6649 wxCoord * _arg3;
6650 int temp0;
2d091820 6651 PyObject * _argo0 = 0;
21f8d7ea 6652 PyObject * _obj1 = 0;
107e4716 6653 char *_kwnames[] = { "self","string", NULL };
21f8d7ea
RD
6654
6655 self = self;
6656{
6657 _arg2 = &temp;
6658}
6659{
6660 _arg3 = &temp0;
6661}
107e4716 6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
21f8d7ea 6663 return NULL;
2d091820
RD
6664 if (_argo0) {
6665 if (_argo0 == Py_None) { _arg0 = NULL; }
6666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea
RD
6667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6668 return NULL;
6669 }
6670 }
6671{
c8bc7bb8
RD
6672 _arg1 = wxString_in_helper(_obj1);
6673 if (_arg1 == NULL)
21f8d7ea 6674 return NULL;
21f8d7ea 6675}
ab9bc19b 6676{
474c48f9 6677 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6678 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6679
474c48f9 6680 wxPyEndAllowThreads(__tstate);
4dfaa61e 6681 if (PyErr_Occurred()) return NULL;
ab9bc19b 6682} Py_INCREF(Py_None);
21f8d7ea
RD
6683 _resultobj = Py_None;
6684{
6685 PyObject *o;
6686 o = PyInt_FromLong((long) (*_arg2));
6687 _resultobj = t_output_helper(_resultobj, o);
6688}
6689{
6690 PyObject *o;
6691 o = PyInt_FromLong((long) (*_arg3));
6692 _resultobj = t_output_helper(_resultobj, o);
6693}
6694{
6695 if (_obj1)
6696 delete _arg1;
6697}
6698 return _resultobj;
6699}
6700
6701#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6702static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6703 PyObject * _resultobj;
6704 wxDC * _arg0;
6705 wxString * _arg1;
b67a9327
RD
6706 wxCoord * _arg2;
6707 int temp;
6708 wxCoord * _arg3;
6709 int temp0;
6710 wxCoord * _arg4;
6711 int temp1;
6712 wxCoord * _arg5;
6713 int temp2;
2d091820
RD
6714 wxFont * _arg6 = (wxFont *) NULL;
6715 PyObject * _argo0 = 0;
70551f47 6716 PyObject * _obj1 = 0;
2d091820 6717 PyObject * _argo6 = 0;
107e4716 6718 char *_kwnames[] = { "self","string","font", NULL };
70551f47
RD
6719
6720 self = self;
6721{
6722 _arg2 = &temp;
6723}
6724{
6725 _arg3 = &temp0;
6726}
6727{
6728 _arg4 = &temp1;
6729}
6730{
6731 _arg5 = &temp2;
6732}
107e4716 6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
70551f47 6734 return NULL;
2d091820
RD
6735 if (_argo0) {
6736 if (_argo0 == Py_None) { _arg0 = NULL; }
6737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea 6738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
70551f47
RD
6739 return NULL;
6740 }
6741 }
6742{
c8bc7bb8
RD
6743 _arg1 = wxString_in_helper(_obj1);
6744 if (_arg1 == NULL)
2cd2fac8 6745 return NULL;
70551f47 6746}
2d091820
RD
6747 if (_argo6) {
6748 if (_argo6 == Py_None) { _arg6 = NULL; }
6749 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
21f8d7ea
RD
6750 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6751 return NULL;
6752 }
6753 }
ab9bc19b 6754{
474c48f9 6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6756 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6757
474c48f9 6758 wxPyEndAllowThreads(__tstate);
4dfaa61e 6759 if (PyErr_Occurred()) return NULL;
ab9bc19b 6760} Py_INCREF(Py_None);
70551f47
RD
6761 _resultobj = Py_None;
6762{
6763 PyObject *o;
6764 o = PyInt_FromLong((long) (*_arg2));
6765 _resultobj = t_output_helper(_resultobj, o);
6766}
6767{
6768 PyObject *o;
6769 o = PyInt_FromLong((long) (*_arg3));
6770 _resultobj = t_output_helper(_resultobj, o);
6771}
6772{
6773 PyObject *o;
6774 o = PyInt_FromLong((long) (*_arg4));
6775 _resultobj = t_output_helper(_resultobj, o);
6776}
6777{
6778 PyObject *o;
6779 o = PyInt_FromLong((long) (*_arg5));
6780 _resultobj = t_output_helper(_resultobj, o);
6781}
6782{
6783 if (_obj1)
6784 delete _arg1;
6785}
6786 return _resultobj;
6787}
6788
b67a9327
RD
6789#define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6790static PyObject *_wrap_wxDC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6791 PyObject * _resultobj;
70551f47 6792 wxDC * _arg0;
b67a9327
RD
6793 wxString * _arg1;
6794 wxCoord * _arg2;
6795 int temp;
6796 wxCoord * _arg3;
6797 int temp0;
6798 wxCoord * _arg4;
6799 int temp1;
6800 wxFont * _arg5 = (wxFont *) NULL;
2d091820 6801 PyObject * _argo0 = 0;
b67a9327
RD
6802 PyObject * _obj1 = 0;
6803 PyObject * _argo5 = 0;
6804 char *_kwnames[] = { "self","text","font", NULL };
70551f47
RD
6805
6806 self = self;
ab9bc19b 6807{
b67a9327 6808 _arg2 = &temp;
70551f47 6809}
e02c03a4 6810{
b67a9327 6811 _arg3 = &temp0;
e02c03a4
RD
6812}
6813{
b67a9327 6814 _arg4 = &temp1;
e02c03a4 6815}
b67a9327 6816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames,&_argo0,&_obj1,&_argo5))
e02c03a4
RD
6817 return NULL;
6818 if (_argo0) {
6819 if (_argo0 == Py_None) { _arg0 = NULL; }
6820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
b67a9327
RD
6821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p.");
6822 return NULL;
6823 }
6824 }
6825{
6826 _arg1 = wxString_in_helper(_obj1);
6827 if (_arg1 == NULL)
6828 return NULL;
6829}
6830 if (_argo5) {
6831 if (_argo5 == Py_None) { _arg5 = NULL; }
6832 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxFont_p")) {
6833 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p.");
e02c03a4
RD
6834 return NULL;
6835 }
6836 }
6837{
474c48f9 6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 6839 wxDC_GetMultiLineTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
e02c03a4 6840
474c48f9 6841 wxPyEndAllowThreads(__tstate);
4dfaa61e 6842 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
6843} Py_INCREF(Py_None);
6844 _resultobj = Py_None;
6845{
6846 PyObject *o;
b67a9327 6847 o = PyInt_FromLong((long) (*_arg2));
e02c03a4
RD
6848 _resultobj = t_output_helper(_resultobj, o);
6849}
6850{
6851 PyObject *o;
b67a9327 6852 o = PyInt_FromLong((long) (*_arg3));
e02c03a4
RD
6853 _resultobj = t_output_helper(_resultobj, o);
6854}
b67a9327
RD
6855{
6856 PyObject *o;
6857 o = PyInt_FromLong((long) (*_arg4));
6858 _resultobj = t_output_helper(_resultobj, o);
6859}
6860{
6861 if (_obj1)
6862 delete _arg1;
6863}
6864 return _resultobj;
6865}
6866
6867#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6868static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject * _resultobj;
6870 wxColour * _result;
6871 wxDC * _arg0;
6872 PyObject * _argo0 = 0;
6873 char *_kwnames[] = { "self", NULL };
6874 char _ptemp[128];
6875
6876 self = self;
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
6878 return NULL;
6879 if (_argo0) {
6880 if (_argo0 == Py_None) { _arg0 = NULL; }
6881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6883 return NULL;
6884 }
6885 }
6886{
6887 PyThreadState* __tstate = wxPyBeginAllowThreads();
6888 _result = new wxColour (wxDC_GetTextForeground(_arg0));
6889
6890 wxPyEndAllowThreads(__tstate);
6891 if (PyErr_Occurred()) return NULL;
6892} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6893 _resultobj = Py_BuildValue("s",_ptemp);
6894 return _resultobj;
6895}
6896
6897#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6898static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6899 PyObject * _resultobj;
6900 wxDC * _arg0;
6901 double * _arg1;
6902 double temp;
6903 double * _arg2;
6904 double temp0;
6905 PyObject * _argo0 = 0;
6906 char *_kwnames[] = { "self", NULL };
6907
6908 self = self;
6909{
6910 _arg1 = &temp;
6911}
6912{
6913 _arg2 = &temp0;
6914}
6915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
6916 return NULL;
6917 if (_argo0) {
6918 if (_argo0 == Py_None) { _arg0 = NULL; }
6919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6921 return NULL;
6922 }
6923 }
6924{
6925 PyThreadState* __tstate = wxPyBeginAllowThreads();
6926 wxDC_GetUserScale(_arg0,_arg1,_arg2);
6927
6928 wxPyEndAllowThreads(__tstate);
6929 if (PyErr_Occurred()) return NULL;
6930} Py_INCREF(Py_None);
6931 _resultobj = Py_None;
6932{
6933 PyObject *o;
6934 o = PyFloat_FromDouble((double) (*_arg1));
6935 _resultobj = t_output_helper(_resultobj, o);
6936}
6937{
6938 PyObject *o;
6939 o = PyFloat_FromDouble((double) (*_arg2));
6940 _resultobj = t_output_helper(_resultobj, o);
6941}
6942 return _resultobj;
e02c03a4
RD
6943}
6944
70551f47 6945#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
107e4716 6946static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6947 PyObject * _resultobj;
b67a9327 6948 wxCoord _result;
70551f47 6949 wxDC * _arg0;
b67a9327 6950 wxCoord _arg1;
2d091820 6951 PyObject * _argo0 = 0;
107e4716 6952 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6953
6954 self = self;
b67a9327 6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
70551f47 6956 return NULL;
2d091820
RD
6957 if (_argo0) {
6958 if (_argo0 == Py_None) { _arg0 = NULL; }
6959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6961 return NULL;
6962 }
6963 }
ab9bc19b 6964{
474c48f9 6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 6966 _result = (wxCoord )wxDC_LogicalToDeviceX(_arg0,_arg1);
ab9bc19b 6967
474c48f9 6968 wxPyEndAllowThreads(__tstate);
4dfaa61e 6969 if (PyErr_Occurred()) return NULL;
b67a9327 6970} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6971 return _resultobj;
6972}
6973
6974#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
107e4716 6975static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 6976 PyObject * _resultobj;
b67a9327 6977 wxCoord _result;
70551f47 6978 wxDC * _arg0;
b67a9327 6979 wxCoord _arg1;
2d091820 6980 PyObject * _argo0 = 0;
107e4716 6981 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6982
6983 self = self;
b67a9327 6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
70551f47 6985 return NULL;
2d091820
RD
6986 if (_argo0) {
6987 if (_argo0 == Py_None) { _arg0 = NULL; }
6988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6990 return NULL;
6991 }
6992 }
ab9bc19b 6993{
474c48f9 6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 6995 _result = (wxCoord )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
ab9bc19b 6996
474c48f9 6997 wxPyEndAllowThreads(__tstate);
4dfaa61e 6998 if (PyErr_Occurred()) return NULL;
b67a9327 6999} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7000 return _resultobj;
7001}
7002
7003#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
107e4716 7004static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7005 PyObject * _resultobj;
b67a9327 7006 wxCoord _result;
70551f47 7007 wxDC * _arg0;
b67a9327 7008 wxCoord _arg1;
2d091820 7009 PyObject * _argo0 = 0;
107e4716 7010 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7011
7012 self = self;
b67a9327 7013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
70551f47 7014 return NULL;
2d091820
RD
7015 if (_argo0) {
7016 if (_argo0 == Py_None) { _arg0 = NULL; }
7017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7019 return NULL;
7020 }
7021 }
ab9bc19b 7022{
474c48f9 7023 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7024 _result = (wxCoord )wxDC_LogicalToDeviceY(_arg0,_arg1);
ab9bc19b 7025
474c48f9 7026 wxPyEndAllowThreads(__tstate);
4dfaa61e 7027 if (PyErr_Occurred()) return NULL;
b67a9327 7028} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7029 return _resultobj;
7030}
7031
7032#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
107e4716 7033static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7034 PyObject * _resultobj;
b67a9327 7035 wxCoord _result;
70551f47 7036 wxDC * _arg0;
b67a9327 7037 wxCoord _arg1;
2d091820 7038 PyObject * _argo0 = 0;
107e4716 7039 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7040
7041 self = self;
b67a9327 7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
70551f47 7043 return NULL;
2d091820
RD
7044 if (_argo0) {
7045 if (_argo0 == Py_None) { _arg0 = NULL; }
7046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7048 return NULL;
7049 }
7050 }
ab9bc19b 7051{
474c48f9 7052 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7053 _result = (wxCoord )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
ab9bc19b 7054
474c48f9 7055 wxPyEndAllowThreads(__tstate);
4dfaa61e 7056 if (PyErr_Occurred()) return NULL;
b67a9327 7057} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7058 return _resultobj;
7059}
7060
7061#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
107e4716 7062static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7063 PyObject * _resultobj;
b67a9327 7064 wxCoord _result;
70551f47 7065 wxDC * _arg0;
2d091820 7066 PyObject * _argo0 = 0;
107e4716 7067 char *_kwnames[] = { "self", NULL };
70551f47
RD
7068
7069 self = self;
107e4716 7070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
70551f47 7071 return NULL;
2d091820
RD
7072 if (_argo0) {
7073 if (_argo0 == Py_None) { _arg0 = NULL; }
7074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7076 return NULL;
7077 }
7078 }
ab9bc19b 7079{
474c48f9 7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7081 _result = (wxCoord )wxDC_MaxX(_arg0);
ab9bc19b 7082
474c48f9 7083 wxPyEndAllowThreads(__tstate);
4dfaa61e 7084 if (PyErr_Occurred()) return NULL;
b67a9327 7085} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7086 return _resultobj;
7087}
7088
7089#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
107e4716 7090static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7091 PyObject * _resultobj;
b67a9327 7092 wxCoord _result;
70551f47 7093 wxDC * _arg0;
2d091820 7094 PyObject * _argo0 = 0;
107e4716 7095 char *_kwnames[] = { "self", NULL };
70551f47
RD
7096
7097 self = self;
107e4716 7098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
70551f47 7099 return NULL;
2d091820
RD
7100 if (_argo0) {
7101 if (_argo0 == Py_None) { _arg0 = NULL; }
7102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7104 return NULL;
7105 }
7106 }
ab9bc19b 7107{
474c48f9 7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7109 _result = (wxCoord )wxDC_MaxY(_arg0);
ab9bc19b 7110
474c48f9 7111 wxPyEndAllowThreads(__tstate);
4dfaa61e 7112 if (PyErr_Occurred()) return NULL;
b67a9327 7113} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7114 return _resultobj;
7115}
7116
7117#define wxDC_MinX(_swigobj) (_swigobj->MinX())
107e4716 7118static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7119 PyObject * _resultobj;
b67a9327 7120 wxCoord _result;
70551f47 7121 wxDC * _arg0;
2d091820 7122 PyObject * _argo0 = 0;
107e4716 7123 char *_kwnames[] = { "self", NULL };
70551f47
RD
7124
7125 self = self;
107e4716 7126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
70551f47 7127 return NULL;
2d091820
RD
7128 if (_argo0) {
7129 if (_argo0 == Py_None) { _arg0 = NULL; }
7130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7132 return NULL;
7133 }
7134 }
ab9bc19b 7135{
474c48f9 7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7137 _result = (wxCoord )wxDC_MinX(_arg0);
ab9bc19b 7138
474c48f9 7139 wxPyEndAllowThreads(__tstate);
4dfaa61e 7140 if (PyErr_Occurred()) return NULL;
b67a9327 7141} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7142 return _resultobj;
7143}
7144
7145#define wxDC_MinY(_swigobj) (_swigobj->MinY())
107e4716 7146static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 7147 PyObject * _resultobj;
b67a9327 7148 wxCoord _result;
70551f47 7149 wxDC * _arg0;
2d091820 7150 PyObject * _argo0 = 0;
107e4716 7151 char *_kwnames[] = { "self", NULL };
70551f47
RD
7152
7153 self = self;
107e4716 7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
70551f47 7155 return NULL;
2d091820
RD
7156 if (_argo0) {
7157 if (_argo0 == Py_None) { _arg0 = NULL; }
7158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7160 return NULL;
7161 }
7162 }
ab9bc19b 7163{
474c48f9 7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 7165 _result = (wxCoord )wxDC_MinY(_arg0);
ab9bc19b 7166
474c48f9 7167 wxPyEndAllowThreads(__tstate);
4dfaa61e 7168 if (PyErr_Occurred()) return NULL;
b67a9327 7169} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7170 return _resultobj;
7171}
7172
7173#define wxDC_Ok(_swigobj) (_swigobj->Ok())
107e4716 7174static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7175 PyObject * _resultobj;
7176 bool _result;
7177 wxDC * _arg0;
2d091820 7178 PyObject * _argo0 = 0;
107e4716 7179 char *_kwnames[] = { "self", NULL };
70551f47
RD
7180
7181 self = self;
107e4716 7182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
70551f47 7183 return NULL;
2d091820
RD
7184 if (_argo0) {
7185 if (_argo0 == Py_None) { _arg0 = NULL; }
7186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7188 return NULL;
7189 }
7190 }
ab9bc19b 7191{
474c48f9 7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7193 _result = (bool )wxDC_Ok(_arg0);
ab9bc19b 7194
474c48f9 7195 wxPyEndAllowThreads(__tstate);
4dfaa61e 7196 if (PyErr_Occurred()) return NULL;
ab9bc19b 7197} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7198 return _resultobj;
7199}
7200
7201#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
107e4716 7202static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7203 PyObject * _resultobj;
7204 wxDC * _arg0;
b67a9327
RD
7205 wxCoord _arg1;
7206 wxCoord _arg2;
2d091820 7207 PyObject * _argo0 = 0;
107e4716 7208 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
7209
7210 self = self;
b67a9327 7211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7212 return NULL;
2d091820
RD
7213 if (_argo0) {
7214 if (_argo0 == Py_None) { _arg0 = NULL; }
7215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7217 return NULL;
7218 }
7219 }
ab9bc19b 7220{
474c48f9 7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7222 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
ab9bc19b 7223
474c48f9 7224 wxPyEndAllowThreads(__tstate);
4dfaa61e 7225 if (PyErr_Occurred()) return NULL;
ab9bc19b 7226} Py_INCREF(Py_None);
70551f47
RD
7227 _resultobj = Py_None;
7228 return _resultobj;
7229}
7230
7231#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
107e4716 7232static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7233 PyObject * _resultobj;
7234 wxDC * _arg0;
7235 wxBrush * _arg1;
2d091820
RD
7236 PyObject * _argo0 = 0;
7237 PyObject * _argo1 = 0;
107e4716 7238 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
7239
7240 self = self;
107e4716 7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
70551f47 7242 return NULL;
2d091820
RD
7243 if (_argo0) {
7244 if (_argo0 == Py_None) { _arg0 = NULL; }
7245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7247 return NULL;
7248 }
7249 }
2d091820 7250 if (_argo1) {
b67a9327 7251 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
7252 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7253 return NULL;
7254 }
7255 }
ab9bc19b 7256{
474c48f9 7257 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7258 wxDC_SetBackground(_arg0,*_arg1);
ab9bc19b 7259
474c48f9 7260 wxPyEndAllowThreads(__tstate);
4dfaa61e 7261 if (PyErr_Occurred()) return NULL;
ab9bc19b 7262} Py_INCREF(Py_None);
70551f47
RD
7263 _resultobj = Py_None;
7264 return _resultobj;
7265}
7266
7267#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
107e4716 7268static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7269 PyObject * _resultobj;
7270 wxDC * _arg0;
7271 int _arg1;
2d091820 7272 PyObject * _argo0 = 0;
107e4716 7273 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
7274
7275 self = self;
107e4716 7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
70551f47 7277 return NULL;
2d091820
RD
7278 if (_argo0) {
7279 if (_argo0 == Py_None) { _arg0 = NULL; }
7280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7282 return NULL;
7283 }
7284 }
ab9bc19b 7285{
474c48f9 7286 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7287 wxDC_SetBackgroundMode(_arg0,_arg1);
ab9bc19b 7288
474c48f9 7289 wxPyEndAllowThreads(__tstate);
4dfaa61e 7290 if (PyErr_Occurred()) return NULL;
ab9bc19b 7291} Py_INCREF(Py_None);
70551f47
RD
7292 _resultobj = Py_None;
7293 return _resultobj;
7294}
7295
7296#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7297static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7298 PyObject * _resultobj;
7299 wxDC * _arg0;
b67a9327
RD
7300 wxCoord _arg1;
7301 wxCoord _arg2;
7302 wxCoord _arg3;
7303 wxCoord _arg4;
2d091820 7304 PyObject * _argo0 = 0;
107e4716 7305 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
7306
7307 self = self;
b67a9327 7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 7309 return NULL;
2d091820
RD
7310 if (_argo0) {
7311 if (_argo0 == Py_None) { _arg0 = NULL; }
7312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7314 return NULL;
7315 }
7316 }
ab9bc19b 7317{
474c48f9 7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7319 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 7320
474c48f9 7321 wxPyEndAllowThreads(__tstate);
4dfaa61e 7322 if (PyErr_Occurred()) return NULL;
ab9bc19b 7323} Py_INCREF(Py_None);
70551f47
RD
7324 _resultobj = Py_None;
7325 return _resultobj;
7326}
7327
059a841c
RD
7328#define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7329static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject * _resultobj;
7331 wxDC * _arg0;
7332 wxRegion * _arg1;
7333 PyObject * _argo0 = 0;
7334 PyObject * _argo1 = 0;
7335 char *_kwnames[] = { "self","region", NULL };
7336
7337 self = self;
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
7339 return NULL;
7340 if (_argo0) {
7341 if (_argo0 == Py_None) { _arg0 = NULL; }
7342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
7344 return NULL;
7345 }
7346 }
7347 if (_argo1) {
b67a9327 7348 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
059a841c
RD
7349 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
7350 return NULL;
7351 }
7352 }
7353{
474c48f9 7354 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7355 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
059a841c 7356
474c48f9 7357 wxPyEndAllowThreads(__tstate);
059a841c
RD
7358 if (PyErr_Occurred()) return NULL;
7359} Py_INCREF(Py_None);
7360 _resultobj = Py_None;
7361 return _resultobj;
7362}
7363
b2a2e5bf
RD
7364#define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
7365static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject * _resultobj;
7367 wxDC * _arg0;
7368 wxRect * _arg1;
7369 PyObject * _argo0 = 0;
7370 wxRect temp;
7371 PyObject * _obj1 = 0;
7372 char *_kwnames[] = { "self","rect", NULL };
7373
7374 self = self;
7375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1))
7376 return NULL;
7377 if (_argo0) {
7378 if (_argo0 == Py_None) { _arg0 = NULL; }
7379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p.");
7381 return NULL;
7382 }
7383 }
7384{
7385 _arg1 = &temp;
7386 if (! wxRect_helper(_obj1, &_arg1))
7387 return NULL;
7388}
7389{
7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
7391 wxDC_SetClippingRect(_arg0,*_arg1);
7392
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) return NULL;
7395} Py_INCREF(Py_None);
7396 _resultobj = Py_None;
7397 return _resultobj;
7398}
7399
70551f47 7400#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
107e4716 7401static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7402 PyObject * _resultobj;
7403 wxDC * _arg0;
7404 wxPalette * _arg1;
2d091820
RD
7405 PyObject * _argo0 = 0;
7406 PyObject * _argo1 = 0;
107e4716 7407 char *_kwnames[] = { "self","colourMap", NULL };
70551f47
RD
7408
7409 self = self;
107e4716 7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
70551f47 7411 return NULL;
2d091820
RD
7412 if (_argo0) {
7413 if (_argo0 == Py_None) { _arg0 = NULL; }
7414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7416 return NULL;
7417 }
7418 }
2d091820 7419 if (_argo1) {
b67a9327 7420 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
70551f47
RD
7421 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7422 return NULL;
7423 }
7424 }
ab9bc19b 7425{
474c48f9 7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7427 wxDC_SetPalette(_arg0,*_arg1);
ab9bc19b 7428
474c48f9 7429 wxPyEndAllowThreads(__tstate);
4dfaa61e 7430 if (PyErr_Occurred()) return NULL;
ab9bc19b 7431} Py_INCREF(Py_None);
70551f47
RD
7432 _resultobj = Py_None;
7433 return _resultobj;
7434}
7435
7436#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
107e4716 7437static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7438 PyObject * _resultobj;
7439 wxDC * _arg0;
7440 wxBrush * _arg1;
2d091820
RD
7441 PyObject * _argo0 = 0;
7442 PyObject * _argo1 = 0;
107e4716 7443 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
7444
7445 self = self;
107e4716 7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
70551f47 7447 return NULL;
2d091820
RD
7448 if (_argo0) {
7449 if (_argo0 == Py_None) { _arg0 = NULL; }
7450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7452 return NULL;
7453 }
7454 }
2d091820 7455 if (_argo1) {
b67a9327 7456 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
7457 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7458 return NULL;
7459 }
7460 }
ab9bc19b 7461{
474c48f9 7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7463 wxDC_SetBrush(_arg0,*_arg1);
ab9bc19b 7464
474c48f9 7465 wxPyEndAllowThreads(__tstate);
4dfaa61e 7466 if (PyErr_Occurred()) return NULL;
ab9bc19b 7467} Py_INCREF(Py_None);
70551f47
RD
7468 _resultobj = Py_None;
7469 return _resultobj;
7470}
7471
7472#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
107e4716 7473static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7474 PyObject * _resultobj;
7475 wxDC * _arg0;
7476 wxFont * _arg1;
2d091820
RD
7477 PyObject * _argo0 = 0;
7478 PyObject * _argo1 = 0;
107e4716 7479 char *_kwnames[] = { "self","font", NULL };
70551f47
RD
7480
7481 self = self;
107e4716 7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
70551f47 7483 return NULL;
2d091820
RD
7484 if (_argo0) {
7485 if (_argo0 == Py_None) { _arg0 = NULL; }
7486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7488 return NULL;
7489 }
7490 }
2d091820 7491 if (_argo1) {
b67a9327 7492 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
70551f47
RD
7493 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7494 return NULL;
7495 }
7496 }
ab9bc19b 7497{
474c48f9 7498 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7499 wxDC_SetFont(_arg0,*_arg1);
ab9bc19b 7500
474c48f9 7501 wxPyEndAllowThreads(__tstate);
4dfaa61e 7502 if (PyErr_Occurred()) return NULL;
ab9bc19b 7503} Py_INCREF(Py_None);
70551f47
RD
7504 _resultobj = Py_None;
7505 return _resultobj;
7506}
7507
7508#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
107e4716 7509static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7510 PyObject * _resultobj;
7511 wxDC * _arg0;
7512 int _arg1;
2d091820 7513 PyObject * _argo0 = 0;
107e4716 7514 char *_kwnames[] = { "self","function", NULL };
70551f47
RD
7515
7516 self = self;
107e4716 7517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
70551f47 7518 return NULL;
2d091820
RD
7519 if (_argo0) {
7520 if (_argo0 == Py_None) { _arg0 = NULL; }
7521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7523 return NULL;
7524 }
7525 }
ab9bc19b 7526{
474c48f9 7527 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7528 wxDC_SetLogicalFunction(_arg0,_arg1);
ab9bc19b 7529
474c48f9 7530 wxPyEndAllowThreads(__tstate);
4dfaa61e 7531 if (PyErr_Occurred()) return NULL;
ab9bc19b 7532} Py_INCREF(Py_None);
70551f47
RD
7533 _resultobj = Py_None;
7534 return _resultobj;
7535}
7536
e02c03a4
RD
7537#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7538static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7539 PyObject * _resultobj;
7540 wxDC * _arg0;
7541 double _arg1;
7542 double _arg2;
7543 PyObject * _argo0 = 0;
7544 char *_kwnames[] = { "self","x","y", NULL };
7545
7546 self = self;
7547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
7548 return NULL;
7549 if (_argo0) {
7550 if (_argo0 == Py_None) { _arg0 = NULL; }
7551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7553 return NULL;
7554 }
7555 }
7556{
474c48f9 7557 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7558 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 7559
474c48f9 7560 wxPyEndAllowThreads(__tstate);
4dfaa61e 7561 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7562} Py_INCREF(Py_None);
7563 _resultobj = Py_None;
7564 return _resultobj;
7565}
7566
70551f47 7567#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
107e4716 7568static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7569 PyObject * _resultobj;
7570 wxDC * _arg0;
7571 int _arg1;
2d091820 7572 PyObject * _argo0 = 0;
107e4716 7573 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
7574
7575 self = self;
107e4716 7576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
70551f47 7577 return NULL;
2d091820
RD
7578 if (_argo0) {
7579 if (_argo0 == Py_None) { _arg0 = NULL; }
7580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7582 return NULL;
7583 }
7584 }
ab9bc19b 7585{
474c48f9 7586 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7587 wxDC_SetMapMode(_arg0,_arg1);
ab9bc19b 7588
474c48f9 7589 wxPyEndAllowThreads(__tstate);
4dfaa61e 7590 if (PyErr_Occurred()) return NULL;
ab9bc19b 7591} Py_INCREF(Py_None);
70551f47
RD
7592 _resultobj = Py_None;
7593 return _resultobj;
7594}
7595
7596#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
107e4716 7597static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7598 PyObject * _resultobj;
7599 wxDC * _arg0;
7600 bool _arg1;
2d091820 7601 PyObject * _argo0 = 0;
70551f47 7602 int tempbool1;
107e4716 7603 char *_kwnames[] = { "self","optimize", NULL };
70551f47
RD
7604
7605 self = self;
107e4716 7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
70551f47 7607 return NULL;
2d091820
RD
7608 if (_argo0) {
7609 if (_argo0 == Py_None) { _arg0 = NULL; }
7610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7612 return NULL;
7613 }
7614 }
7615 _arg1 = (bool ) tempbool1;
ab9bc19b 7616{
474c48f9 7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7618 wxDC_SetOptimization(_arg0,_arg1);
ab9bc19b 7619
474c48f9 7620 wxPyEndAllowThreads(__tstate);
4dfaa61e 7621 if (PyErr_Occurred()) return NULL;
ab9bc19b 7622} Py_INCREF(Py_None);
70551f47
RD
7623 _resultobj = Py_None;
7624 return _resultobj;
7625}
7626
7627#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
107e4716 7628static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7629 PyObject * _resultobj;
7630 wxDC * _arg0;
7631 wxPen * _arg1;
2d091820
RD
7632 PyObject * _argo0 = 0;
7633 PyObject * _argo1 = 0;
107e4716 7634 char *_kwnames[] = { "self","pen", NULL };
70551f47
RD
7635
7636 self = self;
107e4716 7637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
70551f47 7638 return NULL;
2d091820
RD
7639 if (_argo0) {
7640 if (_argo0 == Py_None) { _arg0 = NULL; }
7641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7643 return NULL;
7644 }
7645 }
2d091820 7646 if (_argo1) {
b67a9327 7647 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
70551f47
RD
7648 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7649 return NULL;
7650 }
7651 }
ab9bc19b 7652{
474c48f9 7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7654 wxDC_SetPen(_arg0,*_arg1);
ab9bc19b 7655
474c48f9 7656 wxPyEndAllowThreads(__tstate);
4dfaa61e 7657 if (PyErr_Occurred()) return NULL;
ab9bc19b 7658} Py_INCREF(Py_None);
70551f47
RD
7659 _resultobj = Py_None;
7660 return _resultobj;
7661}
7662
7663#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
107e4716 7664static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7665 PyObject * _resultobj;
7666 wxDC * _arg0;
7667 wxColour * _arg1;
2d091820 7668 PyObject * _argo0 = 0;
f6bcfd97
BP
7669 wxColour temp;
7670 PyObject * _obj1 = 0;
107e4716 7671 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
7672
7673 self = self;
f6bcfd97 7674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
70551f47 7675 return NULL;
2d091820
RD
7676 if (_argo0) {
7677 if (_argo0 == Py_None) { _arg0 = NULL; }
7678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7680 return NULL;
7681 }
7682 }
f6bcfd97
BP
7683{
7684 _arg1 = &temp;
7685 if (! wxColour_helper(_obj1, &_arg1))
70551f47 7686 return NULL;
f6bcfd97 7687}
ab9bc19b 7688{
474c48f9 7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7690 wxDC_SetTextBackground(_arg0,*_arg1);
ab9bc19b 7691
474c48f9 7692 wxPyEndAllowThreads(__tstate);
4dfaa61e 7693 if (PyErr_Occurred()) return NULL;
ab9bc19b 7694} Py_INCREF(Py_None);
70551f47
RD
7695 _resultobj = Py_None;
7696 return _resultobj;
7697}
7698
7699#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
107e4716 7700static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7701 PyObject * _resultobj;
7702 wxDC * _arg0;
7703 wxColour * _arg1;
2d091820 7704 PyObject * _argo0 = 0;
f6bcfd97
BP
7705 wxColour temp;
7706 PyObject * _obj1 = 0;
107e4716 7707 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
7708
7709 self = self;
f6bcfd97 7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
70551f47 7711 return NULL;
2d091820
RD
7712 if (_argo0) {
7713 if (_argo0 == Py_None) { _arg0 = NULL; }
7714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7716 return NULL;
7717 }
7718 }
f6bcfd97
BP
7719{
7720 _arg1 = &temp;
7721 if (! wxColour_helper(_obj1, &_arg1))
70551f47 7722 return NULL;
f6bcfd97 7723}
ab9bc19b 7724{
474c48f9 7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7726 wxDC_SetTextForeground(_arg0,*_arg1);
ab9bc19b 7727
474c48f9 7728 wxPyEndAllowThreads(__tstate);
4dfaa61e 7729 if (PyErr_Occurred()) return NULL;
ab9bc19b 7730} Py_INCREF(Py_None);
70551f47
RD
7731 _resultobj = Py_None;
7732 return _resultobj;
7733}
7734
7735#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
107e4716 7736static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7737 PyObject * _resultobj;
7738 wxDC * _arg0;
7739 double _arg1;
7740 double _arg2;
2d091820 7741 PyObject * _argo0 = 0;
107e4716 7742 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
70551f47
RD
7743
7744 self = self;
107e4716 7745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7746 return NULL;
2d091820
RD
7747 if (_argo0) {
7748 if (_argo0 == Py_None) { _arg0 = NULL; }
7749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7751 return NULL;
7752 }
7753 }
ab9bc19b 7754{
474c48f9 7755 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7756 wxDC_SetUserScale(_arg0,_arg1,_arg2);
ab9bc19b 7757
474c48f9 7758 wxPyEndAllowThreads(__tstate);
4dfaa61e 7759 if (PyErr_Occurred()) return NULL;
ab9bc19b 7760} Py_INCREF(Py_None);
70551f47
RD
7761 _resultobj = Py_None;
7762 return _resultobj;
7763}
7764
7765#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
107e4716 7766static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7767 PyObject * _resultobj;
7768 bool _result;
7769 wxDC * _arg0;
7770 wxString * _arg1;
2d091820 7771 PyObject * _argo0 = 0;
70551f47 7772 PyObject * _obj1 = 0;
107e4716 7773 char *_kwnames[] = { "self","message", NULL };
70551f47
RD
7774
7775 self = self;
107e4716 7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
70551f47 7777 return NULL;
2d091820
RD
7778 if (_argo0) {
7779 if (_argo0 == Py_None) { _arg0 = NULL; }
7780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7782 return NULL;
7783 }
7784 }
7785{
c8bc7bb8
RD
7786 _arg1 = wxString_in_helper(_obj1);
7787 if (_arg1 == NULL)
2cd2fac8 7788 return NULL;
70551f47 7789}
ab9bc19b 7790{
474c48f9 7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7792 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
ab9bc19b 7793
474c48f9 7794 wxPyEndAllowThreads(__tstate);
4dfaa61e 7795 if (PyErr_Occurred()) return NULL;
ab9bc19b 7796} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7797{
7798 if (_obj1)
7799 delete _arg1;
7800}
7801 return _resultobj;
7802}
7803
7804#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
107e4716 7805static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7806 PyObject * _resultobj;
7807 wxDC * _arg0;
2d091820 7808 PyObject * _argo0 = 0;
107e4716 7809 char *_kwnames[] = { "self", NULL };
70551f47
RD
7810
7811 self = self;
107e4716 7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
70551f47 7813 return NULL;
2d091820
RD
7814 if (_argo0) {
7815 if (_argo0 == Py_None) { _arg0 = NULL; }
7816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7818 return NULL;
7819 }
7820 }
ab9bc19b 7821{
474c48f9 7822 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7823 wxDC_StartPage(_arg0);
ab9bc19b 7824
474c48f9 7825 wxPyEndAllowThreads(__tstate);
4dfaa61e 7826 if (PyErr_Occurred()) return NULL;
ab9bc19b 7827} Py_INCREF(Py_None);
70551f47
RD
7828 _resultobj = Py_None;
7829 return _resultobj;
7830}
7831
107e4716
RD
7832#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7833static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7834 PyObject * _resultobj;
7835 wxDC * _arg0;
7836 wxBitmap * _arg1;
b67a9327
RD
7837 wxCoord _arg2;
7838 wxCoord _arg3;
107e4716 7839 int _arg4 = (int ) FALSE;
2d091820
RD
7840 PyObject * _argo0 = 0;
7841 PyObject * _argo1 = 0;
107e4716 7842 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
70551f47
RD
7843
7844 self = self;
b67a9327 7845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
70551f47 7846 return NULL;
2d091820
RD
7847 if (_argo0) {
7848 if (_argo0 == Py_None) { _arg0 = NULL; }
7849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7851 return NULL;
7852 }
7853 }
2d091820 7854 if (_argo1) {
b67a9327 7855 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
7856 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7857 return NULL;
7858 }
7859 }
ab9bc19b 7860{
474c48f9 7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7862 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
ab9bc19b 7863
474c48f9 7864 wxPyEndAllowThreads(__tstate);
4dfaa61e 7865 if (PyErr_Occurred()) return NULL;
ab9bc19b 7866} Py_INCREF(Py_None);
70551f47
RD
7867 _resultobj = Py_None;
7868 return _resultobj;
7869}
7870
e02c03a4
RD
7871#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7872static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject * _resultobj;
7874 bool _result;
7875 wxDC * _arg0;
7876 PyObject * _argo0 = 0;
7877 char *_kwnames[] = { "self", NULL };
7878
7879 self = self;
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
7881 return NULL;
7882 if (_argo0) {
7883 if (_argo0 == Py_None) { _arg0 = NULL; }
7884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7886 return NULL;
7887 }
7888 }
7889{
474c48f9 7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7891 _result = (bool )wxDC_CanDrawBitmap(_arg0);
e02c03a4 7892
474c48f9 7893 wxPyEndAllowThreads(__tstate);
4dfaa61e 7894 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7895} _resultobj = Py_BuildValue("i",_result);
7896 return _resultobj;
7897}
7898
7899#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7900static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7901 PyObject * _resultobj;
7902 bool _result;
7903 wxDC * _arg0;
7904 PyObject * _argo0 = 0;
7905 char *_kwnames[] = { "self", NULL };
7906
7907 self = self;
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
7909 return NULL;
7910 if (_argo0) {
7911 if (_argo0 == Py_None) { _arg0 = NULL; }
7912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7914 return NULL;
7915 }
7916 }
7917{
474c48f9 7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7919 _result = (bool )wxDC_CanGetTextExtent(_arg0);
e02c03a4 7920
474c48f9 7921 wxPyEndAllowThreads(__tstate);
4dfaa61e 7922 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7923} _resultobj = Py_BuildValue("i",_result);
7924 return _resultobj;
7925}
7926
7927#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7928static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject * _resultobj;
7930 int _result;
7931 wxDC * _arg0;
7932 PyObject * _argo0 = 0;
7933 char *_kwnames[] = { "self", NULL };
7934
7935 self = self;
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
7937 return NULL;
7938 if (_argo0) {
7939 if (_argo0 == Py_None) { _arg0 = NULL; }
7940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7942 return NULL;
7943 }
7944 }
7945{
474c48f9 7946 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7947 _result = (int )wxDC_GetDepth(_arg0);
e02c03a4 7948
474c48f9 7949 wxPyEndAllowThreads(__tstate);
4dfaa61e 7950 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7951} _resultobj = Py_BuildValue("i",_result);
7952 return _resultobj;
7953}
7954
7955#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7956static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
7957 PyObject * _resultobj;
7958 wxSize * _result;
7959 wxDC * _arg0;
7960 PyObject * _argo0 = 0;
7961 char *_kwnames[] = { "self", NULL };
7962 char _ptemp[128];
7963
7964 self = self;
7965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
7966 return NULL;
7967 if (_argo0) {
7968 if (_argo0 == Py_None) { _arg0 = NULL; }
7969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7971 return NULL;
7972 }
7973 }
7974{
474c48f9 7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7976 _result = new wxSize (wxDC_GetPPI(_arg0));
e02c03a4 7977
474c48f9 7978 wxPyEndAllowThreads(__tstate);
4dfaa61e 7979 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7980} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7981 _resultobj = Py_BuildValue("s",_ptemp);
7982 return _resultobj;
7983}
7984
7985#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7986static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject * _resultobj;
7988 wxDC * _arg0;
7989 int * _arg1;
7990 int temp;
7991 int * _arg2;
7992 int temp0;
7993 PyObject * _argo0 = 0;
7994 char *_kwnames[] = { "self", NULL };
7995
7996 self = self;
7997{
7998 _arg1 = &temp;
7999}
8000{
8001 _arg2 = &temp0;
8002}
8003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8004 return NULL;
8005 if (_argo0) {
8006 if (_argo0 == Py_None) { _arg0 = NULL; }
8007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8009 return NULL;
8010 }
8011 }
8012{
474c48f9 8013 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8014 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8015
474c48f9 8016 wxPyEndAllowThreads(__tstate);
4dfaa61e 8017 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8018} Py_INCREF(Py_None);
8019 _resultobj = Py_None;
8020{
8021 PyObject *o;
8022 o = PyInt_FromLong((long) (*_arg1));
8023 _resultobj = t_output_helper(_resultobj, o);
8024}
8025{
8026 PyObject *o;
8027 o = PyInt_FromLong((long) (*_arg2));
8028 _resultobj = t_output_helper(_resultobj, o);
8029}
8030 return _resultobj;
8031}
8032
8033#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8034static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8035 PyObject * _resultobj;
8036 wxDC * _arg0;
8037 int _arg1;
8038 int _arg2;
8039 PyObject * _argo0 = 0;
8040 char *_kwnames[] = { "self","x","y", NULL };
8041
8042 self = self;
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8044 return NULL;
8045 if (_argo0) {
8046 if (_argo0 == Py_None) { _arg0 = NULL; }
8047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8049 return NULL;
8050 }
8051 }
8052{
474c48f9 8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8054 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8055
474c48f9 8056 wxPyEndAllowThreads(__tstate);
4dfaa61e 8057 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8058} Py_INCREF(Py_None);
8059 _resultobj = Py_None;
8060 return _resultobj;
8061}
8062
8063#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8064static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8065 PyObject * _resultobj;
8066 wxDC * _arg0;
8067 int * _arg1;
8068 int temp;
8069 int * _arg2;
8070 int temp0;
8071 PyObject * _argo0 = 0;
8072 char *_kwnames[] = { "self", NULL };
8073
8074 self = self;
8075{
8076 _arg1 = &temp;
8077}
8078{
8079 _arg2 = &temp0;
8080}
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8082 return NULL;
8083 if (_argo0) {
8084 if (_argo0 == Py_None) { _arg0 = NULL; }
8085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8087 return NULL;
8088 }
8089 }
8090{
474c48f9 8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8092 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
e02c03a4 8093
474c48f9 8094 wxPyEndAllowThreads(__tstate);
4dfaa61e 8095 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8096} Py_INCREF(Py_None);
8097 _resultobj = Py_None;
8098{
8099 PyObject *o;
8100 o = PyInt_FromLong((long) (*_arg1));
8101 _resultobj = t_output_helper(_resultobj, o);
8102}
8103{
8104 PyObject *o;
8105 o = PyInt_FromLong((long) (*_arg2));
8106 _resultobj = t_output_helper(_resultobj, o);
8107}
8108 return _resultobj;
8109}
8110
8111#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8112static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject * _resultobj;
8114 wxDC * _arg0;
8115 bool _arg1;
8116 bool _arg2;
8117 PyObject * _argo0 = 0;
8118 int tempbool1;
8119 int tempbool2;
8120 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
8121
8122 self = self;
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
8124 return NULL;
8125 if (_argo0) {
8126 if (_argo0 == Py_None) { _arg0 = NULL; }
8127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8129 return NULL;
8130 }
8131 }
8132 _arg1 = (bool ) tempbool1;
8133 _arg2 = (bool ) tempbool2;
8134{
474c48f9 8135 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8136 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
e02c03a4 8137
474c48f9 8138 wxPyEndAllowThreads(__tstate);
4dfaa61e 8139 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8140} Py_INCREF(Py_None);
8141 _resultobj = Py_None;
8142 return _resultobj;
8143}
8144
f6bcfd97
BP
8145#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8146static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8147 PyObject * _resultobj;
8148 wxDC * _arg0;
8149 int _arg1;
8150 int _arg2;
8151 PyObject * _argo0 = 0;
8152 char *_kwnames[] = { "self","x","y", NULL };
8153
8154 self = self;
8155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
8156 return NULL;
8157 if (_argo0) {
8158 if (_argo0 == Py_None) { _arg0 = NULL; }
8159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8161 return NULL;
8162 }
8163 }
8164{
474c48f9 8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8166 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
f6bcfd97 8167
474c48f9 8168 wxPyEndAllowThreads(__tstate);
4dfaa61e 8169 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
8170} Py_INCREF(Py_None);
8171 _resultobj = Py_None;
8172 return _resultobj;
8173}
8174
8175#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8176static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject * _resultobj;
8178 wxDC * _arg0;
8179 PyObject * _argo0 = 0;
8180 char *_kwnames[] = { "self", NULL };
8181
8182 self = self;
8183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
8184 return NULL;
8185 if (_argo0) {
8186 if (_argo0 == Py_None) { _arg0 = NULL; }
8187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8189 return NULL;
8190 }
8191 }
8192{
474c48f9 8193 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8194 wxDC_ResetBoundingBox(_arg0);
f6bcfd97 8195
474c48f9 8196 wxPyEndAllowThreads(__tstate);
4dfaa61e 8197 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
8198} Py_INCREF(Py_None);
8199 _resultobj = Py_None;
8200 return _resultobj;
8201}
8202
3bcd5e1c
RD
8203static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8204 PyObject * _resultobj;
8205 wxDC * _arg0;
8206 int * _arg1;
8207 int temp;
8208 int * _arg2;
8209 int temp0;
8210 int * _arg3;
8211 int temp1;
8212 int * _arg4;
8213 int temp2;
8214 PyObject * _argo0 = 0;
8215 char *_kwnames[] = { "self", NULL };
8216
8217 self = self;
8218{
8219 _arg1 = &temp;
8220}
8221{
8222 _arg2 = &temp0;
8223}
8224{
8225 _arg3 = &temp1;
8226}
8227{
8228 _arg4 = &temp2;
8229}
8230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
8231 return NULL;
8232 if (_argo0) {
8233 if (_argo0 == Py_None) { _arg0 = NULL; }
8234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
8236 return NULL;
8237 }
8238 }
8239{
474c48f9 8240 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8241 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
3bcd5e1c 8242
474c48f9 8243 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
8244 if (PyErr_Occurred()) return NULL;
8245} Py_INCREF(Py_None);
8246 _resultobj = Py_None;
8247{
8248 PyObject *o;
8249 o = PyInt_FromLong((long) (*_arg1));
8250 _resultobj = t_output_helper(_resultobj, o);
8251}
8252{
8253 PyObject *o;
8254 o = PyInt_FromLong((long) (*_arg2));
8255 _resultobj = t_output_helper(_resultobj, o);
8256}
8257{
8258 PyObject *o;
8259 o = PyInt_FromLong((long) (*_arg3));
8260 _resultobj = t_output_helper(_resultobj, o);
8261}
8262{
8263 PyObject *o;
8264 o = PyInt_FromLong((long) (*_arg4));
8265 _resultobj = t_output_helper(_resultobj, o);
8266}
8267 return _resultobj;
8268}
8269
b67a9327
RD
8270static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8271 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
8272 }
8273static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
8274 PyObject * _resultobj;
8275 PyObject * _result;
8276 wxDC * _arg0;
8277 PyObject * _arg1;
8278 PyObject * _arg2;
8279 PyObject * _arg3;
8280 PyObject * _argo0 = 0;
8281 PyObject * _obj1 = 0;
8282 PyObject * _obj2 = 0;
8283 PyObject * _obj3 = 0;
8284 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
4eb65923 8285
b67a9327
RD
8286 self = self;
8287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8288 return NULL;
8289 if (_argo0) {
8290 if (_argo0 == Py_None) { _arg0 = NULL; }
8291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
8293 return NULL;
8294 }
8295 }
8296{
8297 _arg1 = _obj1;
8298}
8299{
8300 _arg2 = _obj2;
8301}
8302{
8303 _arg3 = _obj3;
8304}
8305{
8306 PyThreadState* __tstate = wxPyBeginAllowThreads();
8307 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2,_arg3);
3bcd5e1c 8308
b67a9327
RD
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) return NULL;
8311}{
8312 _resultobj = _result;
8313}
8314 return _resultobj;
8315}
3bcd5e1c 8316
b67a9327
RD
8317static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8318 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
8319 }
8320static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject * _resultobj;
8322 PyObject * _result;
8323 wxDC * _arg0;
8324 PyObject * _arg1;
8325 PyObject * _arg2;
8326 PyObject * _arg3;
8327 PyObject * _argo0 = 0;
8328 PyObject * _obj1 = 0;
8329 PyObject * _obj2 = 0;
8330 PyObject * _obj3 = 0;
8331 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
3bcd5e1c 8332
b67a9327
RD
8333 self = self;
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8335 return NULL;
8336 if (_argo0) {
8337 if (_argo0 == Py_None) { _arg0 = NULL; }
8338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
8340 return NULL;
8341 }
8342 }
8343{
8344 _arg1 = _obj1;
8345}
8346{
8347 _arg2 = _obj2;
8348}
8349{
8350 _arg3 = _obj3;
8351}
8352{
8353 PyThreadState* __tstate = wxPyBeginAllowThreads();
8354 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2,_arg3);
3bcd5e1c 8355
b67a9327
RD
8356 wxPyEndAllowThreads(__tstate);
8357 if (PyErr_Occurred()) return NULL;
8358}{
8359 _resultobj = _result;
8360}
8361 return _resultobj;
8362}
4eb65923 8363
b67a9327
RD
8364static PyObject * wxDC__DrawRectangleList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8365 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3bcd5e1c 8366 }
b67a9327 8367static PyObject *_wrap_wxDC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
3bcd5e1c
RD
8368 PyObject * _resultobj;
8369 PyObject * _result;
8370 wxDC * _arg0;
8371 PyObject * _arg1;
8372 PyObject * _arg2;
b67a9327 8373 PyObject * _arg3;
3bcd5e1c
RD
8374 PyObject * _argo0 = 0;
8375 PyObject * _obj1 = 0;
8376 PyObject * _obj2 = 0;
b67a9327
RD
8377 PyObject * _obj3 = 0;
8378 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
3bcd5e1c
RD
8379
8380 self = self;
b67a9327 8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawRectangleList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
3bcd5e1c
RD
8382 return NULL;
8383 if (_argo0) {
8384 if (_argo0 == Py_None) { _arg0 = NULL; }
8385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
b67a9327 8386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p.");
3bcd5e1c
RD
8387 return NULL;
8388 }
8389 }
8390{
8391 _arg1 = _obj1;
8392}
8393{
8394 _arg2 = _obj2;
8395}
b67a9327
RD
8396{
8397 _arg3 = _obj3;
8398}
3bcd5e1c 8399{
474c48f9 8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 8401 _result = (PyObject *)wxDC__DrawRectangleList(_arg0,_arg1,_arg2,_arg3);
3bcd5e1c 8402
474c48f9 8403 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
8404 if (PyErr_Occurred()) return NULL;
8405}{
8406 _resultobj = _result;
8407}
8408 return _resultobj;
8409}
8410
b67a9327
RD
8411static PyObject * wxDC__DrawEllipseList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8412 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
8413 }
8414static PyObject *_wrap_wxDC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
8415 PyObject * _resultobj;
8416 PyObject * _result;
8417 wxDC * _arg0;
8418 PyObject * _arg1;
8419 PyObject * _arg2;
8420 PyObject * _arg3;
8421 PyObject * _argo0 = 0;
8422 PyObject * _obj1 = 0;
8423 PyObject * _obj2 = 0;
8424 PyObject * _obj3 = 0;
8425 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
3bcd5e1c 8426
b67a9327
RD
8427 self = self;
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawEllipseList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8429 return NULL;
8430 if (_argo0) {
8431 if (_argo0 == Py_None) { _arg0 = NULL; }
8432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p.");
8434 return NULL;
8435 }
8436 }
8437{
8438 _arg1 = _obj1;
8439}
8440{
8441 _arg2 = _obj2;
8442}
8443{
8444 _arg3 = _obj3;
8445}
8446{
8447 PyThreadState* __tstate = wxPyBeginAllowThreads();
8448 _result = (PyObject *)wxDC__DrawEllipseList(_arg0,_arg1,_arg2,_arg3);
3bcd5e1c 8449
b67a9327
RD
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) return NULL;
8452}{
8453 _resultobj = _result;
8454}
8455 return _resultobj;
8456}
3bcd5e1c 8457
b67a9327
RD
8458static PyObject * wxDC__DrawPolygonList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) {
8459 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
8460 }
8461static PyObject *_wrap_wxDC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
8462 PyObject * _resultobj;
8463 PyObject * _result;
8464 wxDC * _arg0;
8465 PyObject * _arg1;
8466 PyObject * _arg2;
8467 PyObject * _arg3;
8468 PyObject * _argo0 = 0;
8469 PyObject * _obj1 = 0;
8470 PyObject * _obj2 = 0;
8471 PyObject * _obj3 = 0;
8472 char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL };
3bcd5e1c 8473
b67a9327
RD
8474 self = self;
8475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPolygonList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
8476 return NULL;
8477 if (_argo0) {
8478 if (_argo0 == Py_None) { _arg0 = NULL; }
8479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p.");
8481 return NULL;
8482 }
8483 }
8484{
8485 _arg1 = _obj1;
8486}
8487{
8488 _arg2 = _obj2;
8489}
8490{
8491 _arg3 = _obj3;
8492}
8493{
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 _result = (PyObject *)wxDC__DrawPolygonList(_arg0,_arg1,_arg2,_arg3);
4eb65923 8496
b67a9327
RD
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) return NULL;
8499}{
8500 _resultobj = _result;
8501}
8502 return _resultobj;
8503}
4eb65923 8504
b67a9327
RD
8505static PyObject * wxDC__DrawTextList(wxDC *self,PyObject * textList,PyObject * pyPoints,PyObject * foregroundList,PyObject * backgroundList) {
8506 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3bcd5e1c 8507 }
b67a9327 8508static PyObject *_wrap_wxDC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
3bcd5e1c
RD
8509 PyObject * _resultobj;
8510 PyObject * _result;
8511 wxDC * _arg0;
8512 PyObject * _arg1;
8513 PyObject * _arg2;
b67a9327
RD
8514 PyObject * _arg3;
8515 PyObject * _arg4;
3bcd5e1c
RD
8516 PyObject * _argo0 = 0;
8517 PyObject * _obj1 = 0;
8518 PyObject * _obj2 = 0;
b67a9327
RD
8519 PyObject * _obj3 = 0;
8520 PyObject * _obj4 = 0;
8521 char *_kwnames[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL };
3bcd5e1c
RD
8522
8523 self = self;
b67a9327 8524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxDC__DrawTextList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4))
3bcd5e1c
RD
8525 return NULL;
8526 if (_argo0) {
8527 if (_argo0 == Py_None) { _arg0 = NULL; }
8528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
b67a9327 8529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p.");
3bcd5e1c
RD
8530 return NULL;
8531 }
8532 }
8533{
8534 _arg1 = _obj1;
8535}
8536{
8537 _arg2 = _obj2;
8538}
b67a9327
RD
8539{
8540 _arg3 = _obj3;
8541}
8542{
8543 _arg4 = _obj4;
8544}
3bcd5e1c 8545{
474c48f9 8546 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 8547 _result = (PyObject *)wxDC__DrawTextList(_arg0,_arg1,_arg2,_arg3,_arg4);
3bcd5e1c 8548
474c48f9 8549 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
8550 if (PyErr_Occurred()) return NULL;
8551}{
8552 _resultobj = _result;
8553}
8554 return _resultobj;
8555}
8556
70551f47
RD
8557static void *SwigwxMemoryDCTowxDC(void *ptr) {
8558 wxMemoryDC *src;
8559 wxDC *dest;
8560 src = (wxMemoryDC *) ptr;
8561 dest = (wxDC *) src;
8562 return (void *) dest;
8563}
8564
9df61a29
RD
8565static void *SwigwxMemoryDCTowxObject(void *ptr) {
8566 wxMemoryDC *src;
8567 wxObject *dest;
8568 src = (wxMemoryDC *) ptr;
8569 dest = (wxObject *) src;
8570 return (void *) dest;
8571}
8572
70551f47 8573#define new_wxMemoryDC() (new wxMemoryDC())
107e4716 8574static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8575 PyObject * _resultobj;
8576 wxMemoryDC * _result;
107e4716 8577 char *_kwnames[] = { NULL };
70551f47
RD
8578 char _ptemp[128];
8579
8580 self = self;
107e4716 8581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
70551f47 8582 return NULL;
ab9bc19b 8583{
474c48f9 8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8585 _result = (wxMemoryDC *)new_wxMemoryDC();
ab9bc19b 8586
474c48f9 8587 wxPyEndAllowThreads(__tstate);
4dfaa61e 8588 if (PyErr_Occurred()) return NULL;
2d091820
RD
8589} if (_result) {
8590 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
8591 _resultobj = Py_BuildValue("s",_ptemp);
8592 } else {
8593 Py_INCREF(Py_None);
8594 _resultobj = Py_None;
8595 }
70551f47
RD
8596 return _resultobj;
8597}
8598
8599#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
107e4716 8600static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8601 PyObject * _resultobj;
8602 wxMemoryDC * _arg0;
8603 wxBitmap * _arg1;
2d091820
RD
8604 PyObject * _argo0 = 0;
8605 PyObject * _argo1 = 0;
107e4716 8606 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
8607
8608 self = self;
107e4716 8609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
70551f47 8610 return NULL;
2d091820
RD
8611 if (_argo0) {
8612 if (_argo0 == Py_None) { _arg0 = NULL; }
8613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
70551f47
RD
8614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8615 return NULL;
8616 }
8617 }
2d091820 8618 if (_argo1) {
b67a9327 8619 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
8620 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8621 return NULL;
8622 }
8623 }
ab9bc19b 8624{
474c48f9 8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8626 wxMemoryDC_SelectObject(_arg0,*_arg1);
ab9bc19b 8627
474c48f9 8628 wxPyEndAllowThreads(__tstate);
4dfaa61e 8629 if (PyErr_Occurred()) return NULL;
ab9bc19b 8630} Py_INCREF(Py_None);
70551f47
RD
8631 _resultobj = Py_None;
8632 return _resultobj;
8633}
8634
a884bee5
RD
8635static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) {
8636 wxBufferedDC *src;
8637 wxMemoryDC *dest;
8638 src = (wxBufferedDC *) ptr;
8639 dest = (wxMemoryDC *) src;
8640 return (void *) dest;
8641}
8642
8643static void *SwigwxBufferedDCTowxDC(void *ptr) {
8644 wxBufferedDC *src;
8645 wxDC *dest;
8646 src = (wxBufferedDC *) ptr;
8647 dest = (wxDC *) src;
8648 return (void *) dest;
8649}
8650
8651static void *SwigwxBufferedDCTowxObject(void *ptr) {
8652 wxBufferedDC *src;
8653 wxObject *dest;
8654 src = (wxBufferedDC *) ptr;
8655 dest = (wxObject *) src;
8656 return (void *) dest;
8657}
8658
8659#define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8660static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8661 PyObject * _resultobj;
8662 wxBufferedDC * _result;
8663 wxDC * _arg0;
8664 wxBitmap * _arg1;
8665 PyObject * _argo0 = 0;
8666 PyObject * _argo1 = 0;
8667 char *_kwnames[] = { "dc","buffer", NULL };
8668 char _ptemp[128];
8669
8670 self = self;
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1))
8672 return NULL;
8673 if (_argo0) {
8674 if (_argo0 == Py_None) { _arg0 = NULL; }
8675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p.");
8677 return NULL;
8678 }
8679 }
8680 if (_argo1) {
b67a9327 8681 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
a884bee5
RD
8682 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p.");
8683 return NULL;
8684 }
8685 }
8686{
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1);
8689
8690 wxPyEndAllowThreads(__tstate);
8691 if (PyErr_Occurred()) return NULL;
8692} if (_result) {
8693 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
8694 _resultobj = Py_BuildValue("s",_ptemp);
8695 } else {
8696 Py_INCREF(Py_None);
8697 _resultobj = Py_None;
8698 }
8699 return _resultobj;
8700}
8701
8702#define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1))
8703static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
8704 PyObject * _resultobj;
8705 wxBufferedDC * _result;
8706 wxDC * _arg0;
8707 wxSize * _arg1;
8708 PyObject * _argo0 = 0;
8709 wxSize temp;
8710 PyObject * _obj1 = 0;
8711 char *_kwnames[] = { "dc","area", NULL };
8712 char _ptemp[128];
8713
8714 self = self;
8715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1))
8716 return NULL;
8717 if (_argo0) {
8718 if (_argo0 == Py_None) { _arg0 = NULL; }
8719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p.");
8721 return NULL;
8722 }
8723 }
8724{
8725 _arg1 = &temp;
8726 if (! wxSize_helper(_obj1, &_arg1))
8727 return NULL;
8728}
8729{
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) return NULL;
8735} if (_result) {
8736 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p");
8737 _resultobj = Py_BuildValue("s",_ptemp);
8738 } else {
8739 Py_INCREF(Py_None);
8740 _resultobj = Py_None;
8741 }
8742 return _resultobj;
8743}
8744
301dfd67
RD
8745#define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
8746static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
8747 PyObject * _resultobj;
8748 wxBufferedDC * _arg0;
8749 PyObject * _argo0 = 0;
8750 char *_kwnames[] = { "self", NULL };
8751
8752 self = self;
8753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0))
8754 return NULL;
8755 if (_argo0) {
8756 if (_argo0 == Py_None) { _arg0 = NULL; }
8757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) {
8758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
8759 return NULL;
8760 }
8761 }
8762{
8763 PyThreadState* __tstate = wxPyBeginAllowThreads();
8764 wxBufferedDC_UnMask(_arg0);
8765
8766 wxPyEndAllowThreads(__tstate);
8767 if (PyErr_Occurred()) return NULL;
8768} Py_INCREF(Py_None);
8769 _resultobj = Py_None;
8770 return _resultobj;
8771}
8772
a884bee5
RD
8773static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
8774 wxBufferedPaintDC *src;
8775 wxBufferedDC *dest;
8776 src = (wxBufferedPaintDC *) ptr;
8777 dest = (wxBufferedDC *) src;
8778 return (void *) dest;
8779}
8780
8781static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
8782 wxBufferedPaintDC *src;
8783 wxMemoryDC *dest;
8784 src = (wxBufferedPaintDC *) ptr;
8785 dest = (wxMemoryDC *) src;
8786 return (void *) dest;
8787}
8788
8789static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
8790 wxBufferedPaintDC *src;
8791 wxDC *dest;
8792 src = (wxBufferedPaintDC *) ptr;
8793 dest = (wxDC *) src;
8794 return (void *) dest;
8795}
8796
8797static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
8798 wxBufferedPaintDC *src;
8799 wxObject *dest;
8800 src = (wxBufferedPaintDC *) ptr;
8801 dest = (wxObject *) src;
8802 return (void *) dest;
8803}
8804
8805#define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
8806static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8807 PyObject * _resultobj;
8808 wxBufferedPaintDC * _result;
8809 wxWindow * _arg0;
8810 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
8811 PyObject * _argo0 = 0;
8812 PyObject * _argo1 = 0;
8813 char *_kwnames[] = { "window","buffer", NULL };
8814 char _ptemp[128];
8815
8816 self = self;
8817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
8818 return NULL;
8819 if (_argo0) {
8820 if (_argo0 == Py_None) { _arg0 = NULL; }
8821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
8823 return NULL;
8824 }
8825 }
8826 if (_argo1) {
b67a9327 8827 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
a884bee5
RD
8828 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
8829 return NULL;
8830 }
8831 }
8832{
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) return NULL;
8838} if (_result) {
8839 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
8840 _resultobj = Py_BuildValue("s",_ptemp);
8841 } else {
8842 Py_INCREF(Py_None);
8843 _resultobj = Py_None;
8844 }
8845 return _resultobj;
8846}
8847
70551f47
RD
8848static void *SwigwxScreenDCTowxDC(void *ptr) {
8849 wxScreenDC *src;
8850 wxDC *dest;
8851 src = (wxScreenDC *) ptr;
8852 dest = (wxDC *) src;
8853 return (void *) dest;
8854}
8855
9df61a29
RD
8856static void *SwigwxScreenDCTowxObject(void *ptr) {
8857 wxScreenDC *src;
8858 wxObject *dest;
8859 src = (wxScreenDC *) ptr;
8860 dest = (wxObject *) src;
8861 return (void *) dest;
8862}
8863
70551f47 8864#define new_wxScreenDC() (new wxScreenDC())
107e4716 8865static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8866 PyObject * _resultobj;
8867 wxScreenDC * _result;
107e4716 8868 char *_kwnames[] = { NULL };
70551f47
RD
8869 char _ptemp[128];
8870
8871 self = self;
107e4716 8872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
70551f47 8873 return NULL;
ab9bc19b 8874{
474c48f9 8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8876 _result = (wxScreenDC *)new_wxScreenDC();
ab9bc19b 8877
474c48f9 8878 wxPyEndAllowThreads(__tstate);
4dfaa61e 8879 if (PyErr_Occurred()) return NULL;
2d091820
RD
8880} if (_result) {
8881 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
8882 _resultobj = Py_BuildValue("s",_ptemp);
8883 } else {
8884 Py_INCREF(Py_None);
8885 _resultobj = Py_None;
8886 }
70551f47
RD
8887 return _resultobj;
8888}
8889
2fc99549
RD
8890#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8891static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8892 PyObject * _resultobj;
8893 bool _result;
8894 wxScreenDC * _arg0;
8895 wxWindow * _arg1;
2d091820
RD
8896 PyObject * _argo0 = 0;
8897 PyObject * _argo1 = 0;
107e4716 8898 char *_kwnames[] = { "self","window", NULL };
70551f47
RD
8899
8900 self = self;
2fc99549 8901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
70551f47 8902 return NULL;
2d091820
RD
8903 if (_argo0) {
8904 if (_argo0 == Py_None) { _arg0 = NULL; }
8905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 8906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
70551f47
RD
8907 return NULL;
8908 }
8909 }
2d091820
RD
8910 if (_argo1) {
8911 if (_argo1 == Py_None) { _arg1 = NULL; }
8912 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2fc99549 8913 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
70551f47
RD
8914 return NULL;
8915 }
8916 }
ab9bc19b 8917{
474c48f9 8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8919 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
ab9bc19b 8920
474c48f9 8921 wxPyEndAllowThreads(__tstate);
4dfaa61e 8922 if (PyErr_Occurred()) return NULL;
ab9bc19b 8923} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8924 return _resultobj;
8925}
8926
2fc99549
RD
8927#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8928static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8929 PyObject * _resultobj;
8930 bool _result;
8931 wxScreenDC * _arg0;
2d091820
RD
8932 wxRect * _arg1 = (wxRect *) NULL;
8933 PyObject * _argo0 = 0;
37f6a977
RD
8934 wxRect temp;
8935 PyObject * _obj1 = 0;
107e4716 8936 char *_kwnames[] = { "self","rect", NULL };
70551f47
RD
8937
8938 self = self;
2fc99549 8939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
70551f47 8940 return NULL;
2d091820
RD
8941 if (_argo0) {
8942 if (_argo0 == Py_None) { _arg0 = NULL; }
8943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 8944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
70551f47
RD
8945 return NULL;
8946 }
8947 }
37f6a977
RD
8948 if (_obj1)
8949{
8950 _arg1 = &temp;
8951 if (! wxRect_helper(_obj1, &_arg1))
70551f47 8952 return NULL;
37f6a977 8953}
ab9bc19b 8954{
474c48f9 8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8956 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
ab9bc19b 8957
474c48f9 8958 wxPyEndAllowThreads(__tstate);
4dfaa61e 8959 if (PyErr_Occurred()) return NULL;
ab9bc19b 8960} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8961 return _resultobj;
8962}
8963
8964#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
107e4716 8965static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8966 PyObject * _resultobj;
8967 bool _result;
8968 wxScreenDC * _arg0;
2d091820 8969 PyObject * _argo0 = 0;
107e4716 8970 char *_kwnames[] = { "self", NULL };
70551f47
RD
8971
8972 self = self;
107e4716 8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
70551f47 8974 return NULL;
2d091820
RD
8975 if (_argo0) {
8976 if (_argo0 == Py_None) { _arg0 = NULL; }
8977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
70551f47
RD
8978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8979 return NULL;
8980 }
8981 }
ab9bc19b 8982{
474c48f9 8983 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8984 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
ab9bc19b 8985
474c48f9 8986 wxPyEndAllowThreads(__tstate);
4dfaa61e 8987 if (PyErr_Occurred()) return NULL;
ab9bc19b 8988} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8989 return _resultobj;
8990}
8991
8992static void *SwigwxClientDCTowxDC(void *ptr) {
8993 wxClientDC *src;
8994 wxDC *dest;
8995 src = (wxClientDC *) ptr;
8996 dest = (wxDC *) src;
8997 return (void *) dest;
8998}
8999
9df61a29
RD
9000static void *SwigwxClientDCTowxObject(void *ptr) {
9001 wxClientDC *src;
9002 wxObject *dest;
9003 src = (wxClientDC *) ptr;
9004 dest = (wxObject *) src;
9005 return (void *) dest;
9006}
9007
70551f47 9008#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
107e4716 9009static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9010 PyObject * _resultobj;
9011 wxClientDC * _result;
9012 wxWindow * _arg0;
2d091820 9013 PyObject * _argo0 = 0;
107e4716 9014 char *_kwnames[] = { "win", NULL };
70551f47
RD
9015 char _ptemp[128];
9016
9017 self = self;
107e4716 9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
70551f47 9019 return NULL;
2d091820
RD
9020 if (_argo0) {
9021 if (_argo0 == Py_None) { _arg0 = NULL; }
9022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9024 return NULL;
9025 }
9026 }
ab9bc19b 9027{
474c48f9 9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9029 _result = (wxClientDC *)new_wxClientDC(_arg0);
ab9bc19b 9030
474c48f9 9031 wxPyEndAllowThreads(__tstate);
4dfaa61e 9032 if (PyErr_Occurred()) return NULL;
2d091820
RD
9033} if (_result) {
9034 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9035 _resultobj = Py_BuildValue("s",_ptemp);
9036 } else {
9037 Py_INCREF(Py_None);
9038 _resultobj = Py_None;
9039 }
70551f47
RD
9040 return _resultobj;
9041}
9042
9043static void *SwigwxPaintDCTowxDC(void *ptr) {
9044 wxPaintDC *src;
9045 wxDC *dest;
9046 src = (wxPaintDC *) ptr;
9047 dest = (wxDC *) src;
9048 return (void *) dest;
9049}
9050
9df61a29
RD
9051static void *SwigwxPaintDCTowxObject(void *ptr) {
9052 wxPaintDC *src;
9053 wxObject *dest;
9054 src = (wxPaintDC *) ptr;
9055 dest = (wxObject *) src;
9056 return (void *) dest;
9057}
9058
70551f47 9059#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
107e4716 9060static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9061 PyObject * _resultobj;
9062 wxPaintDC * _result;
9063 wxWindow * _arg0;
2d091820 9064 PyObject * _argo0 = 0;
107e4716 9065 char *_kwnames[] = { "win", NULL };
70551f47
RD
9066 char _ptemp[128];
9067
9068 self = self;
107e4716 9069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
70551f47 9070 return NULL;
2d091820
RD
9071 if (_argo0) {
9072 if (_argo0 == Py_None) { _arg0 = NULL; }
9073 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9074 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9075 return NULL;
9076 }
9077 }
ab9bc19b 9078{
474c48f9 9079 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9080 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
ab9bc19b 9081
474c48f9 9082 wxPyEndAllowThreads(__tstate);
4dfaa61e 9083 if (PyErr_Occurred()) return NULL;
2d091820
RD
9084} if (_result) {
9085 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9086 _resultobj = Py_BuildValue("s",_ptemp);
9087 } else {
9088 Py_INCREF(Py_None);
9089 _resultobj = Py_None;
9090 }
70551f47
RD
9091 return _resultobj;
9092}
9093
c95e68d8
RD
9094static void *SwigwxWindowDCTowxDC(void *ptr) {
9095 wxWindowDC *src;
9096 wxDC *dest;
9097 src = (wxWindowDC *) ptr;
9098 dest = (wxDC *) src;
9099 return (void *) dest;
9100}
9101
9df61a29
RD
9102static void *SwigwxWindowDCTowxObject(void *ptr) {
9103 wxWindowDC *src;
9104 wxObject *dest;
9105 src = (wxWindowDC *) ptr;
9106 dest = (wxObject *) src;
9107 return (void *) dest;
9108}
9109
c95e68d8 9110#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
107e4716 9111static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
9112 PyObject * _resultobj;
9113 wxWindowDC * _result;
9114 wxWindow * _arg0;
2d091820 9115 PyObject * _argo0 = 0;
107e4716 9116 char *_kwnames[] = { "win", NULL };
c95e68d8
RD
9117 char _ptemp[128];
9118
9119 self = self;
107e4716 9120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
c95e68d8 9121 return NULL;
2d091820
RD
9122 if (_argo0) {
9123 if (_argo0 == Py_None) { _arg0 = NULL; }
9124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
9125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9126 return NULL;
9127 }
9128 }
ab9bc19b 9129{
474c48f9 9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9131 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
ab9bc19b 9132
474c48f9 9133 wxPyEndAllowThreads(__tstate);
4dfaa61e 9134 if (PyErr_Occurred()) return NULL;
2d091820
RD
9135} if (_result) {
9136 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9137 _resultobj = Py_BuildValue("s",_ptemp);
9138 } else {
9139 Py_INCREF(Py_None);
9140 _resultobj = Py_None;
9141 }
c95e68d8
RD
9142 return _resultobj;
9143}
9144
3ef86e32
RD
9145static void *SwigwxMirrorDCTowxDC(void *ptr) {
9146 wxMirrorDC *src;
9147 wxDC *dest;
9148 src = (wxMirrorDC *) ptr;
9149 dest = (wxDC *) src;
9150 return (void *) dest;
9151}
9152
9153static void *SwigwxMirrorDCTowxObject(void *ptr) {
9154 wxMirrorDC *src;
9155 wxObject *dest;
9156 src = (wxMirrorDC *) ptr;
9157 dest = (wxObject *) src;
9158 return (void *) dest;
9159}
9160
9161#define new_wxMirrorDC(_swigarg0,_swigarg1) (new wxMirrorDC(_swigarg0,_swigarg1))
9162static PyObject *_wrap_new_wxMirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9163 PyObject * _resultobj;
9164 wxMirrorDC * _result;
9165 wxDC * _arg0;
9166 bool _arg1;
9167 PyObject * _argo0 = 0;
9168 int tempbool1;
9169 char *_kwnames[] = { "dc","mirror", NULL };
9170 char _ptemp[128];
9171
9172 self = self;
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxMirrorDC",_kwnames,&_argo0,&tempbool1))
9174 return NULL;
9175 if (_argo0) {
9176 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMirrorDC. Expected _wxDC_p.");
9178 return NULL;
9179 }
9180 }
9181 _arg1 = (bool ) tempbool1;
9182{
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 _result = (wxMirrorDC *)new_wxMirrorDC(*_arg0,_arg1);
9185
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) return NULL;
9188} if (_result) {
9189 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMirrorDC_p");
9190 _resultobj = Py_BuildValue("s",_ptemp);
9191 } else {
9192 Py_INCREF(Py_None);
9193 _resultobj = Py_None;
9194 }
9195 return _resultobj;
9196}
9197
9df61a29
RD
9198static void *SwigwxPaletteTowxGDIObject(void *ptr) {
9199 wxPalette *src;
9200 wxGDIObject *dest;
9201 src = (wxPalette *) ptr;
9202 dest = (wxGDIObject *) src;
9203 return (void *) dest;
9204}
9205
9206static void *SwigwxPaletteTowxObject(void *ptr) {
9207 wxPalette *src;
9208 wxObject *dest;
9209 src = (wxPalette *) ptr;
9210 dest = (wxObject *) src;
9211 return (void *) dest;
9212}
9213
105e45b9 9214#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9215static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9216 PyObject * _resultobj;
9217 wxPalette * _result;
9218 int _arg0;
9219 byte * _arg1;
9220 byte * _arg2;
9221 byte * _arg3;
9222 PyObject * _obj1 = 0;
9223 PyObject * _obj2 = 0;
9224 PyObject * _obj3 = 0;
e02c03a4 9225 char *_kwnames[] = { "choices","choices","choices", NULL };
105e45b9
RD
9226 char _ptemp[128];
9227
9228 self = self;
107e4716 9229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
105e45b9
RD
9230 return NULL;
9231{
9232 _arg1 = byte_LIST_helper(_obj1);
9233 if (_arg1 == NULL) {
9234 return NULL;
9235 }
9236}
9237{
9238 _arg2 = byte_LIST_helper(_obj2);
9239 if (_arg2 == NULL) {
9240 return NULL;
9241 }
9242}
9243 if (_obj3)
9244{
9245 _arg3 = byte_LIST_helper(_obj3);
9246 if (_arg3 == NULL) {
9247 return NULL;
9248 }
9249}
9250{
ab9bc19b
RD
9251 if (_obj1) {
9252 _arg0 = PyList_Size(_obj1);
9253 }
9254 else {
9255 _arg0 = 0;
9256 }
105e45b9 9257}
ab9bc19b 9258{
474c48f9 9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9260 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9261
474c48f9 9262 wxPyEndAllowThreads(__tstate);
4dfaa61e 9263 if (PyErr_Occurred()) return NULL;
2d091820
RD
9264} if (_result) {
9265 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
9266 _resultobj = Py_BuildValue("s",_ptemp);
9267 } else {
9268 Py_INCREF(Py_None);
9269 _resultobj = Py_None;
9270 }
105e45b9
RD
9271{
9272 delete [] _arg1;
9273}
9274{
9275 delete [] _arg2;
9276}
9277{
9278 delete [] _arg3;
9279}
9280 return _resultobj;
9281}
9282
9283#define delete_wxPalette(_swigobj) (delete _swigobj)
107e4716 9284static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9285 PyObject * _resultobj;
9286 wxPalette * _arg0;
2d091820 9287 PyObject * _argo0 = 0;
107e4716 9288 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9289
9290 self = self;
107e4716 9291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
105e45b9 9292 return NULL;
2d091820
RD
9293 if (_argo0) {
9294 if (_argo0 == Py_None) { _arg0 = NULL; }
9295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9297 return NULL;
9298 }
9299 }
ab9bc19b 9300{
474c48f9 9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9302 delete_wxPalette(_arg0);
ab9bc19b 9303
474c48f9 9304 wxPyEndAllowThreads(__tstate);
4dfaa61e 9305 if (PyErr_Occurred()) return NULL;
ab9bc19b 9306} Py_INCREF(Py_None);
105e45b9
RD
9307 _resultobj = Py_None;
9308 return _resultobj;
9309}
9310
9311#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
107e4716 9312static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9313 PyObject * _resultobj;
9314 int _result;
9315 wxPalette * _arg0;
9316 byte _arg1;
9317 byte _arg2;
9318 byte _arg3;
2d091820 9319 PyObject * _argo0 = 0;
107e4716 9320 char *_kwnames[] = { "self","red","green","blue", NULL };
105e45b9
RD
9321
9322 self = self;
107e4716 9323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
105e45b9 9324 return NULL;
2d091820
RD
9325 if (_argo0) {
9326 if (_argo0 == Py_None) { _arg0 = NULL; }
9327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9329 return NULL;
9330 }
9331 }
ab9bc19b 9332{
474c48f9 9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9334 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9335
474c48f9 9336 wxPyEndAllowThreads(__tstate);
4dfaa61e 9337 if (PyErr_Occurred()) return NULL;
ab9bc19b 9338} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9339 return _resultobj;
9340}
9341
9342#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9343static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9344 PyObject * _resultobj;
9345 bool _result;
9346 wxPalette * _arg0;
9347 int _arg1;
9348 byte * _arg2;
ef2060fa 9349 int temp;
105e45b9 9350 byte * _arg3;
ef2060fa 9351 int temp0;
105e45b9 9352 byte * _arg4;
ef2060fa 9353 int temp1;
2d091820 9354 PyObject * _argo0 = 0;
ef2060fa 9355 char *_kwnames[] = { "self","pixel", NULL };
105e45b9
RD
9356
9357 self = self;
ef2060fa
RD
9358{
9359 _arg2 = (byte*)&temp;
9360}
9361{
9362 _arg3 = (byte*)&temp0;
9363}
9364{
9365 _arg4 = (byte*)&temp1;
9366}
9367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
105e45b9 9368 return NULL;
2d091820
RD
9369 if (_argo0) {
9370 if (_argo0 == Py_None) { _arg0 = NULL; }
9371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9373 return NULL;
9374 }
9375 }
ab9bc19b 9376{
474c48f9 9377 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9378 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 9379
474c48f9 9380 wxPyEndAllowThreads(__tstate);
4dfaa61e 9381 if (PyErr_Occurred()) return NULL;
ab9bc19b 9382} _resultobj = Py_BuildValue("i",_result);
ef2060fa
RD
9383{
9384 PyObject *o;
9385 o = PyInt_FromLong((long) (*_arg2));
9386 _resultobj = t_output_helper(_resultobj, o);
9387}
9388{
9389 PyObject *o;
9390 o = PyInt_FromLong((long) (*_arg3));
9391 _resultobj = t_output_helper(_resultobj, o);
9392}
9393{
9394 PyObject *o;
9395 o = PyInt_FromLong((long) (*_arg4));
9396 _resultobj = t_output_helper(_resultobj, o);
9397}
105e45b9
RD
9398 return _resultobj;
9399}
9400
9401#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
107e4716 9402static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9403 PyObject * _resultobj;
9404 bool _result;
9405 wxPalette * _arg0;
2d091820 9406 PyObject * _argo0 = 0;
107e4716 9407 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9408
9409 self = self;
107e4716 9410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
105e45b9 9411 return NULL;
2d091820
RD
9412 if (_argo0) {
9413 if (_argo0 == Py_None) { _arg0 = NULL; }
9414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9416 return NULL;
9417 }
9418 }
ab9bc19b 9419{
474c48f9 9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9421 _result = (bool )wxPalette_Ok(_arg0);
ab9bc19b 9422
474c48f9 9423 wxPyEndAllowThreads(__tstate);
4dfaa61e 9424 if (PyErr_Occurred()) return NULL;
ab9bc19b 9425} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9426 return _resultobj;
9427}
9428
9df61a29
RD
9429static void *SwigwxImageListTowxObject(void *ptr) {
9430 wxImageList *src;
9431 wxObject *dest;
9432 src = (wxImageList *) ptr;
9433 dest = (wxObject *) src;
9434 return (void *) dest;
9435}
9436
21f8d7ea 9437#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9438static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9439 PyObject * _resultobj;
9440 wxImageList * _result;
9441 int _arg0;
9442 int _arg1;
7ff49f0c 9443 int _arg2 = (int ) TRUE;
2d091820 9444 int _arg3 = (int ) 1;
107e4716 9445 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
21f8d7ea
RD
9446 char _ptemp[128];
9447
9448 self = self;
56f5d962 9449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
21f8d7ea 9450 return NULL;
ab9bc19b 9451{
474c48f9 9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9453 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9454
474c48f9 9455 wxPyEndAllowThreads(__tstate);
4dfaa61e 9456 if (PyErr_Occurred()) return NULL;
2d091820
RD
9457} if (_result) {
9458 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
9459 _resultobj = Py_BuildValue("s",_ptemp);
9460 } else {
9461 Py_INCREF(Py_None);
9462 _resultobj = Py_None;
9463 }
21f8d7ea
RD
9464 return _resultobj;
9465}
9466
9467#define delete_wxImageList(_swigobj) (delete _swigobj)
107e4716 9468static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9469 PyObject * _resultobj;
9470 wxImageList * _arg0;
2d091820 9471 PyObject * _argo0 = 0;
107e4716 9472 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
9473
9474 self = self;
107e4716 9475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
21f8d7ea 9476 return NULL;
2d091820
RD
9477 if (_argo0) {
9478 if (_argo0 == Py_None) { _arg0 = NULL; }
9479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9481 return NULL;
9482 }
9483 }
ab9bc19b 9484{
474c48f9 9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9486 delete_wxImageList(_arg0);
ab9bc19b 9487
474c48f9 9488 wxPyEndAllowThreads(__tstate);
4dfaa61e 9489 if (PyErr_Occurred()) return NULL;
ab9bc19b 9490} Py_INCREF(Py_None);
21f8d7ea
RD
9491 _resultobj = Py_None;
9492 return _resultobj;
9493}
9494
f6bcfd97 9495#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
107e4716 9496static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9497 PyObject * _resultobj;
9498 int _result;
9499 wxImageList * _arg0;
9500 wxBitmap * _arg1;
f6bcfd97 9501 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
2d091820
RD
9502 PyObject * _argo0 = 0;
9503 PyObject * _argo1 = 0;
f6bcfd97
BP
9504 PyObject * _argo2 = 0;
9505 char *_kwnames[] = { "self","bitmap","mask", NULL };
21f8d7ea
RD
9506
9507 self = self;
f6bcfd97 9508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
21f8d7ea 9509 return NULL;
2d091820
RD
9510 if (_argo0) {
9511 if (_argo0 == Py_None) { _arg0 = NULL; }
9512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9514 return NULL;
9515 }
9516 }
2d091820 9517 if (_argo1) {
b67a9327 9518 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
21f8d7ea
RD
9519 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9520 return NULL;
9521 }
9522 }
f6bcfd97 9523 if (_argo2) {
b67a9327 9524 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
f6bcfd97
BP
9525 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9526 return NULL;
9527 }
9528 }
9529{
474c48f9 9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9531 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
f6bcfd97 9532
474c48f9 9533 wxPyEndAllowThreads(__tstate);
4dfaa61e 9534 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9535} _resultobj = Py_BuildValue("i",_result);
9536 return _resultobj;
9537}
9538
9539#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9540static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject * _resultobj;
9542 int _result;
9543 wxImageList * _arg0;
9544 wxBitmap * _arg1;
9545 wxColour * _arg2;
9546 PyObject * _argo0 = 0;
9547 PyObject * _argo1 = 0;
9548 wxColour temp;
9549 PyObject * _obj2 = 0;
9550 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
9551
9552 self = self;
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
9554 return NULL;
9555 if (_argo0) {
9556 if (_argo0 == Py_None) { _arg0 = NULL; }
9557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9559 return NULL;
9560 }
9561 }
9562 if (_argo1) {
b67a9327 9563 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
f6bcfd97
BP
9564 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9565 return NULL;
9566 }
9567 }
9568{
9569 _arg2 = &temp;
9570 if (! wxColour_helper(_obj2, &_arg2))
9571 return NULL;
9572}
ab9bc19b 9573{
474c48f9 9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9575 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
f6bcfd97 9576
474c48f9 9577 wxPyEndAllowThreads(__tstate);
4dfaa61e 9578 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9579} _resultobj = Py_BuildValue("i",_result);
9580 return _resultobj;
9581}
9582
9583#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9584static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9585 PyObject * _resultobj;
9586 int _result;
9587 wxImageList * _arg0;
9588 wxIcon * _arg1;
9589 PyObject * _argo0 = 0;
9590 PyObject * _argo1 = 0;
9591 char *_kwnames[] = { "self","icon", NULL };
9592
9593 self = self;
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
9595 return NULL;
9596 if (_argo0) {
9597 if (_argo0 == Py_None) { _arg0 = NULL; }
9598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9600 return NULL;
9601 }
9602 }
9603 if (_argo1) {
b67a9327 9604 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
f6bcfd97
BP
9605 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9606 return NULL;
9607 }
9608 }
9609{
474c48f9 9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9611 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
ab9bc19b 9612
474c48f9 9613 wxPyEndAllowThreads(__tstate);
4dfaa61e 9614 if (PyErr_Occurred()) return NULL;
ab9bc19b 9615} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9616 return _resultobj;
9617}
9618
9619#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
107e4716 9620static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9621 PyObject * _resultobj;
9622 bool _result;
9623 wxImageList * _arg0;
9624 int _arg1;
9625 wxBitmap * _arg2;
2d091820
RD
9626 PyObject * _argo0 = 0;
9627 PyObject * _argo2 = 0;
107e4716 9628 char *_kwnames[] = { "self","index","bitmap", NULL };
21f8d7ea
RD
9629
9630 self = self;
107e4716 9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
21f8d7ea 9632 return NULL;
2d091820
RD
9633 if (_argo0) {
9634 if (_argo0 == Py_None) { _arg0 = NULL; }
9635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9637 return NULL;
9638 }
9639 }
2d091820 9640 if (_argo2) {
b67a9327 9641 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
21f8d7ea
RD
9642 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9643 return NULL;
9644 }
9645 }
ab9bc19b 9646{
474c48f9 9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9648 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
ab9bc19b 9649
474c48f9 9650 wxPyEndAllowThreads(__tstate);
4dfaa61e 9651 if (PyErr_Occurred()) return NULL;
ab9bc19b 9652} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9653 return _resultobj;
9654}
9655
9656#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 9657static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9658 PyObject * _resultobj;
9659 bool _result;
9660 wxImageList * _arg0;
9661 int _arg1;
9662 wxDC * _arg2;
9663 int _arg3;
9664 int _arg4;
2d091820
RD
9665 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
9666 bool _arg6 = (bool ) FALSE;
9667 PyObject * _argo0 = 0;
9668 PyObject * _argo2 = 0;
9669 int tempbool6 = (int) FALSE;
107e4716 9670 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
21f8d7ea
RD
9671
9672 self = self;
107e4716 9673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
21f8d7ea 9674 return NULL;
2d091820
RD
9675 if (_argo0) {
9676 if (_argo0 == Py_None) { _arg0 = NULL; }
9677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9679 return NULL;
9680 }
9681 }
2d091820 9682 if (_argo2) {
b67a9327 9683 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
21f8d7ea
RD
9684 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9685 return NULL;
9686 }
9687 }
9688 _arg6 = (bool ) tempbool6;
ab9bc19b 9689{
474c48f9 9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9691 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 9692
474c48f9 9693 wxPyEndAllowThreads(__tstate);
4dfaa61e 9694 if (PyErr_Occurred()) return NULL;
ab9bc19b 9695} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9696 return _resultobj;
9697}
9698
9699#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
107e4716 9700static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9701 PyObject * _resultobj;
9702 int _result;
9703 wxImageList * _arg0;
2d091820 9704 PyObject * _argo0 = 0;
107e4716 9705 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
9706
9707 self = self;
107e4716 9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
21f8d7ea 9709 return NULL;
2d091820
RD
9710 if (_argo0) {
9711 if (_argo0 == Py_None) { _arg0 = NULL; }
9712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9714 return NULL;
9715 }
9716 }
ab9bc19b 9717{
474c48f9 9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9719 _result = (int )wxImageList_GetImageCount(_arg0);
ab9bc19b 9720
474c48f9 9721 wxPyEndAllowThreads(__tstate);
4dfaa61e 9722 if (PyErr_Occurred()) return NULL;
ab9bc19b 9723} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9724 return _resultobj;
9725}
9726
9727#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
107e4716 9728static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9729 PyObject * _resultobj;
9730 bool _result;
9731 wxImageList * _arg0;
9732 int _arg1;
2d091820 9733 PyObject * _argo0 = 0;
107e4716 9734 char *_kwnames[] = { "self","index", NULL };
21f8d7ea
RD
9735
9736 self = self;
107e4716 9737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
21f8d7ea 9738 return NULL;
2d091820
RD
9739 if (_argo0) {
9740 if (_argo0 == Py_None) { _arg0 = NULL; }
9741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9743 return NULL;
9744 }
9745 }
ab9bc19b 9746{
474c48f9 9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9748 _result = (bool )wxImageList_Remove(_arg0,_arg1);
ab9bc19b 9749
474c48f9 9750 wxPyEndAllowThreads(__tstate);
4dfaa61e 9751 if (PyErr_Occurred()) return NULL;
ab9bc19b 9752} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9753 return _resultobj;
9754}
9755
9756#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
107e4716 9757static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9758 PyObject * _resultobj;
9759 bool _result;
9760 wxImageList * _arg0;
2d091820 9761 PyObject * _argo0 = 0;
107e4716 9762 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
9763
9764 self = self;
107e4716 9765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
21f8d7ea 9766 return NULL;
2d091820
RD
9767 if (_argo0) {
9768 if (_argo0 == Py_None) { _arg0 = NULL; }
9769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
9770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9771 return NULL;
9772 }
9773 }
ab9bc19b 9774{
474c48f9 9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9776 _result = (bool )wxImageList_RemoveAll(_arg0);
ab9bc19b 9777
474c48f9 9778 wxPyEndAllowThreads(__tstate);
4dfaa61e 9779 if (PyErr_Occurred()) return NULL;
ab9bc19b 9780} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
9781 return _resultobj;
9782}
9783
f6bcfd97
BP
9784#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9785static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9786 PyObject * _resultobj;
9787 wxImageList * _arg0;
9788 int _arg1;
9789 int * _arg2;
9790 int temp;
9791 int * _arg3;
9792 int temp0;
9793 PyObject * _argo0 = 0;
9794 char *_kwnames[] = { "self","index", NULL };
9795
9796 self = self;
9797{
9798 _arg2 = &temp;
9799}
9800{
9801 _arg3 = &temp0;
9802}
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
9804 return NULL;
9805 if (_argo0) {
9806 if (_argo0 == Py_None) { _arg0 = NULL; }
9807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9809 return NULL;
9810 }
9811 }
9812{
474c48f9 9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9814 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
f6bcfd97 9815
474c48f9 9816 wxPyEndAllowThreads(__tstate);
4dfaa61e 9817 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9818} Py_INCREF(Py_None);
9819 _resultobj = Py_None;
9820{
9821 PyObject *o;
9822 o = PyInt_FromLong((long) (*_arg2));
9823 _resultobj = t_output_helper(_resultobj, o);
9824}
9825{
9826 PyObject *o;
9827 o = PyInt_FromLong((long) (*_arg3));
9828 _resultobj = t_output_helper(_resultobj, o);
9829}
9830 return _resultobj;
9831}
9832
9df61a29
RD
9833static void *SwigwxRegionTowxGDIObject(void *ptr) {
9834 wxRegion *src;
9835 wxGDIObject *dest;
9836 src = (wxRegion *) ptr;
9837 dest = (wxGDIObject *) src;
9838 return (void *) dest;
9839}
9840
9841static void *SwigwxRegionTowxObject(void *ptr) {
9842 wxRegion *src;
9843 wxObject *dest;
9844 src = (wxRegion *) ptr;
9845 dest = (wxObject *) src;
9846 return (void *) dest;
9847}
9848
9849#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9850static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject * _resultobj;
9852 wxRegion * _result;
b67a9327
RD
9853 wxCoord _arg0 = (wxCoord ) 0;
9854 wxCoord _arg1 = (wxCoord ) 0;
9855 wxCoord _arg2 = (wxCoord ) 0;
9856 wxCoord _arg3 = (wxCoord ) 0;
9df61a29
RD
9857 char *_kwnames[] = { "x","y","width","height", NULL };
9858 char _ptemp[128];
9859
9860 self = self;
b67a9327 9861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
9df61a29
RD
9862 return NULL;
9863{
474c48f9 9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9865 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
9df61a29 9866
474c48f9 9867 wxPyEndAllowThreads(__tstate);
4dfaa61e 9868 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9869} if (_result) {
9870 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
9871 _resultobj = Py_BuildValue("s",_ptemp);
9872 } else {
9873 Py_INCREF(Py_None);
9874 _resultobj = Py_None;
9875 }
9876 return _resultobj;
9877}
9878
3efe9549
RD
9879#define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
9880static PyObject *_wrap_new_wxRegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
9881 PyObject * _resultobj;
9882 wxRegion * _result;
9883 int _arg0;
9884 wxPoint * _arg1;
9885 int _arg2 = (int ) wxWINDING_RULE;
9886 int NPOINTS;
9887 PyObject * _obj1 = 0;
9888 char *_kwnames[] = { "points","fillStyle", NULL };
9889 char _ptemp[128];
9890
9891 self = self;
9892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxRegionFromPoints",_kwnames,&_obj1,&_arg2))
9893 return NULL;
9894 if (_obj1)
9895{
9896 _arg1 = wxPoint_LIST_helper(_obj1, &NPOINTS);
9897 if (_arg1 == NULL) {
9898 return NULL;
9899 }
9900}
9901{
9902 _arg0 = NPOINTS;
9903}
9904{
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 _result = (wxRegion *)new_wxRegionFromPoints(_arg0,_arg1,_arg2);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) return NULL;
9910} if (_result) {
9911 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
9912 _resultobj = Py_BuildValue("s",_ptemp);
9913 } else {
9914 Py_INCREF(Py_None);
9915 _resultobj = Py_None;
9916 }
9917{
9918 delete [] _arg1;
9919}
9920 return _resultobj;
9921}
9922
1fded56b
RD
9923#define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
9924static PyObject *_wrap_new_wxRegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9925 PyObject * _resultobj;
9926 wxRegion * _result;
9927 wxBitmap * _arg0;
9928 wxColour * _arg1 = (wxColour *) &wxNullColour;
9929 int _arg2 = (int ) 0;
9930 PyObject * _argo0 = 0;
9931 wxColour temp;
9932 PyObject * _obj1 = 0;
9933 char *_kwnames[] = { "bmp","transColour","tolerance", NULL };
9934 char _ptemp[128];
9935
9936 self = self;
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:new_wxRegionFromBitmap",_kwnames,&_argo0,&_obj1,&_arg2))
9938 return NULL;
9939 if (_argo0) {
9940 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
9941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
9942 return NULL;
9943 }
9944 }
9945 if (_obj1)
9946{
9947 _arg1 = &temp;
9948 if (! wxColour_helper(_obj1, &_arg1))
9949 return NULL;
9950}
9951{
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 _result = (wxRegion *)new_wxRegionFromBitmap(*_arg0,*_arg1,_arg2);
9954
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) return NULL;
9957} if (_result) {
9958 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
9959 _resultobj = Py_BuildValue("s",_ptemp);
9960 } else {
9961 Py_INCREF(Py_None);
9962 _resultobj = Py_None;
9963 }
9964 return _resultobj;
9965}
9966
9df61a29
RD
9967#define delete_wxRegion(_swigobj) (delete _swigobj)
9968static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9969 PyObject * _resultobj;
9970 wxRegion * _arg0;
9971 PyObject * _argo0 = 0;
9972 char *_kwnames[] = { "self", NULL };
9973
9974 self = self;
9975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
9976 return NULL;
9977 if (_argo0) {
9978 if (_argo0 == Py_None) { _arg0 = NULL; }
9979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9981 return NULL;
9982 }
9983 }
9984{
474c48f9 9985 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9986 delete_wxRegion(_arg0);
9df61a29 9987
474c48f9 9988 wxPyEndAllowThreads(__tstate);
4dfaa61e 9989 if (PyErr_Occurred()) return NULL;
9df61a29
RD
9990} Py_INCREF(Py_None);
9991 _resultobj = Py_None;
9992 return _resultobj;
9993}
9994
9995#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9996static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject * _resultobj;
9998 wxRegion * _arg0;
9999 PyObject * _argo0 = 0;
10000 char *_kwnames[] = { "self", NULL };
10001
10002 self = self;
10003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10004 return NULL;
10005 if (_argo0) {
10006 if (_argo0 == Py_None) { _arg0 = NULL; }
10007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10009 return NULL;
10010 }
10011 }
10012{
474c48f9 10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10014 wxRegion_Clear(_arg0);
9df61a29 10015
474c48f9 10016 wxPyEndAllowThreads(__tstate);
4dfaa61e 10017 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10018} Py_INCREF(Py_None);
10019 _resultobj = Py_None;
10020 return _resultobj;
10021}
10022
8cb49012
RD
10023#define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10024static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
10025 PyObject * _resultobj;
10026 bool _result;
10027 wxRegion * _arg0;
10028 wxCoord _arg1;
10029 wxCoord _arg2;
10030 PyObject * _argo0 = 0;
10031 char *_kwnames[] = { "self","x","y", NULL };
10032
10033 self = self;
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
10035 return NULL;
10036 if (_argo0) {
10037 if (_argo0 == Py_None) { _arg0 = NULL; }
10038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10040 return NULL;
10041 }
10042 }
10043{
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10045 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
8cb49012
RD
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) return NULL;
10049} _resultobj = Py_BuildValue("i",_result);
10050 return _resultobj;
10051}
10052
9df61a29
RD
10053#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10054static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10055 PyObject * _resultobj;
10056 wxRegionContain _result;
10057 wxRegion * _arg0;
b67a9327
RD
10058 wxCoord _arg1;
10059 wxCoord _arg2;
9df61a29
RD
10060 PyObject * _argo0 = 0;
10061 char *_kwnames[] = { "self","x","y", NULL };
10062
10063 self = self;
b67a9327 10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
9df61a29
RD
10065 return NULL;
10066 if (_argo0) {
10067 if (_argo0 == Py_None) { _arg0 = NULL; }
10068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10070 return NULL;
10071 }
10072 }
10073{
474c48f9 10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10075 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
9df61a29 10076
474c48f9 10077 wxPyEndAllowThreads(__tstate);
4dfaa61e 10078 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10079} _resultobj = Py_BuildValue("i",_result);
10080 return _resultobj;
10081}
10082
10083#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10084static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10085 PyObject * _resultobj;
10086 wxRegionContain _result;
10087 wxRegion * _arg0;
10088 wxPoint * _arg1;
10089 PyObject * _argo0 = 0;
10090 wxPoint temp;
10091 PyObject * _obj1 = 0;
10092 char *_kwnames[] = { "self","pt", NULL };
10093
10094 self = self;
10095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10096 return NULL;
10097 if (_argo0) {
10098 if (_argo0 == Py_None) { _arg0 = NULL; }
10099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10101 return NULL;
10102 }
10103 }
10104{
10105 _arg1 = &temp;
10106 if (! wxPoint_helper(_obj1, &_arg1))
10107 return NULL;
10108}
10109{
474c48f9 10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10111 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
9df61a29 10112
474c48f9 10113 wxPyEndAllowThreads(__tstate);
4dfaa61e 10114 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10115} _resultobj = Py_BuildValue("i",_result);
10116 return _resultobj;
10117}
10118
10119#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10120static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject * _resultobj;
10122 wxRegionContain _result;
10123 wxRegion * _arg0;
10124 wxRect * _arg1;
10125 PyObject * _argo0 = 0;
10126 wxRect temp;
10127 PyObject * _obj1 = 0;
10128 char *_kwnames[] = { "self","rect", NULL };
10129
10130 self = self;
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10132 return NULL;
10133 if (_argo0) {
10134 if (_argo0 == Py_None) { _arg0 = NULL; }
10135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10137 return NULL;
10138 }
10139 }
10140{
10141 _arg1 = &temp;
10142 if (! wxRect_helper(_obj1, &_arg1))
10143 return NULL;
10144}
10145{
474c48f9 10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10147 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9df61a29 10148
474c48f9 10149 wxPyEndAllowThreads(__tstate);
4dfaa61e 10150 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10151} _resultobj = Py_BuildValue("i",_result);
10152 return _resultobj;
10153}
10154
10155#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10156static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject * _resultobj;
10158 wxRegionContain _result;
10159 wxRegion * _arg0;
b67a9327
RD
10160 wxCoord _arg1;
10161 wxCoord _arg2;
10162 wxCoord _arg3;
10163 wxCoord _arg4;
9df61a29
RD
10164 PyObject * _argo0 = 0;
10165 char *_kwnames[] = { "self","x","y","w","h", NULL };
10166
10167 self = self;
b67a9327 10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9df61a29
RD
10169 return NULL;
10170 if (_argo0) {
10171 if (_argo0 == Py_None) { _arg0 = NULL; }
10172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10174 return NULL;
10175 }
10176 }
10177{
474c48f9 10178 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10179 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10180
474c48f9 10181 wxPyEndAllowThreads(__tstate);
4dfaa61e 10182 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10183} _resultobj = Py_BuildValue("i",_result);
10184 return _resultobj;
10185}
10186
10187#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10188static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10189 PyObject * _resultobj;
10190 wxRect * _result;
10191 wxRegion * _arg0;
10192 PyObject * _argo0 = 0;
10193 char *_kwnames[] = { "self", NULL };
10194 char _ptemp[128];
10195
10196 self = self;
10197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10198 return NULL;
10199 if (_argo0) {
10200 if (_argo0 == Py_None) { _arg0 = NULL; }
10201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10203 return NULL;
10204 }
10205 }
10206{
474c48f9 10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10208 _result = new wxRect (wxRegion_GetBox(_arg0));
9df61a29 10209
474c48f9 10210 wxPyEndAllowThreads(__tstate);
4dfaa61e 10211 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10212} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10213 _resultobj = Py_BuildValue("s",_ptemp);
10214 return _resultobj;
10215}
10216
10217#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10218static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10219 PyObject * _resultobj;
10220 bool _result;
10221 wxRegion * _arg0;
b67a9327
RD
10222 wxCoord _arg1;
10223 wxCoord _arg2;
10224 wxCoord _arg3;
10225 wxCoord _arg4;
9df61a29
RD
10226 PyObject * _argo0 = 0;
10227 char *_kwnames[] = { "self","x","y","width","height", NULL };
10228
10229 self = self;
b67a9327 10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9df61a29
RD
10231 return NULL;
10232 if (_argo0) {
10233 if (_argo0 == Py_None) { _arg0 = NULL; }
10234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10236 return NULL;
10237 }
10238 }
10239{
474c48f9 10240 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10241 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10242
474c48f9 10243 wxPyEndAllowThreads(__tstate);
4dfaa61e 10244 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10245} _resultobj = Py_BuildValue("i",_result);
10246 return _resultobj;
10247}
10248
10249#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10250static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10251 PyObject * _resultobj;
10252 bool _result;
10253 wxRegion * _arg0;
10254 wxRect * _arg1;
10255 PyObject * _argo0 = 0;
10256 wxRect temp;
10257 PyObject * _obj1 = 0;
10258 char *_kwnames[] = { "self","rect", NULL };
10259
10260 self = self;
10261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
10262 return NULL;
10263 if (_argo0) {
10264 if (_argo0 == Py_None) { _arg0 = NULL; }
10265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10267 return NULL;
10268 }
10269 }
10270{
10271 _arg1 = &temp;
10272 if (! wxRect_helper(_obj1, &_arg1))
10273 return NULL;
10274}
10275{
474c48f9 10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10277 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9df61a29 10278
474c48f9 10279 wxPyEndAllowThreads(__tstate);
4dfaa61e 10280 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10281} _resultobj = Py_BuildValue("i",_result);
10282 return _resultobj;
10283}
10284
10285#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10286static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10287 PyObject * _resultobj;
10288 bool _result;
10289 wxRegion * _arg0;
10290 wxRegion * _arg1;
10291 PyObject * _argo0 = 0;
10292 PyObject * _argo1 = 0;
10293 char *_kwnames[] = { "self","region", NULL };
10294
10295 self = self;
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
10297 return NULL;
10298 if (_argo0) {
10299 if (_argo0 == Py_None) { _arg0 = NULL; }
10300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10302 return NULL;
10303 }
10304 }
10305 if (_argo1) {
b67a9327 10306 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9df61a29
RD
10307 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10308 return NULL;
10309 }
10310 }
10311{
474c48f9 10312 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10313 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9df61a29 10314
474c48f9 10315 wxPyEndAllowThreads(__tstate);
4dfaa61e 10316 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10317} _resultobj = Py_BuildValue("i",_result);
10318 return _resultobj;
10319}
10320
10321#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10322static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
10323 PyObject * _resultobj;
10324 bool _result;
10325 wxRegion * _arg0;
10326 PyObject * _argo0 = 0;
10327 char *_kwnames[] = { "self", NULL };
10328
10329 self = self;
10330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
10331 return NULL;
10332 if (_argo0) {
10333 if (_argo0 == Py_None) { _arg0 = NULL; }
10334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10336 return NULL;
10337 }
10338 }
10339{
474c48f9 10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10341 _result = (bool )wxRegion_IsEmpty(_arg0);
9df61a29 10342
474c48f9 10343 wxPyEndAllowThreads(__tstate);
4dfaa61e 10344 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10345} _resultobj = Py_BuildValue("i",_result);
10346 return _resultobj;
10347}
10348
10349#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10350static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
10351 PyObject * _resultobj;
10352 bool _result;
10353 wxRegion * _arg0;
b67a9327
RD
10354 wxCoord _arg1;
10355 wxCoord _arg2;
10356 wxCoord _arg3;
10357 wxCoord _arg4;
9df61a29
RD
10358 PyObject * _argo0 = 0;
10359 char *_kwnames[] = { "self","x","y","width","height", NULL };
10360
10361 self = self;
b67a9327 10362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9df61a29
RD
10363 return NULL;
10364 if (_argo0) {
10365 if (_argo0 == Py_None) { _arg0 = NULL; }
10366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10368 return NULL;
10369 }
10370 }
10371{
474c48f9 10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10373 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10374
474c48f9 10375 wxPyEndAllowThreads(__tstate);
4dfaa61e 10376 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10377} _resultobj = Py_BuildValue("i",_result);
10378 return _resultobj;
10379}
10380
10381#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10382static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10383 PyObject * _resultobj;
10384 bool _result;
10385 wxRegion * _arg0;
10386 wxRect * _arg1;
10387 PyObject * _argo0 = 0;
10388 wxRect temp;
10389 PyObject * _obj1 = 0;
10390 char *_kwnames[] = { "self","rect", NULL };
10391
10392 self = self;
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
10394 return NULL;
10395 if (_argo0) {
10396 if (_argo0 == Py_None) { _arg0 = NULL; }
10397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10399 return NULL;
10400 }
10401 }
10402{
10403 _arg1 = &temp;
10404 if (! wxRect_helper(_obj1, &_arg1))
10405 return NULL;
10406}
10407{
474c48f9 10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10409 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9df61a29 10410
474c48f9 10411 wxPyEndAllowThreads(__tstate);
4dfaa61e 10412 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10413} _resultobj = Py_BuildValue("i",_result);
10414 return _resultobj;
10415}
10416
10417#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10418static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10419 PyObject * _resultobj;
10420 bool _result;
10421 wxRegion * _arg0;
10422 wxRegion * _arg1;
10423 PyObject * _argo0 = 0;
10424 PyObject * _argo1 = 0;
10425 char *_kwnames[] = { "self","region", NULL };
10426
10427 self = self;
10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
10429 return NULL;
10430 if (_argo0) {
10431 if (_argo0 == Py_None) { _arg0 = NULL; }
10432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10434 return NULL;
10435 }
10436 }
10437 if (_argo1) {
b67a9327 10438 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9df61a29
RD
10439 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10440 return NULL;
10441 }
10442 }
10443{
474c48f9 10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10445 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9df61a29 10446
474c48f9 10447 wxPyEndAllowThreads(__tstate);
4dfaa61e 10448 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10449} _resultobj = Py_BuildValue("i",_result);
10450 return _resultobj;
10451}
10452
10453#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10454static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
10455 PyObject * _resultobj;
10456 bool _result;
10457 wxRegion * _arg0;
b67a9327
RD
10458 wxCoord _arg1;
10459 wxCoord _arg2;
10460 wxCoord _arg3;
10461 wxCoord _arg4;
9df61a29
RD
10462 PyObject * _argo0 = 0;
10463 char *_kwnames[] = { "self","x","y","width","height", NULL };
10464
10465 self = self;
b67a9327 10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9df61a29
RD
10467 return NULL;
10468 if (_argo0) {
10469 if (_argo0 == Py_None) { _arg0 = NULL; }
10470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10472 return NULL;
10473 }
10474 }
10475{
474c48f9 10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10477 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10478
474c48f9 10479 wxPyEndAllowThreads(__tstate);
4dfaa61e 10480 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10481} _resultobj = Py_BuildValue("i",_result);
10482 return _resultobj;
10483}
10484
10485#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10486static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10487 PyObject * _resultobj;
10488 bool _result;
10489 wxRegion * _arg0;
10490 wxRect * _arg1;
10491 PyObject * _argo0 = 0;
10492 wxRect temp;
10493 PyObject * _obj1 = 0;
10494 char *_kwnames[] = { "self","rect", NULL };
10495
10496 self = self;
10497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
10498 return NULL;
10499 if (_argo0) {
10500 if (_argo0 == Py_None) { _arg0 = NULL; }
10501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10503 return NULL;
10504 }
10505 }
10506{
10507 _arg1 = &temp;
10508 if (! wxRect_helper(_obj1, &_arg1))
10509 return NULL;
10510}
10511{
474c48f9 10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10513 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9df61a29 10514
474c48f9 10515 wxPyEndAllowThreads(__tstate);
4dfaa61e 10516 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10517} _resultobj = Py_BuildValue("i",_result);
10518 return _resultobj;
10519}
10520
10521#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10522static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10523 PyObject * _resultobj;
10524 bool _result;
10525 wxRegion * _arg0;
10526 wxRegion * _arg1;
10527 PyObject * _argo0 = 0;
10528 PyObject * _argo1 = 0;
10529 char *_kwnames[] = { "self","region", NULL };
10530
10531 self = self;
10532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
10533 return NULL;
10534 if (_argo0) {
10535 if (_argo0 == Py_None) { _arg0 = NULL; }
10536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10538 return NULL;
10539 }
10540 }
10541 if (_argo1) {
b67a9327 10542 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9df61a29
RD
10543 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10544 return NULL;
10545 }
10546 }
10547{
474c48f9 10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10549 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
9df61a29 10550
474c48f9 10551 wxPyEndAllowThreads(__tstate);
4dfaa61e 10552 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10553} _resultobj = Py_BuildValue("i",_result);
10554 return _resultobj;
10555}
10556
10557#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10558static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject * _resultobj;
10560 bool _result;
10561 wxRegion * _arg0;
b67a9327
RD
10562 wxCoord _arg1;
10563 wxCoord _arg2;
10564 wxCoord _arg3;
10565 wxCoord _arg4;
9df61a29
RD
10566 PyObject * _argo0 = 0;
10567 char *_kwnames[] = { "self","x","y","width","height", NULL };
10568
10569 self = self;
b67a9327 10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9df61a29
RD
10571 return NULL;
10572 if (_argo0) {
10573 if (_argo0 == Py_None) { _arg0 = NULL; }
10574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10576 return NULL;
10577 }
10578 }
10579{
474c48f9 10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10581 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10582
474c48f9 10583 wxPyEndAllowThreads(__tstate);
4dfaa61e 10584 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10585} _resultobj = Py_BuildValue("i",_result);
10586 return _resultobj;
10587}
10588
10589#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10590static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10591 PyObject * _resultobj;
10592 bool _result;
10593 wxRegion * _arg0;
10594 wxRect * _arg1;
10595 PyObject * _argo0 = 0;
10596 wxRect temp;
10597 PyObject * _obj1 = 0;
10598 char *_kwnames[] = { "self","rect", NULL };
10599
10600 self = self;
10601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
10602 return NULL;
10603 if (_argo0) {
10604 if (_argo0 == Py_None) { _arg0 = NULL; }
10605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10607 return NULL;
10608 }
10609 }
10610{
10611 _arg1 = &temp;
10612 if (! wxRect_helper(_obj1, &_arg1))
10613 return NULL;
10614}
10615{
474c48f9 10616 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10617 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
9df61a29 10618
474c48f9 10619 wxPyEndAllowThreads(__tstate);
4dfaa61e 10620 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10621} _resultobj = Py_BuildValue("i",_result);
10622 return _resultobj;
10623}
10624
10625#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10626static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10627 PyObject * _resultobj;
10628 bool _result;
10629 wxRegion * _arg0;
10630 wxRegion * _arg1;
10631 PyObject * _argo0 = 0;
10632 PyObject * _argo1 = 0;
10633 char *_kwnames[] = { "self","region", NULL };
10634
10635 self = self;
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
10637 return NULL;
10638 if (_argo0) {
10639 if (_argo0 == Py_None) { _arg0 = NULL; }
10640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10642 return NULL;
10643 }
10644 }
10645 if (_argo1) {
b67a9327 10646 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9df61a29
RD
10647 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10648 return NULL;
10649 }
10650 }
10651{
474c48f9 10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10653 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
9df61a29 10654
474c48f9 10655 wxPyEndAllowThreads(__tstate);
4dfaa61e 10656 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10657} _resultobj = Py_BuildValue("i",_result);
10658 return _resultobj;
10659}
10660
1fded56b
RD
10661#define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
10662static PyObject *_wrap_wxRegion_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10663 PyObject * _resultobj;
10664 wxBitmap * _result;
10665 wxRegion * _arg0;
10666 PyObject * _argo0 = 0;
10667 char *_kwnames[] = { "self", NULL };
10668 char _ptemp[128];
10669
10670 self = self;
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_ConvertToBitmap",_kwnames,&_argo0))
10672 return NULL;
10673 if (_argo0) {
10674 if (_argo0 == Py_None) { _arg0 = NULL; }
10675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ConvertToBitmap. Expected _wxRegion_p.");
10677 return NULL;
10678 }
10679 }
10680{
10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
10682 _result = new wxBitmap (wxRegion_ConvertToBitmap(_arg0));
10683
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) return NULL;
10686} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
10687 _resultobj = Py_BuildValue("s",_ptemp);
10688 return _resultobj;
10689}
10690
10691#define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
10692static PyObject *_wrap_wxRegion_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10693 PyObject * _resultobj;
10694 bool _result;
10695 wxRegion * _arg0;
10696 wxBitmap * _arg1;
10697 wxColour * _arg2 = (wxColour *) &wxNullColour;
10698 int _arg3 = (int ) 0;
10699 PyObject * _argo0 = 0;
10700 PyObject * _argo1 = 0;
10701 wxColour temp;
10702 PyObject * _obj2 = 0;
10703 char *_kwnames[] = { "self","bmp","transColour","tolerance", NULL };
10704
10705 self = self;
10706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxRegion_UnionBitmap",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
10707 return NULL;
10708 if (_argo0) {
10709 if (_argo0 == Py_None) { _arg0 = NULL; }
10710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionBitmap. Expected _wxRegion_p.");
10712 return NULL;
10713 }
10714 }
10715 if (_argo1) {
10716 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10717 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
10718 return NULL;
10719 }
10720 }
10721 if (_obj2)
10722{
10723 _arg2 = &temp;
10724 if (! wxColour_helper(_obj2, &_arg2))
10725 return NULL;
10726}
10727{
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 _result = (bool )wxRegion_UnionBitmap(_arg0,*_arg1,*_arg2,_arg3);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) return NULL;
10733} _resultobj = Py_BuildValue("i",_result);
10734 return _resultobj;
10735}
10736
9df61a29
RD
10737static void *SwigwxRegionIteratorTowxObject(void *ptr) {
10738 wxRegionIterator *src;
10739 wxObject *dest;
10740 src = (wxRegionIterator *) ptr;
10741 dest = (wxObject *) src;
10742 return (void *) dest;
10743}
10744
10745#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10746static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
10747 PyObject * _resultobj;
10748 wxRegionIterator * _result;
10749 wxRegion * _arg0;
10750 PyObject * _argo0 = 0;
10751 char *_kwnames[] = { "region", NULL };
10752 char _ptemp[128];
10753
10754 self = self;
10755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
10756 return NULL;
10757 if (_argo0) {
b67a9327 10758 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9df61a29
RD
10759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10760 return NULL;
10761 }
10762 }
10763{
474c48f9 10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10765 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
9df61a29 10766
474c48f9 10767 wxPyEndAllowThreads(__tstate);
4dfaa61e 10768 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10769} if (_result) {
10770 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
10771 _resultobj = Py_BuildValue("s",_ptemp);
10772 } else {
10773 Py_INCREF(Py_None);
10774 _resultobj = Py_None;
10775 }
10776 return _resultobj;
10777}
10778
10779#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10780static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
10781 PyObject * _resultobj;
10782 wxRegionIterator * _arg0;
10783 PyObject * _argo0 = 0;
10784 char *_kwnames[] = { "self", NULL };
10785
10786 self = self;
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
10788 return NULL;
10789 if (_argo0) {
10790 if (_argo0 == Py_None) { _arg0 = NULL; }
10791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10793 return NULL;
10794 }
10795 }
10796{
474c48f9 10797 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10798 delete_wxRegionIterator(_arg0);
9df61a29 10799
474c48f9 10800 wxPyEndAllowThreads(__tstate);
4dfaa61e 10801 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10802} Py_INCREF(Py_None);
10803 _resultobj = Py_None;
10804 return _resultobj;
10805}
10806
10807#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10808static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
10809 PyObject * _resultobj;
b67a9327 10810 wxCoord _result;
9df61a29
RD
10811 wxRegionIterator * _arg0;
10812 PyObject * _argo0 = 0;
10813 char *_kwnames[] = { "self", NULL };
10814
10815 self = self;
10816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
10817 return NULL;
10818 if (_argo0) {
10819 if (_argo0 == Py_None) { _arg0 = NULL; }
10820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10822 return NULL;
10823 }
10824 }
10825{
474c48f9 10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10827 _result = (wxCoord )wxRegionIterator_GetX(_arg0);
9df61a29 10828
474c48f9 10829 wxPyEndAllowThreads(__tstate);
4dfaa61e 10830 if (PyErr_Occurred()) return NULL;
b67a9327 10831} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10832 return _resultobj;
10833}
10834
10835#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10836static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
10837 PyObject * _resultobj;
b67a9327 10838 wxCoord _result;
9df61a29
RD
10839 wxRegionIterator * _arg0;
10840 PyObject * _argo0 = 0;
10841 char *_kwnames[] = { "self", NULL };
10842
10843 self = self;
10844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
10845 return NULL;
10846 if (_argo0) {
10847 if (_argo0 == Py_None) { _arg0 = NULL; }
10848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10850 return NULL;
10851 }
10852 }
10853{
474c48f9 10854 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10855 _result = (wxCoord )wxRegionIterator_GetY(_arg0);
9df61a29 10856
474c48f9 10857 wxPyEndAllowThreads(__tstate);
4dfaa61e 10858 if (PyErr_Occurred()) return NULL;
b67a9327 10859} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10860 return _resultobj;
10861}
10862
10863#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10864static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
10865 PyObject * _resultobj;
b67a9327 10866 wxCoord _result;
9df61a29
RD
10867 wxRegionIterator * _arg0;
10868 PyObject * _argo0 = 0;
10869 char *_kwnames[] = { "self", NULL };
10870
10871 self = self;
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
10873 return NULL;
10874 if (_argo0) {
10875 if (_argo0 == Py_None) { _arg0 = NULL; }
10876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10878 return NULL;
10879 }
10880 }
10881{
474c48f9 10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10883 _result = (wxCoord )wxRegionIterator_GetW(_arg0);
9df61a29 10884
474c48f9 10885 wxPyEndAllowThreads(__tstate);
4dfaa61e 10886 if (PyErr_Occurred()) return NULL;
b67a9327 10887} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10888 return _resultobj;
10889}
10890
10891#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10892static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10893 PyObject * _resultobj;
b67a9327 10894 wxCoord _result;
9df61a29
RD
10895 wxRegionIterator * _arg0;
10896 PyObject * _argo0 = 0;
10897 char *_kwnames[] = { "self", NULL };
10898
10899 self = self;
10900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
10901 return NULL;
10902 if (_argo0) {
10903 if (_argo0 == Py_None) { _arg0 = NULL; }
10904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10906 return NULL;
10907 }
10908 }
10909{
474c48f9 10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10911 _result = (wxCoord )wxRegionIterator_GetWidth(_arg0);
9df61a29 10912
474c48f9 10913 wxPyEndAllowThreads(__tstate);
4dfaa61e 10914 if (PyErr_Occurred()) return NULL;
b67a9327 10915} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10916 return _resultobj;
10917}
10918
10919#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10920static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject * _resultobj;
b67a9327 10922 wxCoord _result;
9df61a29
RD
10923 wxRegionIterator * _arg0;
10924 PyObject * _argo0 = 0;
10925 char *_kwnames[] = { "self", NULL };
10926
10927 self = self;
10928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
10929 return NULL;
10930 if (_argo0) {
10931 if (_argo0 == Py_None) { _arg0 = NULL; }
10932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10934 return NULL;
10935 }
10936 }
10937{
474c48f9 10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10939 _result = (wxCoord )wxRegionIterator_GetH(_arg0);
9df61a29 10940
474c48f9 10941 wxPyEndAllowThreads(__tstate);
4dfaa61e 10942 if (PyErr_Occurred()) return NULL;
b67a9327 10943} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10944 return _resultobj;
10945}
10946
10947#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10948static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10949 PyObject * _resultobj;
b67a9327 10950 wxCoord _result;
9df61a29
RD
10951 wxRegionIterator * _arg0;
10952 PyObject * _argo0 = 0;
10953 char *_kwnames[] = { "self", NULL };
10954
10955 self = self;
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
10957 return NULL;
10958 if (_argo0) {
10959 if (_argo0 == Py_None) { _arg0 = NULL; }
10960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10962 return NULL;
10963 }
10964 }
10965{
474c48f9 10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
b67a9327 10967 _result = (wxCoord )wxRegionIterator_GetHeight(_arg0);
9df61a29 10968
474c48f9 10969 wxPyEndAllowThreads(__tstate);
4dfaa61e 10970 if (PyErr_Occurred()) return NULL;
b67a9327 10971} _resultobj = Py_BuildValue("i",_result);
9df61a29
RD
10972 return _resultobj;
10973}
10974
10975#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10976static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10977 PyObject * _resultobj;
10978 wxRect * _result;
10979 wxRegionIterator * _arg0;
10980 PyObject * _argo0 = 0;
10981 char *_kwnames[] = { "self", NULL };
10982 char _ptemp[128];
10983
10984 self = self;
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
10986 return NULL;
10987 if (_argo0) {
10988 if (_argo0 == Py_None) { _arg0 = NULL; }
10989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10991 return NULL;
10992 }
10993 }
10994{
474c48f9 10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10996 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
9df61a29 10997
474c48f9 10998 wxPyEndAllowThreads(__tstate);
4dfaa61e 10999 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11000} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11001 _resultobj = Py_BuildValue("s",_ptemp);
11002 return _resultobj;
11003}
11004
11005#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11006static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11007 PyObject * _resultobj;
11008 bool _result;
11009 wxRegionIterator * _arg0;
11010 PyObject * _argo0 = 0;
11011 char *_kwnames[] = { "self", NULL };
11012
11013 self = self;
11014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11015 return NULL;
11016 if (_argo0) {
11017 if (_argo0 == Py_None) { _arg0 = NULL; }
11018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11020 return NULL;
11021 }
11022 }
11023{
474c48f9 11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11025 _result = (bool )wxRegionIterator_HaveRects(_arg0);
9df61a29 11026
474c48f9 11027 wxPyEndAllowThreads(__tstate);
4dfaa61e 11028 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11029} _resultobj = Py_BuildValue("i",_result);
11030 return _resultobj;
11031}
11032
11033#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11034static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11035 PyObject * _resultobj;
11036 wxRegionIterator * _arg0;
11037 PyObject * _argo0 = 0;
11038 char *_kwnames[] = { "self", NULL };
11039
11040 self = self;
11041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11042 return NULL;
11043 if (_argo0) {
11044 if (_argo0 == Py_None) { _arg0 = NULL; }
11045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11047 return NULL;
11048 }
11049 }
11050{
474c48f9 11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11052 wxRegionIterator_Reset(_arg0);
9df61a29 11053
474c48f9 11054 wxPyEndAllowThreads(__tstate);
4dfaa61e 11055 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11056} Py_INCREF(Py_None);
11057 _resultobj = Py_None;
11058 return _resultobj;
11059}
11060
11061static void wxRegionIterator_Next(wxRegionIterator *self) {
11062 (*self) ++;
11063 }
11064static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11065 PyObject * _resultobj;
11066 wxRegionIterator * _arg0;
11067 PyObject * _argo0 = 0;
11068 char *_kwnames[] = { "self", NULL };
11069
11070 self = self;
11071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11072 return NULL;
11073 if (_argo0) {
11074 if (_argo0 == Py_None) { _arg0 = NULL; }
11075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11077 return NULL;
11078 }
11079 }
11080{
474c48f9 11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11082 wxRegionIterator_Next(_arg0);
9df61a29 11083
474c48f9 11084 wxPyEndAllowThreads(__tstate);
4dfaa61e 11085 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11086} Py_INCREF(Py_None);
11087 _resultobj = Py_None;
11088 return _resultobj;
11089}
11090
70551f47 11091static PyMethodDef gdicMethods[] = {
9df61a29
RD
11092 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11093 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11094 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11095 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11096 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11097 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11098 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11099 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11100 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11101 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11102 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11103 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
1fded56b
RD
11104 { "wxRegion_UnionBitmap", (PyCFunction) _wrap_wxRegion_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
11105 { "wxRegion_ConvertToBitmap", (PyCFunction) _wrap_wxRegion_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11106 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11107 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11108 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11109 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11110 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11111 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11112 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11113 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11114 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11115 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11116 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11117 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11118 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11119 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11120 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11121 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11122 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11123 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
8cb49012 11124 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11125 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11126 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
1fded56b 11127 { "new_wxRegionFromBitmap", (PyCFunction) _wrap_new_wxRegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
3efe9549 11128 { "new_wxRegionFromPoints", (PyCFunction) _wrap_new_wxRegionFromPoints, METH_VARARGS | METH_KEYWORDS },
9df61a29 11129 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11130 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11131 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11132 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11133 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11134 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11135 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11136 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11137 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11138 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11139 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11140 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11141 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11142 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11143 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11144 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11145 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
3ef86e32 11146 { "new_wxMirrorDC", (PyCFunction) _wrap_new_wxMirrorDC, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11147 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11148 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11149 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11150 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
107e4716 11151 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
2fc99549 11152 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
107e4716 11153 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
a884bee5 11154 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
301dfd67 11155 { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
a884bee5
RD
11156 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
11157 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11158 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11159 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
b67a9327
RD
11160 { "wxDC__DrawTextList", (PyCFunction) _wrap_wxDC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
11161 { "wxDC__DrawPolygonList", (PyCFunction) _wrap_wxDC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
11162 { "wxDC__DrawEllipseList", (PyCFunction) _wrap_wxDC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
11163 { "wxDC__DrawRectangleList", (PyCFunction) _wrap_wxDC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
3bcd5e1c
RD
11164 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11165 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11166 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11167 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11168 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
e02c03a4
RD
11169 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11170 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11171 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11172 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11173 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11174 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11175 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11176 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11177 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11178 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11179 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11180 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11181 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11182 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11183 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11184 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11185 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11186 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11187 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11188 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11189 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11190 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
b2a2e5bf 11191 { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
059a841c 11192 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11193 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11194 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11195 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11196 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11197 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11198 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11199 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11200 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11201 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11202 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11203 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11204 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11205 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11206 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
107e4716 11207 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
b67a9327 11208 { "wxDC_GetMultiLineTextExtent", (PyCFunction) _wrap_wxDC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11209 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11210 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11211 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11212 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11213 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11214 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11215 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11216 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11217 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11218 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11219 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11220 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11221 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11222 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11223 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11224 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11225 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11226 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11227 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11228 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11229 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11230 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11231 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11232 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11233 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
56f5d962 11234 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
b2a2e5bf 11235 { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11236 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11237 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11238 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11239 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11240 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
8cb49012
RD
11241 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
11242 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11243 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11244 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11245 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11246 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11247 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11248 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11249 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11250 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11251 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11252 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11253 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11254 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11255 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11256 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11257 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11258 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11259 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11260 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11261 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11262 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11263 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11264 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11265 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11266 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11267 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11268 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11269 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
107e4716 11270 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11271 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11272 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11273 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11274 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
11275 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11276 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11277 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
298ae144 11278 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
56f5d962 11279 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11280 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11281 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11282 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11283 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11284 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11285 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11286 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11287 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11288 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11289 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11290 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11291 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
107e4716 11292 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11293 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
dd116e73 11294 { "wxColourDatabase_AddColour", (PyCFunction) _wrap_wxColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11295 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
dd116e73 11296 { "wxColourDatabase_FindColourNoAdd", (PyCFunction) _wrap_wxColourDatabase_FindColourNoAdd, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11297 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
b67a9327
RD
11298 { "wxColour___ne__", (PyCFunction) _wrap_wxColour___ne__, METH_VARARGS | METH_KEYWORDS },
11299 { "wxColour___eq__", (PyCFunction) _wrap_wxColour___eq__, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11300 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11301 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11302 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11303 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11304 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11305 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11306 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11307 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11308 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
11309 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
1fded56b 11310 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
a323d3bd
RD
11311 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
11312 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
11313 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
11314 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
11315 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
11316 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
11317 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
3ef86e32
RD
11318 { "wxIconLocation_GetIndex", (PyCFunction) _wrap_wxIconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
11319 { "wxIconLocation_SetIndex", (PyCFunction) _wrap_wxIconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
11320 { "wxIconLocation_GetFileName", (PyCFunction) _wrap_wxIconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
11321 { "wxIconLocation_SetFileName", (PyCFunction) _wrap_wxIconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
11322 { "wxIconLocation_IsOk", (PyCFunction) _wrap_wxIconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
11323 { "delete_wxIconLocation", (PyCFunction) _wrap_delete_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
11324 { "new_wxIconLocation", (PyCFunction) _wrap_new_wxIconLocation, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11325 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716 11326 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11327 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
11328 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
11329 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
11330 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
11331 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11332 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
11333 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11334 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
11335 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11336 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
107e4716 11337 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
65191ae8 11338 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11339 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11340 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
11341 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11342 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11343 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
11344 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
11345 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
11346 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
107e4716 11347 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
107e4716 11348 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 11349 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11350 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
11351 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11352 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
11353 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11354 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
11355 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
11356 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
11357 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
11358 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11359 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
11360 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
1fded56b 11361 { "wxCursorFromBits", (PyCFunction) _wrap_wxCursorFromBits, METH_VARARGS | METH_KEYWORDS },
b67a9327 11362 { "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS },
107e4716 11363 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
3ef86e32 11364 { "wxIconFromLocation", (PyCFunction) _wrap_wxIconFromLocation, METH_VARARGS | METH_KEYWORDS },
4be61064 11365 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11366 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
11367 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
107e4716 11368 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
9d6da64a 11369 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11370 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
11371 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
107e4716 11372 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
11373 { NULL, NULL }
11374};
2d091820
RD
11375#ifdef __cplusplus
11376}
11377#endif
11378/*
11379 * This table is used by the pointer type-checker
11380 */
11381static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 11382 { "_signed_long","_long",0},
4120ef2b 11383 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
11384 { "_wxPrintQuality","_int",0},
11385 { "_wxPrintQuality","_signed_int",0},
11386 { "_wxPrintQuality","_unsigned_int",0},
11387 { "_wxPrintQuality","_wxWindowID",0},
11388 { "_wxPrintQuality","_uint",0},
11389 { "_wxPrintQuality","_EBool",0},
11390 { "_wxPrintQuality","_size_t",0},
c368d904 11391 { "_wxPrintQuality","_time_t",0},
65191ae8 11392 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
2d091820 11393 { "_byte","_unsigned_char",0},
2d091820
RD
11394 { "_long","_unsigned_long",0},
11395 { "_long","_signed_long",0},
9df61a29 11396 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
9df61a29 11397 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
9df61a29 11398 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
65191ae8 11399 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
9df61a29 11400 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
9df61a29 11401 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
9df61a29 11402 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
9df61a29 11403 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
3ef86e32 11404 { "_wxDC","_wxMirrorDC",SwigwxMirrorDCTowxDC},
2d091820 11405 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
2d091820 11406 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
2d091820 11407 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
2d091820 11408 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
a884bee5
RD
11409 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
11410 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
2d091820 11411 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
4120ef2b 11412 { "_size_t","_wxCoord",0},
2d091820 11413 { "_size_t","_wxPrintQuality",0},
c368d904 11414 { "_size_t","_time_t",0},
2d091820
RD
11415 { "_size_t","_unsigned_int",0},
11416 { "_size_t","_int",0},
11417 { "_size_t","_wxWindowID",0},
11418 { "_size_t","_uint",0},
4120ef2b 11419 { "_uint","_wxCoord",0},
2d091820 11420 { "_uint","_wxPrintQuality",0},
c368d904 11421 { "_uint","_time_t",0},
2d091820
RD
11422 { "_uint","_size_t",0},
11423 { "_uint","_unsigned_int",0},
11424 { "_uint","_int",0},
11425 { "_uint","_wxWindowID",0},
f6bcfd97 11426 { "_wxChar","_char",0},
f6bcfd97 11427 { "_char","_wxChar",0},
a884bee5 11428 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
059a841c 11429 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 11430 { "_EBool","_wxCoord",0},
2d091820
RD
11431 { "_EBool","_wxPrintQuality",0},
11432 { "_EBool","_signed_int",0},
11433 { "_EBool","_int",0},
11434 { "_EBool","_wxWindowID",0},
2d091820 11435 { "_unsigned_long","_long",0},
059a841c 11436 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 11437 { "_signed_int","_wxCoord",0},
2d091820
RD
11438 { "_signed_int","_wxPrintQuality",0},
11439 { "_signed_int","_EBool",0},
11440 { "_signed_int","_wxWindowID",0},
11441 { "_signed_int","_int",0},
2d091820
RD
11442 { "_WXTYPE","_short",0},
11443 { "_WXTYPE","_signed_short",0},
11444 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
11445 { "_unsigned_short","_WXTYPE",0},
11446 { "_unsigned_short","_short",0},
9df61a29 11447 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
9df61a29 11448 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
9df61a29 11449 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
9df61a29 11450 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
3ef86e32 11451 { "_wxObject","_wxMirrorDC",SwigwxMirrorDCTowxObject},
9df61a29 11452 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
9df61a29 11453 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
9df61a29 11454 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
9df61a29 11455 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
a884bee5
RD
11456 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
11457 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
9df61a29 11458 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
9df61a29 11459 { "_wxObject","_wxDC",SwigwxDCTowxObject},
65191ae8 11460 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
9df61a29 11461 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
9df61a29 11462 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
65191ae8 11463 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
9df61a29 11464 { "_wxObject","_wxPen",SwigwxPenTowxObject},
9df61a29 11465 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
9df61a29 11466 { "_wxObject","_wxColour",SwigwxColourTowxObject},
9df61a29 11467 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
9df61a29 11468 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
9df61a29 11469 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
9df61a29 11470 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
9df61a29 11471 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
2d091820
RD
11472 { "_signed_short","_WXTYPE",0},
11473 { "_signed_short","_short",0},
a884bee5
RD
11474 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
11475 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
2d091820 11476 { "_unsigned_char","_byte",0},
4120ef2b 11477 { "_unsigned_int","_wxCoord",0},
2d091820 11478 { "_unsigned_int","_wxPrintQuality",0},
c368d904 11479 { "_unsigned_int","_time_t",0},
2d091820
RD
11480 { "_unsigned_int","_size_t",0},
11481 { "_unsigned_int","_uint",0},
11482 { "_unsigned_int","_wxWindowID",0},
11483 { "_unsigned_int","_int",0},
2d091820
RD
11484 { "_short","_WXTYPE",0},
11485 { "_short","_unsigned_short",0},
11486 { "_short","_signed_short",0},
4120ef2b 11487 { "_wxWindowID","_wxCoord",0},
2d091820 11488 { "_wxWindowID","_wxPrintQuality",0},
c368d904 11489 { "_wxWindowID","_time_t",0},
2d091820
RD
11490 { "_wxWindowID","_size_t",0},
11491 { "_wxWindowID","_EBool",0},
11492 { "_wxWindowID","_uint",0},
11493 { "_wxWindowID","_int",0},
11494 { "_wxWindowID","_signed_int",0},
11495 { "_wxWindowID","_unsigned_int",0},
4120ef2b 11496 { "_int","_wxCoord",0},
2d091820 11497 { "_int","_wxPrintQuality",0},
c368d904 11498 { "_int","_time_t",0},
2d091820
RD
11499 { "_int","_size_t",0},
11500 { "_int","_EBool",0},
11501 { "_int","_uint",0},
11502 { "_int","_wxWindowID",0},
11503 { "_int","_unsigned_int",0},
11504 { "_int","_signed_int",0},
c368d904
RD
11505 { "_time_t","_wxCoord",0},
11506 { "_time_t","_wxPrintQuality",0},
11507 { "_time_t","_unsigned_int",0},
11508 { "_time_t","_int",0},
11509 { "_time_t","_wxWindowID",0},
11510 { "_time_t","_uint",0},
11511 { "_time_t","_size_t",0},
4120ef2b
RD
11512 { "_wxCoord","_int",0},
11513 { "_wxCoord","_signed_int",0},
11514 { "_wxCoord","_unsigned_int",0},
11515 { "_wxCoord","_wxWindowID",0},
11516 { "_wxCoord","_uint",0},
11517 { "_wxCoord","_EBool",0},
11518 { "_wxCoord","_size_t",0},
c368d904 11519 { "_wxCoord","_time_t",0},
4120ef2b 11520 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
11521{0,0,0}};
11522
70551f47
RD
11523static PyObject *SWIG_globals;
11524#ifdef __cplusplus
11525extern "C"
11526#endif
2d091820 11527SWIGEXPORT(void) initgdic() {
70551f47
RD
11528 PyObject *m, *d;
11529 SWIG_globals = SWIG_newvarlink();
11530 m = Py_InitModule("gdic", gdicMethods);
11531 d = PyModule_GetDict(m);
3e212503
RD
11532 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
11533 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
11534 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
11535 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
11536 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
11537 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
11538 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
11539 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
11540 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
11541 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
70551f47
RD
11542 PyDict_SetItemString(d,"cvar", SWIG_globals);
11543 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
11544 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
11545 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
11546 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
11547 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
11548 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
11549 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
11550 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
11551 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
11552 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
11553 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
11554 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
11555 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
11556 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
11557 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
11558 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
11559 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
11560 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
11561 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
11562 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
11563 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
11564 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
11565 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
11566 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
11567 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
11568 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
11569 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
11570 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
11571 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
11572 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
11573 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
11574 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
11575 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
11576 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
11577 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
11578 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
11579 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
11580 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
11581 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
11582 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
11583 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
11584 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
5e40f9dd
RD
11585 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
11586 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
11587 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
11588 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
2d091820
RD
11589{
11590 int i;
11591 for (i = 0; _swig_mapping[i].n1; i++)
11592 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11593}
70551f47 11594}