]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.cpp
Added OnDragOver returning wxDragCopy so text can be dropped from IE 6.
[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__)
3bcd5e1c 30# define SWIGEXPORT(a) a _export
70551f47 31# else
3bcd5e1c 32# define SWIGEXPORT(a) a
70551f47
RD
33# endif
34# endif
35#else
3bcd5e1c 36# define SWIGEXPORT(a) a
70551f47
RD
37#endif
38
3bcd5e1c
RD
39#include "Python.h"
40
70551f47
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
3bcd5e1c 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"
21f8d7ea 59#include <wx/imaglist.h>
059a841c
RD
60#include <wx/fontmap.h>
61#include <wx/fontenc.h>
62#include <wx/fontmap.h>
63#include <wx/fontutil.h>
70551f47 64
70551f47
RD
65
66static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
3bcd5e1c 70 if (!target) {
70551f47 71 target = o;
3bcd5e1c 72 } else if (target == Py_None) {
70551f47
RD
73 Py_DECREF(Py_None);
74 target = o;
3bcd5e1c 75 } else {
70551f47
RD
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
3bcd5e1c
RD
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
70551f47
RD
83
84 o2 = target;
3bcd5e1c
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
0220cbc1 95 static char* wxStringErrorMsg = "String type required";
7a446686 96#endif
b68dc582
RD
97
98 static wxString wxPyEmptyStr("");
fbcadfca
RD
99 // Implementations of some alternate "constructors"
100
70551f47
RD
101 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
102 return new wxBitmap(width, height, depth);
103 }
104
fbcadfca
RD
105 static char** ConvertListOfStrings(PyObject* listOfStrings) {
106 char** cArray = NULL;
107 int count;
108
109 if (!PyList_Check(listOfStrings)) {
110 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
111 return NULL;
112 }
113 count = PyList_Size(listOfStrings);
114 cArray = new char*[count];
115
116 for(int x=0; x<count; x++) {
117 // TODO: Need some validation and error checking here
118 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
119 }
120 return cArray;
121 }
122
9d6da64a 123
fbcadfca
RD
124 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 wxBitmap* bmp;
127
128 cArray = ConvertListOfStrings(listOfStrings);
129 if (! cArray)
130 return NULL;
131 bmp = new wxBitmap(cArray);
132 delete [] cArray;
133 return bmp;
134 }
135
136
137 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
138 return new wxBitmap(icon);
139 }
140
141
9d6da64a
RD
142 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
143 return new wxBitmap(bits, width, height, depth);
144 }
9e689c06 145
7ff49f0c 146
9d6da64a
RD
147// #ifdef __WXMSW__
148// wxBitmap* wxBitmapFromData(PyObject* data, long type,
149// int width, int height, int depth = 1) {
150// if (! PyString_Check(data)) {
151// PyErr_SetString(PyExc_TypeError, "Expected string object");
152// return NULL;
153// }
154// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155// }
156// #endif
8bf5d46e 157
70551f47
RD
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
fbcadfca
RD
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
70551f47
RD
176 }
177 // Alternate 'constructor'
b26e2dc4 178 wxCursor* wxPyStockCursor(int id) {
70551f47
RD
179 return new wxCursor(id);
180 }
181 // Alternate 'constructor'
182 wxColour* wxNamedColour(const wxString& colorName) {
183 return new wxColour(colorName);
184 }
65191ae8
RD
185
186class wxPyPen : public wxPen {
187public:
188 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
189 : wxPen(colour, width, style)
190 { m_dash = NULL; }
191 ~wxPyPen() {
192 if (m_dash)
05f30eec 193 delete [] m_dash;
65191ae8
RD
194 }
195
196 void SetDashes(int nb_dashes, const wxDash *dash) {
05f30eec
RD
197 if (m_dash)
198 delete [] m_dash;
65191ae8 199 m_dash = new wxDash[nb_dashes];
05f30eec 200 for (int i=0; i<nb_dashes; i++) {
65191ae8 201 m_dash[i] = dash[i];
05f30eec 202 }
65191ae8
RD
203 wxPen::SetDashes(nb_dashes, m_dash);
204 }
205
206private:
207 wxDash* m_dash;
208};
3bcd5e1c
RD
209
210static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
211 *x1 = dc->MinX();
212 *y1 = dc->MinY();
213 *x2 = dc->MaxX();
214 *y2 = dc->MaxY();
215}
70551f47
RD
216 // Alternate 'constructor'
217 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
218 return new wxMemoryDC(oldDC);
219 }
21f8d7ea
RD
220
221#if 0
70551f47
RD
222extern wxFont * wxNORMAL_FONT;
223extern wxFont * wxSMALL_FONT;
224extern wxFont * wxITALIC_FONT;
225extern wxFont * wxSWISS_FONT;
226extern wxPen * wxRED_PEN;
227extern wxPen * wxCYAN_PEN;
228extern wxPen * wxGREEN_PEN;
229extern wxPen * wxBLACK_PEN;
230extern wxPen * wxWHITE_PEN;
231extern wxPen * wxTRANSPARENT_PEN;
232extern wxPen * wxBLACK_DASHED_PEN;
233extern wxPen * wxGREY_PEN;
234extern wxPen * wxMEDIUM_GREY_PEN;
235extern wxPen * wxLIGHT_GREY_PEN;
236extern wxBrush * wxBLUE_BRUSH;
237extern wxBrush * wxGREEN_BRUSH;
238extern wxBrush * wxWHITE_BRUSH;
239extern wxBrush * wxBLACK_BRUSH;
240extern wxBrush * wxTRANSPARENT_BRUSH;
241extern wxBrush * wxCYAN_BRUSH;
242extern wxBrush * wxRED_BRUSH;
243extern wxBrush * wxGREY_BRUSH;
244extern wxBrush * wxMEDIUM_GREY_BRUSH;
245extern wxBrush * wxLIGHT_GREY_BRUSH;
246extern wxColour * wxBLACK;
247extern wxColour * wxWHITE;
248extern wxColour * wxRED;
249extern wxColour * wxBLUE;
250extern wxColour * wxGREEN;
251extern wxColour * wxCYAN;
252extern wxColour * wxLIGHT_GREY;
253extern wxCursor * wxSTANDARD_CURSOR;
254extern wxCursor * wxHOURGLASS_CURSOR;
255extern wxCursor * wxCROSS_CURSOR;
256extern wxBitmap wxNullBitmap;
257extern wxIcon wxNullIcon;
258extern wxCursor wxNullCursor;
259extern wxPen wxNullPen;
260extern wxBrush wxNullBrush;
261extern wxPalette wxNullPalette;
262extern wxFont wxNullFont;
263extern wxColour wxNullColour;
5e40f9dd
RD
264extern wxFontList * wxTheFontList;
265extern wxPenList * wxThePenList;
65191ae8 266extern wxBrushList * wxTheBrushList;
5e40f9dd 267extern wxColourDatabase * wxTheColourDatabase;
21f8d7ea 268
2d091820
RD
269#endif
270#ifdef __cplusplus
271extern "C" {
21f8d7ea 272#endif
107e4716 273static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
274 PyObject * _resultobj;
275 wxBitmap * _result;
276 int _arg0;
277 int _arg1;
2d091820 278 int _arg2 = (int ) -1;
107e4716 279 char *_kwnames[] = { "width","height","depth", NULL };
70551f47
RD
280 char _ptemp[128];
281
282 self = self;
107e4716 283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 284 return NULL;
ab9bc19b 285{
474c48f9 286 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
287 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
288
474c48f9 289 wxPyEndAllowThreads(__tstate);
4dfaa61e 290 if (PyErr_Occurred()) return NULL;
2d091820
RD
291} if (_result) {
292 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
293 _resultobj = Py_BuildValue("s",_ptemp);
294 } else {
295 Py_INCREF(Py_None);
296 _resultobj = Py_None;
297 }
70551f47
RD
298 return _resultobj;
299}
300
fbcadfca
RD
301static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
302 PyObject * _resultobj;
303 wxBitmap * _result;
304 PyObject * _arg0;
305 PyObject * _obj0 = 0;
306 char *_kwnames[] = { "listOfStrings", NULL };
307 char _ptemp[128];
308
309 self = self;
310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
311 return NULL;
312{
313 _arg0 = _obj0;
314}
315{
474c48f9 316 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
317 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
318
474c48f9 319 wxPyEndAllowThreads(__tstate);
4dfaa61e 320 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
321} if (_result) {
322 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
323 _resultobj = Py_BuildValue("s",_ptemp);
324 } else {
325 Py_INCREF(Py_None);
326 _resultobj = Py_None;
327 }
328 return _resultobj;
329}
330
331static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
332 PyObject * _resultobj;
333 wxBitmap * _result;
334 wxIcon * _arg0;
335 PyObject * _argo0 = 0;
336 char *_kwnames[] = { "icon", NULL };
337 char _ptemp[128];
338
339 self = self;
340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
341 return NULL;
342 if (_argo0) {
343 if (_argo0 == Py_None) { _arg0 = NULL; }
344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
346 return NULL;
347 }
348 }
349{
474c48f9 350 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
351 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
352
474c48f9 353 wxPyEndAllowThreads(__tstate);
4dfaa61e 354 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
355} if (_result) {
356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
357 _resultobj = Py_BuildValue("s",_ptemp);
358 } else {
359 Py_INCREF(Py_None);
360 _resultobj = Py_None;
361 }
362 return _resultobj;
363}
364
9d6da64a
RD
365static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
366 PyObject * _resultobj;
367 wxBitmap * _result;
368 char * _arg0;
369 int _arg1;
370 int _arg2;
371 int _arg3 = (int ) 1;
372 char *_kwnames[] = { "bits","width","height","depth", NULL };
373 char _ptemp[128];
374
375 self = self;
376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
377 return NULL;
378{
474c48f9 379 PyThreadState* __tstate = wxPyBeginAllowThreads();
9d6da64a
RD
380 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
381
474c48f9 382 wxPyEndAllowThreads(__tstate);
9d6da64a
RD
383 if (PyErr_Occurred()) return NULL;
384} if (_result) {
385 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
386 _resultobj = Py_BuildValue("s",_ptemp);
387 } else {
388 Py_INCREF(Py_None);
389 _resultobj = Py_None;
390 }
391 return _resultobj;
392}
393
107e4716 394static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
395 PyObject * _resultobj;
396 wxMask * _result;
397 wxBitmap * _arg0;
398 wxColour * _arg1;
2d091820 399 PyObject * _argo0 = 0;
f6bcfd97
BP
400 wxColour temp;
401 PyObject * _obj1 = 0;
107e4716 402 char *_kwnames[] = { "bitmap","colour", NULL };
70551f47
RD
403 char _ptemp[128];
404
405 self = self;
f6bcfd97 406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
70551f47 407 return NULL;
2d091820
RD
408 if (_argo0) {
409 if (_argo0 == Py_None) { _arg0 = NULL; }
410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
412 return NULL;
413 }
414 }
f6bcfd97
BP
415{
416 _arg1 = &temp;
417 if (! wxColour_helper(_obj1, &_arg1))
70551f47 418 return NULL;
f6bcfd97 419}
ab9bc19b 420{
474c48f9 421 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
422 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
423
474c48f9 424 wxPyEndAllowThreads(__tstate);
4dfaa61e 425 if (PyErr_Occurred()) return NULL;
2d091820
RD
426} if (_result) {
427 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
428 _resultobj = Py_BuildValue("s",_ptemp);
429 } else {
430 Py_INCREF(Py_None);
431 _resultobj = Py_None;
432 }
70551f47
RD
433 return _resultobj;
434}
435
fbcadfca
RD
436static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
437 PyObject * _resultobj;
438 wxIcon * _result;
439 char *_kwnames[] = { NULL };
440 char _ptemp[128];
441
442 self = self;
443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
444 return NULL;
445{
474c48f9 446 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
447 _result = (wxIcon *)wxEmptyIcon();
448
474c48f9 449 wxPyEndAllowThreads(__tstate);
4dfaa61e 450 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
451} if (_result) {
452 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
453 _resultobj = Py_BuildValue("s",_ptemp);
454 } else {
455 Py_INCREF(Py_None);
456 _resultobj = Py_None;
457 }
458 return _resultobj;
459}
460
461static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
462 PyObject * _resultobj;
463 wxIcon * _result;
464 PyObject * _arg0;
465 PyObject * _obj0 = 0;
466 char *_kwnames[] = { "listOfStrings", NULL };
467 char _ptemp[128];
468
469 self = self;
470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
471 return NULL;
472{
473 _arg0 = _obj0;
474}
475{
474c48f9 476 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
477 _result = (wxIcon *)wxIconFromXPMData(_arg0);
478
474c48f9 479 wxPyEndAllowThreads(__tstate);
4dfaa61e 480 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
481} if (_result) {
482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
483 _resultobj = Py_BuildValue("s",_ptemp);
484 } else {
485 Py_INCREF(Py_None);
486 _resultobj = Py_None;
487 }
488 return _resultobj;
489}
490
107e4716 491static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
492 PyObject * _resultobj;
493 wxCursor * _result;
494 int _arg0;
107e4716 495 char *_kwnames[] = { "id", NULL };
70551f47
RD
496 char _ptemp[128];
497
498 self = self;
107e4716 499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
70551f47 500 return NULL;
ab9bc19b 501{
474c48f9 502 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
503 _result = (wxCursor *)wxPyStockCursor(_arg0);
504
474c48f9 505 wxPyEndAllowThreads(__tstate);
4dfaa61e 506 if (PyErr_Occurred()) return NULL;
2d091820
RD
507} if (_result) {
508 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
509 _resultobj = Py_BuildValue("s",_ptemp);
510 } else {
511 Py_INCREF(Py_None);
512 _resultobj = Py_None;
513 }
70551f47
RD
514 return _resultobj;
515}
516
107e4716 517static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
518 PyObject * _resultobj;
519 wxColour * _result;
520 wxString * _arg0;
521 PyObject * _obj0 = 0;
107e4716 522 char *_kwnames[] = { "colorName", NULL };
70551f47
RD
523 char _ptemp[128];
524
525 self = self;
107e4716 526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
70551f47
RD
527 return NULL;
528{
2cd2fac8
RD
529#if PYTHON_API_VERSION >= 1009
530 char* tmpPtr; int tmpSize;
531 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
533 return NULL;
534 }
535 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
536 return NULL;
537 _arg0 = new wxString(tmpPtr, tmpSize);
538#else
70551f47
RD
539 if (!PyString_Check(_obj0)) {
540 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
541 return NULL;
542 }
2cd2fac8
RD
543 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
544#endif
70551f47 545}
ab9bc19b 546{
474c48f9 547 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
548 _result = (wxColour *)wxNamedColour(*_arg0);
549
474c48f9 550 wxPyEndAllowThreads(__tstate);
4dfaa61e 551 if (PyErr_Occurred()) return NULL;
2d091820
RD
552} if (_result) {
553 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
554 _resultobj = Py_BuildValue("s",_ptemp);
555 } else {
556 Py_INCREF(Py_None);
557 _resultobj = Py_None;
558 }
70551f47
RD
559{
560 if (_obj0)
561 delete _arg0;
562}
563 return _resultobj;
564}
565
107e4716 566static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
567 PyObject * _resultobj;
568 wxMemoryDC * _result;
569 wxDC * _arg0;
2d091820 570 PyObject * _argo0 = 0;
107e4716 571 char *_kwnames[] = { "oldDC", NULL };
70551f47
RD
572 char _ptemp[128];
573
574 self = self;
107e4716 575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
70551f47 576 return NULL;
2d091820
RD
577 if (_argo0) {
578 if (_argo0 == Py_None) { _arg0 = NULL; }
579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
581 return NULL;
582 }
583 }
ab9bc19b 584{
474c48f9 585 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
586 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
587
474c48f9 588 wxPyEndAllowThreads(__tstate);
4dfaa61e 589 if (PyErr_Occurred()) return NULL;
2d091820
RD
590} if (_result) {
591 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
592 _resultobj = Py_BuildValue("s",_ptemp);
593 } else {
594 Py_INCREF(Py_None);
595 _resultobj = Py_None;
596 }
70551f47
RD
597 return _resultobj;
598}
599
600static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
601
602 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
603 return 1;
604}
605
606static PyObject *_wrap_wxNORMAL_FONT_get() {
607 PyObject * pyobj;
608 char ptemp[128];
609
610 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
611 pyobj = PyString_FromString(ptemp);
612 return pyobj;
613}
614
615static int _wrap_wxSMALL_FONT_set(PyObject *val) {
616
617 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
618 return 1;
619}
620
621static PyObject *_wrap_wxSMALL_FONT_get() {
622 PyObject * pyobj;
623 char ptemp[128];
624
625 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
626 pyobj = PyString_FromString(ptemp);
627 return pyobj;
628}
629
630static int _wrap_wxITALIC_FONT_set(PyObject *val) {
631
632 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
633 return 1;
634}
635
636static PyObject *_wrap_wxITALIC_FONT_get() {
637 PyObject * pyobj;
638 char ptemp[128];
639
640 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
641 pyobj = PyString_FromString(ptemp);
642 return pyobj;
643}
644
645static int _wrap_wxSWISS_FONT_set(PyObject *val) {
646
647 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
648 return 1;
649}
650
651static PyObject *_wrap_wxSWISS_FONT_get() {
652 PyObject * pyobj;
653 char ptemp[128];
654
655 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
656 pyobj = PyString_FromString(ptemp);
657 return pyobj;
658}
659
660static int _wrap_wxRED_PEN_set(PyObject *val) {
661
662 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
663 return 1;
664}
665
666static PyObject *_wrap_wxRED_PEN_get() {
667 PyObject * pyobj;
668 char ptemp[128];
669
670 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
671 pyobj = PyString_FromString(ptemp);
672 return pyobj;
673}
674
675static int _wrap_wxCYAN_PEN_set(PyObject *val) {
676
677 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
678 return 1;
679}
680
681static PyObject *_wrap_wxCYAN_PEN_get() {
682 PyObject * pyobj;
683 char ptemp[128];
684
685 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
686 pyobj = PyString_FromString(ptemp);
687 return pyobj;
688}
689
690static int _wrap_wxGREEN_PEN_set(PyObject *val) {
691
692 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
693 return 1;
694}
695
696static PyObject *_wrap_wxGREEN_PEN_get() {
697 PyObject * pyobj;
698 char ptemp[128];
699
700 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
701 pyobj = PyString_FromString(ptemp);
702 return pyobj;
703}
704
705static int _wrap_wxBLACK_PEN_set(PyObject *val) {
706
707 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
708 return 1;
709}
710
711static PyObject *_wrap_wxBLACK_PEN_get() {
712 PyObject * pyobj;
713 char ptemp[128];
714
715 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
716 pyobj = PyString_FromString(ptemp);
717 return pyobj;
718}
719
720static int _wrap_wxWHITE_PEN_set(PyObject *val) {
721
722 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
723 return 1;
724}
725
726static PyObject *_wrap_wxWHITE_PEN_get() {
727 PyObject * pyobj;
728 char ptemp[128];
729
730 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
731 pyobj = PyString_FromString(ptemp);
732 return pyobj;
733}
734
735static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
736
737 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
738 return 1;
739}
740
741static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
742 PyObject * pyobj;
743 char ptemp[128];
744
745 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
746 pyobj = PyString_FromString(ptemp);
747 return pyobj;
748}
749
750static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
751
752 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
753 return 1;
754}
755
756static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
757 PyObject * pyobj;
758 char ptemp[128];
759
760 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
761 pyobj = PyString_FromString(ptemp);
762 return pyobj;
763}
764
765static int _wrap_wxGREY_PEN_set(PyObject *val) {
766
767 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
768 return 1;
769}
770
771static PyObject *_wrap_wxGREY_PEN_get() {
772 PyObject * pyobj;
773 char ptemp[128];
774
775 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
776 pyobj = PyString_FromString(ptemp);
777 return pyobj;
778}
779
780static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
781
782 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
783 return 1;
784}
785
786static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
787 PyObject * pyobj;
788 char ptemp[128];
789
790 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
791 pyobj = PyString_FromString(ptemp);
792 return pyobj;
793}
794
795static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
796
797 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
798 return 1;
799}
800
801static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
802 PyObject * pyobj;
803 char ptemp[128];
804
805 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
806 pyobj = PyString_FromString(ptemp);
807 return pyobj;
808}
809
810static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
811
812 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
813 return 1;
814}
815
816static PyObject *_wrap_wxBLUE_BRUSH_get() {
817 PyObject * pyobj;
818 char ptemp[128];
819
820 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
821 pyobj = PyString_FromString(ptemp);
822 return pyobj;
823}
824
825static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
826
827 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
828 return 1;
829}
830
831static PyObject *_wrap_wxGREEN_BRUSH_get() {
832 PyObject * pyobj;
833 char ptemp[128];
834
835 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
836 pyobj = PyString_FromString(ptemp);
837 return pyobj;
838}
839
840static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
841
842 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
843 return 1;
844}
845
846static PyObject *_wrap_wxWHITE_BRUSH_get() {
847 PyObject * pyobj;
848 char ptemp[128];
849
850 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
851 pyobj = PyString_FromString(ptemp);
852 return pyobj;
853}
854
855static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
856
857 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
858 return 1;
859}
860
861static PyObject *_wrap_wxBLACK_BRUSH_get() {
862 PyObject * pyobj;
863 char ptemp[128];
864
865 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
866 pyobj = PyString_FromString(ptemp);
867 return pyobj;
868}
869
870static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
871
872 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
873 return 1;
874}
875
876static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
877 PyObject * pyobj;
878 char ptemp[128];
879
880 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
881 pyobj = PyString_FromString(ptemp);
882 return pyobj;
883}
884
885static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
886
887 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
888 return 1;
889}
890
891static PyObject *_wrap_wxCYAN_BRUSH_get() {
892 PyObject * pyobj;
893 char ptemp[128];
894
895 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
896 pyobj = PyString_FromString(ptemp);
897 return pyobj;
898}
899
900static int _wrap_wxRED_BRUSH_set(PyObject *val) {
901
902 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
903 return 1;
904}
905
906static PyObject *_wrap_wxRED_BRUSH_get() {
907 PyObject * pyobj;
908 char ptemp[128];
909
910 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
911 pyobj = PyString_FromString(ptemp);
912 return pyobj;
913}
914
915static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
916
917 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
918 return 1;
919}
920
921static PyObject *_wrap_wxGREY_BRUSH_get() {
922 PyObject * pyobj;
923 char ptemp[128];
924
925 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
926 pyobj = PyString_FromString(ptemp);
927 return pyobj;
928}
929
930static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
931
932 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
933 return 1;
934}
935
936static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
937 PyObject * pyobj;
938 char ptemp[128];
939
940 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
941 pyobj = PyString_FromString(ptemp);
942 return pyobj;
943}
944
945static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
946
947 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
948 return 1;
949}
950
951static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
952 PyObject * pyobj;
953 char ptemp[128];
954
955 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
956 pyobj = PyString_FromString(ptemp);
957 return pyobj;
958}
959
960static int _wrap_wxBLACK_set(PyObject *val) {
961
962 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
963 return 1;
964}
965
966static PyObject *_wrap_wxBLACK_get() {
967 PyObject * pyobj;
968 char ptemp[128];
969
970 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
971 pyobj = PyString_FromString(ptemp);
972 return pyobj;
973}
974
975static int _wrap_wxWHITE_set(PyObject *val) {
976
977 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
978 return 1;
979}
980
981static PyObject *_wrap_wxWHITE_get() {
982 PyObject * pyobj;
983 char ptemp[128];
984
985 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
986 pyobj = PyString_FromString(ptemp);
987 return pyobj;
988}
989
990static int _wrap_wxRED_set(PyObject *val) {
991
992 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
993 return 1;
994}
995
996static PyObject *_wrap_wxRED_get() {
997 PyObject * pyobj;
998 char ptemp[128];
999
1000 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1001 pyobj = PyString_FromString(ptemp);
1002 return pyobj;
1003}
1004
1005static int _wrap_wxBLUE_set(PyObject *val) {
1006
1007 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1008 return 1;
1009}
1010
1011static PyObject *_wrap_wxBLUE_get() {
1012 PyObject * pyobj;
1013 char ptemp[128];
1014
1015 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1016 pyobj = PyString_FromString(ptemp);
1017 return pyobj;
1018}
1019
1020static int _wrap_wxGREEN_set(PyObject *val) {
1021
1022 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1023 return 1;
1024}
1025
1026static PyObject *_wrap_wxGREEN_get() {
1027 PyObject * pyobj;
1028 char ptemp[128];
1029
1030 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1031 pyobj = PyString_FromString(ptemp);
1032 return pyobj;
1033}
1034
1035static int _wrap_wxCYAN_set(PyObject *val) {
1036
1037 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1038 return 1;
1039}
1040
1041static PyObject *_wrap_wxCYAN_get() {
1042 PyObject * pyobj;
1043 char ptemp[128];
1044
1045 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1046 pyobj = PyString_FromString(ptemp);
1047 return pyobj;
1048}
1049
1050static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1051
1052 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1053 return 1;
1054}
1055
1056static PyObject *_wrap_wxLIGHT_GREY_get() {
1057 PyObject * pyobj;
1058 char ptemp[128];
1059
1060 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1061 pyobj = PyString_FromString(ptemp);
1062 return pyobj;
1063}
1064
1065static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1066
1067 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1068 return 1;
1069}
1070
1071static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1072 PyObject * pyobj;
1073 char ptemp[128];
1074
1075 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1076 pyobj = PyString_FromString(ptemp);
1077 return pyobj;
1078}
1079
1080static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1081
1082 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1083 return 1;
1084}
1085
1086static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1087 PyObject * pyobj;
1088 char ptemp[128];
1089
1090 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1091 pyobj = PyString_FromString(ptemp);
1092 return pyobj;
1093}
1094
1095static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1096
1097 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1098 return 1;
1099}
1100
1101static PyObject *_wrap_wxCROSS_CURSOR_get() {
1102 PyObject * pyobj;
1103 char ptemp[128];
1104
1105 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1106 pyobj = PyString_FromString(ptemp);
1107 return pyobj;
1108}
1109
1110static int _wrap_wxNullBitmap_set(PyObject *val) {
1111
1112 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1113 return 1;
1114}
1115
1116static PyObject *_wrap_wxNullBitmap_get() {
1117 PyObject * pyobj;
1118 char ptemp[128];
1119
1120 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1121 pyobj = PyString_FromString(ptemp);
1122 return pyobj;
1123}
1124
1125static int _wrap_wxNullIcon_set(PyObject *val) {
1126
1127 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1128 return 1;
1129}
1130
1131static PyObject *_wrap_wxNullIcon_get() {
1132 PyObject * pyobj;
1133 char ptemp[128];
1134
1135 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1136 pyobj = PyString_FromString(ptemp);
1137 return pyobj;
1138}
1139
1140static int _wrap_wxNullCursor_set(PyObject *val) {
1141
1142 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1143 return 1;
1144}
1145
1146static PyObject *_wrap_wxNullCursor_get() {
1147 PyObject * pyobj;
1148 char ptemp[128];
1149
1150 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1151 pyobj = PyString_FromString(ptemp);
1152 return pyobj;
1153}
1154
1155static int _wrap_wxNullPen_set(PyObject *val) {
1156
1157 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1158 return 1;
1159}
1160
1161static PyObject *_wrap_wxNullPen_get() {
1162 PyObject * pyobj;
1163 char ptemp[128];
1164
1165 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1166 pyobj = PyString_FromString(ptemp);
1167 return pyobj;
1168}
1169
1170static int _wrap_wxNullBrush_set(PyObject *val) {
1171
1172 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1173 return 1;
1174}
1175
1176static PyObject *_wrap_wxNullBrush_get() {
1177 PyObject * pyobj;
1178 char ptemp[128];
1179
1180 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1181 pyobj = PyString_FromString(ptemp);
1182 return pyobj;
1183}
1184
1185static int _wrap_wxNullPalette_set(PyObject *val) {
1186
1187 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1188 return 1;
1189}
1190
1191static PyObject *_wrap_wxNullPalette_get() {
1192 PyObject * pyobj;
1193 char ptemp[128];
1194
1195 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1196 pyobj = PyString_FromString(ptemp);
1197 return pyobj;
1198}
1199
1200static int _wrap_wxNullFont_set(PyObject *val) {
1201
1202 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1203 return 1;
1204}
1205
1206static PyObject *_wrap_wxNullFont_get() {
1207 PyObject * pyobj;
1208 char ptemp[128];
1209
1210 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1211 pyobj = PyString_FromString(ptemp);
1212 return pyobj;
1213}
1214
1215static int _wrap_wxNullColour_set(PyObject *val) {
1216
1217 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1218 return 1;
1219}
1220
1221static PyObject *_wrap_wxNullColour_get() {
1222 PyObject * pyobj;
1223 char ptemp[128];
1224
1225 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1226 pyobj = PyString_FromString(ptemp);
1227 return pyobj;
1228}
1229
5e40f9dd
RD
1230static int _wrap_wxTheFontList_set(PyObject *val) {
1231
1232 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1233 return 1;
1234}
1235
1236static PyObject *_wrap_wxTheFontList_get() {
1237 PyObject * pyobj;
1238 char ptemp[128];
1239
1240 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1241 pyobj = PyString_FromString(ptemp);
1242 return pyobj;
1243}
1244
1245static int _wrap_wxThePenList_set(PyObject *val) {
1246
1247 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1248 return 1;
1249}
1250
1251static PyObject *_wrap_wxThePenList_get() {
1252 PyObject * pyobj;
1253 char ptemp[128];
1254
1255 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1256 pyobj = PyString_FromString(ptemp);
1257 return pyobj;
1258}
1259
1260static int _wrap_wxTheBrushList_set(PyObject *val) {
1261
1262 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1263 return 1;
1264}
1265
1266static PyObject *_wrap_wxTheBrushList_get() {
1267 PyObject * pyobj;
1268 char ptemp[128];
1269
65191ae8 1270 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
5e40f9dd
RD
1271 pyobj = PyString_FromString(ptemp);
1272 return pyobj;
1273}
1274
1275static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1276
1277 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1278 return 1;
1279}
1280
1281static PyObject *_wrap_wxTheColourDatabase_get() {
1282 PyObject * pyobj;
1283 char ptemp[128];
1284
1285 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1286 pyobj = PyString_FromString(ptemp);
1287 return pyobj;
1288}
1289
9df61a29
RD
1290static void *SwigwxGDIObjectTowxObject(void *ptr) {
1291 wxGDIObject *src;
1292 wxObject *dest;
1293 src = (wxGDIObject *) ptr;
1294 dest = (wxObject *) src;
1295 return (void *) dest;
1296}
1297
1298#define new_wxGDIObject() (new wxGDIObject())
1299static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1300 PyObject * _resultobj;
1301 wxGDIObject * _result;
1302 char *_kwnames[] = { NULL };
1303 char _ptemp[128];
1304
1305 self = self;
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1307 return NULL;
1308{
474c48f9 1309 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
1310 _result = (wxGDIObject *)new_wxGDIObject();
1311
474c48f9 1312 wxPyEndAllowThreads(__tstate);
4dfaa61e 1313 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1314} if (_result) {
1315 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1316 _resultobj = Py_BuildValue("s",_ptemp);
1317 } else {
1318 Py_INCREF(Py_None);
1319 _resultobj = Py_None;
1320 }
1321 return _resultobj;
1322}
1323
1324#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1325static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject * _resultobj;
1327 wxGDIObject * _arg0;
1328 PyObject * _argo0 = 0;
1329 char *_kwnames[] = { "self", NULL };
1330
1331 self = self;
1332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1333 return NULL;
1334 if (_argo0) {
1335 if (_argo0 == Py_None) { _arg0 = NULL; }
1336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1338 return NULL;
1339 }
1340 }
1341{
474c48f9 1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
1343 delete_wxGDIObject(_arg0);
1344
474c48f9 1345 wxPyEndAllowThreads(__tstate);
4dfaa61e 1346 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1347} Py_INCREF(Py_None);
1348 _resultobj = Py_None;
1349 return _resultobj;
1350}
1351
1352#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1353static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1354 PyObject * _resultobj;
1355 bool _result;
1356 wxGDIObject * _arg0;
1357 PyObject * _argo0 = 0;
1358 char *_kwnames[] = { "self", NULL };
1359
1360 self = self;
1361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1362 return NULL;
1363 if (_argo0) {
1364 if (_argo0 == Py_None) { _arg0 = NULL; }
1365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1367 return NULL;
1368 }
1369 }
1370{
474c48f9 1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
1372 _result = (bool )wxGDIObject_GetVisible(_arg0);
1373
474c48f9 1374 wxPyEndAllowThreads(__tstate);
4dfaa61e 1375 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1376} _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378}
1379
1380#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1381static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject * _resultobj;
1383 wxGDIObject * _arg0;
1384 bool _arg1;
1385 PyObject * _argo0 = 0;
1386 int tempbool1;
1387 char *_kwnames[] = { "self","visible", NULL };
1388
1389 self = self;
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1391 return NULL;
1392 if (_argo0) {
1393 if (_argo0 == Py_None) { _arg0 = NULL; }
1394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1396 return NULL;
1397 }
1398 }
1399 _arg1 = (bool ) tempbool1;
1400{
474c48f9 1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
1402 wxGDIObject_SetVisible(_arg0,_arg1);
1403
474c48f9 1404 wxPyEndAllowThreads(__tstate);
4dfaa61e 1405 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1406} Py_INCREF(Py_None);
1407 _resultobj = Py_None;
1408 return _resultobj;
1409}
1410
1411#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1412static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 bool _result;
1415 wxGDIObject * _arg0;
1416 PyObject * _argo0 = 0;
1417 char *_kwnames[] = { "self", NULL };
1418
1419 self = self;
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1421 return NULL;
1422 if (_argo0) {
1423 if (_argo0 == Py_None) { _arg0 = NULL; }
1424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1426 return NULL;
1427 }
1428 }
1429{
474c48f9 1430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
1431 _result = (bool )wxGDIObject_IsNull(_arg0);
1432
474c48f9 1433 wxPyEndAllowThreads(__tstate);
4dfaa61e 1434 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1435} _resultobj = Py_BuildValue("i",_result);
1436 return _resultobj;
1437}
1438
1439static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1440 wxBitmap *src;
1441 wxGDIObject *dest;
1442 src = (wxBitmap *) ptr;
1443 dest = (wxGDIObject *) src;
1444 return (void *) dest;
1445}
1446
1447static void *SwigwxBitmapTowxObject(void *ptr) {
1448 wxBitmap *src;
1449 wxObject *dest;
1450 src = (wxBitmap *) ptr;
1451 dest = (wxObject *) src;
1452 return (void *) dest;
1453}
1454
70551f47 1455#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
107e4716 1456static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1457 PyObject * _resultobj;
1458 wxBitmap * _result;
1459 wxString * _arg0;
5c0282d5 1460 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
70551f47 1461 PyObject * _obj0 = 0;
107e4716 1462 char *_kwnames[] = { "name","type", NULL };
70551f47
RD
1463 char _ptemp[128];
1464
1465 self = self;
5c0282d5 1466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
70551f47
RD
1467 return NULL;
1468{
2cd2fac8
RD
1469#if PYTHON_API_VERSION >= 1009
1470 char* tmpPtr; int tmpSize;
1471 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 1472 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1473 return NULL;
1474 }
1475 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1476 return NULL;
1477 _arg0 = new wxString(tmpPtr, tmpSize);
1478#else
70551f47
RD
1479 if (!PyString_Check(_obj0)) {
1480 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1481 return NULL;
1482 }
2cd2fac8
RD
1483 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1484#endif
70551f47 1485}
ab9bc19b 1486{
474c48f9 1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
1488 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1489
474c48f9 1490 wxPyEndAllowThreads(__tstate);
4dfaa61e 1491 if (PyErr_Occurred()) return NULL;
2d091820
RD
1492} if (_result) {
1493 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1494 _resultobj = Py_BuildValue("s",_ptemp);
1495 } else {
1496 Py_INCREF(Py_None);
1497 _resultobj = Py_None;
1498 }
70551f47
RD
1499{
1500 if (_obj0)
1501 delete _arg0;
1502}
1503 return _resultobj;
1504}
1505
1506#define delete_wxBitmap(_swigobj) (delete _swigobj)
107e4716 1507static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1508 PyObject * _resultobj;
1509 wxBitmap * _arg0;
2d091820 1510 PyObject * _argo0 = 0;
107e4716 1511 char *_kwnames[] = { "self", NULL };
70551f47
RD
1512
1513 self = self;
107e4716 1514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
70551f47 1515 return NULL;
2d091820
RD
1516 if (_argo0) {
1517 if (_argo0 == Py_None) { _arg0 = NULL; }
1518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1520 return NULL;
1521 }
1522 }
ab9bc19b 1523{
474c48f9 1524 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
1525 delete_wxBitmap(_arg0);
1526
474c48f9 1527 wxPyEndAllowThreads(__tstate);
4dfaa61e 1528 if (PyErr_Occurred()) return NULL;
ab9bc19b 1529} Py_INCREF(Py_None);
70551f47
RD
1530 _resultobj = Py_None;
1531 return _resultobj;
1532}
1533
70551f47 1534#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
107e4716 1535static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1536 PyObject * _resultobj;
1537 wxPalette * _result;
1538 wxBitmap * _arg0;
2d091820 1539 PyObject * _argo0 = 0;
107e4716 1540 char *_kwnames[] = { "self", NULL };
70551f47
RD
1541 char _ptemp[128];
1542
1543 self = self;
107e4716 1544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
70551f47 1545 return NULL;
2d091820
RD
1546 if (_argo0) {
1547 if (_argo0 == Py_None) { _arg0 = NULL; }
1548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1550 return NULL;
1551 }
1552 }
ab9bc19b 1553{
474c48f9 1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
1555 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1556
474c48f9 1557 wxPyEndAllowThreads(__tstate);
4dfaa61e 1558 if (PyErr_Occurred()) return NULL;
2d091820
RD
1559} if (_result) {
1560 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1561 _resultobj = Py_BuildValue("s",_ptemp);
1562 } else {
1563 Py_INCREF(Py_None);
1564 _resultobj = Py_None;
1565 }
70551f47
RD
1566 return _resultobj;
1567}
1568
1569#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
107e4716 1570static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1571 PyObject * _resultobj;
1572 wxMask * _result;
1573 wxBitmap * _arg0;
2d091820 1574 PyObject * _argo0 = 0;
107e4716 1575 char *_kwnames[] = { "self", NULL };
70551f47
RD
1576 char _ptemp[128];
1577
1578 self = self;
107e4716 1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
70551f47 1580 return NULL;
2d091820
RD
1581 if (_argo0) {
1582 if (_argo0 == Py_None) { _arg0 = NULL; }
1583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1585 return NULL;
1586 }
1587 }
ab9bc19b 1588{
474c48f9 1589 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
1590 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1591
474c48f9 1592 wxPyEndAllowThreads(__tstate);
4dfaa61e 1593 if (PyErr_Occurred()) return NULL;
2d091820
RD
1594} if (_result) {
1595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1596 _resultobj = Py_BuildValue("s",_ptemp);
1597 } else {
1598 Py_INCREF(Py_None);
1599 _resultobj = Py_None;
1600 }
70551f47
RD
1601 return _resultobj;
1602}
1603
56f5d962
RD
1604#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1605static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1606 PyObject * _resultobj;
56f5d962 1607 bool _result;
70551f47 1608 wxBitmap * _arg0;
56f5d962 1609 wxString * _arg1;
5c0282d5 1610 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
2d091820 1611 PyObject * _argo0 = 0;
56f5d962 1612 PyObject * _obj1 = 0;
5c0282d5 1613 char *_kwnames[] = { "self","name","type", NULL };
70551f47
RD
1614
1615 self = self;
5c0282d5 1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 1617 return NULL;
2d091820
RD
1618 if (_argo0) {
1619 if (_argo0 == Py_None) { _arg0 = NULL; }
1620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
70551f47
RD
1622 return NULL;
1623 }
1624 }
56f5d962 1625{
2cd2fac8
RD
1626#if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr; int tmpSize;
1628 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1630 return NULL;
1631 }
1632 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1633 return NULL;
1634 _arg1 = new wxString(tmpPtr, tmpSize);
1635#else
56f5d962
RD
1636 if (!PyString_Check(_obj1)) {
1637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1638 return NULL;
1639 }
2cd2fac8
RD
1640 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1641#endif
56f5d962 1642}
ab9bc19b 1643{
474c48f9 1644 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1645 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 1646
474c48f9 1647 wxPyEndAllowThreads(__tstate);
4dfaa61e 1648 if (PyErr_Occurred()) return NULL;
ab9bc19b 1649} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
1650{
1651 if (_obj1)
1652 delete _arg1;
1653}
70551f47
RD
1654 return _resultobj;
1655}
1656
56f5d962
RD
1657#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1658static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1659 PyObject * _resultobj;
1660 bool _result;
1661 wxBitmap * _arg0;
1662 wxString * _arg1;
5c0282d5 1663 wxBitmapType _arg2;
56f5d962 1664 wxPalette * _arg3 = (wxPalette *) NULL;
2d091820 1665 PyObject * _argo0 = 0;
70551f47 1666 PyObject * _obj1 = 0;
56f5d962
RD
1667 PyObject * _argo3 = 0;
1668 char *_kwnames[] = { "self","name","type","palette", NULL };
70551f47
RD
1669
1670 self = self;
56f5d962 1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
70551f47 1672 return NULL;
2d091820
RD
1673 if (_argo0) {
1674 if (_argo0 == Py_None) { _arg0 = NULL; }
1675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
70551f47
RD
1677 return NULL;
1678 }
1679 }
1680{
2cd2fac8
RD
1681#if PYTHON_API_VERSION >= 1009
1682 char* tmpPtr; int tmpSize;
1683 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1684 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1685 return NULL;
1686 }
1687 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1688 return NULL;
1689 _arg1 = new wxString(tmpPtr, tmpSize);
1690#else
70551f47
RD
1691 if (!PyString_Check(_obj1)) {
1692 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1693 return NULL;
1694 }
2cd2fac8
RD
1695 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1696#endif
70551f47 1697}
56f5d962
RD
1698 if (_argo3) {
1699 if (_argo3 == Py_None) { _arg3 = NULL; }
1700 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1701 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1702 return NULL;
1703 }
1704 }
ab9bc19b 1705{
474c48f9 1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1707 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1708
474c48f9 1709 wxPyEndAllowThreads(__tstate);
4dfaa61e 1710 if (PyErr_Occurred()) return NULL;
ab9bc19b 1711} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1712{
1713 if (_obj1)
1714 delete _arg1;
1715}
1716 return _resultobj;
1717}
1718
56f5d962
RD
1719#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1720static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1721 PyObject * _resultobj;
1722 wxBitmap * _arg0;
1723 wxMask * _arg1;
1724 PyObject * _argo0 = 0;
1725 PyObject * _argo1 = 0;
1726 char *_kwnames[] = { "self","mask", NULL };
1727
1728 self = self;
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1730 return NULL;
1731 if (_argo0) {
1732 if (_argo0 == Py_None) { _arg0 = NULL; }
1733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1735 return NULL;
1736 }
1737 }
1738 if (_argo1) {
1739 if (_argo1 == Py_None) { _arg1 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1742 return NULL;
1743 }
1744 }
1745{
474c48f9 1746 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962
RD
1747 wxBitmap_SetMask(_arg0,_arg1);
1748
474c48f9 1749 wxPyEndAllowThreads(__tstate);
4dfaa61e 1750 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1751} Py_INCREF(Py_None);
1752 _resultobj = Py_None;
1753 return _resultobj;
1754}
1755
70551f47 1756#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
107e4716 1757static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1758 PyObject * _resultobj;
1759 bool _result;
1760 wxBitmap * _arg0;
2d091820 1761 PyObject * _argo0 = 0;
107e4716 1762 char *_kwnames[] = { "self", NULL };
70551f47
RD
1763
1764 self = self;
107e4716 1765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
70551f47 1766 return NULL;
2d091820
RD
1767 if (_argo0) {
1768 if (_argo0 == Py_None) { _arg0 = NULL; }
1769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1771 return NULL;
1772 }
1773 }
ab9bc19b 1774{
474c48f9 1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
1776 _result = (bool )wxBitmap_Ok(_arg0);
1777
474c48f9 1778 wxPyEndAllowThreads(__tstate);
4dfaa61e 1779 if (PyErr_Occurred()) return NULL;
ab9bc19b 1780} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1781 return _resultobj;
1782}
1783
56f5d962
RD
1784#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1785static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1786 PyObject * _resultobj;
56f5d962 1787 int _result;
70551f47 1788 wxBitmap * _arg0;
2d091820 1789 PyObject * _argo0 = 0;
56f5d962 1790 char *_kwnames[] = { "self", NULL };
70551f47
RD
1791
1792 self = self;
56f5d962 1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
70551f47 1794 return NULL;
2d091820
RD
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
70551f47
RD
1799 return NULL;
1800 }
1801 }
1802{
474c48f9 1803 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962
RD
1804 _result = (int )wxBitmap_GetWidth(_arg0);
1805
474c48f9 1806 wxPyEndAllowThreads(__tstate);
4dfaa61e 1807 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1808} _resultobj = Py_BuildValue("i",_result);
1809 return _resultobj;
70551f47 1810}
56f5d962
RD
1811
1812#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1813static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject * _resultobj;
1815 int _result;
1816 wxBitmap * _arg0;
1817 PyObject * _argo0 = 0;
1818 char *_kwnames[] = { "self", NULL };
1819
1820 self = self;
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1822 return NULL;
1823 if (_argo0) {
1824 if (_argo0 == Py_None) { _arg0 = NULL; }
1825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
70551f47
RD
1827 return NULL;
1828 }
1829 }
ab9bc19b 1830{
474c48f9 1831 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1832 _result = (int )wxBitmap_GetHeight(_arg0);
ab9bc19b 1833
474c48f9 1834 wxPyEndAllowThreads(__tstate);
4dfaa61e 1835 if (PyErr_Occurred()) return NULL;
ab9bc19b 1836} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1837 return _resultobj;
1838}
1839
56f5d962
RD
1840#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1841static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1842 PyObject * _resultobj;
56f5d962 1843 int _result;
70551f47 1844 wxBitmap * _arg0;
2d091820 1845 PyObject * _argo0 = 0;
56f5d962 1846 char *_kwnames[] = { "self", NULL };
70551f47
RD
1847
1848 self = self;
56f5d962 1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
70551f47 1850 return NULL;
2d091820
RD
1851 if (_argo0) {
1852 if (_argo0 == Py_None) { _arg0 = NULL; }
1853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
70551f47
RD
1855 return NULL;
1856 }
1857 }
ab9bc19b 1858{
474c48f9 1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1860 _result = (int )wxBitmap_GetDepth(_arg0);
ab9bc19b 1861
474c48f9 1862 wxPyEndAllowThreads(__tstate);
4dfaa61e 1863 if (PyErr_Occurred()) return NULL;
56f5d962 1864} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1865 return _resultobj;
1866}
1867
56f5d962
RD
1868#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1869static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1870 PyObject * _resultobj;
1871 wxBitmap * _arg0;
1872 int _arg1;
2d091820 1873 PyObject * _argo0 = 0;
56f5d962 1874 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
1875
1876 self = self;
56f5d962 1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 1878 return NULL;
2d091820
RD
1879 if (_argo0) {
1880 if (_argo0 == Py_None) { _arg0 = NULL; }
1881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
70551f47
RD
1883 return NULL;
1884 }
1885 }
ab9bc19b 1886{
474c48f9 1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1888 wxBitmap_SetWidth(_arg0,_arg1);
ab9bc19b 1889
474c48f9 1890 wxPyEndAllowThreads(__tstate);
4dfaa61e 1891 if (PyErr_Occurred()) return NULL;
ab9bc19b 1892} Py_INCREF(Py_None);
70551f47
RD
1893 _resultobj = Py_None;
1894 return _resultobj;
1895}
1896
56f5d962
RD
1897#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1898static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1899 PyObject * _resultobj;
1900 wxBitmap * _arg0;
56f5d962 1901 int _arg1;
2d091820 1902 PyObject * _argo0 = 0;
56f5d962 1903 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
1904
1905 self = self;
56f5d962 1906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 1907 return NULL;
2d091820
RD
1908 if (_argo0) {
1909 if (_argo0 == Py_None) { _arg0 = NULL; }
1910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
70551f47
RD
1912 return NULL;
1913 }
1914 }
ab9bc19b 1915{
474c48f9 1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1917 wxBitmap_SetHeight(_arg0,_arg1);
ab9bc19b 1918
474c48f9 1919 wxPyEndAllowThreads(__tstate);
4dfaa61e 1920 if (PyErr_Occurred()) return NULL;
ab9bc19b 1921} Py_INCREF(Py_None);
70551f47
RD
1922 _resultobj = Py_None;
1923 return _resultobj;
1924}
1925
56f5d962
RD
1926#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1927static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1928 PyObject * _resultobj;
1929 wxBitmap * _arg0;
1930 int _arg1;
2d091820 1931 PyObject * _argo0 = 0;
56f5d962 1932 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
1933
1934 self = self;
56f5d962 1935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 1936 return NULL;
2d091820
RD
1937 if (_argo0) {
1938 if (_argo0 == Py_None) { _arg0 = NULL; }
1939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
70551f47
RD
1941 return NULL;
1942 }
1943 }
ab9bc19b 1944{
474c48f9 1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 1946 wxBitmap_SetDepth(_arg0,_arg1);
ab9bc19b 1947
474c48f9 1948 wxPyEndAllowThreads(__tstate);
4dfaa61e 1949 if (PyErr_Occurred()) return NULL;
ab9bc19b 1950} Py_INCREF(Py_None);
70551f47
RD
1951 _resultobj = Py_None;
1952 return _resultobj;
1953}
1954
f6bcfd97
BP
1955#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1956static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject * _resultobj;
1958 wxBitmap * _result;
1959 wxBitmap * _arg0;
1960 wxRect * _arg1;
1961 PyObject * _argo0 = 0;
1962 wxRect temp;
1963 PyObject * _obj1 = 0;
1964 char *_kwnames[] = { "self","rect", NULL };
1965 char _ptemp[128];
1966
1967 self = self;
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1969 return NULL;
1970 if (_argo0) {
1971 if (_argo0 == Py_None) { _arg0 = NULL; }
1972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1974 return NULL;
1975 }
1976 }
1977{
1978 _arg1 = &temp;
1979 if (! wxRect_helper(_obj1, &_arg1))
1980 return NULL;
1981}
1982{
474c48f9 1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1984 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
1985
474c48f9 1986 wxPyEndAllowThreads(__tstate);
4dfaa61e 1987 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1988} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1989 _resultobj = Py_BuildValue("s",_ptemp);
1990 return _resultobj;
1991}
1992
65191ae8
RD
1993#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1994static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 bool _result;
1997 wxBitmap * _arg0;
1998 wxIcon * _arg1;
1999 PyObject * _argo0 = 0;
2000 PyObject * _argo1 = 0;
2001 char *_kwnames[] = { "self","icon", NULL };
2002
2003 self = self;
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2005 return NULL;
2006 if (_argo0) {
2007 if (_argo0 == Py_None) { _arg0 = NULL; }
2008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2010 return NULL;
2011 }
2012 }
2013 if (_argo1) {
2014 if (_argo1 == Py_None) { _arg1 = NULL; }
2015 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2016 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2017 return NULL;
2018 }
2019 }
2020{
474c48f9 2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
65191ae8
RD
2022 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2023
474c48f9 2024 wxPyEndAllowThreads(__tstate);
65191ae8
RD
2025 if (PyErr_Occurred()) return NULL;
2026} _resultobj = Py_BuildValue("i",_result);
2027 return _resultobj;
2028}
2029
9df61a29
RD
2030static void *SwigwxMaskTowxObject(void *ptr) {
2031 wxMask *src;
2032 wxObject *dest;
2033 src = (wxMask *) ptr;
2034 dest = (wxObject *) src;
2035 return (void *) dest;
2036}
2037
70551f47 2038#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
107e4716 2039static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2040 PyObject * _resultobj;
2041 wxMask * _result;
2042 wxBitmap * _arg0;
2d091820 2043 PyObject * _argo0 = 0;
107e4716 2044 char *_kwnames[] = { "bitmap", NULL };
70551f47
RD
2045 char _ptemp[128];
2046
2047 self = self;
107e4716 2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
70551f47 2049 return NULL;
2d091820
RD
2050 if (_argo0) {
2051 if (_argo0 == Py_None) { _arg0 = NULL; }
2052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
2053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2054 return NULL;
2055 }
2056 }
ab9bc19b 2057{
474c48f9 2058 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2059 _result = (wxMask *)new_wxMask(*_arg0);
2060
474c48f9 2061 wxPyEndAllowThreads(__tstate);
4dfaa61e 2062 if (PyErr_Occurred()) return NULL;
2d091820
RD
2063} if (_result) {
2064 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2065 _resultobj = Py_BuildValue("s",_ptemp);
2066 } else {
2067 Py_INCREF(Py_None);
2068 _resultobj = Py_None;
2069 }
70551f47
RD
2070 return _resultobj;
2071}
2072
fbcadfca
RD
2073static void wxMask_Destroy(wxMask *self) { delete self; }
2074static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 wxMask * _arg0;
2077 PyObject * _argo0 = 0;
2078 char *_kwnames[] = { "self", NULL };
2079
2080 self = self;
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2082 return NULL;
2083 if (_argo0) {
2084 if (_argo0 == Py_None) { _arg0 = NULL; }
2085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2087 return NULL;
2088 }
2089 }
2090{
474c48f9 2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
2092 wxMask_Destroy(_arg0);
2093
474c48f9 2094 wxPyEndAllowThreads(__tstate);
4dfaa61e 2095 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2096} Py_INCREF(Py_None);
2097 _resultobj = Py_None;
2098 return _resultobj;
2099}
2100
9df61a29
RD
2101static void *SwigwxIconTowxGDIObject(void *ptr) {
2102 wxIcon *src;
2103 wxGDIObject *dest;
2104 src = (wxIcon *) ptr;
2105 dest = (wxGDIObject *) src;
2106 return (void *) dest;
2107}
2108
2109static void *SwigwxIconTowxObject(void *ptr) {
2110 wxIcon *src;
2111 wxObject *dest;
2112 src = (wxIcon *) ptr;
2113 dest = (wxObject *) src;
2114 return (void *) dest;
2115}
2116
8bf5d46e 2117#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 2118static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
2119 PyObject * _resultobj;
2120 wxIcon * _result;
2121 wxString * _arg0;
2122 long _arg1;
2d091820
RD
2123 int _arg2 = (int ) -1;
2124 int _arg3 = (int ) -1;
8bf5d46e 2125 PyObject * _obj0 = 0;
107e4716 2126 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
8bf5d46e
RD
2127 char _ptemp[128];
2128
2129 self = self;
107e4716 2130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
8bf5d46e
RD
2131 return NULL;
2132{
2cd2fac8
RD
2133#if PYTHON_API_VERSION >= 1009
2134 char* tmpPtr; int tmpSize;
2135 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7a446686 2136 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2137 return NULL;
2138 }
2139 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2140 return NULL;
2141 _arg0 = new wxString(tmpPtr, tmpSize);
2142#else
8bf5d46e
RD
2143 if (!PyString_Check(_obj0)) {
2144 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2145 return NULL;
2146 }
2cd2fac8
RD
2147 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2148#endif
8bf5d46e
RD
2149}
2150{
474c48f9 2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
8bf5d46e
RD
2152 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2153
474c48f9 2154 wxPyEndAllowThreads(__tstate);
4dfaa61e 2155 if (PyErr_Occurred()) return NULL;
2d091820
RD
2156} if (_result) {
2157 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2158 _resultobj = Py_BuildValue("s",_ptemp);
2159 } else {
2160 Py_INCREF(Py_None);
2161 _resultobj = Py_None;
2162 }
8bf5d46e
RD
2163{
2164 if (_obj0)
2165 delete _arg0;
2166}
2167 return _resultobj;
2168}
2169
70551f47 2170#define delete_wxIcon(_swigobj) (delete _swigobj)
107e4716 2171static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2172 PyObject * _resultobj;
2173 wxIcon * _arg0;
2d091820 2174 PyObject * _argo0 = 0;
107e4716 2175 char *_kwnames[] = { "self", NULL };
70551f47
RD
2176
2177 self = self;
107e4716 2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
70551f47 2179 return NULL;
2d091820
RD
2180 if (_argo0) {
2181 if (_argo0 == Py_None) { _arg0 = NULL; }
2182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2184 return NULL;
2185 }
2186 }
ab9bc19b 2187{
474c48f9 2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2189 delete_wxIcon(_arg0);
2190
474c48f9 2191 wxPyEndAllowThreads(__tstate);
4dfaa61e 2192 if (PyErr_Occurred()) return NULL;
ab9bc19b 2193} Py_INCREF(Py_None);
70551f47
RD
2194 _resultobj = Py_None;
2195 return _resultobj;
2196}
2197
56f5d962
RD
2198#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2199static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2200 PyObject * _resultobj;
56f5d962 2201 bool _result;
70551f47 2202 wxIcon * _arg0;
56f5d962
RD
2203 wxString * _arg1;
2204 long _arg2;
2d091820 2205 PyObject * _argo0 = 0;
56f5d962
RD
2206 PyObject * _obj1 = 0;
2207 char *_kwnames[] = { "self","name","flags", NULL };
70551f47
RD
2208
2209 self = self;
56f5d962 2210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 2211 return NULL;
2d091820
RD
2212 if (_argo0) {
2213 if (_argo0 == Py_None) { _arg0 = NULL; }
2214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
70551f47
RD
2216 return NULL;
2217 }
2218 }
56f5d962 2219{
2cd2fac8
RD
2220#if PYTHON_API_VERSION >= 1009
2221 char* tmpPtr; int tmpSize;
2222 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 2223 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2224 return NULL;
2225 }
2226 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2227 return NULL;
2228 _arg1 = new wxString(tmpPtr, tmpSize);
2229#else
56f5d962
RD
2230 if (!PyString_Check(_obj1)) {
2231 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2232 return NULL;
2233 }
2cd2fac8
RD
2234 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2235#endif
56f5d962 2236}
ab9bc19b 2237{
474c48f9 2238 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2239 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 2240
474c48f9 2241 wxPyEndAllowThreads(__tstate);
4dfaa61e 2242 if (PyErr_Occurred()) return NULL;
ab9bc19b 2243} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
2244{
2245 if (_obj1)
2246 delete _arg1;
2247}
70551f47
RD
2248 return _resultobj;
2249}
2250
56f5d962
RD
2251#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2252static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2253 PyObject * _resultobj;
56f5d962 2254 bool _result;
70551f47 2255 wxIcon * _arg0;
2d091820 2256 PyObject * _argo0 = 0;
107e4716 2257 char *_kwnames[] = { "self", NULL };
70551f47
RD
2258
2259 self = self;
56f5d962 2260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_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_Ok. Expected _wxIcon_p.");
70551f47
RD
2266 return NULL;
2267 }
2268 }
ab9bc19b 2269{
474c48f9 2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2271 _result = (bool )wxIcon_Ok(_arg0);
ab9bc19b 2272
474c48f9 2273 wxPyEndAllowThreads(__tstate);
4dfaa61e 2274 if (PyErr_Occurred()) return NULL;
ab9bc19b 2275} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2276 return _resultobj;
2277}
2278
2279#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2280static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2281 PyObject * _resultobj;
2282 int _result;
2283 wxIcon * _arg0;
2d091820 2284 PyObject * _argo0 = 0;
107e4716 2285 char *_kwnames[] = { "self", NULL };
70551f47
RD
2286
2287 self = self;
107e4716 2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_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")) {
70551f47
RD
2293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2294 return NULL;
2295 }
2296 }
ab9bc19b 2297{
474c48f9 2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2299 _result = (int )wxIcon_GetWidth(_arg0);
2300
474c48f9 2301 wxPyEndAllowThreads(__tstate);
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_GetHeight(_swigobj) (_swigobj->GetHeight())
2308static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2309 PyObject * _resultobj;
56f5d962 2310 int _result;
70551f47 2311 wxIcon * _arg0;
2d091820 2312 PyObject * _argo0 = 0;
56f5d962 2313 char *_kwnames[] = { "self", NULL };
70551f47
RD
2314
2315 self = self;
56f5d962 2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
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_GetHeight. Expected _wxIcon_p.");
70551f47
RD
2322 return NULL;
2323 }
2324 }
ab9bc19b 2325{
474c48f9 2326 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2327 _result = (int )wxIcon_GetHeight(_arg0);
ab9bc19b 2328
474c48f9 2329 wxPyEndAllowThreads(__tstate);
4dfaa61e 2330 if (PyErr_Occurred()) return NULL;
ab9bc19b 2331} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2332 return _resultobj;
2333}
2334
56f5d962
RD
2335#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2336static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2337 PyObject * _resultobj;
56f5d962 2338 int _result;
70551f47 2339 wxIcon * _arg0;
2d091820 2340 PyObject * _argo0 = 0;
107e4716 2341 char *_kwnames[] = { "self", NULL };
70551f47
RD
2342
2343 self = self;
56f5d962 2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
70551f47 2345 return NULL;
2d091820
RD
2346 if (_argo0) {
2347 if (_argo0 == Py_None) { _arg0 = NULL; }
2348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
70551f47
RD
2350 return NULL;
2351 }
2352 }
ab9bc19b 2353{
474c48f9 2354 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2355 _result = (int )wxIcon_GetDepth(_arg0);
ab9bc19b 2356
474c48f9 2357 wxPyEndAllowThreads(__tstate);
4dfaa61e 2358 if (PyErr_Occurred()) return NULL;
ab9bc19b 2359} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2360 return _resultobj;
2361}
2362
56f5d962
RD
2363#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2364static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2365 PyObject * _resultobj;
2366 wxIcon * _arg0;
2367 int _arg1;
2d091820 2368 PyObject * _argo0 = 0;
56f5d962 2369 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
2370
2371 self = self;
56f5d962 2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 2373 return NULL;
2d091820
RD
2374 if (_argo0) {
2375 if (_argo0 == Py_None) { _arg0 = NULL; }
2376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
70551f47
RD
2378 return NULL;
2379 }
2380 }
ab9bc19b 2381{
474c48f9 2382 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2383 wxIcon_SetWidth(_arg0,_arg1);
ab9bc19b 2384
474c48f9 2385 wxPyEndAllowThreads(__tstate);
4dfaa61e 2386 if (PyErr_Occurred()) return NULL;
ab9bc19b 2387} Py_INCREF(Py_None);
70551f47
RD
2388 _resultobj = Py_None;
2389 return _resultobj;
2390}
2391
2392#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
107e4716 2393static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2394 PyObject * _resultobj;
2395 wxIcon * _arg0;
2396 int _arg1;
2d091820 2397 PyObject * _argo0 = 0;
56f5d962 2398 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2399
2400 self = self;
107e4716 2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2402 return NULL;
2d091820
RD
2403 if (_argo0) {
2404 if (_argo0 == Py_None) { _arg0 = NULL; }
2405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2407 return NULL;
2408 }
2409 }
ab9bc19b 2410{
474c48f9 2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2412 wxIcon_SetHeight(_arg0,_arg1);
2413
474c48f9 2414 wxPyEndAllowThreads(__tstate);
4dfaa61e 2415 if (PyErr_Occurred()) return NULL;
ab9bc19b 2416} Py_INCREF(Py_None);
70551f47
RD
2417 _resultobj = Py_None;
2418 return _resultobj;
2419}
2420
56f5d962
RD
2421#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2422static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2423 PyObject * _resultobj;
2424 wxIcon * _arg0;
2425 int _arg1;
2d091820 2426 PyObject * _argo0 = 0;
56f5d962 2427 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2428
2429 self = self;
56f5d962 2430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2431 return NULL;
2d091820
RD
2432 if (_argo0) {
2433 if (_argo0 == Py_None) { _arg0 = NULL; }
2434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
70551f47
RD
2436 return NULL;
2437 }
2438 }
ab9bc19b 2439{
474c48f9 2440 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962 2441 wxIcon_SetDepth(_arg0,_arg1);
ab9bc19b 2442
474c48f9 2443 wxPyEndAllowThreads(__tstate);
4dfaa61e 2444 if (PyErr_Occurred()) return NULL;
ab9bc19b 2445} Py_INCREF(Py_None);
70551f47
RD
2446 _resultobj = Py_None;
2447 return _resultobj;
2448}
2449
fbcadfca
RD
2450#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2451static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2452 PyObject * _resultobj;
2453 wxIcon * _arg0;
2454 wxBitmap * _arg1;
2455 PyObject * _argo0 = 0;
2456 PyObject * _argo1 = 0;
2457 char *_kwnames[] = { "self","bmp", NULL };
2458
2459 self = self;
2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2461 return NULL;
2462 if (_argo0) {
2463 if (_argo0 == Py_None) { _arg0 = NULL; }
2464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2466 return NULL;
2467 }
2468 }
2469 if (_argo1) {
2470 if (_argo1 == Py_None) { _arg1 = NULL; }
2471 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2472 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2473 return NULL;
2474 }
2475 }
2476{
474c48f9 2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
fbcadfca
RD
2478 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2479
474c48f9 2480 wxPyEndAllowThreads(__tstate);
4dfaa61e 2481 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2482} Py_INCREF(Py_None);
2483 _resultobj = Py_None;
2484 return _resultobj;
2485}
2486
9df61a29
RD
2487static void *SwigwxCursorTowxGDIObject(void *ptr) {
2488 wxCursor *src;
2489 wxGDIObject *dest;
2490 src = (wxCursor *) ptr;
2491 dest = (wxGDIObject *) src;
2492 return (void *) dest;
2493}
2494
2495static void *SwigwxCursorTowxObject(void *ptr) {
2496 wxCursor *src;
2497 wxObject *dest;
2498 src = (wxCursor *) ptr;
2499 dest = (wxObject *) src;
2500 return (void *) dest;
2501}
2502
70551f47 2503#define delete_wxCursor(_swigobj) (delete _swigobj)
107e4716 2504static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2505 PyObject * _resultobj;
2506 wxCursor * _arg0;
2d091820 2507 PyObject * _argo0 = 0;
107e4716 2508 char *_kwnames[] = { "self", NULL };
70551f47
RD
2509
2510 self = self;
107e4716 2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
70551f47 2512 return NULL;
2d091820
RD
2513 if (_argo0) {
2514 if (_argo0 == Py_None) { _arg0 = NULL; }
2515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2517 return NULL;
2518 }
2519 }
ab9bc19b 2520{
474c48f9 2521 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2522 delete_wxCursor(_arg0);
2523
474c48f9 2524 wxPyEndAllowThreads(__tstate);
4dfaa61e 2525 if (PyErr_Occurred()) return NULL;
ab9bc19b 2526} Py_INCREF(Py_None);
70551f47
RD
2527 _resultobj = Py_None;
2528 return _resultobj;
2529}
2530
2531#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
107e4716 2532static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2533 PyObject * _resultobj;
2534 bool _result;
2535 wxCursor * _arg0;
2d091820 2536 PyObject * _argo0 = 0;
107e4716 2537 char *_kwnames[] = { "self", NULL };
70551f47
RD
2538
2539 self = self;
107e4716 2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
70551f47 2541 return NULL;
2d091820
RD
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2546 return NULL;
2547 }
2548 }
ab9bc19b 2549{
474c48f9 2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
2551 _result = (bool )wxCursor_Ok(_arg0);
2552
474c48f9 2553 wxPyEndAllowThreads(__tstate);
4dfaa61e 2554 if (PyErr_Occurred()) return NULL;
ab9bc19b 2555} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2556 return _resultobj;
2557}
2558
1893b029
RD
2559#define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2560static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject * _resultobj;
2562 bool _result;
2563 wxNativeFontInfo * _arg0;
2564 wxString * _arg1;
2565 PyObject * _argo0 = 0;
2566 PyObject * _obj1 = 0;
2567 char *_kwnames[] = { "self","xFontName", NULL };
2568
2569 self = self;
2570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
2571 return NULL;
2572 if (_argo0) {
2573 if (_argo0 == Py_None) { _arg0 = NULL; }
2574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2576 return NULL;
2577 }
2578 }
2579{
2580#if PYTHON_API_VERSION >= 1009
2581 char* tmpPtr; int tmpSize;
2582 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2583 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2584 return NULL;
2585 }
2586 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2587 return NULL;
2588 _arg1 = new wxString(tmpPtr, tmpSize);
2589#else
2590 if (!PyString_Check(_obj1)) {
2591 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2592 return NULL;
2593 }
2594 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2595#endif
2596}
2597{
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
2599 _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) return NULL;
2603} _resultobj = Py_BuildValue("i",_result);
2604{
2605 if (_obj1)
2606 delete _arg1;
2607}
2608 return _resultobj;
2609}
2610
2611#define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2612static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject * _resultobj;
2614 wxString * _result;
2615 wxNativeFontInfo * _arg0;
2616 PyObject * _argo0 = 0;
2617 char *_kwnames[] = { "self", NULL };
2618
2619 self = self;
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
2621 return NULL;
2622 if (_argo0) {
2623 if (_argo0 == Py_None) { _arg0 = NULL; }
2624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2626 return NULL;
2627 }
2628 }
2629{
2630 PyThreadState* __tstate = wxPyBeginAllowThreads();
2631 _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
2632
2633 wxPyEndAllowThreads(__tstate);
2634 if (PyErr_Occurred()) return NULL;
2635}{
2636 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2637}
2638{
2639 delete _result;
2640}
2641 return _resultobj;
2642}
2643
2644#define new_wxNativeFontInfo() (new wxNativeFontInfo())
2645static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject * _resultobj;
2647 wxNativeFontInfo * _result;
2648 char *_kwnames[] = { NULL };
2649 char _ptemp[128];
2650
2651 self = self;
2652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
2653 return NULL;
2654{
2655 PyThreadState* __tstate = wxPyBeginAllowThreads();
2656 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
2657
2658 wxPyEndAllowThreads(__tstate);
2659 if (PyErr_Occurred()) return NULL;
2660} if (_result) {
2661 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
2662 _resultobj = Py_BuildValue("s",_ptemp);
2663 } else {
2664 Py_INCREF(Py_None);
2665 _resultobj = Py_None;
2666 }
2667 return _resultobj;
2668}
2669
2670#define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2671static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2672 PyObject * _resultobj;
2673 wxNativeFontInfo * _arg0;
2674 PyObject * _argo0 = 0;
2675 char *_kwnames[] = { "self", NULL };
2676
2677 self = self;
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
2679 return NULL;
2680 if (_argo0) {
2681 if (_argo0 == Py_None) { _arg0 = NULL; }
2682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2684 return NULL;
2685 }
2686 }
2687{
2688 PyThreadState* __tstate = wxPyBeginAllowThreads();
2689 wxNativeFontInfo_Init(_arg0);
2690
2691 wxPyEndAllowThreads(__tstate);
2692 if (PyErr_Occurred()) return NULL;
2693} Py_INCREF(Py_None);
2694 _resultobj = Py_None;
2695 return _resultobj;
2696}
2697
059a841c
RD
2698#define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2699static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2700 PyObject * _resultobj;
059a841c
RD
2701 bool _result;
2702 wxNativeFontInfo * _arg0;
2703 wxString * _arg1;
2704 PyObject * _argo0 = 0;
2705 PyObject * _obj1 = 0;
2706 char *_kwnames[] = { "self","s", NULL };
70551f47
RD
2707
2708 self = self;
059a841c
RD
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
2710 return NULL;
2711 if (_argo0) {
2712 if (_argo0 == Py_None) { _arg0 = NULL; }
2713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2715 return NULL;
2716 }
2717 }
2718{
2719#if PYTHON_API_VERSION >= 1009
2720 char* tmpPtr; int tmpSize;
2721 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2722 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2723 return NULL;
2724 }
2725 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2726 return NULL;
2727 _arg1 = new wxString(tmpPtr, tmpSize);
2728#else
2729 if (!PyString_Check(_obj1)) {
2730 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
70551f47 2731 return NULL;
059a841c
RD
2732 }
2733 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2734#endif
2735}
ab9bc19b 2736{
474c48f9 2737 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 2738 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
ab9bc19b 2739
474c48f9 2740 wxPyEndAllowThreads(__tstate);
4dfaa61e 2741 if (PyErr_Occurred()) return NULL;
059a841c
RD
2742} _resultobj = Py_BuildValue("i",_result);
2743{
2744 if (_obj1)
2745 delete _arg1;
2746}
70551f47
RD
2747 return _resultobj;
2748}
2749
059a841c
RD
2750#define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2751static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 2752 PyObject * _resultobj;
059a841c
RD
2753 wxString * _result;
2754 wxNativeFontInfo * _arg0;
5e40f9dd
RD
2755 PyObject * _argo0 = 0;
2756 char *_kwnames[] = { "self", NULL };
2757
2758 self = self;
059a841c 2759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
5e40f9dd
RD
2760 return NULL;
2761 if (_argo0) {
2762 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
5e40f9dd
RD
2765 return NULL;
2766 }
2767 }
2768{
474c48f9 2769 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 2770 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
5e40f9dd 2771
474c48f9 2772 wxPyEndAllowThreads(__tstate);
4dfaa61e 2773 if (PyErr_Occurred()) return NULL;
059a841c
RD
2774}{
2775 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2776}
2777{
2778 delete _result;
2779}
5e40f9dd
RD
2780 return _resultobj;
2781}
2782
059a841c
RD
2783static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
2784 return self->ToString();
2785 }
2786static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
d29aba2f 2787 PyObject * _resultobj;
059a841c
RD
2788 wxString * _result;
2789 wxNativeFontInfo * _arg0;
d29aba2f
RD
2790 PyObject * _argo0 = 0;
2791 char *_kwnames[] = { "self", NULL };
2792
2793 self = self;
059a841c 2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
d29aba2f
RD
2795 return NULL;
2796 if (_argo0) {
2797 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
d29aba2f
RD
2800 return NULL;
2801 }
2802 }
2803{
474c48f9 2804 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 2805 _result = new wxString (wxNativeFontInfo___str__(_arg0));
d29aba2f 2806
474c48f9 2807 wxPyEndAllowThreads(__tstate);
4dfaa61e 2808 if (PyErr_Occurred()) return NULL;
059a841c
RD
2809}{
2810 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2811}
2812{
2813 delete _result;
2814}
d29aba2f
RD
2815 return _resultobj;
2816}
2817
1893b029
RD
2818#define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2819static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2820 PyObject * _resultobj;
2821 bool _result;
2822 wxNativeFontInfo * _arg0;
2823 wxString * _arg1;
2824 PyObject * _argo0 = 0;
2825 PyObject * _obj1 = 0;
2826 char *_kwnames[] = { "self","s", NULL };
2827
2828 self = self;
2829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
2830 return NULL;
2831 if (_argo0) {
2832 if (_argo0 == Py_None) { _arg0 = NULL; }
2833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2835 return NULL;
2836 }
2837 }
2838{
2839#if PYTHON_API_VERSION >= 1009
2840 char* tmpPtr; int tmpSize;
2841 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2842 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2843 return NULL;
2844 }
2845 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2846 return NULL;
2847 _arg1 = new wxString(tmpPtr, tmpSize);
2848#else
2849 if (!PyString_Check(_obj1)) {
2850 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2851 return NULL;
2852 }
2853 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2854#endif
2855}
2856{
2857 PyThreadState* __tstate = wxPyBeginAllowThreads();
2858 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
2859
2860 wxPyEndAllowThreads(__tstate);
2861 if (PyErr_Occurred()) return NULL;
2862} _resultobj = Py_BuildValue("i",_result);
2863{
2864 if (_obj1)
2865 delete _arg1;
2866}
2867 return _resultobj;
2868}
2869
2870#define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2871static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject * _resultobj;
2873 wxString * _result;
2874 wxNativeFontInfo * _arg0;
2875 PyObject * _argo0 = 0;
2876 char *_kwnames[] = { "self", NULL };
2877
2878 self = self;
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
2880 return NULL;
2881 if (_argo0) {
2882 if (_argo0 == Py_None) { _arg0 = NULL; }
2883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
2885 return NULL;
2886 }
2887 }
2888{
2889 PyThreadState* __tstate = wxPyBeginAllowThreads();
2890 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
2891
2892 wxPyEndAllowThreads(__tstate);
2893 if (PyErr_Occurred()) return NULL;
2894}{
2895 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2896}
2897{
2898 delete _result;
2899}
2900 return _resultobj;
2901}
2902
059a841c
RD
2903#define new_wxFontMapper() (new wxFontMapper())
2904static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2905 PyObject * _resultobj;
059a841c
RD
2906 wxFontMapper * _result;
2907 char *_kwnames[] = { NULL };
2908 char _ptemp[128];
2909
2910 self = self;
2911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
2912 return NULL;
2913{
474c48f9 2914 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
2915 _result = (wxFontMapper *)new_wxFontMapper();
2916
474c48f9 2917 wxPyEndAllowThreads(__tstate);
059a841c
RD
2918 if (PyErr_Occurred()) return NULL;
2919} if (_result) {
2920 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
2921 _resultobj = Py_BuildValue("s",_ptemp);
2922 } else {
2923 Py_INCREF(Py_None);
2924 _resultobj = Py_None;
2925 }
2926 return _resultobj;
2927}
2928
2929#define delete_wxFontMapper(_swigobj) (delete _swigobj)
2930static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
2931 PyObject * _resultobj;
2932 wxFontMapper * _arg0;
2d091820 2933 PyObject * _argo0 = 0;
107e4716 2934 char *_kwnames[] = { "self", NULL };
70551f47
RD
2935
2936 self = self;
059a841c 2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
70551f47 2938 return NULL;
2d091820
RD
2939 if (_argo0) {
2940 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
70551f47
RD
2943 return NULL;
2944 }
2945 }
70551f47 2946{
474c48f9 2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 2948 delete_wxFontMapper(_arg0);
ab9bc19b 2949
474c48f9 2950 wxPyEndAllowThreads(__tstate);
4dfaa61e 2951 if (PyErr_Occurred()) return NULL;
059a841c
RD
2952} Py_INCREF(Py_None);
2953 _resultobj = Py_None;
70551f47
RD
2954 return _resultobj;
2955}
2956
059a841c
RD
2957static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
2958 wxFontEncoding alt_enc;
2959 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2960 return PyInt_FromLong(alt_enc);
2961 else {
2962 Py_INCREF(Py_None);
2963 return Py_None;
2964 }
2965 }
2966static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2967 PyObject * _resultobj;
059a841c
RD
2968 PyObject * _result;
2969 wxFontMapper * _arg0;
2970 wxFontEncoding _arg1;
2971 wxString * _arg2 = (wxString *) &wxEmptyString;
2972 bool _arg3 = (bool ) TRUE;
2d091820 2973 PyObject * _argo0 = 0;
059a841c
RD
2974 PyObject * _obj2 = 0;
2975 int tempbool3 = (int) TRUE;
2976 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
70551f47
RD
2977
2978 self = self;
059a841c 2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
70551f47 2980 return NULL;
2d091820
RD
2981 if (_argo0) {
2982 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2983 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2984 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
70551f47
RD
2985 return NULL;
2986 }
2987 }
059a841c
RD
2988 if (_obj2)
2989{
2990#if PYTHON_API_VERSION >= 1009
2991 char* tmpPtr; int tmpSize;
2992 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2993 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2994 return NULL;
2995 }
2996 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2997 return NULL;
2998 _arg2 = new wxString(tmpPtr, tmpSize);
2999#else
3000 if (!PyString_Check(_obj2)) {
3001 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3002 return NULL;
3003 }
3004 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3005#endif
3006}
3007 _arg3 = (bool ) tempbool3;
ab9bc19b 3008{
474c48f9 3009 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3010 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
ab9bc19b 3011
474c48f9 3012 wxPyEndAllowThreads(__tstate);
4dfaa61e 3013 if (PyErr_Occurred()) return NULL;
059a841c
RD
3014}{
3015 _resultobj = _result;
3016}
3017{
3018 if (_obj2)
3019 delete _arg2;
3020}
70551f47
RD
3021 return _resultobj;
3022}
3023
059a841c
RD
3024#define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3025static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3026 PyObject * _resultobj;
059a841c
RD
3027 bool _result;
3028 wxFontMapper * _arg0;
3029 wxFontEncoding _arg1;
3030 wxString * _arg2 = (wxString *) &wxEmptyString;
2d091820 3031 PyObject * _argo0 = 0;
059a841c
RD
3032 PyObject * _obj2 = 0;
3033 char *_kwnames[] = { "self","encoding","facename", NULL };
70551f47
RD
3034
3035 self = self;
059a841c 3036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
70551f47 3037 return NULL;
2d091820
RD
3038 if (_argo0) {
3039 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
70551f47
RD
3042 return NULL;
3043 }
3044 }
059a841c
RD
3045 if (_obj2)
3046{
3047#if PYTHON_API_VERSION >= 1009
3048 char* tmpPtr; int tmpSize;
3049 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3050 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3051 return NULL;
3052 }
3053 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3054 return NULL;
3055 _arg2 = new wxString(tmpPtr, tmpSize);
3056#else
3057 if (!PyString_Check(_obj2)) {
3058 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3059 return NULL;
3060 }
3061 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3062#endif
3063}
ab9bc19b 3064{
474c48f9 3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3066 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
ab9bc19b 3067
474c48f9 3068 wxPyEndAllowThreads(__tstate);
4dfaa61e 3069 if (PyErr_Occurred()) return NULL;
ab9bc19b 3070} _resultobj = Py_BuildValue("i",_result);
059a841c
RD
3071{
3072 if (_obj2)
3073 delete _arg2;
3074}
70551f47
RD
3075 return _resultobj;
3076}
3077
059a841c
RD
3078#define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3079static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3080 PyObject * _resultobj;
059a841c
RD
3081 wxFontEncoding _result;
3082 wxFontMapper * _arg0;
3083 wxString * _arg1;
3084 bool _arg2 = (bool ) TRUE;
2d091820 3085 PyObject * _argo0 = 0;
059a841c
RD
3086 PyObject * _obj1 = 0;
3087 int tempbool2 = (int) TRUE;
3088 char *_kwnames[] = { "self","charset","interactive", NULL };
70551f47
RD
3089
3090 self = self;
059a841c 3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
70551f47 3092 return NULL;
2d091820
RD
3093 if (_argo0) {
3094 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
70551f47
RD
3097 return NULL;
3098 }
3099 }
ab9bc19b 3100{
059a841c
RD
3101#if PYTHON_API_VERSION >= 1009
3102 char* tmpPtr; int tmpSize;
3103 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3104 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3105 return NULL;
3106 }
3107 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3108 return NULL;
3109 _arg1 = new wxString(tmpPtr, tmpSize);
3110#else
3111 if (!PyString_Check(_obj1)) {
3112 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3113 return NULL;
3114 }
3115 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3116#endif
3117}
3118 _arg2 = (bool ) tempbool2;
3119{
474c48f9 3120 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3121 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3122
474c48f9 3123 wxPyEndAllowThreads(__tstate);
059a841c
RD
3124 if (PyErr_Occurred()) return NULL;
3125} _resultobj = Py_BuildValue("i",_result);
3126{
3127 if (_obj1)
3128 delete _arg1;
3129}
3130 return _resultobj;
3131}
3132
3133static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3134 PyObject * _resultobj;
3135 wxString * _result;
3136 wxFontEncoding _arg0;
3137 char *_kwnames[] = { "encoding", NULL };
3138
3139 self = self;
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3141 return NULL;
3142{
474c48f9 3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3144 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
3145
474c48f9 3146 wxPyEndAllowThreads(__tstate);
059a841c
RD
3147 if (PyErr_Occurred()) return NULL;
3148}{
3149 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3150}
3151{
3152 delete _result;
3153}
3154 return _resultobj;
3155}
3156
3157static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject * _resultobj;
3159 wxString * _result;
3160 wxFontEncoding _arg0;
3161 char *_kwnames[] = { "encoding", NULL };
3162
3163 self = self;
3164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3165 return NULL;
3166{
474c48f9 3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3168 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
3169
474c48f9 3170 wxPyEndAllowThreads(__tstate);
059a841c
RD
3171 if (PyErr_Occurred()) return NULL;
3172}{
3173 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3174}
3175{
3176 delete _result;
3177}
3178 return _resultobj;
3179}
3180
3181#define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3182static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3183 PyObject * _resultobj;
3184 wxFontMapper * _arg0;
3185 wxWindow * _arg1;
3186 PyObject * _argo0 = 0;
3187 PyObject * _argo1 = 0;
3188 char *_kwnames[] = { "self","parent", NULL };
3189
3190 self = self;
3191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3192 return NULL;
3193 if (_argo0) {
3194 if (_argo0 == Py_None) { _arg0 = NULL; }
3195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3197 return NULL;
3198 }
3199 }
3200 if (_argo1) {
3201 if (_argo1 == Py_None) { _arg1 = NULL; }
3202 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3203 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3204 return NULL;
3205 }
3206 }
3207{
474c48f9 3208 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3209 wxFontMapper_SetDialogParent(_arg0,_arg1);
3210
474c48f9 3211 wxPyEndAllowThreads(__tstate);
059a841c
RD
3212 if (PyErr_Occurred()) return NULL;
3213} Py_INCREF(Py_None);
3214 _resultobj = Py_None;
3215 return _resultobj;
3216}
3217
3218#define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3219static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3220 PyObject * _resultobj;
3221 wxFontMapper * _arg0;
3222 wxString * _arg1;
3223 PyObject * _argo0 = 0;
3224 PyObject * _obj1 = 0;
3225 char *_kwnames[] = { "self","title", NULL };
3226
3227 self = self;
3228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3229 return NULL;
3230 if (_argo0) {
3231 if (_argo0 == Py_None) { _arg0 = NULL; }
3232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3234 return NULL;
3235 }
3236 }
3237{
3238#if PYTHON_API_VERSION >= 1009
3239 char* tmpPtr; int tmpSize;
3240 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3241 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3242 return NULL;
3243 }
3244 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3245 return NULL;
3246 _arg1 = new wxString(tmpPtr, tmpSize);
3247#else
3248 if (!PyString_Check(_obj1)) {
3249 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3250 return NULL;
3251 }
3252 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3253#endif
3254}
3255{
474c48f9 3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3257 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
3258
474c48f9 3259 wxPyEndAllowThreads(__tstate);
059a841c
RD
3260 if (PyErr_Occurred()) return NULL;
3261} Py_INCREF(Py_None);
3262 _resultobj = Py_None;
3263{
3264 if (_obj1)
3265 delete _arg1;
3266}
3267 return _resultobj;
3268}
3269
3270#define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3271static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject * _resultobj;
3273 wxFontMapper * _arg0;
3274 wxConfigBase * _arg1;
3275 PyObject * _argo0 = 0;
3276 PyObject * _argo1 = 0;
3277 char *_kwnames[] = { "self","config", NULL };
3278
3279 self = self;
3280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3281 return NULL;
3282 if (_argo0) {
3283 if (_argo0 == Py_None) { _arg0 = NULL; }
3284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3286 return NULL;
3287 }
3288 }
3289 if (_argo1) {
3290 if (_argo1 == Py_None) { _arg1 = NULL; }
3291 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3292 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3293 return NULL;
3294 }
3295 }
3296{
474c48f9 3297 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3298 wxFontMapper_SetConfig(_arg0,_arg1);
3299
474c48f9 3300 wxPyEndAllowThreads(__tstate);
059a841c
RD
3301 if (PyErr_Occurred()) return NULL;
3302} Py_INCREF(Py_None);
3303 _resultobj = Py_None;
3304 return _resultobj;
3305}
3306
3307#define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3308static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3309 PyObject * _resultobj;
3310 wxFontMapper * _arg0;
3311 wxString * _arg1;
3312 PyObject * _argo0 = 0;
3313 PyObject * _obj1 = 0;
3314 char *_kwnames[] = { "self","prefix", NULL };
3315
3316 self = self;
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3318 return NULL;
3319 if (_argo0) {
3320 if (_argo0 == Py_None) { _arg0 = NULL; }
3321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3323 return NULL;
3324 }
3325 }
3326{
3327#if PYTHON_API_VERSION >= 1009
3328 char* tmpPtr; int tmpSize;
3329 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3330 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3331 return NULL;
3332 }
3333 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3334 return NULL;
3335 _arg1 = new wxString(tmpPtr, tmpSize);
3336#else
3337 if (!PyString_Check(_obj1)) {
3338 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3339 return NULL;
3340 }
3341 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3342#endif
3343}
3344{
474c48f9 3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3346 wxFontMapper_SetConfigPath(_arg0,*_arg1);
3347
474c48f9 3348 wxPyEndAllowThreads(__tstate);
059a841c
RD
3349 if (PyErr_Occurred()) return NULL;
3350} Py_INCREF(Py_None);
3351 _resultobj = Py_None;
3352{
3353 if (_obj1)
3354 delete _arg1;
3355}
3356 return _resultobj;
3357}
3358
3359static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3360 PyObject * _resultobj;
3361 wxChar * _result;
3362 char *_kwnames[] = { NULL };
3363
3364 self = self;
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3366 return NULL;
3367{
474c48f9 3368 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3369 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
3370
474c48f9 3371 wxPyEndAllowThreads(__tstate);
059a841c
RD
3372 if (PyErr_Occurred()) return NULL;
3373} _resultobj = Py_BuildValue("s", _result);
3374 return _resultobj;
3375}
3376
3377static void *SwigwxFontTowxGDIObject(void *ptr) {
3378 wxFont *src;
3379 wxGDIObject *dest;
3380 src = (wxFont *) ptr;
3381 dest = (wxGDIObject *) src;
3382 return (void *) dest;
3383}
3384
3385static void *SwigwxFontTowxObject(void *ptr) {
3386 wxFont *src;
3387 wxObject *dest;
3388 src = (wxFont *) ptr;
3389 dest = (wxObject *) src;
3390 return (void *) dest;
3391}
3392
3393#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3394static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3395 PyObject * _resultobj;
3396 wxFont * _result;
3397 int _arg0;
3398 int _arg1;
3399 int _arg2;
3400 int _arg3;
3401 int _arg4 = (int ) FALSE;
3402 char * _arg5 = (char *) "";
3403 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3404 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3405 char _ptemp[128];
3406
3407 self = self;
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3409 return NULL;
3410{
474c48f9 3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3412 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3413
474c48f9 3414 wxPyEndAllowThreads(__tstate);
059a841c
RD
3415 if (PyErr_Occurred()) return NULL;
3416} if (_result) {
3417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3418 _resultobj = Py_BuildValue("s",_ptemp);
3419 } else {
3420 Py_INCREF(Py_None);
3421 _resultobj = Py_None;
3422 }
3423 return _resultobj;
3424}
3425
3426#define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3427static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3428 PyObject * _resultobj;
3429 wxFont * _result;
3430 wxNativeFontInfo * _arg0;
3431 PyObject * _argo0 = 0;
3432 char *_kwnames[] = { "info", NULL };
3433 char _ptemp[128];
3434
3435 self = self;
3436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3437 return NULL;
3438 if (_argo0) {
3439 if (_argo0 == Py_None) { _arg0 = NULL; }
3440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3442 return NULL;
3443 }
3444 }
3445{
474c48f9 3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3447 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
3448
474c48f9 3449 wxPyEndAllowThreads(__tstate);
059a841c
RD
3450 if (PyErr_Occurred()) return NULL;
3451} if (_result) {
3452 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3453 _resultobj = Py_BuildValue("s",_ptemp);
3454 } else {
3455 Py_INCREF(Py_None);
3456 _resultobj = Py_None;
3457 }
3458 return _resultobj;
3459}
3460
3461#define delete_wxFont(_swigobj) (delete _swigobj)
3462static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3463 PyObject * _resultobj;
3464 wxFont * _arg0;
3465 PyObject * _argo0 = 0;
3466 char *_kwnames[] = { "self", NULL };
3467
3468 self = self;
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3470 return NULL;
3471 if (_argo0) {
3472 if (_argo0 == Py_None) { _arg0 = NULL; }
3473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3475 return NULL;
3476 }
3477 }
3478{
474c48f9 3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3480 delete_wxFont(_arg0);
3481
474c48f9 3482 wxPyEndAllowThreads(__tstate);
059a841c
RD
3483 if (PyErr_Occurred()) return NULL;
3484} Py_INCREF(Py_None);
3485 _resultobj = Py_None;
3486 return _resultobj;
3487}
3488
3489#define wxFont_Ok(_swigobj) (_swigobj->Ok())
3490static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject * _resultobj;
3492 bool _result;
3493 wxFont * _arg0;
3494 PyObject * _argo0 = 0;
3495 char *_kwnames[] = { "self", NULL };
3496
3497 self = self;
3498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3499 return NULL;
3500 if (_argo0) {
3501 if (_argo0 == Py_None) { _arg0 = NULL; }
3502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3504 return NULL;
3505 }
3506 }
3507{
474c48f9 3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3509 _result = (bool )wxFont_Ok(_arg0);
3510
474c48f9 3511 wxPyEndAllowThreads(__tstate);
059a841c
RD
3512 if (PyErr_Occurred()) return NULL;
3513} _resultobj = Py_BuildValue("i",_result);
3514 return _resultobj;
3515}
3516
3517#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3518static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3519 PyObject * _resultobj;
3520 int _result;
3521 wxFont * _arg0;
3522 PyObject * _argo0 = 0;
3523 char *_kwnames[] = { "self", NULL };
3524
3525 self = self;
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3527 return NULL;
3528 if (_argo0) {
3529 if (_argo0 == Py_None) { _arg0 = NULL; }
3530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3532 return NULL;
3533 }
3534 }
3535{
474c48f9 3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3537 _result = (int )wxFont_GetPointSize(_arg0);
3538
474c48f9 3539 wxPyEndAllowThreads(__tstate);
059a841c
RD
3540 if (PyErr_Occurred()) return NULL;
3541} _resultobj = Py_BuildValue("i",_result);
3542 return _resultobj;
3543}
3544
3545#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3546static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3547 PyObject * _resultobj;
3548 int _result;
3549 wxFont * _arg0;
3550 PyObject * _argo0 = 0;
3551 char *_kwnames[] = { "self", NULL };
3552
3553 self = self;
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3555 return NULL;
3556 if (_argo0) {
3557 if (_argo0 == Py_None) { _arg0 = NULL; }
3558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3560 return NULL;
3561 }
3562 }
3563{
474c48f9 3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3565 _result = (int )wxFont_GetFamily(_arg0);
3566
474c48f9 3567 wxPyEndAllowThreads(__tstate);
059a841c
RD
3568 if (PyErr_Occurred()) return NULL;
3569} _resultobj = Py_BuildValue("i",_result);
3570 return _resultobj;
3571}
3572
3573#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3574static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3575 PyObject * _resultobj;
3576 int _result;
3577 wxFont * _arg0;
3578 PyObject * _argo0 = 0;
3579 char *_kwnames[] = { "self", NULL };
3580
3581 self = self;
3582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3583 return NULL;
3584 if (_argo0) {
3585 if (_argo0 == Py_None) { _arg0 = NULL; }
3586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3588 return NULL;
3589 }
3590 }
3591{
474c48f9 3592 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3593 _result = (int )wxFont_GetStyle(_arg0);
3594
474c48f9 3595 wxPyEndAllowThreads(__tstate);
059a841c
RD
3596 if (PyErr_Occurred()) return NULL;
3597} _resultobj = Py_BuildValue("i",_result);
3598 return _resultobj;
3599}
3600
3601#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3602static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3603 PyObject * _resultobj;
3604 int _result;
3605 wxFont * _arg0;
3606 PyObject * _argo0 = 0;
3607 char *_kwnames[] = { "self", NULL };
3608
3609 self = self;
3610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3611 return NULL;
3612 if (_argo0) {
3613 if (_argo0 == Py_None) { _arg0 = NULL; }
3614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3616 return NULL;
3617 }
3618 }
3619{
474c48f9 3620 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3621 _result = (int )wxFont_GetWeight(_arg0);
3622
474c48f9 3623 wxPyEndAllowThreads(__tstate);
059a841c
RD
3624 if (PyErr_Occurred()) return NULL;
3625} _resultobj = Py_BuildValue("i",_result);
3626 return _resultobj;
3627}
3628
3629#define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3630static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject * _resultobj;
3632 bool _result;
3633 wxFont * _arg0;
3634 PyObject * _argo0 = 0;
3635 char *_kwnames[] = { "self", NULL };
3636
3637 self = self;
3638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3639 return NULL;
3640 if (_argo0) {
3641 if (_argo0 == Py_None) { _arg0 = NULL; }
3642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3644 return NULL;
3645 }
3646 }
3647{
474c48f9 3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3649 _result = (bool )wxFont_GetUnderlined(_arg0);
3650
474c48f9 3651 wxPyEndAllowThreads(__tstate);
059a841c 3652 if (PyErr_Occurred()) return NULL;
ab9bc19b 3653} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3654 return _resultobj;
3655}
3656
059a841c
RD
3657#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3658static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3659 PyObject * _resultobj;
3660 wxString * _result;
3661 wxFont * _arg0;
3662 PyObject * _argo0 = 0;
3663 char *_kwnames[] = { "self", NULL };
3664
3665 self = self;
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3667 return NULL;
3668 if (_argo0) {
3669 if (_argo0 == Py_None) { _arg0 = NULL; }
3670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3672 return NULL;
3673 }
3674 }
3675{
474c48f9 3676 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
3677 _result = new wxString (wxFont_GetFaceName(_arg0));
3678
474c48f9 3679 wxPyEndAllowThreads(__tstate);
059a841c
RD
3680 if (PyErr_Occurred()) return NULL;
3681}{
3682 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3683}
3684{
3685 delete _result;
3686}
3687 return _resultobj;
3688}
3689
3690#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3691static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3692 PyObject * _resultobj;
059a841c 3693 wxFontEncoding _result;
70551f47 3694 wxFont * _arg0;
2d091820 3695 PyObject * _argo0 = 0;
107e4716 3696 char *_kwnames[] = { "self", NULL };
70551f47
RD
3697
3698 self = self;
059a841c 3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
70551f47 3700 return NULL;
2d091820
RD
3701 if (_argo0) {
3702 if (_argo0 == Py_None) { _arg0 = NULL; }
3703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
70551f47
RD
3705 return NULL;
3706 }
3707 }
ab9bc19b 3708{
474c48f9 3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3710 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
ab9bc19b 3711
474c48f9 3712 wxPyEndAllowThreads(__tstate);
4dfaa61e 3713 if (PyErr_Occurred()) return NULL;
ab9bc19b 3714} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3715 return _resultobj;
3716}
3717
db34b2d4
RD
3718#define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3719static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3720 PyObject * _resultobj;
3721 bool _result;
3722 wxFont * _arg0;
3723 PyObject * _argo0 = 0;
3724 char *_kwnames[] = { "self", NULL };
3725
3726 self = self;
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
3728 return NULL;
3729 if (_argo0) {
3730 if (_argo0 == Py_None) { _arg0 = NULL; }
3731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3733 return NULL;
3734 }
3735 }
3736{
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 _result = (bool )wxFont_IsFixedWidth(_arg0);
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) return NULL;
3742} _resultobj = Py_BuildValue("i",_result);
3743 return _resultobj;
3744}
3745
059a841c
RD
3746#define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3747static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3748 PyObject * _resultobj;
059a841c 3749 wxNativeFontInfo * _result;
70551f47 3750 wxFont * _arg0;
2d091820 3751 PyObject * _argo0 = 0;
107e4716 3752 char *_kwnames[] = { "self", NULL };
059a841c 3753 char _ptemp[128];
70551f47
RD
3754
3755 self = self;
059a841c 3756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
70551f47 3757 return NULL;
2d091820
RD
3758 if (_argo0) {
3759 if (_argo0 == Py_None) { _arg0 = NULL; }
3760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
70551f47
RD
3762 return NULL;
3763 }
3764 }
ab9bc19b 3765{
474c48f9 3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3767 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
ab9bc19b 3768
474c48f9 3769 wxPyEndAllowThreads(__tstate);
4dfaa61e 3770 if (PyErr_Occurred()) return NULL;
059a841c
RD
3771} if (_result) {
3772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3773 _resultobj = Py_BuildValue("s",_ptemp);
3774 } else {
3775 Py_INCREF(Py_None);
3776 _resultobj = Py_None;
3777 }
70551f47
RD
3778 return _resultobj;
3779}
3780
1893b029
RD
3781#define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3782static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject * _resultobj;
3784 wxString * _result;
3785 wxFont * _arg0;
3786 PyObject * _argo0 = 0;
3787 char *_kwnames[] = { "self", NULL };
3788
3789 self = self;
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
3791 return NULL;
3792 if (_argo0) {
3793 if (_argo0 == Py_None) { _arg0 = NULL; }
3794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3796 return NULL;
3797 }
3798 }
3799{
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) return NULL;
3805}{
3806 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3807}
3808{
3809 delete _result;
3810}
3811 return _resultobj;
3812}
3813
3814#define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3815static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject * _resultobj;
3817 wxString * _result;
3818 wxFont * _arg0;
3819 PyObject * _argo0 = 0;
3820 char *_kwnames[] = { "self", NULL };
3821
3822 self = self;
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
3824 return NULL;
3825 if (_argo0) {
3826 if (_argo0 == Py_None) { _arg0 = NULL; }
3827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3829 return NULL;
3830 }
3831 }
3832{
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) return NULL;
3838}{
3839 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3840}
3841{
3842 delete _result;
3843}
3844 return _resultobj;
3845}
3846
059a841c
RD
3847#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3848static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc 3849 PyObject * _resultobj;
134d79dc 3850 wxFont * _arg0;
059a841c 3851 int _arg1;
134d79dc 3852 PyObject * _argo0 = 0;
059a841c 3853 char *_kwnames[] = { "self","pointSize", NULL };
134d79dc
RD
3854
3855 self = self;
059a841c 3856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
134d79dc
RD
3857 return NULL;
3858 if (_argo0) {
3859 if (_argo0 == Py_None) { _arg0 = NULL; }
3860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
134d79dc
RD
3862 return NULL;
3863 }
3864 }
3865{
474c48f9 3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3867 wxFont_SetPointSize(_arg0,_arg1);
134d79dc 3868
474c48f9 3869 wxPyEndAllowThreads(__tstate);
4dfaa61e 3870 if (PyErr_Occurred()) return NULL;
059a841c
RD
3871} Py_INCREF(Py_None);
3872 _resultobj = Py_None;
134d79dc
RD
3873 return _resultobj;
3874}
3875
059a841c
RD
3876#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3877static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3878 PyObject * _resultobj;
3879 wxFont * _arg0;
059a841c 3880 int _arg1;
2d091820 3881 PyObject * _argo0 = 0;
059a841c 3882 char *_kwnames[] = { "self","family", NULL };
d3b4d113
RR
3883
3884 self = self;
059a841c 3885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
d3b4d113 3886 return NULL;
2d091820
RD
3887 if (_argo0) {
3888 if (_argo0 == Py_None) { _arg0 = NULL; }
3889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
d3b4d113
RR
3891 return NULL;
3892 }
3893 }
ab9bc19b 3894{
474c48f9 3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3896 wxFont_SetFamily(_arg0,_arg1);
ab9bc19b 3897
474c48f9 3898 wxPyEndAllowThreads(__tstate);
4dfaa61e 3899 if (PyErr_Occurred()) return NULL;
ab9bc19b 3900} Py_INCREF(Py_None);
d3b4d113 3901 _resultobj = Py_None;
d3b4d113
RR
3902 return _resultobj;
3903}
3904
059a841c
RD
3905#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3906static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3907 PyObject * _resultobj;
3908 wxFont * _arg0;
3909 int _arg1;
2d091820 3910 PyObject * _argo0 = 0;
059a841c 3911 char *_kwnames[] = { "self","style", NULL };
d3b4d113
RR
3912
3913 self = self;
059a841c 3914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
d3b4d113 3915 return NULL;
2d091820
RD
3916 if (_argo0) {
3917 if (_argo0 == Py_None) { _arg0 = NULL; }
3918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
d3b4d113
RR
3920 return NULL;
3921 }
3922 }
ab9bc19b 3923{
474c48f9 3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3925 wxFont_SetStyle(_arg0,_arg1);
ab9bc19b 3926
474c48f9 3927 wxPyEndAllowThreads(__tstate);
4dfaa61e 3928 if (PyErr_Occurred()) return NULL;
ab9bc19b 3929} Py_INCREF(Py_None);
d3b4d113
RR
3930 _resultobj = Py_None;
3931 return _resultobj;
3932}
3933
059a841c
RD
3934#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3935static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3936 PyObject * _resultobj;
3937 wxFont * _arg0;
3938 int _arg1;
2d091820 3939 PyObject * _argo0 = 0;
059a841c 3940 char *_kwnames[] = { "self","weight", NULL };
d3b4d113
RR
3941
3942 self = self;
059a841c 3943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
d3b4d113 3944 return NULL;
2d091820
RD
3945 if (_argo0) {
3946 if (_argo0 == Py_None) { _arg0 = NULL; }
3947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
d3b4d113
RR
3949 return NULL;
3950 }
3951 }
ab9bc19b 3952{
474c48f9 3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 3954 wxFont_SetWeight(_arg0,_arg1);
ab9bc19b 3955
474c48f9 3956 wxPyEndAllowThreads(__tstate);
4dfaa61e 3957 if (PyErr_Occurred()) return NULL;
ab9bc19b 3958} Py_INCREF(Py_None);
d3b4d113
RR
3959 _resultobj = Py_None;
3960 return _resultobj;
3961}
3962
059a841c
RD
3963#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3964static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3965 PyObject * _resultobj;
3966 wxFont * _arg0;
059a841c 3967 wxString * _arg1;
2d091820 3968 PyObject * _argo0 = 0;
059a841c
RD
3969 PyObject * _obj1 = 0;
3970 char *_kwnames[] = { "self","faceName", NULL };
d3b4d113
RR
3971
3972 self = self;
059a841c 3973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
d3b4d113 3974 return NULL;
2d091820
RD
3975 if (_argo0) {
3976 if (_argo0 == Py_None) { _arg0 = NULL; }
3977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
d3b4d113
RR
3979 return NULL;
3980 }
3981 }
059a841c
RD
3982{
3983#if PYTHON_API_VERSION >= 1009
3984 char* tmpPtr; int tmpSize;
3985 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3986 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3987 return NULL;
3988 }
3989 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3990 return NULL;
3991 _arg1 = new wxString(tmpPtr, tmpSize);
3992#else
3993 if (!PyString_Check(_obj1)) {
3994 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3995 return NULL;
3996 }
3997 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3998#endif
3999}
ab9bc19b 4000{
474c48f9 4001 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 4002 wxFont_SetFaceName(_arg0,*_arg1);
ab9bc19b 4003
474c48f9 4004 wxPyEndAllowThreads(__tstate);
4dfaa61e 4005 if (PyErr_Occurred()) return NULL;
ab9bc19b 4006} Py_INCREF(Py_None);
d3b4d113 4007 _resultobj = Py_None;
059a841c
RD
4008{
4009 if (_obj1)
4010 delete _arg1;
4011}
d3b4d113
RR
4012 return _resultobj;
4013}
4014
4015#define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
107e4716 4016static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
4017 PyObject * _resultobj;
4018 wxFont * _arg0;
4019 bool _arg1;
2d091820 4020 PyObject * _argo0 = 0;
d3b4d113 4021 int tempbool1;
107e4716 4022 char *_kwnames[] = { "self","underlined", NULL };
d3b4d113
RR
4023
4024 self = self;
107e4716 4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
d3b4d113 4026 return NULL;
2d091820
RD
4027 if (_argo0) {
4028 if (_argo0 == Py_None) { _arg0 = NULL; }
4029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
d3b4d113
RR
4030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4031 return NULL;
4032 }
4033 }
4034 _arg1 = (bool ) tempbool1;
ab9bc19b 4035{
474c48f9 4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4037 wxFont_SetUnderlined(_arg0,_arg1);
4038
474c48f9 4039 wxPyEndAllowThreads(__tstate);
4dfaa61e 4040 if (PyErr_Occurred()) return NULL;
ab9bc19b 4041} Py_INCREF(Py_None);
d3b4d113
RR
4042 _resultobj = Py_None;
4043 return _resultobj;
4044}
4045
059a841c
RD
4046#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4047static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
4048 PyObject * _resultobj;
4049 wxFont * _arg0;
059a841c 4050 wxFontEncoding _arg1;
2d091820 4051 PyObject * _argo0 = 0;
059a841c 4052 char *_kwnames[] = { "self","encoding", NULL };
d3b4d113
RR
4053
4054 self = self;
059a841c 4055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
d3b4d113 4056 return NULL;
2d091820
RD
4057 if (_argo0) {
4058 if (_argo0 == Py_None) { _arg0 = NULL; }
4059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 4060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
d3b4d113
RR
4061 return NULL;
4062 }
4063 }
ab9bc19b 4064{
474c48f9 4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 4066 wxFont_SetEncoding(_arg0,_arg1);
ab9bc19b 4067
474c48f9 4068 wxPyEndAllowThreads(__tstate);
4dfaa61e 4069 if (PyErr_Occurred()) return NULL;
ab9bc19b 4070} Py_INCREF(Py_None);
d3b4d113
RR
4071 _resultobj = Py_None;
4072 return _resultobj;
4073}
4074
059a841c
RD
4075#define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4076static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc
RD
4077 PyObject * _resultobj;
4078 wxFont * _arg0;
059a841c 4079 wxNativeFontInfo * _arg1;
134d79dc 4080 PyObject * _argo0 = 0;
059a841c
RD
4081 PyObject * _argo1 = 0;
4082 char *_kwnames[] = { "self","info", NULL };
134d79dc
RD
4083
4084 self = self;
059a841c 4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
134d79dc
RD
4086 return NULL;
4087 if (_argo0) {
4088 if (_argo0 == Py_None) { _arg0 = NULL; }
4089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c
RD
4090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4091 return NULL;
4092 }
4093 }
4094 if (_argo1) {
4095 if (_argo1 == Py_None) { _arg1 = NULL; }
4096 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4097 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
134d79dc
RD
4098 return NULL;
4099 }
4100 }
4101{
474c48f9 4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c 4103 wxFont_SetNativeFontInfo(_arg0,*_arg1);
134d79dc 4104
474c48f9 4105 wxPyEndAllowThreads(__tstate);
4dfaa61e 4106 if (PyErr_Occurred()) return NULL;
134d79dc
RD
4107} Py_INCREF(Py_None);
4108 _resultobj = Py_None;
4109 return _resultobj;
4110}
4111
1893b029
RD
4112#define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4113static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject * _resultobj;
4115 wxFont * _arg0;
4116 wxString * _arg1;
4117 PyObject * _argo0 = 0;
4118 PyObject * _obj1 = 0;
4119 char *_kwnames[] = { "self","info", NULL };
4120
4121 self = self;
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4123 return NULL;
4124 if (_argo0) {
4125 if (_argo0 == Py_None) { _arg0 = NULL; }
4126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4128 return NULL;
4129 }
4130 }
4131{
4132#if PYTHON_API_VERSION >= 1009
4133 char* tmpPtr; int tmpSize;
4134 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4135 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4136 return NULL;
4137 }
4138 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4139 return NULL;
4140 _arg1 = new wxString(tmpPtr, tmpSize);
4141#else
4142 if (!PyString_Check(_obj1)) {
4143 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4144 return NULL;
4145 }
4146 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4147#endif
4148}
4149{
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
4152
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) return NULL;
4155} Py_INCREF(Py_None);
4156 _resultobj = Py_None;
4157{
4158 if (_obj1)
4159 delete _arg1;
4160}
4161 return _resultobj;
4162}
4163
134d79dc
RD
4164#define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4165static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject * _resultobj;
4167 wxString * _result;
4168 wxFont * _arg0;
4169 PyObject * _argo0 = 0;
4170 char *_kwnames[] = { "self", NULL };
4171
4172 self = self;
4173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4174 return NULL;
4175 if (_argo0) {
4176 if (_argo0 == Py_None) { _arg0 = NULL; }
4177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4179 return NULL;
4180 }
4181 }
4182{
474c48f9 4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
134d79dc
RD
4184 _result = new wxString (wxFont_GetFamilyString(_arg0));
4185
474c48f9 4186 wxPyEndAllowThreads(__tstate);
4dfaa61e 4187 if (PyErr_Occurred()) return NULL;
134d79dc 4188}{
e02c03a4 4189 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
134d79dc
RD
4190}
4191{
4192 delete _result;
4193}
4194 return _resultobj;
4195}
4196
4197#define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4198static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4199 PyObject * _resultobj;
4200 wxString * _result;
4201 wxFont * _arg0;
4202 PyObject * _argo0 = 0;
4203 char *_kwnames[] = { "self", NULL };
4204
4205 self = self;
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4207 return NULL;
4208 if (_argo0) {
4209 if (_argo0 == Py_None) { _arg0 = NULL; }
4210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4212 return NULL;
4213 }
4214 }
4215{
474c48f9 4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
134d79dc
RD
4217 _result = new wxString (wxFont_GetStyleString(_arg0));
4218
474c48f9 4219 wxPyEndAllowThreads(__tstate);
4dfaa61e 4220 if (PyErr_Occurred()) return NULL;
134d79dc 4221}{
e02c03a4 4222 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
134d79dc
RD
4223}
4224{
4225 delete _result;
4226}
4227 return _resultobj;
4228}
4229
4230#define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4231static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject * _resultobj;
4233 wxString * _result;
4234 wxFont * _arg0;
4235 PyObject * _argo0 = 0;
4236 char *_kwnames[] = { "self", NULL };
4237
4238 self = self;
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4240 return NULL;
4241 if (_argo0) {
4242 if (_argo0 == Py_None) { _arg0 = NULL; }
4243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4245 return NULL;
4246 }
4247 }
4248{
474c48f9 4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
134d79dc
RD
4250 _result = new wxString (wxFont_GetWeightString(_arg0));
4251
474c48f9 4252 wxPyEndAllowThreads(__tstate);
4dfaa61e 4253 if (PyErr_Occurred()) return NULL;
134d79dc 4254}{
e02c03a4 4255 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
134d79dc
RD
4256}
4257{
4258 delete _result;
4259}
4260 return _resultobj;
4261}
4262
059a841c
RD
4263static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4264 PyObject * _resultobj;
4265 wxFontEncoding _result;
4266 char *_kwnames[] = { NULL };
4267
4268 self = self;
4269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4270 return NULL;
4271{
474c48f9 4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
4273 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
4274
474c48f9 4275 wxPyEndAllowThreads(__tstate);
059a841c
RD
4276 if (PyErr_Occurred()) return NULL;
4277} _resultobj = Py_BuildValue("i",_result);
4278 return _resultobj;
4279}
4280
4281static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject * _resultobj;
4283 wxFontEncoding _arg0;
4284 char *_kwnames[] = { "encoding", NULL };
4285
4286 self = self;
4287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4288 return NULL;
4289{
474c48f9 4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
4291 wxFont::SetDefaultEncoding(_arg0);
4292
474c48f9 4293 wxPyEndAllowThreads(__tstate);
059a841c
RD
4294 if (PyErr_Occurred()) return NULL;
4295} Py_INCREF(Py_None);
4296 _resultobj = Py_None;
4297 return _resultobj;
4298}
4299
9df61a29
RD
4300static void *SwigwxFontListTowxObject(void *ptr) {
4301 wxFontList *src;
4302 wxObject *dest;
4303 src = (wxFontList *) ptr;
4304 dest = (wxObject *) src;
4305 return (void *) dest;
4306}
4307
5e40f9dd
RD
4308#define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4309static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject * _resultobj;
4311 wxFontList * _arg0;
4312 wxFont * _arg1;
4313 PyObject * _argo0 = 0;
4314 PyObject * _argo1 = 0;
4315 char *_kwnames[] = { "self","font", NULL };
4316
4317 self = self;
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4319 return NULL;
4320 if (_argo0) {
4321 if (_argo0 == Py_None) { _arg0 = NULL; }
4322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4324 return NULL;
4325 }
4326 }
4327 if (_argo1) {
4328 if (_argo1 == Py_None) { _arg1 = NULL; }
4329 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4330 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4331 return NULL;
4332 }
4333 }
4334{
474c48f9 4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4336 wxFontList_AddFont(_arg0,_arg1);
4337
474c48f9 4338 wxPyEndAllowThreads(__tstate);
4dfaa61e 4339 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4340} Py_INCREF(Py_None);
4341 _resultobj = Py_None;
4342 return _resultobj;
4343}
4344
4345#define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4346static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject * _resultobj;
4348 wxFont * _result;
4349 wxFontList * _arg0;
4350 int _arg1;
4351 int _arg2;
4352 int _arg3;
4353 int _arg4;
4354 bool _arg5 = (bool ) FALSE;
4355 char * _arg6 = (char *) NULL;
4356 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4357 PyObject * _argo0 = 0;
4358 int tempbool5 = (int) FALSE;
4359 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4360 char _ptemp[128];
4361
4362 self = self;
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4364 return NULL;
4365 if (_argo0) {
4366 if (_argo0 == Py_None) { _arg0 = NULL; }
4367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4369 return NULL;
4370 }
4371 }
4372 _arg5 = (bool ) tempbool5;
4373{
474c48f9 4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4375 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
4376
474c48f9 4377 wxPyEndAllowThreads(__tstate);
4dfaa61e 4378 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4379} if (_result) {
4380 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4381 _resultobj = Py_BuildValue("s",_ptemp);
4382 } else {
4383 Py_INCREF(Py_None);
4384 _resultobj = Py_None;
4385 }
4386 return _resultobj;
4387}
4388
4389#define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4390static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4391 PyObject * _resultobj;
4392 wxFontList * _arg0;
4393 wxFont * _arg1;
4394 PyObject * _argo0 = 0;
4395 PyObject * _argo1 = 0;
4396 char *_kwnames[] = { "self","font", NULL };
4397
4398 self = self;
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4400 return NULL;
4401 if (_argo0) {
4402 if (_argo0 == Py_None) { _arg0 = NULL; }
4403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4405 return NULL;
4406 }
4407 }
4408 if (_argo1) {
4409 if (_argo1 == Py_None) { _arg1 = NULL; }
4410 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4411 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4412 return NULL;
4413 }
4414 }
4415{
474c48f9 4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4417 wxFontList_RemoveFont(_arg0,_arg1);
4418
474c48f9 4419 wxPyEndAllowThreads(__tstate);
4dfaa61e 4420 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4421} Py_INCREF(Py_None);
4422 _resultobj = Py_None;
4423 return _resultobj;
4424}
4425
7a9b33db
RD
4426#define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4427static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4428 PyObject * _resultobj;
4429 int _result;
4430 wxFontList * _arg0;
4431 PyObject * _argo0 = 0;
4432 char *_kwnames[] = { "self", NULL };
4433
4434 self = self;
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4436 return NULL;
4437 if (_argo0) {
4438 if (_argo0 == Py_None) { _arg0 = NULL; }
4439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4441 return NULL;
4442 }
4443 }
4444{
474c48f9 4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7a9b33db
RD
4446 _result = (int )wxFontList_GetCount(_arg0);
4447
474c48f9 4448 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4449 if (PyErr_Occurred()) return NULL;
4450} _resultobj = Py_BuildValue("i",_result);
4451 return _resultobj;
4452}
4453
9df61a29
RD
4454static void *SwigwxColourTowxObject(void *ptr) {
4455 wxColour *src;
4456 wxObject *dest;
4457 src = (wxColour *) ptr;
4458 dest = (wxObject *) src;
4459 return (void *) dest;
4460}
4461
70551f47 4462#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 4463static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4464 PyObject * _resultobj;
4465 wxColour * _result;
2d091820
RD
4466 unsigned char _arg0 = (unsigned char ) 0;
4467 unsigned char _arg1 = (unsigned char ) 0;
4468 unsigned char _arg2 = (unsigned char ) 0;
107e4716 4469 char *_kwnames[] = { "red","green","blue", NULL };
70551f47
RD
4470 char _ptemp[128];
4471
4472 self = self;
107e4716 4473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 4474 return NULL;
ab9bc19b 4475{
474c48f9 4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4477 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
4478
474c48f9 4479 wxPyEndAllowThreads(__tstate);
4dfaa61e 4480 if (PyErr_Occurred()) return NULL;
2d091820
RD
4481} if (_result) {
4482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4483 _resultobj = Py_BuildValue("s",_ptemp);
4484 } else {
4485 Py_INCREF(Py_None);
4486 _resultobj = Py_None;
4487 }
70551f47
RD
4488 return _resultobj;
4489}
4490
4491#define delete_wxColour(_swigobj) (delete _swigobj)
107e4716 4492static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4493 PyObject * _resultobj;
4494 wxColour * _arg0;
f6bcfd97
BP
4495 wxColour temp;
4496 PyObject * _obj0 = 0;
107e4716 4497 char *_kwnames[] = { "self", NULL };
70551f47
RD
4498
4499 self = self;
f6bcfd97 4500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
70551f47 4501 return NULL;
f6bcfd97
BP
4502{
4503 _arg0 = &temp;
4504 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4505 return NULL;
f6bcfd97 4506}
ab9bc19b 4507{
474c48f9 4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4509 delete_wxColour(_arg0);
4510
474c48f9 4511 wxPyEndAllowThreads(__tstate);
4dfaa61e 4512 if (PyErr_Occurred()) return NULL;
ab9bc19b 4513} Py_INCREF(Py_None);
70551f47
RD
4514 _resultobj = Py_None;
4515 return _resultobj;
4516}
4517
4518#define wxColour_Red(_swigobj) (_swigobj->Red())
107e4716 4519static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4520 PyObject * _resultobj;
4521 unsigned char _result;
4522 wxColour * _arg0;
f6bcfd97
BP
4523 wxColour temp;
4524 PyObject * _obj0 = 0;
107e4716 4525 char *_kwnames[] = { "self", NULL };
70551f47
RD
4526
4527 self = self;
f6bcfd97 4528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
70551f47 4529 return NULL;
f6bcfd97
BP
4530{
4531 _arg0 = &temp;
4532 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4533 return NULL;
f6bcfd97 4534}
ab9bc19b 4535{
474c48f9 4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4537 _result = (unsigned char )wxColour_Red(_arg0);
4538
474c48f9 4539 wxPyEndAllowThreads(__tstate);
4dfaa61e 4540 if (PyErr_Occurred()) return NULL;
ab9bc19b 4541} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4542 return _resultobj;
4543}
4544
4545#define wxColour_Green(_swigobj) (_swigobj->Green())
107e4716 4546static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4547 PyObject * _resultobj;
4548 unsigned char _result;
4549 wxColour * _arg0;
f6bcfd97
BP
4550 wxColour temp;
4551 PyObject * _obj0 = 0;
107e4716 4552 char *_kwnames[] = { "self", NULL };
70551f47
RD
4553
4554 self = self;
f6bcfd97 4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
70551f47 4556 return NULL;
f6bcfd97
BP
4557{
4558 _arg0 = &temp;
4559 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4560 return NULL;
f6bcfd97 4561}
ab9bc19b 4562{
474c48f9 4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4564 _result = (unsigned char )wxColour_Green(_arg0);
4565
474c48f9 4566 wxPyEndAllowThreads(__tstate);
4dfaa61e 4567 if (PyErr_Occurred()) return NULL;
ab9bc19b 4568} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4569 return _resultobj;
4570}
4571
4572#define wxColour_Blue(_swigobj) (_swigobj->Blue())
107e4716 4573static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4574 PyObject * _resultobj;
4575 unsigned char _result;
4576 wxColour * _arg0;
f6bcfd97
BP
4577 wxColour temp;
4578 PyObject * _obj0 = 0;
107e4716 4579 char *_kwnames[] = { "self", NULL };
70551f47
RD
4580
4581 self = self;
f6bcfd97 4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
70551f47 4583 return NULL;
f6bcfd97
BP
4584{
4585 _arg0 = &temp;
4586 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4587 return NULL;
f6bcfd97 4588}
ab9bc19b 4589{
474c48f9 4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4591 _result = (unsigned char )wxColour_Blue(_arg0);
4592
474c48f9 4593 wxPyEndAllowThreads(__tstate);
4dfaa61e 4594 if (PyErr_Occurred()) return NULL;
ab9bc19b 4595} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4596 return _resultobj;
4597}
4598
4599#define wxColour_Ok(_swigobj) (_swigobj->Ok())
107e4716 4600static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4601 PyObject * _resultobj;
4602 bool _result;
4603 wxColour * _arg0;
f6bcfd97
BP
4604 wxColour temp;
4605 PyObject * _obj0 = 0;
107e4716 4606 char *_kwnames[] = { "self", NULL };
70551f47
RD
4607
4608 self = self;
f6bcfd97 4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
70551f47 4610 return NULL;
f6bcfd97
BP
4611{
4612 _arg0 = &temp;
4613 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4614 return NULL;
f6bcfd97 4615}
ab9bc19b 4616{
474c48f9 4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4618 _result = (bool )wxColour_Ok(_arg0);
4619
474c48f9 4620 wxPyEndAllowThreads(__tstate);
4dfaa61e 4621 if (PyErr_Occurred()) return NULL;
ab9bc19b 4622} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4623 return _resultobj;
4624}
4625
4626#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
107e4716 4627static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4628 PyObject * _resultobj;
4629 wxColour * _arg0;
4630 unsigned char _arg1;
4631 unsigned char _arg2;
4632 unsigned char _arg3;
f6bcfd97
BP
4633 wxColour temp;
4634 PyObject * _obj0 = 0;
107e4716 4635 char *_kwnames[] = { "self","red","green","blue", NULL };
70551f47
RD
4636
4637 self = self;
f6bcfd97 4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
70551f47 4639 return NULL;
f6bcfd97
BP
4640{
4641 _arg0 = &temp;
4642 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4643 return NULL;
f6bcfd97 4644}
ab9bc19b 4645{
474c48f9 4646 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4647 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4648
474c48f9 4649 wxPyEndAllowThreads(__tstate);
4dfaa61e 4650 if (PyErr_Occurred()) return NULL;
ab9bc19b 4651} Py_INCREF(Py_None);
70551f47
RD
4652 _resultobj = Py_None;
4653 return _resultobj;
4654}
4655
4656static PyObject * wxColour_Get(wxColour *self) {
4657 PyObject* rv = PyTuple_New(3);
4658 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4659 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4660 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4661 return rv;
4662 }
107e4716 4663static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4664 PyObject * _resultobj;
4665 PyObject * _result;
4666 wxColour * _arg0;
f6bcfd97
BP
4667 wxColour temp;
4668 PyObject * _obj0 = 0;
107e4716 4669 char *_kwnames[] = { "self", NULL };
70551f47
RD
4670
4671 self = self;
f6bcfd97 4672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
70551f47 4673 return NULL;
f6bcfd97
BP
4674{
4675 _arg0 = &temp;
4676 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4677 return NULL;
f6bcfd97 4678}
70551f47 4679{
474c48f9 4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
4681 _result = (PyObject *)wxColour_Get(_arg0);
4682
474c48f9 4683 wxPyEndAllowThreads(__tstate);
4dfaa61e 4684 if (PyErr_Occurred()) return NULL;
ab9bc19b 4685}{
70551f47
RD
4686 _resultobj = _result;
4687}
4688 return _resultobj;
4689}
4690
9df61a29
RD
4691static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4692 wxColourDatabase *src;
4693 wxObject *dest;
4694 src = (wxColourDatabase *) ptr;
4695 dest = (wxObject *) src;
4696 return (void *) dest;
4697}
4698
5e40f9dd
RD
4699#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4700static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4701 PyObject * _resultobj;
5e40f9dd
RD
4702 wxColour * _result;
4703 wxColourDatabase * _arg0;
4704 wxString * _arg1;
4705 PyObject * _argo0 = 0;
4706 PyObject * _obj1 = 0;
4707 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4708 char _ptemp[128];
4709
4710 self = self;
5e40f9dd
RD
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4712 return NULL;
4713 if (_argo0) {
4714 if (_argo0 == Py_None) { _arg0 = NULL; }
4715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
70551f47 4717 return NULL;
5e40f9dd
RD
4718 }
4719 }
f6bcfd97 4720{
5e40f9dd
RD
4721#if PYTHON_API_VERSION >= 1009
4722 char* tmpPtr; int tmpSize;
4723 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 4724 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5e40f9dd
RD
4725 return NULL;
4726 }
4727 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4728 return NULL;
4729 _arg1 = new wxString(tmpPtr, tmpSize);
4730#else
4731 if (!PyString_Check(_obj1)) {
4732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
70551f47 4733 return NULL;
5e40f9dd
RD
4734 }
4735 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4736#endif
f6bcfd97 4737}
ab9bc19b 4738{
474c48f9 4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd 4740 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
ab9bc19b 4741
474c48f9 4742 wxPyEndAllowThreads(__tstate);
4dfaa61e 4743 if (PyErr_Occurred()) return NULL;
2d091820 4744} if (_result) {
5e40f9dd 4745 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2d091820
RD
4746 _resultobj = Py_BuildValue("s",_ptemp);
4747 } else {
4748 Py_INCREF(Py_None);
4749 _resultobj = Py_None;
4750 }
5e40f9dd
RD
4751{
4752 if (_obj1)
4753 delete _arg1;
4754}
70551f47
RD
4755 return _resultobj;
4756}
4757
5e40f9dd
RD
4758#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4759static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4760 PyObject * _resultobj;
5e40f9dd
RD
4761 wxString * _result;
4762 wxColourDatabase * _arg0;
4763 wxColour * _arg1;
2d091820 4764 PyObject * _argo0 = 0;
5e40f9dd
RD
4765 wxColour temp;
4766 PyObject * _obj1 = 0;
4767 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4768
4769 self = self;
5e40f9dd 4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
70551f47 4771 return NULL;
2d091820
RD
4772 if (_argo0) {
4773 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
70551f47
RD
4776 return NULL;
4777 }
4778 }
5e40f9dd
RD
4779{
4780 _arg1 = &temp;
4781 if (! wxColour_helper(_obj1, &_arg1))
4782 return NULL;
4783}
ab9bc19b 4784{
474c48f9 4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd 4786 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
ab9bc19b 4787
474c48f9 4788 wxPyEndAllowThreads(__tstate);
4dfaa61e 4789 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4790}{
4791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4792}
4793{
4794 delete _result;
4795}
70551f47
RD
4796 return _resultobj;
4797}
4798
5e40f9dd
RD
4799static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
4800 self->Append(name.c_str(), new wxColour(red, green, blue));
4801 }
4802static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4803 PyObject * _resultobj;
5e40f9dd
RD
4804 wxColourDatabase * _arg0;
4805 wxString * _arg1;
4806 int _arg2;
4807 int _arg3;
4808 int _arg4;
2d091820 4809 PyObject * _argo0 = 0;
5e40f9dd
RD
4810 PyObject * _obj1 = 0;
4811 char *_kwnames[] = { "self","name","red","green","blue", NULL };
70551f47
RD
4812
4813 self = self;
5e40f9dd 4814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
70551f47 4815 return NULL;
2d091820
RD
4816 if (_argo0) {
4817 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
70551f47
RD
4820 return NULL;
4821 }
4822 }
ab9bc19b 4823{
5e40f9dd
RD
4824#if PYTHON_API_VERSION >= 1009
4825 char* tmpPtr; int tmpSize;
4826 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 4827 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5e40f9dd
RD
4828 return NULL;
4829 }
4830 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4831 return NULL;
4832 _arg1 = new wxString(tmpPtr, tmpSize);
4833#else
4834 if (!PyString_Check(_obj1)) {
4835 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4836 return NULL;
4837 }
4838 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4839#endif
4840}
4841{
474c48f9 4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4843 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
4844
474c48f9 4845 wxPyEndAllowThreads(__tstate);
4dfaa61e 4846 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4847} Py_INCREF(Py_None);
4848 _resultobj = Py_None;
4849{
4850 if (_obj1)
4851 delete _arg1;
4852}
4853 return _resultobj;
4854}
4855
9df61a29
RD
4856static void *SwigwxPenTowxGDIObject(void *ptr) {
4857 wxPen *src;
4858 wxGDIObject *dest;
4859 src = (wxPen *) ptr;
4860 dest = (wxGDIObject *) src;
4861 return (void *) dest;
4862}
4863
4864static void *SwigwxPenTowxObject(void *ptr) {
4865 wxPen *src;
4866 wxObject *dest;
4867 src = (wxPen *) ptr;
4868 dest = (wxObject *) src;
4869 return (void *) dest;
4870}
4871
5e40f9dd
RD
4872#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4873static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4874 PyObject * _resultobj;
4875 wxPen * _result;
4876 wxColour * _arg0;
4877 int _arg1 = (int ) 1;
4878 int _arg2 = (int ) wxSOLID;
4879 wxColour temp;
4880 PyObject * _obj0 = 0;
4881 char *_kwnames[] = { "colour","width","style", NULL };
4882 char _ptemp[128];
4883
4884 self = self;
4885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4886 return NULL;
4887{
4888 _arg0 = &temp;
4889 if (! wxColour_helper(_obj0, &_arg0))
4890 return NULL;
4891}
4892{
474c48f9 4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4894 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
4895
474c48f9 4896 wxPyEndAllowThreads(__tstate);
4dfaa61e 4897 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4898} if (_result) {
4899 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4900 _resultobj = Py_BuildValue("s",_ptemp);
4901 } else {
4902 Py_INCREF(Py_None);
4903 _resultobj = Py_None;
4904 }
4905 return _resultobj;
4906}
4907
4908#define delete_wxPen(_swigobj) (delete _swigobj)
4909static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4910 PyObject * _resultobj;
4911 wxPen * _arg0;
4912 PyObject * _argo0 = 0;
4913 char *_kwnames[] = { "self", NULL };
4914
4915 self = self;
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4917 return NULL;
4918 if (_argo0) {
4919 if (_argo0 == Py_None) { _arg0 = NULL; }
4920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4922 return NULL;
4923 }
4924 }
4925{
474c48f9 4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4927 delete_wxPen(_arg0);
4928
474c48f9 4929 wxPyEndAllowThreads(__tstate);
4dfaa61e 4930 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4931} Py_INCREF(Py_None);
4932 _resultobj = Py_None;
4933 return _resultobj;
4934}
4935
4936#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4937static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject * _resultobj;
4939 int _result;
4940 wxPen * _arg0;
4941 PyObject * _argo0 = 0;
4942 char *_kwnames[] = { "self", NULL };
4943
4944 self = self;
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4946 return NULL;
4947 if (_argo0) {
4948 if (_argo0 == Py_None) { _arg0 = NULL; }
4949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4951 return NULL;
4952 }
4953 }
4954{
474c48f9 4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
4956 _result = (int )wxPen_GetCap(_arg0);
4957
474c48f9 4958 wxPyEndAllowThreads(__tstate);
4dfaa61e 4959 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4960} _resultobj = Py_BuildValue("i",_result);
4961 return _resultobj;
4962}
4963
4964#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4965static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject * _resultobj;
4967 wxColour * _result;
4968 wxPen * _arg0;
4969 PyObject * _argo0 = 0;
4970 char *_kwnames[] = { "self", NULL };
4971 char _ptemp[128];
4972
4973 self = self;
4974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4975 return NULL;
4976 if (_argo0) {
4977 if (_argo0 == Py_None) { _arg0 = NULL; }
4978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4980 return NULL;
4981 }
4982 }
4983{
474c48f9 4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
84a81942 4985 _result = new wxColour (wxPen_GetColour(_arg0));
5e40f9dd 4986
474c48f9 4987 wxPyEndAllowThreads(__tstate);
4dfaa61e 4988 if (PyErr_Occurred()) return NULL;
84a81942
RD
4989} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4990 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
4991 return _resultobj;
4992}
4993
4994#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
107e4716 4995static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4996 PyObject * _resultobj;
4997 int _result;
4998 wxPen * _arg0;
2d091820 4999 PyObject * _argo0 = 0;
107e4716 5000 char *_kwnames[] = { "self", NULL };
70551f47
RD
5001
5002 self = self;
107e4716 5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
70551f47 5004 return NULL;
2d091820
RD
5005 if (_argo0) {
5006 if (_argo0 == Py_None) { _arg0 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5009 return NULL;
5010 }
5011 }
ab9bc19b 5012{
474c48f9 5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5014 _result = (int )wxPen_GetJoin(_arg0);
5015
474c48f9 5016 wxPyEndAllowThreads(__tstate);
4dfaa61e 5017 if (PyErr_Occurred()) return NULL;
ab9bc19b 5018} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5019 return _resultobj;
5020}
5021
5022#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 5023static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5024 PyObject * _resultobj;
5025 int _result;
5026 wxPen * _arg0;
2d091820 5027 PyObject * _argo0 = 0;
107e4716 5028 char *_kwnames[] = { "self", NULL };
70551f47
RD
5029
5030 self = self;
107e4716 5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
70551f47 5032 return NULL;
2d091820
RD
5033 if (_argo0) {
5034 if (_argo0 == Py_None) { _arg0 = NULL; }
5035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5037 return NULL;
5038 }
5039 }
ab9bc19b 5040{
474c48f9 5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5042 _result = (int )wxPen_GetStyle(_arg0);
5043
474c48f9 5044 wxPyEndAllowThreads(__tstate);
4dfaa61e 5045 if (PyErr_Occurred()) return NULL;
ab9bc19b 5046} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5047 return _resultobj;
5048}
5049
5050#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 5051static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5052 PyObject * _resultobj;
5053 int _result;
5054 wxPen * _arg0;
2d091820 5055 PyObject * _argo0 = 0;
107e4716 5056 char *_kwnames[] = { "self", NULL };
70551f47
RD
5057
5058 self = self;
107e4716 5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
70551f47 5060 return NULL;
2d091820
RD
5061 if (_argo0) {
5062 if (_argo0 == Py_None) { _arg0 = NULL; }
5063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5065 return NULL;
5066 }
5067 }
ab9bc19b 5068{
474c48f9 5069 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5070 _result = (int )wxPen_GetWidth(_arg0);
5071
474c48f9 5072 wxPyEndAllowThreads(__tstate);
4dfaa61e 5073 if (PyErr_Occurred()) return NULL;
ab9bc19b 5074} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5075 return _resultobj;
5076}
5077
5078#define wxPen_Ok(_swigobj) (_swigobj->Ok())
107e4716 5079static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5080 PyObject * _resultobj;
5081 bool _result;
5082 wxPen * _arg0;
2d091820 5083 PyObject * _argo0 = 0;
107e4716 5084 char *_kwnames[] = { "self", NULL };
70551f47
RD
5085
5086 self = self;
107e4716 5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
70551f47 5088 return NULL;
2d091820
RD
5089 if (_argo0) {
5090 if (_argo0 == Py_None) { _arg0 = NULL; }
5091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5093 return NULL;
5094 }
5095 }
ab9bc19b 5096{
474c48f9 5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5098 _result = (bool )wxPen_Ok(_arg0);
5099
474c48f9 5100 wxPyEndAllowThreads(__tstate);
4dfaa61e 5101 if (PyErr_Occurred()) return NULL;
ab9bc19b 5102} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5103 return _resultobj;
5104}
5105
5106#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
107e4716 5107static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5108 PyObject * _resultobj;
5109 wxPen * _arg0;
5110 int _arg1;
2d091820 5111 PyObject * _argo0 = 0;
107e4716 5112 char *_kwnames[] = { "self","cap_style", NULL };
70551f47
RD
5113
5114 self = self;
107e4716 5115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
70551f47 5116 return NULL;
2d091820
RD
5117 if (_argo0) {
5118 if (_argo0 == Py_None) { _arg0 = NULL; }
5119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5121 return NULL;
5122 }
5123 }
ab9bc19b 5124{
474c48f9 5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5126 wxPen_SetCap(_arg0,_arg1);
5127
474c48f9 5128 wxPyEndAllowThreads(__tstate);
4dfaa61e 5129 if (PyErr_Occurred()) return NULL;
ab9bc19b 5130} Py_INCREF(Py_None);
70551f47
RD
5131 _resultobj = Py_None;
5132 return _resultobj;
5133}
5134
5135#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5136static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5137 PyObject * _resultobj;
5138 wxPen * _arg0;
5139 wxColour * _arg1;
2d091820 5140 PyObject * _argo0 = 0;
f6bcfd97
BP
5141 wxColour temp;
5142 PyObject * _obj1 = 0;
107e4716 5143 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
5144
5145 self = self;
f6bcfd97 5146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
70551f47 5147 return NULL;
2d091820
RD
5148 if (_argo0) {
5149 if (_argo0 == Py_None) { _arg0 = NULL; }
5150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5152 return NULL;
5153 }
5154 }
f6bcfd97
BP
5155{
5156 _arg1 = &temp;
5157 if (! wxColour_helper(_obj1, &_arg1))
70551f47 5158 return NULL;
f6bcfd97 5159}
ab9bc19b 5160{
474c48f9 5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5162 wxPen_SetColour(_arg0,*_arg1);
5163
474c48f9 5164 wxPyEndAllowThreads(__tstate);
4dfaa61e 5165 if (PyErr_Occurred()) return NULL;
ab9bc19b 5166} Py_INCREF(Py_None);
70551f47
RD
5167 _resultobj = Py_None;
5168 return _resultobj;
5169}
5170
5171#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
107e4716 5172static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5173 PyObject * _resultobj;
5174 wxPen * _arg0;
5175 int _arg1;
2d091820 5176 PyObject * _argo0 = 0;
107e4716 5177 char *_kwnames[] = { "self","join_style", NULL };
70551f47
RD
5178
5179 self = self;
107e4716 5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
70551f47 5181 return NULL;
2d091820
RD
5182 if (_argo0) {
5183 if (_argo0 == Py_None) { _arg0 = NULL; }
5184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5186 return NULL;
5187 }
5188 }
ab9bc19b 5189{
474c48f9 5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5191 wxPen_SetJoin(_arg0,_arg1);
5192
474c48f9 5193 wxPyEndAllowThreads(__tstate);
4dfaa61e 5194 if (PyErr_Occurred()) return NULL;
ab9bc19b 5195} Py_INCREF(Py_None);
70551f47
RD
5196 _resultobj = Py_None;
5197 return _resultobj;
5198}
5199
5200#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5201static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5202 PyObject * _resultobj;
5203 wxPen * _arg0;
5204 int _arg1;
2d091820 5205 PyObject * _argo0 = 0;
107e4716 5206 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
5207
5208 self = self;
107e4716 5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
70551f47 5210 return NULL;
2d091820
RD
5211 if (_argo0) {
5212 if (_argo0 == Py_None) { _arg0 = NULL; }
5213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5215 return NULL;
5216 }
5217 }
ab9bc19b 5218{
474c48f9 5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5220 wxPen_SetStyle(_arg0,_arg1);
5221
474c48f9 5222 wxPyEndAllowThreads(__tstate);
4dfaa61e 5223 if (PyErr_Occurred()) return NULL;
ab9bc19b 5224} Py_INCREF(Py_None);
70551f47
RD
5225 _resultobj = Py_None;
5226 return _resultobj;
5227}
5228
5229#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
107e4716 5230static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5231 PyObject * _resultobj;
5232 wxPen * _arg0;
5233 int _arg1;
2d091820 5234 PyObject * _argo0 = 0;
107e4716 5235 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
5236
5237 self = self;
107e4716 5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 5239 return NULL;
2d091820
RD
5240 if (_argo0) {
5241 if (_argo0 == Py_None) { _arg0 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5244 return NULL;
5245 }
5246 }
ab9bc19b 5247{
474c48f9 5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5249 wxPen_SetWidth(_arg0,_arg1);
5250
474c48f9 5251 wxPyEndAllowThreads(__tstate);
4dfaa61e 5252 if (PyErr_Occurred()) return NULL;
ab9bc19b 5253} Py_INCREF(Py_None);
70551f47
RD
5254 _resultobj = Py_None;
5255 return _resultobj;
5256}
5257
65191ae8
RD
5258#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5259static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5260 PyObject * _resultobj;
56f5d962 5261 wxPen * _arg0;
65191ae8
RD
5262 int _arg1;
5263 wxDash * _arg2;
56f5d962 5264 PyObject * _argo0 = 0;
65191ae8
RD
5265 PyObject * _obj2 = 0;
5266 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5267
5268 self = self;
65191ae8 5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5270 return NULL;
5271 if (_argo0) {
5272 if (_argo0 == Py_None) { _arg0 = NULL; }
5273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
65191ae8 5274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
56f5d962
RD
5275 return NULL;
5276 }
5277 }
65191ae8
RD
5278 if (_obj2)
5279{
5280 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5281 if (_arg2 == NULL) {
5282 return NULL;
5283 }
5284}
5285{
5286 if (_obj2) {
5287 _arg1 = PyList_Size(_obj2);
5288 }
5289 else {
5290 _arg1 = 0;
5291 }
5292}
5293{
474c48f9 5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
65191ae8
RD
5295 wxPen_SetDashes(_arg0,_arg1,_arg2);
5296
474c48f9 5297 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5298 if (PyErr_Occurred()) return NULL;
5299} Py_INCREF(Py_None);
5300 _resultobj = Py_None;
5301{
5302 delete [] _arg2;
5303}
5304 return _resultobj;
5305}
5306
5307static void *SwigwxPyPenTowxPen(void *ptr) {
5308 wxPyPen *src;
5309 wxPen *dest;
5310 src = (wxPyPen *) ptr;
5311 dest = (wxPen *) src;
5312 return (void *) dest;
5313}
5314
5315static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5316 wxPyPen *src;
5317 wxGDIObject *dest;
5318 src = (wxPyPen *) ptr;
5319 dest = (wxGDIObject *) src;
5320 return (void *) dest;
5321}
5322
5323static void *SwigwxPyPenTowxObject(void *ptr) {
5324 wxPyPen *src;
5325 wxObject *dest;
5326 src = (wxPyPen *) ptr;
5327 dest = (wxObject *) src;
5328 return (void *) dest;
5329}
5330
5331#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5332static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject * _resultobj;
5334 wxPyPen * _result;
5335 wxColour * _arg0;
5336 int _arg1 = (int ) 1;
5337 int _arg2 = (int ) wxSOLID;
5338 wxColour temp;
5339 PyObject * _obj0 = 0;
5340 char *_kwnames[] = { "colour","width","style", NULL };
5341 char _ptemp[128];
5342
5343 self = self;
5344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5345 return NULL;
5346{
5347 _arg0 = &temp;
5348 if (! wxColour_helper(_obj0, &_arg0))
5349 return NULL;
5350}
5351{
474c48f9 5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
65191ae8
RD
5353 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5354
474c48f9 5355 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5356 if (PyErr_Occurred()) return NULL;
5357} if (_result) {
5358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5359 _resultobj = Py_BuildValue("s",_ptemp);
5360 } else {
5361 Py_INCREF(Py_None);
5362 _resultobj = Py_None;
5363 }
5364 return _resultobj;
5365}
5366
5367#define delete_wxPyPen(_swigobj) (delete _swigobj)
5368static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5369 PyObject * _resultobj;
5370 wxPyPen * _arg0;
5371 PyObject * _argo0 = 0;
5372 char *_kwnames[] = { "self", NULL };
5373
5374 self = self;
5375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5376 return NULL;
5377 if (_argo0) {
5378 if (_argo0 == Py_None) { _arg0 = NULL; }
5379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
56f5d962
RD
5381 return NULL;
5382 }
5383 }
5384{
474c48f9 5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
65191ae8 5386 delete_wxPyPen(_arg0);
56f5d962 5387
474c48f9 5388 wxPyEndAllowThreads(__tstate);
4dfaa61e 5389 if (PyErr_Occurred()) return NULL;
65191ae8
RD
5390} Py_INCREF(Py_None);
5391 _resultobj = Py_None;
56f5d962
RD
5392 return _resultobj;
5393}
5394
65191ae8
RD
5395#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5396static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5397 PyObject * _resultobj;
65191ae8 5398 wxPyPen * _arg0;
56f5d962
RD
5399 int _arg1;
5400 wxDash * _arg2;
5401 PyObject * _argo0 = 0;
5402 PyObject * _obj2 = 0;
e02c03a4 5403 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5404
5405 self = self;
65191ae8 5406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5407 return NULL;
5408 if (_argo0) {
5409 if (_argo0 == Py_None) { _arg0 = NULL; }
65191ae8
RD
5410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
56f5d962
RD
5412 return NULL;
5413 }
5414 }
5415 if (_obj2)
5416{
41073357 5417 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
56f5d962
RD
5418 if (_arg2 == NULL) {
5419 return NULL;
5420 }
5421}
5422{
5423 if (_obj2) {
5424 _arg1 = PyList_Size(_obj2);
5425 }
5426 else {
5427 _arg1 = 0;
5428 }
5429}
5430{
474c48f9 5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
65191ae8 5432 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
56f5d962 5433
474c48f9 5434 wxPyEndAllowThreads(__tstate);
4dfaa61e 5435 if (PyErr_Occurred()) return NULL;
56f5d962
RD
5436} Py_INCREF(Py_None);
5437 _resultobj = Py_None;
5438{
5439 delete [] _arg2;
5440}
5441 return _resultobj;
5442}
5443
9df61a29
RD
5444static void *SwigwxPenListTowxObject(void *ptr) {
5445 wxPenList *src;
5446 wxObject *dest;
5447 src = (wxPenList *) ptr;
5448 dest = (wxObject *) src;
5449 return (void *) dest;
5450}
5451
5e40f9dd
RD
5452#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5453static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5454 PyObject * _resultobj;
5455 wxPenList * _arg0;
5456 wxPen * _arg1;
5457 PyObject * _argo0 = 0;
5458 PyObject * _argo1 = 0;
5459 char *_kwnames[] = { "self","pen", NULL };
5460
5461 self = self;
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5463 return NULL;
5464 if (_argo0) {
5465 if (_argo0 == Py_None) { _arg0 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5468 return NULL;
70551f47 5469 }
5e40f9dd
RD
5470 }
5471 if (_argo1) {
5472 if (_argo1 == Py_None) { _arg1 = NULL; }
5473 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5474 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5475 return NULL;
5476 }
5477 }
5478{
474c48f9 5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd 5480 wxPenList_AddPen(_arg0,_arg1);
70551f47 5481
474c48f9 5482 wxPyEndAllowThreads(__tstate);
4dfaa61e 5483 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5484} Py_INCREF(Py_None);
5485 _resultobj = Py_None;
5486 return _resultobj;
5487}
5488
5489#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5490static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5491 PyObject * _resultobj;
5492 wxPen * _result;
5493 wxPenList * _arg0;
5494 wxColour * _arg1;
5495 int _arg2;
5496 int _arg3;
5497 PyObject * _argo0 = 0;
5498 wxColour temp;
5499 PyObject * _obj1 = 0;
5500 char *_kwnames[] = { "self","colour","width","style", NULL };
5501 char _ptemp[128];
5502
5503 self = self;
5504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5505 return NULL;
5506 if (_argo0) {
5507 if (_argo0 == Py_None) { _arg0 = NULL; }
5508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5510 return NULL;
5511 }
5512 }
5513{
5514 _arg1 = &temp;
5515 if (! wxColour_helper(_obj1, &_arg1))
5516 return NULL;
5517}
5518{
474c48f9 5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
5520 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5521
474c48f9 5522 wxPyEndAllowThreads(__tstate);
4dfaa61e 5523 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5524} if (_result) {
5525 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5526 _resultobj = Py_BuildValue("s",_ptemp);
5527 } else {
5528 Py_INCREF(Py_None);
5529 _resultobj = Py_None;
5530 }
5531 return _resultobj;
5532}
5533
5534#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5535static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5536 PyObject * _resultobj;
5537 wxPenList * _arg0;
5538 wxPen * _arg1;
5539 PyObject * _argo0 = 0;
5540 PyObject * _argo1 = 0;
5541 char *_kwnames[] = { "self","pen", NULL };
5542
5543 self = self;
5544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5545 return NULL;
5546 if (_argo0) {
5547 if (_argo0 == Py_None) { _arg0 = NULL; }
5548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5550 return NULL;
5551 }
5552 }
5553 if (_argo1) {
5554 if (_argo1 == Py_None) { _arg1 = NULL; }
5555 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5556 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5557 return NULL;
5558 }
5559 }
5560{
474c48f9 5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
5562 wxPenList_RemovePen(_arg0,_arg1);
5563
474c48f9 5564 wxPyEndAllowThreads(__tstate);
4dfaa61e 5565 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5566} Py_INCREF(Py_None);
5567 _resultobj = Py_None;
5568 return _resultobj;
5569}
5570
7a9b33db
RD
5571#define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5572static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5573 PyObject * _resultobj;
5574 int _result;
5575 wxPenList * _arg0;
5576 PyObject * _argo0 = 0;
5577 char *_kwnames[] = { "self", NULL };
5578
5579 self = self;
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5581 return NULL;
5582 if (_argo0) {
5583 if (_argo0 == Py_None) { _arg0 = NULL; }
5584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5586 return NULL;
5587 }
5588 }
5589{
474c48f9 5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7a9b33db
RD
5591 _result = (int )wxPenList_GetCount(_arg0);
5592
474c48f9 5593 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
5594 if (PyErr_Occurred()) return NULL;
5595} _resultobj = Py_BuildValue("i",_result);
5596 return _resultobj;
5597}
5598
9df61a29
RD
5599static void *SwigwxBrushTowxGDIObject(void *ptr) {
5600 wxBrush *src;
5601 wxGDIObject *dest;
5602 src = (wxBrush *) ptr;
5603 dest = (wxGDIObject *) src;
5604 return (void *) dest;
5605}
5606
5607static void *SwigwxBrushTowxObject(void *ptr) {
5608 wxBrush *src;
5609 wxObject *dest;
5610 src = (wxBrush *) ptr;
5611 dest = (wxObject *) src;
5612 return (void *) dest;
5613}
5614
5e40f9dd 5615#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
107e4716 5616static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5617 PyObject * _resultobj;
5618 wxBrush * _result;
5619 wxColour * _arg0;
2d091820 5620 int _arg1 = (int ) wxSOLID;
f6bcfd97
BP
5621 wxColour temp;
5622 PyObject * _obj0 = 0;
107e4716 5623 char *_kwnames[] = { "colour","style", NULL };
70551f47
RD
5624 char _ptemp[128];
5625
5626 self = self;
f6bcfd97 5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
70551f47 5628 return NULL;
f6bcfd97
BP
5629{
5630 _arg0 = &temp;
5631 if (! wxColour_helper(_obj0, &_arg0))
70551f47 5632 return NULL;
f6bcfd97 5633}
ab9bc19b 5634{
474c48f9 5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd 5636 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
ab9bc19b 5637
474c48f9 5638 wxPyEndAllowThreads(__tstate);
4dfaa61e 5639 if (PyErr_Occurred()) return NULL;
2d091820
RD
5640} if (_result) {
5641 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5642 _resultobj = Py_BuildValue("s",_ptemp);
5643 } else {
5644 Py_INCREF(Py_None);
5645 _resultobj = Py_None;
5646 }
70551f47
RD
5647 return _resultobj;
5648}
5649
5e40f9dd
RD
5650#define delete_wxBrush(_swigobj) (delete _swigobj)
5651static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5652 PyObject * _resultobj;
5653 wxBrush * _arg0;
5654 PyObject * _argo0 = 0;
5655 char *_kwnames[] = { "self", NULL };
5656
5657 self = self;
5658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5659 return NULL;
5660 if (_argo0) {
5661 if (_argo0 == Py_None) { _arg0 = NULL; }
5662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5664 return NULL;
5665 }
5666 }
5667{
474c48f9 5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
5669 delete_wxBrush(_arg0);
5670
474c48f9 5671 wxPyEndAllowThreads(__tstate);
4dfaa61e 5672 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5673} Py_INCREF(Py_None);
5674 _resultobj = Py_None;
5675 return _resultobj;
5676}
5677
70551f47 5678#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
107e4716 5679static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5680 PyObject * _resultobj;
5681 wxColour * _result;
5682 wxBrush * _arg0;
2d091820 5683 PyObject * _argo0 = 0;
107e4716 5684 char *_kwnames[] = { "self", NULL };
70551f47
RD
5685 char _ptemp[128];
5686
5687 self = self;
107e4716 5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
70551f47 5689 return NULL;
2d091820
RD
5690 if (_argo0) {
5691 if (_argo0 == Py_None) { _arg0 = NULL; }
5692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5694 return NULL;
5695 }
5696 }
ab9bc19b 5697{
474c48f9 5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
84a81942 5699 _result = new wxColour (wxBrush_GetColour(_arg0));
ab9bc19b 5700
474c48f9 5701 wxPyEndAllowThreads(__tstate);
4dfaa61e 5702 if (PyErr_Occurred()) return NULL;
84a81942
RD
5703} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5704 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5705 return _resultobj;
5706}
5707
5708#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
107e4716 5709static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5710 PyObject * _resultobj;
5711 wxBitmap * _result;
5712 wxBrush * _arg0;
2d091820 5713 PyObject * _argo0 = 0;
107e4716 5714 char *_kwnames[] = { "self", NULL };
70551f47
RD
5715 char _ptemp[128];
5716
5717 self = self;
107e4716 5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
70551f47 5719 return NULL;
2d091820
RD
5720 if (_argo0) {
5721 if (_argo0 == Py_None) { _arg0 = NULL; }
5722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5724 return NULL;
5725 }
5726 }
ab9bc19b 5727{
474c48f9 5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5729 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
5730
474c48f9 5731 wxPyEndAllowThreads(__tstate);
4dfaa61e 5732 if (PyErr_Occurred()) return NULL;
2d091820
RD
5733} if (_result) {
5734 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5735 _resultobj = Py_BuildValue("s",_ptemp);
5736 } else {
5737 Py_INCREF(Py_None);
5738 _resultobj = Py_None;
5739 }
70551f47
RD
5740 return _resultobj;
5741}
5742
5743#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 5744static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5745 PyObject * _resultobj;
5746 int _result;
5747 wxBrush * _arg0;
2d091820 5748 PyObject * _argo0 = 0;
107e4716 5749 char *_kwnames[] = { "self", NULL };
70551f47
RD
5750
5751 self = self;
107e4716 5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
70551f47 5753 return NULL;
2d091820
RD
5754 if (_argo0) {
5755 if (_argo0 == Py_None) { _arg0 = NULL; }
5756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5758 return NULL;
5759 }
5760 }
ab9bc19b 5761{
474c48f9 5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5763 _result = (int )wxBrush_GetStyle(_arg0);
5764
474c48f9 5765 wxPyEndAllowThreads(__tstate);
4dfaa61e 5766 if (PyErr_Occurred()) return NULL;
ab9bc19b 5767} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5768 return _resultobj;
5769}
5770
5771#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
107e4716 5772static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5773 PyObject * _resultobj;
5774 bool _result;
5775 wxBrush * _arg0;
2d091820 5776 PyObject * _argo0 = 0;
107e4716 5777 char *_kwnames[] = { "self", NULL };
70551f47
RD
5778
5779 self = self;
107e4716 5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
70551f47 5781 return NULL;
2d091820
RD
5782 if (_argo0) {
5783 if (_argo0 == Py_None) { _arg0 = NULL; }
5784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5786 return NULL;
5787 }
5788 }
ab9bc19b 5789{
474c48f9 5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5791 _result = (bool )wxBrush_Ok(_arg0);
5792
474c48f9 5793 wxPyEndAllowThreads(__tstate);
4dfaa61e 5794 if (PyErr_Occurred()) return NULL;
ab9bc19b 5795} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5796 return _resultobj;
5797}
5798
c95e68d8 5799#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5800static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5801 PyObject * _resultobj;
5802 wxBrush * _arg0;
5803 wxColour * _arg1;
2d091820 5804 PyObject * _argo0 = 0;
f6bcfd97
BP
5805 wxColour temp;
5806 PyObject * _obj1 = 0;
107e4716 5807 char *_kwnames[] = { "self","colour", NULL };
c95e68d8
RD
5808
5809 self = self;
f6bcfd97 5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
c95e68d8 5811 return NULL;
2d091820
RD
5812 if (_argo0) {
5813 if (_argo0 == Py_None) { _arg0 = NULL; }
5814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5816 return NULL;
5817 }
5818 }
f6bcfd97
BP
5819{
5820 _arg1 = &temp;
5821 if (! wxColour_helper(_obj1, &_arg1))
c95e68d8 5822 return NULL;
f6bcfd97 5823}
ab9bc19b 5824{
474c48f9 5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5826 wxBrush_SetColour(_arg0,*_arg1);
5827
474c48f9 5828 wxPyEndAllowThreads(__tstate);
4dfaa61e 5829 if (PyErr_Occurred()) return NULL;
ab9bc19b 5830} Py_INCREF(Py_None);
c95e68d8
RD
5831 _resultobj = Py_None;
5832 return _resultobj;
5833}
5834
5835#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
107e4716 5836static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5837 PyObject * _resultobj;
5838 wxBrush * _arg0;
5839 wxBitmap * _arg1;
2d091820
RD
5840 PyObject * _argo0 = 0;
5841 PyObject * _argo1 = 0;
107e4716 5842 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
5843
5844 self = self;
107e4716 5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
c95e68d8 5846 return NULL;
2d091820
RD
5847 if (_argo0) {
5848 if (_argo0 == Py_None) { _arg0 = NULL; }
5849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5851 return NULL;
5852 }
5853 }
2d091820
RD
5854 if (_argo1) {
5855 if (_argo1 == Py_None) { _arg1 = NULL; }
5856 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
5857 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5858 return NULL;
5859 }
5860 }
ab9bc19b 5861{
474c48f9 5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5863 wxBrush_SetStipple(_arg0,*_arg1);
5864
474c48f9 5865 wxPyEndAllowThreads(__tstate);
4dfaa61e 5866 if (PyErr_Occurred()) return NULL;
ab9bc19b 5867} Py_INCREF(Py_None);
c95e68d8
RD
5868 _resultobj = Py_None;
5869 return _resultobj;
5870}
5871
5872#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5873static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5874 PyObject * _resultobj;
5875 wxBrush * _arg0;
5876 int _arg1;
2d091820 5877 PyObject * _argo0 = 0;
107e4716 5878 char *_kwnames[] = { "self","style", NULL };
c95e68d8
RD
5879
5880 self = self;
107e4716 5881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
c95e68d8 5882 return NULL;
2d091820
RD
5883 if (_argo0) {
5884 if (_argo0 == Py_None) { _arg0 = NULL; }
5885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5887 return NULL;
5888 }
5889 }
ab9bc19b 5890{
474c48f9 5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
5892 wxBrush_SetStyle(_arg0,_arg1);
5893
474c48f9 5894 wxPyEndAllowThreads(__tstate);
4dfaa61e 5895 if (PyErr_Occurred()) return NULL;
ab9bc19b 5896} Py_INCREF(Py_None);
c95e68d8
RD
5897 _resultobj = Py_None;
5898 return _resultobj;
5899}
5900
65191ae8
RD
5901static void *SwigwxBrushListTowxObject(void *ptr) {
5902 wxBrushList *src;
5903 wxObject *dest;
5904 src = (wxBrushList *) ptr;
5905 dest = (wxObject *) src;
5906 return (void *) dest;
5907}
5908
5e40f9dd
RD
5909#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5910static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5911 PyObject * _resultobj;
5912 wxBrushList * _arg0;
5913 wxBrush * _arg1;
5914 PyObject * _argo0 = 0;
5915 PyObject * _argo1 = 0;
5916 char *_kwnames[] = { "self","brush", NULL };
5917
5918 self = self;
5919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5920 return NULL;
5921 if (_argo0) {
5922 if (_argo0 == Py_None) { _arg0 = NULL; }
5923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5925 return NULL;
5926 }
5927 }
5928 if (_argo1) {
5929 if (_argo1 == Py_None) { _arg1 = NULL; }
5930 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5931 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5932 return NULL;
5933 }
5934 }
5935{
474c48f9 5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
5937 wxBrushList_AddBrush(_arg0,_arg1);
5938
474c48f9 5939 wxPyEndAllowThreads(__tstate);
4dfaa61e 5940 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5941} Py_INCREF(Py_None);
5942 _resultobj = Py_None;
5943 return _resultobj;
5944}
5945
5946#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5947static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5948 PyObject * _resultobj;
5949 wxBrush * _result;
5950 wxBrushList * _arg0;
5951 wxColour * _arg1;
5952 int _arg2;
5953 PyObject * _argo0 = 0;
5954 wxColour temp;
5955 PyObject * _obj1 = 0;
5956 char *_kwnames[] = { "self","colour","style", NULL };
5957 char _ptemp[128];
5958
5959 self = self;
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5961 return NULL;
5962 if (_argo0) {
5963 if (_argo0 == Py_None) { _arg0 = NULL; }
5964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5966 return NULL;
5967 }
5968 }
5969{
5970 _arg1 = &temp;
5971 if (! wxColour_helper(_obj1, &_arg1))
5972 return NULL;
5973}
5974{
474c48f9 5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
5976 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5977
474c48f9 5978 wxPyEndAllowThreads(__tstate);
4dfaa61e 5979 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5980} if (_result) {
5981 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5982 _resultobj = Py_BuildValue("s",_ptemp);
5983 } else {
5984 Py_INCREF(Py_None);
5985 _resultobj = Py_None;
5986 }
5987 return _resultobj;
5988}
5989
5990#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5991static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject * _resultobj;
5993 wxBrushList * _arg0;
5994 wxBrush * _arg1;
5995 PyObject * _argo0 = 0;
5996 PyObject * _argo1 = 0;
5997 char *_kwnames[] = { "self","brush", NULL };
5998
5999 self = self;
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6001 return NULL;
6002 if (_argo0) {
6003 if (_argo0 == Py_None) { _arg0 = NULL; }
6004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6006 return NULL;
6007 }
6008 }
6009 if (_argo1) {
6010 if (_argo1 == Py_None) { _arg1 = NULL; }
6011 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6012 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6013 return NULL;
6014 }
6015 }
6016{
474c48f9 6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5e40f9dd
RD
6018 wxBrushList_RemoveBrush(_arg0,_arg1);
6019
474c48f9 6020 wxPyEndAllowThreads(__tstate);
4dfaa61e 6021 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
6022} Py_INCREF(Py_None);
6023 _resultobj = Py_None;
6024 return _resultobj;
6025}
6026
7a9b33db
RD
6027#define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6028static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject * _resultobj;
6030 int _result;
6031 wxBrushList * _arg0;
6032 PyObject * _argo0 = 0;
6033 char *_kwnames[] = { "self", NULL };
6034
6035 self = self;
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6037 return NULL;
6038 if (_argo0) {
6039 if (_argo0 == Py_None) { _arg0 = NULL; }
6040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6042 return NULL;
6043 }
6044 }
6045{
474c48f9 6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7a9b33db
RD
6047 _result = (int )wxBrushList_GetCount(_arg0);
6048
474c48f9 6049 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
6050 if (PyErr_Occurred()) return NULL;
6051} _resultobj = Py_BuildValue("i",_result);
6052 return _resultobj;
6053}
6054
9df61a29
RD
6055static void *SwigwxDCTowxObject(void *ptr) {
6056 wxDC *src;
6057 wxObject *dest;
6058 src = (wxDC *) ptr;
6059 dest = (wxObject *) src;
6060 return (void *) dest;
6061}
6062
70551f47 6063#define delete_wxDC(_swigobj) (delete _swigobj)
107e4716 6064static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6065 PyObject * _resultobj;
6066 wxDC * _arg0;
2d091820 6067 PyObject * _argo0 = 0;
107e4716 6068 char *_kwnames[] = { "self", NULL };
70551f47
RD
6069
6070 self = self;
107e4716 6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
70551f47 6072 return NULL;
2d091820
RD
6073 if (_argo0) {
6074 if (_argo0 == Py_None) { _arg0 = NULL; }
6075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6077 return NULL;
6078 }
6079 }
ab9bc19b 6080{
474c48f9 6081 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6082 delete_wxDC(_arg0);
6083
474c48f9 6084 wxPyEndAllowThreads(__tstate);
4dfaa61e 6085 if (PyErr_Occurred()) return NULL;
ab9bc19b 6086} Py_INCREF(Py_None);
70551f47
RD
6087 _resultobj = Py_None;
6088 return _resultobj;
6089}
6090
6091#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
107e4716 6092static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6093 PyObject * _resultobj;
6094 wxDC * _arg0;
2d091820 6095 PyObject * _argo0 = 0;
107e4716 6096 char *_kwnames[] = { "self", NULL };
70551f47
RD
6097
6098 self = self;
107e4716 6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
70551f47 6100 return NULL;
2d091820
RD
6101 if (_argo0) {
6102 if (_argo0 == Py_None) { _arg0 = NULL; }
6103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6105 return NULL;
6106 }
6107 }
ab9bc19b 6108{
474c48f9 6109 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6110 wxDC_BeginDrawing(_arg0);
6111
474c48f9 6112 wxPyEndAllowThreads(__tstate);
4dfaa61e 6113 if (PyErr_Occurred()) return NULL;
ab9bc19b 6114} Py_INCREF(Py_None);
70551f47
RD
6115 _resultobj = Py_None;
6116 return _resultobj;
6117}
6118
107e4716
RD
6119#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6120static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6121 PyObject * _resultobj;
6122 bool _result;
6123 wxDC * _arg0;
6124 long _arg1;
6125 long _arg2;
6126 long _arg3;
6127 long _arg4;
6128 wxDC * _arg5;
6129 long _arg6;
6130 long _arg7;
107e4716
RD
6131 int _arg8 = (int ) wxCOPY;
6132 int _arg9 = (int ) FALSE;
2d091820
RD
6133 PyObject * _argo0 = 0;
6134 PyObject * _argo5 = 0;
107e4716 6135 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
70551f47
RD
6136
6137 self = self;
107e4716 6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
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")) {
70551f47
RD
6143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6144 return NULL;
6145 }
6146 }
2d091820
RD
6147 if (_argo5) {
6148 if (_argo5 == Py_None) { _arg5 = NULL; }
6149 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
70551f47
RD
6150 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6151 return NULL;
6152 }
6153 }
ab9bc19b 6154{
474c48f9 6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
107e4716 6156 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
ab9bc19b 6157
474c48f9 6158 wxPyEndAllowThreads(__tstate);
4dfaa61e 6159 if (PyErr_Occurred()) return NULL;
ab9bc19b 6160} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6161 return _resultobj;
6162}
6163
6164#define wxDC_Clear(_swigobj) (_swigobj->Clear())
107e4716 6165static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6166 PyObject * _resultobj;
6167 wxDC * _arg0;
2d091820 6168 PyObject * _argo0 = 0;
107e4716 6169 char *_kwnames[] = { "self", NULL };
70551f47
RD
6170
6171 self = self;
107e4716 6172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
70551f47 6173 return NULL;
2d091820
RD
6174 if (_argo0) {
6175 if (_argo0 == Py_None) { _arg0 = NULL; }
6176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6178 return NULL;
6179 }
6180 }
ab9bc19b 6181{
474c48f9 6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6183 wxDC_Clear(_arg0);
6184
474c48f9 6185 wxPyEndAllowThreads(__tstate);
4dfaa61e 6186 if (PyErr_Occurred()) return NULL;
ab9bc19b 6187} Py_INCREF(Py_None);
70551f47
RD
6188 _resultobj = Py_None;
6189 return _resultobj;
6190}
6191
6192#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
107e4716 6193static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6194 PyObject * _resultobj;
6195 wxDC * _arg0;
6196 long _arg1;
6197 long _arg2;
2d091820 6198 PyObject * _argo0 = 0;
107e4716 6199 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6200
6201 self = self;
107e4716 6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6203 return NULL;
2d091820
RD
6204 if (_argo0) {
6205 if (_argo0 == Py_None) { _arg0 = NULL; }
6206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6208 return NULL;
6209 }
6210 }
ab9bc19b 6211{
474c48f9 6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6213 wxDC_CrossHair(_arg0,_arg1,_arg2);
6214
474c48f9 6215 wxPyEndAllowThreads(__tstate);
4dfaa61e 6216 if (PyErr_Occurred()) return NULL;
ab9bc19b 6217} Py_INCREF(Py_None);
70551f47
RD
6218 _resultobj = Py_None;
6219 return _resultobj;
6220}
6221
6222#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
107e4716 6223static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6224 PyObject * _resultobj;
6225 wxDC * _arg0;
2d091820 6226 PyObject * _argo0 = 0;
107e4716 6227 char *_kwnames[] = { "self", NULL };
70551f47
RD
6228
6229 self = self;
107e4716 6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
70551f47 6231 return NULL;
2d091820
RD
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6236 return NULL;
6237 }
6238 }
ab9bc19b 6239{
474c48f9 6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6241 wxDC_DestroyClippingRegion(_arg0);
6242
474c48f9 6243 wxPyEndAllowThreads(__tstate);
4dfaa61e 6244 if (PyErr_Occurred()) return NULL;
ab9bc19b 6245} Py_INCREF(Py_None);
70551f47
RD
6246 _resultobj = Py_None;
6247 return _resultobj;
6248}
6249
6250#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
107e4716 6251static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6252 PyObject * _resultobj;
6253 long _result;
6254 wxDC * _arg0;
6255 long _arg1;
2d091820 6256 PyObject * _argo0 = 0;
107e4716 6257 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6258
6259 self = self;
107e4716 6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
70551f47 6261 return NULL;
2d091820
RD
6262 if (_argo0) {
6263 if (_argo0 == Py_None) { _arg0 = NULL; }
6264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6266 return NULL;
6267 }
6268 }
ab9bc19b 6269{
474c48f9 6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6271 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6272
474c48f9 6273 wxPyEndAllowThreads(__tstate);
4dfaa61e 6274 if (PyErr_Occurred()) return NULL;
ab9bc19b 6275} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6276 return _resultobj;
6277}
6278
6279#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
107e4716 6280static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6281 PyObject * _resultobj;
6282 long _result;
6283 wxDC * _arg0;
6284 long _arg1;
2d091820 6285 PyObject * _argo0 = 0;
107e4716 6286 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6287
6288 self = self;
107e4716 6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
70551f47 6290 return NULL;
2d091820
RD
6291 if (_argo0) {
6292 if (_argo0 == Py_None) { _arg0 = NULL; }
6293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6295 return NULL;
6296 }
6297 }
ab9bc19b 6298{
474c48f9 6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6300 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6301
474c48f9 6302 wxPyEndAllowThreads(__tstate);
4dfaa61e 6303 if (PyErr_Occurred()) return NULL;
ab9bc19b 6304} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6305 return _resultobj;
6306}
6307
6308#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
107e4716 6309static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6310 PyObject * _resultobj;
6311 long _result;
6312 wxDC * _arg0;
6313 long _arg1;
2d091820 6314 PyObject * _argo0 = 0;
107e4716 6315 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6316
6317 self = self;
107e4716 6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
70551f47 6319 return NULL;
2d091820
RD
6320 if (_argo0) {
6321 if (_argo0 == Py_None) { _arg0 = NULL; }
6322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6324 return NULL;
6325 }
6326 }
ab9bc19b 6327{
474c48f9 6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6329 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6330
474c48f9 6331 wxPyEndAllowThreads(__tstate);
4dfaa61e 6332 if (PyErr_Occurred()) return NULL;
ab9bc19b 6333} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6334 return _resultobj;
6335}
6336
6337#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
107e4716 6338static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6339 PyObject * _resultobj;
6340 long _result;
6341 wxDC * _arg0;
6342 long _arg1;
2d091820 6343 PyObject * _argo0 = 0;
107e4716 6344 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6345
6346 self = self;
107e4716 6347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
70551f47 6348 return NULL;
2d091820
RD
6349 if (_argo0) {
6350 if (_argo0 == Py_None) { _arg0 = NULL; }
6351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6353 return NULL;
6354 }
6355 }
ab9bc19b 6356{
474c48f9 6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6358 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6359
474c48f9 6360 wxPyEndAllowThreads(__tstate);
4dfaa61e 6361 if (PyErr_Occurred()) return NULL;
ab9bc19b 6362} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6363 return _resultobj;
6364}
6365
6366#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6367static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6368 PyObject * _resultobj;
6369 wxDC * _arg0;
6370 long _arg1;
6371 long _arg2;
6372 long _arg3;
6373 long _arg4;
6374 long _arg5;
6375 long _arg6;
2d091820 6376 PyObject * _argo0 = 0;
107e4716 6377 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
70551f47
RD
6378
6379 self = self;
107e4716 6380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 6381 return NULL;
2d091820
RD
6382 if (_argo0) {
6383 if (_argo0 == Py_None) { _arg0 = NULL; }
6384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6386 return NULL;
6387 }
6388 }
ab9bc19b 6389{
474c48f9 6390 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6391 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6392
474c48f9 6393 wxPyEndAllowThreads(__tstate);
4dfaa61e 6394 if (PyErr_Occurred()) return NULL;
ab9bc19b 6395} Py_INCREF(Py_None);
70551f47
RD
6396 _resultobj = Py_None;
6397 return _resultobj;
6398}
6399
d24a34bb 6400#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
107e4716 6401static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
6402 PyObject * _resultobj;
6403 wxDC * _arg0;
6404 long _arg1;
6405 long _arg2;
6406 long _arg3;
2d091820 6407 PyObject * _argo0 = 0;
107e4716 6408 char *_kwnames[] = { "self","x","y","radius", NULL };
d24a34bb
RD
6409
6410 self = self;
107e4716 6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
d24a34bb 6412 return NULL;
2d091820
RD
6413 if (_argo0) {
6414 if (_argo0 == Py_None) { _arg0 = NULL; }
6415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
6416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6417 return NULL;
6418 }
6419 }
6420{
474c48f9 6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
d24a34bb
RD
6422 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6423
474c48f9 6424 wxPyEndAllowThreads(__tstate);
4dfaa61e 6425 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
6426} Py_INCREF(Py_None);
6427 _resultobj = Py_None;
6428 return _resultobj;
6429}
6430
70551f47 6431#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6432static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6433 PyObject * _resultobj;
6434 wxDC * _arg0;
6435 long _arg1;
6436 long _arg2;
6437 long _arg3;
6438 long _arg4;
2d091820 6439 PyObject * _argo0 = 0;
107e4716 6440 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6441
6442 self = self;
107e4716 6443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6444 return NULL;
2d091820
RD
6445 if (_argo0) {
6446 if (_argo0 == Py_None) { _arg0 = NULL; }
6447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6449 return NULL;
6450 }
6451 }
ab9bc19b 6452{
474c48f9 6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6454 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6455
474c48f9 6456 wxPyEndAllowThreads(__tstate);
4dfaa61e 6457 if (PyErr_Occurred()) return NULL;
ab9bc19b 6458} Py_INCREF(Py_None);
70551f47
RD
6459 _resultobj = Py_None;
6460 return _resultobj;
6461}
6462
6463#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6464static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6465 PyObject * _resultobj;
6466 wxDC * _arg0;
6467 long _arg1;
6468 long _arg2;
6469 long _arg3;
6470 long _arg4;
6471 long _arg5;
6472 long _arg6;
2d091820 6473 PyObject * _argo0 = 0;
107e4716 6474 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
70551f47
RD
6475
6476 self = self;
107e4716 6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 6478 return NULL;
2d091820
RD
6479 if (_argo0) {
6480 if (_argo0 == Py_None) { _arg0 = NULL; }
6481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6483 return NULL;
6484 }
6485 }
ab9bc19b 6486{
474c48f9 6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6488 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6489
474c48f9 6490 wxPyEndAllowThreads(__tstate);
4dfaa61e 6491 if (PyErr_Occurred()) return NULL;
ab9bc19b 6492} Py_INCREF(Py_None);
70551f47
RD
6493 _resultobj = Py_None;
6494 return _resultobj;
6495}
6496
6497#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
107e4716 6498static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6499 PyObject * _resultobj;
6500 wxDC * _arg0;
6501 wxIcon * _arg1;
6502 long _arg2;
6503 long _arg3;
2d091820
RD
6504 PyObject * _argo0 = 0;
6505 PyObject * _argo1 = 0;
107e4716 6506 char *_kwnames[] = { "self","icon","x","y", NULL };
70551f47
RD
6507
6508 self = self;
107e4716 6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
70551f47 6510 return NULL;
2d091820
RD
6511 if (_argo0) {
6512 if (_argo0 == Py_None) { _arg0 = NULL; }
6513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6515 return NULL;
6516 }
6517 }
2d091820
RD
6518 if (_argo1) {
6519 if (_argo1 == Py_None) { _arg1 = NULL; }
6520 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
70551f47
RD
6521 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6522 return NULL;
6523 }
6524 }
ab9bc19b 6525{
474c48f9 6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6527 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6528
474c48f9 6529 wxPyEndAllowThreads(__tstate);
4dfaa61e 6530 if (PyErr_Occurred()) return NULL;
ab9bc19b 6531} Py_INCREF(Py_None);
70551f47
RD
6532 _resultobj = Py_None;
6533 return _resultobj;
6534}
6535
6536#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6537static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6538 PyObject * _resultobj;
6539 wxDC * _arg0;
6540 long _arg1;
6541 long _arg2;
6542 long _arg3;
6543 long _arg4;
2d091820 6544 PyObject * _argo0 = 0;
107e4716 6545 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
70551f47
RD
6546
6547 self = self;
107e4716 6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
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_DrawLine. Expected _wxDC_p.");
6554 return NULL;
6555 }
6556 }
ab9bc19b 6557{
474c48f9 6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6559 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6560
474c48f9 6561 wxPyEndAllowThreads(__tstate);
4dfaa61e 6562 if (PyErr_Occurred()) return NULL;
ab9bc19b 6563} Py_INCREF(Py_None);
70551f47
RD
6564 _resultobj = Py_None;
6565 return _resultobj;
6566}
6567
6568#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6569static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6570 PyObject * _resultobj;
6571 wxDC * _arg0;
6572 int _arg1;
6573 wxPoint * _arg2;
2d091820
RD
6574 long _arg3 = (long ) 0;
6575 long _arg4 = (long ) 0;
6576 PyObject * _argo0 = 0;
1c09ae54 6577 int NPOINTS;
70551f47 6578 PyObject * _obj2 = 0;
e02c03a4 6579 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
70551f47
RD
6580
6581 self = self;
107e4716 6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
70551f47 6583 return NULL;
2d091820
RD
6584 if (_argo0) {
6585 if (_argo0 == Py_None) { _arg0 = NULL; }
6586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6588 return NULL;
6589 }
6590 }
6591 if (_obj2)
6592{
1c09ae54
RD
6593 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6594 if (_arg2 == NULL) {
6595 return NULL;
6596 }
70551f47
RD
6597}
6598{
1c09ae54 6599 _arg1 = NPOINTS;
70551f47 6600}
ab9bc19b 6601{
474c48f9 6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6603 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6604
474c48f9 6605 wxPyEndAllowThreads(__tstate);
4dfaa61e 6606 if (PyErr_Occurred()) return NULL;
ab9bc19b 6607} Py_INCREF(Py_None);
70551f47
RD
6608 _resultobj = Py_None;
6609{
6610 delete [] _arg2;
6611}
6612 return _resultobj;
6613}
6614
6615#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6616static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6617 PyObject * _resultobj;
6618 wxDC * _arg0;
6619 int _arg1;
6620 wxPoint * _arg2;
2d091820
RD
6621 long _arg3 = (long ) 0;
6622 long _arg4 = (long ) 0;
6623 int _arg5 = (int ) wxODDEVEN_RULE;
6624 PyObject * _argo0 = 0;
1c09ae54 6625 int NPOINTS;
70551f47 6626 PyObject * _obj2 = 0;
e02c03a4 6627 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
70551f47
RD
6628
6629 self = self;
107e4716 6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
70551f47 6631 return NULL;
2d091820
RD
6632 if (_argo0) {
6633 if (_argo0 == Py_None) { _arg0 = NULL; }
6634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6636 return NULL;
6637 }
6638 }
6639 if (_obj2)
6640{
1c09ae54
RD
6641 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6642 if (_arg2 == NULL) {
6643 return NULL;
6644 }
70551f47
RD
6645}
6646{
1c09ae54 6647 _arg1 = NPOINTS;
70551f47 6648}
ab9bc19b 6649{
474c48f9 6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6651 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6652
474c48f9 6653 wxPyEndAllowThreads(__tstate);
4dfaa61e 6654 if (PyErr_Occurred()) return NULL;
ab9bc19b 6655} Py_INCREF(Py_None);
70551f47
RD
6656 _resultobj = Py_None;
6657{
6658 delete [] _arg2;
6659}
6660 return _resultobj;
6661}
6662
6663#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
107e4716 6664static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6665 PyObject * _resultobj;
6666 wxDC * _arg0;
6667 long _arg1;
6668 long _arg2;
2d091820 6669 PyObject * _argo0 = 0;
107e4716 6670 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6671
6672 self = self;
107e4716 6673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6674 return NULL;
2d091820
RD
6675 if (_argo0) {
6676 if (_argo0 == Py_None) { _arg0 = NULL; }
6677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6679 return NULL;
6680 }
6681 }
ab9bc19b 6682{
474c48f9 6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6684 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6685
474c48f9 6686 wxPyEndAllowThreads(__tstate);
4dfaa61e 6687 if (PyErr_Occurred()) return NULL;
ab9bc19b 6688} Py_INCREF(Py_None);
70551f47
RD
6689 _resultobj = Py_None;
6690 return _resultobj;
6691}
6692
6693#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6694static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6695 PyObject * _resultobj;
6696 wxDC * _arg0;
6697 long _arg1;
6698 long _arg2;
6699 long _arg3;
6700 long _arg4;
2d091820 6701 PyObject * _argo0 = 0;
107e4716 6702 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6703
6704 self = self;
107e4716 6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6706 return NULL;
2d091820
RD
6707 if (_argo0) {
6708 if (_argo0 == Py_None) { _arg0 = NULL; }
6709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6711 return NULL;
6712 }
6713 }
ab9bc19b 6714{
474c48f9 6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6716 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6717
474c48f9 6718 wxPyEndAllowThreads(__tstate);
4dfaa61e 6719 if (PyErr_Occurred()) return NULL;
ab9bc19b 6720} Py_INCREF(Py_None);
70551f47
RD
6721 _resultobj = Py_None;
6722 return _resultobj;
6723}
6724
56f5d962
RD
6725#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6726static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject * _resultobj;
6728 wxDC * _arg0;
6729 wxString * _arg1;
6730 wxCoord _arg2;
6731 wxCoord _arg3;
6732 double _arg4;
6733 PyObject * _argo0 = 0;
6734 PyObject * _obj1 = 0;
6735 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6736
6737 self = self;
6738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6739 return NULL;
6740 if (_argo0) {
6741 if (_argo0 == Py_None) { _arg0 = NULL; }
6742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6744 return NULL;
6745 }
6746 }
6747{
2cd2fac8
RD
6748#if PYTHON_API_VERSION >= 1009
6749 char* tmpPtr; int tmpSize;
6750 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 6751 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
6752 return NULL;
6753 }
6754 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6755 return NULL;
6756 _arg1 = new wxString(tmpPtr, tmpSize);
6757#else
56f5d962
RD
6758 if (!PyString_Check(_obj1)) {
6759 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6760 return NULL;
6761 }
2cd2fac8
RD
6762 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6763#endif
56f5d962
RD
6764}
6765{
474c48f9 6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
56f5d962
RD
6767 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
6768
474c48f9 6769 wxPyEndAllowThreads(__tstate);
4dfaa61e 6770 if (PyErr_Occurred()) return NULL;
56f5d962
RD
6771} Py_INCREF(Py_None);
6772 _resultobj = Py_None;
6773{
6774 if (_obj1)
6775 delete _arg1;
6776}
6777 return _resultobj;
6778}
6779
70551f47 6780#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6781static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6782 PyObject * _resultobj;
6783 wxDC * _arg0;
6784 long _arg1;
6785 long _arg2;
6786 long _arg3;
6787 long _arg4;
2d091820
RD
6788 long _arg5 = (long ) 20;
6789 PyObject * _argo0 = 0;
107e4716 6790 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
70551f47
RD
6791
6792 self = self;
107e4716 6793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
70551f47 6794 return NULL;
2d091820
RD
6795 if (_argo0) {
6796 if (_argo0 == Py_None) { _arg0 = NULL; }
6797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6799 return NULL;
6800 }
6801 }
ab9bc19b 6802{
474c48f9 6803 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6804 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6805
474c48f9 6806 wxPyEndAllowThreads(__tstate);
4dfaa61e 6807 if (PyErr_Occurred()) return NULL;
ab9bc19b 6808} Py_INCREF(Py_None);
70551f47
RD
6809 _resultobj = Py_None;
6810 return _resultobj;
6811}
6812
6813#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
107e4716 6814static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6815 PyObject * _resultobj;
6816 wxDC * _arg0;
6817 int _arg1;
6818 wxPoint * _arg2;
2d091820 6819 PyObject * _argo0 = 0;
1c09ae54 6820 int NPOINTS;
70551f47 6821 PyObject * _obj2 = 0;
e02c03a4 6822 char *_kwnames[] = { "self","points", NULL };
70551f47
RD
6823
6824 self = self;
107e4716 6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
70551f47 6826 return NULL;
2d091820
RD
6827 if (_argo0) {
6828 if (_argo0 == Py_None) { _arg0 = NULL; }
6829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6831 return NULL;
6832 }
6833 }
6834 if (_obj2)
6835{
1c09ae54
RD
6836 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6837 if (_arg2 == NULL) {
6838 return NULL;
6839 }
70551f47
RD
6840}
6841{
1c09ae54 6842 _arg1 = NPOINTS;
70551f47 6843}
ab9bc19b 6844{
474c48f9 6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6846 wxDC_DrawSpline(_arg0,_arg1,_arg2);
6847
474c48f9 6848 wxPyEndAllowThreads(__tstate);
4dfaa61e 6849 if (PyErr_Occurred()) return NULL;
ab9bc19b 6850} Py_INCREF(Py_None);
70551f47
RD
6851 _resultobj = Py_None;
6852{
6853 delete [] _arg2;
6854}
6855 return _resultobj;
6856}
6857
6858#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
107e4716 6859static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6860 PyObject * _resultobj;
6861 wxDC * _arg0;
6862 wxString * _arg1;
6863 long _arg2;
6864 long _arg3;
2d091820 6865 PyObject * _argo0 = 0;
70551f47 6866 PyObject * _obj1 = 0;
107e4716 6867 char *_kwnames[] = { "self","text","x","y", NULL };
70551f47
RD
6868
6869 self = self;
107e4716 6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
70551f47 6871 return NULL;
2d091820
RD
6872 if (_argo0) {
6873 if (_argo0 == Py_None) { _arg0 = NULL; }
6874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6876 return NULL;
6877 }
6878 }
6879{
2cd2fac8
RD
6880#if PYTHON_API_VERSION >= 1009
6881 char* tmpPtr; int tmpSize;
6882 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 6883 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
6884 return NULL;
6885 }
6886 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6887 return NULL;
6888 _arg1 = new wxString(tmpPtr, tmpSize);
6889#else
70551f47
RD
6890 if (!PyString_Check(_obj1)) {
6891 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6892 return NULL;
6893 }
2cd2fac8
RD
6894 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6895#endif
70551f47 6896}
ab9bc19b 6897{
474c48f9 6898 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6899 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
6900
474c48f9 6901 wxPyEndAllowThreads(__tstate);
4dfaa61e 6902 if (PyErr_Occurred()) return NULL;
ab9bc19b 6903} Py_INCREF(Py_None);
70551f47
RD
6904 _resultobj = Py_None;
6905{
6906 if (_obj1)
6907 delete _arg1;
6908}
6909 return _resultobj;
6910}
6911
6912#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
107e4716 6913static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6914 PyObject * _resultobj;
6915 wxDC * _arg0;
2d091820 6916 PyObject * _argo0 = 0;
107e4716 6917 char *_kwnames[] = { "self", NULL };
70551f47
RD
6918
6919 self = self;
107e4716 6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
70551f47 6921 return NULL;
2d091820
RD
6922 if (_argo0) {
6923 if (_argo0 == Py_None) { _arg0 = NULL; }
6924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6926 return NULL;
6927 }
6928 }
ab9bc19b 6929{
474c48f9 6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6931 wxDC_EndDoc(_arg0);
6932
474c48f9 6933 wxPyEndAllowThreads(__tstate);
4dfaa61e 6934 if (PyErr_Occurred()) return NULL;
ab9bc19b 6935} Py_INCREF(Py_None);
70551f47
RD
6936 _resultobj = Py_None;
6937 return _resultobj;
6938}
6939
6940#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
107e4716 6941static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6942 PyObject * _resultobj;
6943 wxDC * _arg0;
2d091820 6944 PyObject * _argo0 = 0;
107e4716 6945 char *_kwnames[] = { "self", NULL };
70551f47
RD
6946
6947 self = self;
107e4716 6948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
70551f47 6949 return NULL;
2d091820
RD
6950 if (_argo0) {
6951 if (_argo0 == Py_None) { _arg0 = NULL; }
6952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6954 return NULL;
6955 }
6956 }
ab9bc19b 6957{
474c48f9 6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6959 wxDC_EndDrawing(_arg0);
6960
474c48f9 6961 wxPyEndAllowThreads(__tstate);
4dfaa61e 6962 if (PyErr_Occurred()) return NULL;
ab9bc19b 6963} Py_INCREF(Py_None);
70551f47
RD
6964 _resultobj = Py_None;
6965 return _resultobj;
6966}
6967
6968#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
107e4716 6969static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6970 PyObject * _resultobj;
6971 wxDC * _arg0;
2d091820 6972 PyObject * _argo0 = 0;
107e4716 6973 char *_kwnames[] = { "self", NULL };
70551f47
RD
6974
6975 self = self;
107e4716 6976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
70551f47 6977 return NULL;
2d091820
RD
6978 if (_argo0) {
6979 if (_argo0 == Py_None) { _arg0 = NULL; }
6980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6982 return NULL;
6983 }
6984 }
ab9bc19b 6985{
474c48f9 6986 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
6987 wxDC_EndPage(_arg0);
6988
474c48f9 6989 wxPyEndAllowThreads(__tstate);
4dfaa61e 6990 if (PyErr_Occurred()) return NULL;
ab9bc19b 6991} Py_INCREF(Py_None);
70551f47
RD
6992 _resultobj = Py_None;
6993 return _resultobj;
6994}
6995
6996#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6997static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6998 PyObject * _resultobj;
6999 wxDC * _arg0;
7000 long _arg1;
7001 long _arg2;
7002 wxColour * _arg3;
2d091820
RD
7003 int _arg4 = (int ) wxFLOOD_SURFACE;
7004 PyObject * _argo0 = 0;
f6bcfd97
BP
7005 wxColour temp;
7006 PyObject * _obj3 = 0;
107e4716 7007 char *_kwnames[] = { "self","x","y","colour","style", NULL };
70551f47
RD
7008
7009 self = self;
f6bcfd97 7010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
70551f47 7011 return NULL;
2d091820
RD
7012 if (_argo0) {
7013 if (_argo0 == Py_None) { _arg0 = NULL; }
7014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7016 return NULL;
7017 }
7018 }
f6bcfd97
BP
7019{
7020 _arg3 = &temp;
7021 if (! wxColour_helper(_obj3, &_arg3))
70551f47 7022 return NULL;
f6bcfd97 7023}
ab9bc19b 7024{
474c48f9 7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7026 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7027
474c48f9 7028 wxPyEndAllowThreads(__tstate);
4dfaa61e 7029 if (PyErr_Occurred()) return NULL;
ab9bc19b 7030} Py_INCREF(Py_None);
70551f47
RD
7031 _resultobj = Py_None;
7032 return _resultobj;
7033}
7034
7035#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
107e4716 7036static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7037 PyObject * _resultobj;
7038 wxBrush * _result;
7039 wxDC * _arg0;
2d091820 7040 PyObject * _argo0 = 0;
107e4716 7041 char *_kwnames[] = { "self", NULL };
70551f47
RD
7042 char _ptemp[128];
7043
7044 self = self;
107e4716 7045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
70551f47 7046 return NULL;
2d091820
RD
7047 if (_argo0) {
7048 if (_argo0 == Py_None) { _arg0 = NULL; }
7049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7051 return NULL;
7052 }
7053 }
ab9bc19b 7054{
474c48f9 7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
3e212503 7056 _result = new wxBrush (wxDC_GetBackground(_arg0));
ab9bc19b 7057
474c48f9 7058 wxPyEndAllowThreads(__tstate);
4dfaa61e 7059 if (PyErr_Occurred()) return NULL;
3e212503
RD
7060} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7061 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7062 return _resultobj;
7063}
7064
7065#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
107e4716 7066static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7067 PyObject * _resultobj;
7068 wxBrush * _result;
7069 wxDC * _arg0;
2d091820 7070 PyObject * _argo0 = 0;
107e4716 7071 char *_kwnames[] = { "self", NULL };
70551f47
RD
7072 char _ptemp[128];
7073
7074 self = self;
107e4716 7075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
70551f47 7076 return NULL;
2d091820
RD
7077 if (_argo0) {
7078 if (_argo0 == Py_None) { _arg0 = NULL; }
7079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7081 return NULL;
7082 }
7083 }
ab9bc19b 7084{
474c48f9 7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
3e212503 7086 _result = new wxBrush (wxDC_GetBrush(_arg0));
ab9bc19b 7087
474c48f9 7088 wxPyEndAllowThreads(__tstate);
4dfaa61e 7089 if (PyErr_Occurred()) return NULL;
3e212503
RD
7090} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7091 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7092 return _resultobj;
7093}
7094
7095#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
107e4716 7096static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7097 PyObject * _resultobj;
7098 long _result;
7099 wxDC * _arg0;
2d091820 7100 PyObject * _argo0 = 0;
107e4716 7101 char *_kwnames[] = { "self", NULL };
70551f47
RD
7102
7103 self = self;
107e4716 7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
70551f47 7105 return NULL;
2d091820
RD
7106 if (_argo0) {
7107 if (_argo0 == Py_None) { _arg0 = NULL; }
7108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7110 return NULL;
7111 }
7112 }
ab9bc19b 7113{
474c48f9 7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7115 _result = (long )wxDC_GetCharHeight(_arg0);
7116
474c48f9 7117 wxPyEndAllowThreads(__tstate);
4dfaa61e 7118 if (PyErr_Occurred()) return NULL;
ab9bc19b 7119} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7120 return _resultobj;
7121}
7122
7123#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
107e4716 7124static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7125 PyObject * _resultobj;
7126 long _result;
7127 wxDC * _arg0;
2d091820 7128 PyObject * _argo0 = 0;
107e4716 7129 char *_kwnames[] = { "self", NULL };
70551f47
RD
7130
7131 self = self;
107e4716 7132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
70551f47 7133 return NULL;
2d091820
RD
7134 if (_argo0) {
7135 if (_argo0 == Py_None) { _arg0 = NULL; }
7136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7138 return NULL;
7139 }
7140 }
ab9bc19b 7141{
474c48f9 7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7143 _result = (long )wxDC_GetCharWidth(_arg0);
7144
474c48f9 7145 wxPyEndAllowThreads(__tstate);
4dfaa61e 7146 if (PyErr_Occurred()) return NULL;
ab9bc19b 7147} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7148 return _resultobj;
7149}
7150
7151#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7152static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7153 PyObject * _resultobj;
7154 wxDC * _arg0;
7155 long * _arg1;
7156 long temp;
7157 long * _arg2;
7158 long temp0;
7159 long * _arg3;
7160 long temp1;
7161 long * _arg4;
7162 long temp2;
2d091820 7163 PyObject * _argo0 = 0;
107e4716 7164 char *_kwnames[] = { "self", NULL };
70551f47
RD
7165
7166 self = self;
7167{
7168 _arg1 = &temp;
7169}
7170{
7171 _arg2 = &temp0;
7172}
7173{
7174 _arg3 = &temp1;
7175}
7176{
7177 _arg4 = &temp2;
7178}
107e4716 7179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
70551f47 7180 return NULL;
2d091820
RD
7181 if (_argo0) {
7182 if (_argo0 == Py_None) { _arg0 = NULL; }
7183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7185 return NULL;
7186 }
7187 }
ab9bc19b 7188{
474c48f9 7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7190 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7191
474c48f9 7192 wxPyEndAllowThreads(__tstate);
4dfaa61e 7193 if (PyErr_Occurred()) return NULL;
ab9bc19b 7194} Py_INCREF(Py_None);
70551f47
RD
7195 _resultobj = Py_None;
7196{
7197 PyObject *o;
7198 o = PyInt_FromLong((long) (*_arg1));
7199 _resultobj = t_output_helper(_resultobj, o);
7200}
7201{
7202 PyObject *o;
7203 o = PyInt_FromLong((long) (*_arg2));
7204 _resultobj = t_output_helper(_resultobj, o);
7205}
7206{
7207 PyObject *o;
7208 o = PyInt_FromLong((long) (*_arg3));
7209 _resultobj = t_output_helper(_resultobj, o);
7210}
7211{
7212 PyObject *o;
7213 o = PyInt_FromLong((long) (*_arg4));
7214 _resultobj = t_output_helper(_resultobj, o);
7215}
7216 return _resultobj;
7217}
7218
7219#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
107e4716 7220static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7221 PyObject * _resultobj;
7222 wxFont * _result;
7223 wxDC * _arg0;
2d091820 7224 PyObject * _argo0 = 0;
107e4716 7225 char *_kwnames[] = { "self", NULL };
70551f47
RD
7226 char _ptemp[128];
7227
7228 self = self;
107e4716 7229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
70551f47 7230 return NULL;
2d091820
RD
7231 if (_argo0) {
7232 if (_argo0 == Py_None) { _arg0 = NULL; }
7233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7235 return NULL;
7236 }
7237 }
ab9bc19b 7238{
474c48f9 7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3e212503 7240 _result = new wxFont (wxDC_GetFont(_arg0));
ab9bc19b 7241
474c48f9 7242 wxPyEndAllowThreads(__tstate);
4dfaa61e 7243 if (PyErr_Occurred()) return NULL;
3e212503
RD
7244} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7245 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7246 return _resultobj;
7247}
7248
7249#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
107e4716 7250static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7251 PyObject * _resultobj;
7252 int _result;
7253 wxDC * _arg0;
2d091820 7254 PyObject * _argo0 = 0;
107e4716 7255 char *_kwnames[] = { "self", NULL };
70551f47
RD
7256
7257 self = self;
107e4716 7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
70551f47 7259 return NULL;
2d091820
RD
7260 if (_argo0) {
7261 if (_argo0 == Py_None) { _arg0 = NULL; }
7262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7264 return NULL;
7265 }
7266 }
ab9bc19b 7267{
474c48f9 7268 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7269 _result = (int )wxDC_GetLogicalFunction(_arg0);
7270
474c48f9 7271 wxPyEndAllowThreads(__tstate);
4dfaa61e 7272 if (PyErr_Occurred()) return NULL;
ab9bc19b 7273} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7274 return _resultobj;
7275}
7276
e02c03a4
RD
7277#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7278static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7279 PyObject * _resultobj;
7280 wxDC * _arg0;
7281 double * _arg1;
7282 double temp;
7283 double * _arg2;
7284 double temp0;
7285 PyObject * _argo0 = 0;
7286 char *_kwnames[] = { "self", NULL };
7287
7288 self = self;
7289{
7290 _arg1 = &temp;
7291}
7292{
7293 _arg2 = &temp0;
7294}
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7296 return NULL;
7297 if (_argo0) {
7298 if (_argo0 == Py_None) { _arg0 = NULL; }
7299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7301 return NULL;
7302 }
7303 }
7304{
474c48f9 7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
7306 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7307
474c48f9 7308 wxPyEndAllowThreads(__tstate);
4dfaa61e 7309 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7310} Py_INCREF(Py_None);
7311 _resultobj = Py_None;
7312{
7313 PyObject *o;
7314 o = PyFloat_FromDouble((double) (*_arg1));
7315 _resultobj = t_output_helper(_resultobj, o);
7316}
7317{
7318 PyObject *o;
7319 o = PyFloat_FromDouble((double) (*_arg2));
7320 _resultobj = t_output_helper(_resultobj, o);
7321}
7322 return _resultobj;
7323}
7324
70551f47 7325#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
107e4716 7326static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7327 PyObject * _resultobj;
7328 int _result;
7329 wxDC * _arg0;
2d091820 7330 PyObject * _argo0 = 0;
107e4716 7331 char *_kwnames[] = { "self", NULL };
70551f47
RD
7332
7333 self = self;
107e4716 7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
70551f47 7335 return NULL;
2d091820
RD
7336 if (_argo0) {
7337 if (_argo0 == Py_None) { _arg0 = NULL; }
7338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7340 return NULL;
7341 }
7342 }
ab9bc19b 7343{
474c48f9 7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7345 _result = (int )wxDC_GetMapMode(_arg0);
7346
474c48f9 7347 wxPyEndAllowThreads(__tstate);
4dfaa61e 7348 if (PyErr_Occurred()) return NULL;
ab9bc19b 7349} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7350 return _resultobj;
7351}
7352
7353#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
107e4716 7354static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7355 PyObject * _resultobj;
7356 bool _result;
7357 wxDC * _arg0;
2d091820 7358 PyObject * _argo0 = 0;
107e4716 7359 char *_kwnames[] = { "self", NULL };
70551f47
RD
7360
7361 self = self;
107e4716 7362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
70551f47 7363 return NULL;
2d091820
RD
7364 if (_argo0) {
7365 if (_argo0 == Py_None) { _arg0 = NULL; }
7366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7368 return NULL;
7369 }
7370 }
ab9bc19b 7371{
474c48f9 7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7373 _result = (bool )wxDC_GetOptimization(_arg0);
7374
474c48f9 7375 wxPyEndAllowThreads(__tstate);
4dfaa61e 7376 if (PyErr_Occurred()) return NULL;
ab9bc19b 7377} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7378 return _resultobj;
7379}
7380
7381#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
107e4716 7382static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7383 PyObject * _resultobj;
7384 wxPen * _result;
7385 wxDC * _arg0;
2d091820 7386 PyObject * _argo0 = 0;
107e4716 7387 char *_kwnames[] = { "self", NULL };
70551f47
RD
7388 char _ptemp[128];
7389
7390 self = self;
107e4716 7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
70551f47 7392 return NULL;
2d091820
RD
7393 if (_argo0) {
7394 if (_argo0 == Py_None) { _arg0 = NULL; }
7395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7397 return NULL;
7398 }
7399 }
ab9bc19b 7400{
474c48f9 7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
3e212503 7402 _result = new wxPen (wxDC_GetPen(_arg0));
ab9bc19b 7403
474c48f9 7404 wxPyEndAllowThreads(__tstate);
4dfaa61e 7405 if (PyErr_Occurred()) return NULL;
3e212503
RD
7406} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7407 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7408 return _resultobj;
7409}
7410
7411static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7412 wxColour* wc = new wxColour();
7413 self->GetPixel(x, y, wc);
7414 return wc;
7415 }
107e4716 7416static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7417 PyObject * _resultobj;
7418 wxColour * _result;
7419 wxDC * _arg0;
7420 long _arg1;
7421 long _arg2;
2d091820 7422 PyObject * _argo0 = 0;
107e4716 7423 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
7424 char _ptemp[128];
7425
7426 self = self;
107e4716 7427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7428 return NULL;
2d091820
RD
7429 if (_argo0) {
7430 if (_argo0 == Py_None) { _arg0 = NULL; }
7431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7433 return NULL;
7434 }
7435 }
ab9bc19b 7436{
474c48f9 7437 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7438 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7439
474c48f9 7440 wxPyEndAllowThreads(__tstate);
4dfaa61e 7441 if (PyErr_Occurred()) return NULL;
2d091820
RD
7442} if (_result) {
7443 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7444 _resultobj = Py_BuildValue("s",_ptemp);
7445 } else {
7446 Py_INCREF(Py_None);
7447 _resultobj = Py_None;
7448 }
70551f47
RD
7449 return _resultobj;
7450}
7451
d24a34bb 7452#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
107e4716 7453static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7454 PyObject * _resultobj;
7455 wxDC * _arg0;
7456 int * _arg1;
7457 int temp;
7458 int * _arg2;
7459 int temp0;
2d091820 7460 PyObject * _argo0 = 0;
107e4716 7461 char *_kwnames[] = { "self", NULL };
70551f47
RD
7462
7463 self = self;
7464{
7465 _arg1 = &temp;
7466}
7467{
7468 _arg2 = &temp0;
7469}
107e4716 7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
70551f47 7471 return NULL;
2d091820
RD
7472 if (_argo0) {
7473 if (_argo0 == Py_None) { _arg0 = NULL; }
7474 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb 7475 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
70551f47
RD
7476 return NULL;
7477 }
7478 }
ab9bc19b 7479{
474c48f9 7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
d24a34bb 7481 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
ab9bc19b 7482
474c48f9 7483 wxPyEndAllowThreads(__tstate);
4dfaa61e 7484 if (PyErr_Occurred()) return NULL;
ab9bc19b 7485} Py_INCREF(Py_None);
70551f47
RD
7486 _resultobj = Py_None;
7487{
7488 PyObject *o;
7489 o = PyInt_FromLong((long) (*_arg1));
7490 _resultobj = t_output_helper(_resultobj, o);
7491}
7492{
7493 PyObject *o;
7494 o = PyInt_FromLong((long) (*_arg2));
7495 _resultobj = t_output_helper(_resultobj, o);
7496}
7497 return _resultobj;
7498}
7499
d24a34bb 7500#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
107e4716 7501static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
7502 PyObject * _resultobj;
7503 wxSize * _result;
7504 wxDC * _arg0;
2d091820 7505 PyObject * _argo0 = 0;
107e4716 7506 char *_kwnames[] = { "self", NULL };
d24a34bb
RD
7507 char _ptemp[128];
7508
7509 self = self;
107e4716 7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
d24a34bb 7511 return NULL;
2d091820
RD
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7516 return NULL;
7517 }
7518 }
7519{
474c48f9 7520 PyThreadState* __tstate = wxPyBeginAllowThreads();
d24a34bb
RD
7521 _result = new wxSize (wxDC_GetSize(_arg0));
7522
474c48f9 7523 wxPyEndAllowThreads(__tstate);
4dfaa61e 7524 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
7525} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7526 _resultobj = Py_BuildValue("s",_ptemp);
7527 return _resultobj;
7528}
7529
e02c03a4
RD
7530#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7531static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject * _resultobj;
7533 wxSize * _result;
7534 wxDC * _arg0;
7535 PyObject * _argo0 = 0;
7536 char *_kwnames[] = { "self", NULL };
7537 char _ptemp[128];
7538
7539 self = self;
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7541 return NULL;
7542 if (_argo0) {
7543 if (_argo0 == Py_None) { _arg0 = NULL; }
7544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7546 return NULL;
7547 }
7548 }
7549{
474c48f9 7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
7551 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7552
474c48f9 7553 wxPyEndAllowThreads(__tstate);
4dfaa61e 7554 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7555} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7556 _resultobj = Py_BuildValue("s",_ptemp);
7557 return _resultobj;
7558}
7559
70551f47 7560#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
107e4716 7561static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7562 PyObject * _resultobj;
7563 wxColour * _result;
7564 wxDC * _arg0;
2d091820 7565 PyObject * _argo0 = 0;
107e4716 7566 char *_kwnames[] = { "self", NULL };
70551f47
RD
7567 char _ptemp[128];
7568
7569 self = self;
107e4716 7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
70551f47 7571 return NULL;
2d091820
RD
7572 if (_argo0) {
7573 if (_argo0 == Py_None) { _arg0 = NULL; }
7574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7576 return NULL;
7577 }
7578 }
ab9bc19b 7579{
474c48f9 7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
84a81942 7581 _result = new wxColour (wxDC_GetTextBackground(_arg0));
ab9bc19b 7582
474c48f9 7583 wxPyEndAllowThreads(__tstate);
4dfaa61e 7584 if (PyErr_Occurred()) return NULL;
84a81942
RD
7585} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7586 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7587 return _resultobj;
7588}
7589
21f8d7ea 7590#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
107e4716 7591static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
7592 PyObject * _resultobj;
7593 wxDC * _arg0;
7594 wxString * _arg1;
7595 long * _arg2;
7596 long temp;
7597 long * _arg3;
7598 long temp0;
2d091820 7599 PyObject * _argo0 = 0;
21f8d7ea 7600 PyObject * _obj1 = 0;
107e4716 7601 char *_kwnames[] = { "self","string", NULL };
21f8d7ea
RD
7602
7603 self = self;
7604{
7605 _arg2 = &temp;
7606}
7607{
7608 _arg3 = &temp0;
7609}
107e4716 7610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
21f8d7ea 7611 return NULL;
2d091820
RD
7612 if (_argo0) {
7613 if (_argo0 == Py_None) { _arg0 = NULL; }
7614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea
RD
7615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7616 return NULL;
7617 }
7618 }
7619{
2cd2fac8
RD
7620#if PYTHON_API_VERSION >= 1009
7621 char* tmpPtr; int tmpSize;
7622 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 7623 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
7624 return NULL;
7625 }
7626 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7627 return NULL;
7628 _arg1 = new wxString(tmpPtr, tmpSize);
7629#else
21f8d7ea
RD
7630 if (!PyString_Check(_obj1)) {
7631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7632 return NULL;
7633 }
2cd2fac8
RD
7634 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7635#endif
21f8d7ea 7636}
ab9bc19b 7637{
474c48f9 7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7639 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
7640
474c48f9 7641 wxPyEndAllowThreads(__tstate);
4dfaa61e 7642 if (PyErr_Occurred()) return NULL;
ab9bc19b 7643} Py_INCREF(Py_None);
21f8d7ea
RD
7644 _resultobj = Py_None;
7645{
7646 PyObject *o;
7647 o = PyInt_FromLong((long) (*_arg2));
7648 _resultobj = t_output_helper(_resultobj, o);
7649}
7650{
7651 PyObject *o;
7652 o = PyInt_FromLong((long) (*_arg3));
7653 _resultobj = t_output_helper(_resultobj, o);
7654}
7655{
7656 if (_obj1)
7657 delete _arg1;
7658}
7659 return _resultobj;
7660}
7661
7662#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 7663static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7664 PyObject * _resultobj;
7665 wxDC * _arg0;
7666 wxString * _arg1;
7667 long * _arg2;
7668 long temp;
7669 long * _arg3;
7670 long temp0;
7671 long * _arg4;
7672 long temp1;
7673 long * _arg5;
7674 long temp2;
2d091820
RD
7675 wxFont * _arg6 = (wxFont *) NULL;
7676 PyObject * _argo0 = 0;
70551f47 7677 PyObject * _obj1 = 0;
2d091820 7678 PyObject * _argo6 = 0;
107e4716 7679 char *_kwnames[] = { "self","string","font", NULL };
70551f47
RD
7680
7681 self = self;
7682{
7683 _arg2 = &temp;
7684}
7685{
7686 _arg3 = &temp0;
7687}
7688{
7689 _arg4 = &temp1;
7690}
7691{
7692 _arg5 = &temp2;
7693}
107e4716 7694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
70551f47 7695 return NULL;
2d091820
RD
7696 if (_argo0) {
7697 if (_argo0 == Py_None) { _arg0 = NULL; }
7698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea 7699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
70551f47
RD
7700 return NULL;
7701 }
7702 }
7703{
2cd2fac8
RD
7704#if PYTHON_API_VERSION >= 1009
7705 char* tmpPtr; int tmpSize;
7706 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 7707 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
7708 return NULL;
7709 }
7710 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7711 return NULL;
7712 _arg1 = new wxString(tmpPtr, tmpSize);
7713#else
70551f47
RD
7714 if (!PyString_Check(_obj1)) {
7715 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7716 return NULL;
7717 }
2cd2fac8
RD
7718 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7719#endif
70551f47 7720}
2d091820
RD
7721 if (_argo6) {
7722 if (_argo6 == Py_None) { _arg6 = NULL; }
7723 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
21f8d7ea
RD
7724 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7725 return NULL;
7726 }
7727 }
ab9bc19b 7728{
474c48f9 7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7730 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7731
474c48f9 7732 wxPyEndAllowThreads(__tstate);
4dfaa61e 7733 if (PyErr_Occurred()) return NULL;
ab9bc19b 7734} Py_INCREF(Py_None);
70551f47
RD
7735 _resultobj = Py_None;
7736{
7737 PyObject *o;
7738 o = PyInt_FromLong((long) (*_arg2));
7739 _resultobj = t_output_helper(_resultobj, o);
7740}
7741{
7742 PyObject *o;
7743 o = PyInt_FromLong((long) (*_arg3));
7744 _resultobj = t_output_helper(_resultobj, o);
7745}
7746{
7747 PyObject *o;
7748 o = PyInt_FromLong((long) (*_arg4));
7749 _resultobj = t_output_helper(_resultobj, o);
7750}
7751{
7752 PyObject *o;
7753 o = PyInt_FromLong((long) (*_arg5));
7754 _resultobj = t_output_helper(_resultobj, o);
7755}
7756{
7757 if (_obj1)
7758 delete _arg1;
7759}
7760 return _resultobj;
7761}
7762
7763#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
107e4716 7764static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7765 PyObject * _resultobj;
7766 wxColour * _result;
7767 wxDC * _arg0;
2d091820 7768 PyObject * _argo0 = 0;
107e4716 7769 char *_kwnames[] = { "self", NULL };
70551f47
RD
7770 char _ptemp[128];
7771
7772 self = self;
107e4716 7773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
70551f47 7774 return NULL;
2d091820
RD
7775 if (_argo0) {
7776 if (_argo0 == Py_None) { _arg0 = NULL; }
7777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7779 return NULL;
7780 }
7781 }
ab9bc19b 7782{
474c48f9 7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
84a81942 7784 _result = new wxColour (wxDC_GetTextForeground(_arg0));
ab9bc19b 7785
474c48f9 7786 wxPyEndAllowThreads(__tstate);
4dfaa61e 7787 if (PyErr_Occurred()) return NULL;
84a81942
RD
7788} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7789 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7790 return _resultobj;
7791}
7792
e02c03a4
RD
7793#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7794static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7795 PyObject * _resultobj;
7796 wxDC * _arg0;
7797 double * _arg1;
7798 double temp;
7799 double * _arg2;
7800 double temp0;
7801 PyObject * _argo0 = 0;
7802 char *_kwnames[] = { "self", NULL };
7803
7804 self = self;
7805{
7806 _arg1 = &temp;
7807}
7808{
7809 _arg2 = &temp0;
7810}
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7812 return NULL;
7813 if (_argo0) {
7814 if (_argo0 == Py_None) { _arg0 = NULL; }
7815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7817 return NULL;
7818 }
7819 }
7820{
474c48f9 7821 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
7822 wxDC_GetUserScale(_arg0,_arg1,_arg2);
7823
474c48f9 7824 wxPyEndAllowThreads(__tstate);
4dfaa61e 7825 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7826} Py_INCREF(Py_None);
7827 _resultobj = Py_None;
7828{
7829 PyObject *o;
7830 o = PyFloat_FromDouble((double) (*_arg1));
7831 _resultobj = t_output_helper(_resultobj, o);
7832}
7833{
7834 PyObject *o;
7835 o = PyFloat_FromDouble((double) (*_arg2));
7836 _resultobj = t_output_helper(_resultobj, o);
7837}
7838 return _resultobj;
7839}
7840
70551f47 7841#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
107e4716 7842static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7843 PyObject * _resultobj;
7844 long _result;
7845 wxDC * _arg0;
7846 long _arg1;
2d091820 7847 PyObject * _argo0 = 0;
107e4716 7848 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7849
7850 self = self;
107e4716 7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
70551f47 7852 return NULL;
2d091820
RD
7853 if (_argo0) {
7854 if (_argo0 == Py_None) { _arg0 = NULL; }
7855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7857 return NULL;
7858 }
7859 }
ab9bc19b 7860{
474c48f9 7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7862 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
7863
474c48f9 7864 wxPyEndAllowThreads(__tstate);
4dfaa61e 7865 if (PyErr_Occurred()) return NULL;
ab9bc19b 7866} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7867 return _resultobj;
7868}
7869
7870#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
107e4716 7871static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7872 PyObject * _resultobj;
7873 long _result;
7874 wxDC * _arg0;
7875 long _arg1;
2d091820 7876 PyObject * _argo0 = 0;
107e4716 7877 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7878
7879 self = self;
107e4716 7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
70551f47 7881 return NULL;
2d091820
RD
7882 if (_argo0) {
7883 if (_argo0 == Py_None) { _arg0 = NULL; }
7884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7886 return NULL;
7887 }
7888 }
ab9bc19b 7889{
474c48f9 7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7891 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
7892
474c48f9 7893 wxPyEndAllowThreads(__tstate);
4dfaa61e 7894 if (PyErr_Occurred()) return NULL;
ab9bc19b 7895} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7896 return _resultobj;
7897}
7898
7899#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
107e4716 7900static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7901 PyObject * _resultobj;
7902 long _result;
7903 wxDC * _arg0;
7904 long _arg1;
2d091820 7905 PyObject * _argo0 = 0;
107e4716 7906 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7907
7908 self = self;
107e4716 7909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
70551f47 7910 return NULL;
2d091820
RD
7911 if (_argo0) {
7912 if (_argo0 == Py_None) { _arg0 = NULL; }
7913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7915 return NULL;
7916 }
7917 }
ab9bc19b 7918{
474c48f9 7919 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7920 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
7921
474c48f9 7922 wxPyEndAllowThreads(__tstate);
4dfaa61e 7923 if (PyErr_Occurred()) return NULL;
ab9bc19b 7924} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7925 return _resultobj;
7926}
7927
7928#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
107e4716 7929static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7930 PyObject * _resultobj;
7931 long _result;
7932 wxDC * _arg0;
7933 long _arg1;
2d091820 7934 PyObject * _argo0 = 0;
107e4716 7935 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7936
7937 self = self;
107e4716 7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
70551f47 7939 return NULL;
2d091820
RD
7940 if (_argo0) {
7941 if (_argo0 == Py_None) { _arg0 = NULL; }
7942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7944 return NULL;
7945 }
7946 }
ab9bc19b 7947{
474c48f9 7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7949 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
7950
474c48f9 7951 wxPyEndAllowThreads(__tstate);
4dfaa61e 7952 if (PyErr_Occurred()) return NULL;
ab9bc19b 7953} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7954 return _resultobj;
7955}
7956
7957#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
107e4716 7958static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7959 PyObject * _resultobj;
7960 long _result;
7961 wxDC * _arg0;
2d091820 7962 PyObject * _argo0 = 0;
107e4716 7963 char *_kwnames[] = { "self", NULL };
70551f47
RD
7964
7965 self = self;
107e4716 7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
70551f47 7967 return NULL;
2d091820
RD
7968 if (_argo0) {
7969 if (_argo0 == Py_None) { _arg0 = NULL; }
7970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7972 return NULL;
7973 }
7974 }
ab9bc19b 7975{
474c48f9 7976 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
7977 _result = (long )wxDC_MaxX(_arg0);
7978
474c48f9 7979 wxPyEndAllowThreads(__tstate);
4dfaa61e 7980 if (PyErr_Occurred()) return NULL;
ab9bc19b 7981} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7982 return _resultobj;
7983}
7984
7985#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
107e4716 7986static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7987 PyObject * _resultobj;
7988 long _result;
7989 wxDC * _arg0;
2d091820 7990 PyObject * _argo0 = 0;
107e4716 7991 char *_kwnames[] = { "self", NULL };
70551f47
RD
7992
7993 self = self;
107e4716 7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
70551f47 7995 return NULL;
2d091820
RD
7996 if (_argo0) {
7997 if (_argo0 == Py_None) { _arg0 = NULL; }
7998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8000 return NULL;
8001 }
8002 }
ab9bc19b 8003{
474c48f9 8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8005 _result = (long )wxDC_MaxY(_arg0);
8006
474c48f9 8007 wxPyEndAllowThreads(__tstate);
4dfaa61e 8008 if (PyErr_Occurred()) return NULL;
ab9bc19b 8009} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8010 return _resultobj;
8011}
8012
8013#define wxDC_MinX(_swigobj) (_swigobj->MinX())
107e4716 8014static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8015 PyObject * _resultobj;
8016 long _result;
8017 wxDC * _arg0;
2d091820 8018 PyObject * _argo0 = 0;
107e4716 8019 char *_kwnames[] = { "self", NULL };
70551f47
RD
8020
8021 self = self;
107e4716 8022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
70551f47 8023 return NULL;
2d091820
RD
8024 if (_argo0) {
8025 if (_argo0 == Py_None) { _arg0 = NULL; }
8026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8028 return NULL;
8029 }
8030 }
ab9bc19b 8031{
474c48f9 8032 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8033 _result = (long )wxDC_MinX(_arg0);
8034
474c48f9 8035 wxPyEndAllowThreads(__tstate);
4dfaa61e 8036 if (PyErr_Occurred()) return NULL;
ab9bc19b 8037} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8038 return _resultobj;
8039}
8040
8041#define wxDC_MinY(_swigobj) (_swigobj->MinY())
107e4716 8042static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8043 PyObject * _resultobj;
8044 long _result;
8045 wxDC * _arg0;
2d091820 8046 PyObject * _argo0 = 0;
107e4716 8047 char *_kwnames[] = { "self", NULL };
70551f47
RD
8048
8049 self = self;
107e4716 8050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
70551f47 8051 return NULL;
2d091820
RD
8052 if (_argo0) {
8053 if (_argo0 == Py_None) { _arg0 = NULL; }
8054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8056 return NULL;
8057 }
8058 }
ab9bc19b 8059{
474c48f9 8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8061 _result = (long )wxDC_MinY(_arg0);
8062
474c48f9 8063 wxPyEndAllowThreads(__tstate);
4dfaa61e 8064 if (PyErr_Occurred()) return NULL;
ab9bc19b 8065} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8066 return _resultobj;
8067}
8068
8069#define wxDC_Ok(_swigobj) (_swigobj->Ok())
107e4716 8070static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8071 PyObject * _resultobj;
8072 bool _result;
8073 wxDC * _arg0;
2d091820 8074 PyObject * _argo0 = 0;
107e4716 8075 char *_kwnames[] = { "self", NULL };
70551f47
RD
8076
8077 self = self;
107e4716 8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
70551f47 8079 return NULL;
2d091820
RD
8080 if (_argo0) {
8081 if (_argo0 == Py_None) { _arg0 = NULL; }
8082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8084 return NULL;
8085 }
8086 }
ab9bc19b 8087{
474c48f9 8088 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8089 _result = (bool )wxDC_Ok(_arg0);
8090
474c48f9 8091 wxPyEndAllowThreads(__tstate);
4dfaa61e 8092 if (PyErr_Occurred()) return NULL;
ab9bc19b 8093} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8094 return _resultobj;
8095}
8096
8097#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
107e4716 8098static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8099 PyObject * _resultobj;
8100 wxDC * _arg0;
8101 long _arg1;
8102 long _arg2;
2d091820 8103 PyObject * _argo0 = 0;
107e4716 8104 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
8105
8106 self = self;
107e4716 8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8108 return NULL;
2d091820
RD
8109 if (_argo0) {
8110 if (_argo0 == Py_None) { _arg0 = NULL; }
8111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8113 return NULL;
8114 }
8115 }
ab9bc19b 8116{
474c48f9 8117 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8118 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8119
474c48f9 8120 wxPyEndAllowThreads(__tstate);
4dfaa61e 8121 if (PyErr_Occurred()) return NULL;
ab9bc19b 8122} Py_INCREF(Py_None);
70551f47
RD
8123 _resultobj = Py_None;
8124 return _resultobj;
8125}
8126
8127#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
107e4716 8128static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8129 PyObject * _resultobj;
8130 wxDC * _arg0;
8131 wxBrush * _arg1;
2d091820
RD
8132 PyObject * _argo0 = 0;
8133 PyObject * _argo1 = 0;
107e4716 8134 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8135
8136 self = self;
107e4716 8137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
70551f47 8138 return NULL;
2d091820
RD
8139 if (_argo0) {
8140 if (_argo0 == Py_None) { _arg0 = NULL; }
8141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8143 return NULL;
8144 }
8145 }
2d091820
RD
8146 if (_argo1) {
8147 if (_argo1 == Py_None) { _arg1 = NULL; }
8148 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8149 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8150 return NULL;
8151 }
8152 }
ab9bc19b 8153{
474c48f9 8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8155 wxDC_SetBackground(_arg0,*_arg1);
8156
474c48f9 8157 wxPyEndAllowThreads(__tstate);
4dfaa61e 8158 if (PyErr_Occurred()) return NULL;
ab9bc19b 8159} Py_INCREF(Py_None);
70551f47
RD
8160 _resultobj = Py_None;
8161 return _resultobj;
8162}
8163
8164#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
107e4716 8165static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8166 PyObject * _resultobj;
8167 wxDC * _arg0;
8168 int _arg1;
2d091820 8169 PyObject * _argo0 = 0;
107e4716 8170 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8171
8172 self = self;
107e4716 8173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
70551f47 8174 return NULL;
2d091820
RD
8175 if (_argo0) {
8176 if (_argo0 == Py_None) { _arg0 = NULL; }
8177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8179 return NULL;
8180 }
8181 }
ab9bc19b 8182{
474c48f9 8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8184 wxDC_SetBackgroundMode(_arg0,_arg1);
8185
474c48f9 8186 wxPyEndAllowThreads(__tstate);
4dfaa61e 8187 if (PyErr_Occurred()) return NULL;
ab9bc19b 8188} Py_INCREF(Py_None);
70551f47
RD
8189 _resultobj = Py_None;
8190 return _resultobj;
8191}
8192
8193#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8194static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8195 PyObject * _resultobj;
8196 wxDC * _arg0;
8197 long _arg1;
8198 long _arg2;
8199 long _arg3;
8200 long _arg4;
2d091820 8201 PyObject * _argo0 = 0;
107e4716 8202 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
8203
8204 self = self;
107e4716 8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 8206 return NULL;
2d091820
RD
8207 if (_argo0) {
8208 if (_argo0 == Py_None) { _arg0 = NULL; }
8209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8211 return NULL;
8212 }
8213 }
ab9bc19b 8214{
474c48f9 8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8216 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8217
474c48f9 8218 wxPyEndAllowThreads(__tstate);
4dfaa61e 8219 if (PyErr_Occurred()) return NULL;
ab9bc19b 8220} Py_INCREF(Py_None);
70551f47
RD
8221 _resultobj = Py_None;
8222 return _resultobj;
8223}
8224
059a841c
RD
8225#define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8226static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8227 PyObject * _resultobj;
8228 wxDC * _arg0;
8229 wxRegion * _arg1;
8230 PyObject * _argo0 = 0;
8231 PyObject * _argo1 = 0;
8232 char *_kwnames[] = { "self","region", NULL };
8233
8234 self = self;
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8236 return NULL;
8237 if (_argo0) {
8238 if (_argo0 == Py_None) { _arg0 = NULL; }
8239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8241 return NULL;
8242 }
8243 }
8244 if (_argo1) {
8245 if (_argo1 == Py_None) { _arg1 = NULL; }
8246 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8247 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8248 return NULL;
8249 }
8250 }
8251{
474c48f9 8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
059a841c
RD
8253 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8254
474c48f9 8255 wxPyEndAllowThreads(__tstate);
059a841c
RD
8256 if (PyErr_Occurred()) return NULL;
8257} Py_INCREF(Py_None);
8258 _resultobj = Py_None;
8259 return _resultobj;
8260}
8261
70551f47 8262#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
107e4716 8263static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8264 PyObject * _resultobj;
8265 wxDC * _arg0;
8266 wxPalette * _arg1;
2d091820
RD
8267 PyObject * _argo0 = 0;
8268 PyObject * _argo1 = 0;
107e4716 8269 char *_kwnames[] = { "self","colourMap", NULL };
70551f47
RD
8270
8271 self = self;
107e4716 8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
70551f47 8273 return NULL;
2d091820
RD
8274 if (_argo0) {
8275 if (_argo0 == Py_None) { _arg0 = NULL; }
8276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8278 return NULL;
8279 }
8280 }
2d091820
RD
8281 if (_argo1) {
8282 if (_argo1 == Py_None) { _arg1 = NULL; }
8283 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
70551f47
RD
8284 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8285 return NULL;
8286 }
8287 }
ab9bc19b 8288{
474c48f9 8289 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8290 wxDC_SetPalette(_arg0,*_arg1);
8291
474c48f9 8292 wxPyEndAllowThreads(__tstate);
4dfaa61e 8293 if (PyErr_Occurred()) return NULL;
ab9bc19b 8294} Py_INCREF(Py_None);
70551f47
RD
8295 _resultobj = Py_None;
8296 return _resultobj;
8297}
8298
8299#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
107e4716 8300static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8301 PyObject * _resultobj;
8302 wxDC * _arg0;
8303 wxBrush * _arg1;
2d091820
RD
8304 PyObject * _argo0 = 0;
8305 PyObject * _argo1 = 0;
107e4716 8306 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8307
8308 self = self;
107e4716 8309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
70551f47 8310 return NULL;
2d091820
RD
8311 if (_argo0) {
8312 if (_argo0 == Py_None) { _arg0 = NULL; }
8313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8315 return NULL;
8316 }
8317 }
2d091820
RD
8318 if (_argo1) {
8319 if (_argo1 == Py_None) { _arg1 = NULL; }
8320 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8321 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8322 return NULL;
8323 }
8324 }
ab9bc19b 8325{
474c48f9 8326 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8327 wxDC_SetBrush(_arg0,*_arg1);
8328
474c48f9 8329 wxPyEndAllowThreads(__tstate);
4dfaa61e 8330 if (PyErr_Occurred()) return NULL;
ab9bc19b 8331} Py_INCREF(Py_None);
70551f47
RD
8332 _resultobj = Py_None;
8333 return _resultobj;
8334}
8335
8336#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
107e4716 8337static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8338 PyObject * _resultobj;
8339 wxDC * _arg0;
8340 wxFont * _arg1;
2d091820
RD
8341 PyObject * _argo0 = 0;
8342 PyObject * _argo1 = 0;
107e4716 8343 char *_kwnames[] = { "self","font", NULL };
70551f47
RD
8344
8345 self = self;
107e4716 8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
70551f47 8347 return NULL;
2d091820
RD
8348 if (_argo0) {
8349 if (_argo0 == Py_None) { _arg0 = NULL; }
8350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8352 return NULL;
8353 }
8354 }
2d091820
RD
8355 if (_argo1) {
8356 if (_argo1 == Py_None) { _arg1 = NULL; }
8357 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
70551f47
RD
8358 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8359 return NULL;
8360 }
8361 }
ab9bc19b 8362{
474c48f9 8363 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8364 wxDC_SetFont(_arg0,*_arg1);
8365
474c48f9 8366 wxPyEndAllowThreads(__tstate);
4dfaa61e 8367 if (PyErr_Occurred()) return NULL;
ab9bc19b 8368} Py_INCREF(Py_None);
70551f47
RD
8369 _resultobj = Py_None;
8370 return _resultobj;
8371}
8372
8373#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
107e4716 8374static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8375 PyObject * _resultobj;
8376 wxDC * _arg0;
8377 int _arg1;
2d091820 8378 PyObject * _argo0 = 0;
107e4716 8379 char *_kwnames[] = { "self","function", NULL };
70551f47
RD
8380
8381 self = self;
107e4716 8382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
70551f47 8383 return NULL;
2d091820
RD
8384 if (_argo0) {
8385 if (_argo0 == Py_None) { _arg0 = NULL; }
8386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8388 return NULL;
8389 }
8390 }
ab9bc19b 8391{
474c48f9 8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8393 wxDC_SetLogicalFunction(_arg0,_arg1);
8394
474c48f9 8395 wxPyEndAllowThreads(__tstate);
4dfaa61e 8396 if (PyErr_Occurred()) return NULL;
ab9bc19b 8397} Py_INCREF(Py_None);
70551f47
RD
8398 _resultobj = Py_None;
8399 return _resultobj;
8400}
8401
e02c03a4
RD
8402#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8403static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8404 PyObject * _resultobj;
8405 wxDC * _arg0;
8406 double _arg1;
8407 double _arg2;
8408 PyObject * _argo0 = 0;
8409 char *_kwnames[] = { "self","x","y", NULL };
8410
8411 self = self;
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8413 return NULL;
8414 if (_argo0) {
8415 if (_argo0 == Py_None) { _arg0 = NULL; }
8416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8418 return NULL;
8419 }
8420 }
8421{
474c48f9 8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8423 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8424
474c48f9 8425 wxPyEndAllowThreads(__tstate);
4dfaa61e 8426 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8427} Py_INCREF(Py_None);
8428 _resultobj = Py_None;
8429 return _resultobj;
8430}
8431
70551f47 8432#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
107e4716 8433static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8434 PyObject * _resultobj;
8435 wxDC * _arg0;
8436 int _arg1;
2d091820 8437 PyObject * _argo0 = 0;
107e4716 8438 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8439
8440 self = self;
107e4716 8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
70551f47 8442 return NULL;
2d091820
RD
8443 if (_argo0) {
8444 if (_argo0 == Py_None) { _arg0 = NULL; }
8445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8447 return NULL;
8448 }
8449 }
ab9bc19b 8450{
474c48f9 8451 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8452 wxDC_SetMapMode(_arg0,_arg1);
8453
474c48f9 8454 wxPyEndAllowThreads(__tstate);
4dfaa61e 8455 if (PyErr_Occurred()) return NULL;
ab9bc19b 8456} Py_INCREF(Py_None);
70551f47
RD
8457 _resultobj = Py_None;
8458 return _resultobj;
8459}
8460
8461#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
107e4716 8462static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8463 PyObject * _resultobj;
8464 wxDC * _arg0;
8465 bool _arg1;
2d091820 8466 PyObject * _argo0 = 0;
70551f47 8467 int tempbool1;
107e4716 8468 char *_kwnames[] = { "self","optimize", NULL };
70551f47
RD
8469
8470 self = self;
107e4716 8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
70551f47 8472 return NULL;
2d091820
RD
8473 if (_argo0) {
8474 if (_argo0 == Py_None) { _arg0 = NULL; }
8475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8477 return NULL;
8478 }
8479 }
8480 _arg1 = (bool ) tempbool1;
ab9bc19b 8481{
474c48f9 8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8483 wxDC_SetOptimization(_arg0,_arg1);
8484
474c48f9 8485 wxPyEndAllowThreads(__tstate);
4dfaa61e 8486 if (PyErr_Occurred()) return NULL;
ab9bc19b 8487} Py_INCREF(Py_None);
70551f47
RD
8488 _resultobj = Py_None;
8489 return _resultobj;
8490}
8491
8492#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
107e4716 8493static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8494 PyObject * _resultobj;
8495 wxDC * _arg0;
8496 wxPen * _arg1;
2d091820
RD
8497 PyObject * _argo0 = 0;
8498 PyObject * _argo1 = 0;
107e4716 8499 char *_kwnames[] = { "self","pen", NULL };
70551f47
RD
8500
8501 self = self;
107e4716 8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
70551f47 8503 return NULL;
2d091820
RD
8504 if (_argo0) {
8505 if (_argo0 == Py_None) { _arg0 = NULL; }
8506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8508 return NULL;
8509 }
8510 }
2d091820
RD
8511 if (_argo1) {
8512 if (_argo1 == Py_None) { _arg1 = NULL; }
8513 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
70551f47
RD
8514 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8515 return NULL;
8516 }
8517 }
ab9bc19b 8518{
474c48f9 8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8520 wxDC_SetPen(_arg0,*_arg1);
8521
474c48f9 8522 wxPyEndAllowThreads(__tstate);
4dfaa61e 8523 if (PyErr_Occurred()) return NULL;
ab9bc19b 8524} Py_INCREF(Py_None);
70551f47
RD
8525 _resultobj = Py_None;
8526 return _resultobj;
8527}
8528
8529#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
107e4716 8530static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8531 PyObject * _resultobj;
8532 wxDC * _arg0;
8533 wxColour * _arg1;
2d091820 8534 PyObject * _argo0 = 0;
f6bcfd97
BP
8535 wxColour temp;
8536 PyObject * _obj1 = 0;
107e4716 8537 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8538
8539 self = self;
f6bcfd97 8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
70551f47 8541 return NULL;
2d091820
RD
8542 if (_argo0) {
8543 if (_argo0 == Py_None) { _arg0 = NULL; }
8544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8546 return NULL;
8547 }
8548 }
f6bcfd97
BP
8549{
8550 _arg1 = &temp;
8551 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8552 return NULL;
f6bcfd97 8553}
ab9bc19b 8554{
474c48f9 8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8556 wxDC_SetTextBackground(_arg0,*_arg1);
8557
474c48f9 8558 wxPyEndAllowThreads(__tstate);
4dfaa61e 8559 if (PyErr_Occurred()) return NULL;
ab9bc19b 8560} Py_INCREF(Py_None);
70551f47
RD
8561 _resultobj = Py_None;
8562 return _resultobj;
8563}
8564
8565#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
107e4716 8566static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8567 PyObject * _resultobj;
8568 wxDC * _arg0;
8569 wxColour * _arg1;
2d091820 8570 PyObject * _argo0 = 0;
f6bcfd97
BP
8571 wxColour temp;
8572 PyObject * _obj1 = 0;
107e4716 8573 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8574
8575 self = self;
f6bcfd97 8576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
70551f47 8577 return NULL;
2d091820
RD
8578 if (_argo0) {
8579 if (_argo0 == Py_None) { _arg0 = NULL; }
8580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8582 return NULL;
8583 }
8584 }
f6bcfd97
BP
8585{
8586 _arg1 = &temp;
8587 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8588 return NULL;
f6bcfd97 8589}
ab9bc19b 8590{
474c48f9 8591 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8592 wxDC_SetTextForeground(_arg0,*_arg1);
8593
474c48f9 8594 wxPyEndAllowThreads(__tstate);
4dfaa61e 8595 if (PyErr_Occurred()) return NULL;
ab9bc19b 8596} Py_INCREF(Py_None);
70551f47
RD
8597 _resultobj = Py_None;
8598 return _resultobj;
8599}
8600
8601#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
107e4716 8602static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8603 PyObject * _resultobj;
8604 wxDC * _arg0;
8605 double _arg1;
8606 double _arg2;
2d091820 8607 PyObject * _argo0 = 0;
107e4716 8608 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
70551f47
RD
8609
8610 self = self;
107e4716 8611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8612 return NULL;
2d091820
RD
8613 if (_argo0) {
8614 if (_argo0 == Py_None) { _arg0 = NULL; }
8615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8617 return NULL;
8618 }
8619 }
ab9bc19b 8620{
474c48f9 8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8622 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8623
474c48f9 8624 wxPyEndAllowThreads(__tstate);
4dfaa61e 8625 if (PyErr_Occurred()) return NULL;
ab9bc19b 8626} Py_INCREF(Py_None);
70551f47
RD
8627 _resultobj = Py_None;
8628 return _resultobj;
8629}
8630
8631#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
107e4716 8632static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8633 PyObject * _resultobj;
8634 bool _result;
8635 wxDC * _arg0;
8636 wxString * _arg1;
2d091820 8637 PyObject * _argo0 = 0;
70551f47 8638 PyObject * _obj1 = 0;
107e4716 8639 char *_kwnames[] = { "self","message", NULL };
70551f47
RD
8640
8641 self = self;
107e4716 8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
70551f47 8643 return NULL;
2d091820
RD
8644 if (_argo0) {
8645 if (_argo0 == Py_None) { _arg0 = NULL; }
8646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8648 return NULL;
8649 }
8650 }
8651{
2cd2fac8
RD
8652#if PYTHON_API_VERSION >= 1009
8653 char* tmpPtr; int tmpSize;
8654 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 8655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
8656 return NULL;
8657 }
8658 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8659 return NULL;
8660 _arg1 = new wxString(tmpPtr, tmpSize);
8661#else
70551f47
RD
8662 if (!PyString_Check(_obj1)) {
8663 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8664 return NULL;
8665 }
2cd2fac8
RD
8666 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8667#endif
70551f47 8668}
ab9bc19b 8669{
474c48f9 8670 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8671 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8672
474c48f9 8673 wxPyEndAllowThreads(__tstate);
4dfaa61e 8674 if (PyErr_Occurred()) return NULL;
ab9bc19b 8675} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8676{
8677 if (_obj1)
8678 delete _arg1;
8679}
8680 return _resultobj;
8681}
8682
8683#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
107e4716 8684static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8685 PyObject * _resultobj;
8686 wxDC * _arg0;
2d091820 8687 PyObject * _argo0 = 0;
107e4716 8688 char *_kwnames[] = { "self", NULL };
70551f47
RD
8689
8690 self = self;
107e4716 8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
70551f47 8692 return NULL;
2d091820
RD
8693 if (_argo0) {
8694 if (_argo0 == Py_None) { _arg0 = NULL; }
8695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8697 return NULL;
8698 }
8699 }
ab9bc19b 8700{
474c48f9 8701 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8702 wxDC_StartPage(_arg0);
8703
474c48f9 8704 wxPyEndAllowThreads(__tstate);
4dfaa61e 8705 if (PyErr_Occurred()) return NULL;
ab9bc19b 8706} Py_INCREF(Py_None);
70551f47
RD
8707 _resultobj = Py_None;
8708 return _resultobj;
8709}
8710
107e4716
RD
8711#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8712static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8713 PyObject * _resultobj;
8714 wxDC * _arg0;
8715 wxBitmap * _arg1;
8716 long _arg2;
8717 long _arg3;
107e4716 8718 int _arg4 = (int ) FALSE;
2d091820
RD
8719 PyObject * _argo0 = 0;
8720 PyObject * _argo1 = 0;
107e4716 8721 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
70551f47
RD
8722
8723 self = self;
107e4716 8724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
70551f47 8725 return NULL;
2d091820
RD
8726 if (_argo0) {
8727 if (_argo0 == Py_None) { _arg0 = NULL; }
8728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8730 return NULL;
8731 }
8732 }
2d091820
RD
8733 if (_argo1) {
8734 if (_argo1 == Py_None) { _arg1 = NULL; }
8735 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
8736 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8737 return NULL;
8738 }
8739 }
ab9bc19b 8740{
474c48f9 8741 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
8742 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
8743
474c48f9 8744 wxPyEndAllowThreads(__tstate);
4dfaa61e 8745 if (PyErr_Occurred()) return NULL;
ab9bc19b 8746} Py_INCREF(Py_None);
70551f47
RD
8747 _resultobj = Py_None;
8748 return _resultobj;
8749}
8750
e02c03a4
RD
8751#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8752static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8753 PyObject * _resultobj;
8754 bool _result;
8755 wxDC * _arg0;
8756 PyObject * _argo0 = 0;
8757 char *_kwnames[] = { "self", NULL };
8758
8759 self = self;
8760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8761 return NULL;
8762 if (_argo0) {
8763 if (_argo0 == Py_None) { _arg0 = NULL; }
8764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8766 return NULL;
8767 }
8768 }
8769{
474c48f9 8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8771 _result = (bool )wxDC_CanDrawBitmap(_arg0);
8772
474c48f9 8773 wxPyEndAllowThreads(__tstate);
4dfaa61e 8774 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8775} _resultobj = Py_BuildValue("i",_result);
8776 return _resultobj;
8777}
8778
8779#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8780static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8781 PyObject * _resultobj;
8782 bool _result;
8783 wxDC * _arg0;
8784 PyObject * _argo0 = 0;
8785 char *_kwnames[] = { "self", NULL };
8786
8787 self = self;
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8789 return NULL;
8790 if (_argo0) {
8791 if (_argo0 == Py_None) { _arg0 = NULL; }
8792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8794 return NULL;
8795 }
8796 }
8797{
474c48f9 8798 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8799 _result = (bool )wxDC_CanGetTextExtent(_arg0);
8800
474c48f9 8801 wxPyEndAllowThreads(__tstate);
4dfaa61e 8802 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8803} _resultobj = Py_BuildValue("i",_result);
8804 return _resultobj;
8805}
8806
8807#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8808static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject * _resultobj;
8810 int _result;
8811 wxDC * _arg0;
8812 PyObject * _argo0 = 0;
8813 char *_kwnames[] = { "self", NULL };
8814
8815 self = self;
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8817 return NULL;
8818 if (_argo0) {
8819 if (_argo0 == Py_None) { _arg0 = NULL; }
8820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8822 return NULL;
8823 }
8824 }
8825{
474c48f9 8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8827 _result = (int )wxDC_GetDepth(_arg0);
8828
474c48f9 8829 wxPyEndAllowThreads(__tstate);
4dfaa61e 8830 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8831} _resultobj = Py_BuildValue("i",_result);
8832 return _resultobj;
8833}
8834
8835#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8836static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8837 PyObject * _resultobj;
8838 wxSize * _result;
8839 wxDC * _arg0;
8840 PyObject * _argo0 = 0;
8841 char *_kwnames[] = { "self", NULL };
8842 char _ptemp[128];
8843
8844 self = self;
8845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8846 return NULL;
8847 if (_argo0) {
8848 if (_argo0 == Py_None) { _arg0 = NULL; }
8849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8851 return NULL;
8852 }
8853 }
8854{
474c48f9 8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8856 _result = new wxSize (wxDC_GetPPI(_arg0));
8857
474c48f9 8858 wxPyEndAllowThreads(__tstate);
4dfaa61e 8859 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8860} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8861 _resultobj = Py_BuildValue("s",_ptemp);
8862 return _resultobj;
8863}
8864
8865#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8866static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8867 PyObject * _resultobj;
8868 wxDC * _arg0;
8869 int * _arg1;
8870 int temp;
8871 int * _arg2;
8872 int temp0;
8873 PyObject * _argo0 = 0;
8874 char *_kwnames[] = { "self", NULL };
8875
8876 self = self;
8877{
8878 _arg1 = &temp;
8879}
8880{
8881 _arg2 = &temp0;
8882}
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8884 return NULL;
8885 if (_argo0) {
8886 if (_argo0 == Py_None) { _arg0 = NULL; }
8887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8889 return NULL;
8890 }
8891 }
8892{
474c48f9 8893 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8894 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
8895
474c48f9 8896 wxPyEndAllowThreads(__tstate);
4dfaa61e 8897 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8898} Py_INCREF(Py_None);
8899 _resultobj = Py_None;
8900{
8901 PyObject *o;
8902 o = PyInt_FromLong((long) (*_arg1));
8903 _resultobj = t_output_helper(_resultobj, o);
8904}
8905{
8906 PyObject *o;
8907 o = PyInt_FromLong((long) (*_arg2));
8908 _resultobj = t_output_helper(_resultobj, o);
8909}
8910 return _resultobj;
8911}
8912
8913#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8914static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8915 PyObject * _resultobj;
8916 wxDC * _arg0;
8917 int _arg1;
8918 int _arg2;
8919 PyObject * _argo0 = 0;
8920 char *_kwnames[] = { "self","x","y", NULL };
8921
8922 self = self;
8923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8924 return NULL;
8925 if (_argo0) {
8926 if (_argo0 == Py_None) { _arg0 = NULL; }
8927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8929 return NULL;
8930 }
8931 }
8932{
474c48f9 8933 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8934 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
8935
474c48f9 8936 wxPyEndAllowThreads(__tstate);
4dfaa61e 8937 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8938} Py_INCREF(Py_None);
8939 _resultobj = Py_None;
8940 return _resultobj;
8941}
8942
8943#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8944static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8945 PyObject * _resultobj;
8946 wxDC * _arg0;
8947 int * _arg1;
8948 int temp;
8949 int * _arg2;
8950 int temp0;
8951 PyObject * _argo0 = 0;
8952 char *_kwnames[] = { "self", NULL };
8953
8954 self = self;
8955{
8956 _arg1 = &temp;
8957}
8958{
8959 _arg2 = &temp0;
8960}
8961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8962 return NULL;
8963 if (_argo0) {
8964 if (_argo0 == Py_None) { _arg0 = NULL; }
8965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8967 return NULL;
8968 }
8969 }
8970{
474c48f9 8971 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
8972 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
8973
474c48f9 8974 wxPyEndAllowThreads(__tstate);
4dfaa61e 8975 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8976} Py_INCREF(Py_None);
8977 _resultobj = Py_None;
8978{
8979 PyObject *o;
8980 o = PyInt_FromLong((long) (*_arg1));
8981 _resultobj = t_output_helper(_resultobj, o);
8982}
8983{
8984 PyObject *o;
8985 o = PyInt_FromLong((long) (*_arg2));
8986 _resultobj = t_output_helper(_resultobj, o);
8987}
8988 return _resultobj;
8989}
8990
8991#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8992static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8993 PyObject * _resultobj;
8994 wxDC * _arg0;
8995 bool _arg1;
8996 bool _arg2;
8997 PyObject * _argo0 = 0;
8998 int tempbool1;
8999 int tempbool2;
9000 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9001
9002 self = self;
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9004 return NULL;
9005 if (_argo0) {
9006 if (_argo0 == Py_None) { _arg0 = NULL; }
9007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9009 return NULL;
9010 }
9011 }
9012 _arg1 = (bool ) tempbool1;
9013 _arg2 = (bool ) tempbool2;
9014{
474c48f9 9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
e02c03a4
RD
9016 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9017
474c48f9 9018 wxPyEndAllowThreads(__tstate);
4dfaa61e 9019 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
9020} Py_INCREF(Py_None);
9021 _resultobj = Py_None;
9022 return _resultobj;
9023}
9024
f6bcfd97
BP
9025#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9026static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject * _resultobj;
9028 wxDC * _arg0;
9029 int _arg1;
9030 int _arg2;
9031 PyObject * _argo0 = 0;
9032 char *_kwnames[] = { "self","x","y", NULL };
9033
9034 self = self;
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9036 return NULL;
9037 if (_argo0) {
9038 if (_argo0 == Py_None) { _arg0 = NULL; }
9039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9041 return NULL;
9042 }
9043 }
9044{
474c48f9 9045 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
9046 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9047
474c48f9 9048 wxPyEndAllowThreads(__tstate);
4dfaa61e 9049 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9050} Py_INCREF(Py_None);
9051 _resultobj = Py_None;
9052 return _resultobj;
9053}
9054
9055#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9056static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject * _resultobj;
9058 wxDC * _arg0;
9059 PyObject * _argo0 = 0;
9060 char *_kwnames[] = { "self", NULL };
9061
9062 self = self;
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9064 return NULL;
9065 if (_argo0) {
9066 if (_argo0 == Py_None) { _arg0 = NULL; }
9067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9069 return NULL;
9070 }
9071 }
9072{
474c48f9 9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
9074 wxDC_ResetBoundingBox(_arg0);
9075
474c48f9 9076 wxPyEndAllowThreads(__tstate);
4dfaa61e 9077 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9078} Py_INCREF(Py_None);
9079 _resultobj = Py_None;
9080 return _resultobj;
9081}
9082
3bcd5e1c
RD
9083static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9084 PyObject * _resultobj;
9085 wxDC * _arg0;
9086 int * _arg1;
9087 int temp;
9088 int * _arg2;
9089 int temp0;
9090 int * _arg3;
9091 int temp1;
9092 int * _arg4;
9093 int temp2;
9094 PyObject * _argo0 = 0;
9095 char *_kwnames[] = { "self", NULL };
9096
9097 self = self;
9098{
9099 _arg1 = &temp;
9100}
9101{
9102 _arg2 = &temp0;
9103}
9104{
9105 _arg3 = &temp1;
9106}
9107{
9108 _arg4 = &temp2;
9109}
9110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9111 return NULL;
9112 if (_argo0) {
9113 if (_argo0 == Py_None) { _arg0 = NULL; }
9114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9116 return NULL;
9117 }
9118 }
9119{
474c48f9 9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
3bcd5e1c
RD
9121 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9122
474c48f9 9123 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9124 if (PyErr_Occurred()) return NULL;
9125} Py_INCREF(Py_None);
9126 _resultobj = Py_None;
9127{
9128 PyObject *o;
9129 o = PyInt_FromLong((long) (*_arg1));
9130 _resultobj = t_output_helper(_resultobj, o);
9131}
9132{
9133 PyObject *o;
9134 o = PyInt_FromLong((long) (*_arg2));
9135 _resultobj = t_output_helper(_resultobj, o);
9136}
9137{
9138 PyObject *o;
9139 o = PyInt_FromLong((long) (*_arg3));
9140 _resultobj = t_output_helper(_resultobj, o);
9141}
9142{
9143 PyObject *o;
9144 o = PyInt_FromLong((long) (*_arg4));
9145 _resultobj = t_output_helper(_resultobj, o);
9146}
9147 return _resultobj;
9148}
9149
9150static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9151 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9152 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9153 int numObjs = 0;
9154 int numPens = 0;
9155 wxPen* pen;
9156 PyObject* obj;
9157 int x1, y1;
9158 int i = 0;
9159
9160 if (!PySequence_Check(pyPoints)) {
9161 goto err0;
9162 }
9163 if (!PySequence_Check(pyPens)) {
9164 goto err1;
9165 }
9166 numObjs = PySequence_Length(pyPoints);
9167 numPens = PySequence_Length(pyPens);
9168
9169 for (i = 0; i < numObjs; i++) {
9170 // Use a new pen?
9171 if (i < numPens) {
9172 if (isFastPens) {
9173 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9174 }
9175 else {
9176 obj = PySequence_GetItem(pyPens, i);
9177 }
9178 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9179 if (!isFastPens)
9180 Py_DECREF(obj);
9181 goto err1;
9182 }
9183
9184 self->SetPen(*pen);
9185 if (!isFastPens)
9186 Py_DECREF(obj);
9187 }
9188
9189 // Get the point coordinants
9190 if (isFastSeq) {
9191 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9192 }
9193 else {
9194 obj = PySequence_GetItem(pyPoints, i);
9195 }
9196 if (! _2int_seq_helper(obj, &x1, &y1)) {
9197 if (!isFastPens)
9198 Py_DECREF(obj);
9199 goto err0;
9200 }
9201
9202 // Now draw the point
9203 self->DrawPoint(x1, y1);
9204
9205 if (!isFastSeq)
9206 Py_DECREF(obj);
9207 }
9208
9209 Py_INCREF(Py_None);
9210 return Py_None;
9211
9212 err1:
9213 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9214 return NULL;
9215 err0:
9216 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9217 return NULL;
9218 }
9219static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9220 PyObject * _resultobj;
9221 PyObject * _result;
9222 wxDC * _arg0;
9223 PyObject * _arg1;
9224 PyObject * _arg2;
9225 PyObject * _argo0 = 0;
9226 PyObject * _obj1 = 0;
9227 PyObject * _obj2 = 0;
9228 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9229
9230 self = self;
9231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9232 return NULL;
9233 if (_argo0) {
9234 if (_argo0 == Py_None) { _arg0 = NULL; }
9235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9237 return NULL;
9238 }
9239 }
9240{
9241 _arg1 = _obj1;
9242}
9243{
9244 _arg2 = _obj2;
9245}
9246{
474c48f9 9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
3bcd5e1c
RD
9248 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9249
474c48f9 9250 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9251 if (PyErr_Occurred()) return NULL;
9252}{
9253 _resultobj = _result;
9254}
9255 return _resultobj;
9256}
9257
9258static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9259 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9260 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9261 int numObjs = 0;
9262 int numPens = 0;
9263 wxPen* pen;
9264 PyObject* obj;
9265 int x1, y1, x2, y2;
9266 int i = 0;
9267
9268 if (!PySequence_Check(pyLines)) {
9269 goto err0;
9270 }
9271 if (!PySequence_Check(pyPens)) {
9272 goto err1;
9273 }
9274 numObjs = PySequence_Length(pyLines);
9275 numPens = PySequence_Length(pyPens);
9276
9277 for (i = 0; i < numObjs; i++) {
9278 // Use a new pen?
9279 if (i < numPens) {
9280 if (isFastPens) {
9281 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9282 }
9283 else {
9284 obj = PySequence_GetItem(pyPens, i);
9285 }
9286 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9287 if (!isFastPens)
9288 Py_DECREF(obj);
9289 goto err1;
9290 }
9291
9292 self->SetPen(*pen);
9293 if (!isFastPens)
9294 Py_DECREF(obj);
9295 }
9296
9297 // Get the line coordinants
9298 if (isFastSeq) {
9299 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9300 }
9301 else {
9302 obj = PySequence_GetItem(pyLines, i);
9303 }
9304 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9305 if (!isFastPens)
9306 Py_DECREF(obj);
9307 goto err0;
9308 }
9309
9310 // Now draw the line
9311 self->DrawLine(x1, y1, x2, y2);
9312
9313 if (!isFastSeq)
9314 Py_DECREF(obj);
9315 }
9316
9317 Py_INCREF(Py_None);
9318 return Py_None;
9319
9320 err1:
9321 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9322 return NULL;
9323 err0:
9324 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9325 return NULL;
9326 }
9327static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject * _resultobj;
9329 PyObject * _result;
9330 wxDC * _arg0;
9331 PyObject * _arg1;
9332 PyObject * _arg2;
9333 PyObject * _argo0 = 0;
9334 PyObject * _obj1 = 0;
9335 PyObject * _obj2 = 0;
9336 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9337
9338 self = self;
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9340 return NULL;
9341 if (_argo0) {
9342 if (_argo0 == Py_None) { _arg0 = NULL; }
9343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9345 return NULL;
9346 }
9347 }
9348{
9349 _arg1 = _obj1;
9350}
9351{
9352 _arg2 = _obj2;
9353}
9354{
474c48f9 9355 PyThreadState* __tstate = wxPyBeginAllowThreads();
3bcd5e1c
RD
9356 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9357
474c48f9 9358 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9359 if (PyErr_Occurred()) return NULL;
9360}{
9361 _resultobj = _result;
9362}
9363 return _resultobj;
9364}
9365
70551f47
RD
9366static void *SwigwxMemoryDCTowxDC(void *ptr) {
9367 wxMemoryDC *src;
9368 wxDC *dest;
9369 src = (wxMemoryDC *) ptr;
9370 dest = (wxDC *) src;
9371 return (void *) dest;
9372}
9373
9df61a29
RD
9374static void *SwigwxMemoryDCTowxObject(void *ptr) {
9375 wxMemoryDC *src;
9376 wxObject *dest;
9377 src = (wxMemoryDC *) ptr;
9378 dest = (wxObject *) src;
9379 return (void *) dest;
9380}
9381
70551f47 9382#define new_wxMemoryDC() (new wxMemoryDC())
107e4716 9383static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9384 PyObject * _resultobj;
9385 wxMemoryDC * _result;
107e4716 9386 char *_kwnames[] = { NULL };
70551f47
RD
9387 char _ptemp[128];
9388
9389 self = self;
107e4716 9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
70551f47 9391 return NULL;
ab9bc19b 9392{
474c48f9 9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9394 _result = (wxMemoryDC *)new_wxMemoryDC();
9395
474c48f9 9396 wxPyEndAllowThreads(__tstate);
4dfaa61e 9397 if (PyErr_Occurred()) return NULL;
2d091820
RD
9398} if (_result) {
9399 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9400 _resultobj = Py_BuildValue("s",_ptemp);
9401 } else {
9402 Py_INCREF(Py_None);
9403 _resultobj = Py_None;
9404 }
70551f47
RD
9405 return _resultobj;
9406}
9407
9408#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
107e4716 9409static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9410 PyObject * _resultobj;
9411 wxMemoryDC * _arg0;
9412 wxBitmap * _arg1;
2d091820
RD
9413 PyObject * _argo0 = 0;
9414 PyObject * _argo1 = 0;
107e4716 9415 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
9416
9417 self = self;
107e4716 9418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
70551f47 9419 return NULL;
2d091820
RD
9420 if (_argo0) {
9421 if (_argo0 == Py_None) { _arg0 = NULL; }
9422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
70551f47
RD
9423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9424 return NULL;
9425 }
9426 }
2d091820
RD
9427 if (_argo1) {
9428 if (_argo1 == Py_None) { _arg1 = NULL; }
9429 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
9430 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9431 return NULL;
9432 }
9433 }
ab9bc19b 9434{
474c48f9 9435 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9436 wxMemoryDC_SelectObject(_arg0,*_arg1);
9437
474c48f9 9438 wxPyEndAllowThreads(__tstate);
4dfaa61e 9439 if (PyErr_Occurred()) return NULL;
ab9bc19b 9440} Py_INCREF(Py_None);
70551f47
RD
9441 _resultobj = Py_None;
9442 return _resultobj;
9443}
9444
9445static void *SwigwxScreenDCTowxDC(void *ptr) {
9446 wxScreenDC *src;
9447 wxDC *dest;
9448 src = (wxScreenDC *) ptr;
9449 dest = (wxDC *) src;
9450 return (void *) dest;
9451}
9452
9df61a29
RD
9453static void *SwigwxScreenDCTowxObject(void *ptr) {
9454 wxScreenDC *src;
9455 wxObject *dest;
9456 src = (wxScreenDC *) ptr;
9457 dest = (wxObject *) src;
9458 return (void *) dest;
9459}
9460
70551f47 9461#define new_wxScreenDC() (new wxScreenDC())
107e4716 9462static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9463 PyObject * _resultobj;
9464 wxScreenDC * _result;
107e4716 9465 char *_kwnames[] = { NULL };
70551f47
RD
9466 char _ptemp[128];
9467
9468 self = self;
107e4716 9469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
70551f47 9470 return NULL;
ab9bc19b 9471{
474c48f9 9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9473 _result = (wxScreenDC *)new_wxScreenDC();
9474
474c48f9 9475 wxPyEndAllowThreads(__tstate);
4dfaa61e 9476 if (PyErr_Occurred()) return NULL;
2d091820
RD
9477} if (_result) {
9478 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9479 _resultobj = Py_BuildValue("s",_ptemp);
9480 } else {
9481 Py_INCREF(Py_None);
9482 _resultobj = Py_None;
9483 }
70551f47
RD
9484 return _resultobj;
9485}
9486
2fc99549
RD
9487#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9488static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9489 PyObject * _resultobj;
9490 bool _result;
9491 wxScreenDC * _arg0;
9492 wxWindow * _arg1;
2d091820
RD
9493 PyObject * _argo0 = 0;
9494 PyObject * _argo1 = 0;
107e4716 9495 char *_kwnames[] = { "self","window", NULL };
70551f47
RD
9496
9497 self = self;
2fc99549 9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
70551f47 9499 return NULL;
2d091820
RD
9500 if (_argo0) {
9501 if (_argo0 == Py_None) { _arg0 = NULL; }
9502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
70551f47
RD
9504 return NULL;
9505 }
9506 }
2d091820
RD
9507 if (_argo1) {
9508 if (_argo1 == Py_None) { _arg1 = NULL; }
9509 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2fc99549 9510 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
70551f47
RD
9511 return NULL;
9512 }
9513 }
ab9bc19b 9514{
474c48f9 9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
2fc99549 9516 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
ab9bc19b 9517
474c48f9 9518 wxPyEndAllowThreads(__tstate);
4dfaa61e 9519 if (PyErr_Occurred()) return NULL;
ab9bc19b 9520} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9521 return _resultobj;
9522}
9523
2fc99549
RD
9524#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9525static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9526 PyObject * _resultobj;
9527 bool _result;
9528 wxScreenDC * _arg0;
2d091820
RD
9529 wxRect * _arg1 = (wxRect *) NULL;
9530 PyObject * _argo0 = 0;
37f6a977
RD
9531 wxRect temp;
9532 PyObject * _obj1 = 0;
107e4716 9533 char *_kwnames[] = { "self","rect", NULL };
70551f47
RD
9534
9535 self = self;
2fc99549 9536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
70551f47 9537 return NULL;
2d091820
RD
9538 if (_argo0) {
9539 if (_argo0 == Py_None) { _arg0 = NULL; }
9540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
70551f47
RD
9542 return NULL;
9543 }
9544 }
37f6a977
RD
9545 if (_obj1)
9546{
9547 _arg1 = &temp;
9548 if (! wxRect_helper(_obj1, &_arg1))
70551f47 9549 return NULL;
37f6a977 9550}
ab9bc19b 9551{
474c48f9 9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2fc99549 9553 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
ab9bc19b 9554
474c48f9 9555 wxPyEndAllowThreads(__tstate);
4dfaa61e 9556 if (PyErr_Occurred()) return NULL;
ab9bc19b 9557} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9558 return _resultobj;
9559}
9560
9561#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
107e4716 9562static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9563 PyObject * _resultobj;
9564 bool _result;
9565 wxScreenDC * _arg0;
2d091820 9566 PyObject * _argo0 = 0;
107e4716 9567 char *_kwnames[] = { "self", NULL };
70551f47
RD
9568
9569 self = self;
107e4716 9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
70551f47 9571 return NULL;
2d091820
RD
9572 if (_argo0) {
9573 if (_argo0 == Py_None) { _arg0 = NULL; }
9574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
70551f47
RD
9575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9576 return NULL;
9577 }
9578 }
ab9bc19b 9579{
474c48f9 9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9581 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9582
474c48f9 9583 wxPyEndAllowThreads(__tstate);
4dfaa61e 9584 if (PyErr_Occurred()) return NULL;
ab9bc19b 9585} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9586 return _resultobj;
9587}
9588
9589static void *SwigwxClientDCTowxDC(void *ptr) {
9590 wxClientDC *src;
9591 wxDC *dest;
9592 src = (wxClientDC *) ptr;
9593 dest = (wxDC *) src;
9594 return (void *) dest;
9595}
9596
9df61a29
RD
9597static void *SwigwxClientDCTowxObject(void *ptr) {
9598 wxClientDC *src;
9599 wxObject *dest;
9600 src = (wxClientDC *) ptr;
9601 dest = (wxObject *) src;
9602 return (void *) dest;
9603}
9604
70551f47 9605#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
107e4716 9606static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9607 PyObject * _resultobj;
9608 wxClientDC * _result;
9609 wxWindow * _arg0;
2d091820 9610 PyObject * _argo0 = 0;
107e4716 9611 char *_kwnames[] = { "win", NULL };
70551f47
RD
9612 char _ptemp[128];
9613
9614 self = self;
107e4716 9615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
70551f47 9616 return NULL;
2d091820
RD
9617 if (_argo0) {
9618 if (_argo0 == Py_None) { _arg0 = NULL; }
9619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9621 return NULL;
9622 }
9623 }
ab9bc19b 9624{
474c48f9 9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9626 _result = (wxClientDC *)new_wxClientDC(_arg0);
9627
474c48f9 9628 wxPyEndAllowThreads(__tstate);
4dfaa61e 9629 if (PyErr_Occurred()) return NULL;
2d091820
RD
9630} if (_result) {
9631 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9632 _resultobj = Py_BuildValue("s",_ptemp);
9633 } else {
9634 Py_INCREF(Py_None);
9635 _resultobj = Py_None;
9636 }
70551f47
RD
9637 return _resultobj;
9638}
9639
9640static void *SwigwxPaintDCTowxDC(void *ptr) {
9641 wxPaintDC *src;
9642 wxDC *dest;
9643 src = (wxPaintDC *) ptr;
9644 dest = (wxDC *) src;
9645 return (void *) dest;
9646}
9647
9df61a29
RD
9648static void *SwigwxPaintDCTowxObject(void *ptr) {
9649 wxPaintDC *src;
9650 wxObject *dest;
9651 src = (wxPaintDC *) ptr;
9652 dest = (wxObject *) src;
9653 return (void *) dest;
9654}
9655
70551f47 9656#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
107e4716 9657static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9658 PyObject * _resultobj;
9659 wxPaintDC * _result;
9660 wxWindow * _arg0;
2d091820 9661 PyObject * _argo0 = 0;
107e4716 9662 char *_kwnames[] = { "win", NULL };
70551f47
RD
9663 char _ptemp[128];
9664
9665 self = self;
107e4716 9666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
70551f47 9667 return NULL;
2d091820
RD
9668 if (_argo0) {
9669 if (_argo0 == Py_None) { _arg0 = NULL; }
9670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9672 return NULL;
9673 }
9674 }
ab9bc19b 9675{
474c48f9 9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9677 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9678
474c48f9 9679 wxPyEndAllowThreads(__tstate);
4dfaa61e 9680 if (PyErr_Occurred()) return NULL;
2d091820
RD
9681} if (_result) {
9682 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9683 _resultobj = Py_BuildValue("s",_ptemp);
9684 } else {
9685 Py_INCREF(Py_None);
9686 _resultobj = Py_None;
9687 }
70551f47
RD
9688 return _resultobj;
9689}
9690
c95e68d8
RD
9691static void *SwigwxWindowDCTowxDC(void *ptr) {
9692 wxWindowDC *src;
9693 wxDC *dest;
9694 src = (wxWindowDC *) ptr;
9695 dest = (wxDC *) src;
9696 return (void *) dest;
9697}
9698
9df61a29
RD
9699static void *SwigwxWindowDCTowxObject(void *ptr) {
9700 wxWindowDC *src;
9701 wxObject *dest;
9702 src = (wxWindowDC *) ptr;
9703 dest = (wxObject *) src;
9704 return (void *) dest;
9705}
9706
c95e68d8 9707#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
107e4716 9708static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
9709 PyObject * _resultobj;
9710 wxWindowDC * _result;
9711 wxWindow * _arg0;
2d091820 9712 PyObject * _argo0 = 0;
107e4716 9713 char *_kwnames[] = { "win", NULL };
c95e68d8
RD
9714 char _ptemp[128];
9715
9716 self = self;
107e4716 9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
c95e68d8 9718 return NULL;
2d091820
RD
9719 if (_argo0) {
9720 if (_argo0 == Py_None) { _arg0 = NULL; }
9721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
9722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9723 return NULL;
9724 }
9725 }
ab9bc19b 9726{
474c48f9 9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9728 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
9729
474c48f9 9730 wxPyEndAllowThreads(__tstate);
4dfaa61e 9731 if (PyErr_Occurred()) return NULL;
2d091820
RD
9732} if (_result) {
9733 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9734 _resultobj = Py_BuildValue("s",_ptemp);
9735 } else {
9736 Py_INCREF(Py_None);
9737 _resultobj = Py_None;
9738 }
c95e68d8
RD
9739 return _resultobj;
9740}
9741
9df61a29
RD
9742static void *SwigwxPaletteTowxGDIObject(void *ptr) {
9743 wxPalette *src;
9744 wxGDIObject *dest;
9745 src = (wxPalette *) ptr;
9746 dest = (wxGDIObject *) src;
9747 return (void *) dest;
9748}
9749
9750static void *SwigwxPaletteTowxObject(void *ptr) {
9751 wxPalette *src;
9752 wxObject *dest;
9753 src = (wxPalette *) ptr;
9754 dest = (wxObject *) src;
9755 return (void *) dest;
9756}
9757
105e45b9 9758#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9759static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9760 PyObject * _resultobj;
9761 wxPalette * _result;
9762 int _arg0;
9763 byte * _arg1;
9764 byte * _arg2;
9765 byte * _arg3;
9766 PyObject * _obj1 = 0;
9767 PyObject * _obj2 = 0;
9768 PyObject * _obj3 = 0;
e02c03a4 9769 char *_kwnames[] = { "choices","choices","choices", NULL };
105e45b9
RD
9770 char _ptemp[128];
9771
9772 self = self;
107e4716 9773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
105e45b9
RD
9774 return NULL;
9775{
9776 _arg1 = byte_LIST_helper(_obj1);
9777 if (_arg1 == NULL) {
9778 return NULL;
9779 }
9780}
9781{
9782 _arg2 = byte_LIST_helper(_obj2);
9783 if (_arg2 == NULL) {
9784 return NULL;
9785 }
9786}
9787 if (_obj3)
9788{
9789 _arg3 = byte_LIST_helper(_obj3);
9790 if (_arg3 == NULL) {
9791 return NULL;
9792 }
9793}
9794{
ab9bc19b
RD
9795 if (_obj1) {
9796 _arg0 = PyList_Size(_obj1);
9797 }
9798 else {
9799 _arg0 = 0;
9800 }
105e45b9 9801}
ab9bc19b 9802{
474c48f9 9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9804 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
9805
474c48f9 9806 wxPyEndAllowThreads(__tstate);
4dfaa61e 9807 if (PyErr_Occurred()) return NULL;
2d091820
RD
9808} if (_result) {
9809 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
9810 _resultobj = Py_BuildValue("s",_ptemp);
9811 } else {
9812 Py_INCREF(Py_None);
9813 _resultobj = Py_None;
9814 }
105e45b9
RD
9815{
9816 delete [] _arg1;
9817}
9818{
9819 delete [] _arg2;
9820}
9821{
9822 delete [] _arg3;
9823}
9824 return _resultobj;
9825}
9826
9827#define delete_wxPalette(_swigobj) (delete _swigobj)
107e4716 9828static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9829 PyObject * _resultobj;
9830 wxPalette * _arg0;
2d091820 9831 PyObject * _argo0 = 0;
107e4716 9832 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9833
9834 self = self;
107e4716 9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
105e45b9 9836 return NULL;
2d091820
RD
9837 if (_argo0) {
9838 if (_argo0 == Py_None) { _arg0 = NULL; }
9839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9841 return NULL;
9842 }
9843 }
ab9bc19b 9844{
474c48f9 9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9846 delete_wxPalette(_arg0);
9847
474c48f9 9848 wxPyEndAllowThreads(__tstate);
4dfaa61e 9849 if (PyErr_Occurred()) return NULL;
ab9bc19b 9850} Py_INCREF(Py_None);
105e45b9
RD
9851 _resultobj = Py_None;
9852 return _resultobj;
9853}
9854
9855#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
107e4716 9856static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9857 PyObject * _resultobj;
9858 int _result;
9859 wxPalette * _arg0;
9860 byte _arg1;
9861 byte _arg2;
9862 byte _arg3;
2d091820 9863 PyObject * _argo0 = 0;
107e4716 9864 char *_kwnames[] = { "self","red","green","blue", NULL };
105e45b9
RD
9865
9866 self = self;
107e4716 9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
105e45b9 9868 return NULL;
2d091820
RD
9869 if (_argo0) {
9870 if (_argo0 == Py_None) { _arg0 = NULL; }
9871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9873 return NULL;
9874 }
9875 }
ab9bc19b 9876{
474c48f9 9877 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9878 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
9879
474c48f9 9880 wxPyEndAllowThreads(__tstate);
4dfaa61e 9881 if (PyErr_Occurred()) return NULL;
ab9bc19b 9882} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9883 return _resultobj;
9884}
9885
9886#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9887static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9888 PyObject * _resultobj;
9889 bool _result;
9890 wxPalette * _arg0;
9891 int _arg1;
9892 byte * _arg2;
9893 byte * _arg3;
9894 byte * _arg4;
2d091820
RD
9895 PyObject * _argo0 = 0;
9896 PyObject * _argo2 = 0;
9897 PyObject * _argo3 = 0;
9898 PyObject * _argo4 = 0;
107e4716 9899 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
105e45b9
RD
9900
9901 self = self;
107e4716 9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
105e45b9 9903 return NULL;
2d091820
RD
9904 if (_argo0) {
9905 if (_argo0 == Py_None) { _arg0 = NULL; }
9906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9908 return NULL;
9909 }
9910 }
2d091820
RD
9911 if (_argo2) {
9912 if (_argo2 == Py_None) { _arg2 = NULL; }
9913 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
105e45b9
RD
9914 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
9915 return NULL;
9916 }
9917 }
2d091820
RD
9918 if (_argo3) {
9919 if (_argo3 == Py_None) { _arg3 = NULL; }
9920 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
105e45b9
RD
9921 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
9922 return NULL;
9923 }
9924 }
2d091820
RD
9925 if (_argo4) {
9926 if (_argo4 == Py_None) { _arg4 = NULL; }
9927 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
105e45b9
RD
9928 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
9929 return NULL;
9930 }
9931 }
ab9bc19b 9932{
474c48f9 9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9934 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
9935
474c48f9 9936 wxPyEndAllowThreads(__tstate);
4dfaa61e 9937 if (PyErr_Occurred()) return NULL;
ab9bc19b 9938} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9939 return _resultobj;
9940}
9941
9942#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
107e4716 9943static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9944 PyObject * _resultobj;
9945 bool _result;
9946 wxPalette * _arg0;
2d091820 9947 PyObject * _argo0 = 0;
107e4716 9948 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9949
9950 self = self;
107e4716 9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
105e45b9 9952 return NULL;
2d091820
RD
9953 if (_argo0) {
9954 if (_argo0 == Py_None) { _arg0 = NULL; }
9955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9957 return NULL;
9958 }
9959 }
ab9bc19b 9960{
474c48f9 9961 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9962 _result = (bool )wxPalette_Ok(_arg0);
9963
474c48f9 9964 wxPyEndAllowThreads(__tstate);
4dfaa61e 9965 if (PyErr_Occurred()) return NULL;
ab9bc19b 9966} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9967 return _resultobj;
9968}
9969
9df61a29
RD
9970static void *SwigwxImageListTowxObject(void *ptr) {
9971 wxImageList *src;
9972 wxObject *dest;
9973 src = (wxImageList *) ptr;
9974 dest = (wxObject *) src;
9975 return (void *) dest;
9976}
9977
21f8d7ea 9978#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9979static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9980 PyObject * _resultobj;
9981 wxImageList * _result;
9982 int _arg0;
9983 int _arg1;
7ff49f0c 9984 int _arg2 = (int ) TRUE;
2d091820 9985 int _arg3 = (int ) 1;
107e4716 9986 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
21f8d7ea
RD
9987 char _ptemp[128];
9988
9989 self = self;
56f5d962 9990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
21f8d7ea 9991 return NULL;
ab9bc19b 9992{
474c48f9 9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
9994 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
9995
474c48f9 9996 wxPyEndAllowThreads(__tstate);
4dfaa61e 9997 if (PyErr_Occurred()) return NULL;
2d091820
RD
9998} if (_result) {
9999 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10000 _resultobj = Py_BuildValue("s",_ptemp);
10001 } else {
10002 Py_INCREF(Py_None);
10003 _resultobj = Py_None;
10004 }
21f8d7ea
RD
10005 return _resultobj;
10006}
10007
10008#define delete_wxImageList(_swigobj) (delete _swigobj)
107e4716 10009static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10010 PyObject * _resultobj;
10011 wxImageList * _arg0;
2d091820 10012 PyObject * _argo0 = 0;
107e4716 10013 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10014
10015 self = self;
107e4716 10016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
21f8d7ea 10017 return NULL;
2d091820
RD
10018 if (_argo0) {
10019 if (_argo0 == Py_None) { _arg0 = NULL; }
10020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10022 return NULL;
10023 }
10024 }
ab9bc19b 10025{
474c48f9 10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10027 delete_wxImageList(_arg0);
10028
474c48f9 10029 wxPyEndAllowThreads(__tstate);
4dfaa61e 10030 if (PyErr_Occurred()) return NULL;
ab9bc19b 10031} Py_INCREF(Py_None);
21f8d7ea
RD
10032 _resultobj = Py_None;
10033 return _resultobj;
10034}
10035
f6bcfd97 10036#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
107e4716 10037static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10038 PyObject * _resultobj;
10039 int _result;
10040 wxImageList * _arg0;
10041 wxBitmap * _arg1;
f6bcfd97 10042 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
2d091820
RD
10043 PyObject * _argo0 = 0;
10044 PyObject * _argo1 = 0;
f6bcfd97
BP
10045 PyObject * _argo2 = 0;
10046 char *_kwnames[] = { "self","bitmap","mask", NULL };
21f8d7ea
RD
10047
10048 self = self;
f6bcfd97 10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
21f8d7ea 10050 return NULL;
2d091820
RD
10051 if (_argo0) {
10052 if (_argo0 == Py_None) { _arg0 = NULL; }
10053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10055 return NULL;
10056 }
10057 }
2d091820
RD
10058 if (_argo1) {
10059 if (_argo1 == Py_None) { _arg1 = NULL; }
10060 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
21f8d7ea
RD
10061 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10062 return NULL;
10063 }
10064 }
f6bcfd97
BP
10065 if (_argo2) {
10066 if (_argo2 == Py_None) { _arg2 = NULL; }
10067 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10068 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10069 return NULL;
10070 }
10071 }
10072{
474c48f9 10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
10074 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10075
474c48f9 10076 wxPyEndAllowThreads(__tstate);
4dfaa61e 10077 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10078} _resultobj = Py_BuildValue("i",_result);
10079 return _resultobj;
10080}
10081
10082#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10083static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10084 PyObject * _resultobj;
10085 int _result;
10086 wxImageList * _arg0;
10087 wxBitmap * _arg1;
10088 wxColour * _arg2;
10089 PyObject * _argo0 = 0;
10090 PyObject * _argo1 = 0;
10091 wxColour temp;
10092 PyObject * _obj2 = 0;
10093 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10094
10095 self = self;
10096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10097 return NULL;
10098 if (_argo0) {
10099 if (_argo0 == Py_None) { _arg0 = NULL; }
10100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10102 return NULL;
10103 }
10104 }
10105 if (_argo1) {
10106 if (_argo1 == Py_None) { _arg1 = NULL; }
10107 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10108 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10109 return NULL;
10110 }
10111 }
10112{
10113 _arg2 = &temp;
10114 if (! wxColour_helper(_obj2, &_arg2))
10115 return NULL;
10116}
ab9bc19b 10117{
474c48f9 10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
10119 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10120
474c48f9 10121 wxPyEndAllowThreads(__tstate);
4dfaa61e 10122 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10123} _resultobj = Py_BuildValue("i",_result);
10124 return _resultobj;
10125}
10126
10127#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10128static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10129 PyObject * _resultobj;
10130 int _result;
10131 wxImageList * _arg0;
10132 wxIcon * _arg1;
10133 PyObject * _argo0 = 0;
10134 PyObject * _argo1 = 0;
10135 char *_kwnames[] = { "self","icon", NULL };
10136
10137 self = self;
10138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10139 return NULL;
10140 if (_argo0) {
10141 if (_argo0 == Py_None) { _arg0 = NULL; }
10142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10144 return NULL;
10145 }
10146 }
10147 if (_argo1) {
10148 if (_argo1 == Py_None) { _arg1 = NULL; }
10149 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10150 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10151 return NULL;
10152 }
10153 }
10154{
474c48f9 10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 10156 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
ab9bc19b 10157
474c48f9 10158 wxPyEndAllowThreads(__tstate);
4dfaa61e 10159 if (PyErr_Occurred()) return NULL;
ab9bc19b 10160} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10161 return _resultobj;
10162}
10163
10164#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
107e4716 10165static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10166 PyObject * _resultobj;
10167 bool _result;
10168 wxImageList * _arg0;
10169 int _arg1;
10170 wxBitmap * _arg2;
2d091820
RD
10171 PyObject * _argo0 = 0;
10172 PyObject * _argo2 = 0;
107e4716 10173 char *_kwnames[] = { "self","index","bitmap", NULL };
21f8d7ea
RD
10174
10175 self = self;
107e4716 10176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
21f8d7ea 10177 return NULL;
2d091820
RD
10178 if (_argo0) {
10179 if (_argo0 == Py_None) { _arg0 = NULL; }
10180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10182 return NULL;
10183 }
10184 }
2d091820
RD
10185 if (_argo2) {
10186 if (_argo2 == Py_None) { _arg2 = NULL; }
10187 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
21f8d7ea
RD
10188 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10189 return NULL;
10190 }
10191 }
ab9bc19b 10192{
474c48f9 10193 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10194 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
10195
474c48f9 10196 wxPyEndAllowThreads(__tstate);
4dfaa61e 10197 if (PyErr_Occurred()) return NULL;
ab9bc19b 10198} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10199 return _resultobj;
10200}
10201
10202#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 10203static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10204 PyObject * _resultobj;
10205 bool _result;
10206 wxImageList * _arg0;
10207 int _arg1;
10208 wxDC * _arg2;
10209 int _arg3;
10210 int _arg4;
2d091820
RD
10211 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10212 bool _arg6 = (bool ) FALSE;
10213 PyObject * _argo0 = 0;
10214 PyObject * _argo2 = 0;
10215 int tempbool6 = (int) FALSE;
107e4716 10216 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
21f8d7ea
RD
10217
10218 self = self;
107e4716 10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
21f8d7ea 10220 return NULL;
2d091820
RD
10221 if (_argo0) {
10222 if (_argo0 == Py_None) { _arg0 = NULL; }
10223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10225 return NULL;
10226 }
10227 }
2d091820
RD
10228 if (_argo2) {
10229 if (_argo2 == Py_None) { _arg2 = NULL; }
10230 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
21f8d7ea
RD
10231 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10232 return NULL;
10233 }
10234 }
10235 _arg6 = (bool ) tempbool6;
ab9bc19b 10236{
474c48f9 10237 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10238 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10239
474c48f9 10240 wxPyEndAllowThreads(__tstate);
4dfaa61e 10241 if (PyErr_Occurred()) return NULL;
ab9bc19b 10242} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10243 return _resultobj;
10244}
10245
10246#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
107e4716 10247static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10248 PyObject * _resultobj;
10249 int _result;
10250 wxImageList * _arg0;
2d091820 10251 PyObject * _argo0 = 0;
107e4716 10252 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10253
10254 self = self;
107e4716 10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
21f8d7ea 10256 return NULL;
2d091820
RD
10257 if (_argo0) {
10258 if (_argo0 == Py_None) { _arg0 = NULL; }
10259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10261 return NULL;
10262 }
10263 }
ab9bc19b 10264{
474c48f9 10265 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10266 _result = (int )wxImageList_GetImageCount(_arg0);
10267
474c48f9 10268 wxPyEndAllowThreads(__tstate);
4dfaa61e 10269 if (PyErr_Occurred()) return NULL;
ab9bc19b 10270} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10271 return _resultobj;
10272}
10273
10274#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
107e4716 10275static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10276 PyObject * _resultobj;
10277 bool _result;
10278 wxImageList * _arg0;
10279 int _arg1;
2d091820 10280 PyObject * _argo0 = 0;
107e4716 10281 char *_kwnames[] = { "self","index", NULL };
21f8d7ea
RD
10282
10283 self = self;
107e4716 10284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
21f8d7ea 10285 return NULL;
2d091820
RD
10286 if (_argo0) {
10287 if (_argo0 == Py_None) { _arg0 = NULL; }
10288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10290 return NULL;
10291 }
10292 }
ab9bc19b 10293{
474c48f9 10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10295 _result = (bool )wxImageList_Remove(_arg0,_arg1);
10296
474c48f9 10297 wxPyEndAllowThreads(__tstate);
4dfaa61e 10298 if (PyErr_Occurred()) return NULL;
ab9bc19b 10299} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10300 return _resultobj;
10301}
10302
10303#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
107e4716 10304static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10305 PyObject * _resultobj;
10306 bool _result;
10307 wxImageList * _arg0;
2d091820 10308 PyObject * _argo0 = 0;
107e4716 10309 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10310
10311 self = self;
107e4716 10312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
21f8d7ea 10313 return NULL;
2d091820
RD
10314 if (_argo0) {
10315 if (_argo0 == Py_None) { _arg0 = NULL; }
10316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10318 return NULL;
10319 }
10320 }
ab9bc19b 10321{
474c48f9 10322 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab9bc19b
RD
10323 _result = (bool )wxImageList_RemoveAll(_arg0);
10324
474c48f9 10325 wxPyEndAllowThreads(__tstate);
4dfaa61e 10326 if (PyErr_Occurred()) return NULL;
ab9bc19b 10327} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10328 return _resultobj;
10329}
10330
f6bcfd97
BP
10331#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10332static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10333 PyObject * _resultobj;
10334 wxImageList * _arg0;
10335 int _arg1;
10336 int * _arg2;
10337 int temp;
10338 int * _arg3;
10339 int temp0;
10340 PyObject * _argo0 = 0;
10341 char *_kwnames[] = { "self","index", NULL };
10342
10343 self = self;
10344{
10345 _arg2 = &temp;
10346}
10347{
10348 _arg3 = &temp0;
10349}
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10351 return NULL;
10352 if (_argo0) {
10353 if (_argo0 == Py_None) { _arg0 = NULL; }
10354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10356 return NULL;
10357 }
10358 }
10359{
474c48f9 10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
10361 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
10362
474c48f9 10363 wxPyEndAllowThreads(__tstate);
4dfaa61e 10364 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10365} Py_INCREF(Py_None);
10366 _resultobj = Py_None;
10367{
10368 PyObject *o;
10369 o = PyInt_FromLong((long) (*_arg2));
10370 _resultobj = t_output_helper(_resultobj, o);
10371}
10372{
10373 PyObject *o;
10374 o = PyInt_FromLong((long) (*_arg3));
10375 _resultobj = t_output_helper(_resultobj, o);
10376}
10377 return _resultobj;
10378}
10379
9df61a29
RD
10380static void *SwigwxRegionTowxGDIObject(void *ptr) {
10381 wxRegion *src;
10382 wxGDIObject *dest;
10383 src = (wxRegion *) ptr;
10384 dest = (wxGDIObject *) src;
10385 return (void *) dest;
10386}
10387
10388static void *SwigwxRegionTowxObject(void *ptr) {
10389 wxRegion *src;
10390 wxObject *dest;
10391 src = (wxRegion *) ptr;
10392 dest = (wxObject *) src;
10393 return (void *) dest;
10394}
10395
10396#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10397static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10398 PyObject * _resultobj;
10399 wxRegion * _result;
10400 long _arg0 = (long ) 0;
10401 long _arg1 = (long ) 0;
10402 long _arg2 = (long ) 0;
10403 long _arg3 = (long ) 0;
10404 char *_kwnames[] = { "x","y","width","height", NULL };
10405 char _ptemp[128];
10406
10407 self = self;
10408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10409 return NULL;
10410{
474c48f9 10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10412 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
10413
474c48f9 10414 wxPyEndAllowThreads(__tstate);
4dfaa61e 10415 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10416} if (_result) {
10417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10418 _resultobj = Py_BuildValue("s",_ptemp);
10419 } else {
10420 Py_INCREF(Py_None);
10421 _resultobj = Py_None;
10422 }
10423 return _resultobj;
10424}
10425
10426#define delete_wxRegion(_swigobj) (delete _swigobj)
10427static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10428 PyObject * _resultobj;
10429 wxRegion * _arg0;
10430 PyObject * _argo0 = 0;
10431 char *_kwnames[] = { "self", NULL };
10432
10433 self = self;
10434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
10435 return NULL;
10436 if (_argo0) {
10437 if (_argo0 == Py_None) { _arg0 = NULL; }
10438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10440 return NULL;
10441 }
10442 }
10443{
474c48f9 10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10445 delete_wxRegion(_arg0);
10446
474c48f9 10447 wxPyEndAllowThreads(__tstate);
4dfaa61e 10448 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10449} Py_INCREF(Py_None);
10450 _resultobj = Py_None;
10451 return _resultobj;
10452}
10453
10454#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10455static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10456 PyObject * _resultobj;
10457 wxRegion * _arg0;
10458 PyObject * _argo0 = 0;
10459 char *_kwnames[] = { "self", NULL };
10460
10461 self = self;
10462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10463 return NULL;
10464 if (_argo0) {
10465 if (_argo0 == Py_None) { _arg0 = NULL; }
10466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10468 return NULL;
10469 }
10470 }
10471{
474c48f9 10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10473 wxRegion_Clear(_arg0);
10474
474c48f9 10475 wxPyEndAllowThreads(__tstate);
4dfaa61e 10476 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10477} Py_INCREF(Py_None);
10478 _resultobj = Py_None;
10479 return _resultobj;
10480}
10481
10482#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10483static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10484 PyObject * _resultobj;
10485 wxRegionContain _result;
10486 wxRegion * _arg0;
10487 long _arg1;
10488 long _arg2;
10489 PyObject * _argo0 = 0;
10490 char *_kwnames[] = { "self","x","y", NULL };
10491
10492 self = self;
10493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
10494 return NULL;
10495 if (_argo0) {
10496 if (_argo0 == Py_None) { _arg0 = NULL; }
10497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10499 return NULL;
10500 }
10501 }
10502{
474c48f9 10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10504 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
10505
474c48f9 10506 wxPyEndAllowThreads(__tstate);
4dfaa61e 10507 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10508} _resultobj = Py_BuildValue("i",_result);
10509 return _resultobj;
10510}
10511
10512#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10513static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject * _resultobj;
10515 wxRegionContain _result;
10516 wxRegion * _arg0;
10517 wxPoint * _arg1;
10518 PyObject * _argo0 = 0;
10519 wxPoint temp;
10520 PyObject * _obj1 = 0;
10521 char *_kwnames[] = { "self","pt", NULL };
10522
10523 self = self;
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10525 return NULL;
10526 if (_argo0) {
10527 if (_argo0 == Py_None) { _arg0 = NULL; }
10528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10530 return NULL;
10531 }
10532 }
10533{
10534 _arg1 = &temp;
10535 if (! wxPoint_helper(_obj1, &_arg1))
10536 return NULL;
10537}
10538{
474c48f9 10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10540 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
10541
474c48f9 10542 wxPyEndAllowThreads(__tstate);
4dfaa61e 10543 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10544} _resultobj = Py_BuildValue("i",_result);
10545 return _resultobj;
10546}
10547
10548#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10549static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject * _resultobj;
10551 wxRegionContain _result;
10552 wxRegion * _arg0;
10553 wxRect * _arg1;
10554 PyObject * _argo0 = 0;
10555 wxRect temp;
10556 PyObject * _obj1 = 0;
10557 char *_kwnames[] = { "self","rect", NULL };
10558
10559 self = self;
10560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10561 return NULL;
10562 if (_argo0) {
10563 if (_argo0 == Py_None) { _arg0 = NULL; }
10564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10566 return NULL;
10567 }
10568 }
10569{
10570 _arg1 = &temp;
10571 if (! wxRect_helper(_obj1, &_arg1))
10572 return NULL;
10573}
10574{
474c48f9 10575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10576 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
10577
474c48f9 10578 wxPyEndAllowThreads(__tstate);
4dfaa61e 10579 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10580} _resultobj = Py_BuildValue("i",_result);
10581 return _resultobj;
10582}
10583
10584#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10585static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10586 PyObject * _resultobj;
10587 wxRegionContain _result;
10588 wxRegion * _arg0;
10589 long _arg1;
10590 long _arg2;
10591 long _arg3;
10592 long _arg4;
10593 PyObject * _argo0 = 0;
10594 char *_kwnames[] = { "self","x","y","w","h", NULL };
10595
10596 self = self;
10597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10598 return NULL;
10599 if (_argo0) {
10600 if (_argo0 == Py_None) { _arg0 = NULL; }
10601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10603 return NULL;
10604 }
10605 }
10606{
474c48f9 10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10608 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
10609
474c48f9 10610 wxPyEndAllowThreads(__tstate);
4dfaa61e 10611 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10612} _resultobj = Py_BuildValue("i",_result);
10613 return _resultobj;
10614}
10615
10616#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10617static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10618 PyObject * _resultobj;
10619 wxRect * _result;
10620 wxRegion * _arg0;
10621 PyObject * _argo0 = 0;
10622 char *_kwnames[] = { "self", NULL };
10623 char _ptemp[128];
10624
10625 self = self;
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10627 return NULL;
10628 if (_argo0) {
10629 if (_argo0 == Py_None) { _arg0 = NULL; }
10630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10632 return NULL;
10633 }
10634 }
10635{
474c48f9 10636 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10637 _result = new wxRect (wxRegion_GetBox(_arg0));
10638
474c48f9 10639 wxPyEndAllowThreads(__tstate);
4dfaa61e 10640 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10641} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10642 _resultobj = Py_BuildValue("s",_ptemp);
10643 return _resultobj;
10644}
10645
10646#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10647static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10648 PyObject * _resultobj;
10649 bool _result;
10650 wxRegion * _arg0;
10651 long _arg1;
10652 long _arg2;
10653 long _arg3;
10654 long _arg4;
10655 PyObject * _argo0 = 0;
10656 char *_kwnames[] = { "self","x","y","width","height", NULL };
10657
10658 self = self;
10659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10660 return NULL;
10661 if (_argo0) {
10662 if (_argo0 == Py_None) { _arg0 = NULL; }
10663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10665 return NULL;
10666 }
10667 }
10668{
474c48f9 10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10670 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
10671
474c48f9 10672 wxPyEndAllowThreads(__tstate);
4dfaa61e 10673 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10674} _resultobj = Py_BuildValue("i",_result);
10675 return _resultobj;
10676}
10677
10678#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10679static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10680 PyObject * _resultobj;
10681 bool _result;
10682 wxRegion * _arg0;
10683 wxRect * _arg1;
10684 PyObject * _argo0 = 0;
10685 wxRect temp;
10686 PyObject * _obj1 = 0;
10687 char *_kwnames[] = { "self","rect", NULL };
10688
10689 self = self;
10690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
10691 return NULL;
10692 if (_argo0) {
10693 if (_argo0 == Py_None) { _arg0 = NULL; }
10694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10696 return NULL;
10697 }
10698 }
10699{
10700 _arg1 = &temp;
10701 if (! wxRect_helper(_obj1, &_arg1))
10702 return NULL;
10703}
10704{
474c48f9 10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10706 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
10707
474c48f9 10708 wxPyEndAllowThreads(__tstate);
4dfaa61e 10709 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10710} _resultobj = Py_BuildValue("i",_result);
10711 return _resultobj;
10712}
10713
10714#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10715static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10716 PyObject * _resultobj;
10717 bool _result;
10718 wxRegion * _arg0;
10719 wxRegion * _arg1;
10720 PyObject * _argo0 = 0;
10721 PyObject * _argo1 = 0;
10722 char *_kwnames[] = { "self","region", NULL };
10723
10724 self = self;
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
10726 return NULL;
10727 if (_argo0) {
10728 if (_argo0 == Py_None) { _arg0 = NULL; }
10729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10731 return NULL;
10732 }
10733 }
10734 if (_argo1) {
10735 if (_argo1 == Py_None) { _arg1 = NULL; }
10736 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10737 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10738 return NULL;
10739 }
10740 }
10741{
474c48f9 10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10743 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
10744
474c48f9 10745 wxPyEndAllowThreads(__tstate);
4dfaa61e 10746 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10747} _resultobj = Py_BuildValue("i",_result);
10748 return _resultobj;
10749}
10750
10751#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10752static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
10753 PyObject * _resultobj;
10754 bool _result;
10755 wxRegion * _arg0;
10756 PyObject * _argo0 = 0;
10757 char *_kwnames[] = { "self", NULL };
10758
10759 self = self;
10760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
10761 return NULL;
10762 if (_argo0) {
10763 if (_argo0 == Py_None) { _arg0 = NULL; }
10764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10766 return NULL;
10767 }
10768 }
10769{
474c48f9 10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10771 _result = (bool )wxRegion_IsEmpty(_arg0);
10772
474c48f9 10773 wxPyEndAllowThreads(__tstate);
4dfaa61e 10774 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10775} _resultobj = Py_BuildValue("i",_result);
10776 return _resultobj;
10777}
10778
10779#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10780static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
10781 PyObject * _resultobj;
10782 bool _result;
10783 wxRegion * _arg0;
10784 long _arg1;
10785 long _arg2;
10786 long _arg3;
10787 long _arg4;
10788 PyObject * _argo0 = 0;
10789 char *_kwnames[] = { "self","x","y","width","height", NULL };
10790
10791 self = self;
10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10793 return NULL;
10794 if (_argo0) {
10795 if (_argo0 == Py_None) { _arg0 = NULL; }
10796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10798 return NULL;
10799 }
10800 }
10801{
474c48f9 10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10803 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
10804
474c48f9 10805 wxPyEndAllowThreads(__tstate);
4dfaa61e 10806 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10807} _resultobj = Py_BuildValue("i",_result);
10808 return _resultobj;
10809}
10810
10811#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10812static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10813 PyObject * _resultobj;
10814 bool _result;
10815 wxRegion * _arg0;
10816 wxRect * _arg1;
10817 PyObject * _argo0 = 0;
10818 wxRect temp;
10819 PyObject * _obj1 = 0;
10820 char *_kwnames[] = { "self","rect", NULL };
10821
10822 self = self;
10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
10824 return NULL;
10825 if (_argo0) {
10826 if (_argo0 == Py_None) { _arg0 = NULL; }
10827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10829 return NULL;
10830 }
10831 }
10832{
10833 _arg1 = &temp;
10834 if (! wxRect_helper(_obj1, &_arg1))
10835 return NULL;
10836}
10837{
474c48f9 10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10839 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
10840
474c48f9 10841 wxPyEndAllowThreads(__tstate);
4dfaa61e 10842 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10843} _resultobj = Py_BuildValue("i",_result);
10844 return _resultobj;
10845}
10846
10847#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10848static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10849 PyObject * _resultobj;
10850 bool _result;
10851 wxRegion * _arg0;
10852 wxRegion * _arg1;
10853 PyObject * _argo0 = 0;
10854 PyObject * _argo1 = 0;
10855 char *_kwnames[] = { "self","region", NULL };
10856
10857 self = self;
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
10859 return NULL;
10860 if (_argo0) {
10861 if (_argo0 == Py_None) { _arg0 = NULL; }
10862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10864 return NULL;
10865 }
10866 }
10867 if (_argo1) {
10868 if (_argo1 == Py_None) { _arg1 = NULL; }
10869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10871 return NULL;
10872 }
10873 }
10874{
474c48f9 10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10876 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
10877
474c48f9 10878 wxPyEndAllowThreads(__tstate);
4dfaa61e 10879 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10880} _resultobj = Py_BuildValue("i",_result);
10881 return _resultobj;
10882}
10883
10884#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10885static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
10886 PyObject * _resultobj;
10887 bool _result;
10888 wxRegion * _arg0;
10889 long _arg1;
10890 long _arg2;
10891 long _arg3;
10892 long _arg4;
10893 PyObject * _argo0 = 0;
10894 char *_kwnames[] = { "self","x","y","width","height", NULL };
10895
10896 self = self;
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10898 return NULL;
10899 if (_argo0) {
10900 if (_argo0 == Py_None) { _arg0 = NULL; }
10901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10903 return NULL;
10904 }
10905 }
10906{
474c48f9 10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10908 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
10909
474c48f9 10910 wxPyEndAllowThreads(__tstate);
4dfaa61e 10911 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10912} _resultobj = Py_BuildValue("i",_result);
10913 return _resultobj;
10914}
10915
10916#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10917static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10918 PyObject * _resultobj;
10919 bool _result;
10920 wxRegion * _arg0;
10921 wxRect * _arg1;
10922 PyObject * _argo0 = 0;
10923 wxRect temp;
10924 PyObject * _obj1 = 0;
10925 char *_kwnames[] = { "self","rect", NULL };
10926
10927 self = self;
10928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
10929 return NULL;
10930 if (_argo0) {
10931 if (_argo0 == Py_None) { _arg0 = NULL; }
10932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10934 return NULL;
10935 }
10936 }
10937{
10938 _arg1 = &temp;
10939 if (! wxRect_helper(_obj1, &_arg1))
10940 return NULL;
10941}
10942{
474c48f9 10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10944 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
10945
474c48f9 10946 wxPyEndAllowThreads(__tstate);
4dfaa61e 10947 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10948} _resultobj = Py_BuildValue("i",_result);
10949 return _resultobj;
10950}
10951
10952#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10953static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10954 PyObject * _resultobj;
10955 bool _result;
10956 wxRegion * _arg0;
10957 wxRegion * _arg1;
10958 PyObject * _argo0 = 0;
10959 PyObject * _argo1 = 0;
10960 char *_kwnames[] = { "self","region", NULL };
10961
10962 self = self;
10963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
10964 return NULL;
10965 if (_argo0) {
10966 if (_argo0 == Py_None) { _arg0 = NULL; }
10967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10969 return NULL;
10970 }
10971 }
10972 if (_argo1) {
10973 if (_argo1 == Py_None) { _arg1 = NULL; }
10974 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10975 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10976 return NULL;
10977 }
10978 }
10979{
474c48f9 10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
10981 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
10982
474c48f9 10983 wxPyEndAllowThreads(__tstate);
4dfaa61e 10984 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10985} _resultobj = Py_BuildValue("i",_result);
10986 return _resultobj;
10987}
10988
10989#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10990static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
10991 PyObject * _resultobj;
10992 bool _result;
10993 wxRegion * _arg0;
10994 long _arg1;
10995 long _arg2;
10996 long _arg3;
10997 long _arg4;
10998 PyObject * _argo0 = 0;
10999 char *_kwnames[] = { "self","x","y","width","height", NULL };
11000
11001 self = self;
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11003 return NULL;
11004 if (_argo0) {
11005 if (_argo0 == Py_None) { _arg0 = NULL; }
11006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11008 return NULL;
11009 }
11010 }
11011{
474c48f9 11012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11013 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11014
474c48f9 11015 wxPyEndAllowThreads(__tstate);
4dfaa61e 11016 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11017} _resultobj = Py_BuildValue("i",_result);
11018 return _resultobj;
11019}
11020
11021#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11022static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject * _resultobj;
11024 bool _result;
11025 wxRegion * _arg0;
11026 wxRect * _arg1;
11027 PyObject * _argo0 = 0;
11028 wxRect temp;
11029 PyObject * _obj1 = 0;
11030 char *_kwnames[] = { "self","rect", NULL };
11031
11032 self = self;
11033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11034 return NULL;
11035 if (_argo0) {
11036 if (_argo0 == Py_None) { _arg0 = NULL; }
11037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11039 return NULL;
11040 }
11041 }
11042{
11043 _arg1 = &temp;
11044 if (! wxRect_helper(_obj1, &_arg1))
11045 return NULL;
11046}
11047{
474c48f9 11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11049 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11050
474c48f9 11051 wxPyEndAllowThreads(__tstate);
4dfaa61e 11052 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11053} _resultobj = Py_BuildValue("i",_result);
11054 return _resultobj;
11055}
11056
11057#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11058static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11059 PyObject * _resultobj;
11060 bool _result;
11061 wxRegion * _arg0;
11062 wxRegion * _arg1;
11063 PyObject * _argo0 = 0;
11064 PyObject * _argo1 = 0;
11065 char *_kwnames[] = { "self","region", NULL };
11066
11067 self = self;
11068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11069 return NULL;
11070 if (_argo0) {
11071 if (_argo0 == Py_None) { _arg0 = NULL; }
11072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11074 return NULL;
11075 }
11076 }
11077 if (_argo1) {
11078 if (_argo1 == Py_None) { _arg1 = NULL; }
11079 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11080 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11081 return NULL;
11082 }
11083 }
11084{
474c48f9 11085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11086 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11087
474c48f9 11088 wxPyEndAllowThreads(__tstate);
4dfaa61e 11089 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11090} _resultobj = Py_BuildValue("i",_result);
11091 return _resultobj;
11092}
11093
11094static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11095 wxRegionIterator *src;
11096 wxObject *dest;
11097 src = (wxRegionIterator *) ptr;
11098 dest = (wxObject *) src;
11099 return (void *) dest;
11100}
11101
11102#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11103static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject * _resultobj;
11105 wxRegionIterator * _result;
11106 wxRegion * _arg0;
11107 PyObject * _argo0 = 0;
11108 char *_kwnames[] = { "region", NULL };
11109 char _ptemp[128];
11110
11111 self = self;
11112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11113 return NULL;
11114 if (_argo0) {
11115 if (_argo0 == Py_None) { _arg0 = NULL; }
11116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11118 return NULL;
11119 }
11120 }
11121{
474c48f9 11122 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11123 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11124
474c48f9 11125 wxPyEndAllowThreads(__tstate);
4dfaa61e 11126 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11127} if (_result) {
11128 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11129 _resultobj = Py_BuildValue("s",_ptemp);
11130 } else {
11131 Py_INCREF(Py_None);
11132 _resultobj = Py_None;
11133 }
11134 return _resultobj;
11135}
11136
11137#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11138static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11139 PyObject * _resultobj;
11140 wxRegionIterator * _arg0;
11141 PyObject * _argo0 = 0;
11142 char *_kwnames[] = { "self", NULL };
11143
11144 self = self;
11145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11146 return NULL;
11147 if (_argo0) {
11148 if (_argo0 == Py_None) { _arg0 = NULL; }
11149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11151 return NULL;
11152 }
11153 }
11154{
474c48f9 11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11156 delete_wxRegionIterator(_arg0);
11157
474c48f9 11158 wxPyEndAllowThreads(__tstate);
4dfaa61e 11159 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11160} Py_INCREF(Py_None);
11161 _resultobj = Py_None;
11162 return _resultobj;
11163}
11164
11165#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11166static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11167 PyObject * _resultobj;
11168 long _result;
11169 wxRegionIterator * _arg0;
11170 PyObject * _argo0 = 0;
11171 char *_kwnames[] = { "self", NULL };
11172
11173 self = self;
11174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11175 return NULL;
11176 if (_argo0) {
11177 if (_argo0 == Py_None) { _arg0 = NULL; }
11178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11180 return NULL;
11181 }
11182 }
11183{
474c48f9 11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11185 _result = (long )wxRegionIterator_GetX(_arg0);
11186
474c48f9 11187 wxPyEndAllowThreads(__tstate);
4dfaa61e 11188 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11189} _resultobj = Py_BuildValue("l",_result);
11190 return _resultobj;
11191}
11192
11193#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11194static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11195 PyObject * _resultobj;
11196 long _result;
11197 wxRegionIterator * _arg0;
11198 PyObject * _argo0 = 0;
11199 char *_kwnames[] = { "self", NULL };
11200
11201 self = self;
11202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11203 return NULL;
11204 if (_argo0) {
11205 if (_argo0 == Py_None) { _arg0 = NULL; }
11206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11208 return NULL;
11209 }
11210 }
11211{
474c48f9 11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11213 _result = (long )wxRegionIterator_GetY(_arg0);
11214
474c48f9 11215 wxPyEndAllowThreads(__tstate);
4dfaa61e 11216 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11217} _resultobj = Py_BuildValue("l",_result);
11218 return _resultobj;
11219}
11220
11221#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11222static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11223 PyObject * _resultobj;
11224 long _result;
11225 wxRegionIterator * _arg0;
11226 PyObject * _argo0 = 0;
11227 char *_kwnames[] = { "self", NULL };
11228
11229 self = self;
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11231 return NULL;
11232 if (_argo0) {
11233 if (_argo0 == Py_None) { _arg0 = NULL; }
11234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11236 return NULL;
11237 }
11238 }
11239{
474c48f9 11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11241 _result = (long )wxRegionIterator_GetW(_arg0);
11242
474c48f9 11243 wxPyEndAllowThreads(__tstate);
4dfaa61e 11244 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11245} _resultobj = Py_BuildValue("l",_result);
11246 return _resultobj;
11247}
11248
11249#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11250static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject * _resultobj;
11252 long _result;
11253 wxRegionIterator * _arg0;
11254 PyObject * _argo0 = 0;
11255 char *_kwnames[] = { "self", NULL };
11256
11257 self = self;
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11259 return NULL;
11260 if (_argo0) {
11261 if (_argo0 == Py_None) { _arg0 = NULL; }
11262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11264 return NULL;
11265 }
11266 }
11267{
474c48f9 11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11269 _result = (long )wxRegionIterator_GetWidth(_arg0);
11270
474c48f9 11271 wxPyEndAllowThreads(__tstate);
4dfaa61e 11272 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11273} _resultobj = Py_BuildValue("l",_result);
11274 return _resultobj;
11275}
11276
11277#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11278static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11279 PyObject * _resultobj;
11280 long _result;
11281 wxRegionIterator * _arg0;
11282 PyObject * _argo0 = 0;
11283 char *_kwnames[] = { "self", NULL };
11284
11285 self = self;
11286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11287 return NULL;
11288 if (_argo0) {
11289 if (_argo0 == Py_None) { _arg0 = NULL; }
11290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11292 return NULL;
11293 }
11294 }
11295{
474c48f9 11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11297 _result = (long )wxRegionIterator_GetH(_arg0);
11298
474c48f9 11299 wxPyEndAllowThreads(__tstate);
4dfaa61e 11300 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11301} _resultobj = Py_BuildValue("l",_result);
11302 return _resultobj;
11303}
11304
11305#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11306static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11307 PyObject * _resultobj;
11308 long _result;
11309 wxRegionIterator * _arg0;
11310 PyObject * _argo0 = 0;
11311 char *_kwnames[] = { "self", NULL };
11312
11313 self = self;
11314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
11315 return NULL;
11316 if (_argo0) {
11317 if (_argo0 == Py_None) { _arg0 = NULL; }
11318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11320 return NULL;
11321 }
11322 }
11323{
474c48f9 11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11325 _result = (long )wxRegionIterator_GetHeight(_arg0);
11326
474c48f9 11327 wxPyEndAllowThreads(__tstate);
4dfaa61e 11328 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11329} _resultobj = Py_BuildValue("l",_result);
11330 return _resultobj;
11331}
11332
11333#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11334static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11335 PyObject * _resultobj;
11336 wxRect * _result;
11337 wxRegionIterator * _arg0;
11338 PyObject * _argo0 = 0;
11339 char *_kwnames[] = { "self", NULL };
11340 char _ptemp[128];
11341
11342 self = self;
11343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
11344 return NULL;
11345 if (_argo0) {
11346 if (_argo0 == Py_None) { _arg0 = NULL; }
11347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11349 return NULL;
11350 }
11351 }
11352{
474c48f9 11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11354 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
11355
474c48f9 11356 wxPyEndAllowThreads(__tstate);
4dfaa61e 11357 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11358} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11359 _resultobj = Py_BuildValue("s",_ptemp);
11360 return _resultobj;
11361}
11362
11363#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11364static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject * _resultobj;
11366 bool _result;
11367 wxRegionIterator * _arg0;
11368 PyObject * _argo0 = 0;
11369 char *_kwnames[] = { "self", NULL };
11370
11371 self = self;
11372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11373 return NULL;
11374 if (_argo0) {
11375 if (_argo0 == Py_None) { _arg0 = NULL; }
11376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11378 return NULL;
11379 }
11380 }
11381{
474c48f9 11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11383 _result = (bool )wxRegionIterator_HaveRects(_arg0);
11384
474c48f9 11385 wxPyEndAllowThreads(__tstate);
4dfaa61e 11386 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11387} _resultobj = Py_BuildValue("i",_result);
11388 return _resultobj;
11389}
11390
11391#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11392static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11393 PyObject * _resultobj;
11394 wxRegionIterator * _arg0;
11395 PyObject * _argo0 = 0;
11396 char *_kwnames[] = { "self", NULL };
11397
11398 self = self;
11399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11400 return NULL;
11401 if (_argo0) {
11402 if (_argo0 == Py_None) { _arg0 = NULL; }
11403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11405 return NULL;
11406 }
11407 }
11408{
474c48f9 11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11410 wxRegionIterator_Reset(_arg0);
11411
474c48f9 11412 wxPyEndAllowThreads(__tstate);
4dfaa61e 11413 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11414} Py_INCREF(Py_None);
11415 _resultobj = Py_None;
11416 return _resultobj;
11417}
11418
11419static void wxRegionIterator_Next(wxRegionIterator *self) {
11420 (*self) ++;
11421 }
11422static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject * _resultobj;
11424 wxRegionIterator * _arg0;
11425 PyObject * _argo0 = 0;
11426 char *_kwnames[] = { "self", NULL };
11427
11428 self = self;
11429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11430 return NULL;
11431 if (_argo0) {
11432 if (_argo0 == Py_None) { _arg0 = NULL; }
11433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11435 return NULL;
11436 }
11437 }
11438{
474c48f9 11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9df61a29
RD
11440 wxRegionIterator_Next(_arg0);
11441
474c48f9 11442 wxPyEndAllowThreads(__tstate);
4dfaa61e 11443 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11444} Py_INCREF(Py_None);
11445 _resultobj = Py_None;
11446 return _resultobj;
11447}
11448
70551f47 11449static PyMethodDef gdicMethods[] = {
9df61a29
RD
11450 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11451 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11452 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11453 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11454 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11455 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11456 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11457 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11458 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11459 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11460 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11461 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11462 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11463 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11464 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11465 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11466 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11467 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11468 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11469 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11470 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11471 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11472 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11473 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11474 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11475 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11476 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11477 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11478 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11479 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
11480 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11481 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
11482 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11483 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11484 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11485 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11486 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11487 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11488 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11489 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11490 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11491 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11492 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11493 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11494 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11495 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11496 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11497 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11498 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11499 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11500 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11501 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11502 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
107e4716 11503 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
2fc99549 11504 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11505 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
11506 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11507 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
3bcd5e1c
RD
11508 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11509 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11510 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11511 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11512 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
e02c03a4
RD
11513 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11514 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11515 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11516 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11517 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11518 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11519 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11520 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11521 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11522 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11523 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11524 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11525 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11526 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11527 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11528 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11529 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11530 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11531 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11532 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11533 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11534 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
059a841c 11535 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11536 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11537 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11538 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11539 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11540 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11541 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11542 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11543 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11544 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11545 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11546 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11547 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11548 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11549 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11550 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
11551 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11552 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11553 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11554 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11555 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11556 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11557 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11558 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11559 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11560 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11561 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11562 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11563 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11564 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11565 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11566 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11567 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11568 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11569 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11570 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11571 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11572 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11573 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11574 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11575 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
56f5d962 11576 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11577 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11578 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11579 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11580 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11581 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
11582 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11583 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11584 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11585 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11586 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11587 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11588 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11589 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11590 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11591 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11592 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11593 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11594 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11595 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11596 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11597 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11598 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11599 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11600 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11601 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11602 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11603 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11604 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11605 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11606 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11607 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11608 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
107e4716 11609 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11610 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11611 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11612 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11613 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
11614 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11615 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11616 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
56f5d962 11617 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11618 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11619 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11620 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11621 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11622 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11623 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11624 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11625 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11626 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11627 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11628 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11629 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
107e4716 11630 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11631 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
11632 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
11633 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11634 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11635 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11636 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11637 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11638 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11639 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11640 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11641 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11642 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11643 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
11644 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
11645 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11646 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11647 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
134d79dc
RD
11648 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
11649 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
11650 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
1893b029 11651 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11652 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
134d79dc 11653 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
107e4716 11654 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11655 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11656 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11657 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11658 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11659 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11660 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11661 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11662 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
db34b2d4 11663 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
134d79dc 11664 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
059a841c 11665 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
107e4716 11666 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c 11667 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11668 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11669 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11670 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
d29aba2f 11671 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11672 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c 11673 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
107e4716 11674 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11675 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
11676 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
11677 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
11678 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
11679 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
11680 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
11681 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
11682 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
11683 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
11684 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
11685 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11686 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11687 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
11688 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11689 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
11690 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
11691 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11692 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
11693 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
11694 { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
11695 { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11696 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
11697 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11698 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716 11699 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11700 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
11701 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
11702 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
11703 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
11704 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11705 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
11706 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11707 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
11708 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11709 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
107e4716 11710 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
65191ae8 11711 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11712 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11713 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
11714 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11715 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11716 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
11717 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
11718 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
11719 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
107e4716 11720 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
107e4716 11721 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 11722 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11723 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
11724 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11725 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
11726 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11727 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
11728 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
11729 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
11730 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
11731 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11732 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
11733 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
11734 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11735 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
11736 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
107e4716 11737 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
9d6da64a 11738 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11739 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
11740 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
107e4716 11741 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
11742 { NULL, NULL }
11743};
2d091820
RD
11744#ifdef __cplusplus
11745}
11746#endif
11747/*
11748 * This table is used by the pointer type-checker
11749 */
11750static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 11751 { "_signed_long","_long",0},
4120ef2b 11752 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
11753 { "_wxPrintQuality","_int",0},
11754 { "_wxPrintQuality","_signed_int",0},
11755 { "_wxPrintQuality","_unsigned_int",0},
11756 { "_wxPrintQuality","_wxWindowID",0},
11757 { "_wxPrintQuality","_uint",0},
11758 { "_wxPrintQuality","_EBool",0},
11759 { "_wxPrintQuality","_size_t",0},
c368d904 11760 { "_wxPrintQuality","_time_t",0},
65191ae8 11761 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
2d091820 11762 { "_byte","_unsigned_char",0},
2d091820
RD
11763 { "_long","_unsigned_long",0},
11764 { "_long","_signed_long",0},
9df61a29 11765 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
9df61a29 11766 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
9df61a29 11767 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
65191ae8 11768 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
9df61a29 11769 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
9df61a29 11770 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
9df61a29 11771 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
9df61a29 11772 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
9df61a29 11773 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
2d091820 11774 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
2d091820 11775 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
2d091820 11776 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
2d091820 11777 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
2d091820 11778 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
4120ef2b 11779 { "_size_t","_wxCoord",0},
2d091820 11780 { "_size_t","_wxPrintQuality",0},
c368d904 11781 { "_size_t","_time_t",0},
2d091820
RD
11782 { "_size_t","_unsigned_int",0},
11783 { "_size_t","_int",0},
11784 { "_size_t","_wxWindowID",0},
11785 { "_size_t","_uint",0},
4120ef2b 11786 { "_uint","_wxCoord",0},
2d091820 11787 { "_uint","_wxPrintQuality",0},
c368d904 11788 { "_uint","_time_t",0},
2d091820
RD
11789 { "_uint","_size_t",0},
11790 { "_uint","_unsigned_int",0},
11791 { "_uint","_int",0},
11792 { "_uint","_wxWindowID",0},
f6bcfd97 11793 { "_wxChar","_char",0},
f6bcfd97 11794 { "_char","_wxChar",0},
059a841c 11795 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 11796 { "_EBool","_wxCoord",0},
2d091820
RD
11797 { "_EBool","_wxPrintQuality",0},
11798 { "_EBool","_signed_int",0},
11799 { "_EBool","_int",0},
11800 { "_EBool","_wxWindowID",0},
2d091820 11801 { "_unsigned_long","_long",0},
059a841c 11802 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 11803 { "_signed_int","_wxCoord",0},
2d091820
RD
11804 { "_signed_int","_wxPrintQuality",0},
11805 { "_signed_int","_EBool",0},
11806 { "_signed_int","_wxWindowID",0},
11807 { "_signed_int","_int",0},
2d091820
RD
11808 { "_WXTYPE","_short",0},
11809 { "_WXTYPE","_signed_short",0},
11810 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
11811 { "_unsigned_short","_WXTYPE",0},
11812 { "_unsigned_short","_short",0},
9df61a29 11813 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
9df61a29 11814 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
9df61a29 11815 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
9df61a29 11816 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
9df61a29 11817 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
9df61a29 11818 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
9df61a29 11819 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
9df61a29 11820 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
9df61a29 11821 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
9df61a29 11822 { "_wxObject","_wxDC",SwigwxDCTowxObject},
65191ae8 11823 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
9df61a29 11824 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
9df61a29 11825 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
65191ae8 11826 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
9df61a29 11827 { "_wxObject","_wxPen",SwigwxPenTowxObject},
9df61a29 11828 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
9df61a29 11829 { "_wxObject","_wxColour",SwigwxColourTowxObject},
9df61a29 11830 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
9df61a29 11831 { "_wxObject","_wxFont",SwigwxFontTowxObject},
9df61a29 11832 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
9df61a29 11833 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
9df61a29 11834 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
9df61a29 11835 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
9df61a29 11836 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
2d091820
RD
11837 { "_signed_short","_WXTYPE",0},
11838 { "_signed_short","_short",0},
2d091820 11839 { "_unsigned_char","_byte",0},
4120ef2b 11840 { "_unsigned_int","_wxCoord",0},
2d091820 11841 { "_unsigned_int","_wxPrintQuality",0},
c368d904 11842 { "_unsigned_int","_time_t",0},
2d091820
RD
11843 { "_unsigned_int","_size_t",0},
11844 { "_unsigned_int","_uint",0},
11845 { "_unsigned_int","_wxWindowID",0},
11846 { "_unsigned_int","_int",0},
2d091820
RD
11847 { "_short","_WXTYPE",0},
11848 { "_short","_unsigned_short",0},
11849 { "_short","_signed_short",0},
4120ef2b 11850 { "_wxWindowID","_wxCoord",0},
2d091820 11851 { "_wxWindowID","_wxPrintQuality",0},
c368d904 11852 { "_wxWindowID","_time_t",0},
2d091820
RD
11853 { "_wxWindowID","_size_t",0},
11854 { "_wxWindowID","_EBool",0},
11855 { "_wxWindowID","_uint",0},
11856 { "_wxWindowID","_int",0},
11857 { "_wxWindowID","_signed_int",0},
11858 { "_wxWindowID","_unsigned_int",0},
4120ef2b 11859 { "_int","_wxCoord",0},
2d091820 11860 { "_int","_wxPrintQuality",0},
c368d904 11861 { "_int","_time_t",0},
2d091820
RD
11862 { "_int","_size_t",0},
11863 { "_int","_EBool",0},
11864 { "_int","_uint",0},
11865 { "_int","_wxWindowID",0},
11866 { "_int","_unsigned_int",0},
11867 { "_int","_signed_int",0},
c368d904
RD
11868 { "_time_t","_wxCoord",0},
11869 { "_time_t","_wxPrintQuality",0},
11870 { "_time_t","_unsigned_int",0},
11871 { "_time_t","_int",0},
11872 { "_time_t","_wxWindowID",0},
11873 { "_time_t","_uint",0},
11874 { "_time_t","_size_t",0},
4120ef2b
RD
11875 { "_wxCoord","_int",0},
11876 { "_wxCoord","_signed_int",0},
11877 { "_wxCoord","_unsigned_int",0},
11878 { "_wxCoord","_wxWindowID",0},
11879 { "_wxCoord","_uint",0},
11880 { "_wxCoord","_EBool",0},
11881 { "_wxCoord","_size_t",0},
c368d904 11882 { "_wxCoord","_time_t",0},
4120ef2b 11883 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
11884{0,0,0}};
11885
70551f47
RD
11886static PyObject *SWIG_globals;
11887#ifdef __cplusplus
11888extern "C"
11889#endif
2d091820 11890SWIGEXPORT(void) initgdic() {
70551f47
RD
11891 PyObject *m, *d;
11892 SWIG_globals = SWIG_newvarlink();
11893 m = Py_InitModule("gdic", gdicMethods);
11894 d = PyModule_GetDict(m);
059a841c
RD
11895 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
11896 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
11897 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
11898 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
11899 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
11900 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
11901 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
11902 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
11903 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
11904 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
11905 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
11906 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
11907 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
11908 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
11909 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
11910 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
134d79dc
RD
11911 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
11912 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
11913 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
11914 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
11915 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
11916 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
11917 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
11918 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
11919 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
11920 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
11921 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
11922 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
11923 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
11924 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
11925 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
11926 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
11927 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
059a841c 11928 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
134d79dc
RD
11929 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
11930 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
11931 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
11932 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
11933 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
11934 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
11935 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
11936 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
059a841c 11937 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
a57d56d6
RD
11938 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
11939 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
11940 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
11941 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
134d79dc
RD
11942 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
11943 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
11944 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
059a841c
RD
11945 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
11946 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
11947 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
11948 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
11949 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
11950 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
11951 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
11952 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
11953 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
134d79dc 11954 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
3e212503
RD
11955 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
11956 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
11957 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
11958 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
11959 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
11960 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
11961 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
11962 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
11963 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
11964 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
70551f47
RD
11965 PyDict_SetItemString(d,"cvar", SWIG_globals);
11966 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
11967 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
11968 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
11969 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
11970 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
11971 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
11972 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
11973 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
11974 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
11975 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
11976 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
11977 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
11978 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
11979 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
11980 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
11981 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
11982 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
11983 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
11984 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
11985 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
11986 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
11987 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
11988 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
11989 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
11990 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
11991 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
11992 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
11993 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
11994 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
11995 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
11996 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
11997 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
11998 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
11999 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12000 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12001 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12002 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12003 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12004 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12005 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12006 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12007 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
5e40f9dd
RD
12008 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12009 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12010 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12011 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
2d091820
RD
12012{
12013 int i;
12014 for (i = 0; _swig_mapping[i].n1; i++)
12015 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12016}
70551f47 12017}