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