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