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