]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.cpp
Fixed compilation error and a stupid typo
[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}
fbcadfca
RD
91 // Implementations of some alternate "constructors"
92
70551f47
RD
93 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
94 return new wxBitmap(width, height, depth);
95 }
96
fbcadfca
RD
97 static char** ConvertListOfStrings(PyObject* listOfStrings) {
98 char** cArray = NULL;
99 int count;
100
101 if (!PyList_Check(listOfStrings)) {
102 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
103 return NULL;
104 }
105 count = PyList_Size(listOfStrings);
106 cArray = new char*[count];
107
108 for(int x=0; x<count; x++) {
109 // TODO: Need some validation and error checking here
110 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
111 }
112 return cArray;
113 }
114
9d6da64a 115
fbcadfca
RD
116 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
117 char** cArray = NULL;
118 wxBitmap* bmp;
119
120 cArray = ConvertListOfStrings(listOfStrings);
121 if (! cArray)
122 return NULL;
123 bmp = new wxBitmap(cArray);
124 delete [] cArray;
125 return bmp;
126 }
127
128
129 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
130 return new wxBitmap(icon);
131 }
132
133
9d6da64a
RD
134 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
135 return new wxBitmap(bits, width, height, depth);
136 }
9e689c06 137
7ff49f0c 138
9d6da64a
RD
139// #ifdef __WXMSW__
140// wxBitmap* wxBitmapFromData(PyObject* data, long type,
141// int width, int height, int depth = 1) {
142// if (! PyString_Check(data)) {
143// PyErr_SetString(PyExc_TypeError, "Expected string object");
144// return NULL;
145// }
146// return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
147// }
148// #endif
8bf5d46e 149
70551f47
RD
150 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
151 return new wxMask(bitmap, colour);
fbcadfca
RD
152 }
153 // Implementations of some alternate "constructors"
154 wxIcon* wxEmptyIcon() {
155 return new wxIcon();
156 }
157
158 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
159 char** cArray = NULL;
160 wxIcon* icon;
161
162 cArray = ConvertListOfStrings(listOfStrings);
163 if (! cArray)
164 return NULL;
165 icon = new wxIcon(cArray);
166 delete [] cArray;
167 return icon;
70551f47 168 }
4be61064
RD
169
170 wxIcon* wxIconFromBitmap(const wxBitmap& bmp) {
171 wxIcon* icon = new wxIcon();
172 icon->CopyFromBitmap(bmp);
173 return icon;
174 }
70551f47 175 // Alternate 'constructor'
b26e2dc4 176 wxCursor* wxPyStockCursor(int id) {
70551f47
RD
177 return new wxCursor(id);
178 }
179 // Alternate 'constructor'
180 wxColour* wxNamedColour(const wxString& colorName) {
181 return new wxColour(colorName);
182 }
65191ae8
RD
183
184class wxPyPen : public wxPen {
185public:
186 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
187 : wxPen(colour, width, style)
188 { m_dash = NULL; }
189 ~wxPyPen() {
190 if (m_dash)
05f30eec 191 delete [] m_dash;
65191ae8
RD
192 }
193
194 void SetDashes(int nb_dashes, const wxDash *dash) {
05f30eec
RD
195 if (m_dash)
196 delete [] m_dash;
65191ae8 197 m_dash = new wxDash[nb_dashes];
05f30eec 198 for (int i=0; i<nb_dashes; i++) {
65191ae8 199 m_dash[i] = dash[i];
05f30eec 200 }
65191ae8
RD
201 wxPen::SetDashes(nb_dashes, m_dash);
202 }
203
204private:
205 wxDash* m_dash;
206};
3bcd5e1c
RD
207
208static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
209 *x1 = dc->MinX();
210 *y1 = dc->MinY();
211 *x2 = dc->MaxX();
212 *y2 = dc->MaxY();
213}
70551f47
RD
214 // Alternate 'constructor'
215 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
216 return new wxMemoryDC(oldDC);
217 }
21f8d7ea
RD
218
219#if 0
70551f47
RD
220extern wxFont * wxNORMAL_FONT;
221extern wxFont * wxSMALL_FONT;
222extern wxFont * wxITALIC_FONT;
223extern wxFont * wxSWISS_FONT;
224extern wxPen * wxRED_PEN;
225extern wxPen * wxCYAN_PEN;
226extern wxPen * wxGREEN_PEN;
227extern wxPen * wxBLACK_PEN;
228extern wxPen * wxWHITE_PEN;
229extern wxPen * wxTRANSPARENT_PEN;
230extern wxPen * wxBLACK_DASHED_PEN;
231extern wxPen * wxGREY_PEN;
232extern wxPen * wxMEDIUM_GREY_PEN;
233extern wxPen * wxLIGHT_GREY_PEN;
234extern wxBrush * wxBLUE_BRUSH;
235extern wxBrush * wxGREEN_BRUSH;
236extern wxBrush * wxWHITE_BRUSH;
237extern wxBrush * wxBLACK_BRUSH;
238extern wxBrush * wxTRANSPARENT_BRUSH;
239extern wxBrush * wxCYAN_BRUSH;
240extern wxBrush * wxRED_BRUSH;
241extern wxBrush * wxGREY_BRUSH;
242extern wxBrush * wxMEDIUM_GREY_BRUSH;
243extern wxBrush * wxLIGHT_GREY_BRUSH;
244extern wxColour * wxBLACK;
245extern wxColour * wxWHITE;
246extern wxColour * wxRED;
247extern wxColour * wxBLUE;
248extern wxColour * wxGREEN;
249extern wxColour * wxCYAN;
250extern wxColour * wxLIGHT_GREY;
251extern wxCursor * wxSTANDARD_CURSOR;
252extern wxCursor * wxHOURGLASS_CURSOR;
253extern wxCursor * wxCROSS_CURSOR;
254extern wxBitmap wxNullBitmap;
255extern wxIcon wxNullIcon;
256extern wxCursor wxNullCursor;
257extern wxPen wxNullPen;
258extern wxBrush wxNullBrush;
259extern wxPalette wxNullPalette;
260extern wxFont wxNullFont;
261extern wxColour wxNullColour;
5e40f9dd
RD
262extern wxFontList * wxTheFontList;
263extern wxPenList * wxThePenList;
65191ae8 264extern wxBrushList * wxTheBrushList;
5e40f9dd 265extern wxColourDatabase * wxTheColourDatabase;
21f8d7ea 266
2d091820
RD
267#endif
268#ifdef __cplusplus
269extern "C" {
21f8d7ea 270#endif
107e4716 271static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
272 PyObject * _resultobj;
273 wxBitmap * _result;
274 int _arg0;
275 int _arg1;
2d091820 276 int _arg2 = (int ) -1;
107e4716 277 char *_kwnames[] = { "width","height","depth", NULL };
70551f47
RD
278 char _ptemp[128];
279
280 self = self;
107e4716 281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 282 return NULL;
ab9bc19b 283{
474c48f9 284 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 285 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
ab9bc19b 286
474c48f9 287 wxPyEndAllowThreads(__tstate);
4dfaa61e 288 if (PyErr_Occurred()) return NULL;
2d091820
RD
289} if (_result) {
290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
291 _resultobj = Py_BuildValue("s",_ptemp);
292 } else {
293 Py_INCREF(Py_None);
294 _resultobj = Py_None;
295 }
70551f47
RD
296 return _resultobj;
297}
298
fbcadfca
RD
299static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
300 PyObject * _resultobj;
301 wxBitmap * _result;
302 PyObject * _arg0;
303 PyObject * _obj0 = 0;
304 char *_kwnames[] = { "listOfStrings", NULL };
305 char _ptemp[128];
306
307 self = self;
308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
309 return NULL;
310{
311 _arg0 = _obj0;
312}
313{
474c48f9 314 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 315 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
fbcadfca 316
474c48f9 317 wxPyEndAllowThreads(__tstate);
4dfaa61e 318 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
319} if (_result) {
320 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
321 _resultobj = Py_BuildValue("s",_ptemp);
322 } else {
323 Py_INCREF(Py_None);
324 _resultobj = Py_None;
325 }
326 return _resultobj;
327}
328
329static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
330 PyObject * _resultobj;
331 wxBitmap * _result;
332 wxIcon * _arg0;
333 PyObject * _argo0 = 0;
334 char *_kwnames[] = { "icon", NULL };
335 char _ptemp[128];
336
337 self = self;
338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
339 return NULL;
340 if (_argo0) {
341 if (_argo0 == Py_None) { _arg0 = NULL; }
342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
344 return NULL;
345 }
346 }
347{
474c48f9 348 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 349 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
fbcadfca 350
474c48f9 351 wxPyEndAllowThreads(__tstate);
4dfaa61e 352 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
353} if (_result) {
354 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
355 _resultobj = Py_BuildValue("s",_ptemp);
356 } else {
357 Py_INCREF(Py_None);
358 _resultobj = Py_None;
359 }
360 return _resultobj;
361}
362
9d6da64a
RD
363static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
364 PyObject * _resultobj;
365 wxBitmap * _result;
366 char * _arg0;
367 int _arg1;
368 int _arg2;
369 int _arg3 = (int ) 1;
370 char *_kwnames[] = { "bits","width","height","depth", NULL };
371 char _ptemp[128];
372
373 self = self;
374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
375 return NULL;
376{
474c48f9 377 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 378 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
9d6da64a 379
474c48f9 380 wxPyEndAllowThreads(__tstate);
9d6da64a
RD
381 if (PyErr_Occurred()) return NULL;
382} if (_result) {
383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
384 _resultobj = Py_BuildValue("s",_ptemp);
385 } else {
386 Py_INCREF(Py_None);
387 _resultobj = Py_None;
388 }
389 return _resultobj;
390}
391
107e4716 392static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
393 PyObject * _resultobj;
394 wxMask * _result;
395 wxBitmap * _arg0;
396 wxColour * _arg1;
2d091820 397 PyObject * _argo0 = 0;
f6bcfd97
BP
398 wxColour temp;
399 PyObject * _obj1 = 0;
107e4716 400 char *_kwnames[] = { "bitmap","colour", NULL };
70551f47
RD
401 char _ptemp[128];
402
403 self = self;
f6bcfd97 404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
70551f47 405 return NULL;
2d091820
RD
406 if (_argo0) {
407 if (_argo0 == Py_None) { _arg0 = NULL; }
408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
410 return NULL;
411 }
412 }
f6bcfd97
BP
413{
414 _arg1 = &temp;
415 if (! wxColour_helper(_obj1, &_arg1))
70551f47 416 return NULL;
f6bcfd97 417}
ab9bc19b 418{
474c48f9 419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 420 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
ab9bc19b 421
474c48f9 422 wxPyEndAllowThreads(__tstate);
4dfaa61e 423 if (PyErr_Occurred()) return NULL;
2d091820
RD
424} if (_result) {
425 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
426 _resultobj = Py_BuildValue("s",_ptemp);
427 } else {
428 Py_INCREF(Py_None);
429 _resultobj = Py_None;
430 }
70551f47
RD
431 return _resultobj;
432}
433
fbcadfca
RD
434static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
435 PyObject * _resultobj;
436 wxIcon * _result;
437 char *_kwnames[] = { NULL };
438 char _ptemp[128];
439
440 self = self;
441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
442 return NULL;
443{
474c48f9 444 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 445 _result = (wxIcon *)wxEmptyIcon();
fbcadfca 446
474c48f9 447 wxPyEndAllowThreads(__tstate);
4dfaa61e 448 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
449} if (_result) {
450 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
451 _resultobj = Py_BuildValue("s",_ptemp);
452 } else {
453 Py_INCREF(Py_None);
454 _resultobj = Py_None;
455 }
456 return _resultobj;
457}
458
459static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
460 PyObject * _resultobj;
461 wxIcon * _result;
462 PyObject * _arg0;
463 PyObject * _obj0 = 0;
464 char *_kwnames[] = { "listOfStrings", NULL };
465 char _ptemp[128];
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
469 return NULL;
470{
471 _arg0 = _obj0;
472}
473{
474c48f9 474 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 475 _result = (wxIcon *)wxIconFromXPMData(_arg0);
fbcadfca 476
474c48f9 477 wxPyEndAllowThreads(__tstate);
4dfaa61e 478 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
479} if (_result) {
480 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
481 _resultobj = Py_BuildValue("s",_ptemp);
482 } else {
483 Py_INCREF(Py_None);
484 _resultobj = Py_None;
485 }
486 return _resultobj;
487}
488
4be61064
RD
489static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
490 PyObject * _resultobj;
491 wxIcon * _result;
492 wxBitmap * _arg0;
493 PyObject * _argo0 = 0;
494 char *_kwnames[] = { "bmp", NULL };
495 char _ptemp[128];
496
497 self = self;
498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0))
499 return NULL;
500 if (_argo0) {
501 if (_argo0 == Py_None) { _arg0 = NULL; }
502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p.");
504 return NULL;
505 }
506 }
507{
508 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 509 _result = (wxIcon *)wxIconFromBitmap(*_arg0);
4be61064
RD
510
511 wxPyEndAllowThreads(__tstate);
512 if (PyErr_Occurred()) return NULL;
513} if (_result) {
514 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
515 _resultobj = Py_BuildValue("s",_ptemp);
516 } else {
517 Py_INCREF(Py_None);
518 _resultobj = Py_None;
519 }
520 return _resultobj;
521}
522
107e4716 523static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
524 PyObject * _resultobj;
525 wxCursor * _result;
526 int _arg0;
107e4716 527 char *_kwnames[] = { "id", NULL };
70551f47
RD
528 char _ptemp[128];
529
530 self = self;
107e4716 531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
70551f47 532 return NULL;
ab9bc19b 533{
474c48f9 534 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 535 _result = (wxCursor *)wxPyStockCursor(_arg0);
ab9bc19b 536
474c48f9 537 wxPyEndAllowThreads(__tstate);
4dfaa61e 538 if (PyErr_Occurred()) return NULL;
2d091820
RD
539} if (_result) {
540 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
541 _resultobj = Py_BuildValue("s",_ptemp);
542 } else {
543 Py_INCREF(Py_None);
544 _resultobj = Py_None;
545 }
70551f47
RD
546 return _resultobj;
547}
548
107e4716 549static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
550 PyObject * _resultobj;
551 wxColour * _result;
552 wxString * _arg0;
553 PyObject * _obj0 = 0;
107e4716 554 char *_kwnames[] = { "colorName", NULL };
70551f47
RD
555 char _ptemp[128];
556
557 self = self;
107e4716 558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
70551f47
RD
559 return NULL;
560{
c8bc7bb8
RD
561 _arg0 = wxString_in_helper(_obj0);
562 if (_arg0 == NULL)
70551f47 563 return NULL;
70551f47 564}
ab9bc19b 565{
474c48f9 566 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 567 _result = (wxColour *)wxNamedColour(*_arg0);
ab9bc19b 568
474c48f9 569 wxPyEndAllowThreads(__tstate);
4dfaa61e 570 if (PyErr_Occurred()) return NULL;
2d091820
RD
571} if (_result) {
572 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
573 _resultobj = Py_BuildValue("s",_ptemp);
574 } else {
575 Py_INCREF(Py_None);
576 _resultobj = Py_None;
577 }
70551f47
RD
578{
579 if (_obj0)
580 delete _arg0;
581}
582 return _resultobj;
583}
584
107e4716 585static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
586 PyObject * _resultobj;
587 wxMemoryDC * _result;
588 wxDC * _arg0;
2d091820 589 PyObject * _argo0 = 0;
107e4716 590 char *_kwnames[] = { "oldDC", NULL };
70551f47
RD
591 char _ptemp[128];
592
593 self = self;
107e4716 594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
70551f47 595 return NULL;
2d091820
RD
596 if (_argo0) {
597 if (_argo0 == Py_None) { _arg0 = NULL; }
598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
600 return NULL;
601 }
602 }
ab9bc19b 603{
474c48f9 604 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 605 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
ab9bc19b 606
474c48f9 607 wxPyEndAllowThreads(__tstate);
4dfaa61e 608 if (PyErr_Occurred()) return NULL;
2d091820
RD
609} if (_result) {
610 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
611 _resultobj = Py_BuildValue("s",_ptemp);
612 } else {
613 Py_INCREF(Py_None);
614 _resultobj = Py_None;
615 }
70551f47
RD
616 return _resultobj;
617}
618
619static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
620
621 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
622 return 1;
623}
624
625static PyObject *_wrap_wxNORMAL_FONT_get() {
626 PyObject * pyobj;
627 char ptemp[128];
628
629 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
630 pyobj = PyString_FromString(ptemp);
631 return pyobj;
632}
633
634static int _wrap_wxSMALL_FONT_set(PyObject *val) {
635
636 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
637 return 1;
638}
639
640static PyObject *_wrap_wxSMALL_FONT_get() {
641 PyObject * pyobj;
642 char ptemp[128];
643
644 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
645 pyobj = PyString_FromString(ptemp);
646 return pyobj;
647}
648
649static int _wrap_wxITALIC_FONT_set(PyObject *val) {
650
651 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
652 return 1;
653}
654
655static PyObject *_wrap_wxITALIC_FONT_get() {
656 PyObject * pyobj;
657 char ptemp[128];
658
659 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
660 pyobj = PyString_FromString(ptemp);
661 return pyobj;
662}
663
664static int _wrap_wxSWISS_FONT_set(PyObject *val) {
665
666 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
667 return 1;
668}
669
670static PyObject *_wrap_wxSWISS_FONT_get() {
671 PyObject * pyobj;
672 char ptemp[128];
673
674 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
675 pyobj = PyString_FromString(ptemp);
676 return pyobj;
677}
678
679static int _wrap_wxRED_PEN_set(PyObject *val) {
680
681 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
682 return 1;
683}
684
685static PyObject *_wrap_wxRED_PEN_get() {
686 PyObject * pyobj;
687 char ptemp[128];
688
689 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
690 pyobj = PyString_FromString(ptemp);
691 return pyobj;
692}
693
694static int _wrap_wxCYAN_PEN_set(PyObject *val) {
695
696 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
697 return 1;
698}
699
700static PyObject *_wrap_wxCYAN_PEN_get() {
701 PyObject * pyobj;
702 char ptemp[128];
703
704 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
705 pyobj = PyString_FromString(ptemp);
706 return pyobj;
707}
708
709static int _wrap_wxGREEN_PEN_set(PyObject *val) {
710
711 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
712 return 1;
713}
714
715static PyObject *_wrap_wxGREEN_PEN_get() {
716 PyObject * pyobj;
717 char ptemp[128];
718
719 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
720 pyobj = PyString_FromString(ptemp);
721 return pyobj;
722}
723
724static int _wrap_wxBLACK_PEN_set(PyObject *val) {
725
726 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
727 return 1;
728}
729
730static PyObject *_wrap_wxBLACK_PEN_get() {
731 PyObject * pyobj;
732 char ptemp[128];
733
734 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
735 pyobj = PyString_FromString(ptemp);
736 return pyobj;
737}
738
739static int _wrap_wxWHITE_PEN_set(PyObject *val) {
740
741 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
742 return 1;
743}
744
745static PyObject *_wrap_wxWHITE_PEN_get() {
746 PyObject * pyobj;
747 char ptemp[128];
748
749 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
750 pyobj = PyString_FromString(ptemp);
751 return pyobj;
752}
753
754static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
755
756 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
757 return 1;
758}
759
760static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
761 PyObject * pyobj;
762 char ptemp[128];
763
764 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
765 pyobj = PyString_FromString(ptemp);
766 return pyobj;
767}
768
769static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
770
771 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
772 return 1;
773}
774
775static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
776 PyObject * pyobj;
777 char ptemp[128];
778
779 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
780 pyobj = PyString_FromString(ptemp);
781 return pyobj;
782}
783
784static int _wrap_wxGREY_PEN_set(PyObject *val) {
785
786 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
787 return 1;
788}
789
790static PyObject *_wrap_wxGREY_PEN_get() {
791 PyObject * pyobj;
792 char ptemp[128];
793
794 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
795 pyobj = PyString_FromString(ptemp);
796 return pyobj;
797}
798
799static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
800
801 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
802 return 1;
803}
804
805static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
806 PyObject * pyobj;
807 char ptemp[128];
808
809 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
810 pyobj = PyString_FromString(ptemp);
811 return pyobj;
812}
813
814static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
815
816 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
817 return 1;
818}
819
820static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
821 PyObject * pyobj;
822 char ptemp[128];
823
824 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
825 pyobj = PyString_FromString(ptemp);
826 return pyobj;
827}
828
829static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
830
831 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
832 return 1;
833}
834
835static PyObject *_wrap_wxBLUE_BRUSH_get() {
836 PyObject * pyobj;
837 char ptemp[128];
838
839 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
840 pyobj = PyString_FromString(ptemp);
841 return pyobj;
842}
843
844static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
845
846 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
847 return 1;
848}
849
850static PyObject *_wrap_wxGREEN_BRUSH_get() {
851 PyObject * pyobj;
852 char ptemp[128];
853
854 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
855 pyobj = PyString_FromString(ptemp);
856 return pyobj;
857}
858
859static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
860
861 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
862 return 1;
863}
864
865static PyObject *_wrap_wxWHITE_BRUSH_get() {
866 PyObject * pyobj;
867 char ptemp[128];
868
869 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
870 pyobj = PyString_FromString(ptemp);
871 return pyobj;
872}
873
874static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
875
876 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
877 return 1;
878}
879
880static PyObject *_wrap_wxBLACK_BRUSH_get() {
881 PyObject * pyobj;
882 char ptemp[128];
883
884 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
885 pyobj = PyString_FromString(ptemp);
886 return pyobj;
887}
888
889static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
890
891 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
892 return 1;
893}
894
895static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
896 PyObject * pyobj;
897 char ptemp[128];
898
899 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
900 pyobj = PyString_FromString(ptemp);
901 return pyobj;
902}
903
904static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
905
906 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
907 return 1;
908}
909
910static PyObject *_wrap_wxCYAN_BRUSH_get() {
911 PyObject * pyobj;
912 char ptemp[128];
913
914 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
915 pyobj = PyString_FromString(ptemp);
916 return pyobj;
917}
918
919static int _wrap_wxRED_BRUSH_set(PyObject *val) {
920
921 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
922 return 1;
923}
924
925static PyObject *_wrap_wxRED_BRUSH_get() {
926 PyObject * pyobj;
927 char ptemp[128];
928
929 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
930 pyobj = PyString_FromString(ptemp);
931 return pyobj;
932}
933
934static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
935
936 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
937 return 1;
938}
939
940static PyObject *_wrap_wxGREY_BRUSH_get() {
941 PyObject * pyobj;
942 char ptemp[128];
943
944 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
945 pyobj = PyString_FromString(ptemp);
946 return pyobj;
947}
948
949static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
950
951 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
952 return 1;
953}
954
955static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
956 PyObject * pyobj;
957 char ptemp[128];
958
959 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
960 pyobj = PyString_FromString(ptemp);
961 return pyobj;
962}
963
964static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
965
966 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
967 return 1;
968}
969
970static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
971 PyObject * pyobj;
972 char ptemp[128];
973
974 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
975 pyobj = PyString_FromString(ptemp);
976 return pyobj;
977}
978
979static int _wrap_wxBLACK_set(PyObject *val) {
980
981 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
982 return 1;
983}
984
985static PyObject *_wrap_wxBLACK_get() {
986 PyObject * pyobj;
987 char ptemp[128];
988
989 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
990 pyobj = PyString_FromString(ptemp);
991 return pyobj;
992}
993
994static int _wrap_wxWHITE_set(PyObject *val) {
995
996 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
997 return 1;
998}
999
1000static PyObject *_wrap_wxWHITE_get() {
1001 PyObject * pyobj;
1002 char ptemp[128];
1003
1004 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1005 pyobj = PyString_FromString(ptemp);
1006 return pyobj;
1007}
1008
1009static int _wrap_wxRED_set(PyObject *val) {
1010
1011 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1012 return 1;
1013}
1014
1015static PyObject *_wrap_wxRED_get() {
1016 PyObject * pyobj;
1017 char ptemp[128];
1018
1019 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1020 pyobj = PyString_FromString(ptemp);
1021 return pyobj;
1022}
1023
1024static int _wrap_wxBLUE_set(PyObject *val) {
1025
1026 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1027 return 1;
1028}
1029
1030static PyObject *_wrap_wxBLUE_get() {
1031 PyObject * pyobj;
1032 char ptemp[128];
1033
1034 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1035 pyobj = PyString_FromString(ptemp);
1036 return pyobj;
1037}
1038
1039static int _wrap_wxGREEN_set(PyObject *val) {
1040
1041 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1042 return 1;
1043}
1044
1045static PyObject *_wrap_wxGREEN_get() {
1046 PyObject * pyobj;
1047 char ptemp[128];
1048
1049 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1050 pyobj = PyString_FromString(ptemp);
1051 return pyobj;
1052}
1053
1054static int _wrap_wxCYAN_set(PyObject *val) {
1055
1056 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1057 return 1;
1058}
1059
1060static PyObject *_wrap_wxCYAN_get() {
1061 PyObject * pyobj;
1062 char ptemp[128];
1063
1064 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1065 pyobj = PyString_FromString(ptemp);
1066 return pyobj;
1067}
1068
1069static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1070
1071 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1072 return 1;
1073}
1074
1075static PyObject *_wrap_wxLIGHT_GREY_get() {
1076 PyObject * pyobj;
1077 char ptemp[128];
1078
1079 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1080 pyobj = PyString_FromString(ptemp);
1081 return pyobj;
1082}
1083
1084static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1085
1086 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1087 return 1;
1088}
1089
1090static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1091 PyObject * pyobj;
1092 char ptemp[128];
1093
1094 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1095 pyobj = PyString_FromString(ptemp);
1096 return pyobj;
1097}
1098
1099static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1100
1101 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1102 return 1;
1103}
1104
1105static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1106 PyObject * pyobj;
1107 char ptemp[128];
1108
1109 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1110 pyobj = PyString_FromString(ptemp);
1111 return pyobj;
1112}
1113
1114static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1115
1116 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1117 return 1;
1118}
1119
1120static PyObject *_wrap_wxCROSS_CURSOR_get() {
1121 PyObject * pyobj;
1122 char ptemp[128];
1123
1124 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1125 pyobj = PyString_FromString(ptemp);
1126 return pyobj;
1127}
1128
1129static int _wrap_wxNullBitmap_set(PyObject *val) {
1130
1131 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1132 return 1;
1133}
1134
1135static PyObject *_wrap_wxNullBitmap_get() {
1136 PyObject * pyobj;
1137 char ptemp[128];
1138
1139 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1140 pyobj = PyString_FromString(ptemp);
1141 return pyobj;
1142}
1143
1144static int _wrap_wxNullIcon_set(PyObject *val) {
1145
1146 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1147 return 1;
1148}
1149
1150static PyObject *_wrap_wxNullIcon_get() {
1151 PyObject * pyobj;
1152 char ptemp[128];
1153
1154 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1155 pyobj = PyString_FromString(ptemp);
1156 return pyobj;
1157}
1158
1159static int _wrap_wxNullCursor_set(PyObject *val) {
1160
1161 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1162 return 1;
1163}
1164
1165static PyObject *_wrap_wxNullCursor_get() {
1166 PyObject * pyobj;
1167 char ptemp[128];
1168
1169 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1170 pyobj = PyString_FromString(ptemp);
1171 return pyobj;
1172}
1173
1174static int _wrap_wxNullPen_set(PyObject *val) {
1175
1176 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1177 return 1;
1178}
1179
1180static PyObject *_wrap_wxNullPen_get() {
1181 PyObject * pyobj;
1182 char ptemp[128];
1183
1184 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1185 pyobj = PyString_FromString(ptemp);
1186 return pyobj;
1187}
1188
1189static int _wrap_wxNullBrush_set(PyObject *val) {
1190
1191 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1192 return 1;
1193}
1194
1195static PyObject *_wrap_wxNullBrush_get() {
1196 PyObject * pyobj;
1197 char ptemp[128];
1198
1199 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1200 pyobj = PyString_FromString(ptemp);
1201 return pyobj;
1202}
1203
1204static int _wrap_wxNullPalette_set(PyObject *val) {
1205
1206 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1207 return 1;
1208}
1209
1210static PyObject *_wrap_wxNullPalette_get() {
1211 PyObject * pyobj;
1212 char ptemp[128];
1213
1214 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1215 pyobj = PyString_FromString(ptemp);
1216 return pyobj;
1217}
1218
1219static int _wrap_wxNullFont_set(PyObject *val) {
1220
1221 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1222 return 1;
1223}
1224
1225static PyObject *_wrap_wxNullFont_get() {
1226 PyObject * pyobj;
1227 char ptemp[128];
1228
1229 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1230 pyobj = PyString_FromString(ptemp);
1231 return pyobj;
1232}
1233
1234static int _wrap_wxNullColour_set(PyObject *val) {
1235
1236 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1237 return 1;
1238}
1239
1240static PyObject *_wrap_wxNullColour_get() {
1241 PyObject * pyobj;
1242 char ptemp[128];
1243
1244 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1245 pyobj = PyString_FromString(ptemp);
1246 return pyobj;
1247}
1248
5e40f9dd
RD
1249static int _wrap_wxTheFontList_set(PyObject *val) {
1250
1251 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1252 return 1;
1253}
1254
1255static PyObject *_wrap_wxTheFontList_get() {
1256 PyObject * pyobj;
1257 char ptemp[128];
1258
1259 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1260 pyobj = PyString_FromString(ptemp);
1261 return pyobj;
1262}
1263
1264static int _wrap_wxThePenList_set(PyObject *val) {
1265
1266 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1267 return 1;
1268}
1269
1270static PyObject *_wrap_wxThePenList_get() {
1271 PyObject * pyobj;
1272 char ptemp[128];
1273
1274 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1275 pyobj = PyString_FromString(ptemp);
1276 return pyobj;
1277}
1278
1279static int _wrap_wxTheBrushList_set(PyObject *val) {
1280
1281 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1282 return 1;
1283}
1284
1285static PyObject *_wrap_wxTheBrushList_get() {
1286 PyObject * pyobj;
1287 char ptemp[128];
1288
65191ae8 1289 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
5e40f9dd
RD
1290 pyobj = PyString_FromString(ptemp);
1291 return pyobj;
1292}
1293
1294static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1295
1296 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1297 return 1;
1298}
1299
1300static PyObject *_wrap_wxTheColourDatabase_get() {
1301 PyObject * pyobj;
1302 char ptemp[128];
1303
1304 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1305 pyobj = PyString_FromString(ptemp);
1306 return pyobj;
1307}
1308
9df61a29
RD
1309static void *SwigwxGDIObjectTowxObject(void *ptr) {
1310 wxGDIObject *src;
1311 wxObject *dest;
1312 src = (wxGDIObject *) ptr;
1313 dest = (wxObject *) src;
1314 return (void *) dest;
1315}
1316
1317#define new_wxGDIObject() (new wxGDIObject())
1318static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1319 PyObject * _resultobj;
1320 wxGDIObject * _result;
1321 char *_kwnames[] = { NULL };
1322 char _ptemp[128];
1323
1324 self = self;
1325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1326 return NULL;
1327{
474c48f9 1328 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1329 _result = (wxGDIObject *)new_wxGDIObject();
9df61a29 1330
474c48f9 1331 wxPyEndAllowThreads(__tstate);
4dfaa61e 1332 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1333} if (_result) {
1334 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1335 _resultobj = Py_BuildValue("s",_ptemp);
1336 } else {
1337 Py_INCREF(Py_None);
1338 _resultobj = Py_None;
1339 }
1340 return _resultobj;
1341}
1342
1343#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1344static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1345 PyObject * _resultobj;
1346 wxGDIObject * _arg0;
1347 PyObject * _argo0 = 0;
1348 char *_kwnames[] = { "self", NULL };
1349
1350 self = self;
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1352 return NULL;
1353 if (_argo0) {
1354 if (_argo0 == Py_None) { _arg0 = NULL; }
1355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1357 return NULL;
1358 }
1359 }
1360{
474c48f9 1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1362 delete_wxGDIObject(_arg0);
9df61a29 1363
474c48f9 1364 wxPyEndAllowThreads(__tstate);
4dfaa61e 1365 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1366} Py_INCREF(Py_None);
1367 _resultobj = Py_None;
1368 return _resultobj;
1369}
1370
1371#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1372static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1373 PyObject * _resultobj;
1374 bool _result;
1375 wxGDIObject * _arg0;
1376 PyObject * _argo0 = 0;
1377 char *_kwnames[] = { "self", NULL };
1378
1379 self = self;
1380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1381 return NULL;
1382 if (_argo0) {
1383 if (_argo0 == Py_None) { _arg0 = NULL; }
1384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1386 return NULL;
1387 }
1388 }
1389{
474c48f9 1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1391 _result = (bool )wxGDIObject_GetVisible(_arg0);
9df61a29 1392
474c48f9 1393 wxPyEndAllowThreads(__tstate);
4dfaa61e 1394 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1395} _resultobj = Py_BuildValue("i",_result);
1396 return _resultobj;
1397}
1398
1399#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1400static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1401 PyObject * _resultobj;
1402 wxGDIObject * _arg0;
1403 bool _arg1;
1404 PyObject * _argo0 = 0;
1405 int tempbool1;
1406 char *_kwnames[] = { "self","visible", NULL };
1407
1408 self = self;
1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1410 return NULL;
1411 if (_argo0) {
1412 if (_argo0 == Py_None) { _arg0 = NULL; }
1413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1415 return NULL;
1416 }
1417 }
1418 _arg1 = (bool ) tempbool1;
1419{
474c48f9 1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1421 wxGDIObject_SetVisible(_arg0,_arg1);
9df61a29 1422
474c48f9 1423 wxPyEndAllowThreads(__tstate);
4dfaa61e 1424 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1425} Py_INCREF(Py_None);
1426 _resultobj = Py_None;
1427 return _resultobj;
1428}
1429
1430#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1431static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1432 PyObject * _resultobj;
1433 bool _result;
1434 wxGDIObject * _arg0;
1435 PyObject * _argo0 = 0;
1436 char *_kwnames[] = { "self", NULL };
1437
1438 self = self;
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1440 return NULL;
1441 if (_argo0) {
1442 if (_argo0 == Py_None) { _arg0 = NULL; }
1443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1445 return NULL;
1446 }
1447 }
1448{
474c48f9 1449 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1450 _result = (bool )wxGDIObject_IsNull(_arg0);
9df61a29 1451
474c48f9 1452 wxPyEndAllowThreads(__tstate);
4dfaa61e 1453 if (PyErr_Occurred()) return NULL;
9df61a29
RD
1454} _resultobj = Py_BuildValue("i",_result);
1455 return _resultobj;
1456}
1457
1458static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1459 wxBitmap *src;
1460 wxGDIObject *dest;
1461 src = (wxBitmap *) ptr;
1462 dest = (wxGDIObject *) src;
1463 return (void *) dest;
1464}
1465
1466static void *SwigwxBitmapTowxObject(void *ptr) {
1467 wxBitmap *src;
1468 wxObject *dest;
1469 src = (wxBitmap *) ptr;
1470 dest = (wxObject *) src;
1471 return (void *) dest;
1472}
1473
70551f47 1474#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
107e4716 1475static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1476 PyObject * _resultobj;
1477 wxBitmap * _result;
1478 wxString * _arg0;
f0972d1e 1479 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
70551f47 1480 PyObject * _obj0 = 0;
107e4716 1481 char *_kwnames[] = { "name","type", NULL };
70551f47
RD
1482 char _ptemp[128];
1483
1484 self = self;
5c0282d5 1485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
70551f47
RD
1486 return NULL;
1487{
c8bc7bb8
RD
1488 _arg0 = wxString_in_helper(_obj0);
1489 if (_arg0 == NULL)
70551f47 1490 return NULL;
70551f47 1491}
ab9bc19b 1492{
474c48f9 1493 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1494 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
ab9bc19b 1495
474c48f9 1496 wxPyEndAllowThreads(__tstate);
4dfaa61e 1497 if (PyErr_Occurred()) return NULL;
2d091820
RD
1498} if (_result) {
1499 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1500 _resultobj = Py_BuildValue("s",_ptemp);
1501 } else {
1502 Py_INCREF(Py_None);
1503 _resultobj = Py_None;
1504 }
70551f47
RD
1505{
1506 if (_obj0)
1507 delete _arg0;
1508}
1509 return _resultobj;
1510}
1511
1512#define delete_wxBitmap(_swigobj) (delete _swigobj)
107e4716 1513static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1514 PyObject * _resultobj;
1515 wxBitmap * _arg0;
2d091820 1516 PyObject * _argo0 = 0;
107e4716 1517 char *_kwnames[] = { "self", NULL };
70551f47
RD
1518
1519 self = self;
107e4716 1520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
70551f47 1521 return NULL;
2d091820
RD
1522 if (_argo0) {
1523 if (_argo0 == Py_None) { _arg0 = NULL; }
1524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1526 return NULL;
1527 }
1528 }
ab9bc19b 1529{
474c48f9 1530 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1531 delete_wxBitmap(_arg0);
ab9bc19b 1532
474c48f9 1533 wxPyEndAllowThreads(__tstate);
4dfaa61e 1534 if (PyErr_Occurred()) return NULL;
ab9bc19b 1535} Py_INCREF(Py_None);
70551f47
RD
1536 _resultobj = Py_None;
1537 return _resultobj;
1538}
1539
70551f47 1540#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
107e4716 1541static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1542 PyObject * _resultobj;
1543 wxPalette * _result;
1544 wxBitmap * _arg0;
2d091820 1545 PyObject * _argo0 = 0;
107e4716 1546 char *_kwnames[] = { "self", NULL };
70551f47
RD
1547 char _ptemp[128];
1548
1549 self = self;
107e4716 1550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
70551f47 1551 return NULL;
2d091820
RD
1552 if (_argo0) {
1553 if (_argo0 == Py_None) { _arg0 = NULL; }
1554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1556 return NULL;
1557 }
1558 }
ab9bc19b 1559{
474c48f9 1560 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1561 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
ab9bc19b 1562
474c48f9 1563 wxPyEndAllowThreads(__tstate);
4dfaa61e 1564 if (PyErr_Occurred()) return NULL;
2d091820
RD
1565} if (_result) {
1566 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1567 _resultobj = Py_BuildValue("s",_ptemp);
1568 } else {
1569 Py_INCREF(Py_None);
1570 _resultobj = Py_None;
1571 }
70551f47
RD
1572 return _resultobj;
1573}
1574
1575#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
107e4716 1576static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1577 PyObject * _resultobj;
1578 wxMask * _result;
1579 wxBitmap * _arg0;
2d091820 1580 PyObject * _argo0 = 0;
107e4716 1581 char *_kwnames[] = { "self", NULL };
70551f47
RD
1582 char _ptemp[128];
1583
1584 self = self;
107e4716 1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
70551f47 1586 return NULL;
2d091820
RD
1587 if (_argo0) {
1588 if (_argo0 == Py_None) { _arg0 = NULL; }
1589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1591 return NULL;
1592 }
1593 }
ab9bc19b 1594{
474c48f9 1595 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1596 _result = (wxMask *)wxBitmap_GetMask(_arg0);
ab9bc19b 1597
474c48f9 1598 wxPyEndAllowThreads(__tstate);
4dfaa61e 1599 if (PyErr_Occurred()) return NULL;
2d091820
RD
1600} if (_result) {
1601 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1602 _resultobj = Py_BuildValue("s",_ptemp);
1603 } else {
1604 Py_INCREF(Py_None);
1605 _resultobj = Py_None;
1606 }
70551f47
RD
1607 return _resultobj;
1608}
1609
56f5d962
RD
1610#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1611static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1612 PyObject * _resultobj;
56f5d962 1613 bool _result;
70551f47 1614 wxBitmap * _arg0;
56f5d962 1615 wxString * _arg1;
f0972d1e 1616 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY;
2d091820 1617 PyObject * _argo0 = 0;
56f5d962 1618 PyObject * _obj1 = 0;
5c0282d5 1619 char *_kwnames[] = { "self","name","type", NULL };
70551f47
RD
1620
1621 self = self;
5c0282d5 1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 1623 return NULL;
2d091820
RD
1624 if (_argo0) {
1625 if (_argo0 == Py_None) { _arg0 = NULL; }
1626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
70551f47
RD
1628 return NULL;
1629 }
1630 }
56f5d962 1631{
c8bc7bb8
RD
1632 _arg1 = wxString_in_helper(_obj1);
1633 if (_arg1 == NULL)
56f5d962 1634 return NULL;
56f5d962 1635}
ab9bc19b 1636{
474c48f9 1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1638 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 1639
474c48f9 1640 wxPyEndAllowThreads(__tstate);
4dfaa61e 1641 if (PyErr_Occurred()) return NULL;
ab9bc19b 1642} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
1643{
1644 if (_obj1)
1645 delete _arg1;
1646}
70551f47
RD
1647 return _resultobj;
1648}
1649
56f5d962
RD
1650#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1651static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1652 PyObject * _resultobj;
1653 bool _result;
1654 wxBitmap * _arg0;
1655 wxString * _arg1;
5c0282d5 1656 wxBitmapType _arg2;
56f5d962 1657 wxPalette * _arg3 = (wxPalette *) NULL;
2d091820 1658 PyObject * _argo0 = 0;
70551f47 1659 PyObject * _obj1 = 0;
56f5d962
RD
1660 PyObject * _argo3 = 0;
1661 char *_kwnames[] = { "self","name","type","palette", NULL };
70551f47
RD
1662
1663 self = self;
56f5d962 1664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
70551f47 1665 return NULL;
2d091820
RD
1666 if (_argo0) {
1667 if (_argo0 == Py_None) { _arg0 = NULL; }
1668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
70551f47
RD
1670 return NULL;
1671 }
1672 }
1673{
c8bc7bb8
RD
1674 _arg1 = wxString_in_helper(_obj1);
1675 if (_arg1 == NULL)
2cd2fac8 1676 return NULL;
70551f47 1677}
56f5d962
RD
1678 if (_argo3) {
1679 if (_argo3 == Py_None) { _arg3 = NULL; }
1680 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1681 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1682 return NULL;
1683 }
1684 }
ab9bc19b 1685{
474c48f9 1686 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1687 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1688
474c48f9 1689 wxPyEndAllowThreads(__tstate);
4dfaa61e 1690 if (PyErr_Occurred()) return NULL;
ab9bc19b 1691} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1692{
1693 if (_obj1)
1694 delete _arg1;
1695}
1696 return _resultobj;
1697}
1698
56f5d962
RD
1699#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1700static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1701 PyObject * _resultobj;
1702 wxBitmap * _arg0;
1703 wxMask * _arg1;
1704 PyObject * _argo0 = 0;
1705 PyObject * _argo1 = 0;
1706 char *_kwnames[] = { "self","mask", NULL };
1707
1708 self = self;
1709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1710 return NULL;
1711 if (_argo0) {
1712 if (_argo0 == Py_None) { _arg0 = NULL; }
1713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1715 return NULL;
1716 }
1717 }
1718 if (_argo1) {
1719 if (_argo1 == Py_None) { _arg1 = NULL; }
1720 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1721 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1722 return NULL;
1723 }
1724 }
1725{
474c48f9 1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1727 wxBitmap_SetMask(_arg0,_arg1);
56f5d962 1728
474c48f9 1729 wxPyEndAllowThreads(__tstate);
4dfaa61e 1730 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1731} Py_INCREF(Py_None);
1732 _resultobj = Py_None;
1733 return _resultobj;
1734}
1735
70551f47 1736#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
107e4716 1737static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1738 PyObject * _resultobj;
1739 bool _result;
1740 wxBitmap * _arg0;
2d091820 1741 PyObject * _argo0 = 0;
107e4716 1742 char *_kwnames[] = { "self", NULL };
70551f47
RD
1743
1744 self = self;
107e4716 1745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
70551f47 1746 return NULL;
2d091820
RD
1747 if (_argo0) {
1748 if (_argo0 == Py_None) { _arg0 = NULL; }
1749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
1750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1751 return NULL;
1752 }
1753 }
ab9bc19b 1754{
474c48f9 1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1756 _result = (bool )wxBitmap_Ok(_arg0);
ab9bc19b 1757
474c48f9 1758 wxPyEndAllowThreads(__tstate);
4dfaa61e 1759 if (PyErr_Occurred()) return NULL;
ab9bc19b 1760} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1761 return _resultobj;
1762}
1763
56f5d962
RD
1764#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1765static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1766 PyObject * _resultobj;
56f5d962 1767 int _result;
70551f47 1768 wxBitmap * _arg0;
2d091820 1769 PyObject * _argo0 = 0;
56f5d962 1770 char *_kwnames[] = { "self", NULL };
70551f47
RD
1771
1772 self = self;
56f5d962 1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
70551f47 1774 return NULL;
2d091820
RD
1775 if (_argo0) {
1776 if (_argo0 == Py_None) { _arg0 = NULL; }
1777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
70551f47
RD
1779 return NULL;
1780 }
1781 }
1782{
474c48f9 1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1784 _result = (int )wxBitmap_GetWidth(_arg0);
56f5d962 1785
474c48f9 1786 wxPyEndAllowThreads(__tstate);
4dfaa61e 1787 if (PyErr_Occurred()) return NULL;
56f5d962
RD
1788} _resultobj = Py_BuildValue("i",_result);
1789 return _resultobj;
70551f47 1790}
56f5d962
RD
1791
1792#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1793static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1794 PyObject * _resultobj;
1795 int _result;
1796 wxBitmap * _arg0;
1797 PyObject * _argo0 = 0;
1798 char *_kwnames[] = { "self", NULL };
1799
1800 self = self;
1801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1802 return NULL;
1803 if (_argo0) {
1804 if (_argo0 == Py_None) { _arg0 = NULL; }
1805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
70551f47
RD
1807 return NULL;
1808 }
1809 }
ab9bc19b 1810{
474c48f9 1811 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1812 _result = (int )wxBitmap_GetHeight(_arg0);
ab9bc19b 1813
474c48f9 1814 wxPyEndAllowThreads(__tstate);
4dfaa61e 1815 if (PyErr_Occurred()) return NULL;
ab9bc19b 1816} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1817 return _resultobj;
1818}
1819
56f5d962
RD
1820#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1821static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 1822 PyObject * _resultobj;
56f5d962 1823 int _result;
70551f47 1824 wxBitmap * _arg0;
2d091820 1825 PyObject * _argo0 = 0;
56f5d962 1826 char *_kwnames[] = { "self", NULL };
70551f47
RD
1827
1828 self = self;
56f5d962 1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
70551f47 1830 return NULL;
2d091820
RD
1831 if (_argo0) {
1832 if (_argo0 == Py_None) { _arg0 = NULL; }
1833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
70551f47
RD
1835 return NULL;
1836 }
1837 }
ab9bc19b 1838{
474c48f9 1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1840 _result = (int )wxBitmap_GetDepth(_arg0);
ab9bc19b 1841
474c48f9 1842 wxPyEndAllowThreads(__tstate);
4dfaa61e 1843 if (PyErr_Occurred()) return NULL;
56f5d962 1844} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
1845 return _resultobj;
1846}
1847
56f5d962
RD
1848#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1849static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1850 PyObject * _resultobj;
1851 wxBitmap * _arg0;
1852 int _arg1;
2d091820 1853 PyObject * _argo0 = 0;
56f5d962 1854 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
1855
1856 self = self;
56f5d962 1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 1858 return NULL;
2d091820
RD
1859 if (_argo0) {
1860 if (_argo0 == Py_None) { _arg0 = NULL; }
1861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
70551f47
RD
1863 return NULL;
1864 }
1865 }
ab9bc19b 1866{
474c48f9 1867 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1868 wxBitmap_SetWidth(_arg0,_arg1);
ab9bc19b 1869
474c48f9 1870 wxPyEndAllowThreads(__tstate);
4dfaa61e 1871 if (PyErr_Occurred()) return NULL;
ab9bc19b 1872} Py_INCREF(Py_None);
70551f47
RD
1873 _resultobj = Py_None;
1874 return _resultobj;
1875}
1876
56f5d962
RD
1877#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1878static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1879 PyObject * _resultobj;
1880 wxBitmap * _arg0;
56f5d962 1881 int _arg1;
2d091820 1882 PyObject * _argo0 = 0;
56f5d962 1883 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
1884
1885 self = self;
56f5d962 1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 1887 return NULL;
2d091820
RD
1888 if (_argo0) {
1889 if (_argo0 == Py_None) { _arg0 = NULL; }
1890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
70551f47
RD
1892 return NULL;
1893 }
1894 }
ab9bc19b 1895{
474c48f9 1896 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1897 wxBitmap_SetHeight(_arg0,_arg1);
ab9bc19b 1898
474c48f9 1899 wxPyEndAllowThreads(__tstate);
4dfaa61e 1900 if (PyErr_Occurred()) return NULL;
ab9bc19b 1901} Py_INCREF(Py_None);
70551f47
RD
1902 _resultobj = Py_None;
1903 return _resultobj;
1904}
1905
56f5d962
RD
1906#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
1907static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
1908 PyObject * _resultobj;
1909 wxBitmap * _arg0;
1910 int _arg1;
2d091820 1911 PyObject * _argo0 = 0;
56f5d962 1912 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
1913
1914 self = self;
56f5d962 1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 1916 return NULL;
2d091820
RD
1917 if (_argo0) {
1918 if (_argo0 == Py_None) { _arg0 = NULL; }
1919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
56f5d962 1920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
70551f47
RD
1921 return NULL;
1922 }
1923 }
ab9bc19b 1924{
474c48f9 1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1926 wxBitmap_SetDepth(_arg0,_arg1);
ab9bc19b 1927
474c48f9 1928 wxPyEndAllowThreads(__tstate);
4dfaa61e 1929 if (PyErr_Occurred()) return NULL;
ab9bc19b 1930} Py_INCREF(Py_None);
70551f47
RD
1931 _resultobj = Py_None;
1932 return _resultobj;
1933}
1934
f6bcfd97
BP
1935#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
1936static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject * _resultobj;
1938 wxBitmap * _result;
1939 wxBitmap * _arg0;
1940 wxRect * _arg1;
1941 PyObject * _argo0 = 0;
1942 wxRect temp;
1943 PyObject * _obj1 = 0;
1944 char *_kwnames[] = { "self","rect", NULL };
1945 char _ptemp[128];
1946
1947 self = self;
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
1949 return NULL;
1950 if (_argo0) {
1951 if (_argo0 == Py_None) { _arg0 = NULL; }
1952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
1954 return NULL;
1955 }
1956 }
1957{
1958 _arg1 = &temp;
1959 if (! wxRect_helper(_obj1, &_arg1))
1960 return NULL;
1961}
1962{
474c48f9 1963 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1964 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
f6bcfd97 1965
474c48f9 1966 wxPyEndAllowThreads(__tstate);
4dfaa61e 1967 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1968} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1969 _resultobj = Py_BuildValue("s",_ptemp);
1970 return _resultobj;
1971}
1972
65191ae8
RD
1973#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
1974static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1975 PyObject * _resultobj;
1976 bool _result;
1977 wxBitmap * _arg0;
1978 wxIcon * _arg1;
1979 PyObject * _argo0 = 0;
1980 PyObject * _argo1 = 0;
1981 char *_kwnames[] = { "self","icon", NULL };
1982
1983 self = self;
1984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
1985 return NULL;
1986 if (_argo0) {
1987 if (_argo0 == Py_None) { _arg0 = NULL; }
1988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
1990 return NULL;
1991 }
1992 }
1993 if (_argo1) {
1994 if (_argo1 == Py_None) { _arg1 = NULL; }
1995 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
1996 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
1997 return NULL;
1998 }
1999 }
2000{
474c48f9 2001 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2002 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
65191ae8 2003
474c48f9 2004 wxPyEndAllowThreads(__tstate);
65191ae8
RD
2005 if (PyErr_Occurred()) return NULL;
2006} _resultobj = Py_BuildValue("i",_result);
2007 return _resultobj;
2008}
2009
9df61a29
RD
2010static void *SwigwxMaskTowxObject(void *ptr) {
2011 wxMask *src;
2012 wxObject *dest;
2013 src = (wxMask *) ptr;
2014 dest = (wxObject *) src;
2015 return (void *) dest;
2016}
2017
70551f47 2018#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
107e4716 2019static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2020 PyObject * _resultobj;
2021 wxMask * _result;
2022 wxBitmap * _arg0;
2d091820 2023 PyObject * _argo0 = 0;
107e4716 2024 char *_kwnames[] = { "bitmap", NULL };
70551f47
RD
2025 char _ptemp[128];
2026
2027 self = self;
107e4716 2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
70551f47 2029 return NULL;
2d091820
RD
2030 if (_argo0) {
2031 if (_argo0 == Py_None) { _arg0 = NULL; }
2032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
70551f47
RD
2033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2034 return NULL;
2035 }
2036 }
ab9bc19b 2037{
474c48f9 2038 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2039 _result = (wxMask *)new_wxMask(*_arg0);
ab9bc19b 2040
474c48f9 2041 wxPyEndAllowThreads(__tstate);
4dfaa61e 2042 if (PyErr_Occurred()) return NULL;
2d091820
RD
2043} if (_result) {
2044 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2045 _resultobj = Py_BuildValue("s",_ptemp);
2046 } else {
2047 Py_INCREF(Py_None);
2048 _resultobj = Py_None;
2049 }
70551f47
RD
2050 return _resultobj;
2051}
2052
fbcadfca
RD
2053static void wxMask_Destroy(wxMask *self) { delete self; }
2054static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2055 PyObject * _resultobj;
2056 wxMask * _arg0;
2057 PyObject * _argo0 = 0;
2058 char *_kwnames[] = { "self", NULL };
2059
2060 self = self;
2061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2062 return NULL;
2063 if (_argo0) {
2064 if (_argo0 == Py_None) { _arg0 = NULL; }
2065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2067 return NULL;
2068 }
2069 }
2070{
474c48f9 2071 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2072 wxMask_Destroy(_arg0);
fbcadfca 2073
474c48f9 2074 wxPyEndAllowThreads(__tstate);
4dfaa61e 2075 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2076} Py_INCREF(Py_None);
2077 _resultobj = Py_None;
2078 return _resultobj;
2079}
2080
9df61a29
RD
2081static void *SwigwxIconTowxGDIObject(void *ptr) {
2082 wxIcon *src;
2083 wxGDIObject *dest;
2084 src = (wxIcon *) ptr;
2085 dest = (wxGDIObject *) src;
2086 return (void *) dest;
2087}
2088
2089static void *SwigwxIconTowxObject(void *ptr) {
2090 wxIcon *src;
2091 wxObject *dest;
2092 src = (wxIcon *) ptr;
2093 dest = (wxObject *) src;
2094 return (void *) dest;
2095}
2096
8bf5d46e 2097#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 2098static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
2099 PyObject * _resultobj;
2100 wxIcon * _result;
2101 wxString * _arg0;
2102 long _arg1;
2d091820
RD
2103 int _arg2 = (int ) -1;
2104 int _arg3 = (int ) -1;
8bf5d46e 2105 PyObject * _obj0 = 0;
107e4716 2106 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
8bf5d46e
RD
2107 char _ptemp[128];
2108
2109 self = self;
107e4716 2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
8bf5d46e
RD
2111 return NULL;
2112{
c8bc7bb8
RD
2113 _arg0 = wxString_in_helper(_obj0);
2114 if (_arg0 == NULL)
8bf5d46e 2115 return NULL;
8bf5d46e
RD
2116}
2117{
474c48f9 2118 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2119 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
8bf5d46e 2120
474c48f9 2121 wxPyEndAllowThreads(__tstate);
4dfaa61e 2122 if (PyErr_Occurred()) return NULL;
2d091820
RD
2123} if (_result) {
2124 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2125 _resultobj = Py_BuildValue("s",_ptemp);
2126 } else {
2127 Py_INCREF(Py_None);
2128 _resultobj = Py_None;
2129 }
8bf5d46e
RD
2130{
2131 if (_obj0)
2132 delete _arg0;
2133}
2134 return _resultobj;
2135}
2136
70551f47 2137#define delete_wxIcon(_swigobj) (delete _swigobj)
107e4716 2138static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2139 PyObject * _resultobj;
2140 wxIcon * _arg0;
2d091820 2141 PyObject * _argo0 = 0;
107e4716 2142 char *_kwnames[] = { "self", NULL };
70551f47
RD
2143
2144 self = self;
107e4716 2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
70551f47 2146 return NULL;
2d091820
RD
2147 if (_argo0) {
2148 if (_argo0 == Py_None) { _arg0 = NULL; }
2149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2151 return NULL;
2152 }
2153 }
ab9bc19b 2154{
474c48f9 2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2156 delete_wxIcon(_arg0);
ab9bc19b 2157
474c48f9 2158 wxPyEndAllowThreads(__tstate);
4dfaa61e 2159 if (PyErr_Occurred()) return NULL;
ab9bc19b 2160} Py_INCREF(Py_None);
70551f47
RD
2161 _resultobj = Py_None;
2162 return _resultobj;
2163}
2164
56f5d962
RD
2165#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2166static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2167 PyObject * _resultobj;
56f5d962 2168 bool _result;
70551f47 2169 wxIcon * _arg0;
56f5d962
RD
2170 wxString * _arg1;
2171 long _arg2;
2d091820 2172 PyObject * _argo0 = 0;
56f5d962
RD
2173 PyObject * _obj1 = 0;
2174 char *_kwnames[] = { "self","name","flags", NULL };
70551f47
RD
2175
2176 self = self;
56f5d962 2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
70551f47 2178 return NULL;
2d091820
RD
2179 if (_argo0) {
2180 if (_argo0 == Py_None) { _arg0 = NULL; }
2181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
70551f47
RD
2183 return NULL;
2184 }
2185 }
56f5d962 2186{
c8bc7bb8
RD
2187 _arg1 = wxString_in_helper(_obj1);
2188 if (_arg1 == NULL)
2cd2fac8 2189 return NULL;
56f5d962 2190}
ab9bc19b 2191{
474c48f9 2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2193 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
ab9bc19b 2194
474c48f9 2195 wxPyEndAllowThreads(__tstate);
4dfaa61e 2196 if (PyErr_Occurred()) return NULL;
ab9bc19b 2197} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
2198{
2199 if (_obj1)
2200 delete _arg1;
2201}
70551f47
RD
2202 return _resultobj;
2203}
2204
56f5d962
RD
2205#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2206static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2207 PyObject * _resultobj;
56f5d962 2208 bool _result;
70551f47 2209 wxIcon * _arg0;
2d091820 2210 PyObject * _argo0 = 0;
107e4716 2211 char *_kwnames[] = { "self", NULL };
70551f47
RD
2212
2213 self = self;
56f5d962 2214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
70551f47 2215 return NULL;
2d091820
RD
2216 if (_argo0) {
2217 if (_argo0 == Py_None) { _arg0 = NULL; }
2218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
70551f47
RD
2220 return NULL;
2221 }
2222 }
ab9bc19b 2223{
474c48f9 2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2225 _result = (bool )wxIcon_Ok(_arg0);
ab9bc19b 2226
474c48f9 2227 wxPyEndAllowThreads(__tstate);
4dfaa61e 2228 if (PyErr_Occurred()) return NULL;
ab9bc19b 2229} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2230 return _resultobj;
2231}
2232
2233#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2234static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2235 PyObject * _resultobj;
2236 int _result;
2237 wxIcon * _arg0;
2d091820 2238 PyObject * _argo0 = 0;
107e4716 2239 char *_kwnames[] = { "self", NULL };
70551f47
RD
2240
2241 self = self;
107e4716 2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
70551f47 2243 return NULL;
2d091820
RD
2244 if (_argo0) {
2245 if (_argo0 == Py_None) { _arg0 = NULL; }
2246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2248 return NULL;
2249 }
2250 }
ab9bc19b 2251{
474c48f9 2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2253 _result = (int )wxIcon_GetWidth(_arg0);
ab9bc19b 2254
474c48f9 2255 wxPyEndAllowThreads(__tstate);
4dfaa61e 2256 if (PyErr_Occurred()) return NULL;
ab9bc19b 2257} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2258 return _resultobj;
2259}
2260
56f5d962
RD
2261#define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2262static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2263 PyObject * _resultobj;
56f5d962 2264 int _result;
70551f47 2265 wxIcon * _arg0;
2d091820 2266 PyObject * _argo0 = 0;
56f5d962 2267 char *_kwnames[] = { "self", NULL };
70551f47
RD
2268
2269 self = self;
56f5d962 2270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
70551f47 2271 return NULL;
2d091820
RD
2272 if (_argo0) {
2273 if (_argo0 == Py_None) { _arg0 = NULL; }
2274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
70551f47
RD
2276 return NULL;
2277 }
2278 }
ab9bc19b 2279{
474c48f9 2280 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2281 _result = (int )wxIcon_GetHeight(_arg0);
ab9bc19b 2282
474c48f9 2283 wxPyEndAllowThreads(__tstate);
4dfaa61e 2284 if (PyErr_Occurred()) return NULL;
ab9bc19b 2285} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2286 return _resultobj;
2287}
2288
56f5d962
RD
2289#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2290static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2291 PyObject * _resultobj;
56f5d962 2292 int _result;
70551f47 2293 wxIcon * _arg0;
2d091820 2294 PyObject * _argo0 = 0;
107e4716 2295 char *_kwnames[] = { "self", NULL };
70551f47
RD
2296
2297 self = self;
56f5d962 2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
70551f47 2299 return NULL;
2d091820
RD
2300 if (_argo0) {
2301 if (_argo0 == Py_None) { _arg0 = NULL; }
2302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
70551f47
RD
2304 return NULL;
2305 }
2306 }
ab9bc19b 2307{
474c48f9 2308 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2309 _result = (int )wxIcon_GetDepth(_arg0);
ab9bc19b 2310
474c48f9 2311 wxPyEndAllowThreads(__tstate);
4dfaa61e 2312 if (PyErr_Occurred()) return NULL;
ab9bc19b 2313} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2314 return _resultobj;
2315}
2316
56f5d962
RD
2317#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2318static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2319 PyObject * _resultobj;
2320 wxIcon * _arg0;
2321 int _arg1;
2d091820 2322 PyObject * _argo0 = 0;
56f5d962 2323 char *_kwnames[] = { "self","w", NULL };
70551f47
RD
2324
2325 self = self;
56f5d962 2326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 2327 return NULL;
2d091820
RD
2328 if (_argo0) {
2329 if (_argo0 == Py_None) { _arg0 = NULL; }
2330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
70551f47
RD
2332 return NULL;
2333 }
2334 }
ab9bc19b 2335{
474c48f9 2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2337 wxIcon_SetWidth(_arg0,_arg1);
ab9bc19b 2338
474c48f9 2339 wxPyEndAllowThreads(__tstate);
4dfaa61e 2340 if (PyErr_Occurred()) return NULL;
ab9bc19b 2341} Py_INCREF(Py_None);
70551f47
RD
2342 _resultobj = Py_None;
2343 return _resultobj;
2344}
2345
2346#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
107e4716 2347static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2348 PyObject * _resultobj;
2349 wxIcon * _arg0;
2350 int _arg1;
2d091820 2351 PyObject * _argo0 = 0;
56f5d962 2352 char *_kwnames[] = { "self","h", NULL };
70551f47
RD
2353
2354 self = self;
107e4716 2355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
70551f47 2356 return NULL;
2d091820
RD
2357 if (_argo0) {
2358 if (_argo0 == Py_None) { _arg0 = NULL; }
2359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
70551f47
RD
2360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2361 return NULL;
2362 }
2363 }
ab9bc19b 2364{
474c48f9 2365 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2366 wxIcon_SetHeight(_arg0,_arg1);
ab9bc19b 2367
474c48f9 2368 wxPyEndAllowThreads(__tstate);
4dfaa61e 2369 if (PyErr_Occurred()) return NULL;
ab9bc19b 2370} Py_INCREF(Py_None);
70551f47
RD
2371 _resultobj = Py_None;
2372 return _resultobj;
2373}
2374
56f5d962
RD
2375#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2376static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2377 PyObject * _resultobj;
2378 wxIcon * _arg0;
2379 int _arg1;
2d091820 2380 PyObject * _argo0 = 0;
56f5d962 2381 char *_kwnames[] = { "self","d", NULL };
70551f47
RD
2382
2383 self = self;
56f5d962 2384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
70551f47 2385 return NULL;
2d091820
RD
2386 if (_argo0) {
2387 if (_argo0 == Py_None) { _arg0 = NULL; }
2388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
56f5d962 2389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
70551f47
RD
2390 return NULL;
2391 }
2392 }
ab9bc19b 2393{
474c48f9 2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2395 wxIcon_SetDepth(_arg0,_arg1);
ab9bc19b 2396
474c48f9 2397 wxPyEndAllowThreads(__tstate);
4dfaa61e 2398 if (PyErr_Occurred()) return NULL;
ab9bc19b 2399} Py_INCREF(Py_None);
70551f47
RD
2400 _resultobj = Py_None;
2401 return _resultobj;
2402}
2403
fbcadfca
RD
2404#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2405static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2406 PyObject * _resultobj;
2407 wxIcon * _arg0;
2408 wxBitmap * _arg1;
2409 PyObject * _argo0 = 0;
2410 PyObject * _argo1 = 0;
2411 char *_kwnames[] = { "self","bmp", NULL };
2412
2413 self = self;
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2415 return NULL;
2416 if (_argo0) {
2417 if (_argo0 == Py_None) { _arg0 = NULL; }
2418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2420 return NULL;
2421 }
2422 }
2423 if (_argo1) {
2424 if (_argo1 == Py_None) { _arg1 = NULL; }
2425 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2426 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2427 return NULL;
2428 }
2429 }
2430{
474c48f9 2431 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2432 wxIcon_CopyFromBitmap(_arg0,*_arg1);
fbcadfca 2433
474c48f9 2434 wxPyEndAllowThreads(__tstate);
4dfaa61e 2435 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2436} Py_INCREF(Py_None);
2437 _resultobj = Py_None;
2438 return _resultobj;
2439}
2440
9df61a29
RD
2441static void *SwigwxCursorTowxGDIObject(void *ptr) {
2442 wxCursor *src;
2443 wxGDIObject *dest;
2444 src = (wxCursor *) ptr;
2445 dest = (wxGDIObject *) src;
2446 return (void *) dest;
2447}
2448
2449static void *SwigwxCursorTowxObject(void *ptr) {
2450 wxCursor *src;
2451 wxObject *dest;
2452 src = (wxCursor *) ptr;
2453 dest = (wxObject *) src;
2454 return (void *) dest;
2455}
2456
70551f47 2457#define delete_wxCursor(_swigobj) (delete _swigobj)
107e4716 2458static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2459 PyObject * _resultobj;
2460 wxCursor * _arg0;
2d091820 2461 PyObject * _argo0 = 0;
107e4716 2462 char *_kwnames[] = { "self", NULL };
70551f47
RD
2463
2464 self = self;
107e4716 2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
70551f47 2466 return NULL;
2d091820
RD
2467 if (_argo0) {
2468 if (_argo0 == Py_None) { _arg0 = NULL; }
2469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2471 return NULL;
2472 }
2473 }
ab9bc19b 2474{
474c48f9 2475 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2476 delete_wxCursor(_arg0);
ab9bc19b 2477
474c48f9 2478 wxPyEndAllowThreads(__tstate);
4dfaa61e 2479 if (PyErr_Occurred()) return NULL;
ab9bc19b 2480} Py_INCREF(Py_None);
70551f47
RD
2481 _resultobj = Py_None;
2482 return _resultobj;
2483}
2484
2485#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
107e4716 2486static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
2487 PyObject * _resultobj;
2488 bool _result;
2489 wxCursor * _arg0;
2d091820 2490 PyObject * _argo0 = 0;
107e4716 2491 char *_kwnames[] = { "self", NULL };
70551f47
RD
2492
2493 self = self;
107e4716 2494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
70551f47 2495 return NULL;
2d091820
RD
2496 if (_argo0) {
2497 if (_argo0 == Py_None) { _arg0 = NULL; }
2498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
70551f47
RD
2499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2500 return NULL;
2501 }
2502 }
ab9bc19b 2503{
474c48f9 2504 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2505 _result = (bool )wxCursor_Ok(_arg0);
ab9bc19b 2506
474c48f9 2507 wxPyEndAllowThreads(__tstate);
4dfaa61e 2508 if (PyErr_Occurred()) return NULL;
ab9bc19b 2509} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
2510 return _resultobj;
2511}
2512
1893b029
RD
2513#define wxNativeFontInfo_FromXFontName(_swigobj,_swigarg0) (_swigobj->FromXFontName(_swigarg0))
2514static PyObject *_wrap_wxNativeFontInfo_FromXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2515 PyObject * _resultobj;
2516 bool _result;
2517 wxNativeFontInfo * _arg0;
2518 wxString * _arg1;
2519 PyObject * _argo0 = 0;
2520 PyObject * _obj1 = 0;
2521 char *_kwnames[] = { "self","xFontName", NULL };
2522
2523 self = self;
2524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromXFontName",_kwnames,&_argo0,&_obj1))
2525 return NULL;
2526 if (_argo0) {
2527 if (_argo0 == Py_None) { _arg0 = NULL; }
2528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromXFontName. Expected _wxNativeFontInfo_p.");
2530 return NULL;
2531 }
2532 }
2533{
c8bc7bb8
RD
2534 _arg1 = wxString_in_helper(_obj1);
2535 if (_arg1 == NULL)
1893b029 2536 return NULL;
1893b029
RD
2537}
2538{
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2540 _result = (bool )wxNativeFontInfo_FromXFontName(_arg0,*_arg1);
1893b029
RD
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) return NULL;
2544} _resultobj = Py_BuildValue("i",_result);
2545{
2546 if (_obj1)
2547 delete _arg1;
2548}
2549 return _resultobj;
2550}
2551
85247b36
RD
2552#define wxNativeFontInfo_IsDefault(_swigobj) (_swigobj->IsDefault())
2553static PyObject *_wrap_wxNativeFontInfo_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject * _resultobj;
2555 bool _result;
2556 wxNativeFontInfo * _arg0;
2557 PyObject * _argo0 = 0;
2558 char *_kwnames[] = { "self", NULL };
2559
2560 self = self;
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_IsDefault",_kwnames,&_argo0))
2562 return NULL;
2563 if (_argo0) {
2564 if (_argo0 == Py_None) { _arg0 = NULL; }
2565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_IsDefault. Expected _wxNativeFontInfo_p.");
2567 return NULL;
2568 }
2569 }
2570{
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2572 _result = (bool )wxNativeFontInfo_IsDefault(_arg0);
85247b36
RD
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) return NULL;
2576} _resultobj = Py_BuildValue("i",_result);
2577 return _resultobj;
2578}
2579
1893b029
RD
2580#define wxNativeFontInfo_GetXFontName(_swigobj) (_swigobj->GetXFontName())
2581static PyObject *_wrap_wxNativeFontInfo_GetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2582 PyObject * _resultobj;
2583 wxString * _result;
2584 wxNativeFontInfo * _arg0;
2585 PyObject * _argo0 = 0;
2586 char *_kwnames[] = { "self", NULL };
2587
2588 self = self;
2589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetXFontName",_kwnames,&_argo0))
2590 return NULL;
2591 if (_argo0) {
2592 if (_argo0 == Py_None) { _arg0 = NULL; }
2593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetXFontName. Expected _wxNativeFontInfo_p.");
2595 return NULL;
2596 }
2597 }
2598{
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2600 _result = new wxString (wxNativeFontInfo_GetXFontName(_arg0));
1893b029
RD
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) return NULL;
2604}{
c8bc7bb8
RD
2605#if wxUSE_UNICODE
2606 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2607#else
1893b029 2608 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2609#endif
1893b029
RD
2610}
2611{
2612 delete _result;
2613}
2614 return _resultobj;
2615}
2616
85247b36
RD
2617#define wxNativeFontInfo_SetXFontName(_swigobj,_swigarg0) (_swigobj->SetXFontName(_swigarg0))
2618static PyObject *_wrap_wxNativeFontInfo_SetXFontName(PyObject *self, PyObject *args, PyObject *kwargs) {
2619 PyObject * _resultobj;
2620 wxNativeFontInfo * _arg0;
2621 wxString * _arg1;
2622 PyObject * _argo0 = 0;
2623 PyObject * _obj1 = 0;
2624 char *_kwnames[] = { "self","xFontName", NULL };
2625
2626 self = self;
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetXFontName",_kwnames,&_argo0,&_obj1))
2628 return NULL;
2629 if (_argo0) {
2630 if (_argo0 == Py_None) { _arg0 = NULL; }
2631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetXFontName. Expected _wxNativeFontInfo_p.");
2633 return NULL;
2634 }
2635 }
2636{
c8bc7bb8
RD
2637 _arg1 = wxString_in_helper(_obj1);
2638 if (_arg1 == NULL)
85247b36 2639 return NULL;
85247b36
RD
2640}
2641{
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2643 wxNativeFontInfo_SetXFontName(_arg0,*_arg1);
85247b36
RD
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) return NULL;
2647} Py_INCREF(Py_None);
2648 _resultobj = Py_None;
2649{
2650 if (_obj1)
2651 delete _arg1;
2652}
2653 return _resultobj;
2654}
2655
1893b029
RD
2656#define new_wxNativeFontInfo() (new wxNativeFontInfo())
2657static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2658 PyObject * _resultobj;
2659 wxNativeFontInfo * _result;
2660 char *_kwnames[] = { NULL };
2661 char _ptemp[128];
2662
2663 self = self;
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames))
2665 return NULL;
2666{
2667 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2668 _result = (wxNativeFontInfo *)new_wxNativeFontInfo();
1893b029
RD
2669
2670 wxPyEndAllowThreads(__tstate);
2671 if (PyErr_Occurred()) return NULL;
2672} if (_result) {
2673 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
2674 _resultobj = Py_BuildValue("s",_ptemp);
2675 } else {
2676 Py_INCREF(Py_None);
2677 _resultobj = Py_None;
2678 }
2679 return _resultobj;
2680}
2681
2682#define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init())
2683static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
2684 PyObject * _resultobj;
2685 wxNativeFontInfo * _arg0;
2686 PyObject * _argo0 = 0;
2687 char *_kwnames[] = { "self", NULL };
2688
2689 self = self;
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0))
2691 return NULL;
2692 if (_argo0) {
2693 if (_argo0 == Py_None) { _arg0 = NULL; }
2694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p.");
2696 return NULL;
2697 }
2698 }
2699{
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2701 wxNativeFontInfo_Init(_arg0);
1893b029
RD
2702
2703 wxPyEndAllowThreads(__tstate);
2704 if (PyErr_Occurred()) return NULL;
2705} Py_INCREF(Py_None);
2706 _resultobj = Py_None;
2707 return _resultobj;
2708}
2709
059a841c
RD
2710#define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
2711static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2712 PyObject * _resultobj;
059a841c
RD
2713 bool _result;
2714 wxNativeFontInfo * _arg0;
2715 wxString * _arg1;
2716 PyObject * _argo0 = 0;
2717 PyObject * _obj1 = 0;
2718 char *_kwnames[] = { "self","s", NULL };
70551f47
RD
2719
2720 self = self;
059a841c
RD
2721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
2722 return NULL;
2723 if (_argo0) {
2724 if (_argo0 == Py_None) { _arg0 = NULL; }
2725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
2727 return NULL;
2728 }
2729 }
2730{
c8bc7bb8
RD
2731 _arg1 = wxString_in_helper(_obj1);
2732 if (_arg1 == NULL)
059a841c 2733 return NULL;
059a841c 2734}
ab9bc19b 2735{
474c48f9 2736 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2737 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
ab9bc19b 2738
474c48f9 2739 wxPyEndAllowThreads(__tstate);
4dfaa61e 2740 if (PyErr_Occurred()) return NULL;
059a841c
RD
2741} _resultobj = Py_BuildValue("i",_result);
2742{
2743 if (_obj1)
2744 delete _arg1;
2745}
70551f47
RD
2746 return _resultobj;
2747}
2748
059a841c
RD
2749#define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
2750static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
5e40f9dd 2751 PyObject * _resultobj;
059a841c
RD
2752 wxString * _result;
2753 wxNativeFontInfo * _arg0;
5e40f9dd
RD
2754 PyObject * _argo0 = 0;
2755 char *_kwnames[] = { "self", NULL };
2756
2757 self = self;
059a841c 2758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
5e40f9dd
RD
2759 return NULL;
2760 if (_argo0) {
2761 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
5e40f9dd
RD
2764 return NULL;
2765 }
2766 }
2767{
474c48f9 2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2769 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
5e40f9dd 2770
474c48f9 2771 wxPyEndAllowThreads(__tstate);
4dfaa61e 2772 if (PyErr_Occurred()) return NULL;
059a841c 2773}{
c8bc7bb8
RD
2774#if wxUSE_UNICODE
2775 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2776#else
059a841c 2777 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2778#endif
059a841c
RD
2779}
2780{
2781 delete _result;
2782}
5e40f9dd
RD
2783 return _resultobj;
2784}
2785
059a841c
RD
2786static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
2787 return self->ToString();
2788 }
2789static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
d29aba2f 2790 PyObject * _resultobj;
059a841c
RD
2791 wxString * _result;
2792 wxNativeFontInfo * _arg0;
d29aba2f
RD
2793 PyObject * _argo0 = 0;
2794 char *_kwnames[] = { "self", NULL };
2795
2796 self = self;
059a841c 2797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
d29aba2f
RD
2798 return NULL;
2799 if (_argo0) {
2800 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
d29aba2f
RD
2803 return NULL;
2804 }
2805 }
2806{
474c48f9 2807 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2808 _result = new wxString (wxNativeFontInfo___str__(_arg0));
d29aba2f 2809
474c48f9 2810 wxPyEndAllowThreads(__tstate);
4dfaa61e 2811 if (PyErr_Occurred()) return NULL;
059a841c 2812}{
c8bc7bb8
RD
2813#if wxUSE_UNICODE
2814 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2815#else
059a841c 2816 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2817#endif
059a841c
RD
2818}
2819{
2820 delete _result;
2821}
d29aba2f
RD
2822 return _resultobj;
2823}
2824
1893b029
RD
2825#define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0))
2826static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2827 PyObject * _resultobj;
2828 bool _result;
2829 wxNativeFontInfo * _arg0;
2830 wxString * _arg1;
2831 PyObject * _argo0 = 0;
2832 PyObject * _obj1 = 0;
2833 char *_kwnames[] = { "self","s", NULL };
2834
2835 self = self;
2836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1))
2837 return NULL;
2838 if (_argo0) {
2839 if (_argo0 == Py_None) { _arg0 = NULL; }
2840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p.");
2842 return NULL;
2843 }
2844 }
2845{
c8bc7bb8
RD
2846 _arg1 = wxString_in_helper(_obj1);
2847 if (_arg1 == NULL)
1893b029 2848 return NULL;
1893b029
RD
2849}
2850{
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2852 _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1);
1893b029
RD
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) return NULL;
2856} _resultobj = Py_BuildValue("i",_result);
2857{
2858 if (_obj1)
2859 delete _arg1;
2860}
2861 return _resultobj;
2862}
2863
2864#define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString())
2865static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
2866 PyObject * _resultobj;
2867 wxString * _result;
2868 wxNativeFontInfo * _arg0;
2869 PyObject * _argo0 = 0;
2870 char *_kwnames[] = { "self", NULL };
2871
2872 self = self;
2873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0))
2874 return NULL;
2875 if (_argo0) {
2876 if (_argo0 == Py_None) { _arg0 = NULL; }
2877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
2878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p.");
2879 return NULL;
2880 }
2881 }
2882{
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2884 _result = new wxString (wxNativeFontInfo_ToUserString(_arg0));
1893b029
RD
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) return NULL;
2888}{
c8bc7bb8
RD
2889#if wxUSE_UNICODE
2890 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2891#else
1893b029 2892 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2893#endif
1893b029
RD
2894}
2895{
2896 delete _result;
2897}
2898 return _resultobj;
2899}
2900
059a841c
RD
2901#define new_wxFontMapper() (new wxFontMapper())
2902static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2903 PyObject * _resultobj;
059a841c
RD
2904 wxFontMapper * _result;
2905 char *_kwnames[] = { NULL };
2906 char _ptemp[128];
2907
2908 self = self;
2909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
2910 return NULL;
2911{
474c48f9 2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2913 _result = (wxFontMapper *)new_wxFontMapper();
059a841c 2914
474c48f9 2915 wxPyEndAllowThreads(__tstate);
059a841c
RD
2916 if (PyErr_Occurred()) return NULL;
2917} if (_result) {
2918 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
2919 _resultobj = Py_BuildValue("s",_ptemp);
2920 } else {
2921 Py_INCREF(Py_None);
2922 _resultobj = Py_None;
2923 }
2924 return _resultobj;
2925}
2926
2927#define delete_wxFontMapper(_swigobj) (delete _swigobj)
2928static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
2929 PyObject * _resultobj;
2930 wxFontMapper * _arg0;
2d091820 2931 PyObject * _argo0 = 0;
107e4716 2932 char *_kwnames[] = { "self", NULL };
70551f47
RD
2933
2934 self = self;
059a841c 2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
70551f47 2936 return NULL;
2d091820
RD
2937 if (_argo0) {
2938 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
70551f47
RD
2941 return NULL;
2942 }
2943 }
70551f47 2944{
474c48f9 2945 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2946 delete_wxFontMapper(_arg0);
ab9bc19b 2947
474c48f9 2948 wxPyEndAllowThreads(__tstate);
4dfaa61e 2949 if (PyErr_Occurred()) return NULL;
059a841c
RD
2950} Py_INCREF(Py_None);
2951 _resultobj = Py_None;
70551f47
RD
2952 return _resultobj;
2953}
2954
059a841c
RD
2955static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
2956 wxFontEncoding alt_enc;
2957 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2958 return PyInt_FromLong(alt_enc);
2959 else {
2960 Py_INCREF(Py_None);
2961 return Py_None;
2962 }
2963 }
2964static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 2965 PyObject * _resultobj;
059a841c
RD
2966 PyObject * _result;
2967 wxFontMapper * _arg0;
2968 wxFontEncoding _arg1;
2969 wxString * _arg2 = (wxString *) &wxEmptyString;
2970 bool _arg3 = (bool ) TRUE;
2d091820 2971 PyObject * _argo0 = 0;
059a841c
RD
2972 PyObject * _obj2 = 0;
2973 int tempbool3 = (int) TRUE;
2974 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
70551f47
RD
2975
2976 self = self;
059a841c 2977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
70551f47 2978 return NULL;
2d091820
RD
2979 if (_argo0) {
2980 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
2981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
2982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
70551f47
RD
2983 return NULL;
2984 }
2985 }
059a841c
RD
2986 if (_obj2)
2987{
c8bc7bb8
RD
2988 _arg2 = wxString_in_helper(_obj2);
2989 if (_arg2 == NULL)
059a841c 2990 return NULL;
059a841c
RD
2991}
2992 _arg3 = (bool ) tempbool3;
ab9bc19b 2993{
474c48f9 2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2995 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
ab9bc19b 2996
474c48f9 2997 wxPyEndAllowThreads(__tstate);
4dfaa61e 2998 if (PyErr_Occurred()) return NULL;
059a841c
RD
2999}{
3000 _resultobj = _result;
3001}
3002{
3003 if (_obj2)
3004 delete _arg2;
3005}
70551f47
RD
3006 return _resultobj;
3007}
3008
059a841c
RD
3009#define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3010static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3011 PyObject * _resultobj;
059a841c
RD
3012 bool _result;
3013 wxFontMapper * _arg0;
3014 wxFontEncoding _arg1;
3015 wxString * _arg2 = (wxString *) &wxEmptyString;
2d091820 3016 PyObject * _argo0 = 0;
059a841c
RD
3017 PyObject * _obj2 = 0;
3018 char *_kwnames[] = { "self","encoding","facename", NULL };
70551f47
RD
3019
3020 self = self;
059a841c 3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
70551f47 3022 return NULL;
2d091820
RD
3023 if (_argo0) {
3024 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
70551f47
RD
3027 return NULL;
3028 }
3029 }
059a841c
RD
3030 if (_obj2)
3031{
c8bc7bb8
RD
3032 _arg2 = wxString_in_helper(_obj2);
3033 if (_arg2 == NULL)
059a841c 3034 return NULL;
059a841c 3035}
ab9bc19b 3036{
474c48f9 3037 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3038 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
ab9bc19b 3039
474c48f9 3040 wxPyEndAllowThreads(__tstate);
4dfaa61e 3041 if (PyErr_Occurred()) return NULL;
ab9bc19b 3042} _resultobj = Py_BuildValue("i",_result);
059a841c
RD
3043{
3044 if (_obj2)
3045 delete _arg2;
3046}
70551f47
RD
3047 return _resultobj;
3048}
3049
059a841c
RD
3050#define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3051static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3052 PyObject * _resultobj;
059a841c
RD
3053 wxFontEncoding _result;
3054 wxFontMapper * _arg0;
3055 wxString * _arg1;
3056 bool _arg2 = (bool ) TRUE;
2d091820 3057 PyObject * _argo0 = 0;
059a841c
RD
3058 PyObject * _obj1 = 0;
3059 int tempbool2 = (int) TRUE;
3060 char *_kwnames[] = { "self","charset","interactive", NULL };
70551f47
RD
3061
3062 self = self;
059a841c 3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
70551f47 3064 return NULL;
2d091820
RD
3065 if (_argo0) {
3066 if (_argo0 == Py_None) { _arg0 = NULL; }
059a841c
RD
3067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
70551f47
RD
3069 return NULL;
3070 }
3071 }
ab9bc19b 3072{
c8bc7bb8
RD
3073 _arg1 = wxString_in_helper(_obj1);
3074 if (_arg1 == NULL)
059a841c 3075 return NULL;
059a841c
RD
3076}
3077 _arg2 = (bool ) tempbool2;
3078{
474c48f9 3079 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3080 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
059a841c 3081
474c48f9 3082 wxPyEndAllowThreads(__tstate);
059a841c
RD
3083 if (PyErr_Occurred()) return NULL;
3084} _resultobj = Py_BuildValue("i",_result);
3085{
3086 if (_obj1)
3087 delete _arg1;
3088}
3089 return _resultobj;
3090}
3091
3092static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3093 PyObject * _resultobj;
3094 wxString * _result;
3095 wxFontEncoding _arg0;
3096 char *_kwnames[] = { "encoding", NULL };
3097
3098 self = self;
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3100 return NULL;
3101{
474c48f9 3102 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3103 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
059a841c 3104
474c48f9 3105 wxPyEndAllowThreads(__tstate);
059a841c
RD
3106 if (PyErr_Occurred()) return NULL;
3107}{
c8bc7bb8
RD
3108#if wxUSE_UNICODE
3109 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3110#else
059a841c 3111 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3112#endif
059a841c
RD
3113}
3114{
3115 delete _result;
3116}
3117 return _resultobj;
3118}
3119
3120static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3121 PyObject * _resultobj;
3122 wxString * _result;
3123 wxFontEncoding _arg0;
3124 char *_kwnames[] = { "encoding", NULL };
3125
3126 self = self;
3127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3128 return NULL;
3129{
474c48f9 3130 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3131 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
059a841c 3132
474c48f9 3133 wxPyEndAllowThreads(__tstate);
059a841c
RD
3134 if (PyErr_Occurred()) return NULL;
3135}{
c8bc7bb8
RD
3136#if wxUSE_UNICODE
3137 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3138#else
059a841c 3139 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3140#endif
059a841c
RD
3141}
3142{
3143 delete _result;
3144}
3145 return _resultobj;
3146}
3147
3148#define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3149static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3150 PyObject * _resultobj;
3151 wxFontMapper * _arg0;
3152 wxWindow * _arg1;
3153 PyObject * _argo0 = 0;
3154 PyObject * _argo1 = 0;
3155 char *_kwnames[] = { "self","parent", NULL };
3156
3157 self = self;
3158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3159 return NULL;
3160 if (_argo0) {
3161 if (_argo0 == Py_None) { _arg0 = NULL; }
3162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3164 return NULL;
3165 }
3166 }
3167 if (_argo1) {
3168 if (_argo1 == Py_None) { _arg1 = NULL; }
3169 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3170 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3171 return NULL;
3172 }
3173 }
3174{
474c48f9 3175 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3176 wxFontMapper_SetDialogParent(_arg0,_arg1);
059a841c 3177
474c48f9 3178 wxPyEndAllowThreads(__tstate);
059a841c
RD
3179 if (PyErr_Occurred()) return NULL;
3180} Py_INCREF(Py_None);
3181 _resultobj = Py_None;
3182 return _resultobj;
3183}
3184
3185#define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3186static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject * _resultobj;
3188 wxFontMapper * _arg0;
3189 wxString * _arg1;
3190 PyObject * _argo0 = 0;
3191 PyObject * _obj1 = 0;
3192 char *_kwnames[] = { "self","title", NULL };
3193
3194 self = self;
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3196 return NULL;
3197 if (_argo0) {
3198 if (_argo0 == Py_None) { _arg0 = NULL; }
3199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3201 return NULL;
3202 }
3203 }
3204{
c8bc7bb8
RD
3205 _arg1 = wxString_in_helper(_obj1);
3206 if (_arg1 == NULL)
059a841c 3207 return NULL;
059a841c
RD
3208}
3209{
474c48f9 3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3211 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
059a841c 3212
474c48f9 3213 wxPyEndAllowThreads(__tstate);
059a841c
RD
3214 if (PyErr_Occurred()) return NULL;
3215} Py_INCREF(Py_None);
3216 _resultobj = Py_None;
3217{
3218 if (_obj1)
3219 delete _arg1;
3220}
3221 return _resultobj;
3222}
3223
3224#define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3225static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3226 PyObject * _resultobj;
3227 wxFontMapper * _arg0;
3228 wxConfigBase * _arg1;
3229 PyObject * _argo0 = 0;
3230 PyObject * _argo1 = 0;
3231 char *_kwnames[] = { "self","config", NULL };
3232
3233 self = self;
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3235 return NULL;
3236 if (_argo0) {
3237 if (_argo0 == Py_None) { _arg0 = NULL; }
3238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3240 return NULL;
3241 }
3242 }
3243 if (_argo1) {
3244 if (_argo1 == Py_None) { _arg1 = NULL; }
3245 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3246 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3247 return NULL;
3248 }
3249 }
3250{
474c48f9 3251 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3252 wxFontMapper_SetConfig(_arg0,_arg1);
059a841c 3253
474c48f9 3254 wxPyEndAllowThreads(__tstate);
059a841c
RD
3255 if (PyErr_Occurred()) return NULL;
3256} Py_INCREF(Py_None);
3257 _resultobj = Py_None;
3258 return _resultobj;
3259}
3260
3261#define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3262static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3263 PyObject * _resultobj;
3264 wxFontMapper * _arg0;
3265 wxString * _arg1;
3266 PyObject * _argo0 = 0;
3267 PyObject * _obj1 = 0;
3268 char *_kwnames[] = { "self","prefix", NULL };
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3277 return NULL;
3278 }
3279 }
3280{
c8bc7bb8
RD
3281 _arg1 = wxString_in_helper(_obj1);
3282 if (_arg1 == NULL)
059a841c 3283 return NULL;
059a841c
RD
3284}
3285{
474c48f9 3286 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3287 wxFontMapper_SetConfigPath(_arg0,*_arg1);
059a841c 3288
474c48f9 3289 wxPyEndAllowThreads(__tstate);
059a841c
RD
3290 if (PyErr_Occurred()) return NULL;
3291} Py_INCREF(Py_None);
3292 _resultobj = Py_None;
3293{
3294 if (_obj1)
3295 delete _arg1;
3296}
3297 return _resultobj;
3298}
3299
3300static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject * _resultobj;
3302 wxChar * _result;
3303 char *_kwnames[] = { NULL };
3304
3305 self = self;
3306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3307 return NULL;
3308{
474c48f9 3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3310 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
059a841c 3311
474c48f9 3312 wxPyEndAllowThreads(__tstate);
059a841c
RD
3313 if (PyErr_Occurred()) return NULL;
3314} _resultobj = Py_BuildValue("s", _result);
3315 return _resultobj;
3316}
3317
3318static void *SwigwxFontTowxGDIObject(void *ptr) {
3319 wxFont *src;
3320 wxGDIObject *dest;
3321 src = (wxFont *) ptr;
3322 dest = (wxGDIObject *) src;
3323 return (void *) dest;
3324}
3325
3326static void *SwigwxFontTowxObject(void *ptr) {
3327 wxFont *src;
3328 wxObject *dest;
3329 src = (wxFont *) ptr;
3330 dest = (wxObject *) src;
3331 return (void *) dest;
3332}
3333
3334#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3335static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3336 PyObject * _resultobj;
3337 wxFont * _result;
3338 int _arg0;
3339 int _arg1;
3340 int _arg2;
3341 int _arg3;
3342 int _arg4 = (int ) FALSE;
3343 char * _arg5 = (char *) "";
3344 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3345 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3346 char _ptemp[128];
3347
3348 self = self;
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3350 return NULL;
3351{
474c48f9 3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3353 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
059a841c 3354
474c48f9 3355 wxPyEndAllowThreads(__tstate);
059a841c
RD
3356 if (PyErr_Occurred()) return NULL;
3357} if (_result) {
3358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3359 _resultobj = Py_BuildValue("s",_ptemp);
3360 } else {
3361 Py_INCREF(Py_None);
3362 _resultobj = Py_None;
3363 }
3364 return _resultobj;
3365}
3366
3367#define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3368static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject * _resultobj;
3370 wxFont * _result;
3371 wxNativeFontInfo * _arg0;
3372 PyObject * _argo0 = 0;
3373 char *_kwnames[] = { "info", NULL };
3374 char _ptemp[128];
3375
3376 self = self;
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3378 return NULL;
3379 if (_argo0) {
3380 if (_argo0 == Py_None) { _arg0 = NULL; }
3381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3383 return NULL;
3384 }
3385 }
3386{
474c48f9 3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3388 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
059a841c 3389
474c48f9 3390 wxPyEndAllowThreads(__tstate);
059a841c
RD
3391 if (PyErr_Occurred()) return NULL;
3392} if (_result) {
3393 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3394 _resultobj = Py_BuildValue("s",_ptemp);
3395 } else {
3396 Py_INCREF(Py_None);
3397 _resultobj = Py_None;
3398 }
3399 return _resultobj;
3400}
3401
3402#define delete_wxFont(_swigobj) (delete _swigobj)
3403static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject * _resultobj;
3405 wxFont * _arg0;
3406 PyObject * _argo0 = 0;
3407 char *_kwnames[] = { "self", NULL };
3408
3409 self = self;
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3411 return NULL;
3412 if (_argo0) {
3413 if (_argo0 == Py_None) { _arg0 = NULL; }
3414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3416 return NULL;
3417 }
3418 }
3419{
474c48f9 3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3421 delete_wxFont(_arg0);
059a841c 3422
474c48f9 3423 wxPyEndAllowThreads(__tstate);
059a841c
RD
3424 if (PyErr_Occurred()) return NULL;
3425} Py_INCREF(Py_None);
3426 _resultobj = Py_None;
3427 return _resultobj;
3428}
3429
3430#define wxFont_Ok(_swigobj) (_swigobj->Ok())
3431static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3432 PyObject * _resultobj;
3433 bool _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_Ok",_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_Ok. Expected _wxFont_p.");
3445 return NULL;
3446 }
3447 }
3448{
474c48f9 3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3450 _result = (bool )wxFont_Ok(_arg0);
059a841c 3451
474c48f9 3452 wxPyEndAllowThreads(__tstate);
059a841c
RD
3453 if (PyErr_Occurred()) return NULL;
3454} _resultobj = Py_BuildValue("i",_result);
3455 return _resultobj;
3456}
3457
3458#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3459static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject * _resultobj;
3461 int _result;
3462 wxFont * _arg0;
3463 PyObject * _argo0 = 0;
3464 char *_kwnames[] = { "self", NULL };
3465
3466 self = self;
3467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3468 return NULL;
3469 if (_argo0) {
3470 if (_argo0 == Py_None) { _arg0 = NULL; }
3471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3473 return NULL;
3474 }
3475 }
3476{
474c48f9 3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3478 _result = (int )wxFont_GetPointSize(_arg0);
059a841c 3479
474c48f9 3480 wxPyEndAllowThreads(__tstate);
059a841c
RD
3481 if (PyErr_Occurred()) return NULL;
3482} _resultobj = Py_BuildValue("i",_result);
3483 return _resultobj;
3484}
3485
3486#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3487static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3488 PyObject * _resultobj;
3489 int _result;
3490 wxFont * _arg0;
3491 PyObject * _argo0 = 0;
3492 char *_kwnames[] = { "self", NULL };
3493
3494 self = self;
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3496 return NULL;
3497 if (_argo0) {
3498 if (_argo0 == Py_None) { _arg0 = NULL; }
3499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3501 return NULL;
3502 }
3503 }
3504{
474c48f9 3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3506 _result = (int )wxFont_GetFamily(_arg0);
059a841c 3507
474c48f9 3508 wxPyEndAllowThreads(__tstate);
059a841c
RD
3509 if (PyErr_Occurred()) return NULL;
3510} _resultobj = Py_BuildValue("i",_result);
3511 return _resultobj;
3512}
3513
3514#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3515static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject * _resultobj;
3517 int _result;
3518 wxFont * _arg0;
3519 PyObject * _argo0 = 0;
3520 char *_kwnames[] = { "self", NULL };
3521
3522 self = self;
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3524 return NULL;
3525 if (_argo0) {
3526 if (_argo0 == Py_None) { _arg0 = NULL; }
3527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3529 return NULL;
3530 }
3531 }
3532{
474c48f9 3533 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3534 _result = (int )wxFont_GetStyle(_arg0);
059a841c 3535
474c48f9 3536 wxPyEndAllowThreads(__tstate);
059a841c
RD
3537 if (PyErr_Occurred()) return NULL;
3538} _resultobj = Py_BuildValue("i",_result);
3539 return _resultobj;
3540}
3541
3542#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3543static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3544 PyObject * _resultobj;
3545 int _result;
3546 wxFont * _arg0;
3547 PyObject * _argo0 = 0;
3548 char *_kwnames[] = { "self", NULL };
3549
3550 self = self;
3551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3552 return NULL;
3553 if (_argo0) {
3554 if (_argo0 == Py_None) { _arg0 = NULL; }
3555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3557 return NULL;
3558 }
3559 }
3560{
474c48f9 3561 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3562 _result = (int )wxFont_GetWeight(_arg0);
059a841c 3563
474c48f9 3564 wxPyEndAllowThreads(__tstate);
059a841c
RD
3565 if (PyErr_Occurred()) return NULL;
3566} _resultobj = Py_BuildValue("i",_result);
3567 return _resultobj;
3568}
3569
3570#define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3571static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3572 PyObject * _resultobj;
3573 bool _result;
3574 wxFont * _arg0;
3575 PyObject * _argo0 = 0;
3576 char *_kwnames[] = { "self", NULL };
3577
3578 self = self;
3579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3580 return NULL;
3581 if (_argo0) {
3582 if (_argo0 == Py_None) { _arg0 = NULL; }
3583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3585 return NULL;
3586 }
3587 }
3588{
474c48f9 3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3590 _result = (bool )wxFont_GetUnderlined(_arg0);
059a841c 3591
474c48f9 3592 wxPyEndAllowThreads(__tstate);
059a841c 3593 if (PyErr_Occurred()) return NULL;
ab9bc19b 3594} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3595 return _resultobj;
3596}
3597
059a841c
RD
3598#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3599static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3600 PyObject * _resultobj;
3601 wxString * _result;
3602 wxFont * _arg0;
3603 PyObject * _argo0 = 0;
3604 char *_kwnames[] = { "self", NULL };
3605
3606 self = self;
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3608 return NULL;
3609 if (_argo0) {
3610 if (_argo0 == Py_None) { _arg0 = NULL; }
3611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3613 return NULL;
3614 }
3615 }
3616{
474c48f9 3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3618 _result = new wxString (wxFont_GetFaceName(_arg0));
059a841c 3619
474c48f9 3620 wxPyEndAllowThreads(__tstate);
059a841c
RD
3621 if (PyErr_Occurred()) return NULL;
3622}{
c8bc7bb8
RD
3623#if wxUSE_UNICODE
3624 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3625#else
059a841c 3626 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3627#endif
059a841c
RD
3628}
3629{
3630 delete _result;
3631}
3632 return _resultobj;
3633}
3634
3635#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3636static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3637 PyObject * _resultobj;
059a841c 3638 wxFontEncoding _result;
70551f47 3639 wxFont * _arg0;
2d091820 3640 PyObject * _argo0 = 0;
107e4716 3641 char *_kwnames[] = { "self", NULL };
70551f47
RD
3642
3643 self = self;
059a841c 3644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
70551f47 3645 return NULL;
2d091820
RD
3646 if (_argo0) {
3647 if (_argo0 == Py_None) { _arg0 = NULL; }
3648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
70551f47
RD
3650 return NULL;
3651 }
3652 }
ab9bc19b 3653{
474c48f9 3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3655 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
ab9bc19b 3656
474c48f9 3657 wxPyEndAllowThreads(__tstate);
4dfaa61e 3658 if (PyErr_Occurred()) return NULL;
ab9bc19b 3659} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
3660 return _resultobj;
3661}
3662
db34b2d4
RD
3663#define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth())
3664static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3665 PyObject * _resultobj;
3666 bool _result;
3667 wxFont * _arg0;
3668 PyObject * _argo0 = 0;
3669 char *_kwnames[] = { "self", NULL };
3670
3671 self = self;
3672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0))
3673 return NULL;
3674 if (_argo0) {
3675 if (_argo0 == Py_None) { _arg0 = NULL; }
3676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p.");
3678 return NULL;
3679 }
3680 }
3681{
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3683 _result = (bool )wxFont_IsFixedWidth(_arg0);
db34b2d4
RD
3684
3685 wxPyEndAllowThreads(__tstate);
3686 if (PyErr_Occurred()) return NULL;
3687} _resultobj = Py_BuildValue("i",_result);
3688 return _resultobj;
3689}
3690
059a841c
RD
3691#define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
3692static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 3693 PyObject * _resultobj;
059a841c 3694 wxNativeFontInfo * _result;
70551f47 3695 wxFont * _arg0;
2d091820 3696 PyObject * _argo0 = 0;
107e4716 3697 char *_kwnames[] = { "self", NULL };
059a841c 3698 char _ptemp[128];
70551f47
RD
3699
3700 self = self;
059a841c 3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
70551f47 3702 return NULL;
2d091820
RD
3703 if (_argo0) {
3704 if (_argo0 == Py_None) { _arg0 = NULL; }
3705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
70551f47
RD
3707 return NULL;
3708 }
3709 }
ab9bc19b 3710{
474c48f9 3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3712 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
ab9bc19b 3713
474c48f9 3714 wxPyEndAllowThreads(__tstate);
4dfaa61e 3715 if (PyErr_Occurred()) return NULL;
059a841c
RD
3716} if (_result) {
3717 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
3718 _resultobj = Py_BuildValue("s",_ptemp);
3719 } else {
3720 Py_INCREF(Py_None);
3721 _resultobj = Py_None;
3722 }
70551f47
RD
3723 return _resultobj;
3724}
3725
1893b029
RD
3726#define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc())
3727static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3728 PyObject * _resultobj;
3729 wxString * _result;
3730 wxFont * _arg0;
3731 PyObject * _argo0 = 0;
3732 char *_kwnames[] = { "self", NULL };
3733
3734 self = self;
3735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0))
3736 return NULL;
3737 if (_argo0) {
3738 if (_argo0 == Py_None) { _arg0 = NULL; }
3739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p.");
3741 return NULL;
3742 }
3743 }
3744{
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3746 _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0));
1893b029
RD
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) return NULL;
3750}{
c8bc7bb8
RD
3751#if wxUSE_UNICODE
3752 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3753#else
1893b029 3754 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3755#endif
1893b029
RD
3756}
3757{
3758 delete _result;
3759}
3760 return _resultobj;
3761}
3762
3763#define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc())
3764static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
3765 PyObject * _resultobj;
3766 wxString * _result;
3767 wxFont * _arg0;
3768 PyObject * _argo0 = 0;
3769 char *_kwnames[] = { "self", NULL };
3770
3771 self = self;
3772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0))
3773 return NULL;
3774 if (_argo0) {
3775 if (_argo0 == Py_None) { _arg0 = NULL; }
3776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p.");
3778 return NULL;
3779 }
3780 }
3781{
3782 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3783 _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0));
1893b029
RD
3784
3785 wxPyEndAllowThreads(__tstate);
3786 if (PyErr_Occurred()) return NULL;
3787}{
c8bc7bb8
RD
3788#if wxUSE_UNICODE
3789 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
3790#else
1893b029 3791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 3792#endif
1893b029
RD
3793}
3794{
3795 delete _result;
3796}
3797 return _resultobj;
3798}
3799
059a841c
RD
3800#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3801static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc 3802 PyObject * _resultobj;
134d79dc 3803 wxFont * _arg0;
059a841c 3804 int _arg1;
134d79dc 3805 PyObject * _argo0 = 0;
059a841c 3806 char *_kwnames[] = { "self","pointSize", NULL };
134d79dc
RD
3807
3808 self = self;
059a841c 3809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
134d79dc
RD
3810 return NULL;
3811 if (_argo0) {
3812 if (_argo0 == Py_None) { _arg0 = NULL; }
3813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
134d79dc
RD
3815 return NULL;
3816 }
3817 }
3818{
474c48f9 3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3820 wxFont_SetPointSize(_arg0,_arg1);
134d79dc 3821
474c48f9 3822 wxPyEndAllowThreads(__tstate);
4dfaa61e 3823 if (PyErr_Occurred()) return NULL;
059a841c
RD
3824} Py_INCREF(Py_None);
3825 _resultobj = Py_None;
134d79dc
RD
3826 return _resultobj;
3827}
3828
059a841c
RD
3829#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3830static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3831 PyObject * _resultobj;
3832 wxFont * _arg0;
059a841c 3833 int _arg1;
2d091820 3834 PyObject * _argo0 = 0;
059a841c 3835 char *_kwnames[] = { "self","family", NULL };
d3b4d113
RR
3836
3837 self = self;
059a841c 3838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
d3b4d113 3839 return NULL;
2d091820
RD
3840 if (_argo0) {
3841 if (_argo0 == Py_None) { _arg0 = NULL; }
3842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
d3b4d113
RR
3844 return NULL;
3845 }
3846 }
ab9bc19b 3847{
474c48f9 3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3849 wxFont_SetFamily(_arg0,_arg1);
ab9bc19b 3850
474c48f9 3851 wxPyEndAllowThreads(__tstate);
4dfaa61e 3852 if (PyErr_Occurred()) return NULL;
ab9bc19b 3853} Py_INCREF(Py_None);
d3b4d113 3854 _resultobj = Py_None;
d3b4d113
RR
3855 return _resultobj;
3856}
3857
059a841c
RD
3858#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3859static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3860 PyObject * _resultobj;
3861 wxFont * _arg0;
3862 int _arg1;
2d091820 3863 PyObject * _argo0 = 0;
059a841c 3864 char *_kwnames[] = { "self","style", NULL };
d3b4d113
RR
3865
3866 self = self;
059a841c 3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
d3b4d113 3868 return NULL;
2d091820
RD
3869 if (_argo0) {
3870 if (_argo0 == Py_None) { _arg0 = NULL; }
3871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
d3b4d113
RR
3873 return NULL;
3874 }
3875 }
ab9bc19b 3876{
474c48f9 3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3878 wxFont_SetStyle(_arg0,_arg1);
ab9bc19b 3879
474c48f9 3880 wxPyEndAllowThreads(__tstate);
4dfaa61e 3881 if (PyErr_Occurred()) return NULL;
ab9bc19b 3882} Py_INCREF(Py_None);
d3b4d113
RR
3883 _resultobj = Py_None;
3884 return _resultobj;
3885}
3886
059a841c
RD
3887#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3888static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3889 PyObject * _resultobj;
3890 wxFont * _arg0;
3891 int _arg1;
2d091820 3892 PyObject * _argo0 = 0;
059a841c 3893 char *_kwnames[] = { "self","weight", NULL };
d3b4d113
RR
3894
3895 self = self;
059a841c 3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
d3b4d113 3897 return NULL;
2d091820
RD
3898 if (_argo0) {
3899 if (_argo0 == Py_None) { _arg0 = NULL; }
3900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
d3b4d113
RR
3902 return NULL;
3903 }
3904 }
ab9bc19b 3905{
474c48f9 3906 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3907 wxFont_SetWeight(_arg0,_arg1);
ab9bc19b 3908
474c48f9 3909 wxPyEndAllowThreads(__tstate);
4dfaa61e 3910 if (PyErr_Occurred()) return NULL;
ab9bc19b 3911} Py_INCREF(Py_None);
d3b4d113
RR
3912 _resultobj = Py_None;
3913 return _resultobj;
3914}
3915
059a841c
RD
3916#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3917static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3918 PyObject * _resultobj;
3919 wxFont * _arg0;
059a841c 3920 wxString * _arg1;
2d091820 3921 PyObject * _argo0 = 0;
059a841c
RD
3922 PyObject * _obj1 = 0;
3923 char *_kwnames[] = { "self","faceName", NULL };
d3b4d113
RR
3924
3925 self = self;
059a841c 3926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
d3b4d113 3927 return NULL;
2d091820
RD
3928 if (_argo0) {
3929 if (_argo0 == Py_None) { _arg0 = NULL; }
3930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 3931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
d3b4d113
RR
3932 return NULL;
3933 }
3934 }
059a841c 3935{
c8bc7bb8
RD
3936 _arg1 = wxString_in_helper(_obj1);
3937 if (_arg1 == NULL)
059a841c 3938 return NULL;
059a841c 3939}
ab9bc19b 3940{
474c48f9 3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3942 wxFont_SetFaceName(_arg0,*_arg1);
ab9bc19b 3943
474c48f9 3944 wxPyEndAllowThreads(__tstate);
4dfaa61e 3945 if (PyErr_Occurred()) return NULL;
ab9bc19b 3946} Py_INCREF(Py_None);
d3b4d113 3947 _resultobj = Py_None;
059a841c
RD
3948{
3949 if (_obj1)
3950 delete _arg1;
3951}
d3b4d113
RR
3952 return _resultobj;
3953}
3954
3955#define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
107e4716 3956static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3957 PyObject * _resultobj;
3958 wxFont * _arg0;
3959 bool _arg1;
2d091820 3960 PyObject * _argo0 = 0;
d3b4d113 3961 int tempbool1;
107e4716 3962 char *_kwnames[] = { "self","underlined", NULL };
d3b4d113
RR
3963
3964 self = self;
107e4716 3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
d3b4d113 3966 return NULL;
2d091820
RD
3967 if (_argo0) {
3968 if (_argo0 == Py_None) { _arg0 = NULL; }
3969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
d3b4d113
RR
3970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3971 return NULL;
3972 }
3973 }
3974 _arg1 = (bool ) tempbool1;
ab9bc19b 3975{
474c48f9 3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3977 wxFont_SetUnderlined(_arg0,_arg1);
ab9bc19b 3978
474c48f9 3979 wxPyEndAllowThreads(__tstate);
4dfaa61e 3980 if (PyErr_Occurred()) return NULL;
ab9bc19b 3981} Py_INCREF(Py_None);
d3b4d113
RR
3982 _resultobj = Py_None;
3983 return _resultobj;
3984}
3985
059a841c
RD
3986#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3987static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
d3b4d113
RR
3988 PyObject * _resultobj;
3989 wxFont * _arg0;
059a841c 3990 wxFontEncoding _arg1;
2d091820 3991 PyObject * _argo0 = 0;
059a841c 3992 char *_kwnames[] = { "self","encoding", NULL };
d3b4d113
RR
3993
3994 self = self;
059a841c 3995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
d3b4d113 3996 return NULL;
2d091820
RD
3997 if (_argo0) {
3998 if (_argo0 == Py_None) { _arg0 = NULL; }
3999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c 4000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
d3b4d113
RR
4001 return NULL;
4002 }
4003 }
ab9bc19b 4004{
474c48f9 4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4006 wxFont_SetEncoding(_arg0,_arg1);
ab9bc19b 4007
474c48f9 4008 wxPyEndAllowThreads(__tstate);
4dfaa61e 4009 if (PyErr_Occurred()) return NULL;
ab9bc19b 4010} Py_INCREF(Py_None);
d3b4d113
RR
4011 _resultobj = Py_None;
4012 return _resultobj;
4013}
4014
059a841c
RD
4015#define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4016static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
134d79dc
RD
4017 PyObject * _resultobj;
4018 wxFont * _arg0;
059a841c 4019 wxNativeFontInfo * _arg1;
134d79dc 4020 PyObject * _argo0 = 0;
059a841c
RD
4021 PyObject * _argo1 = 0;
4022 char *_kwnames[] = { "self","info", NULL };
134d79dc
RD
4023
4024 self = self;
059a841c 4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
134d79dc
RD
4026 return NULL;
4027 if (_argo0) {
4028 if (_argo0 == Py_None) { _arg0 = NULL; }
4029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
059a841c
RD
4030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4031 return NULL;
4032 }
4033 }
4034 if (_argo1) {
4035 if (_argo1 == Py_None) { _arg1 = NULL; }
4036 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4037 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
134d79dc
RD
4038 return NULL;
4039 }
4040 }
4041{
474c48f9 4042 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4043 wxFont_SetNativeFontInfo(_arg0,*_arg1);
134d79dc 4044
474c48f9 4045 wxPyEndAllowThreads(__tstate);
4dfaa61e 4046 if (PyErr_Occurred()) return NULL;
134d79dc
RD
4047} Py_INCREF(Py_None);
4048 _resultobj = Py_None;
4049 return _resultobj;
4050}
4051
1893b029
RD
4052#define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0))
4053static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
4054 PyObject * _resultobj;
4055 wxFont * _arg0;
4056 wxString * _arg1;
4057 PyObject * _argo0 = 0;
4058 PyObject * _obj1 = 0;
4059 char *_kwnames[] = { "self","info", NULL };
4060
4061 self = self;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1))
4063 return NULL;
4064 if (_argo0) {
4065 if (_argo0 == Py_None) { _arg0 = NULL; }
4066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p.");
4068 return NULL;
4069 }
4070 }
4071{
c8bc7bb8
RD
4072 _arg1 = wxString_in_helper(_obj1);
4073 if (_arg1 == NULL)
1893b029 4074 return NULL;
1893b029
RD
4075}
4076{
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4078 wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1);
1893b029
RD
4079
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) return NULL;
4082} Py_INCREF(Py_None);
4083 _resultobj = Py_None;
4084{
4085 if (_obj1)
4086 delete _arg1;
4087}
4088 return _resultobj;
4089}
4090
134d79dc
RD
4091#define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4092static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject * _resultobj;
4094 wxString * _result;
4095 wxFont * _arg0;
4096 PyObject * _argo0 = 0;
4097 char *_kwnames[] = { "self", NULL };
4098
4099 self = self;
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4101 return NULL;
4102 if (_argo0) {
4103 if (_argo0 == Py_None) { _arg0 = NULL; }
4104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4106 return NULL;
4107 }
4108 }
4109{
474c48f9 4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4111 _result = new wxString (wxFont_GetFamilyString(_arg0));
134d79dc 4112
474c48f9 4113 wxPyEndAllowThreads(__tstate);
4dfaa61e 4114 if (PyErr_Occurred()) return NULL;
134d79dc 4115}{
c8bc7bb8
RD
4116#if wxUSE_UNICODE
4117 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4118#else
e02c03a4 4119 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4120#endif
134d79dc
RD
4121}
4122{
4123 delete _result;
4124}
4125 return _resultobj;
4126}
4127
4128#define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4129static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject * _resultobj;
4131 wxString * _result;
4132 wxFont * _arg0;
4133 PyObject * _argo0 = 0;
4134 char *_kwnames[] = { "self", NULL };
4135
4136 self = self;
4137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4138 return NULL;
4139 if (_argo0) {
4140 if (_argo0 == Py_None) { _arg0 = NULL; }
4141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4143 return NULL;
4144 }
4145 }
4146{
474c48f9 4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4148 _result = new wxString (wxFont_GetStyleString(_arg0));
134d79dc 4149
474c48f9 4150 wxPyEndAllowThreads(__tstate);
4dfaa61e 4151 if (PyErr_Occurred()) return NULL;
134d79dc 4152}{
c8bc7bb8
RD
4153#if wxUSE_UNICODE
4154 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4155#else
e02c03a4 4156 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4157#endif
134d79dc
RD
4158}
4159{
4160 delete _result;
4161}
4162 return _resultobj;
4163}
4164
4165#define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4166static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject * _resultobj;
4168 wxString * _result;
4169 wxFont * _arg0;
4170 PyObject * _argo0 = 0;
4171 char *_kwnames[] = { "self", NULL };
4172
4173 self = self;
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4175 return NULL;
4176 if (_argo0) {
4177 if (_argo0 == Py_None) { _arg0 = NULL; }
4178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4180 return NULL;
4181 }
4182 }
4183{
474c48f9 4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4185 _result = new wxString (wxFont_GetWeightString(_arg0));
134d79dc 4186
474c48f9 4187 wxPyEndAllowThreads(__tstate);
4dfaa61e 4188 if (PyErr_Occurred()) return NULL;
134d79dc 4189}{
c8bc7bb8
RD
4190#if wxUSE_UNICODE
4191 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4192#else
e02c03a4 4193 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4194#endif
134d79dc
RD
4195}
4196{
4197 delete _result;
4198}
4199 return _resultobj;
4200}
4201
059a841c
RD
4202static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject * _resultobj;
4204 wxFontEncoding _result;
4205 char *_kwnames[] = { NULL };
4206
4207 self = self;
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4209 return NULL;
4210{
474c48f9 4211 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4212 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
059a841c 4213
474c48f9 4214 wxPyEndAllowThreads(__tstate);
059a841c
RD
4215 if (PyErr_Occurred()) return NULL;
4216} _resultobj = Py_BuildValue("i",_result);
4217 return _resultobj;
4218}
4219
4220static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4221 PyObject * _resultobj;
4222 wxFontEncoding _arg0;
4223 char *_kwnames[] = { "encoding", NULL };
4224
4225 self = self;
4226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4227 return NULL;
4228{
474c48f9 4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4230 wxFont::SetDefaultEncoding(_arg0);
059a841c 4231
474c48f9 4232 wxPyEndAllowThreads(__tstate);
059a841c
RD
4233 if (PyErr_Occurred()) return NULL;
4234} Py_INCREF(Py_None);
4235 _resultobj = Py_None;
4236 return _resultobj;
4237}
4238
9df61a29
RD
4239static void *SwigwxFontListTowxObject(void *ptr) {
4240 wxFontList *src;
4241 wxObject *dest;
4242 src = (wxFontList *) ptr;
4243 dest = (wxObject *) src;
4244 return (void *) dest;
4245}
4246
5e40f9dd
RD
4247#define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4248static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4249 PyObject * _resultobj;
4250 wxFontList * _arg0;
4251 wxFont * _arg1;
4252 PyObject * _argo0 = 0;
4253 PyObject * _argo1 = 0;
4254 char *_kwnames[] = { "self","font", NULL };
4255
4256 self = self;
4257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4258 return NULL;
4259 if (_argo0) {
4260 if (_argo0 == Py_None) { _arg0 = NULL; }
4261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4263 return NULL;
4264 }
4265 }
4266 if (_argo1) {
4267 if (_argo1 == Py_None) { _arg1 = NULL; }
4268 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4269 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4270 return NULL;
4271 }
4272 }
4273{
474c48f9 4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4275 wxFontList_AddFont(_arg0,_arg1);
5e40f9dd 4276
474c48f9 4277 wxPyEndAllowThreads(__tstate);
4dfaa61e 4278 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4279} Py_INCREF(Py_None);
4280 _resultobj = Py_None;
4281 return _resultobj;
4282}
4283
4284#define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4285static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject * _resultobj;
4287 wxFont * _result;
4288 wxFontList * _arg0;
4289 int _arg1;
4290 int _arg2;
4291 int _arg3;
4292 int _arg4;
4293 bool _arg5 = (bool ) FALSE;
4294 char * _arg6 = (char *) NULL;
4295 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4296 PyObject * _argo0 = 0;
4297 int tempbool5 = (int) FALSE;
4298 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4299 char _ptemp[128];
4300
4301 self = self;
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4303 return NULL;
4304 if (_argo0) {
4305 if (_argo0 == Py_None) { _arg0 = NULL; }
4306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4308 return NULL;
4309 }
4310 }
4311 _arg5 = (bool ) tempbool5;
4312{
474c48f9 4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4314 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
5e40f9dd 4315
474c48f9 4316 wxPyEndAllowThreads(__tstate);
4dfaa61e 4317 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4318} if (_result) {
4319 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4320 _resultobj = Py_BuildValue("s",_ptemp);
4321 } else {
4322 Py_INCREF(Py_None);
4323 _resultobj = Py_None;
4324 }
4325 return _resultobj;
4326}
4327
4328#define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4329static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4330 PyObject * _resultobj;
4331 wxFontList * _arg0;
4332 wxFont * _arg1;
4333 PyObject * _argo0 = 0;
4334 PyObject * _argo1 = 0;
4335 char *_kwnames[] = { "self","font", NULL };
4336
4337 self = self;
4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4339 return NULL;
4340 if (_argo0) {
4341 if (_argo0 == Py_None) { _arg0 = NULL; }
4342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4344 return NULL;
4345 }
4346 }
4347 if (_argo1) {
4348 if (_argo1 == Py_None) { _arg1 = NULL; }
4349 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4350 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4351 return NULL;
4352 }
4353 }
4354{
474c48f9 4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4356 wxFontList_RemoveFont(_arg0,_arg1);
5e40f9dd 4357
474c48f9 4358 wxPyEndAllowThreads(__tstate);
4dfaa61e 4359 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4360} Py_INCREF(Py_None);
4361 _resultobj = Py_None;
4362 return _resultobj;
4363}
4364
7a9b33db
RD
4365#define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4366static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4367 PyObject * _resultobj;
4368 int _result;
4369 wxFontList * _arg0;
4370 PyObject * _argo0 = 0;
4371 char *_kwnames[] = { "self", NULL };
4372
4373 self = self;
4374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4375 return NULL;
4376 if (_argo0) {
4377 if (_argo0 == Py_None) { _arg0 = NULL; }
4378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4380 return NULL;
4381 }
4382 }
4383{
474c48f9 4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4385 _result = (int )wxFontList_GetCount(_arg0);
7a9b33db 4386
474c48f9 4387 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
4388 if (PyErr_Occurred()) return NULL;
4389} _resultobj = Py_BuildValue("i",_result);
4390 return _resultobj;
4391}
4392
9df61a29
RD
4393static void *SwigwxColourTowxObject(void *ptr) {
4394 wxColour *src;
4395 wxObject *dest;
4396 src = (wxColour *) ptr;
4397 dest = (wxObject *) src;
4398 return (void *) dest;
4399}
4400
70551f47 4401#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 4402static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4403 PyObject * _resultobj;
4404 wxColour * _result;
2d091820
RD
4405 unsigned char _arg0 = (unsigned char ) 0;
4406 unsigned char _arg1 = (unsigned char ) 0;
4407 unsigned char _arg2 = (unsigned char ) 0;
107e4716 4408 char *_kwnames[] = { "red","green","blue", NULL };
70551f47
RD
4409 char _ptemp[128];
4410
4411 self = self;
107e4716 4412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
70551f47 4413 return NULL;
ab9bc19b 4414{
474c48f9 4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4416 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
ab9bc19b 4417
474c48f9 4418 wxPyEndAllowThreads(__tstate);
4dfaa61e 4419 if (PyErr_Occurred()) return NULL;
2d091820
RD
4420} if (_result) {
4421 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4422 _resultobj = Py_BuildValue("s",_ptemp);
4423 } else {
4424 Py_INCREF(Py_None);
4425 _resultobj = Py_None;
4426 }
70551f47
RD
4427 return _resultobj;
4428}
4429
4430#define delete_wxColour(_swigobj) (delete _swigobj)
107e4716 4431static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4432 PyObject * _resultobj;
4433 wxColour * _arg0;
f6bcfd97
BP
4434 wxColour temp;
4435 PyObject * _obj0 = 0;
107e4716 4436 char *_kwnames[] = { "self", NULL };
70551f47
RD
4437
4438 self = self;
f6bcfd97 4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
70551f47 4440 return NULL;
f6bcfd97
BP
4441{
4442 _arg0 = &temp;
4443 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4444 return NULL;
f6bcfd97 4445}
ab9bc19b 4446{
474c48f9 4447 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4448 delete_wxColour(_arg0);
ab9bc19b 4449
474c48f9 4450 wxPyEndAllowThreads(__tstate);
4dfaa61e 4451 if (PyErr_Occurred()) return NULL;
ab9bc19b 4452} Py_INCREF(Py_None);
70551f47
RD
4453 _resultobj = Py_None;
4454 return _resultobj;
4455}
4456
4457#define wxColour_Red(_swigobj) (_swigobj->Red())
107e4716 4458static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4459 PyObject * _resultobj;
4460 unsigned char _result;
4461 wxColour * _arg0;
f6bcfd97
BP
4462 wxColour temp;
4463 PyObject * _obj0 = 0;
107e4716 4464 char *_kwnames[] = { "self", NULL };
70551f47
RD
4465
4466 self = self;
f6bcfd97 4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
70551f47 4468 return NULL;
f6bcfd97
BP
4469{
4470 _arg0 = &temp;
4471 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4472 return NULL;
f6bcfd97 4473}
ab9bc19b 4474{
474c48f9 4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4476 _result = (unsigned char )wxColour_Red(_arg0);
ab9bc19b 4477
474c48f9 4478 wxPyEndAllowThreads(__tstate);
4dfaa61e 4479 if (PyErr_Occurred()) return NULL;
ab9bc19b 4480} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4481 return _resultobj;
4482}
4483
4484#define wxColour_Green(_swigobj) (_swigobj->Green())
107e4716 4485static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4486 PyObject * _resultobj;
4487 unsigned char _result;
4488 wxColour * _arg0;
f6bcfd97
BP
4489 wxColour temp;
4490 PyObject * _obj0 = 0;
107e4716 4491 char *_kwnames[] = { "self", NULL };
70551f47
RD
4492
4493 self = self;
f6bcfd97 4494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
70551f47 4495 return NULL;
f6bcfd97
BP
4496{
4497 _arg0 = &temp;
4498 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4499 return NULL;
f6bcfd97 4500}
ab9bc19b 4501{
474c48f9 4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4503 _result = (unsigned char )wxColour_Green(_arg0);
ab9bc19b 4504
474c48f9 4505 wxPyEndAllowThreads(__tstate);
4dfaa61e 4506 if (PyErr_Occurred()) return NULL;
ab9bc19b 4507} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4508 return _resultobj;
4509}
4510
4511#define wxColour_Blue(_swigobj) (_swigobj->Blue())
107e4716 4512static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4513 PyObject * _resultobj;
4514 unsigned char _result;
4515 wxColour * _arg0;
f6bcfd97
BP
4516 wxColour temp;
4517 PyObject * _obj0 = 0;
107e4716 4518 char *_kwnames[] = { "self", NULL };
70551f47
RD
4519
4520 self = self;
f6bcfd97 4521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
70551f47 4522 return NULL;
f6bcfd97
BP
4523{
4524 _arg0 = &temp;
4525 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4526 return NULL;
f6bcfd97 4527}
ab9bc19b 4528{
474c48f9 4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4530 _result = (unsigned char )wxColour_Blue(_arg0);
ab9bc19b 4531
474c48f9 4532 wxPyEndAllowThreads(__tstate);
4dfaa61e 4533 if (PyErr_Occurred()) return NULL;
ab9bc19b 4534} _resultobj = Py_BuildValue("b",_result);
70551f47
RD
4535 return _resultobj;
4536}
4537
4538#define wxColour_Ok(_swigobj) (_swigobj->Ok())
107e4716 4539static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4540 PyObject * _resultobj;
4541 bool _result;
4542 wxColour * _arg0;
f6bcfd97
BP
4543 wxColour temp;
4544 PyObject * _obj0 = 0;
107e4716 4545 char *_kwnames[] = { "self", NULL };
70551f47
RD
4546
4547 self = self;
f6bcfd97 4548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
70551f47 4549 return NULL;
f6bcfd97
BP
4550{
4551 _arg0 = &temp;
4552 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4553 return NULL;
f6bcfd97 4554}
ab9bc19b 4555{
474c48f9 4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4557 _result = (bool )wxColour_Ok(_arg0);
ab9bc19b 4558
474c48f9 4559 wxPyEndAllowThreads(__tstate);
4dfaa61e 4560 if (PyErr_Occurred()) return NULL;
ab9bc19b 4561} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4562 return _resultobj;
4563}
4564
4565#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
107e4716 4566static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4567 PyObject * _resultobj;
4568 wxColour * _arg0;
4569 unsigned char _arg1;
4570 unsigned char _arg2;
4571 unsigned char _arg3;
f6bcfd97
BP
4572 wxColour temp;
4573 PyObject * _obj0 = 0;
107e4716 4574 char *_kwnames[] = { "self","red","green","blue", NULL };
70551f47
RD
4575
4576 self = self;
f6bcfd97 4577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
70551f47 4578 return NULL;
f6bcfd97
BP
4579{
4580 _arg0 = &temp;
4581 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4582 return NULL;
f6bcfd97 4583}
ab9bc19b 4584{
474c48f9 4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4586 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 4587
474c48f9 4588 wxPyEndAllowThreads(__tstate);
4dfaa61e 4589 if (PyErr_Occurred()) return NULL;
ab9bc19b 4590} Py_INCREF(Py_None);
70551f47
RD
4591 _resultobj = Py_None;
4592 return _resultobj;
4593}
4594
4595static PyObject * wxColour_Get(wxColour *self) {
4596 PyObject* rv = PyTuple_New(3);
4597 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4598 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4599 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4600 return rv;
4601 }
107e4716 4602static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4603 PyObject * _resultobj;
4604 PyObject * _result;
4605 wxColour * _arg0;
f6bcfd97
BP
4606 wxColour temp;
4607 PyObject * _obj0 = 0;
107e4716 4608 char *_kwnames[] = { "self", NULL };
70551f47
RD
4609
4610 self = self;
f6bcfd97 4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
70551f47 4612 return NULL;
f6bcfd97
BP
4613{
4614 _arg0 = &temp;
4615 if (! wxColour_helper(_obj0, &_arg0))
70551f47 4616 return NULL;
f6bcfd97 4617}
70551f47 4618{
474c48f9 4619 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4620 _result = (PyObject *)wxColour_Get(_arg0);
ab9bc19b 4621
474c48f9 4622 wxPyEndAllowThreads(__tstate);
4dfaa61e 4623 if (PyErr_Occurred()) return NULL;
ab9bc19b 4624}{
70551f47
RD
4625 _resultobj = _result;
4626}
4627 return _resultobj;
4628}
4629
9df61a29
RD
4630static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4631 wxColourDatabase *src;
4632 wxObject *dest;
4633 src = (wxColourDatabase *) ptr;
4634 dest = (wxObject *) src;
4635 return (void *) dest;
4636}
4637
5e40f9dd
RD
4638#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4639static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4640 PyObject * _resultobj;
5e40f9dd
RD
4641 wxColour * _result;
4642 wxColourDatabase * _arg0;
4643 wxString * _arg1;
4644 PyObject * _argo0 = 0;
4645 PyObject * _obj1 = 0;
4646 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4647 char _ptemp[128];
4648
4649 self = self;
5e40f9dd
RD
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4651 return NULL;
4652 if (_argo0) {
4653 if (_argo0 == Py_None) { _arg0 = NULL; }
4654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
70551f47 4656 return NULL;
5e40f9dd
RD
4657 }
4658 }
f6bcfd97 4659{
c8bc7bb8
RD
4660 _arg1 = wxString_in_helper(_obj1);
4661 if (_arg1 == NULL)
5e40f9dd 4662 return NULL;
f6bcfd97 4663}
ab9bc19b 4664{
474c48f9 4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4666 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
ab9bc19b 4667
474c48f9 4668 wxPyEndAllowThreads(__tstate);
4dfaa61e 4669 if (PyErr_Occurred()) return NULL;
2d091820 4670} if (_result) {
5e40f9dd 4671 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
2d091820
RD
4672 _resultobj = Py_BuildValue("s",_ptemp);
4673 } else {
4674 Py_INCREF(Py_None);
4675 _resultobj = Py_None;
4676 }
5e40f9dd
RD
4677{
4678 if (_obj1)
4679 delete _arg1;
4680}
70551f47
RD
4681 return _resultobj;
4682}
4683
5e40f9dd
RD
4684#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4685static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4686 PyObject * _resultobj;
5e40f9dd
RD
4687 wxString * _result;
4688 wxColourDatabase * _arg0;
4689 wxColour * _arg1;
2d091820 4690 PyObject * _argo0 = 0;
5e40f9dd
RD
4691 wxColour temp;
4692 PyObject * _obj1 = 0;
4693 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
4694
4695 self = self;
5e40f9dd 4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
70551f47 4697 return NULL;
2d091820
RD
4698 if (_argo0) {
4699 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
70551f47
RD
4702 return NULL;
4703 }
4704 }
5e40f9dd
RD
4705{
4706 _arg1 = &temp;
4707 if (! wxColour_helper(_obj1, &_arg1))
4708 return NULL;
4709}
ab9bc19b 4710{
474c48f9 4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4712 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
ab9bc19b 4713
474c48f9 4714 wxPyEndAllowThreads(__tstate);
4dfaa61e 4715 if (PyErr_Occurred()) return NULL;
5e40f9dd 4716}{
c8bc7bb8
RD
4717#if wxUSE_UNICODE
4718 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
4719#else
5e40f9dd 4720 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 4721#endif
5e40f9dd
RD
4722}
4723{
4724 delete _result;
4725}
70551f47
RD
4726 return _resultobj;
4727}
4728
5e40f9dd 4729static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
ef2060fa
RD
4730 // first see if the name is already there
4731 wxString cName = name;
4732 cName.MakeUpper();
4733 wxString cName2 = cName;
4734 if ( !cName2.Replace("GRAY", "GREY") )
4735 cName2.clear();
4736
4737 wxNode *node = self->First();
4738 while ( node ) {
4739 const wxChar *key = node->GetKeyString();
4740 if ( cName == key || cName2 == key ) {
4741 wxColour* c = (wxColour *)node->Data();
4742 c->Set(red, green, blue);
4743 return;
4744 }
4745 node = node->Next();
4746 }
4747
4748 // otherwise append the new colour
5e40f9dd
RD
4749 self->Append(name.c_str(), new wxColour(red, green, blue));
4750 }
4751static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47 4752 PyObject * _resultobj;
5e40f9dd
RD
4753 wxColourDatabase * _arg0;
4754 wxString * _arg1;
4755 int _arg2;
4756 int _arg3;
4757 int _arg4;
2d091820 4758 PyObject * _argo0 = 0;
5e40f9dd
RD
4759 PyObject * _obj1 = 0;
4760 char *_kwnames[] = { "self","name","red","green","blue", NULL };
70551f47
RD
4761
4762 self = self;
5e40f9dd 4763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
70551f47 4764 return NULL;
2d091820
RD
4765 if (_argo0) {
4766 if (_argo0 == Py_None) { _arg0 = NULL; }
5e40f9dd
RD
4767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
70551f47
RD
4769 return NULL;
4770 }
4771 }
ab9bc19b 4772{
c8bc7bb8
RD
4773 _arg1 = wxString_in_helper(_obj1);
4774 if (_arg1 == NULL)
5e40f9dd 4775 return NULL;
5e40f9dd
RD
4776}
4777{
474c48f9 4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4779 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5e40f9dd 4780
474c48f9 4781 wxPyEndAllowThreads(__tstate);
4dfaa61e 4782 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4783} Py_INCREF(Py_None);
4784 _resultobj = Py_None;
4785{
4786 if (_obj1)
4787 delete _arg1;
4788}
4789 return _resultobj;
4790}
4791
9df61a29
RD
4792static void *SwigwxPenTowxGDIObject(void *ptr) {
4793 wxPen *src;
4794 wxGDIObject *dest;
4795 src = (wxPen *) ptr;
4796 dest = (wxGDIObject *) src;
4797 return (void *) dest;
4798}
4799
4800static void *SwigwxPenTowxObject(void *ptr) {
4801 wxPen *src;
4802 wxObject *dest;
4803 src = (wxPen *) ptr;
4804 dest = (wxObject *) src;
4805 return (void *) dest;
4806}
4807
5e40f9dd
RD
4808#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4809static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject * _resultobj;
4811 wxPen * _result;
4812 wxColour * _arg0;
4813 int _arg1 = (int ) 1;
4814 int _arg2 = (int ) wxSOLID;
4815 wxColour temp;
4816 PyObject * _obj0 = 0;
4817 char *_kwnames[] = { "colour","width","style", NULL };
4818 char _ptemp[128];
4819
4820 self = self;
4821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4822 return NULL;
4823{
4824 _arg0 = &temp;
4825 if (! wxColour_helper(_obj0, &_arg0))
4826 return NULL;
4827}
4828{
474c48f9 4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4830 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5e40f9dd 4831
474c48f9 4832 wxPyEndAllowThreads(__tstate);
4dfaa61e 4833 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4834} if (_result) {
4835 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4836 _resultobj = Py_BuildValue("s",_ptemp);
4837 } else {
4838 Py_INCREF(Py_None);
4839 _resultobj = Py_None;
4840 }
4841 return _resultobj;
4842}
4843
4844#define delete_wxPen(_swigobj) (delete _swigobj)
4845static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject * _resultobj;
4847 wxPen * _arg0;
4848 PyObject * _argo0 = 0;
4849 char *_kwnames[] = { "self", NULL };
4850
4851 self = self;
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4853 return NULL;
4854 if (_argo0) {
4855 if (_argo0 == Py_None) { _arg0 = NULL; }
4856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4858 return NULL;
4859 }
4860 }
4861{
474c48f9 4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4863 delete_wxPen(_arg0);
5e40f9dd 4864
474c48f9 4865 wxPyEndAllowThreads(__tstate);
4dfaa61e 4866 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4867} Py_INCREF(Py_None);
4868 _resultobj = Py_None;
4869 return _resultobj;
4870}
4871
4872#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4873static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4874 PyObject * _resultobj;
4875 int _result;
4876 wxPen * _arg0;
4877 PyObject * _argo0 = 0;
4878 char *_kwnames[] = { "self", NULL };
4879
4880 self = self;
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4882 return NULL;
4883 if (_argo0) {
4884 if (_argo0 == Py_None) { _arg0 = NULL; }
4885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4887 return NULL;
4888 }
4889 }
4890{
474c48f9 4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4892 _result = (int )wxPen_GetCap(_arg0);
5e40f9dd 4893
474c48f9 4894 wxPyEndAllowThreads(__tstate);
4dfaa61e 4895 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
4896} _resultobj = Py_BuildValue("i",_result);
4897 return _resultobj;
4898}
4899
4900#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4901static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4902 PyObject * _resultobj;
4903 wxColour * _result;
4904 wxPen * _arg0;
4905 PyObject * _argo0 = 0;
4906 char *_kwnames[] = { "self", NULL };
4907 char _ptemp[128];
4908
4909 self = self;
4910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4911 return NULL;
4912 if (_argo0) {
4913 if (_argo0 == Py_None) { _arg0 = NULL; }
4914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4916 return NULL;
4917 }
4918 }
4919{
474c48f9 4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4921 _result = new wxColour (wxPen_GetColour(_arg0));
5e40f9dd 4922
474c48f9 4923 wxPyEndAllowThreads(__tstate);
4dfaa61e 4924 if (PyErr_Occurred()) return NULL;
84a81942
RD
4925} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4926 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
4927 return _resultobj;
4928}
4929
4930#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
107e4716 4931static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4932 PyObject * _resultobj;
4933 int _result;
4934 wxPen * _arg0;
2d091820 4935 PyObject * _argo0 = 0;
107e4716 4936 char *_kwnames[] = { "self", NULL };
70551f47
RD
4937
4938 self = self;
107e4716 4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
70551f47 4940 return NULL;
2d091820
RD
4941 if (_argo0) {
4942 if (_argo0 == Py_None) { _arg0 = NULL; }
4943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4945 return NULL;
4946 }
4947 }
ab9bc19b 4948{
474c48f9 4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4950 _result = (int )wxPen_GetJoin(_arg0);
ab9bc19b 4951
474c48f9 4952 wxPyEndAllowThreads(__tstate);
4dfaa61e 4953 if (PyErr_Occurred()) return NULL;
ab9bc19b 4954} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4955 return _resultobj;
4956}
4957
4958#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 4959static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4960 PyObject * _resultobj;
4961 int _result;
4962 wxPen * _arg0;
2d091820 4963 PyObject * _argo0 = 0;
107e4716 4964 char *_kwnames[] = { "self", NULL };
70551f47
RD
4965
4966 self = self;
107e4716 4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
70551f47 4968 return NULL;
2d091820
RD
4969 if (_argo0) {
4970 if (_argo0 == Py_None) { _arg0 = NULL; }
4971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
4972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4973 return NULL;
4974 }
4975 }
ab9bc19b 4976{
474c48f9 4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 4978 _result = (int )wxPen_GetStyle(_arg0);
ab9bc19b 4979
474c48f9 4980 wxPyEndAllowThreads(__tstate);
4dfaa61e 4981 if (PyErr_Occurred()) return NULL;
ab9bc19b 4982} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
4983 return _resultobj;
4984}
4985
4986#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 4987static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
4988 PyObject * _resultobj;
4989 int _result;
4990 wxPen * _arg0;
2d091820 4991 PyObject * _argo0 = 0;
107e4716 4992 char *_kwnames[] = { "self", NULL };
70551f47
RD
4993
4994 self = self;
107e4716 4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
70551f47 4996 return NULL;
2d091820
RD
4997 if (_argo0) {
4998 if (_argo0 == Py_None) { _arg0 = NULL; }
4999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5001 return NULL;
5002 }
5003 }
ab9bc19b 5004{
474c48f9 5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5006 _result = (int )wxPen_GetWidth(_arg0);
ab9bc19b 5007
474c48f9 5008 wxPyEndAllowThreads(__tstate);
4dfaa61e 5009 if (PyErr_Occurred()) return NULL;
ab9bc19b 5010} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5011 return _resultobj;
5012}
5013
5014#define wxPen_Ok(_swigobj) (_swigobj->Ok())
107e4716 5015static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5016 PyObject * _resultobj;
5017 bool _result;
5018 wxPen * _arg0;
2d091820 5019 PyObject * _argo0 = 0;
107e4716 5020 char *_kwnames[] = { "self", NULL };
70551f47
RD
5021
5022 self = self;
107e4716 5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
70551f47 5024 return NULL;
2d091820
RD
5025 if (_argo0) {
5026 if (_argo0 == Py_None) { _arg0 = NULL; }
5027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5029 return NULL;
5030 }
5031 }
ab9bc19b 5032{
474c48f9 5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5034 _result = (bool )wxPen_Ok(_arg0);
ab9bc19b 5035
474c48f9 5036 wxPyEndAllowThreads(__tstate);
4dfaa61e 5037 if (PyErr_Occurred()) return NULL;
ab9bc19b 5038} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5039 return _resultobj;
5040}
5041
5042#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
107e4716 5043static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5044 PyObject * _resultobj;
5045 wxPen * _arg0;
5046 int _arg1;
2d091820 5047 PyObject * _argo0 = 0;
107e4716 5048 char *_kwnames[] = { "self","cap_style", NULL };
70551f47
RD
5049
5050 self = self;
107e4716 5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
70551f47 5052 return NULL;
2d091820
RD
5053 if (_argo0) {
5054 if (_argo0 == Py_None) { _arg0 = NULL; }
5055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5057 return NULL;
5058 }
5059 }
ab9bc19b 5060{
474c48f9 5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5062 wxPen_SetCap(_arg0,_arg1);
ab9bc19b 5063
474c48f9 5064 wxPyEndAllowThreads(__tstate);
4dfaa61e 5065 if (PyErr_Occurred()) return NULL;
ab9bc19b 5066} Py_INCREF(Py_None);
70551f47
RD
5067 _resultobj = Py_None;
5068 return _resultobj;
5069}
5070
5071#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5072static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5073 PyObject * _resultobj;
5074 wxPen * _arg0;
5075 wxColour * _arg1;
2d091820 5076 PyObject * _argo0 = 0;
f6bcfd97
BP
5077 wxColour temp;
5078 PyObject * _obj1 = 0;
107e4716 5079 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
5080
5081 self = self;
f6bcfd97 5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
70551f47 5083 return NULL;
2d091820
RD
5084 if (_argo0) {
5085 if (_argo0 == Py_None) { _arg0 = NULL; }
5086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5088 return NULL;
5089 }
5090 }
f6bcfd97
BP
5091{
5092 _arg1 = &temp;
5093 if (! wxColour_helper(_obj1, &_arg1))
70551f47 5094 return NULL;
f6bcfd97 5095}
ab9bc19b 5096{
474c48f9 5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5098 wxPen_SetColour(_arg0,*_arg1);
ab9bc19b 5099
474c48f9 5100 wxPyEndAllowThreads(__tstate);
4dfaa61e 5101 if (PyErr_Occurred()) return NULL;
ab9bc19b 5102} Py_INCREF(Py_None);
70551f47
RD
5103 _resultobj = Py_None;
5104 return _resultobj;
5105}
5106
5107#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
107e4716 5108static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5109 PyObject * _resultobj;
5110 wxPen * _arg0;
5111 int _arg1;
2d091820 5112 PyObject * _argo0 = 0;
107e4716 5113 char *_kwnames[] = { "self","join_style", NULL };
70551f47
RD
5114
5115 self = self;
107e4716 5116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
70551f47 5117 return NULL;
2d091820
RD
5118 if (_argo0) {
5119 if (_argo0 == Py_None) { _arg0 = NULL; }
5120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5122 return NULL;
5123 }
5124 }
ab9bc19b 5125{
474c48f9 5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5127 wxPen_SetJoin(_arg0,_arg1);
ab9bc19b 5128
474c48f9 5129 wxPyEndAllowThreads(__tstate);
4dfaa61e 5130 if (PyErr_Occurred()) return NULL;
ab9bc19b 5131} Py_INCREF(Py_None);
70551f47
RD
5132 _resultobj = Py_None;
5133 return _resultobj;
5134}
5135
5136#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5137static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5138 PyObject * _resultobj;
5139 wxPen * _arg0;
5140 int _arg1;
2d091820 5141 PyObject * _argo0 = 0;
107e4716 5142 char *_kwnames[] = { "self","style", NULL };
70551f47
RD
5143
5144 self = self;
107e4716 5145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
70551f47 5146 return NULL;
2d091820
RD
5147 if (_argo0) {
5148 if (_argo0 == Py_None) { _arg0 = NULL; }
5149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5151 return NULL;
5152 }
5153 }
ab9bc19b 5154{
474c48f9 5155 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5156 wxPen_SetStyle(_arg0,_arg1);
ab9bc19b 5157
474c48f9 5158 wxPyEndAllowThreads(__tstate);
4dfaa61e 5159 if (PyErr_Occurred()) return NULL;
ab9bc19b 5160} Py_INCREF(Py_None);
70551f47
RD
5161 _resultobj = Py_None;
5162 return _resultobj;
5163}
5164
5165#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
107e4716 5166static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5167 PyObject * _resultobj;
5168 wxPen * _arg0;
5169 int _arg1;
2d091820 5170 PyObject * _argo0 = 0;
107e4716 5171 char *_kwnames[] = { "self","width", NULL };
70551f47
RD
5172
5173 self = self;
107e4716 5174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
70551f47 5175 return NULL;
2d091820
RD
5176 if (_argo0) {
5177 if (_argo0 == Py_None) { _arg0 = NULL; }
5178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
70551f47
RD
5179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5180 return NULL;
5181 }
5182 }
ab9bc19b 5183{
474c48f9 5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5185 wxPen_SetWidth(_arg0,_arg1);
ab9bc19b 5186
474c48f9 5187 wxPyEndAllowThreads(__tstate);
4dfaa61e 5188 if (PyErr_Occurred()) return NULL;
ab9bc19b 5189} Py_INCREF(Py_None);
70551f47
RD
5190 _resultobj = Py_None;
5191 return _resultobj;
5192}
5193
65191ae8
RD
5194#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5195static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5196 PyObject * _resultobj;
56f5d962 5197 wxPen * _arg0;
65191ae8
RD
5198 int _arg1;
5199 wxDash * _arg2;
56f5d962 5200 PyObject * _argo0 = 0;
65191ae8
RD
5201 PyObject * _obj2 = 0;
5202 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5203
5204 self = self;
65191ae8 5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5206 return NULL;
5207 if (_argo0) {
5208 if (_argo0 == Py_None) { _arg0 = NULL; }
5209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
65191ae8 5210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
56f5d962
RD
5211 return NULL;
5212 }
5213 }
65191ae8
RD
5214 if (_obj2)
5215{
5216 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5217 if (_arg2 == NULL) {
5218 return NULL;
5219 }
5220}
5221{
5222 if (_obj2) {
5223 _arg1 = PyList_Size(_obj2);
5224 }
5225 else {
5226 _arg1 = 0;
5227 }
5228}
5229{
474c48f9 5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5231 wxPen_SetDashes(_arg0,_arg1,_arg2);
65191ae8 5232
474c48f9 5233 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5234 if (PyErr_Occurred()) return NULL;
5235} Py_INCREF(Py_None);
5236 _resultobj = Py_None;
5237{
5238 delete [] _arg2;
5239}
5240 return _resultobj;
5241}
5242
5243static void *SwigwxPyPenTowxPen(void *ptr) {
5244 wxPyPen *src;
5245 wxPen *dest;
5246 src = (wxPyPen *) ptr;
5247 dest = (wxPen *) src;
5248 return (void *) dest;
5249}
5250
5251static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5252 wxPyPen *src;
5253 wxGDIObject *dest;
5254 src = (wxPyPen *) ptr;
5255 dest = (wxGDIObject *) src;
5256 return (void *) dest;
5257}
5258
5259static void *SwigwxPyPenTowxObject(void *ptr) {
5260 wxPyPen *src;
5261 wxObject *dest;
5262 src = (wxPyPen *) ptr;
5263 dest = (wxObject *) src;
5264 return (void *) dest;
5265}
5266
5267#define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5268static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5269 PyObject * _resultobj;
5270 wxPyPen * _result;
5271 wxColour * _arg0;
5272 int _arg1 = (int ) 1;
5273 int _arg2 = (int ) wxSOLID;
5274 wxColour temp;
5275 PyObject * _obj0 = 0;
5276 char *_kwnames[] = { "colour","width","style", NULL };
5277 char _ptemp[128];
5278
5279 self = self;
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5281 return NULL;
5282{
5283 _arg0 = &temp;
5284 if (! wxColour_helper(_obj0, &_arg0))
5285 return NULL;
5286}
5287{
474c48f9 5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5289 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
65191ae8 5290
474c48f9 5291 wxPyEndAllowThreads(__tstate);
65191ae8
RD
5292 if (PyErr_Occurred()) return NULL;
5293} if (_result) {
5294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5295 _resultobj = Py_BuildValue("s",_ptemp);
5296 } else {
5297 Py_INCREF(Py_None);
5298 _resultobj = Py_None;
5299 }
5300 return _resultobj;
5301}
5302
5303#define delete_wxPyPen(_swigobj) (delete _swigobj)
5304static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5305 PyObject * _resultobj;
5306 wxPyPen * _arg0;
5307 PyObject * _argo0 = 0;
5308 char *_kwnames[] = { "self", NULL };
5309
5310 self = self;
5311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5312 return NULL;
5313 if (_argo0) {
5314 if (_argo0 == Py_None) { _arg0 = NULL; }
5315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
56f5d962
RD
5317 return NULL;
5318 }
5319 }
5320{
474c48f9 5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5322 delete_wxPyPen(_arg0);
56f5d962 5323
474c48f9 5324 wxPyEndAllowThreads(__tstate);
4dfaa61e 5325 if (PyErr_Occurred()) return NULL;
65191ae8
RD
5326} Py_INCREF(Py_None);
5327 _resultobj = Py_None;
56f5d962
RD
5328 return _resultobj;
5329}
5330
65191ae8
RD
5331#define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5332static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 5333 PyObject * _resultobj;
65191ae8 5334 wxPyPen * _arg0;
56f5d962
RD
5335 int _arg1;
5336 wxDash * _arg2;
5337 PyObject * _argo0 = 0;
5338 PyObject * _obj2 = 0;
e02c03a4 5339 char *_kwnames[] = { "self","choices", NULL };
56f5d962
RD
5340
5341 self = self;
65191ae8 5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
56f5d962
RD
5343 return NULL;
5344 if (_argo0) {
5345 if (_argo0 == Py_None) { _arg0 = NULL; }
65191ae8
RD
5346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
56f5d962
RD
5348 return NULL;
5349 }
5350 }
5351 if (_obj2)
5352{
41073357 5353 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
56f5d962
RD
5354 if (_arg2 == NULL) {
5355 return NULL;
5356 }
5357}
5358{
5359 if (_obj2) {
5360 _arg1 = PyList_Size(_obj2);
5361 }
5362 else {
5363 _arg1 = 0;
5364 }
5365}
5366{
474c48f9 5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5368 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
56f5d962 5369
474c48f9 5370 wxPyEndAllowThreads(__tstate);
4dfaa61e 5371 if (PyErr_Occurred()) return NULL;
56f5d962
RD
5372} Py_INCREF(Py_None);
5373 _resultobj = Py_None;
5374{
5375 delete [] _arg2;
5376}
5377 return _resultobj;
5378}
5379
9df61a29
RD
5380static void *SwigwxPenListTowxObject(void *ptr) {
5381 wxPenList *src;
5382 wxObject *dest;
5383 src = (wxPenList *) ptr;
5384 dest = (wxObject *) src;
5385 return (void *) dest;
5386}
5387
5e40f9dd
RD
5388#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5389static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5390 PyObject * _resultobj;
5391 wxPenList * _arg0;
5392 wxPen * _arg1;
5393 PyObject * _argo0 = 0;
5394 PyObject * _argo1 = 0;
5395 char *_kwnames[] = { "self","pen", NULL };
5396
5397 self = self;
5398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5399 return NULL;
5400 if (_argo0) {
5401 if (_argo0 == Py_None) { _arg0 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5404 return NULL;
70551f47 5405 }
5e40f9dd
RD
5406 }
5407 if (_argo1) {
5408 if (_argo1 == Py_None) { _arg1 = NULL; }
5409 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5410 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5411 return NULL;
5412 }
5413 }
5414{
474c48f9 5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5416 wxPenList_AddPen(_arg0,_arg1);
70551f47 5417
474c48f9 5418 wxPyEndAllowThreads(__tstate);
4dfaa61e 5419 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5420} Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 return _resultobj;
5423}
5424
5425#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5426static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject * _resultobj;
5428 wxPen * _result;
5429 wxPenList * _arg0;
5430 wxColour * _arg1;
5431 int _arg2;
5432 int _arg3;
5433 PyObject * _argo0 = 0;
5434 wxColour temp;
5435 PyObject * _obj1 = 0;
5436 char *_kwnames[] = { "self","colour","width","style", NULL };
5437 char _ptemp[128];
5438
5439 self = self;
5440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5441 return NULL;
5442 if (_argo0) {
5443 if (_argo0 == Py_None) { _arg0 = NULL; }
5444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5446 return NULL;
5447 }
5448 }
5449{
5450 _arg1 = &temp;
5451 if (! wxColour_helper(_obj1, &_arg1))
5452 return NULL;
5453}
5454{
474c48f9 5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5456 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5e40f9dd 5457
474c48f9 5458 wxPyEndAllowThreads(__tstate);
4dfaa61e 5459 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5460} if (_result) {
5461 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5462 _resultobj = Py_BuildValue("s",_ptemp);
5463 } else {
5464 Py_INCREF(Py_None);
5465 _resultobj = Py_None;
5466 }
5467 return _resultobj;
5468}
5469
5470#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5471static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject * _resultobj;
5473 wxPenList * _arg0;
5474 wxPen * _arg1;
5475 PyObject * _argo0 = 0;
5476 PyObject * _argo1 = 0;
5477 char *_kwnames[] = { "self","pen", NULL };
5478
5479 self = self;
5480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5481 return NULL;
5482 if (_argo0) {
5483 if (_argo0 == Py_None) { _arg0 = NULL; }
5484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5486 return NULL;
5487 }
5488 }
5489 if (_argo1) {
5490 if (_argo1 == Py_None) { _arg1 = NULL; }
5491 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5492 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5493 return NULL;
5494 }
5495 }
5496{
474c48f9 5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5498 wxPenList_RemovePen(_arg0,_arg1);
5e40f9dd 5499
474c48f9 5500 wxPyEndAllowThreads(__tstate);
4dfaa61e 5501 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5502} Py_INCREF(Py_None);
5503 _resultobj = Py_None;
5504 return _resultobj;
5505}
5506
7a9b33db
RD
5507#define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5508static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5509 PyObject * _resultobj;
5510 int _result;
5511 wxPenList * _arg0;
5512 PyObject * _argo0 = 0;
5513 char *_kwnames[] = { "self", NULL };
5514
5515 self = self;
5516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5517 return NULL;
5518 if (_argo0) {
5519 if (_argo0 == Py_None) { _arg0 = NULL; }
5520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5522 return NULL;
5523 }
5524 }
5525{
474c48f9 5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5527 _result = (int )wxPenList_GetCount(_arg0);
7a9b33db 5528
474c48f9 5529 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
5530 if (PyErr_Occurred()) return NULL;
5531} _resultobj = Py_BuildValue("i",_result);
5532 return _resultobj;
5533}
5534
9df61a29
RD
5535static void *SwigwxBrushTowxGDIObject(void *ptr) {
5536 wxBrush *src;
5537 wxGDIObject *dest;
5538 src = (wxBrush *) ptr;
5539 dest = (wxGDIObject *) src;
5540 return (void *) dest;
5541}
5542
5543static void *SwigwxBrushTowxObject(void *ptr) {
5544 wxBrush *src;
5545 wxObject *dest;
5546 src = (wxBrush *) ptr;
5547 dest = (wxObject *) src;
5548 return (void *) dest;
5549}
5550
5e40f9dd 5551#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
107e4716 5552static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5553 PyObject * _resultobj;
5554 wxBrush * _result;
5555 wxColour * _arg0;
2d091820 5556 int _arg1 = (int ) wxSOLID;
f6bcfd97
BP
5557 wxColour temp;
5558 PyObject * _obj0 = 0;
107e4716 5559 char *_kwnames[] = { "colour","style", NULL };
70551f47
RD
5560 char _ptemp[128];
5561
5562 self = self;
f6bcfd97 5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
70551f47 5564 return NULL;
f6bcfd97
BP
5565{
5566 _arg0 = &temp;
5567 if (! wxColour_helper(_obj0, &_arg0))
70551f47 5568 return NULL;
f6bcfd97 5569}
ab9bc19b 5570{
474c48f9 5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5572 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
ab9bc19b 5573
474c48f9 5574 wxPyEndAllowThreads(__tstate);
4dfaa61e 5575 if (PyErr_Occurred()) return NULL;
2d091820
RD
5576} if (_result) {
5577 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5578 _resultobj = Py_BuildValue("s",_ptemp);
5579 } else {
5580 Py_INCREF(Py_None);
5581 _resultobj = Py_None;
5582 }
70551f47
RD
5583 return _resultobj;
5584}
5585
5e40f9dd
RD
5586#define delete_wxBrush(_swigobj) (delete _swigobj)
5587static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5588 PyObject * _resultobj;
5589 wxBrush * _arg0;
5590 PyObject * _argo0 = 0;
5591 char *_kwnames[] = { "self", NULL };
5592
5593 self = self;
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5595 return NULL;
5596 if (_argo0) {
5597 if (_argo0 == Py_None) { _arg0 = NULL; }
5598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5600 return NULL;
5601 }
5602 }
5603{
474c48f9 5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5605 delete_wxBrush(_arg0);
5e40f9dd 5606
474c48f9 5607 wxPyEndAllowThreads(__tstate);
4dfaa61e 5608 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5609} Py_INCREF(Py_None);
5610 _resultobj = Py_None;
5611 return _resultobj;
5612}
5613
70551f47 5614#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
107e4716 5615static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5616 PyObject * _resultobj;
5617 wxColour * _result;
5618 wxBrush * _arg0;
2d091820 5619 PyObject * _argo0 = 0;
107e4716 5620 char *_kwnames[] = { "self", NULL };
70551f47
RD
5621 char _ptemp[128];
5622
5623 self = self;
107e4716 5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
70551f47 5625 return NULL;
2d091820
RD
5626 if (_argo0) {
5627 if (_argo0 == Py_None) { _arg0 = NULL; }
5628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5630 return NULL;
5631 }
5632 }
ab9bc19b 5633{
474c48f9 5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5635 _result = new wxColour (wxBrush_GetColour(_arg0));
ab9bc19b 5636
474c48f9 5637 wxPyEndAllowThreads(__tstate);
4dfaa61e 5638 if (PyErr_Occurred()) return NULL;
84a81942
RD
5639} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5640 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
5641 return _resultobj;
5642}
5643
5644#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
107e4716 5645static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5646 PyObject * _resultobj;
5647 wxBitmap * _result;
5648 wxBrush * _arg0;
2d091820 5649 PyObject * _argo0 = 0;
107e4716 5650 char *_kwnames[] = { "self", NULL };
70551f47
RD
5651 char _ptemp[128];
5652
5653 self = self;
107e4716 5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
70551f47 5655 return NULL;
2d091820
RD
5656 if (_argo0) {
5657 if (_argo0 == Py_None) { _arg0 = NULL; }
5658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5660 return NULL;
5661 }
5662 }
ab9bc19b 5663{
474c48f9 5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5665 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
ab9bc19b 5666
474c48f9 5667 wxPyEndAllowThreads(__tstate);
4dfaa61e 5668 if (PyErr_Occurred()) return NULL;
2d091820
RD
5669} if (_result) {
5670 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5671 _resultobj = Py_BuildValue("s",_ptemp);
5672 } else {
5673 Py_INCREF(Py_None);
5674 _resultobj = Py_None;
5675 }
70551f47
RD
5676 return _resultobj;
5677}
5678
5679#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
107e4716 5680static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5681 PyObject * _resultobj;
5682 int _result;
5683 wxBrush * _arg0;
2d091820 5684 PyObject * _argo0 = 0;
107e4716 5685 char *_kwnames[] = { "self", NULL };
70551f47
RD
5686
5687 self = self;
107e4716 5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
70551f47 5689 return NULL;
2d091820
RD
5690 if (_argo0) {
5691 if (_argo0 == Py_None) { _arg0 = NULL; }
5692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5694 return NULL;
5695 }
5696 }
ab9bc19b 5697{
474c48f9 5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5699 _result = (int )wxBrush_GetStyle(_arg0);
ab9bc19b 5700
474c48f9 5701 wxPyEndAllowThreads(__tstate);
4dfaa61e 5702 if (PyErr_Occurred()) return NULL;
ab9bc19b 5703} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5704 return _resultobj;
5705}
5706
5707#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
107e4716 5708static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
5709 PyObject * _resultobj;
5710 bool _result;
5711 wxBrush * _arg0;
2d091820 5712 PyObject * _argo0 = 0;
107e4716 5713 char *_kwnames[] = { "self", NULL };
70551f47
RD
5714
5715 self = self;
107e4716 5716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
70551f47 5717 return NULL;
2d091820
RD
5718 if (_argo0) {
5719 if (_argo0 == Py_None) { _arg0 = NULL; }
5720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
70551f47
RD
5721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5722 return NULL;
5723 }
5724 }
ab9bc19b 5725{
474c48f9 5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5727 _result = (bool )wxBrush_Ok(_arg0);
ab9bc19b 5728
474c48f9 5729 wxPyEndAllowThreads(__tstate);
4dfaa61e 5730 if (PyErr_Occurred()) return NULL;
ab9bc19b 5731} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
5732 return _resultobj;
5733}
5734
c95e68d8 5735#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
107e4716 5736static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5737 PyObject * _resultobj;
5738 wxBrush * _arg0;
5739 wxColour * _arg1;
2d091820 5740 PyObject * _argo0 = 0;
f6bcfd97
BP
5741 wxColour temp;
5742 PyObject * _obj1 = 0;
107e4716 5743 char *_kwnames[] = { "self","colour", NULL };
c95e68d8
RD
5744
5745 self = self;
f6bcfd97 5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
c95e68d8 5747 return NULL;
2d091820
RD
5748 if (_argo0) {
5749 if (_argo0 == Py_None) { _arg0 = NULL; }
5750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5752 return NULL;
5753 }
5754 }
f6bcfd97
BP
5755{
5756 _arg1 = &temp;
5757 if (! wxColour_helper(_obj1, &_arg1))
c95e68d8 5758 return NULL;
f6bcfd97 5759}
ab9bc19b 5760{
474c48f9 5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5762 wxBrush_SetColour(_arg0,*_arg1);
ab9bc19b 5763
474c48f9 5764 wxPyEndAllowThreads(__tstate);
4dfaa61e 5765 if (PyErr_Occurred()) return NULL;
ab9bc19b 5766} Py_INCREF(Py_None);
c95e68d8
RD
5767 _resultobj = Py_None;
5768 return _resultobj;
5769}
5770
5771#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
107e4716 5772static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5773 PyObject * _resultobj;
5774 wxBrush * _arg0;
5775 wxBitmap * _arg1;
2d091820
RD
5776 PyObject * _argo0 = 0;
5777 PyObject * _argo1 = 0;
107e4716 5778 char *_kwnames[] = { "self","bitmap", NULL };
c95e68d8
RD
5779
5780 self = self;
107e4716 5781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
c95e68d8 5782 return NULL;
2d091820
RD
5783 if (_argo0) {
5784 if (_argo0 == Py_None) { _arg0 = NULL; }
5785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5787 return NULL;
5788 }
5789 }
2d091820
RD
5790 if (_argo1) {
5791 if (_argo1 == Py_None) { _arg1 = NULL; }
5792 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
c95e68d8
RD
5793 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5794 return NULL;
5795 }
5796 }
ab9bc19b 5797{
474c48f9 5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5799 wxBrush_SetStipple(_arg0,*_arg1);
ab9bc19b 5800
474c48f9 5801 wxPyEndAllowThreads(__tstate);
4dfaa61e 5802 if (PyErr_Occurred()) return NULL;
ab9bc19b 5803} Py_INCREF(Py_None);
c95e68d8
RD
5804 _resultobj = Py_None;
5805 return _resultobj;
5806}
5807
5808#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
107e4716 5809static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
5810 PyObject * _resultobj;
5811 wxBrush * _arg0;
5812 int _arg1;
2d091820 5813 PyObject * _argo0 = 0;
107e4716 5814 char *_kwnames[] = { "self","style", NULL };
c95e68d8
RD
5815
5816 self = self;
107e4716 5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
c95e68d8 5818 return NULL;
2d091820
RD
5819 if (_argo0) {
5820 if (_argo0 == Py_None) { _arg0 = NULL; }
5821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
c95e68d8
RD
5822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5823 return NULL;
5824 }
5825 }
ab9bc19b 5826{
474c48f9 5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5828 wxBrush_SetStyle(_arg0,_arg1);
ab9bc19b 5829
474c48f9 5830 wxPyEndAllowThreads(__tstate);
4dfaa61e 5831 if (PyErr_Occurred()) return NULL;
ab9bc19b 5832} Py_INCREF(Py_None);
c95e68d8
RD
5833 _resultobj = Py_None;
5834 return _resultobj;
5835}
5836
65191ae8
RD
5837static void *SwigwxBrushListTowxObject(void *ptr) {
5838 wxBrushList *src;
5839 wxObject *dest;
5840 src = (wxBrushList *) ptr;
5841 dest = (wxObject *) src;
5842 return (void *) dest;
5843}
5844
5e40f9dd
RD
5845#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5846static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5847 PyObject * _resultobj;
5848 wxBrushList * _arg0;
5849 wxBrush * _arg1;
5850 PyObject * _argo0 = 0;
5851 PyObject * _argo1 = 0;
5852 char *_kwnames[] = { "self","brush", NULL };
5853
5854 self = self;
5855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5856 return NULL;
5857 if (_argo0) {
5858 if (_argo0 == Py_None) { _arg0 = NULL; }
5859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5861 return NULL;
5862 }
5863 }
5864 if (_argo1) {
5865 if (_argo1 == Py_None) { _arg1 = NULL; }
5866 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5867 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5868 return NULL;
5869 }
5870 }
5871{
474c48f9 5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5873 wxBrushList_AddBrush(_arg0,_arg1);
5e40f9dd 5874
474c48f9 5875 wxPyEndAllowThreads(__tstate);
4dfaa61e 5876 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5877} Py_INCREF(Py_None);
5878 _resultobj = Py_None;
5879 return _resultobj;
5880}
5881
5882#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5883static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5884 PyObject * _resultobj;
5885 wxBrush * _result;
5886 wxBrushList * _arg0;
5887 wxColour * _arg1;
5888 int _arg2;
5889 PyObject * _argo0 = 0;
5890 wxColour temp;
5891 PyObject * _obj1 = 0;
5892 char *_kwnames[] = { "self","colour","style", NULL };
5893 char _ptemp[128];
5894
5895 self = self;
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5897 return NULL;
5898 if (_argo0) {
5899 if (_argo0 == Py_None) { _arg0 = NULL; }
5900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5902 return NULL;
5903 }
5904 }
5905{
5906 _arg1 = &temp;
5907 if (! wxColour_helper(_obj1, &_arg1))
5908 return NULL;
5909}
5910{
474c48f9 5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5912 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5e40f9dd 5913
474c48f9 5914 wxPyEndAllowThreads(__tstate);
4dfaa61e 5915 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5916} if (_result) {
5917 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5918 _resultobj = Py_BuildValue("s",_ptemp);
5919 } else {
5920 Py_INCREF(Py_None);
5921 _resultobj = Py_None;
5922 }
5923 return _resultobj;
5924}
5925
5926#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5927static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject * _resultobj;
5929 wxBrushList * _arg0;
5930 wxBrush * _arg1;
5931 PyObject * _argo0 = 0;
5932 PyObject * _argo1 = 0;
5933 char *_kwnames[] = { "self","brush", NULL };
5934
5935 self = self;
5936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
5937 return NULL;
5938 if (_argo0) {
5939 if (_argo0 == Py_None) { _arg0 = NULL; }
5940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5942 return NULL;
5943 }
5944 }
5945 if (_argo1) {
5946 if (_argo1 == Py_None) { _arg1 = NULL; }
5947 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5948 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5949 return NULL;
5950 }
5951 }
5952{
474c48f9 5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5954 wxBrushList_RemoveBrush(_arg0,_arg1);
5e40f9dd 5955
474c48f9 5956 wxPyEndAllowThreads(__tstate);
4dfaa61e 5957 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
5958} Py_INCREF(Py_None);
5959 _resultobj = Py_None;
5960 return _resultobj;
5961}
5962
7a9b33db
RD
5963#define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
5964static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5965 PyObject * _resultobj;
5966 int _result;
5967 wxBrushList * _arg0;
5968 PyObject * _argo0 = 0;
5969 char *_kwnames[] = { "self", NULL };
5970
5971 self = self;
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
5973 return NULL;
5974 if (_argo0) {
5975 if (_argo0 == Py_None) { _arg0 = NULL; }
5976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
5978 return NULL;
5979 }
5980 }
5981{
474c48f9 5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 5983 _result = (int )wxBrushList_GetCount(_arg0);
7a9b33db 5984
474c48f9 5985 wxPyEndAllowThreads(__tstate);
7a9b33db
RD
5986 if (PyErr_Occurred()) return NULL;
5987} _resultobj = Py_BuildValue("i",_result);
5988 return _resultobj;
5989}
5990
9df61a29
RD
5991static void *SwigwxDCTowxObject(void *ptr) {
5992 wxDC *src;
5993 wxObject *dest;
5994 src = (wxDC *) ptr;
5995 dest = (wxObject *) src;
5996 return (void *) dest;
5997}
5998
70551f47 5999#define delete_wxDC(_swigobj) (delete _swigobj)
107e4716 6000static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6001 PyObject * _resultobj;
6002 wxDC * _arg0;
2d091820 6003 PyObject * _argo0 = 0;
107e4716 6004 char *_kwnames[] = { "self", NULL };
70551f47
RD
6005
6006 self = self;
107e4716 6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
70551f47 6008 return NULL;
2d091820
RD
6009 if (_argo0) {
6010 if (_argo0 == Py_None) { _arg0 = NULL; }
6011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6013 return NULL;
6014 }
6015 }
ab9bc19b 6016{
474c48f9 6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6018 delete_wxDC(_arg0);
ab9bc19b 6019
474c48f9 6020 wxPyEndAllowThreads(__tstate);
4dfaa61e 6021 if (PyErr_Occurred()) return NULL;
ab9bc19b 6022} Py_INCREF(Py_None);
70551f47
RD
6023 _resultobj = Py_None;
6024 return _resultobj;
6025}
6026
6027#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
107e4716 6028static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6029 PyObject * _resultobj;
6030 wxDC * _arg0;
2d091820 6031 PyObject * _argo0 = 0;
107e4716 6032 char *_kwnames[] = { "self", NULL };
70551f47
RD
6033
6034 self = self;
107e4716 6035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
70551f47 6036 return NULL;
2d091820
RD
6037 if (_argo0) {
6038 if (_argo0 == Py_None) { _arg0 = NULL; }
6039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6041 return NULL;
6042 }
6043 }
ab9bc19b 6044{
474c48f9 6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6046 wxDC_BeginDrawing(_arg0);
ab9bc19b 6047
474c48f9 6048 wxPyEndAllowThreads(__tstate);
4dfaa61e 6049 if (PyErr_Occurred()) return NULL;
ab9bc19b 6050} Py_INCREF(Py_None);
70551f47
RD
6051 _resultobj = Py_None;
6052 return _resultobj;
6053}
6054
107e4716
RD
6055#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6056static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6057 PyObject * _resultobj;
6058 bool _result;
6059 wxDC * _arg0;
6060 long _arg1;
6061 long _arg2;
6062 long _arg3;
6063 long _arg4;
6064 wxDC * _arg5;
6065 long _arg6;
6066 long _arg7;
107e4716
RD
6067 int _arg8 = (int ) wxCOPY;
6068 int _arg9 = (int ) FALSE;
2d091820
RD
6069 PyObject * _argo0 = 0;
6070 PyObject * _argo5 = 0;
107e4716 6071 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
70551f47
RD
6072
6073 self = self;
107e4716 6074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
70551f47 6075 return NULL;
2d091820
RD
6076 if (_argo0) {
6077 if (_argo0 == Py_None) { _arg0 = NULL; }
6078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6080 return NULL;
6081 }
6082 }
2d091820
RD
6083 if (_argo5) {
6084 if (_argo5 == Py_None) { _arg5 = NULL; }
6085 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
70551f47
RD
6086 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6087 return NULL;
6088 }
6089 }
ab9bc19b 6090{
474c48f9 6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6092 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
ab9bc19b 6093
474c48f9 6094 wxPyEndAllowThreads(__tstate);
4dfaa61e 6095 if (PyErr_Occurred()) return NULL;
ab9bc19b 6096} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
6097 return _resultobj;
6098}
6099
6100#define wxDC_Clear(_swigobj) (_swigobj->Clear())
107e4716 6101static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6102 PyObject * _resultobj;
6103 wxDC * _arg0;
2d091820 6104 PyObject * _argo0 = 0;
107e4716 6105 char *_kwnames[] = { "self", NULL };
70551f47
RD
6106
6107 self = self;
107e4716 6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
70551f47 6109 return NULL;
2d091820
RD
6110 if (_argo0) {
6111 if (_argo0 == Py_None) { _arg0 = NULL; }
6112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6114 return NULL;
6115 }
6116 }
ab9bc19b 6117{
474c48f9 6118 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6119 wxDC_Clear(_arg0);
ab9bc19b 6120
474c48f9 6121 wxPyEndAllowThreads(__tstate);
4dfaa61e 6122 if (PyErr_Occurred()) return NULL;
ab9bc19b 6123} Py_INCREF(Py_None);
70551f47
RD
6124 _resultobj = Py_None;
6125 return _resultobj;
6126}
6127
6128#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
107e4716 6129static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6130 PyObject * _resultobj;
6131 wxDC * _arg0;
6132 long _arg1;
6133 long _arg2;
2d091820 6134 PyObject * _argo0 = 0;
107e4716 6135 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6136
6137 self = self;
107e4716 6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6139 return NULL;
2d091820
RD
6140 if (_argo0) {
6141 if (_argo0 == Py_None) { _arg0 = NULL; }
6142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6144 return NULL;
6145 }
6146 }
ab9bc19b 6147{
474c48f9 6148 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6149 wxDC_CrossHair(_arg0,_arg1,_arg2);
ab9bc19b 6150
474c48f9 6151 wxPyEndAllowThreads(__tstate);
4dfaa61e 6152 if (PyErr_Occurred()) return NULL;
ab9bc19b 6153} Py_INCREF(Py_None);
70551f47
RD
6154 _resultobj = Py_None;
6155 return _resultobj;
6156}
6157
6158#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
107e4716 6159static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6160 PyObject * _resultobj;
6161 wxDC * _arg0;
2d091820 6162 PyObject * _argo0 = 0;
107e4716 6163 char *_kwnames[] = { "self", NULL };
70551f47
RD
6164
6165 self = self;
107e4716 6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
70551f47 6167 return NULL;
2d091820
RD
6168 if (_argo0) {
6169 if (_argo0 == Py_None) { _arg0 = NULL; }
6170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6172 return NULL;
6173 }
6174 }
ab9bc19b 6175{
474c48f9 6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6177 wxDC_DestroyClippingRegion(_arg0);
ab9bc19b 6178
474c48f9 6179 wxPyEndAllowThreads(__tstate);
4dfaa61e 6180 if (PyErr_Occurred()) return NULL;
ab9bc19b 6181} Py_INCREF(Py_None);
70551f47
RD
6182 _resultobj = Py_None;
6183 return _resultobj;
6184}
6185
6186#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
107e4716 6187static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6188 PyObject * _resultobj;
6189 long _result;
6190 wxDC * _arg0;
6191 long _arg1;
2d091820 6192 PyObject * _argo0 = 0;
107e4716 6193 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6194
6195 self = self;
107e4716 6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
70551f47 6197 return NULL;
2d091820
RD
6198 if (_argo0) {
6199 if (_argo0 == Py_None) { _arg0 = NULL; }
6200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6202 return NULL;
6203 }
6204 }
ab9bc19b 6205{
474c48f9 6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6207 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
ab9bc19b 6208
474c48f9 6209 wxPyEndAllowThreads(__tstate);
4dfaa61e 6210 if (PyErr_Occurred()) return NULL;
ab9bc19b 6211} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6212 return _resultobj;
6213}
6214
6215#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
107e4716 6216static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6217 PyObject * _resultobj;
6218 long _result;
6219 wxDC * _arg0;
6220 long _arg1;
2d091820 6221 PyObject * _argo0 = 0;
107e4716 6222 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
6223
6224 self = self;
107e4716 6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
70551f47 6226 return NULL;
2d091820
RD
6227 if (_argo0) {
6228 if (_argo0 == Py_None) { _arg0 = NULL; }
6229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6231 return NULL;
6232 }
6233 }
ab9bc19b 6234{
474c48f9 6235 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6236 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
ab9bc19b 6237
474c48f9 6238 wxPyEndAllowThreads(__tstate);
4dfaa61e 6239 if (PyErr_Occurred()) return NULL;
ab9bc19b 6240} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6241 return _resultobj;
6242}
6243
6244#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
107e4716 6245static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6246 PyObject * _resultobj;
6247 long _result;
6248 wxDC * _arg0;
6249 long _arg1;
2d091820 6250 PyObject * _argo0 = 0;
107e4716 6251 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6252
6253 self = self;
107e4716 6254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
70551f47 6255 return NULL;
2d091820
RD
6256 if (_argo0) {
6257 if (_argo0 == Py_None) { _arg0 = NULL; }
6258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6260 return NULL;
6261 }
6262 }
ab9bc19b 6263{
474c48f9 6264 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6265 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
ab9bc19b 6266
474c48f9 6267 wxPyEndAllowThreads(__tstate);
4dfaa61e 6268 if (PyErr_Occurred()) return NULL;
ab9bc19b 6269} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6270 return _resultobj;
6271}
6272
6273#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
107e4716 6274static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6275 PyObject * _resultobj;
6276 long _result;
6277 wxDC * _arg0;
6278 long _arg1;
2d091820 6279 PyObject * _argo0 = 0;
107e4716 6280 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
6281
6282 self = self;
107e4716 6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
70551f47 6284 return NULL;
2d091820
RD
6285 if (_argo0) {
6286 if (_argo0 == Py_None) { _arg0 = NULL; }
6287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6289 return NULL;
6290 }
6291 }
ab9bc19b 6292{
474c48f9 6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6294 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
ab9bc19b 6295
474c48f9 6296 wxPyEndAllowThreads(__tstate);
4dfaa61e 6297 if (PyErr_Occurred()) return NULL;
ab9bc19b 6298} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
6299 return _resultobj;
6300}
6301
6302#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6303static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6304 PyObject * _resultobj;
6305 wxDC * _arg0;
6306 long _arg1;
6307 long _arg2;
6308 long _arg3;
6309 long _arg4;
6310 long _arg5;
6311 long _arg6;
2d091820 6312 PyObject * _argo0 = 0;
107e4716 6313 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
70551f47
RD
6314
6315 self = self;
107e4716 6316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
70551f47 6317 return NULL;
2d091820
RD
6318 if (_argo0) {
6319 if (_argo0 == Py_None) { _arg0 = NULL; }
6320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6322 return NULL;
6323 }
6324 }
ab9bc19b 6325{
474c48f9 6326 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6327 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6328
474c48f9 6329 wxPyEndAllowThreads(__tstate);
4dfaa61e 6330 if (PyErr_Occurred()) return NULL;
ab9bc19b 6331} Py_INCREF(Py_None);
70551f47
RD
6332 _resultobj = Py_None;
6333 return _resultobj;
6334}
6335
d24a34bb 6336#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
107e4716 6337static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
6338 PyObject * _resultobj;
6339 wxDC * _arg0;
6340 long _arg1;
6341 long _arg2;
6342 long _arg3;
2d091820 6343 PyObject * _argo0 = 0;
107e4716 6344 char *_kwnames[] = { "self","x","y","radius", NULL };
d24a34bb
RD
6345
6346 self = self;
107e4716 6347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
d24a34bb 6348 return NULL;
2d091820
RD
6349 if (_argo0) {
6350 if (_argo0 == Py_None) { _arg0 = NULL; }
6351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb
RD
6352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6353 return NULL;
6354 }
6355 }
6356{
474c48f9 6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6358 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
d24a34bb 6359
474c48f9 6360 wxPyEndAllowThreads(__tstate);
4dfaa61e 6361 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
6362} Py_INCREF(Py_None);
6363 _resultobj = Py_None;
6364 return _resultobj;
6365}
6366
70551f47 6367#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6368static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6369 PyObject * _resultobj;
6370 wxDC * _arg0;
6371 long _arg1;
6372 long _arg2;
6373 long _arg3;
6374 long _arg4;
2d091820 6375 PyObject * _argo0 = 0;
107e4716 6376 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6377
6378 self = self;
107e4716 6379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6380 return NULL;
2d091820
RD
6381 if (_argo0) {
6382 if (_argo0 == Py_None) { _arg0 = NULL; }
6383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6385 return NULL;
6386 }
6387 }
ab9bc19b 6388{
474c48f9 6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6390 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6391
474c48f9 6392 wxPyEndAllowThreads(__tstate);
4dfaa61e 6393 if (PyErr_Occurred()) return NULL;
ab9bc19b 6394} Py_INCREF(Py_None);
70551f47
RD
6395 _resultobj = Py_None;
6396 return _resultobj;
6397}
6398
6399#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 6400static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6401 PyObject * _resultobj;
6402 wxDC * _arg0;
6403 long _arg1;
6404 long _arg2;
6405 long _arg3;
6406 long _arg4;
6407 long _arg5;
6408 long _arg6;
2d091820 6409 PyObject * _argo0 = 0;
107e4716 6410 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
70551f47
RD
6411
6412 self = self;
107e4716 6413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
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_DrawEllipticArc. Expected _wxDC_p.");
6419 return NULL;
6420 }
6421 }
ab9bc19b 6422{
474c48f9 6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6424 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 6425
474c48f9 6426 wxPyEndAllowThreads(__tstate);
4dfaa61e 6427 if (PyErr_Occurred()) return NULL;
ab9bc19b 6428} Py_INCREF(Py_None);
70551f47
RD
6429 _resultobj = Py_None;
6430 return _resultobj;
6431}
6432
6433#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
107e4716 6434static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6435 PyObject * _resultobj;
6436 wxDC * _arg0;
6437 wxIcon * _arg1;
6438 long _arg2;
6439 long _arg3;
2d091820
RD
6440 PyObject * _argo0 = 0;
6441 PyObject * _argo1 = 0;
107e4716 6442 char *_kwnames[] = { "self","icon","x","y", NULL };
70551f47
RD
6443
6444 self = self;
107e4716 6445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
70551f47 6446 return NULL;
2d091820
RD
6447 if (_argo0) {
6448 if (_argo0 == Py_None) { _arg0 = NULL; }
6449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6451 return NULL;
6452 }
6453 }
2d091820
RD
6454 if (_argo1) {
6455 if (_argo1 == Py_None) { _arg1 = NULL; }
6456 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
70551f47
RD
6457 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6458 return NULL;
6459 }
6460 }
ab9bc19b 6461{
474c48f9 6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6463 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6464
474c48f9 6465 wxPyEndAllowThreads(__tstate);
4dfaa61e 6466 if (PyErr_Occurred()) return NULL;
ab9bc19b 6467} Py_INCREF(Py_None);
70551f47
RD
6468 _resultobj = Py_None;
6469 return _resultobj;
6470}
6471
8cb49012
RD
6472#define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6473static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6474 PyObject * _resultobj;
6475 wxDC * _arg0;
6476 wxString * _arg1;
6477 wxRect * _arg2;
6478 int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6479 int _arg4 = (int ) -1;
6480 PyObject * _argo0 = 0;
6481 PyObject * _obj1 = 0;
6482 wxRect temp;
6483 PyObject * _obj2 = 0;
6484 char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
6485
6486 self = self;
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
6488 return NULL;
6489 if (_argo0) {
6490 if (_argo0 == Py_None) { _arg0 = NULL; }
6491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
6493 return NULL;
6494 }
6495 }
6496{
c8bc7bb8
RD
6497 _arg1 = wxString_in_helper(_obj1);
6498 if (_arg1 == NULL)
8cb49012 6499 return NULL;
8cb49012
RD
6500}
6501{
6502 _arg2 = &temp;
6503 if (! wxRect_helper(_obj2, &_arg2))
6504 return NULL;
6505}
6506{
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6508 wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
8cb49012
RD
6509
6510 wxPyEndAllowThreads(__tstate);
6511 if (PyErr_Occurred()) return NULL;
6512} Py_INCREF(Py_None);
6513 _resultobj = Py_None;
6514{
6515 if (_obj1)
6516 delete _arg1;
6517}
6518 return _resultobj;
6519}
6520
6521static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
6522 wxRect rv;
6523 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
6524 return rv;
6525 }
6526static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6527 PyObject * _resultobj;
6528 wxRect * _result;
6529 wxDC * _arg0;
6530 wxString * _arg1;
6531 wxBitmap * _arg2;
6532 wxRect * _arg3;
6533 int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
6534 int _arg5 = (int ) -1;
6535 PyObject * _argo0 = 0;
6536 PyObject * _obj1 = 0;
6537 PyObject * _argo2 = 0;
6538 wxRect temp;
6539 PyObject * _obj3 = 0;
6540 char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
6541 char _ptemp[128];
6542
6543 self = self;
6544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
6545 return NULL;
6546 if (_argo0) {
6547 if (_argo0 == Py_None) { _arg0 = NULL; }
6548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
6550 return NULL;
6551 }
6552 }
6553{
c8bc7bb8
RD
6554 _arg1 = wxString_in_helper(_obj1);
6555 if (_arg1 == NULL)
8cb49012 6556 return NULL;
8cb49012
RD
6557}
6558 if (_argo2) {
6559 if (_argo2 == Py_None) { _arg2 = NULL; }
6560 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6561 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
6562 return NULL;
6563 }
6564 }
6565{
6566 _arg3 = &temp;
6567 if (! wxRect_helper(_obj3, &_arg3))
6568 return NULL;
6569}
6570{
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6572 _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
8cb49012
RD
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) return NULL;
6576} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
6577 _resultobj = Py_BuildValue("s",_ptemp);
6578{
6579 if (_obj1)
6580 delete _arg1;
6581}
6582 return _resultobj;
6583}
6584
70551f47 6585#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6586static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6587 PyObject * _resultobj;
6588 wxDC * _arg0;
6589 long _arg1;
6590 long _arg2;
6591 long _arg3;
6592 long _arg4;
2d091820 6593 PyObject * _argo0 = 0;
107e4716 6594 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
70551f47
RD
6595
6596 self = self;
107e4716 6597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6598 return NULL;
2d091820
RD
6599 if (_argo0) {
6600 if (_argo0 == Py_None) { _arg0 = NULL; }
6601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6603 return NULL;
6604 }
6605 }
ab9bc19b 6606{
474c48f9 6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6608 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6609
474c48f9 6610 wxPyEndAllowThreads(__tstate);
4dfaa61e 6611 if (PyErr_Occurred()) return NULL;
ab9bc19b 6612} Py_INCREF(Py_None);
70551f47
RD
6613 _resultobj = Py_None;
6614 return _resultobj;
6615}
6616
6617#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6618static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6619 PyObject * _resultobj;
6620 wxDC * _arg0;
6621 int _arg1;
6622 wxPoint * _arg2;
2d091820
RD
6623 long _arg3 = (long ) 0;
6624 long _arg4 = (long ) 0;
6625 PyObject * _argo0 = 0;
1c09ae54 6626 int NPOINTS;
70551f47 6627 PyObject * _obj2 = 0;
e02c03a4 6628 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
70551f47
RD
6629
6630 self = self;
107e4716 6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
70551f47 6632 return NULL;
2d091820
RD
6633 if (_argo0) {
6634 if (_argo0 == Py_None) { _arg0 = NULL; }
6635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6637 return NULL;
6638 }
6639 }
6640 if (_obj2)
6641{
1c09ae54
RD
6642 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6643 if (_arg2 == NULL) {
6644 return NULL;
6645 }
70551f47
RD
6646}
6647{
1c09ae54 6648 _arg1 = NPOINTS;
70551f47 6649}
ab9bc19b 6650{
474c48f9 6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6652 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6653
474c48f9 6654 wxPyEndAllowThreads(__tstate);
4dfaa61e 6655 if (PyErr_Occurred()) return NULL;
ab9bc19b 6656} Py_INCREF(Py_None);
70551f47
RD
6657 _resultobj = Py_None;
6658{
6659 delete [] _arg2;
6660}
6661 return _resultobj;
6662}
6663
6664#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6665static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6666 PyObject * _resultobj;
6667 wxDC * _arg0;
6668 int _arg1;
6669 wxPoint * _arg2;
2d091820
RD
6670 long _arg3 = (long ) 0;
6671 long _arg4 = (long ) 0;
6672 int _arg5 = (int ) wxODDEVEN_RULE;
6673 PyObject * _argo0 = 0;
1c09ae54 6674 int NPOINTS;
70551f47 6675 PyObject * _obj2 = 0;
e02c03a4 6676 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
70551f47
RD
6677
6678 self = self;
107e4716 6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
70551f47 6680 return NULL;
2d091820
RD
6681 if (_argo0) {
6682 if (_argo0 == Py_None) { _arg0 = NULL; }
6683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6685 return NULL;
6686 }
6687 }
6688 if (_obj2)
6689{
1c09ae54
RD
6690 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6691 if (_arg2 == NULL) {
6692 return NULL;
6693 }
70551f47
RD
6694}
6695{
1c09ae54 6696 _arg1 = NPOINTS;
70551f47 6697}
ab9bc19b 6698{
474c48f9 6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6700 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 6701
474c48f9 6702 wxPyEndAllowThreads(__tstate);
4dfaa61e 6703 if (PyErr_Occurred()) return NULL;
ab9bc19b 6704} Py_INCREF(Py_None);
70551f47
RD
6705 _resultobj = Py_None;
6706{
6707 delete [] _arg2;
6708}
6709 return _resultobj;
6710}
6711
6712#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
107e4716 6713static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6714 PyObject * _resultobj;
6715 wxDC * _arg0;
6716 long _arg1;
6717 long _arg2;
2d091820 6718 PyObject * _argo0 = 0;
107e4716 6719 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
6720
6721 self = self;
107e4716 6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 6723 return NULL;
2d091820
RD
6724 if (_argo0) {
6725 if (_argo0 == Py_None) { _arg0 = NULL; }
6726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6728 return NULL;
6729 }
6730 }
ab9bc19b 6731{
474c48f9 6732 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6733 wxDC_DrawPoint(_arg0,_arg1,_arg2);
ab9bc19b 6734
474c48f9 6735 wxPyEndAllowThreads(__tstate);
4dfaa61e 6736 if (PyErr_Occurred()) return NULL;
ab9bc19b 6737} Py_INCREF(Py_None);
70551f47
RD
6738 _resultobj = Py_None;
6739 return _resultobj;
6740}
6741
6742#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 6743static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6744 PyObject * _resultobj;
6745 wxDC * _arg0;
6746 long _arg1;
6747 long _arg2;
6748 long _arg3;
6749 long _arg4;
2d091820 6750 PyObject * _argo0 = 0;
107e4716 6751 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
6752
6753 self = self;
107e4716 6754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 6755 return NULL;
2d091820
RD
6756 if (_argo0) {
6757 if (_argo0 == Py_None) { _arg0 = NULL; }
6758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6760 return NULL;
6761 }
6762 }
ab9bc19b 6763{
474c48f9 6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6765 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 6766
474c48f9 6767 wxPyEndAllowThreads(__tstate);
4dfaa61e 6768 if (PyErr_Occurred()) return NULL;
ab9bc19b 6769} Py_INCREF(Py_None);
70551f47
RD
6770 _resultobj = Py_None;
6771 return _resultobj;
6772}
6773
56f5d962
RD
6774#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6775static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6776 PyObject * _resultobj;
6777 wxDC * _arg0;
6778 wxString * _arg1;
6779 wxCoord _arg2;
6780 wxCoord _arg3;
6781 double _arg4;
6782 PyObject * _argo0 = 0;
6783 PyObject * _obj1 = 0;
6784 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6785
6786 self = self;
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6788 return NULL;
6789 if (_argo0) {
6790 if (_argo0 == Py_None) { _arg0 = NULL; }
6791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6793 return NULL;
6794 }
6795 }
6796{
c8bc7bb8
RD
6797 _arg1 = wxString_in_helper(_obj1);
6798 if (_arg1 == NULL)
2cd2fac8 6799 return NULL;
56f5d962
RD
6800}
6801{
474c48f9 6802 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6803 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
56f5d962 6804
474c48f9 6805 wxPyEndAllowThreads(__tstate);
4dfaa61e 6806 if (PyErr_Occurred()) return NULL;
56f5d962
RD
6807} Py_INCREF(Py_None);
6808 _resultobj = Py_None;
6809{
6810 if (_obj1)
6811 delete _arg1;
6812}
6813 return _resultobj;
6814}
6815
70551f47 6816#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 6817static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6818 PyObject * _resultobj;
6819 wxDC * _arg0;
6820 long _arg1;
6821 long _arg2;
6822 long _arg3;
6823 long _arg4;
2d091820
RD
6824 long _arg5 = (long ) 20;
6825 PyObject * _argo0 = 0;
107e4716 6826 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
70551f47
RD
6827
6828 self = self;
107e4716 6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
70551f47 6830 return NULL;
2d091820
RD
6831 if (_argo0) {
6832 if (_argo0 == Py_None) { _arg0 = NULL; }
6833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6835 return NULL;
6836 }
6837 }
ab9bc19b 6838{
474c48f9 6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6840 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 6841
474c48f9 6842 wxPyEndAllowThreads(__tstate);
4dfaa61e 6843 if (PyErr_Occurred()) return NULL;
ab9bc19b 6844} Py_INCREF(Py_None);
70551f47
RD
6845 _resultobj = Py_None;
6846 return _resultobj;
6847}
6848
6849#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
107e4716 6850static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6851 PyObject * _resultobj;
6852 wxDC * _arg0;
6853 int _arg1;
6854 wxPoint * _arg2;
2d091820 6855 PyObject * _argo0 = 0;
1c09ae54 6856 int NPOINTS;
70551f47 6857 PyObject * _obj2 = 0;
e02c03a4 6858 char *_kwnames[] = { "self","points", NULL };
70551f47
RD
6859
6860 self = self;
107e4716 6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
70551f47 6862 return NULL;
2d091820
RD
6863 if (_argo0) {
6864 if (_argo0 == Py_None) { _arg0 = NULL; }
6865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6867 return NULL;
6868 }
6869 }
6870 if (_obj2)
6871{
1c09ae54
RD
6872 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6873 if (_arg2 == NULL) {
6874 return NULL;
6875 }
70551f47
RD
6876}
6877{
1c09ae54 6878 _arg1 = NPOINTS;
70551f47 6879}
ab9bc19b 6880{
474c48f9 6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6882 wxDC_DrawSpline(_arg0,_arg1,_arg2);
ab9bc19b 6883
474c48f9 6884 wxPyEndAllowThreads(__tstate);
4dfaa61e 6885 if (PyErr_Occurred()) return NULL;
ab9bc19b 6886} Py_INCREF(Py_None);
70551f47
RD
6887 _resultobj = Py_None;
6888{
6889 delete [] _arg2;
6890}
6891 return _resultobj;
6892}
6893
6894#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
107e4716 6895static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6896 PyObject * _resultobj;
6897 wxDC * _arg0;
6898 wxString * _arg1;
6899 long _arg2;
6900 long _arg3;
2d091820 6901 PyObject * _argo0 = 0;
70551f47 6902 PyObject * _obj1 = 0;
107e4716 6903 char *_kwnames[] = { "self","text","x","y", NULL };
70551f47
RD
6904
6905 self = self;
107e4716 6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
70551f47 6907 return NULL;
2d091820
RD
6908 if (_argo0) {
6909 if (_argo0 == Py_None) { _arg0 = NULL; }
6910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6912 return NULL;
6913 }
6914 }
6915{
c8bc7bb8
RD
6916 _arg1 = wxString_in_helper(_obj1);
6917 if (_arg1 == NULL)
70551f47 6918 return NULL;
70551f47 6919}
ab9bc19b 6920{
474c48f9 6921 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6922 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 6923
474c48f9 6924 wxPyEndAllowThreads(__tstate);
4dfaa61e 6925 if (PyErr_Occurred()) return NULL;
ab9bc19b 6926} Py_INCREF(Py_None);
70551f47
RD
6927 _resultobj = Py_None;
6928{
6929 if (_obj1)
6930 delete _arg1;
6931}
6932 return _resultobj;
6933}
6934
6935#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
107e4716 6936static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6937 PyObject * _resultobj;
6938 wxDC * _arg0;
2d091820 6939 PyObject * _argo0 = 0;
107e4716 6940 char *_kwnames[] = { "self", NULL };
70551f47
RD
6941
6942 self = self;
107e4716 6943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
70551f47 6944 return NULL;
2d091820
RD
6945 if (_argo0) {
6946 if (_argo0 == Py_None) { _arg0 = NULL; }
6947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6949 return NULL;
6950 }
6951 }
ab9bc19b 6952{
474c48f9 6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6954 wxDC_EndDoc(_arg0);
ab9bc19b 6955
474c48f9 6956 wxPyEndAllowThreads(__tstate);
4dfaa61e 6957 if (PyErr_Occurred()) return NULL;
ab9bc19b 6958} Py_INCREF(Py_None);
70551f47
RD
6959 _resultobj = Py_None;
6960 return _resultobj;
6961}
6962
6963#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
107e4716 6964static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6965 PyObject * _resultobj;
6966 wxDC * _arg0;
2d091820 6967 PyObject * _argo0 = 0;
107e4716 6968 char *_kwnames[] = { "self", NULL };
70551f47
RD
6969
6970 self = self;
107e4716 6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
70551f47 6972 return NULL;
2d091820
RD
6973 if (_argo0) {
6974 if (_argo0 == Py_None) { _arg0 = NULL; }
6975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
6976 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6977 return NULL;
6978 }
6979 }
ab9bc19b 6980{
474c48f9 6981 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 6982 wxDC_EndDrawing(_arg0);
ab9bc19b 6983
474c48f9 6984 wxPyEndAllowThreads(__tstate);
4dfaa61e 6985 if (PyErr_Occurred()) return NULL;
ab9bc19b 6986} Py_INCREF(Py_None);
70551f47
RD
6987 _resultobj = Py_None;
6988 return _resultobj;
6989}
6990
6991#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
107e4716 6992static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
6993 PyObject * _resultobj;
6994 wxDC * _arg0;
2d091820 6995 PyObject * _argo0 = 0;
107e4716 6996 char *_kwnames[] = { "self", NULL };
70551f47
RD
6997
6998 self = self;
107e4716 6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
70551f47 7000 return NULL;
2d091820
RD
7001 if (_argo0) {
7002 if (_argo0 == Py_None) { _arg0 = NULL; }
7003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7005 return NULL;
7006 }
7007 }
ab9bc19b 7008{
474c48f9 7009 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7010 wxDC_EndPage(_arg0);
ab9bc19b 7011
474c48f9 7012 wxPyEndAllowThreads(__tstate);
4dfaa61e 7013 if (PyErr_Occurred()) return NULL;
ab9bc19b 7014} Py_INCREF(Py_None);
70551f47
RD
7015 _resultobj = Py_None;
7016 return _resultobj;
7017}
7018
7019#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7020static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7021 PyObject * _resultobj;
7022 wxDC * _arg0;
7023 long _arg1;
7024 long _arg2;
7025 wxColour * _arg3;
2d091820
RD
7026 int _arg4 = (int ) wxFLOOD_SURFACE;
7027 PyObject * _argo0 = 0;
f6bcfd97
BP
7028 wxColour temp;
7029 PyObject * _obj3 = 0;
107e4716 7030 char *_kwnames[] = { "self","x","y","colour","style", NULL };
70551f47
RD
7031
7032 self = self;
f6bcfd97 7033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
70551f47 7034 return NULL;
2d091820
RD
7035 if (_argo0) {
7036 if (_argo0 == Py_None) { _arg0 = NULL; }
7037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7039 return NULL;
7040 }
7041 }
f6bcfd97
BP
7042{
7043 _arg3 = &temp;
7044 if (! wxColour_helper(_obj3, &_arg3))
70551f47 7045 return NULL;
f6bcfd97 7046}
ab9bc19b 7047{
474c48f9 7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7049 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
ab9bc19b 7050
474c48f9 7051 wxPyEndAllowThreads(__tstate);
4dfaa61e 7052 if (PyErr_Occurred()) return NULL;
ab9bc19b 7053} Py_INCREF(Py_None);
70551f47
RD
7054 _resultobj = Py_None;
7055 return _resultobj;
7056}
7057
7058#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
107e4716 7059static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7060 PyObject * _resultobj;
7061 wxBrush * _result;
7062 wxDC * _arg0;
2d091820 7063 PyObject * _argo0 = 0;
107e4716 7064 char *_kwnames[] = { "self", NULL };
70551f47
RD
7065 char _ptemp[128];
7066
7067 self = self;
107e4716 7068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
70551f47 7069 return NULL;
2d091820
RD
7070 if (_argo0) {
7071 if (_argo0 == Py_None) { _arg0 = NULL; }
7072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7074 return NULL;
7075 }
7076 }
ab9bc19b 7077{
474c48f9 7078 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7079 _result = new wxBrush (wxDC_GetBackground(_arg0));
ab9bc19b 7080
474c48f9 7081 wxPyEndAllowThreads(__tstate);
4dfaa61e 7082 if (PyErr_Occurred()) return NULL;
3e212503
RD
7083} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7084 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7085 return _resultobj;
7086}
7087
7088#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
107e4716 7089static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7090 PyObject * _resultobj;
7091 wxBrush * _result;
7092 wxDC * _arg0;
2d091820 7093 PyObject * _argo0 = 0;
107e4716 7094 char *_kwnames[] = { "self", NULL };
70551f47
RD
7095 char _ptemp[128];
7096
7097 self = self;
107e4716 7098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
70551f47 7099 return NULL;
2d091820
RD
7100 if (_argo0) {
7101 if (_argo0 == Py_None) { _arg0 = NULL; }
7102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7104 return NULL;
7105 }
7106 }
ab9bc19b 7107{
474c48f9 7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7109 _result = new wxBrush (wxDC_GetBrush(_arg0));
ab9bc19b 7110
474c48f9 7111 wxPyEndAllowThreads(__tstate);
4dfaa61e 7112 if (PyErr_Occurred()) return NULL;
3e212503
RD
7113} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p");
7114 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7115 return _resultobj;
7116}
7117
7118#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
107e4716 7119static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7120 PyObject * _resultobj;
7121 long _result;
7122 wxDC * _arg0;
2d091820 7123 PyObject * _argo0 = 0;
107e4716 7124 char *_kwnames[] = { "self", NULL };
70551f47
RD
7125
7126 self = self;
107e4716 7127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
70551f47 7128 return NULL;
2d091820
RD
7129 if (_argo0) {
7130 if (_argo0 == Py_None) { _arg0 = NULL; }
7131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7133 return NULL;
7134 }
7135 }
ab9bc19b 7136{
474c48f9 7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7138 _result = (long )wxDC_GetCharHeight(_arg0);
ab9bc19b 7139
474c48f9 7140 wxPyEndAllowThreads(__tstate);
4dfaa61e 7141 if (PyErr_Occurred()) return NULL;
ab9bc19b 7142} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7143 return _resultobj;
7144}
7145
7146#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
107e4716 7147static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7148 PyObject * _resultobj;
7149 long _result;
7150 wxDC * _arg0;
2d091820 7151 PyObject * _argo0 = 0;
107e4716 7152 char *_kwnames[] = { "self", NULL };
70551f47
RD
7153
7154 self = self;
107e4716 7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
70551f47 7156 return NULL;
2d091820
RD
7157 if (_argo0) {
7158 if (_argo0 == Py_None) { _arg0 = NULL; }
7159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7161 return NULL;
7162 }
7163 }
ab9bc19b 7164{
474c48f9 7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7166 _result = (long )wxDC_GetCharWidth(_arg0);
ab9bc19b 7167
474c48f9 7168 wxPyEndAllowThreads(__tstate);
4dfaa61e 7169 if (PyErr_Occurred()) return NULL;
ab9bc19b 7170} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7171 return _resultobj;
7172}
7173
7174#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 7175static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7176 PyObject * _resultobj;
7177 wxDC * _arg0;
7178 long * _arg1;
7179 long temp;
7180 long * _arg2;
7181 long temp0;
7182 long * _arg3;
7183 long temp1;
7184 long * _arg4;
7185 long temp2;
2d091820 7186 PyObject * _argo0 = 0;
107e4716 7187 char *_kwnames[] = { "self", NULL };
70551f47
RD
7188
7189 self = self;
7190{
7191 _arg1 = &temp;
7192}
7193{
7194 _arg2 = &temp0;
7195}
7196{
7197 _arg3 = &temp1;
7198}
7199{
7200 _arg4 = &temp2;
7201}
107e4716 7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
70551f47 7203 return NULL;
2d091820
RD
7204 if (_argo0) {
7205 if (_argo0 == Py_None) { _arg0 = NULL; }
7206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7208 return NULL;
7209 }
7210 }
ab9bc19b 7211{
474c48f9 7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7213 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 7214
474c48f9 7215 wxPyEndAllowThreads(__tstate);
4dfaa61e 7216 if (PyErr_Occurred()) return NULL;
ab9bc19b 7217} Py_INCREF(Py_None);
70551f47
RD
7218 _resultobj = Py_None;
7219{
7220 PyObject *o;
7221 o = PyInt_FromLong((long) (*_arg1));
7222 _resultobj = t_output_helper(_resultobj, o);
7223}
7224{
7225 PyObject *o;
7226 o = PyInt_FromLong((long) (*_arg2));
7227 _resultobj = t_output_helper(_resultobj, o);
7228}
7229{
7230 PyObject *o;
7231 o = PyInt_FromLong((long) (*_arg3));
7232 _resultobj = t_output_helper(_resultobj, o);
7233}
7234{
7235 PyObject *o;
7236 o = PyInt_FromLong((long) (*_arg4));
7237 _resultobj = t_output_helper(_resultobj, o);
7238}
7239 return _resultobj;
7240}
7241
7242#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
107e4716 7243static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7244 PyObject * _resultobj;
7245 wxFont * _result;
7246 wxDC * _arg0;
2d091820 7247 PyObject * _argo0 = 0;
107e4716 7248 char *_kwnames[] = { "self", NULL };
70551f47
RD
7249 char _ptemp[128];
7250
7251 self = self;
107e4716 7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
70551f47 7253 return NULL;
2d091820
RD
7254 if (_argo0) {
7255 if (_argo0 == Py_None) { _arg0 = NULL; }
7256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7258 return NULL;
7259 }
7260 }
ab9bc19b 7261{
474c48f9 7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7263 _result = new wxFont (wxDC_GetFont(_arg0));
ab9bc19b 7264
474c48f9 7265 wxPyEndAllowThreads(__tstate);
4dfaa61e 7266 if (PyErr_Occurred()) return NULL;
3e212503
RD
7267} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
7268 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7269 return _resultobj;
7270}
7271
7272#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
107e4716 7273static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7274 PyObject * _resultobj;
7275 int _result;
7276 wxDC * _arg0;
2d091820 7277 PyObject * _argo0 = 0;
107e4716 7278 char *_kwnames[] = { "self", NULL };
70551f47
RD
7279
7280 self = self;
107e4716 7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
70551f47 7282 return NULL;
2d091820
RD
7283 if (_argo0) {
7284 if (_argo0 == Py_None) { _arg0 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7287 return NULL;
7288 }
7289 }
ab9bc19b 7290{
474c48f9 7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7292 _result = (int )wxDC_GetLogicalFunction(_arg0);
ab9bc19b 7293
474c48f9 7294 wxPyEndAllowThreads(__tstate);
4dfaa61e 7295 if (PyErr_Occurred()) return NULL;
ab9bc19b 7296} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7297 return _resultobj;
7298}
7299
e02c03a4
RD
7300#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7301static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7302 PyObject * _resultobj;
7303 wxDC * _arg0;
7304 double * _arg1;
7305 double temp;
7306 double * _arg2;
7307 double temp0;
7308 PyObject * _argo0 = 0;
7309 char *_kwnames[] = { "self", NULL };
7310
7311 self = self;
7312{
7313 _arg1 = &temp;
7314}
7315{
7316 _arg2 = &temp0;
7317}
7318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7319 return NULL;
7320 if (_argo0) {
7321 if (_argo0 == Py_None) { _arg0 = NULL; }
7322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7324 return NULL;
7325 }
7326 }
7327{
474c48f9 7328 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7329 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 7330
474c48f9 7331 wxPyEndAllowThreads(__tstate);
4dfaa61e 7332 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7333} Py_INCREF(Py_None);
7334 _resultobj = Py_None;
7335{
7336 PyObject *o;
7337 o = PyFloat_FromDouble((double) (*_arg1));
7338 _resultobj = t_output_helper(_resultobj, o);
7339}
7340{
7341 PyObject *o;
7342 o = PyFloat_FromDouble((double) (*_arg2));
7343 _resultobj = t_output_helper(_resultobj, o);
7344}
7345 return _resultobj;
7346}
7347
70551f47 7348#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
107e4716 7349static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7350 PyObject * _resultobj;
7351 int _result;
7352 wxDC * _arg0;
2d091820 7353 PyObject * _argo0 = 0;
107e4716 7354 char *_kwnames[] = { "self", NULL };
70551f47
RD
7355
7356 self = self;
107e4716 7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
70551f47 7358 return NULL;
2d091820
RD
7359 if (_argo0) {
7360 if (_argo0 == Py_None) { _arg0 = NULL; }
7361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7363 return NULL;
7364 }
7365 }
ab9bc19b 7366{
474c48f9 7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7368 _result = (int )wxDC_GetMapMode(_arg0);
ab9bc19b 7369
474c48f9 7370 wxPyEndAllowThreads(__tstate);
4dfaa61e 7371 if (PyErr_Occurred()) return NULL;
ab9bc19b 7372} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7373 return _resultobj;
7374}
7375
7376#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
107e4716 7377static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7378 PyObject * _resultobj;
7379 bool _result;
7380 wxDC * _arg0;
2d091820 7381 PyObject * _argo0 = 0;
107e4716 7382 char *_kwnames[] = { "self", NULL };
70551f47
RD
7383
7384 self = self;
107e4716 7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
70551f47 7386 return NULL;
2d091820
RD
7387 if (_argo0) {
7388 if (_argo0 == Py_None) { _arg0 = NULL; }
7389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7391 return NULL;
7392 }
7393 }
ab9bc19b 7394{
474c48f9 7395 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7396 _result = (bool )wxDC_GetOptimization(_arg0);
ab9bc19b 7397
474c48f9 7398 wxPyEndAllowThreads(__tstate);
4dfaa61e 7399 if (PyErr_Occurred()) return NULL;
ab9bc19b 7400} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
7401 return _resultobj;
7402}
7403
7404#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
107e4716 7405static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7406 PyObject * _resultobj;
7407 wxPen * _result;
7408 wxDC * _arg0;
2d091820 7409 PyObject * _argo0 = 0;
107e4716 7410 char *_kwnames[] = { "self", NULL };
70551f47
RD
7411 char _ptemp[128];
7412
7413 self = self;
107e4716 7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
70551f47 7415 return NULL;
2d091820
RD
7416 if (_argo0) {
7417 if (_argo0 == Py_None) { _arg0 = NULL; }
7418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7420 return NULL;
7421 }
7422 }
ab9bc19b 7423{
474c48f9 7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7425 _result = new wxPen (wxDC_GetPen(_arg0));
ab9bc19b 7426
474c48f9 7427 wxPyEndAllowThreads(__tstate);
4dfaa61e 7428 if (PyErr_Occurred()) return NULL;
3e212503
RD
7429} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p");
7430 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7431 return _resultobj;
7432}
7433
7434static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7435 wxColour* wc = new wxColour();
7436 self->GetPixel(x, y, wc);
7437 return wc;
7438 }
107e4716 7439static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7440 PyObject * _resultobj;
7441 wxColour * _result;
7442 wxDC * _arg0;
7443 long _arg1;
7444 long _arg2;
2d091820 7445 PyObject * _argo0 = 0;
107e4716 7446 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
7447 char _ptemp[128];
7448
7449 self = self;
107e4716 7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 7451 return NULL;
2d091820
RD
7452 if (_argo0) {
7453 if (_argo0 == Py_None) { _arg0 = NULL; }
7454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7456 return NULL;
7457 }
7458 }
ab9bc19b 7459{
474c48f9 7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7461 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
ab9bc19b 7462
474c48f9 7463 wxPyEndAllowThreads(__tstate);
4dfaa61e 7464 if (PyErr_Occurred()) return NULL;
2d091820
RD
7465} if (_result) {
7466 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7467 _resultobj = Py_BuildValue("s",_ptemp);
7468 } else {
7469 Py_INCREF(Py_None);
7470 _resultobj = Py_None;
7471 }
70551f47
RD
7472 return _resultobj;
7473}
7474
d24a34bb 7475#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
107e4716 7476static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7477 PyObject * _resultobj;
7478 wxDC * _arg0;
7479 int * _arg1;
7480 int temp;
7481 int * _arg2;
7482 int temp0;
2d091820 7483 PyObject * _argo0 = 0;
107e4716 7484 char *_kwnames[] = { "self", NULL };
70551f47
RD
7485
7486 self = self;
7487{
7488 _arg1 = &temp;
7489}
7490{
7491 _arg2 = &temp0;
7492}
107e4716 7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
70551f47 7494 return NULL;
2d091820
RD
7495 if (_argo0) {
7496 if (_argo0 == Py_None) { _arg0 = NULL; }
7497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
d24a34bb 7498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
70551f47
RD
7499 return NULL;
7500 }
7501 }
ab9bc19b 7502{
474c48f9 7503 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7504 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
ab9bc19b 7505
474c48f9 7506 wxPyEndAllowThreads(__tstate);
4dfaa61e 7507 if (PyErr_Occurred()) return NULL;
ab9bc19b 7508} Py_INCREF(Py_None);
70551f47
RD
7509 _resultobj = Py_None;
7510{
7511 PyObject *o;
7512 o = PyInt_FromLong((long) (*_arg1));
7513 _resultobj = t_output_helper(_resultobj, o);
7514}
7515{
7516 PyObject *o;
7517 o = PyInt_FromLong((long) (*_arg2));
7518 _resultobj = t_output_helper(_resultobj, o);
7519}
7520 return _resultobj;
7521}
7522
d24a34bb 7523#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
107e4716 7524static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d24a34bb
RD
7525 PyObject * _resultobj;
7526 wxSize * _result;
7527 wxDC * _arg0;
2d091820 7528 PyObject * _argo0 = 0;
107e4716 7529 char *_kwnames[] = { "self", NULL };
d24a34bb
RD
7530 char _ptemp[128];
7531
7532 self = self;
107e4716 7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
d24a34bb 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")) {
d24a34bb
RD
7538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7539 return NULL;
7540 }
7541 }
7542{
474c48f9 7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7544 _result = new wxSize (wxDC_GetSize(_arg0));
d24a34bb 7545
474c48f9 7546 wxPyEndAllowThreads(__tstate);
4dfaa61e 7547 if (PyErr_Occurred()) return NULL;
d24a34bb
RD
7548} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7549 _resultobj = Py_BuildValue("s",_ptemp);
7550 return _resultobj;
7551}
7552
e02c03a4
RD
7553#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7554static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject * _resultobj;
7556 wxSize * _result;
7557 wxDC * _arg0;
7558 PyObject * _argo0 = 0;
7559 char *_kwnames[] = { "self", NULL };
7560 char _ptemp[128];
7561
7562 self = self;
7563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7564 return NULL;
7565 if (_argo0) {
7566 if (_argo0 == Py_None) { _arg0 = NULL; }
7567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7569 return NULL;
7570 }
7571 }
7572{
474c48f9 7573 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7574 _result = new wxSize (wxDC_GetSizeMM(_arg0));
e02c03a4 7575
474c48f9 7576 wxPyEndAllowThreads(__tstate);
4dfaa61e 7577 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7578} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7579 _resultobj = Py_BuildValue("s",_ptemp);
7580 return _resultobj;
7581}
7582
70551f47 7583#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
107e4716 7584static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7585 PyObject * _resultobj;
7586 wxColour * _result;
7587 wxDC * _arg0;
2d091820 7588 PyObject * _argo0 = 0;
107e4716 7589 char *_kwnames[] = { "self", NULL };
70551f47
RD
7590 char _ptemp[128];
7591
7592 self = self;
107e4716 7593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
70551f47 7594 return NULL;
2d091820
RD
7595 if (_argo0) {
7596 if (_argo0 == Py_None) { _arg0 = NULL; }
7597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7599 return NULL;
7600 }
7601 }
ab9bc19b 7602{
474c48f9 7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7604 _result = new wxColour (wxDC_GetTextBackground(_arg0));
ab9bc19b 7605
474c48f9 7606 wxPyEndAllowThreads(__tstate);
4dfaa61e 7607 if (PyErr_Occurred()) return NULL;
84a81942
RD
7608} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7609 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7610 return _resultobj;
7611}
7612
21f8d7ea 7613#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
107e4716 7614static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
7615 PyObject * _resultobj;
7616 wxDC * _arg0;
7617 wxString * _arg1;
7618 long * _arg2;
7619 long temp;
7620 long * _arg3;
7621 long temp0;
2d091820 7622 PyObject * _argo0 = 0;
21f8d7ea 7623 PyObject * _obj1 = 0;
107e4716 7624 char *_kwnames[] = { "self","string", NULL };
21f8d7ea
RD
7625
7626 self = self;
7627{
7628 _arg2 = &temp;
7629}
7630{
7631 _arg3 = &temp0;
7632}
107e4716 7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
21f8d7ea 7634 return NULL;
2d091820
RD
7635 if (_argo0) {
7636 if (_argo0 == Py_None) { _arg0 = NULL; }
7637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
21f8d7ea
RD
7638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7639 return NULL;
7640 }
7641 }
7642{
c8bc7bb8
RD
7643 _arg1 = wxString_in_helper(_obj1);
7644 if (_arg1 == NULL)
21f8d7ea 7645 return NULL;
21f8d7ea 7646}
ab9bc19b 7647{
474c48f9 7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7649 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 7650
474c48f9 7651 wxPyEndAllowThreads(__tstate);
4dfaa61e 7652 if (PyErr_Occurred()) return NULL;
ab9bc19b 7653} Py_INCREF(Py_None);
21f8d7ea
RD
7654 _resultobj = Py_None;
7655{
7656 PyObject *o;
7657 o = PyInt_FromLong((long) (*_arg2));
7658 _resultobj = t_output_helper(_resultobj, o);
7659}
7660{
7661 PyObject *o;
7662 o = PyInt_FromLong((long) (*_arg3));
7663 _resultobj = t_output_helper(_resultobj, o);
7664}
7665{
7666 if (_obj1)
7667 delete _arg1;
7668}
7669 return _resultobj;
7670}
7671
7672#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 7673static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7674 PyObject * _resultobj;
7675 wxDC * _arg0;
7676 wxString * _arg1;
7677 long * _arg2;
7678 long temp;
7679 long * _arg3;
7680 long temp0;
7681 long * _arg4;
7682 long temp1;
7683 long * _arg5;
7684 long temp2;
2d091820
RD
7685 wxFont * _arg6 = (wxFont *) NULL;
7686 PyObject * _argo0 = 0;
70551f47 7687 PyObject * _obj1 = 0;
2d091820 7688 PyObject * _argo6 = 0;
107e4716 7689 char *_kwnames[] = { "self","string","font", NULL };
70551f47
RD
7690
7691 self = self;
7692{
7693 _arg2 = &temp;
7694}
7695{
7696 _arg3 = &temp0;
7697}
7698{
7699 _arg4 = &temp1;
7700}
7701{
7702 _arg5 = &temp2;
7703}
107e4716 7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
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")) {
21f8d7ea 7709 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
70551f47
RD
7710 return NULL;
7711 }
7712 }
7713{
c8bc7bb8
RD
7714 _arg1 = wxString_in_helper(_obj1);
7715 if (_arg1 == NULL)
2cd2fac8 7716 return NULL;
70551f47 7717}
2d091820
RD
7718 if (_argo6) {
7719 if (_argo6 == Py_None) { _arg6 = NULL; }
7720 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
21f8d7ea
RD
7721 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7722 return NULL;
7723 }
7724 }
ab9bc19b 7725{
474c48f9 7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7727 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 7728
474c48f9 7729 wxPyEndAllowThreads(__tstate);
4dfaa61e 7730 if (PyErr_Occurred()) return NULL;
ab9bc19b 7731} Py_INCREF(Py_None);
70551f47
RD
7732 _resultobj = Py_None;
7733{
7734 PyObject *o;
7735 o = PyInt_FromLong((long) (*_arg2));
7736 _resultobj = t_output_helper(_resultobj, o);
7737}
7738{
7739 PyObject *o;
7740 o = PyInt_FromLong((long) (*_arg3));
7741 _resultobj = t_output_helper(_resultobj, o);
7742}
7743{
7744 PyObject *o;
7745 o = PyInt_FromLong((long) (*_arg4));
7746 _resultobj = t_output_helper(_resultobj, o);
7747}
7748{
7749 PyObject *o;
7750 o = PyInt_FromLong((long) (*_arg5));
7751 _resultobj = t_output_helper(_resultobj, o);
7752}
7753{
7754 if (_obj1)
7755 delete _arg1;
7756}
7757 return _resultobj;
7758}
7759
7760#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
107e4716 7761static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7762 PyObject * _resultobj;
7763 wxColour * _result;
7764 wxDC * _arg0;
2d091820 7765 PyObject * _argo0 = 0;
107e4716 7766 char *_kwnames[] = { "self", NULL };
70551f47
RD
7767 char _ptemp[128];
7768
7769 self = self;
107e4716 7770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
70551f47 7771 return NULL;
2d091820
RD
7772 if (_argo0) {
7773 if (_argo0 == Py_None) { _arg0 = NULL; }
7774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7776 return NULL;
7777 }
7778 }
ab9bc19b 7779{
474c48f9 7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7781 _result = new wxColour (wxDC_GetTextForeground(_arg0));
ab9bc19b 7782
474c48f9 7783 wxPyEndAllowThreads(__tstate);
4dfaa61e 7784 if (PyErr_Occurred()) return NULL;
84a81942
RD
7785} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7786 _resultobj = Py_BuildValue("s",_ptemp);
70551f47
RD
7787 return _resultobj;
7788}
7789
e02c03a4
RD
7790#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7791static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7792 PyObject * _resultobj;
7793 wxDC * _arg0;
7794 double * _arg1;
7795 double temp;
7796 double * _arg2;
7797 double temp0;
7798 PyObject * _argo0 = 0;
7799 char *_kwnames[] = { "self", NULL };
7800
7801 self = self;
7802{
7803 _arg1 = &temp;
7804}
7805{
7806 _arg2 = &temp0;
7807}
7808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7809 return NULL;
7810 if (_argo0) {
7811 if (_argo0 == Py_None) { _arg0 = NULL; }
7812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7814 return NULL;
7815 }
7816 }
7817{
474c48f9 7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7819 wxDC_GetUserScale(_arg0,_arg1,_arg2);
e02c03a4 7820
474c48f9 7821 wxPyEndAllowThreads(__tstate);
4dfaa61e 7822 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
7823} Py_INCREF(Py_None);
7824 _resultobj = Py_None;
7825{
7826 PyObject *o;
7827 o = PyFloat_FromDouble((double) (*_arg1));
7828 _resultobj = t_output_helper(_resultobj, o);
7829}
7830{
7831 PyObject *o;
7832 o = PyFloat_FromDouble((double) (*_arg2));
7833 _resultobj = t_output_helper(_resultobj, o);
7834}
7835 return _resultobj;
7836}
7837
70551f47 7838#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
107e4716 7839static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7840 PyObject * _resultobj;
7841 long _result;
7842 wxDC * _arg0;
7843 long _arg1;
2d091820 7844 PyObject * _argo0 = 0;
107e4716 7845 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7846
7847 self = self;
107e4716 7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
70551f47 7849 return NULL;
2d091820
RD
7850 if (_argo0) {
7851 if (_argo0 == Py_None) { _arg0 = NULL; }
7852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7854 return NULL;
7855 }
7856 }
ab9bc19b 7857{
474c48f9 7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7859 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
ab9bc19b 7860
474c48f9 7861 wxPyEndAllowThreads(__tstate);
4dfaa61e 7862 if (PyErr_Occurred()) return NULL;
ab9bc19b 7863} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7864 return _resultobj;
7865}
7866
7867#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
107e4716 7868static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7869 PyObject * _resultobj;
7870 long _result;
7871 wxDC * _arg0;
7872 long _arg1;
2d091820 7873 PyObject * _argo0 = 0;
107e4716 7874 char *_kwnames[] = { "self","x", NULL };
70551f47
RD
7875
7876 self = self;
107e4716 7877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
70551f47 7878 return NULL;
2d091820
RD
7879 if (_argo0) {
7880 if (_argo0 == Py_None) { _arg0 = NULL; }
7881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7883 return NULL;
7884 }
7885 }
ab9bc19b 7886{
474c48f9 7887 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7888 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
ab9bc19b 7889
474c48f9 7890 wxPyEndAllowThreads(__tstate);
4dfaa61e 7891 if (PyErr_Occurred()) return NULL;
ab9bc19b 7892} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7893 return _resultobj;
7894}
7895
7896#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
107e4716 7897static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7898 PyObject * _resultobj;
7899 long _result;
7900 wxDC * _arg0;
7901 long _arg1;
2d091820 7902 PyObject * _argo0 = 0;
107e4716 7903 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7904
7905 self = self;
107e4716 7906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
70551f47 7907 return NULL;
2d091820
RD
7908 if (_argo0) {
7909 if (_argo0 == Py_None) { _arg0 = NULL; }
7910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7912 return NULL;
7913 }
7914 }
ab9bc19b 7915{
474c48f9 7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7917 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
ab9bc19b 7918
474c48f9 7919 wxPyEndAllowThreads(__tstate);
4dfaa61e 7920 if (PyErr_Occurred()) return NULL;
ab9bc19b 7921} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7922 return _resultobj;
7923}
7924
7925#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
107e4716 7926static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7927 PyObject * _resultobj;
7928 long _result;
7929 wxDC * _arg0;
7930 long _arg1;
2d091820 7931 PyObject * _argo0 = 0;
107e4716 7932 char *_kwnames[] = { "self","y", NULL };
70551f47
RD
7933
7934 self = self;
107e4716 7935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
70551f47 7936 return NULL;
2d091820
RD
7937 if (_argo0) {
7938 if (_argo0 == Py_None) { _arg0 = NULL; }
7939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7941 return NULL;
7942 }
7943 }
ab9bc19b 7944{
474c48f9 7945 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7946 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
ab9bc19b 7947
474c48f9 7948 wxPyEndAllowThreads(__tstate);
4dfaa61e 7949 if (PyErr_Occurred()) return NULL;
ab9bc19b 7950} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7951 return _resultobj;
7952}
7953
7954#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
107e4716 7955static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7956 PyObject * _resultobj;
7957 long _result;
7958 wxDC * _arg0;
2d091820 7959 PyObject * _argo0 = 0;
107e4716 7960 char *_kwnames[] = { "self", NULL };
70551f47
RD
7961
7962 self = self;
107e4716 7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
70551f47 7964 return NULL;
2d091820
RD
7965 if (_argo0) {
7966 if (_argo0 == Py_None) { _arg0 = NULL; }
7967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7969 return NULL;
7970 }
7971 }
ab9bc19b 7972{
474c48f9 7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 7974 _result = (long )wxDC_MaxX(_arg0);
ab9bc19b 7975
474c48f9 7976 wxPyEndAllowThreads(__tstate);
4dfaa61e 7977 if (PyErr_Occurred()) return NULL;
ab9bc19b 7978} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
7979 return _resultobj;
7980}
7981
7982#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
107e4716 7983static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
7984 PyObject * _resultobj;
7985 long _result;
7986 wxDC * _arg0;
2d091820 7987 PyObject * _argo0 = 0;
107e4716 7988 char *_kwnames[] = { "self", NULL };
70551f47
RD
7989
7990 self = self;
107e4716 7991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
70551f47 7992 return NULL;
2d091820
RD
7993 if (_argo0) {
7994 if (_argo0 == Py_None) { _arg0 = NULL; }
7995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
7996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7997 return NULL;
7998 }
7999 }
ab9bc19b 8000{
474c48f9 8001 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8002 _result = (long )wxDC_MaxY(_arg0);
ab9bc19b 8003
474c48f9 8004 wxPyEndAllowThreads(__tstate);
4dfaa61e 8005 if (PyErr_Occurred()) return NULL;
ab9bc19b 8006} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8007 return _resultobj;
8008}
8009
8010#define wxDC_MinX(_swigobj) (_swigobj->MinX())
107e4716 8011static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8012 PyObject * _resultobj;
8013 long _result;
8014 wxDC * _arg0;
2d091820 8015 PyObject * _argo0 = 0;
107e4716 8016 char *_kwnames[] = { "self", NULL };
70551f47
RD
8017
8018 self = self;
107e4716 8019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
70551f47 8020 return NULL;
2d091820
RD
8021 if (_argo0) {
8022 if (_argo0 == Py_None) { _arg0 = NULL; }
8023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8025 return NULL;
8026 }
8027 }
ab9bc19b 8028{
474c48f9 8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8030 _result = (long )wxDC_MinX(_arg0);
ab9bc19b 8031
474c48f9 8032 wxPyEndAllowThreads(__tstate);
4dfaa61e 8033 if (PyErr_Occurred()) return NULL;
ab9bc19b 8034} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8035 return _resultobj;
8036}
8037
8038#define wxDC_MinY(_swigobj) (_swigobj->MinY())
107e4716 8039static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8040 PyObject * _resultobj;
8041 long _result;
8042 wxDC * _arg0;
2d091820 8043 PyObject * _argo0 = 0;
107e4716 8044 char *_kwnames[] = { "self", NULL };
70551f47
RD
8045
8046 self = self;
107e4716 8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
70551f47 8048 return NULL;
2d091820
RD
8049 if (_argo0) {
8050 if (_argo0 == Py_None) { _arg0 = NULL; }
8051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8053 return NULL;
8054 }
8055 }
ab9bc19b 8056{
474c48f9 8057 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8058 _result = (long )wxDC_MinY(_arg0);
ab9bc19b 8059
474c48f9 8060 wxPyEndAllowThreads(__tstate);
4dfaa61e 8061 if (PyErr_Occurred()) return NULL;
ab9bc19b 8062} _resultobj = Py_BuildValue("l",_result);
70551f47
RD
8063 return _resultobj;
8064}
8065
8066#define wxDC_Ok(_swigobj) (_swigobj->Ok())
107e4716 8067static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8068 PyObject * _resultobj;
8069 bool _result;
8070 wxDC * _arg0;
2d091820 8071 PyObject * _argo0 = 0;
107e4716 8072 char *_kwnames[] = { "self", NULL };
70551f47
RD
8073
8074 self = self;
107e4716 8075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
70551f47 8076 return NULL;
2d091820
RD
8077 if (_argo0) {
8078 if (_argo0 == Py_None) { _arg0 = NULL; }
8079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8081 return NULL;
8082 }
8083 }
ab9bc19b 8084{
474c48f9 8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8086 _result = (bool )wxDC_Ok(_arg0);
ab9bc19b 8087
474c48f9 8088 wxPyEndAllowThreads(__tstate);
4dfaa61e 8089 if (PyErr_Occurred()) return NULL;
ab9bc19b 8090} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8091 return _resultobj;
8092}
8093
8094#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
107e4716 8095static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8096 PyObject * _resultobj;
8097 wxDC * _arg0;
8098 long _arg1;
8099 long _arg2;
2d091820 8100 PyObject * _argo0 = 0;
107e4716 8101 char *_kwnames[] = { "self","x","y", NULL };
70551f47
RD
8102
8103 self = self;
107e4716 8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8105 return NULL;
2d091820
RD
8106 if (_argo0) {
8107 if (_argo0 == Py_None) { _arg0 = NULL; }
8108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8110 return NULL;
8111 }
8112 }
ab9bc19b 8113{
474c48f9 8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8115 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
ab9bc19b 8116
474c48f9 8117 wxPyEndAllowThreads(__tstate);
4dfaa61e 8118 if (PyErr_Occurred()) return NULL;
ab9bc19b 8119} Py_INCREF(Py_None);
70551f47
RD
8120 _resultobj = Py_None;
8121 return _resultobj;
8122}
8123
8124#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
107e4716 8125static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8126 PyObject * _resultobj;
8127 wxDC * _arg0;
8128 wxBrush * _arg1;
2d091820
RD
8129 PyObject * _argo0 = 0;
8130 PyObject * _argo1 = 0;
107e4716 8131 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8132
8133 self = self;
107e4716 8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
70551f47 8135 return NULL;
2d091820
RD
8136 if (_argo0) {
8137 if (_argo0 == Py_None) { _arg0 = NULL; }
8138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8140 return NULL;
8141 }
8142 }
2d091820
RD
8143 if (_argo1) {
8144 if (_argo1 == Py_None) { _arg1 = NULL; }
8145 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8146 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8147 return NULL;
8148 }
8149 }
ab9bc19b 8150{
474c48f9 8151 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8152 wxDC_SetBackground(_arg0,*_arg1);
ab9bc19b 8153
474c48f9 8154 wxPyEndAllowThreads(__tstate);
4dfaa61e 8155 if (PyErr_Occurred()) return NULL;
ab9bc19b 8156} Py_INCREF(Py_None);
70551f47
RD
8157 _resultobj = Py_None;
8158 return _resultobj;
8159}
8160
8161#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
107e4716 8162static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8163 PyObject * _resultobj;
8164 wxDC * _arg0;
8165 int _arg1;
2d091820 8166 PyObject * _argo0 = 0;
107e4716 8167 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8168
8169 self = self;
107e4716 8170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
70551f47 8171 return NULL;
2d091820
RD
8172 if (_argo0) {
8173 if (_argo0 == Py_None) { _arg0 = NULL; }
8174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8176 return NULL;
8177 }
8178 }
ab9bc19b 8179{
474c48f9 8180 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8181 wxDC_SetBackgroundMode(_arg0,_arg1);
ab9bc19b 8182
474c48f9 8183 wxPyEndAllowThreads(__tstate);
4dfaa61e 8184 if (PyErr_Occurred()) return NULL;
ab9bc19b 8185} Py_INCREF(Py_None);
70551f47
RD
8186 _resultobj = Py_None;
8187 return _resultobj;
8188}
8189
8190#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 8191static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8192 PyObject * _resultobj;
8193 wxDC * _arg0;
8194 long _arg1;
8195 long _arg2;
8196 long _arg3;
8197 long _arg4;
2d091820 8198 PyObject * _argo0 = 0;
107e4716 8199 char *_kwnames[] = { "self","x","y","width","height", NULL };
70551f47
RD
8200
8201 self = self;
107e4716 8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
70551f47 8203 return NULL;
2d091820
RD
8204 if (_argo0) {
8205 if (_argo0 == Py_None) { _arg0 = NULL; }
8206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8208 return NULL;
8209 }
8210 }
ab9bc19b 8211{
474c48f9 8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8213 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 8214
474c48f9 8215 wxPyEndAllowThreads(__tstate);
4dfaa61e 8216 if (PyErr_Occurred()) return NULL;
ab9bc19b 8217} Py_INCREF(Py_None);
70551f47
RD
8218 _resultobj = Py_None;
8219 return _resultobj;
8220}
8221
059a841c
RD
8222#define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8223static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8224 PyObject * _resultobj;
8225 wxDC * _arg0;
8226 wxRegion * _arg1;
8227 PyObject * _argo0 = 0;
8228 PyObject * _argo1 = 0;
8229 char *_kwnames[] = { "self","region", NULL };
8230
8231 self = self;
8232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8233 return NULL;
8234 if (_argo0) {
8235 if (_argo0 == Py_None) { _arg0 = NULL; }
8236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8238 return NULL;
8239 }
8240 }
8241 if (_argo1) {
8242 if (_argo1 == Py_None) { _arg1 = NULL; }
8243 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8244 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8245 return NULL;
8246 }
8247 }
8248{
474c48f9 8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8250 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
059a841c 8251
474c48f9 8252 wxPyEndAllowThreads(__tstate);
059a841c
RD
8253 if (PyErr_Occurred()) return NULL;
8254} Py_INCREF(Py_None);
8255 _resultobj = Py_None;
8256 return _resultobj;
8257}
8258
70551f47 8259#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
107e4716 8260static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8261 PyObject * _resultobj;
8262 wxDC * _arg0;
8263 wxPalette * _arg1;
2d091820
RD
8264 PyObject * _argo0 = 0;
8265 PyObject * _argo1 = 0;
107e4716 8266 char *_kwnames[] = { "self","colourMap", NULL };
70551f47
RD
8267
8268 self = self;
107e4716 8269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
70551f47 8270 return NULL;
2d091820
RD
8271 if (_argo0) {
8272 if (_argo0 == Py_None) { _arg0 = NULL; }
8273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8275 return NULL;
8276 }
8277 }
2d091820
RD
8278 if (_argo1) {
8279 if (_argo1 == Py_None) { _arg1 = NULL; }
8280 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
70551f47
RD
8281 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8282 return NULL;
8283 }
8284 }
ab9bc19b 8285{
474c48f9 8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8287 wxDC_SetPalette(_arg0,*_arg1);
ab9bc19b 8288
474c48f9 8289 wxPyEndAllowThreads(__tstate);
4dfaa61e 8290 if (PyErr_Occurred()) return NULL;
ab9bc19b 8291} Py_INCREF(Py_None);
70551f47
RD
8292 _resultobj = Py_None;
8293 return _resultobj;
8294}
8295
8296#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
107e4716 8297static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8298 PyObject * _resultobj;
8299 wxDC * _arg0;
8300 wxBrush * _arg1;
2d091820
RD
8301 PyObject * _argo0 = 0;
8302 PyObject * _argo1 = 0;
107e4716 8303 char *_kwnames[] = { "self","brush", NULL };
70551f47
RD
8304
8305 self = self;
107e4716 8306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
70551f47 8307 return NULL;
2d091820
RD
8308 if (_argo0) {
8309 if (_argo0 == Py_None) { _arg0 = NULL; }
8310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8312 return NULL;
8313 }
8314 }
2d091820
RD
8315 if (_argo1) {
8316 if (_argo1 == Py_None) { _arg1 = NULL; }
8317 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
70551f47
RD
8318 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8319 return NULL;
8320 }
8321 }
ab9bc19b 8322{
474c48f9 8323 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8324 wxDC_SetBrush(_arg0,*_arg1);
ab9bc19b 8325
474c48f9 8326 wxPyEndAllowThreads(__tstate);
4dfaa61e 8327 if (PyErr_Occurred()) return NULL;
ab9bc19b 8328} Py_INCREF(Py_None);
70551f47
RD
8329 _resultobj = Py_None;
8330 return _resultobj;
8331}
8332
8333#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
107e4716 8334static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8335 PyObject * _resultobj;
8336 wxDC * _arg0;
8337 wxFont * _arg1;
2d091820
RD
8338 PyObject * _argo0 = 0;
8339 PyObject * _argo1 = 0;
107e4716 8340 char *_kwnames[] = { "self","font", NULL };
70551f47
RD
8341
8342 self = self;
107e4716 8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
70551f47 8344 return NULL;
2d091820
RD
8345 if (_argo0) {
8346 if (_argo0 == Py_None) { _arg0 = NULL; }
8347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8349 return NULL;
8350 }
8351 }
2d091820
RD
8352 if (_argo1) {
8353 if (_argo1 == Py_None) { _arg1 = NULL; }
8354 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
70551f47
RD
8355 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8356 return NULL;
8357 }
8358 }
ab9bc19b 8359{
474c48f9 8360 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8361 wxDC_SetFont(_arg0,*_arg1);
ab9bc19b 8362
474c48f9 8363 wxPyEndAllowThreads(__tstate);
4dfaa61e 8364 if (PyErr_Occurred()) return NULL;
ab9bc19b 8365} Py_INCREF(Py_None);
70551f47
RD
8366 _resultobj = Py_None;
8367 return _resultobj;
8368}
8369
8370#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
107e4716 8371static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8372 PyObject * _resultobj;
8373 wxDC * _arg0;
8374 int _arg1;
2d091820 8375 PyObject * _argo0 = 0;
107e4716 8376 char *_kwnames[] = { "self","function", NULL };
70551f47
RD
8377
8378 self = self;
107e4716 8379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
70551f47 8380 return NULL;
2d091820
RD
8381 if (_argo0) {
8382 if (_argo0 == Py_None) { _arg0 = NULL; }
8383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8385 return NULL;
8386 }
8387 }
ab9bc19b 8388{
474c48f9 8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8390 wxDC_SetLogicalFunction(_arg0,_arg1);
ab9bc19b 8391
474c48f9 8392 wxPyEndAllowThreads(__tstate);
4dfaa61e 8393 if (PyErr_Occurred()) return NULL;
ab9bc19b 8394} Py_INCREF(Py_None);
70551f47
RD
8395 _resultobj = Py_None;
8396 return _resultobj;
8397}
8398
e02c03a4
RD
8399#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8400static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject * _resultobj;
8402 wxDC * _arg0;
8403 double _arg1;
8404 double _arg2;
8405 PyObject * _argo0 = 0;
8406 char *_kwnames[] = { "self","x","y", NULL };
8407
8408 self = self;
8409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8410 return NULL;
8411 if (_argo0) {
8412 if (_argo0 == Py_None) { _arg0 = NULL; }
8413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8415 return NULL;
8416 }
8417 }
8418{
474c48f9 8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8420 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
e02c03a4 8421
474c48f9 8422 wxPyEndAllowThreads(__tstate);
4dfaa61e 8423 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8424} Py_INCREF(Py_None);
8425 _resultobj = Py_None;
8426 return _resultobj;
8427}
8428
70551f47 8429#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
107e4716 8430static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8431 PyObject * _resultobj;
8432 wxDC * _arg0;
8433 int _arg1;
2d091820 8434 PyObject * _argo0 = 0;
107e4716 8435 char *_kwnames[] = { "self","mode", NULL };
70551f47
RD
8436
8437 self = self;
107e4716 8438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
70551f47 8439 return NULL;
2d091820
RD
8440 if (_argo0) {
8441 if (_argo0 == Py_None) { _arg0 = NULL; }
8442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8444 return NULL;
8445 }
8446 }
ab9bc19b 8447{
474c48f9 8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8449 wxDC_SetMapMode(_arg0,_arg1);
ab9bc19b 8450
474c48f9 8451 wxPyEndAllowThreads(__tstate);
4dfaa61e 8452 if (PyErr_Occurred()) return NULL;
ab9bc19b 8453} Py_INCREF(Py_None);
70551f47
RD
8454 _resultobj = Py_None;
8455 return _resultobj;
8456}
8457
8458#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
107e4716 8459static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8460 PyObject * _resultobj;
8461 wxDC * _arg0;
8462 bool _arg1;
2d091820 8463 PyObject * _argo0 = 0;
70551f47 8464 int tempbool1;
107e4716 8465 char *_kwnames[] = { "self","optimize", NULL };
70551f47
RD
8466
8467 self = self;
107e4716 8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
70551f47 8469 return NULL;
2d091820
RD
8470 if (_argo0) {
8471 if (_argo0 == Py_None) { _arg0 = NULL; }
8472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8474 return NULL;
8475 }
8476 }
8477 _arg1 = (bool ) tempbool1;
ab9bc19b 8478{
474c48f9 8479 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8480 wxDC_SetOptimization(_arg0,_arg1);
ab9bc19b 8481
474c48f9 8482 wxPyEndAllowThreads(__tstate);
4dfaa61e 8483 if (PyErr_Occurred()) return NULL;
ab9bc19b 8484} Py_INCREF(Py_None);
70551f47
RD
8485 _resultobj = Py_None;
8486 return _resultobj;
8487}
8488
8489#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
107e4716 8490static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8491 PyObject * _resultobj;
8492 wxDC * _arg0;
8493 wxPen * _arg1;
2d091820
RD
8494 PyObject * _argo0 = 0;
8495 PyObject * _argo1 = 0;
107e4716 8496 char *_kwnames[] = { "self","pen", NULL };
70551f47
RD
8497
8498 self = self;
107e4716 8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
70551f47 8500 return NULL;
2d091820
RD
8501 if (_argo0) {
8502 if (_argo0 == Py_None) { _arg0 = NULL; }
8503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8505 return NULL;
8506 }
8507 }
2d091820
RD
8508 if (_argo1) {
8509 if (_argo1 == Py_None) { _arg1 = NULL; }
8510 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
70551f47
RD
8511 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8512 return NULL;
8513 }
8514 }
ab9bc19b 8515{
474c48f9 8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8517 wxDC_SetPen(_arg0,*_arg1);
ab9bc19b 8518
474c48f9 8519 wxPyEndAllowThreads(__tstate);
4dfaa61e 8520 if (PyErr_Occurred()) return NULL;
ab9bc19b 8521} Py_INCREF(Py_None);
70551f47
RD
8522 _resultobj = Py_None;
8523 return _resultobj;
8524}
8525
8526#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
107e4716 8527static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8528 PyObject * _resultobj;
8529 wxDC * _arg0;
8530 wxColour * _arg1;
2d091820 8531 PyObject * _argo0 = 0;
f6bcfd97
BP
8532 wxColour temp;
8533 PyObject * _obj1 = 0;
107e4716 8534 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8535
8536 self = self;
f6bcfd97 8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
70551f47 8538 return NULL;
2d091820
RD
8539 if (_argo0) {
8540 if (_argo0 == Py_None) { _arg0 = NULL; }
8541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8543 return NULL;
8544 }
8545 }
f6bcfd97
BP
8546{
8547 _arg1 = &temp;
8548 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8549 return NULL;
f6bcfd97 8550}
ab9bc19b 8551{
474c48f9 8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8553 wxDC_SetTextBackground(_arg0,*_arg1);
ab9bc19b 8554
474c48f9 8555 wxPyEndAllowThreads(__tstate);
4dfaa61e 8556 if (PyErr_Occurred()) return NULL;
ab9bc19b 8557} Py_INCREF(Py_None);
70551f47
RD
8558 _resultobj = Py_None;
8559 return _resultobj;
8560}
8561
8562#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
107e4716 8563static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8564 PyObject * _resultobj;
8565 wxDC * _arg0;
8566 wxColour * _arg1;
2d091820 8567 PyObject * _argo0 = 0;
f6bcfd97
BP
8568 wxColour temp;
8569 PyObject * _obj1 = 0;
107e4716 8570 char *_kwnames[] = { "self","colour", NULL };
70551f47
RD
8571
8572 self = self;
f6bcfd97 8573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
70551f47 8574 return NULL;
2d091820
RD
8575 if (_argo0) {
8576 if (_argo0 == Py_None) { _arg0 = NULL; }
8577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8579 return NULL;
8580 }
8581 }
f6bcfd97
BP
8582{
8583 _arg1 = &temp;
8584 if (! wxColour_helper(_obj1, &_arg1))
70551f47 8585 return NULL;
f6bcfd97 8586}
ab9bc19b 8587{
474c48f9 8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8589 wxDC_SetTextForeground(_arg0,*_arg1);
ab9bc19b 8590
474c48f9 8591 wxPyEndAllowThreads(__tstate);
4dfaa61e 8592 if (PyErr_Occurred()) return NULL;
ab9bc19b 8593} Py_INCREF(Py_None);
70551f47
RD
8594 _resultobj = Py_None;
8595 return _resultobj;
8596}
8597
8598#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
107e4716 8599static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8600 PyObject * _resultobj;
8601 wxDC * _arg0;
8602 double _arg1;
8603 double _arg2;
2d091820 8604 PyObject * _argo0 = 0;
107e4716 8605 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
70551f47
RD
8606
8607 self = self;
107e4716 8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
70551f47 8609 return NULL;
2d091820
RD
8610 if (_argo0) {
8611 if (_argo0 == Py_None) { _arg0 = NULL; }
8612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8614 return NULL;
8615 }
8616 }
ab9bc19b 8617{
474c48f9 8618 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8619 wxDC_SetUserScale(_arg0,_arg1,_arg2);
ab9bc19b 8620
474c48f9 8621 wxPyEndAllowThreads(__tstate);
4dfaa61e 8622 if (PyErr_Occurred()) return NULL;
ab9bc19b 8623} Py_INCREF(Py_None);
70551f47
RD
8624 _resultobj = Py_None;
8625 return _resultobj;
8626}
8627
8628#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
107e4716 8629static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8630 PyObject * _resultobj;
8631 bool _result;
8632 wxDC * _arg0;
8633 wxString * _arg1;
2d091820 8634 PyObject * _argo0 = 0;
70551f47 8635 PyObject * _obj1 = 0;
107e4716 8636 char *_kwnames[] = { "self","message", NULL };
70551f47
RD
8637
8638 self = self;
107e4716 8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
70551f47 8640 return NULL;
2d091820
RD
8641 if (_argo0) {
8642 if (_argo0 == Py_None) { _arg0 = NULL; }
8643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8645 return NULL;
8646 }
8647 }
8648{
c8bc7bb8
RD
8649 _arg1 = wxString_in_helper(_obj1);
8650 if (_arg1 == NULL)
2cd2fac8 8651 return NULL;
70551f47 8652}
ab9bc19b 8653{
474c48f9 8654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8655 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
ab9bc19b 8656
474c48f9 8657 wxPyEndAllowThreads(__tstate);
4dfaa61e 8658 if (PyErr_Occurred()) return NULL;
ab9bc19b 8659} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
8660{
8661 if (_obj1)
8662 delete _arg1;
8663}
8664 return _resultobj;
8665}
8666
8667#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
107e4716 8668static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8669 PyObject * _resultobj;
8670 wxDC * _arg0;
2d091820 8671 PyObject * _argo0 = 0;
107e4716 8672 char *_kwnames[] = { "self", NULL };
70551f47
RD
8673
8674 self = self;
107e4716 8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
70551f47 8676 return NULL;
2d091820
RD
8677 if (_argo0) {
8678 if (_argo0 == Py_None) { _arg0 = NULL; }
8679 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8680 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8681 return NULL;
8682 }
8683 }
ab9bc19b 8684{
474c48f9 8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8686 wxDC_StartPage(_arg0);
ab9bc19b 8687
474c48f9 8688 wxPyEndAllowThreads(__tstate);
4dfaa61e 8689 if (PyErr_Occurred()) return NULL;
ab9bc19b 8690} Py_INCREF(Py_None);
70551f47
RD
8691 _resultobj = Py_None;
8692 return _resultobj;
8693}
8694
107e4716
RD
8695#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8696static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
8697 PyObject * _resultobj;
8698 wxDC * _arg0;
8699 wxBitmap * _arg1;
8700 long _arg2;
8701 long _arg3;
107e4716 8702 int _arg4 = (int ) FALSE;
2d091820
RD
8703 PyObject * _argo0 = 0;
8704 PyObject * _argo1 = 0;
107e4716 8705 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
70551f47
RD
8706
8707 self = self;
107e4716 8708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
70551f47 8709 return NULL;
2d091820
RD
8710 if (_argo0) {
8711 if (_argo0 == Py_None) { _arg0 = NULL; }
8712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
70551f47
RD
8713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8714 return NULL;
8715 }
8716 }
2d091820
RD
8717 if (_argo1) {
8718 if (_argo1 == Py_None) { _arg1 = NULL; }
8719 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
8720 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8721 return NULL;
8722 }
8723 }
ab9bc19b 8724{
474c48f9 8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8726 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
ab9bc19b 8727
474c48f9 8728 wxPyEndAllowThreads(__tstate);
4dfaa61e 8729 if (PyErr_Occurred()) return NULL;
ab9bc19b 8730} Py_INCREF(Py_None);
70551f47
RD
8731 _resultobj = Py_None;
8732 return _resultobj;
8733}
8734
e02c03a4
RD
8735#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8736static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject * _resultobj;
8738 bool _result;
8739 wxDC * _arg0;
8740 PyObject * _argo0 = 0;
8741 char *_kwnames[] = { "self", NULL };
8742
8743 self = self;
8744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8745 return NULL;
8746 if (_argo0) {
8747 if (_argo0 == Py_None) { _arg0 = NULL; }
8748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8750 return NULL;
8751 }
8752 }
8753{
474c48f9 8754 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8755 _result = (bool )wxDC_CanDrawBitmap(_arg0);
e02c03a4 8756
474c48f9 8757 wxPyEndAllowThreads(__tstate);
4dfaa61e 8758 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8759} _resultobj = Py_BuildValue("i",_result);
8760 return _resultobj;
8761}
8762
8763#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8764static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject * _resultobj;
8766 bool _result;
8767 wxDC * _arg0;
8768 PyObject * _argo0 = 0;
8769 char *_kwnames[] = { "self", NULL };
8770
8771 self = self;
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8773 return NULL;
8774 if (_argo0) {
8775 if (_argo0 == Py_None) { _arg0 = NULL; }
8776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8778 return NULL;
8779 }
8780 }
8781{
474c48f9 8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8783 _result = (bool )wxDC_CanGetTextExtent(_arg0);
e02c03a4 8784
474c48f9 8785 wxPyEndAllowThreads(__tstate);
4dfaa61e 8786 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8787} _resultobj = Py_BuildValue("i",_result);
8788 return _resultobj;
8789}
8790
8791#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8792static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8793 PyObject * _resultobj;
8794 int _result;
8795 wxDC * _arg0;
8796 PyObject * _argo0 = 0;
8797 char *_kwnames[] = { "self", NULL };
8798
8799 self = self;
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8801 return NULL;
8802 if (_argo0) {
8803 if (_argo0 == Py_None) { _arg0 = NULL; }
8804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8806 return NULL;
8807 }
8808 }
8809{
474c48f9 8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8811 _result = (int )wxDC_GetDepth(_arg0);
e02c03a4 8812
474c48f9 8813 wxPyEndAllowThreads(__tstate);
4dfaa61e 8814 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8815} _resultobj = Py_BuildValue("i",_result);
8816 return _resultobj;
8817}
8818
8819#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8820static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8821 PyObject * _resultobj;
8822 wxSize * _result;
8823 wxDC * _arg0;
8824 PyObject * _argo0 = 0;
8825 char *_kwnames[] = { "self", NULL };
8826 char _ptemp[128];
8827
8828 self = self;
8829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8830 return NULL;
8831 if (_argo0) {
8832 if (_argo0 == Py_None) { _arg0 = NULL; }
8833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8835 return NULL;
8836 }
8837 }
8838{
474c48f9 8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8840 _result = new wxSize (wxDC_GetPPI(_arg0));
e02c03a4 8841
474c48f9 8842 wxPyEndAllowThreads(__tstate);
4dfaa61e 8843 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8844} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8845 _resultobj = Py_BuildValue("s",_ptemp);
8846 return _resultobj;
8847}
8848
8849#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8850static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject * _resultobj;
8852 wxDC * _arg0;
8853 int * _arg1;
8854 int temp;
8855 int * _arg2;
8856 int temp0;
8857 PyObject * _argo0 = 0;
8858 char *_kwnames[] = { "self", NULL };
8859
8860 self = self;
8861{
8862 _arg1 = &temp;
8863}
8864{
8865 _arg2 = &temp0;
8866}
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8868 return NULL;
8869 if (_argo0) {
8870 if (_argo0 == Py_None) { _arg0 = NULL; }
8871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8873 return NULL;
8874 }
8875 }
8876{
474c48f9 8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8878 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8879
474c48f9 8880 wxPyEndAllowThreads(__tstate);
4dfaa61e 8881 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8882} Py_INCREF(Py_None);
8883 _resultobj = Py_None;
8884{
8885 PyObject *o;
8886 o = PyInt_FromLong((long) (*_arg1));
8887 _resultobj = t_output_helper(_resultobj, o);
8888}
8889{
8890 PyObject *o;
8891 o = PyInt_FromLong((long) (*_arg2));
8892 _resultobj = t_output_helper(_resultobj, o);
8893}
8894 return _resultobj;
8895}
8896
8897#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8898static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8899 PyObject * _resultobj;
8900 wxDC * _arg0;
8901 int _arg1;
8902 int _arg2;
8903 PyObject * _argo0 = 0;
8904 char *_kwnames[] = { "self","x","y", NULL };
8905
8906 self = self;
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8908 return NULL;
8909 if (_argo0) {
8910 if (_argo0 == Py_None) { _arg0 = NULL; }
8911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8913 return NULL;
8914 }
8915 }
8916{
474c48f9 8917 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8918 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
e02c03a4 8919
474c48f9 8920 wxPyEndAllowThreads(__tstate);
4dfaa61e 8921 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8922} Py_INCREF(Py_None);
8923 _resultobj = Py_None;
8924 return _resultobj;
8925}
8926
8927#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8928static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8929 PyObject * _resultobj;
8930 wxDC * _arg0;
8931 int * _arg1;
8932 int temp;
8933 int * _arg2;
8934 int temp0;
8935 PyObject * _argo0 = 0;
8936 char *_kwnames[] = { "self", NULL };
8937
8938 self = self;
8939{
8940 _arg1 = &temp;
8941}
8942{
8943 _arg2 = &temp0;
8944}
8945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8946 return NULL;
8947 if (_argo0) {
8948 if (_argo0 == Py_None) { _arg0 = NULL; }
8949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8951 return NULL;
8952 }
8953 }
8954{
474c48f9 8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 8956 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
e02c03a4 8957
474c48f9 8958 wxPyEndAllowThreads(__tstate);
4dfaa61e 8959 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
8960} Py_INCREF(Py_None);
8961 _resultobj = Py_None;
8962{
8963 PyObject *o;
8964 o = PyInt_FromLong((long) (*_arg1));
8965 _resultobj = t_output_helper(_resultobj, o);
8966}
8967{
8968 PyObject *o;
8969 o = PyInt_FromLong((long) (*_arg2));
8970 _resultobj = t_output_helper(_resultobj, o);
8971}
8972 return _resultobj;
8973}
8974
8975#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8976static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8977 PyObject * _resultobj;
8978 wxDC * _arg0;
8979 bool _arg1;
8980 bool _arg2;
8981 PyObject * _argo0 = 0;
8982 int tempbool1;
8983 int tempbool2;
8984 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
8985
8986 self = self;
8987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
8988 return NULL;
8989 if (_argo0) {
8990 if (_argo0 == Py_None) { _arg0 = NULL; }
8991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8993 return NULL;
8994 }
8995 }
8996 _arg1 = (bool ) tempbool1;
8997 _arg2 = (bool ) tempbool2;
8998{
474c48f9 8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9000 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
e02c03a4 9001
474c48f9 9002 wxPyEndAllowThreads(__tstate);
4dfaa61e 9003 if (PyErr_Occurred()) return NULL;
e02c03a4
RD
9004} Py_INCREF(Py_None);
9005 _resultobj = Py_None;
9006 return _resultobj;
9007}
9008
f6bcfd97
BP
9009#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9010static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject * _resultobj;
9012 wxDC * _arg0;
9013 int _arg1;
9014 int _arg2;
9015 PyObject * _argo0 = 0;
9016 char *_kwnames[] = { "self","x","y", NULL };
9017
9018 self = self;
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9020 return NULL;
9021 if (_argo0) {
9022 if (_argo0 == Py_None) { _arg0 = NULL; }
9023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9025 return NULL;
9026 }
9027 }
9028{
474c48f9 9029 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9030 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
f6bcfd97 9031
474c48f9 9032 wxPyEndAllowThreads(__tstate);
4dfaa61e 9033 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9034} Py_INCREF(Py_None);
9035 _resultobj = Py_None;
9036 return _resultobj;
9037}
9038
9039#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9040static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9041 PyObject * _resultobj;
9042 wxDC * _arg0;
9043 PyObject * _argo0 = 0;
9044 char *_kwnames[] = { "self", NULL };
9045
9046 self = self;
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9048 return NULL;
9049 if (_argo0) {
9050 if (_argo0 == Py_None) { _arg0 = NULL; }
9051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9053 return NULL;
9054 }
9055 }
9056{
474c48f9 9057 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9058 wxDC_ResetBoundingBox(_arg0);
f6bcfd97 9059
474c48f9 9060 wxPyEndAllowThreads(__tstate);
4dfaa61e 9061 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
9062} Py_INCREF(Py_None);
9063 _resultobj = Py_None;
9064 return _resultobj;
9065}
9066
3bcd5e1c
RD
9067static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9068 PyObject * _resultobj;
9069 wxDC * _arg0;
9070 int * _arg1;
9071 int temp;
9072 int * _arg2;
9073 int temp0;
9074 int * _arg3;
9075 int temp1;
9076 int * _arg4;
9077 int temp2;
9078 PyObject * _argo0 = 0;
9079 char *_kwnames[] = { "self", NULL };
9080
9081 self = self;
9082{
9083 _arg1 = &temp;
9084}
9085{
9086 _arg2 = &temp0;
9087}
9088{
9089 _arg3 = &temp1;
9090}
9091{
9092 _arg4 = &temp2;
9093}
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9095 return NULL;
9096 if (_argo0) {
9097 if (_argo0 == Py_None) { _arg0 = NULL; }
9098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9100 return NULL;
9101 }
9102 }
9103{
474c48f9 9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9105 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
3bcd5e1c 9106
474c48f9 9107 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9108 if (PyErr_Occurred()) return NULL;
9109} Py_INCREF(Py_None);
9110 _resultobj = Py_None;
9111{
9112 PyObject *o;
9113 o = PyInt_FromLong((long) (*_arg1));
9114 _resultobj = t_output_helper(_resultobj, o);
9115}
9116{
9117 PyObject *o;
9118 o = PyInt_FromLong((long) (*_arg2));
9119 _resultobj = t_output_helper(_resultobj, o);
9120}
9121{
9122 PyObject *o;
9123 o = PyInt_FromLong((long) (*_arg3));
9124 _resultobj = t_output_helper(_resultobj, o);
9125}
9126{
9127 PyObject *o;
9128 o = PyInt_FromLong((long) (*_arg4));
9129 _resultobj = t_output_helper(_resultobj, o);
9130}
9131 return _resultobj;
9132}
9133
9134static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9135 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9136 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9137 int numObjs = 0;
9138 int numPens = 0;
9139 wxPen* pen;
9140 PyObject* obj;
9141 int x1, y1;
9142 int i = 0;
9143
9144 if (!PySequence_Check(pyPoints)) {
9145 goto err0;
9146 }
9147 if (!PySequence_Check(pyPens)) {
9148 goto err1;
9149 }
9150 numObjs = PySequence_Length(pyPoints);
9151 numPens = PySequence_Length(pyPens);
9152
9153 for (i = 0; i < numObjs; i++) {
9154 // Use a new pen?
9155 if (i < numPens) {
9156 if (isFastPens) {
9157 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9158 }
9159 else {
9160 obj = PySequence_GetItem(pyPens, i);
9161 }
9162 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9163 if (!isFastPens)
9164 Py_DECREF(obj);
9165 goto err1;
9166 }
9167
9168 self->SetPen(*pen);
9169 if (!isFastPens)
9170 Py_DECREF(obj);
9171 }
9172
9173 // Get the point coordinants
9174 if (isFastSeq) {
9175 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9176 }
9177 else {
9178 obj = PySequence_GetItem(pyPoints, i);
9179 }
9180 if (! _2int_seq_helper(obj, &x1, &y1)) {
9181 if (!isFastPens)
9182 Py_DECREF(obj);
9183 goto err0;
9184 }
9185
9186 // Now draw the point
9187 self->DrawPoint(x1, y1);
9188
9189 if (!isFastSeq)
9190 Py_DECREF(obj);
9191 }
9192
9193 Py_INCREF(Py_None);
9194 return Py_None;
9195
9196 err1:
9197 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9198 return NULL;
9199 err0:
9200 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9201 return NULL;
9202 }
9203static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9204 PyObject * _resultobj;
9205 PyObject * _result;
9206 wxDC * _arg0;
9207 PyObject * _arg1;
9208 PyObject * _arg2;
9209 PyObject * _argo0 = 0;
9210 PyObject * _obj1 = 0;
9211 PyObject * _obj2 = 0;
9212 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9213
9214 self = self;
9215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9216 return NULL;
9217 if (_argo0) {
9218 if (_argo0 == Py_None) { _arg0 = NULL; }
9219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9221 return NULL;
9222 }
9223 }
9224{
9225 _arg1 = _obj1;
9226}
9227{
9228 _arg2 = _obj2;
9229}
9230{
474c48f9 9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9232 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
3bcd5e1c 9233
474c48f9 9234 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9235 if (PyErr_Occurred()) return NULL;
9236}{
9237 _resultobj = _result;
9238}
9239 return _resultobj;
9240}
9241
9242static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9243 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9244 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9245 int numObjs = 0;
9246 int numPens = 0;
9247 wxPen* pen;
9248 PyObject* obj;
9249 int x1, y1, x2, y2;
9250 int i = 0;
9251
9252 if (!PySequence_Check(pyLines)) {
9253 goto err0;
9254 }
9255 if (!PySequence_Check(pyPens)) {
9256 goto err1;
9257 }
9258 numObjs = PySequence_Length(pyLines);
9259 numPens = PySequence_Length(pyPens);
9260
9261 for (i = 0; i < numObjs; i++) {
9262 // Use a new pen?
9263 if (i < numPens) {
9264 if (isFastPens) {
9265 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9266 }
9267 else {
9268 obj = PySequence_GetItem(pyPens, i);
9269 }
9270 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9271 if (!isFastPens)
9272 Py_DECREF(obj);
9273 goto err1;
9274 }
9275
9276 self->SetPen(*pen);
9277 if (!isFastPens)
9278 Py_DECREF(obj);
9279 }
9280
9281 // Get the line coordinants
9282 if (isFastSeq) {
9283 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9284 }
9285 else {
9286 obj = PySequence_GetItem(pyLines, i);
9287 }
9288 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9289 if (!isFastPens)
9290 Py_DECREF(obj);
9291 goto err0;
9292 }
9293
9294 // Now draw the line
9295 self->DrawLine(x1, y1, x2, y2);
9296
9297 if (!isFastSeq)
9298 Py_DECREF(obj);
9299 }
9300
9301 Py_INCREF(Py_None);
9302 return Py_None;
9303
9304 err1:
9305 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9306 return NULL;
9307 err0:
9308 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9309 return NULL;
9310 }
9311static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9312 PyObject * _resultobj;
9313 PyObject * _result;
9314 wxDC * _arg0;
9315 PyObject * _arg1;
9316 PyObject * _arg2;
9317 PyObject * _argo0 = 0;
9318 PyObject * _obj1 = 0;
9319 PyObject * _obj2 = 0;
9320 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9321
9322 self = self;
9323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9324 return NULL;
9325 if (_argo0) {
9326 if (_argo0 == Py_None) { _arg0 = NULL; }
9327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9329 return NULL;
9330 }
9331 }
9332{
9333 _arg1 = _obj1;
9334}
9335{
9336 _arg2 = _obj2;
9337}
9338{
474c48f9 9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9340 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
3bcd5e1c 9341
474c48f9 9342 wxPyEndAllowThreads(__tstate);
3bcd5e1c
RD
9343 if (PyErr_Occurred()) return NULL;
9344}{
9345 _resultobj = _result;
9346}
9347 return _resultobj;
9348}
9349
70551f47
RD
9350static void *SwigwxMemoryDCTowxDC(void *ptr) {
9351 wxMemoryDC *src;
9352 wxDC *dest;
9353 src = (wxMemoryDC *) ptr;
9354 dest = (wxDC *) src;
9355 return (void *) dest;
9356}
9357
9df61a29
RD
9358static void *SwigwxMemoryDCTowxObject(void *ptr) {
9359 wxMemoryDC *src;
9360 wxObject *dest;
9361 src = (wxMemoryDC *) ptr;
9362 dest = (wxObject *) src;
9363 return (void *) dest;
9364}
9365
70551f47 9366#define new_wxMemoryDC() (new wxMemoryDC())
107e4716 9367static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9368 PyObject * _resultobj;
9369 wxMemoryDC * _result;
107e4716 9370 char *_kwnames[] = { NULL };
70551f47
RD
9371 char _ptemp[128];
9372
9373 self = self;
107e4716 9374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
70551f47 9375 return NULL;
ab9bc19b 9376{
474c48f9 9377 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9378 _result = (wxMemoryDC *)new_wxMemoryDC();
ab9bc19b 9379
474c48f9 9380 wxPyEndAllowThreads(__tstate);
4dfaa61e 9381 if (PyErr_Occurred()) return NULL;
2d091820
RD
9382} if (_result) {
9383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9384 _resultobj = Py_BuildValue("s",_ptemp);
9385 } else {
9386 Py_INCREF(Py_None);
9387 _resultobj = Py_None;
9388 }
70551f47
RD
9389 return _resultobj;
9390}
9391
9392#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
107e4716 9393static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9394 PyObject * _resultobj;
9395 wxMemoryDC * _arg0;
9396 wxBitmap * _arg1;
2d091820
RD
9397 PyObject * _argo0 = 0;
9398 PyObject * _argo1 = 0;
107e4716 9399 char *_kwnames[] = { "self","bitmap", NULL };
70551f47
RD
9400
9401 self = self;
107e4716 9402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
70551f47 9403 return NULL;
2d091820
RD
9404 if (_argo0) {
9405 if (_argo0 == Py_None) { _arg0 = NULL; }
9406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
70551f47
RD
9407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9408 return NULL;
9409 }
9410 }
2d091820
RD
9411 if (_argo1) {
9412 if (_argo1 == Py_None) { _arg1 = NULL; }
9413 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
70551f47
RD
9414 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9415 return NULL;
9416 }
9417 }
ab9bc19b 9418{
474c48f9 9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9420 wxMemoryDC_SelectObject(_arg0,*_arg1);
ab9bc19b 9421
474c48f9 9422 wxPyEndAllowThreads(__tstate);
4dfaa61e 9423 if (PyErr_Occurred()) return NULL;
ab9bc19b 9424} Py_INCREF(Py_None);
70551f47
RD
9425 _resultobj = Py_None;
9426 return _resultobj;
9427}
9428
9429static void *SwigwxScreenDCTowxDC(void *ptr) {
9430 wxScreenDC *src;
9431 wxDC *dest;
9432 src = (wxScreenDC *) ptr;
9433 dest = (wxDC *) src;
9434 return (void *) dest;
9435}
9436
9df61a29
RD
9437static void *SwigwxScreenDCTowxObject(void *ptr) {
9438 wxScreenDC *src;
9439 wxObject *dest;
9440 src = (wxScreenDC *) ptr;
9441 dest = (wxObject *) src;
9442 return (void *) dest;
9443}
9444
70551f47 9445#define new_wxScreenDC() (new wxScreenDC())
107e4716 9446static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9447 PyObject * _resultobj;
9448 wxScreenDC * _result;
107e4716 9449 char *_kwnames[] = { NULL };
70551f47
RD
9450 char _ptemp[128];
9451
9452 self = self;
107e4716 9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
70551f47 9454 return NULL;
ab9bc19b 9455{
474c48f9 9456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9457 _result = (wxScreenDC *)new_wxScreenDC();
ab9bc19b 9458
474c48f9 9459 wxPyEndAllowThreads(__tstate);
4dfaa61e 9460 if (PyErr_Occurred()) return NULL;
2d091820
RD
9461} if (_result) {
9462 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9463 _resultobj = Py_BuildValue("s",_ptemp);
9464 } else {
9465 Py_INCREF(Py_None);
9466 _resultobj = Py_None;
9467 }
70551f47
RD
9468 return _resultobj;
9469}
9470
2fc99549
RD
9471#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9472static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9473 PyObject * _resultobj;
9474 bool _result;
9475 wxScreenDC * _arg0;
9476 wxWindow * _arg1;
2d091820
RD
9477 PyObject * _argo0 = 0;
9478 PyObject * _argo1 = 0;
107e4716 9479 char *_kwnames[] = { "self","window", NULL };
70551f47
RD
9480
9481 self = self;
2fc99549 9482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
70551f47 9483 return NULL;
2d091820
RD
9484 if (_argo0) {
9485 if (_argo0 == Py_None) { _arg0 = NULL; }
9486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
70551f47
RD
9488 return NULL;
9489 }
9490 }
2d091820
RD
9491 if (_argo1) {
9492 if (_argo1 == Py_None) { _arg1 = NULL; }
9493 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2fc99549 9494 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
70551f47
RD
9495 return NULL;
9496 }
9497 }
ab9bc19b 9498{
474c48f9 9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9500 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
ab9bc19b 9501
474c48f9 9502 wxPyEndAllowThreads(__tstate);
4dfaa61e 9503 if (PyErr_Occurred()) return NULL;
ab9bc19b 9504} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9505 return _resultobj;
9506}
9507
2fc99549
RD
9508#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9509static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9510 PyObject * _resultobj;
9511 bool _result;
9512 wxScreenDC * _arg0;
2d091820
RD
9513 wxRect * _arg1 = (wxRect *) NULL;
9514 PyObject * _argo0 = 0;
37f6a977
RD
9515 wxRect temp;
9516 PyObject * _obj1 = 0;
107e4716 9517 char *_kwnames[] = { "self","rect", NULL };
70551f47
RD
9518
9519 self = self;
2fc99549 9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
70551f47 9521 return NULL;
2d091820
RD
9522 if (_argo0) {
9523 if (_argo0 == Py_None) { _arg0 = NULL; }
9524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
2fc99549 9525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
70551f47
RD
9526 return NULL;
9527 }
9528 }
37f6a977
RD
9529 if (_obj1)
9530{
9531 _arg1 = &temp;
9532 if (! wxRect_helper(_obj1, &_arg1))
70551f47 9533 return NULL;
37f6a977 9534}
ab9bc19b 9535{
474c48f9 9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9537 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
ab9bc19b 9538
474c48f9 9539 wxPyEndAllowThreads(__tstate);
4dfaa61e 9540 if (PyErr_Occurred()) return NULL;
ab9bc19b 9541} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9542 return _resultobj;
9543}
9544
9545#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
107e4716 9546static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9547 PyObject * _resultobj;
9548 bool _result;
9549 wxScreenDC * _arg0;
2d091820 9550 PyObject * _argo0 = 0;
107e4716 9551 char *_kwnames[] = { "self", NULL };
70551f47
RD
9552
9553 self = self;
107e4716 9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
70551f47 9555 return NULL;
2d091820
RD
9556 if (_argo0) {
9557 if (_argo0 == Py_None) { _arg0 = NULL; }
9558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
70551f47
RD
9559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9560 return NULL;
9561 }
9562 }
ab9bc19b 9563{
474c48f9 9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9565 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
ab9bc19b 9566
474c48f9 9567 wxPyEndAllowThreads(__tstate);
4dfaa61e 9568 if (PyErr_Occurred()) return NULL;
ab9bc19b 9569} _resultobj = Py_BuildValue("i",_result);
70551f47
RD
9570 return _resultobj;
9571}
9572
9573static void *SwigwxClientDCTowxDC(void *ptr) {
9574 wxClientDC *src;
9575 wxDC *dest;
9576 src = (wxClientDC *) ptr;
9577 dest = (wxDC *) src;
9578 return (void *) dest;
9579}
9580
9df61a29
RD
9581static void *SwigwxClientDCTowxObject(void *ptr) {
9582 wxClientDC *src;
9583 wxObject *dest;
9584 src = (wxClientDC *) ptr;
9585 dest = (wxObject *) src;
9586 return (void *) dest;
9587}
9588
70551f47 9589#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
107e4716 9590static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9591 PyObject * _resultobj;
9592 wxClientDC * _result;
9593 wxWindow * _arg0;
2d091820 9594 PyObject * _argo0 = 0;
107e4716 9595 char *_kwnames[] = { "win", NULL };
70551f47
RD
9596 char _ptemp[128];
9597
9598 self = self;
107e4716 9599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
70551f47 9600 return NULL;
2d091820
RD
9601 if (_argo0) {
9602 if (_argo0 == Py_None) { _arg0 = NULL; }
9603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9605 return NULL;
9606 }
9607 }
ab9bc19b 9608{
474c48f9 9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9610 _result = (wxClientDC *)new_wxClientDC(_arg0);
ab9bc19b 9611
474c48f9 9612 wxPyEndAllowThreads(__tstate);
4dfaa61e 9613 if (PyErr_Occurred()) return NULL;
2d091820
RD
9614} if (_result) {
9615 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9616 _resultobj = Py_BuildValue("s",_ptemp);
9617 } else {
9618 Py_INCREF(Py_None);
9619 _resultobj = Py_None;
9620 }
70551f47
RD
9621 return _resultobj;
9622}
9623
9624static void *SwigwxPaintDCTowxDC(void *ptr) {
9625 wxPaintDC *src;
9626 wxDC *dest;
9627 src = (wxPaintDC *) ptr;
9628 dest = (wxDC *) src;
9629 return (void *) dest;
9630}
9631
9df61a29
RD
9632static void *SwigwxPaintDCTowxObject(void *ptr) {
9633 wxPaintDC *src;
9634 wxObject *dest;
9635 src = (wxPaintDC *) ptr;
9636 dest = (wxObject *) src;
9637 return (void *) dest;
9638}
9639
70551f47 9640#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
107e4716 9641static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
70551f47
RD
9642 PyObject * _resultobj;
9643 wxPaintDC * _result;
9644 wxWindow * _arg0;
2d091820 9645 PyObject * _argo0 = 0;
107e4716 9646 char *_kwnames[] = { "win", NULL };
70551f47
RD
9647 char _ptemp[128];
9648
9649 self = self;
107e4716 9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
70551f47 9651 return NULL;
2d091820
RD
9652 if (_argo0) {
9653 if (_argo0 == Py_None) { _arg0 = NULL; }
9654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
70551f47
RD
9655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9656 return NULL;
9657 }
9658 }
ab9bc19b 9659{
474c48f9 9660 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9661 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
ab9bc19b 9662
474c48f9 9663 wxPyEndAllowThreads(__tstate);
4dfaa61e 9664 if (PyErr_Occurred()) return NULL;
2d091820
RD
9665} if (_result) {
9666 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9667 _resultobj = Py_BuildValue("s",_ptemp);
9668 } else {
9669 Py_INCREF(Py_None);
9670 _resultobj = Py_None;
9671 }
70551f47
RD
9672 return _resultobj;
9673}
9674
c95e68d8
RD
9675static void *SwigwxWindowDCTowxDC(void *ptr) {
9676 wxWindowDC *src;
9677 wxDC *dest;
9678 src = (wxWindowDC *) ptr;
9679 dest = (wxDC *) src;
9680 return (void *) dest;
9681}
9682
9df61a29
RD
9683static void *SwigwxWindowDCTowxObject(void *ptr) {
9684 wxWindowDC *src;
9685 wxObject *dest;
9686 src = (wxWindowDC *) ptr;
9687 dest = (wxObject *) src;
9688 return (void *) dest;
9689}
9690
c95e68d8 9691#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
107e4716 9692static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
9693 PyObject * _resultobj;
9694 wxWindowDC * _result;
9695 wxWindow * _arg0;
2d091820 9696 PyObject * _argo0 = 0;
107e4716 9697 char *_kwnames[] = { "win", NULL };
c95e68d8
RD
9698 char _ptemp[128];
9699
9700 self = self;
107e4716 9701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
c95e68d8 9702 return NULL;
2d091820
RD
9703 if (_argo0) {
9704 if (_argo0 == Py_None) { _arg0 = NULL; }
9705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
c95e68d8
RD
9706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
9707 return NULL;
9708 }
9709 }
ab9bc19b 9710{
474c48f9 9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9712 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
ab9bc19b 9713
474c48f9 9714 wxPyEndAllowThreads(__tstate);
4dfaa61e 9715 if (PyErr_Occurred()) return NULL;
2d091820
RD
9716} if (_result) {
9717 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
9718 _resultobj = Py_BuildValue("s",_ptemp);
9719 } else {
9720 Py_INCREF(Py_None);
9721 _resultobj = Py_None;
9722 }
c95e68d8
RD
9723 return _resultobj;
9724}
9725
9df61a29
RD
9726static void *SwigwxPaletteTowxGDIObject(void *ptr) {
9727 wxPalette *src;
9728 wxGDIObject *dest;
9729 src = (wxPalette *) ptr;
9730 dest = (wxGDIObject *) src;
9731 return (void *) dest;
9732}
9733
9734static void *SwigwxPaletteTowxObject(void *ptr) {
9735 wxPalette *src;
9736 wxObject *dest;
9737 src = (wxPalette *) ptr;
9738 dest = (wxObject *) src;
9739 return (void *) dest;
9740}
9741
105e45b9 9742#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9743static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9744 PyObject * _resultobj;
9745 wxPalette * _result;
9746 int _arg0;
9747 byte * _arg1;
9748 byte * _arg2;
9749 byte * _arg3;
9750 PyObject * _obj1 = 0;
9751 PyObject * _obj2 = 0;
9752 PyObject * _obj3 = 0;
e02c03a4 9753 char *_kwnames[] = { "choices","choices","choices", NULL };
105e45b9
RD
9754 char _ptemp[128];
9755
9756 self = self;
107e4716 9757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
105e45b9
RD
9758 return NULL;
9759{
9760 _arg1 = byte_LIST_helper(_obj1);
9761 if (_arg1 == NULL) {
9762 return NULL;
9763 }
9764}
9765{
9766 _arg2 = byte_LIST_helper(_obj2);
9767 if (_arg2 == NULL) {
9768 return NULL;
9769 }
9770}
9771 if (_obj3)
9772{
9773 _arg3 = byte_LIST_helper(_obj3);
9774 if (_arg3 == NULL) {
9775 return NULL;
9776 }
9777}
9778{
ab9bc19b
RD
9779 if (_obj1) {
9780 _arg0 = PyList_Size(_obj1);
9781 }
9782 else {
9783 _arg0 = 0;
9784 }
105e45b9 9785}
ab9bc19b 9786{
474c48f9 9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9788 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9789
474c48f9 9790 wxPyEndAllowThreads(__tstate);
4dfaa61e 9791 if (PyErr_Occurred()) return NULL;
2d091820
RD
9792} if (_result) {
9793 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
9794 _resultobj = Py_BuildValue("s",_ptemp);
9795 } else {
9796 Py_INCREF(Py_None);
9797 _resultobj = Py_None;
9798 }
105e45b9
RD
9799{
9800 delete [] _arg1;
9801}
9802{
9803 delete [] _arg2;
9804}
9805{
9806 delete [] _arg3;
9807}
9808 return _resultobj;
9809}
9810
9811#define delete_wxPalette(_swigobj) (delete _swigobj)
107e4716 9812static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9813 PyObject * _resultobj;
9814 wxPalette * _arg0;
2d091820 9815 PyObject * _argo0 = 0;
107e4716 9816 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9817
9818 self = self;
107e4716 9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
105e45b9 9820 return NULL;
2d091820
RD
9821 if (_argo0) {
9822 if (_argo0 == Py_None) { _arg0 = NULL; }
9823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
9825 return NULL;
9826 }
9827 }
ab9bc19b 9828{
474c48f9 9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9830 delete_wxPalette(_arg0);
ab9bc19b 9831
474c48f9 9832 wxPyEndAllowThreads(__tstate);
4dfaa61e 9833 if (PyErr_Occurred()) return NULL;
ab9bc19b 9834} Py_INCREF(Py_None);
105e45b9
RD
9835 _resultobj = Py_None;
9836 return _resultobj;
9837}
9838
9839#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
107e4716 9840static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9841 PyObject * _resultobj;
9842 int _result;
9843 wxPalette * _arg0;
9844 byte _arg1;
9845 byte _arg2;
9846 byte _arg3;
2d091820 9847 PyObject * _argo0 = 0;
107e4716 9848 char *_kwnames[] = { "self","red","green","blue", NULL };
105e45b9
RD
9849
9850 self = self;
107e4716 9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
105e45b9 9852 return NULL;
2d091820
RD
9853 if (_argo0) {
9854 if (_argo0 == Py_None) { _arg0 = NULL; }
9855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
9857 return NULL;
9858 }
9859 }
ab9bc19b 9860{
474c48f9 9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9862 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9863
474c48f9 9864 wxPyEndAllowThreads(__tstate);
4dfaa61e 9865 if (PyErr_Occurred()) return NULL;
ab9bc19b 9866} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9867 return _resultobj;
9868}
9869
9870#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9871static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9872 PyObject * _resultobj;
9873 bool _result;
9874 wxPalette * _arg0;
9875 int _arg1;
9876 byte * _arg2;
ef2060fa 9877 int temp;
105e45b9 9878 byte * _arg3;
ef2060fa 9879 int temp0;
105e45b9 9880 byte * _arg4;
ef2060fa 9881 int temp1;
2d091820 9882 PyObject * _argo0 = 0;
ef2060fa 9883 char *_kwnames[] = { "self","pixel", NULL };
105e45b9
RD
9884
9885 self = self;
ef2060fa
RD
9886{
9887 _arg2 = (byte*)&temp;
9888}
9889{
9890 _arg3 = (byte*)&temp0;
9891}
9892{
9893 _arg4 = (byte*)&temp1;
9894}
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
105e45b9 9896 return NULL;
2d091820
RD
9897 if (_argo0) {
9898 if (_argo0 == Py_None) { _arg0 = NULL; }
9899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
9901 return NULL;
9902 }
9903 }
ab9bc19b 9904{
474c48f9 9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9906 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
ab9bc19b 9907
474c48f9 9908 wxPyEndAllowThreads(__tstate);
4dfaa61e 9909 if (PyErr_Occurred()) return NULL;
ab9bc19b 9910} _resultobj = Py_BuildValue("i",_result);
ef2060fa
RD
9911{
9912 PyObject *o;
9913 o = PyInt_FromLong((long) (*_arg2));
9914 _resultobj = t_output_helper(_resultobj, o);
9915}
9916{
9917 PyObject *o;
9918 o = PyInt_FromLong((long) (*_arg3));
9919 _resultobj = t_output_helper(_resultobj, o);
9920}
9921{
9922 PyObject *o;
9923 o = PyInt_FromLong((long) (*_arg4));
9924 _resultobj = t_output_helper(_resultobj, o);
9925}
105e45b9
RD
9926 return _resultobj;
9927}
9928
9929#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
107e4716 9930static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
105e45b9
RD
9931 PyObject * _resultobj;
9932 bool _result;
9933 wxPalette * _arg0;
2d091820 9934 PyObject * _argo0 = 0;
107e4716 9935 char *_kwnames[] = { "self", NULL };
105e45b9
RD
9936
9937 self = self;
107e4716 9938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
105e45b9 9939 return NULL;
2d091820
RD
9940 if (_argo0) {
9941 if (_argo0 == Py_None) { _arg0 = NULL; }
9942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
105e45b9
RD
9943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9944 return NULL;
9945 }
9946 }
ab9bc19b 9947{
474c48f9 9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9949 _result = (bool )wxPalette_Ok(_arg0);
ab9bc19b 9950
474c48f9 9951 wxPyEndAllowThreads(__tstate);
4dfaa61e 9952 if (PyErr_Occurred()) return NULL;
ab9bc19b 9953} _resultobj = Py_BuildValue("i",_result);
105e45b9
RD
9954 return _resultobj;
9955}
9956
9df61a29
RD
9957static void *SwigwxImageListTowxObject(void *ptr) {
9958 wxImageList *src;
9959 wxObject *dest;
9960 src = (wxImageList *) ptr;
9961 dest = (wxObject *) src;
9962 return (void *) dest;
9963}
9964
21f8d7ea 9965#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 9966static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9967 PyObject * _resultobj;
9968 wxImageList * _result;
9969 int _arg0;
9970 int _arg1;
7ff49f0c 9971 int _arg2 = (int ) TRUE;
2d091820 9972 int _arg3 = (int ) 1;
107e4716 9973 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
21f8d7ea
RD
9974 char _ptemp[128];
9975
9976 self = self;
56f5d962 9977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
21f8d7ea 9978 return NULL;
ab9bc19b 9979{
474c48f9 9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 9981 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 9982
474c48f9 9983 wxPyEndAllowThreads(__tstate);
4dfaa61e 9984 if (PyErr_Occurred()) return NULL;
2d091820
RD
9985} if (_result) {
9986 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
9987 _resultobj = Py_BuildValue("s",_ptemp);
9988 } else {
9989 Py_INCREF(Py_None);
9990 _resultobj = Py_None;
9991 }
21f8d7ea
RD
9992 return _resultobj;
9993}
9994
9995#define delete_wxImageList(_swigobj) (delete _swigobj)
107e4716 9996static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
9997 PyObject * _resultobj;
9998 wxImageList * _arg0;
2d091820 9999 PyObject * _argo0 = 0;
107e4716 10000 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10001
10002 self = self;
107e4716 10003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
21f8d7ea 10004 return NULL;
2d091820
RD
10005 if (_argo0) {
10006 if (_argo0 == Py_None) { _arg0 = NULL; }
10007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10009 return NULL;
10010 }
10011 }
ab9bc19b 10012{
474c48f9 10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10014 delete_wxImageList(_arg0);
ab9bc19b 10015
474c48f9 10016 wxPyEndAllowThreads(__tstate);
4dfaa61e 10017 if (PyErr_Occurred()) return NULL;
ab9bc19b 10018} Py_INCREF(Py_None);
21f8d7ea
RD
10019 _resultobj = Py_None;
10020 return _resultobj;
10021}
10022
f6bcfd97 10023#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
107e4716 10024static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10025 PyObject * _resultobj;
10026 int _result;
10027 wxImageList * _arg0;
10028 wxBitmap * _arg1;
f6bcfd97 10029 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
2d091820
RD
10030 PyObject * _argo0 = 0;
10031 PyObject * _argo1 = 0;
f6bcfd97
BP
10032 PyObject * _argo2 = 0;
10033 char *_kwnames[] = { "self","bitmap","mask", NULL };
21f8d7ea
RD
10034
10035 self = self;
f6bcfd97 10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
21f8d7ea 10037 return NULL;
2d091820
RD
10038 if (_argo0) {
10039 if (_argo0 == Py_None) { _arg0 = NULL; }
10040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10042 return NULL;
10043 }
10044 }
2d091820
RD
10045 if (_argo1) {
10046 if (_argo1 == Py_None) { _arg1 = NULL; }
10047 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
21f8d7ea
RD
10048 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10049 return NULL;
10050 }
10051 }
f6bcfd97
BP
10052 if (_argo2) {
10053 if (_argo2 == Py_None) { _arg2 = NULL; }
10054 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10055 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10056 return NULL;
10057 }
10058 }
10059{
474c48f9 10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10061 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
f6bcfd97 10062
474c48f9 10063 wxPyEndAllowThreads(__tstate);
4dfaa61e 10064 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10065} _resultobj = Py_BuildValue("i",_result);
10066 return _resultobj;
10067}
10068
10069#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10070static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10071 PyObject * _resultobj;
10072 int _result;
10073 wxImageList * _arg0;
10074 wxBitmap * _arg1;
10075 wxColour * _arg2;
10076 PyObject * _argo0 = 0;
10077 PyObject * _argo1 = 0;
10078 wxColour temp;
10079 PyObject * _obj2 = 0;
10080 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10081
10082 self = self;
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10084 return NULL;
10085 if (_argo0) {
10086 if (_argo0 == Py_None) { _arg0 = NULL; }
10087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10089 return NULL;
10090 }
10091 }
10092 if (_argo1) {
10093 if (_argo1 == Py_None) { _arg1 = NULL; }
10094 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10095 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10096 return NULL;
10097 }
10098 }
10099{
10100 _arg2 = &temp;
10101 if (! wxColour_helper(_obj2, &_arg2))
10102 return NULL;
10103}
ab9bc19b 10104{
474c48f9 10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10106 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
f6bcfd97 10107
474c48f9 10108 wxPyEndAllowThreads(__tstate);
4dfaa61e 10109 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10110} _resultobj = Py_BuildValue("i",_result);
10111 return _resultobj;
10112}
10113
10114#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10115static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10116 PyObject * _resultobj;
10117 int _result;
10118 wxImageList * _arg0;
10119 wxIcon * _arg1;
10120 PyObject * _argo0 = 0;
10121 PyObject * _argo1 = 0;
10122 char *_kwnames[] = { "self","icon", NULL };
10123
10124 self = self;
10125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10126 return NULL;
10127 if (_argo0) {
10128 if (_argo0 == Py_None) { _arg0 = NULL; }
10129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10131 return NULL;
10132 }
10133 }
10134 if (_argo1) {
10135 if (_argo1 == Py_None) { _arg1 = NULL; }
10136 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10137 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10138 return NULL;
10139 }
10140 }
10141{
474c48f9 10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10143 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
ab9bc19b 10144
474c48f9 10145 wxPyEndAllowThreads(__tstate);
4dfaa61e 10146 if (PyErr_Occurred()) return NULL;
ab9bc19b 10147} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10148 return _resultobj;
10149}
10150
10151#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
107e4716 10152static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10153 PyObject * _resultobj;
10154 bool _result;
10155 wxImageList * _arg0;
10156 int _arg1;
10157 wxBitmap * _arg2;
2d091820
RD
10158 PyObject * _argo0 = 0;
10159 PyObject * _argo2 = 0;
107e4716 10160 char *_kwnames[] = { "self","index","bitmap", NULL };
21f8d7ea
RD
10161
10162 self = self;
107e4716 10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
21f8d7ea 10164 return NULL;
2d091820
RD
10165 if (_argo0) {
10166 if (_argo0 == Py_None) { _arg0 = NULL; }
10167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10169 return NULL;
10170 }
10171 }
2d091820
RD
10172 if (_argo2) {
10173 if (_argo2 == Py_None) { _arg2 = NULL; }
10174 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
21f8d7ea
RD
10175 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10176 return NULL;
10177 }
10178 }
ab9bc19b 10179{
474c48f9 10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10181 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
ab9bc19b 10182
474c48f9 10183 wxPyEndAllowThreads(__tstate);
4dfaa61e 10184 if (PyErr_Occurred()) return NULL;
ab9bc19b 10185} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10186 return _resultobj;
10187}
10188
10189#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
107e4716 10190static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10191 PyObject * _resultobj;
10192 bool _result;
10193 wxImageList * _arg0;
10194 int _arg1;
10195 wxDC * _arg2;
10196 int _arg3;
10197 int _arg4;
2d091820
RD
10198 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10199 bool _arg6 = (bool ) FALSE;
10200 PyObject * _argo0 = 0;
10201 PyObject * _argo2 = 0;
10202 int tempbool6 = (int) FALSE;
107e4716 10203 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
21f8d7ea
RD
10204
10205 self = self;
107e4716 10206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
21f8d7ea 10207 return NULL;
2d091820
RD
10208 if (_argo0) {
10209 if (_argo0 == Py_None) { _arg0 = NULL; }
10210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10212 return NULL;
10213 }
10214 }
2d091820
RD
10215 if (_argo2) {
10216 if (_argo2 == Py_None) { _arg2 = NULL; }
10217 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
21f8d7ea
RD
10218 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10219 return NULL;
10220 }
10221 }
10222 _arg6 = (bool ) tempbool6;
ab9bc19b 10223{
474c48f9 10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10225 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
ab9bc19b 10226
474c48f9 10227 wxPyEndAllowThreads(__tstate);
4dfaa61e 10228 if (PyErr_Occurred()) return NULL;
ab9bc19b 10229} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10230 return _resultobj;
10231}
10232
10233#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
107e4716 10234static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10235 PyObject * _resultobj;
10236 int _result;
10237 wxImageList * _arg0;
2d091820 10238 PyObject * _argo0 = 0;
107e4716 10239 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10240
10241 self = self;
107e4716 10242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
21f8d7ea 10243 return NULL;
2d091820
RD
10244 if (_argo0) {
10245 if (_argo0 == Py_None) { _arg0 = NULL; }
10246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10248 return NULL;
10249 }
10250 }
ab9bc19b 10251{
474c48f9 10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10253 _result = (int )wxImageList_GetImageCount(_arg0);
ab9bc19b 10254
474c48f9 10255 wxPyEndAllowThreads(__tstate);
4dfaa61e 10256 if (PyErr_Occurred()) return NULL;
ab9bc19b 10257} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10258 return _resultobj;
10259}
10260
10261#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
107e4716 10262static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10263 PyObject * _resultobj;
10264 bool _result;
10265 wxImageList * _arg0;
10266 int _arg1;
2d091820 10267 PyObject * _argo0 = 0;
107e4716 10268 char *_kwnames[] = { "self","index", NULL };
21f8d7ea
RD
10269
10270 self = self;
107e4716 10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
21f8d7ea 10272 return NULL;
2d091820
RD
10273 if (_argo0) {
10274 if (_argo0 == Py_None) { _arg0 = NULL; }
10275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10277 return NULL;
10278 }
10279 }
ab9bc19b 10280{
474c48f9 10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10282 _result = (bool )wxImageList_Remove(_arg0,_arg1);
ab9bc19b 10283
474c48f9 10284 wxPyEndAllowThreads(__tstate);
4dfaa61e 10285 if (PyErr_Occurred()) return NULL;
ab9bc19b 10286} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10287 return _resultobj;
10288}
10289
10290#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
107e4716 10291static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
10292 PyObject * _resultobj;
10293 bool _result;
10294 wxImageList * _arg0;
2d091820 10295 PyObject * _argo0 = 0;
107e4716 10296 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
10297
10298 self = self;
107e4716 10299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
21f8d7ea 10300 return NULL;
2d091820
RD
10301 if (_argo0) {
10302 if (_argo0 == Py_None) { _arg0 = NULL; }
10303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
21f8d7ea
RD
10304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
10305 return NULL;
10306 }
10307 }
ab9bc19b 10308{
474c48f9 10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10310 _result = (bool )wxImageList_RemoveAll(_arg0);
ab9bc19b 10311
474c48f9 10312 wxPyEndAllowThreads(__tstate);
4dfaa61e 10313 if (PyErr_Occurred()) return NULL;
ab9bc19b 10314} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
10315 return _resultobj;
10316}
10317
f6bcfd97
BP
10318#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
10319static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10320 PyObject * _resultobj;
10321 wxImageList * _arg0;
10322 int _arg1;
10323 int * _arg2;
10324 int temp;
10325 int * _arg3;
10326 int temp0;
10327 PyObject * _argo0 = 0;
10328 char *_kwnames[] = { "self","index", NULL };
10329
10330 self = self;
10331{
10332 _arg2 = &temp;
10333}
10334{
10335 _arg3 = &temp0;
10336}
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
10338 return NULL;
10339 if (_argo0) {
10340 if (_argo0 == Py_None) { _arg0 = NULL; }
10341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
10343 return NULL;
10344 }
10345 }
10346{
474c48f9 10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10348 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
f6bcfd97 10349
474c48f9 10350 wxPyEndAllowThreads(__tstate);
4dfaa61e 10351 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
10352} Py_INCREF(Py_None);
10353 _resultobj = Py_None;
10354{
10355 PyObject *o;
10356 o = PyInt_FromLong((long) (*_arg2));
10357 _resultobj = t_output_helper(_resultobj, o);
10358}
10359{
10360 PyObject *o;
10361 o = PyInt_FromLong((long) (*_arg3));
10362 _resultobj = t_output_helper(_resultobj, o);
10363}
10364 return _resultobj;
10365}
10366
9df61a29
RD
10367static void *SwigwxRegionTowxGDIObject(void *ptr) {
10368 wxRegion *src;
10369 wxGDIObject *dest;
10370 src = (wxRegion *) ptr;
10371 dest = (wxGDIObject *) src;
10372 return (void *) dest;
10373}
10374
10375static void *SwigwxRegionTowxObject(void *ptr) {
10376 wxRegion *src;
10377 wxObject *dest;
10378 src = (wxRegion *) ptr;
10379 dest = (wxObject *) src;
10380 return (void *) dest;
10381}
10382
10383#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10384static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject * _resultobj;
10386 wxRegion * _result;
10387 long _arg0 = (long ) 0;
10388 long _arg1 = (long ) 0;
10389 long _arg2 = (long ) 0;
10390 long _arg3 = (long ) 0;
10391 char *_kwnames[] = { "x","y","width","height", NULL };
10392 char _ptemp[128];
10393
10394 self = self;
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10396 return NULL;
10397{
474c48f9 10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10399 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
9df61a29 10400
474c48f9 10401 wxPyEndAllowThreads(__tstate);
4dfaa61e 10402 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10403} if (_result) {
10404 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
10405 _resultobj = Py_BuildValue("s",_ptemp);
10406 } else {
10407 Py_INCREF(Py_None);
10408 _resultobj = Py_None;
10409 }
10410 return _resultobj;
10411}
10412
10413#define delete_wxRegion(_swigobj) (delete _swigobj)
10414static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10415 PyObject * _resultobj;
10416 wxRegion * _arg0;
10417 PyObject * _argo0 = 0;
10418 char *_kwnames[] = { "self", NULL };
10419
10420 self = self;
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
10422 return NULL;
10423 if (_argo0) {
10424 if (_argo0 == Py_None) { _arg0 = NULL; }
10425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
10427 return NULL;
10428 }
10429 }
10430{
474c48f9 10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10432 delete_wxRegion(_arg0);
9df61a29 10433
474c48f9 10434 wxPyEndAllowThreads(__tstate);
4dfaa61e 10435 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10436} Py_INCREF(Py_None);
10437 _resultobj = Py_None;
10438 return _resultobj;
10439}
10440
10441#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
10442static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject * _resultobj;
10444 wxRegion * _arg0;
10445 PyObject * _argo0 = 0;
10446 char *_kwnames[] = { "self", NULL };
10447
10448 self = self;
10449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
10450 return NULL;
10451 if (_argo0) {
10452 if (_argo0 == Py_None) { _arg0 = NULL; }
10453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
10455 return NULL;
10456 }
10457 }
10458{
474c48f9 10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10460 wxRegion_Clear(_arg0);
9df61a29 10461
474c48f9 10462 wxPyEndAllowThreads(__tstate);
4dfaa61e 10463 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10464} Py_INCREF(Py_None);
10465 _resultobj = Py_None;
10466 return _resultobj;
10467}
10468
8cb49012
RD
10469#define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
10470static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject * _resultobj;
10472 bool _result;
10473 wxRegion * _arg0;
10474 wxCoord _arg1;
10475 wxCoord _arg2;
10476 PyObject * _argo0 = 0;
10477 char *_kwnames[] = { "self","x","y", NULL };
10478
10479 self = self;
10480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
10481 return NULL;
10482 if (_argo0) {
10483 if (_argo0 == Py_None) { _arg0 = NULL; }
10484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
10486 return NULL;
10487 }
10488 }
10489{
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10491 _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
8cb49012
RD
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) return NULL;
10495} _resultobj = Py_BuildValue("i",_result);
10496 return _resultobj;
10497}
10498
9df61a29
RD
10499#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
10500static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
10501 PyObject * _resultobj;
10502 wxRegionContain _result;
10503 wxRegion * _arg0;
10504 long _arg1;
10505 long _arg2;
10506 PyObject * _argo0 = 0;
10507 char *_kwnames[] = { "self","x","y", NULL };
10508
10509 self = self;
10510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
10511 return NULL;
10512 if (_argo0) {
10513 if (_argo0 == Py_None) { _arg0 = NULL; }
10514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
10516 return NULL;
10517 }
10518 }
10519{
474c48f9 10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10521 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
9df61a29 10522
474c48f9 10523 wxPyEndAllowThreads(__tstate);
4dfaa61e 10524 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10525} _resultobj = Py_BuildValue("i",_result);
10526 return _resultobj;
10527}
10528
10529#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10530static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10531 PyObject * _resultobj;
10532 wxRegionContain _result;
10533 wxRegion * _arg0;
10534 wxPoint * _arg1;
10535 PyObject * _argo0 = 0;
10536 wxPoint temp;
10537 PyObject * _obj1 = 0;
10538 char *_kwnames[] = { "self","pt", NULL };
10539
10540 self = self;
10541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
10542 return NULL;
10543 if (_argo0) {
10544 if (_argo0 == Py_None) { _arg0 = NULL; }
10545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
10547 return NULL;
10548 }
10549 }
10550{
10551 _arg1 = &temp;
10552 if (! wxPoint_helper(_obj1, &_arg1))
10553 return NULL;
10554}
10555{
474c48f9 10556 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10557 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
9df61a29 10558
474c48f9 10559 wxPyEndAllowThreads(__tstate);
4dfaa61e 10560 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10561} _resultobj = Py_BuildValue("i",_result);
10562 return _resultobj;
10563}
10564
10565#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
10566static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10567 PyObject * _resultobj;
10568 wxRegionContain _result;
10569 wxRegion * _arg0;
10570 wxRect * _arg1;
10571 PyObject * _argo0 = 0;
10572 wxRect temp;
10573 PyObject * _obj1 = 0;
10574 char *_kwnames[] = { "self","rect", NULL };
10575
10576 self = self;
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
10578 return NULL;
10579 if (_argo0) {
10580 if (_argo0 == Py_None) { _arg0 = NULL; }
10581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
10583 return NULL;
10584 }
10585 }
10586{
10587 _arg1 = &temp;
10588 if (! wxRect_helper(_obj1, &_arg1))
10589 return NULL;
10590}
10591{
474c48f9 10592 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10593 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9df61a29 10594
474c48f9 10595 wxPyEndAllowThreads(__tstate);
4dfaa61e 10596 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10597} _resultobj = Py_BuildValue("i",_result);
10598 return _resultobj;
10599}
10600
10601#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10602static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
10603 PyObject * _resultobj;
10604 wxRegionContain _result;
10605 wxRegion * _arg0;
10606 long _arg1;
10607 long _arg2;
10608 long _arg3;
10609 long _arg4;
10610 PyObject * _argo0 = 0;
10611 char *_kwnames[] = { "self","x","y","w","h", NULL };
10612
10613 self = self;
10614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10615 return NULL;
10616 if (_argo0) {
10617 if (_argo0 == Py_None) { _arg0 = NULL; }
10618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
10620 return NULL;
10621 }
10622 }
10623{
474c48f9 10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10625 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10626
474c48f9 10627 wxPyEndAllowThreads(__tstate);
4dfaa61e 10628 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10629} _resultobj = Py_BuildValue("i",_result);
10630 return _resultobj;
10631}
10632
10633#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
10634static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject * _resultobj;
10636 wxRect * _result;
10637 wxRegion * _arg0;
10638 PyObject * _argo0 = 0;
10639 char *_kwnames[] = { "self", NULL };
10640 char _ptemp[128];
10641
10642 self = self;
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
10644 return NULL;
10645 if (_argo0) {
10646 if (_argo0 == Py_None) { _arg0 = NULL; }
10647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
10649 return NULL;
10650 }
10651 }
10652{
474c48f9 10653 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10654 _result = new wxRect (wxRegion_GetBox(_arg0));
9df61a29 10655
474c48f9 10656 wxPyEndAllowThreads(__tstate);
4dfaa61e 10657 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10658} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10659 _resultobj = Py_BuildValue("s",_ptemp);
10660 return _resultobj;
10661}
10662
10663#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10664static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject * _resultobj;
10666 bool _result;
10667 wxRegion * _arg0;
10668 long _arg1;
10669 long _arg2;
10670 long _arg3;
10671 long _arg4;
10672 PyObject * _argo0 = 0;
10673 char *_kwnames[] = { "self","x","y","width","height", NULL };
10674
10675 self = self;
10676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10677 return NULL;
10678 if (_argo0) {
10679 if (_argo0 == Py_None) { _arg0 = NULL; }
10680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
10682 return NULL;
10683 }
10684 }
10685{
474c48f9 10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10687 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10688
474c48f9 10689 wxPyEndAllowThreads(__tstate);
4dfaa61e 10690 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10691} _resultobj = Py_BuildValue("i",_result);
10692 return _resultobj;
10693}
10694
10695#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10696static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10697 PyObject * _resultobj;
10698 bool _result;
10699 wxRegion * _arg0;
10700 wxRect * _arg1;
10701 PyObject * _argo0 = 0;
10702 wxRect temp;
10703 PyObject * _obj1 = 0;
10704 char *_kwnames[] = { "self","rect", NULL };
10705
10706 self = self;
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
10708 return NULL;
10709 if (_argo0) {
10710 if (_argo0 == Py_None) { _arg0 = NULL; }
10711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
10713 return NULL;
10714 }
10715 }
10716{
10717 _arg1 = &temp;
10718 if (! wxRect_helper(_obj1, &_arg1))
10719 return NULL;
10720}
10721{
474c48f9 10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10723 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9df61a29 10724
474c48f9 10725 wxPyEndAllowThreads(__tstate);
4dfaa61e 10726 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10727} _resultobj = Py_BuildValue("i",_result);
10728 return _resultobj;
10729}
10730
10731#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
10732static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10733 PyObject * _resultobj;
10734 bool _result;
10735 wxRegion * _arg0;
10736 wxRegion * _arg1;
10737 PyObject * _argo0 = 0;
10738 PyObject * _argo1 = 0;
10739 char *_kwnames[] = { "self","region", NULL };
10740
10741 self = self;
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
10743 return NULL;
10744 if (_argo0) {
10745 if (_argo0 == Py_None) { _arg0 = NULL; }
10746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10748 return NULL;
10749 }
10750 }
10751 if (_argo1) {
10752 if (_argo1 == Py_None) { _arg1 = NULL; }
10753 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10754 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
10755 return NULL;
10756 }
10757 }
10758{
474c48f9 10759 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10760 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9df61a29 10761
474c48f9 10762 wxPyEndAllowThreads(__tstate);
4dfaa61e 10763 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10764} _resultobj = Py_BuildValue("i",_result);
10765 return _resultobj;
10766}
10767
10768#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
10769static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject * _resultobj;
10771 bool _result;
10772 wxRegion * _arg0;
10773 PyObject * _argo0 = 0;
10774 char *_kwnames[] = { "self", NULL };
10775
10776 self = self;
10777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
10778 return NULL;
10779 if (_argo0) {
10780 if (_argo0 == Py_None) { _arg0 = NULL; }
10781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
10783 return NULL;
10784 }
10785 }
10786{
474c48f9 10787 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10788 _result = (bool )wxRegion_IsEmpty(_arg0);
9df61a29 10789
474c48f9 10790 wxPyEndAllowThreads(__tstate);
4dfaa61e 10791 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10792} _resultobj = Py_BuildValue("i",_result);
10793 return _resultobj;
10794}
10795
10796#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10797static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject * _resultobj;
10799 bool _result;
10800 wxRegion * _arg0;
10801 long _arg1;
10802 long _arg2;
10803 long _arg3;
10804 long _arg4;
10805 PyObject * _argo0 = 0;
10806 char *_kwnames[] = { "self","x","y","width","height", NULL };
10807
10808 self = self;
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10810 return NULL;
10811 if (_argo0) {
10812 if (_argo0 == Py_None) { _arg0 = NULL; }
10813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
10815 return NULL;
10816 }
10817 }
10818{
474c48f9 10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10820 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10821
474c48f9 10822 wxPyEndAllowThreads(__tstate);
4dfaa61e 10823 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10824} _resultobj = Py_BuildValue("i",_result);
10825 return _resultobj;
10826}
10827
10828#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10829static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10830 PyObject * _resultobj;
10831 bool _result;
10832 wxRegion * _arg0;
10833 wxRect * _arg1;
10834 PyObject * _argo0 = 0;
10835 wxRect temp;
10836 PyObject * _obj1 = 0;
10837 char *_kwnames[] = { "self","rect", NULL };
10838
10839 self = self;
10840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
10841 return NULL;
10842 if (_argo0) {
10843 if (_argo0 == Py_None) { _arg0 = NULL; }
10844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
10846 return NULL;
10847 }
10848 }
10849{
10850 _arg1 = &temp;
10851 if (! wxRect_helper(_obj1, &_arg1))
10852 return NULL;
10853}
10854{
474c48f9 10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10856 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9df61a29 10857
474c48f9 10858 wxPyEndAllowThreads(__tstate);
4dfaa61e 10859 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10860} _resultobj = Py_BuildValue("i",_result);
10861 return _resultobj;
10862}
10863
10864#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
10865static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10866 PyObject * _resultobj;
10867 bool _result;
10868 wxRegion * _arg0;
10869 wxRegion * _arg1;
10870 PyObject * _argo0 = 0;
10871 PyObject * _argo1 = 0;
10872 char *_kwnames[] = { "self","region", NULL };
10873
10874 self = self;
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
10876 return NULL;
10877 if (_argo0) {
10878 if (_argo0 == Py_None) { _arg0 = NULL; }
10879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10881 return NULL;
10882 }
10883 }
10884 if (_argo1) {
10885 if (_argo1 == Py_None) { _arg1 = NULL; }
10886 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10887 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
10888 return NULL;
10889 }
10890 }
10891{
474c48f9 10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10893 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9df61a29 10894
474c48f9 10895 wxPyEndAllowThreads(__tstate);
4dfaa61e 10896 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10897} _resultobj = Py_BuildValue("i",_result);
10898 return _resultobj;
10899}
10900
10901#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10902static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
10903 PyObject * _resultobj;
10904 bool _result;
10905 wxRegion * _arg0;
10906 long _arg1;
10907 long _arg2;
10908 long _arg3;
10909 long _arg4;
10910 PyObject * _argo0 = 0;
10911 char *_kwnames[] = { "self","x","y","width","height", NULL };
10912
10913 self = self;
10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10915 return NULL;
10916 if (_argo0) {
10917 if (_argo0 == Py_None) { _arg0 = NULL; }
10918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
10920 return NULL;
10921 }
10922 }
10923{
474c48f9 10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10925 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 10926
474c48f9 10927 wxPyEndAllowThreads(__tstate);
4dfaa61e 10928 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10929} _resultobj = Py_BuildValue("i",_result);
10930 return _resultobj;
10931}
10932
10933#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10934static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10935 PyObject * _resultobj;
10936 bool _result;
10937 wxRegion * _arg0;
10938 wxRect * _arg1;
10939 PyObject * _argo0 = 0;
10940 wxRect temp;
10941 PyObject * _obj1 = 0;
10942 char *_kwnames[] = { "self","rect", NULL };
10943
10944 self = self;
10945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
10946 return NULL;
10947 if (_argo0) {
10948 if (_argo0 == Py_None) { _arg0 = NULL; }
10949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
10951 return NULL;
10952 }
10953 }
10954{
10955 _arg1 = &temp;
10956 if (! wxRect_helper(_obj1, &_arg1))
10957 return NULL;
10958}
10959{
474c48f9 10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10961 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9df61a29 10962
474c48f9 10963 wxPyEndAllowThreads(__tstate);
4dfaa61e 10964 if (PyErr_Occurred()) return NULL;
9df61a29
RD
10965} _resultobj = Py_BuildValue("i",_result);
10966 return _resultobj;
10967}
10968
10969#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
10970static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject * _resultobj;
10972 bool _result;
10973 wxRegion * _arg0;
10974 wxRegion * _arg1;
10975 PyObject * _argo0 = 0;
10976 PyObject * _argo1 = 0;
10977 char *_kwnames[] = { "self","region", NULL };
10978
10979 self = self;
10980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
10981 return NULL;
10982 if (_argo0) {
10983 if (_argo0 == Py_None) { _arg0 = NULL; }
10984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10986 return NULL;
10987 }
10988 }
10989 if (_argo1) {
10990 if (_argo1 == Py_None) { _arg1 = NULL; }
10991 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10992 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10993 return NULL;
10994 }
10995 }
10996{
474c48f9 10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 10998 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
9df61a29 10999
474c48f9 11000 wxPyEndAllowThreads(__tstate);
4dfaa61e 11001 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11002} _resultobj = Py_BuildValue("i",_result);
11003 return _resultobj;
11004}
11005
11006#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11007static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11008 PyObject * _resultobj;
11009 bool _result;
11010 wxRegion * _arg0;
11011 long _arg1;
11012 long _arg2;
11013 long _arg3;
11014 long _arg4;
11015 PyObject * _argo0 = 0;
11016 char *_kwnames[] = { "self","x","y","width","height", NULL };
11017
11018 self = self;
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11020 return NULL;
11021 if (_argo0) {
11022 if (_argo0 == Py_None) { _arg0 = NULL; }
11023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11025 return NULL;
11026 }
11027 }
11028{
474c48f9 11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11030 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
9df61a29 11031
474c48f9 11032 wxPyEndAllowThreads(__tstate);
4dfaa61e 11033 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11034} _resultobj = Py_BuildValue("i",_result);
11035 return _resultobj;
11036}
11037
11038#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11039static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11040 PyObject * _resultobj;
11041 bool _result;
11042 wxRegion * _arg0;
11043 wxRect * _arg1;
11044 PyObject * _argo0 = 0;
11045 wxRect temp;
11046 PyObject * _obj1 = 0;
11047 char *_kwnames[] = { "self","rect", NULL };
11048
11049 self = self;
11050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11051 return NULL;
11052 if (_argo0) {
11053 if (_argo0 == Py_None) { _arg0 = NULL; }
11054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11056 return NULL;
11057 }
11058 }
11059{
11060 _arg1 = &temp;
11061 if (! wxRect_helper(_obj1, &_arg1))
11062 return NULL;
11063}
11064{
474c48f9 11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11066 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
9df61a29 11067
474c48f9 11068 wxPyEndAllowThreads(__tstate);
4dfaa61e 11069 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11070} _resultobj = Py_BuildValue("i",_result);
11071 return _resultobj;
11072}
11073
11074#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11075static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11076 PyObject * _resultobj;
11077 bool _result;
11078 wxRegion * _arg0;
11079 wxRegion * _arg1;
11080 PyObject * _argo0 = 0;
11081 PyObject * _argo1 = 0;
11082 char *_kwnames[] = { "self","region", NULL };
11083
11084 self = self;
11085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11086 return NULL;
11087 if (_argo0) {
11088 if (_argo0 == Py_None) { _arg0 = NULL; }
11089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11091 return NULL;
11092 }
11093 }
11094 if (_argo1) {
11095 if (_argo1 == Py_None) { _arg1 = NULL; }
11096 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11097 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11098 return NULL;
11099 }
11100 }
11101{
474c48f9 11102 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11103 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
9df61a29 11104
474c48f9 11105 wxPyEndAllowThreads(__tstate);
4dfaa61e 11106 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11107} _resultobj = Py_BuildValue("i",_result);
11108 return _resultobj;
11109}
11110
11111static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11112 wxRegionIterator *src;
11113 wxObject *dest;
11114 src = (wxRegionIterator *) ptr;
11115 dest = (wxObject *) src;
11116 return (void *) dest;
11117}
11118
11119#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11120static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11121 PyObject * _resultobj;
11122 wxRegionIterator * _result;
11123 wxRegion * _arg0;
11124 PyObject * _argo0 = 0;
11125 char *_kwnames[] = { "region", NULL };
11126 char _ptemp[128];
11127
11128 self = self;
11129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11130 return NULL;
11131 if (_argo0) {
11132 if (_argo0 == Py_None) { _arg0 = NULL; }
11133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11135 return NULL;
11136 }
11137 }
11138{
474c48f9 11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11140 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
9df61a29 11141
474c48f9 11142 wxPyEndAllowThreads(__tstate);
4dfaa61e 11143 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11144} if (_result) {
11145 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11146 _resultobj = Py_BuildValue("s",_ptemp);
11147 } else {
11148 Py_INCREF(Py_None);
11149 _resultobj = Py_None;
11150 }
11151 return _resultobj;
11152}
11153
11154#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11155static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11156 PyObject * _resultobj;
11157 wxRegionIterator * _arg0;
11158 PyObject * _argo0 = 0;
11159 char *_kwnames[] = { "self", NULL };
11160
11161 self = self;
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11163 return NULL;
11164 if (_argo0) {
11165 if (_argo0 == Py_None) { _arg0 = NULL; }
11166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11168 return NULL;
11169 }
11170 }
11171{
474c48f9 11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11173 delete_wxRegionIterator(_arg0);
9df61a29 11174
474c48f9 11175 wxPyEndAllowThreads(__tstate);
4dfaa61e 11176 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11177} Py_INCREF(Py_None);
11178 _resultobj = Py_None;
11179 return _resultobj;
11180}
11181
11182#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11183static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11184 PyObject * _resultobj;
11185 long _result;
11186 wxRegionIterator * _arg0;
11187 PyObject * _argo0 = 0;
11188 char *_kwnames[] = { "self", NULL };
11189
11190 self = self;
11191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11192 return NULL;
11193 if (_argo0) {
11194 if (_argo0 == Py_None) { _arg0 = NULL; }
11195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11197 return NULL;
11198 }
11199 }
11200{
474c48f9 11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11202 _result = (long )wxRegionIterator_GetX(_arg0);
9df61a29 11203
474c48f9 11204 wxPyEndAllowThreads(__tstate);
4dfaa61e 11205 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11206} _resultobj = Py_BuildValue("l",_result);
11207 return _resultobj;
11208}
11209
11210#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11211static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11212 PyObject * _resultobj;
11213 long _result;
11214 wxRegionIterator * _arg0;
11215 PyObject * _argo0 = 0;
11216 char *_kwnames[] = { "self", NULL };
11217
11218 self = self;
11219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11220 return NULL;
11221 if (_argo0) {
11222 if (_argo0 == Py_None) { _arg0 = NULL; }
11223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11225 return NULL;
11226 }
11227 }
11228{
474c48f9 11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11230 _result = (long )wxRegionIterator_GetY(_arg0);
9df61a29 11231
474c48f9 11232 wxPyEndAllowThreads(__tstate);
4dfaa61e 11233 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11234} _resultobj = Py_BuildValue("l",_result);
11235 return _resultobj;
11236}
11237
11238#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11239static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11240 PyObject * _resultobj;
11241 long _result;
11242 wxRegionIterator * _arg0;
11243 PyObject * _argo0 = 0;
11244 char *_kwnames[] = { "self", NULL };
11245
11246 self = self;
11247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11248 return NULL;
11249 if (_argo0) {
11250 if (_argo0 == Py_None) { _arg0 = NULL; }
11251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11253 return NULL;
11254 }
11255 }
11256{
474c48f9 11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11258 _result = (long )wxRegionIterator_GetW(_arg0);
9df61a29 11259
474c48f9 11260 wxPyEndAllowThreads(__tstate);
4dfaa61e 11261 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11262} _resultobj = Py_BuildValue("l",_result);
11263 return _resultobj;
11264}
11265
11266#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11267static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11268 PyObject * _resultobj;
11269 long _result;
11270 wxRegionIterator * _arg0;
11271 PyObject * _argo0 = 0;
11272 char *_kwnames[] = { "self", NULL };
11273
11274 self = self;
11275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11276 return NULL;
11277 if (_argo0) {
11278 if (_argo0 == Py_None) { _arg0 = NULL; }
11279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11281 return NULL;
11282 }
11283 }
11284{
474c48f9 11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11286 _result = (long )wxRegionIterator_GetWidth(_arg0);
9df61a29 11287
474c48f9 11288 wxPyEndAllowThreads(__tstate);
4dfaa61e 11289 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11290} _resultobj = Py_BuildValue("l",_result);
11291 return _resultobj;
11292}
11293
11294#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11295static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11296 PyObject * _resultobj;
11297 long _result;
11298 wxRegionIterator * _arg0;
11299 PyObject * _argo0 = 0;
11300 char *_kwnames[] = { "self", NULL };
11301
11302 self = self;
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11304 return NULL;
11305 if (_argo0) {
11306 if (_argo0 == Py_None) { _arg0 = NULL; }
11307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11309 return NULL;
11310 }
11311 }
11312{
474c48f9 11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11314 _result = (long )wxRegionIterator_GetH(_arg0);
9df61a29 11315
474c48f9 11316 wxPyEndAllowThreads(__tstate);
4dfaa61e 11317 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11318} _resultobj = Py_BuildValue("l",_result);
11319 return _resultobj;
11320}
11321
11322#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
11323static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject * _resultobj;
11325 long _result;
11326 wxRegionIterator * _arg0;
11327 PyObject * _argo0 = 0;
11328 char *_kwnames[] = { "self", NULL };
11329
11330 self = self;
11331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
11332 return NULL;
11333 if (_argo0) {
11334 if (_argo0 == Py_None) { _arg0 = NULL; }
11335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
11337 return NULL;
11338 }
11339 }
11340{
474c48f9 11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11342 _result = (long )wxRegionIterator_GetHeight(_arg0);
9df61a29 11343
474c48f9 11344 wxPyEndAllowThreads(__tstate);
4dfaa61e 11345 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11346} _resultobj = Py_BuildValue("l",_result);
11347 return _resultobj;
11348}
11349
11350#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
11351static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11352 PyObject * _resultobj;
11353 wxRect * _result;
11354 wxRegionIterator * _arg0;
11355 PyObject * _argo0 = 0;
11356 char *_kwnames[] = { "self", NULL };
11357 char _ptemp[128];
11358
11359 self = self;
11360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
11361 return NULL;
11362 if (_argo0) {
11363 if (_argo0 == Py_None) { _arg0 = NULL; }
11364 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11365 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
11366 return NULL;
11367 }
11368 }
11369{
474c48f9 11370 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11371 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
9df61a29 11372
474c48f9 11373 wxPyEndAllowThreads(__tstate);
4dfaa61e 11374 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11375} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11376 _resultobj = Py_BuildValue("s",_ptemp);
11377 return _resultobj;
11378}
11379
11380#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
11381static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
11382 PyObject * _resultobj;
11383 bool _result;
11384 wxRegionIterator * _arg0;
11385 PyObject * _argo0 = 0;
11386 char *_kwnames[] = { "self", NULL };
11387
11388 self = self;
11389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
11390 return NULL;
11391 if (_argo0) {
11392 if (_argo0 == Py_None) { _arg0 = NULL; }
11393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
11395 return NULL;
11396 }
11397 }
11398{
474c48f9 11399 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11400 _result = (bool )wxRegionIterator_HaveRects(_arg0);
9df61a29 11401
474c48f9 11402 wxPyEndAllowThreads(__tstate);
4dfaa61e 11403 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11404} _resultobj = Py_BuildValue("i",_result);
11405 return _resultobj;
11406}
11407
11408#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
11409static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
11410 PyObject * _resultobj;
11411 wxRegionIterator * _arg0;
11412 PyObject * _argo0 = 0;
11413 char *_kwnames[] = { "self", NULL };
11414
11415 self = self;
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
11417 return NULL;
11418 if (_argo0) {
11419 if (_argo0 == Py_None) { _arg0 = NULL; }
11420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
11422 return NULL;
11423 }
11424 }
11425{
474c48f9 11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11427 wxRegionIterator_Reset(_arg0);
9df61a29 11428
474c48f9 11429 wxPyEndAllowThreads(__tstate);
4dfaa61e 11430 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11431} Py_INCREF(Py_None);
11432 _resultobj = Py_None;
11433 return _resultobj;
11434}
11435
11436static void wxRegionIterator_Next(wxRegionIterator *self) {
11437 (*self) ++;
11438 }
11439static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
11440 PyObject * _resultobj;
11441 wxRegionIterator * _arg0;
11442 PyObject * _argo0 = 0;
11443 char *_kwnames[] = { "self", NULL };
11444
11445 self = self;
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
11447 return NULL;
11448 if (_argo0) {
11449 if (_argo0 == Py_None) { _arg0 = NULL; }
11450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
11452 return NULL;
11453 }
11454 }
11455{
474c48f9 11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 11457 wxRegionIterator_Next(_arg0);
9df61a29 11458
474c48f9 11459 wxPyEndAllowThreads(__tstate);
4dfaa61e 11460 if (PyErr_Occurred()) return NULL;
9df61a29
RD
11461} Py_INCREF(Py_None);
11462 _resultobj = Py_None;
11463 return _resultobj;
11464}
11465
70551f47 11466static PyMethodDef gdicMethods[] = {
9df61a29
RD
11467 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
11468 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
11469 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
11470 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
11471 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
11472 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
11473 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
11474 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
11475 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
11476 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
11477 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11478 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
11479 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
11480 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
11481 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
11482 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
11483 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
11484 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
11485 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
11486 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
11487 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
11488 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
11489 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
11490 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
11491 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
11492 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
11493 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
11494 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
11495 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
11496 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
8cb49012 11497 { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11498 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
11499 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
11500 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11501 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11502 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
11503 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
11504 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
11505 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
11506 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11507 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
11508 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11509 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
11510 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
11511 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
11512 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
11513 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
11514 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
11515 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
11516 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11517 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
11518 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
11519 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
11520 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
107e4716 11521 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
2fc99549 11522 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11523 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
11524 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
11525 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
3bcd5e1c
RD
11526 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
11527 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
11528 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11529 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
11530 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
e02c03a4
RD
11531 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
11532 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11533 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11534 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
11535 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
11536 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
11537 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
11538 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11539 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
11540 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
11541 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
11542 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
11543 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
11544 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
11545 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
11546 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
11547 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11548 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11549 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11550 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
11551 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
11552 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
059a841c 11553 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11554 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
11555 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
11556 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
11557 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
11558 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
11559 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
11560 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
11561 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
11562 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
11563 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
11564 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
11565 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
11566 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11567 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11568 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
11569 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11570 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11571 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11572 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11573 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
11574 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11575 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
11576 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
11577 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
11578 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
e02c03a4 11579 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11580 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
11581 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
11582 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
11583 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11584 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11585 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
11586 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
11587 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
11588 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
11589 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
11590 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
11591 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
11592 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
11593 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
56f5d962 11594 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11595 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
11596 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
11597 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
11598 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
11599 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
8cb49012
RD
11600 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
11601 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11602 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
11603 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
11604 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
11605 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
11606 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
11607 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
11608 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
11609 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
11610 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
11611 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
11612 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
11613 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
11614 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
11615 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
11616 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11617 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11618 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
11619 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
11620 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11621 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
11622 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
11623 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
11624 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
11625 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
11626 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
11627 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11628 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
107e4716 11629 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11630 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11631 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
11632 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
11633 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
65191ae8
RD
11634 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
11635 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
11636 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
56f5d962 11637 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11638 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
11639 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
11640 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
11641 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
11642 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
11643 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
11644 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
11645 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
11646 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
11647 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
11648 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11649 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
107e4716 11650 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11651 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
11652 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
11653 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11654 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
11655 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
11656 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
11657 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
11658 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
11659 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
11660 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
11661 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
7a9b33db 11662 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
5e40f9dd
RD
11663 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
11664 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
11665 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11666 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
11667 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
134d79dc
RD
11668 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
11669 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
11670 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
1893b029 11671 { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11672 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
134d79dc 11673 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
107e4716 11674 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11675 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
11676 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11677 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11678 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11679 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11680 { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
11681 { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
059a841c 11682 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
db34b2d4 11683 { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
134d79dc 11684 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
059a841c 11685 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
107e4716 11686 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
059a841c 11687 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11688 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
107e4716 11689 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
059a841c 11690 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
d29aba2f 11691 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 11692 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c 11693 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
107e4716 11694 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11695 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
11696 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
11697 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
11698 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
11699 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
11700 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
11701 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
11702 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
11703 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
11704 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
11705 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
11706 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11707 { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
11708 { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
059a841c
RD
11709 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
11710 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
11711 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
1893b029
RD
11712 { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
11713 { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
85247b36 11714 { "wxNativeFontInfo_SetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_SetXFontName, METH_VARARGS | METH_KEYWORDS },
1893b029 11715 { "wxNativeFontInfo_GetXFontName", (PyCFunction) _wrap_wxNativeFontInfo_GetXFontName, METH_VARARGS | METH_KEYWORDS },
85247b36 11716 { "wxNativeFontInfo_IsDefault", (PyCFunction) _wrap_wxNativeFontInfo_IsDefault, METH_VARARGS | METH_KEYWORDS },
1893b029 11717 { "wxNativeFontInfo_FromXFontName", (PyCFunction) _wrap_wxNativeFontInfo_FromXFontName, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11718 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
11719 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11720 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716 11721 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11722 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
11723 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
11724 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
11725 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
11726 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11727 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
11728 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11729 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
11730 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
fbcadfca 11731 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
107e4716 11732 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
65191ae8 11733 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11734 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11735 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
11736 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
107e4716 11737 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
56f5d962
RD
11738 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
11739 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
11740 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
11741 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
107e4716 11742 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
107e4716 11743 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
107e4716 11744 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11745 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
11746 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11747 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
11748 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
9df61a29
RD
11749 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
11750 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
11751 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
11752 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
11753 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
11754 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
11755 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
11756 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
4be61064 11757 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11758 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
11759 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
107e4716 11760 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
9d6da64a 11761 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
11762 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
11763 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
107e4716 11764 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
70551f47
RD
11765 { NULL, NULL }
11766};
2d091820
RD
11767#ifdef __cplusplus
11768}
11769#endif
11770/*
11771 * This table is used by the pointer type-checker
11772 */
11773static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 11774 { "_signed_long","_long",0},
4120ef2b 11775 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
11776 { "_wxPrintQuality","_int",0},
11777 { "_wxPrintQuality","_signed_int",0},
11778 { "_wxPrintQuality","_unsigned_int",0},
11779 { "_wxPrintQuality","_wxWindowID",0},
11780 { "_wxPrintQuality","_uint",0},
11781 { "_wxPrintQuality","_EBool",0},
11782 { "_wxPrintQuality","_size_t",0},
c368d904 11783 { "_wxPrintQuality","_time_t",0},
65191ae8 11784 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
2d091820 11785 { "_byte","_unsigned_char",0},
2d091820
RD
11786 { "_long","_unsigned_long",0},
11787 { "_long","_signed_long",0},
9df61a29 11788 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
9df61a29 11789 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
9df61a29 11790 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
65191ae8 11791 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
9df61a29 11792 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
9df61a29 11793 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
9df61a29 11794 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
9df61a29 11795 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
9df61a29 11796 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
2d091820 11797 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
2d091820 11798 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
2d091820 11799 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
2d091820 11800 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
2d091820 11801 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
4120ef2b 11802 { "_size_t","_wxCoord",0},
2d091820 11803 { "_size_t","_wxPrintQuality",0},
c368d904 11804 { "_size_t","_time_t",0},
2d091820
RD
11805 { "_size_t","_unsigned_int",0},
11806 { "_size_t","_int",0},
11807 { "_size_t","_wxWindowID",0},
11808 { "_size_t","_uint",0},
4120ef2b 11809 { "_uint","_wxCoord",0},
2d091820 11810 { "_uint","_wxPrintQuality",0},
c368d904 11811 { "_uint","_time_t",0},
2d091820
RD
11812 { "_uint","_size_t",0},
11813 { "_uint","_unsigned_int",0},
11814 { "_uint","_int",0},
11815 { "_uint","_wxWindowID",0},
f6bcfd97 11816 { "_wxChar","_char",0},
f6bcfd97 11817 { "_char","_wxChar",0},
059a841c 11818 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 11819 { "_EBool","_wxCoord",0},
2d091820
RD
11820 { "_EBool","_wxPrintQuality",0},
11821 { "_EBool","_signed_int",0},
11822 { "_EBool","_int",0},
11823 { "_EBool","_wxWindowID",0},
2d091820 11824 { "_unsigned_long","_long",0},
059a841c 11825 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 11826 { "_signed_int","_wxCoord",0},
2d091820
RD
11827 { "_signed_int","_wxPrintQuality",0},
11828 { "_signed_int","_EBool",0},
11829 { "_signed_int","_wxWindowID",0},
11830 { "_signed_int","_int",0},
2d091820
RD
11831 { "_WXTYPE","_short",0},
11832 { "_WXTYPE","_signed_short",0},
11833 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
11834 { "_unsigned_short","_WXTYPE",0},
11835 { "_unsigned_short","_short",0},
9df61a29 11836 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
9df61a29 11837 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
9df61a29 11838 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
9df61a29 11839 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
9df61a29 11840 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
9df61a29 11841 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
9df61a29 11842 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
9df61a29 11843 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
9df61a29 11844 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
9df61a29 11845 { "_wxObject","_wxDC",SwigwxDCTowxObject},
65191ae8 11846 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
9df61a29 11847 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
9df61a29 11848 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
65191ae8 11849 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
9df61a29 11850 { "_wxObject","_wxPen",SwigwxPenTowxObject},
9df61a29 11851 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
9df61a29 11852 { "_wxObject","_wxColour",SwigwxColourTowxObject},
9df61a29 11853 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
9df61a29 11854 { "_wxObject","_wxFont",SwigwxFontTowxObject},
9df61a29 11855 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
9df61a29 11856 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
9df61a29 11857 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
9df61a29 11858 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
9df61a29 11859 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
2d091820
RD
11860 { "_signed_short","_WXTYPE",0},
11861 { "_signed_short","_short",0},
2d091820 11862 { "_unsigned_char","_byte",0},
4120ef2b 11863 { "_unsigned_int","_wxCoord",0},
2d091820 11864 { "_unsigned_int","_wxPrintQuality",0},
c368d904 11865 { "_unsigned_int","_time_t",0},
2d091820
RD
11866 { "_unsigned_int","_size_t",0},
11867 { "_unsigned_int","_uint",0},
11868 { "_unsigned_int","_wxWindowID",0},
11869 { "_unsigned_int","_int",0},
2d091820
RD
11870 { "_short","_WXTYPE",0},
11871 { "_short","_unsigned_short",0},
11872 { "_short","_signed_short",0},
4120ef2b 11873 { "_wxWindowID","_wxCoord",0},
2d091820 11874 { "_wxWindowID","_wxPrintQuality",0},
c368d904 11875 { "_wxWindowID","_time_t",0},
2d091820
RD
11876 { "_wxWindowID","_size_t",0},
11877 { "_wxWindowID","_EBool",0},
11878 { "_wxWindowID","_uint",0},
11879 { "_wxWindowID","_int",0},
11880 { "_wxWindowID","_signed_int",0},
11881 { "_wxWindowID","_unsigned_int",0},
4120ef2b 11882 { "_int","_wxCoord",0},
2d091820 11883 { "_int","_wxPrintQuality",0},
c368d904 11884 { "_int","_time_t",0},
2d091820
RD
11885 { "_int","_size_t",0},
11886 { "_int","_EBool",0},
11887 { "_int","_uint",0},
11888 { "_int","_wxWindowID",0},
11889 { "_int","_unsigned_int",0},
11890 { "_int","_signed_int",0},
c368d904
RD
11891 { "_time_t","_wxCoord",0},
11892 { "_time_t","_wxPrintQuality",0},
11893 { "_time_t","_unsigned_int",0},
11894 { "_time_t","_int",0},
11895 { "_time_t","_wxWindowID",0},
11896 { "_time_t","_uint",0},
11897 { "_time_t","_size_t",0},
4120ef2b
RD
11898 { "_wxCoord","_int",0},
11899 { "_wxCoord","_signed_int",0},
11900 { "_wxCoord","_unsigned_int",0},
11901 { "_wxCoord","_wxWindowID",0},
11902 { "_wxCoord","_uint",0},
11903 { "_wxCoord","_EBool",0},
11904 { "_wxCoord","_size_t",0},
c368d904 11905 { "_wxCoord","_time_t",0},
4120ef2b 11906 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
11907{0,0,0}};
11908
70551f47
RD
11909static PyObject *SWIG_globals;
11910#ifdef __cplusplus
11911extern "C"
11912#endif
2d091820 11913SWIGEXPORT(void) initgdic() {
70551f47
RD
11914 PyObject *m, *d;
11915 SWIG_globals = SWIG_newvarlink();
11916 m = Py_InitModule("gdic", gdicMethods);
11917 d = PyModule_GetDict(m);
059a841c
RD
11918 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
11919 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
11920 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
11921 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
11922 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
11923 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
11924 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
11925 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
85247b36 11926 PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN));
059a841c
RD
11927 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
11928 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
11929 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
11930 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
11931 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
11932 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
11933 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
11934 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
134d79dc
RD
11935 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
11936 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
11937 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
11938 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
11939 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
11940 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
11941 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
11942 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
11943 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
11944 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
11945 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
11946 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
11947 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
11948 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
11949 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
11950 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
11951 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
059a841c 11952 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
134d79dc
RD
11953 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
11954 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
11955 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
11956 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
11957 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
11958 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
11959 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
11960 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
059a841c 11961 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
a57d56d6
RD
11962 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
11963 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
11964 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
11965 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
134d79dc
RD
11966 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
11967 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
11968 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
059a841c
RD
11969 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
11970 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
11971 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
11972 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
11973 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
11974 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
11975 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
11976 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
11977 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
134d79dc 11978 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
3e212503
RD
11979 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
11980 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
11981 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
11982 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
11983 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
11984 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
11985 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
11986 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
11987 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
11988 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
70551f47
RD
11989 PyDict_SetItemString(d,"cvar", SWIG_globals);
11990 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
11991 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
11992 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
11993 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
11994 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
11995 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
11996 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
11997 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
11998 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
11999 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12000 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12001 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12002 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12003 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12004 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12005 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12006 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12007 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12008 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12009 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12010 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12011 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12012 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12013 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12014 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12015 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12016 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12017 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12018 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12019 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12020 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12021 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12022 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12023 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12024 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12025 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12026 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12027 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12028 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12029 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12030 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12031 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
5e40f9dd
RD
12032 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12033 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12034 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12035 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
2d091820
RD
12036{
12037 int i;
12038 for (i = 0; _swig_mapping[i].n1; i++)
12039 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12040}
70551f47 12041}