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