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