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