]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/gdi.cpp
fixed bug in generation of thumb scroll events
[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
59988cd0
RD
7873#define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask())
7874static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7875 PyObject * _resultobj;
7876 wxBufferedDC * _arg0;
7877 PyObject * _argo0 = 0;
7878 char *_kwnames[] = { "self", NULL };
7879
7880 self = self;
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0))
7882 return NULL;
7883 if (_argo0) {
7884 if (_argo0 == Py_None) { _arg0 = NULL; }
7885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) {
7886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p.");
7887 return NULL;
7888 }
7889 }
7890{
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 wxBufferedDC_UnMask(_arg0);
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) return NULL;
7896} Py_INCREF(Py_None);
7897 _resultobj = Py_None;
7898 return _resultobj;
7899}
7900
c3bfa1cb
RD
7901static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) {
7902 wxBufferedPaintDC *src;
7903 wxBufferedDC *dest;
7904 src = (wxBufferedPaintDC *) ptr;
7905 dest = (wxBufferedDC *) src;
7906 return (void *) dest;
7907}
7908
7909static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) {
7910 wxBufferedPaintDC *src;
7911 wxMemoryDC *dest;
7912 src = (wxBufferedPaintDC *) ptr;
7913 dest = (wxMemoryDC *) src;
7914 return (void *) dest;
7915}
7916
7917static void *SwigwxBufferedPaintDCTowxDC(void *ptr) {
7918 wxBufferedPaintDC *src;
7919 wxDC *dest;
7920 src = (wxBufferedPaintDC *) ptr;
7921 dest = (wxDC *) src;
7922 return (void *) dest;
7923}
7924
7925static void *SwigwxBufferedPaintDCTowxObject(void *ptr) {
7926 wxBufferedPaintDC *src;
7927 wxObject *dest;
7928 src = (wxBufferedPaintDC *) ptr;
7929 dest = (wxObject *) src;
7930 return (void *) dest;
7931}
7932
7933#define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1))
7934static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7935 PyObject * _resultobj;
7936 wxBufferedPaintDC * _result;
7937 wxWindow * _arg0;
7938 wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap;
7939 PyObject * _argo0 = 0;
7940 PyObject * _argo1 = 0;
7941 char *_kwnames[] = { "window","buffer", NULL };
7942 char _ptemp[128];
7943
7944 self = self;
7945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1))
7946 return NULL;
7947 if (_argo0) {
7948 if (_argo0 == Py_None) { _arg0 = NULL; }
7949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p.");
7951 return NULL;
7952 }
7953 }
7954 if (_argo1) {
7955 if (_argo1 == Py_None) { _arg1 = NULL; }
7956 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7957 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p.");
7958 return NULL;
7959 }
7960 }
7961{
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) return NULL;
7967} if (_result) {
7968 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p");
7969 _resultobj = Py_BuildValue("s",_ptemp);
7970 } else {
7971 Py_INCREF(Py_None);
7972 _resultobj = Py_None;
7973 }
7974 return _resultobj;
7975}
7976
e6056257
RD
7977static void *SwigwxScreenDCTowxDC(void *ptr) {
7978 wxScreenDC *src;
7979 wxDC *dest;
7980 src = (wxScreenDC *) ptr;
7981 dest = (wxDC *) src;
7982 return (void *) dest;
7983}
7984
7985static void *SwigwxScreenDCTowxObject(void *ptr) {
7986 wxScreenDC *src;
7987 wxObject *dest;
7988 src = (wxScreenDC *) ptr;
7989 dest = (wxObject *) src;
7990 return (void *) dest;
7991}
7992
7993#define new_wxScreenDC() (new wxScreenDC())
7994static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject * _resultobj;
7996 wxScreenDC * _result;
7997 char *_kwnames[] = { NULL };
7998 char _ptemp[128];
7999
8000 self = self;
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
8002 return NULL;
8003{
0e2ff151 8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8005 _result = (wxScreenDC *)new_wxScreenDC();
e6056257 8006
0e2ff151 8007 wxPyEndAllowThreads(__tstate);
e6056257
RD
8008 if (PyErr_Occurred()) return NULL;
8009} if (_result) {
8010 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
8011 _resultobj = Py_BuildValue("s",_ptemp);
8012 } else {
8013 Py_INCREF(Py_None);
8014 _resultobj = Py_None;
8015 }
8016 return _resultobj;
8017}
8018
8019#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8020static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject * _resultobj;
8022 bool _result;
8023 wxScreenDC * _arg0;
8024 wxWindow * _arg1;
8025 PyObject * _argo0 = 0;
8026 PyObject * _argo1 = 0;
8027 char *_kwnames[] = { "self","window", NULL };
8028
8029 self = self;
8030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
8031 return NULL;
8032 if (_argo0) {
8033 if (_argo0 == Py_None) { _arg0 = NULL; }
8034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8036 return NULL;
8037 }
8038 }
8039 if (_argo1) {
8040 if (_argo1 == Py_None) { _arg1 = NULL; }
8041 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8042 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8043 return NULL;
8044 }
8045 }
8046{
0e2ff151 8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8048 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
e6056257 8049
0e2ff151 8050 wxPyEndAllowThreads(__tstate);
e6056257
RD
8051 if (PyErr_Occurred()) return NULL;
8052} _resultobj = Py_BuildValue("i",_result);
8053 return _resultobj;
8054}
8055
8056#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8057static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8058 PyObject * _resultobj;
8059 bool _result;
8060 wxScreenDC * _arg0;
8061 wxRect * _arg1 = (wxRect *) NULL;
8062 PyObject * _argo0 = 0;
8063 wxRect temp;
8064 PyObject * _obj1 = 0;
8065 char *_kwnames[] = { "self","rect", NULL };
8066
8067 self = self;
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
8069 return NULL;
8070 if (_argo0) {
8071 if (_argo0 == Py_None) { _arg0 = NULL; }
8072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8074 return NULL;
8075 }
8076 }
8077 if (_obj1)
8078{
8079 _arg1 = &temp;
8080 if (! wxRect_helper(_obj1, &_arg1))
8081 return NULL;
8082}
8083{
0e2ff151 8084 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8085 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
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
8093#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8094static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8095 PyObject * _resultobj;
8096 bool _result;
8097 wxScreenDC * _arg0;
8098 PyObject * _argo0 = 0;
8099 char *_kwnames[] = { "self", NULL };
8100
8101 self = self;
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
8103 return NULL;
8104 if (_argo0) {
8105 if (_argo0 == Py_None) { _arg0 = NULL; }
8106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8108 return NULL;
8109 }
8110 }
8111{
0e2ff151 8112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8113 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
e6056257 8114
0e2ff151 8115 wxPyEndAllowThreads(__tstate);
e6056257
RD
8116 if (PyErr_Occurred()) return NULL;
8117} _resultobj = Py_BuildValue("i",_result);
8118 return _resultobj;
8119}
8120
8121static void *SwigwxClientDCTowxDC(void *ptr) {
8122 wxClientDC *src;
8123 wxDC *dest;
8124 src = (wxClientDC *) ptr;
8125 dest = (wxDC *) src;
8126 return (void *) dest;
8127}
8128
8129static void *SwigwxClientDCTowxObject(void *ptr) {
8130 wxClientDC *src;
8131 wxObject *dest;
8132 src = (wxClientDC *) ptr;
8133 dest = (wxObject *) src;
8134 return (void *) dest;
8135}
8136
8137#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8138static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8139 PyObject * _resultobj;
8140 wxClientDC * _result;
8141 wxWindow * _arg0;
8142 PyObject * _argo0 = 0;
8143 char *_kwnames[] = { "win", NULL };
8144 char _ptemp[128];
8145
8146 self = self;
8147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
8148 return NULL;
8149 if (_argo0) {
8150 if (_argo0 == Py_None) { _arg0 = NULL; }
8151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8153 return NULL;
8154 }
8155 }
8156{
0e2ff151 8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8158 _result = (wxClientDC *)new_wxClientDC(_arg0);
e6056257 8159
0e2ff151 8160 wxPyEndAllowThreads(__tstate);
e6056257
RD
8161 if (PyErr_Occurred()) return NULL;
8162} if (_result) {
8163 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
8164 _resultobj = Py_BuildValue("s",_ptemp);
8165 } else {
8166 Py_INCREF(Py_None);
8167 _resultobj = Py_None;
8168 }
8169 return _resultobj;
8170}
8171
8172static void *SwigwxPaintDCTowxDC(void *ptr) {
8173 wxPaintDC *src;
8174 wxDC *dest;
8175 src = (wxPaintDC *) ptr;
8176 dest = (wxDC *) src;
8177 return (void *) dest;
8178}
8179
8180static void *SwigwxPaintDCTowxObject(void *ptr) {
8181 wxPaintDC *src;
8182 wxObject *dest;
8183 src = (wxPaintDC *) ptr;
8184 dest = (wxObject *) src;
8185 return (void *) dest;
8186}
8187
8188#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8189static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject * _resultobj;
8191 wxPaintDC * _result;
8192 wxWindow * _arg0;
8193 PyObject * _argo0 = 0;
8194 char *_kwnames[] = { "win", NULL };
8195 char _ptemp[128];
8196
8197 self = self;
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
8199 return NULL;
8200 if (_argo0) {
8201 if (_argo0 == Py_None) { _arg0 = NULL; }
8202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8204 return NULL;
8205 }
8206 }
8207{
0e2ff151 8208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8209 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
e6056257 8210
0e2ff151 8211 wxPyEndAllowThreads(__tstate);
e6056257
RD
8212 if (PyErr_Occurred()) return NULL;
8213} if (_result) {
8214 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
8215 _resultobj = Py_BuildValue("s",_ptemp);
8216 } else {
8217 Py_INCREF(Py_None);
8218 _resultobj = Py_None;
8219 }
8220 return _resultobj;
8221}
8222
8223static void *SwigwxWindowDCTowxDC(void *ptr) {
8224 wxWindowDC *src;
8225 wxDC *dest;
8226 src = (wxWindowDC *) ptr;
8227 dest = (wxDC *) src;
8228 return (void *) dest;
8229}
8230
8231static void *SwigwxWindowDCTowxObject(void *ptr) {
8232 wxWindowDC *src;
8233 wxObject *dest;
8234 src = (wxWindowDC *) ptr;
8235 dest = (wxObject *) src;
8236 return (void *) dest;
8237}
8238
8239#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8240static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8241 PyObject * _resultobj;
8242 wxWindowDC * _result;
8243 wxWindow * _arg0;
8244 PyObject * _argo0 = 0;
8245 char *_kwnames[] = { "win", NULL };
8246 char _ptemp[128];
8247
8248 self = self;
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
8250 return NULL;
8251 if (_argo0) {
8252 if (_argo0 == Py_None) { _arg0 = NULL; }
8253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8255 return NULL;
8256 }
8257 }
8258{
0e2ff151 8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8260 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
e6056257 8261
0e2ff151 8262 wxPyEndAllowThreads(__tstate);
e6056257
RD
8263 if (PyErr_Occurred()) return NULL;
8264} if (_result) {
8265 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
8266 _resultobj = Py_BuildValue("s",_ptemp);
8267 } else {
8268 Py_INCREF(Py_None);
8269 _resultobj = Py_None;
8270 }
8271 return _resultobj;
8272}
8273
e6056257
RD
8274static void *SwigwxPaletteTowxGDIObject(void *ptr) {
8275 wxPalette *src;
8276 wxGDIObject *dest;
8277 src = (wxPalette *) ptr;
8278 dest = (wxGDIObject *) src;
8279 return (void *) dest;
8280}
8281
8282static void *SwigwxPaletteTowxObject(void *ptr) {
8283 wxPalette *src;
8284 wxObject *dest;
8285 src = (wxPalette *) ptr;
8286 dest = (wxObject *) src;
8287 return (void *) dest;
8288}
8289
8290#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8291static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8292 PyObject * _resultobj;
8293 wxPalette * _result;
8294 int _arg0;
8295 byte * _arg1;
8296 byte * _arg2;
8297 byte * _arg3;
8298 PyObject * _obj1 = 0;
8299 PyObject * _obj2 = 0;
8300 PyObject * _obj3 = 0;
8301 char *_kwnames[] = { "choices","choices","choices", NULL };
8302 char _ptemp[128];
8303
8304 self = self;
8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
8306 return NULL;
8307{
8308 _arg1 = byte_LIST_helper(_obj1);
8309 if (_arg1 == NULL) {
8310 return NULL;
8311 }
8312}
8313{
8314 _arg2 = byte_LIST_helper(_obj2);
8315 if (_arg2 == NULL) {
8316 return NULL;
8317 }
8318}
8319 if (_obj3)
8320{
8321 _arg3 = byte_LIST_helper(_obj3);
8322 if (_arg3 == NULL) {
8323 return NULL;
8324 }
8325}
8326{
8327 if (_obj1) {
8328 _arg0 = PyList_Size(_obj1);
8329 }
8330 else {
8331 _arg0 = 0;
8332 }
8333}
8334{
0e2ff151 8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8336 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
e6056257 8337
0e2ff151 8338 wxPyEndAllowThreads(__tstate);
e6056257
RD
8339 if (PyErr_Occurred()) return NULL;
8340} if (_result) {
8341 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
8342 _resultobj = Py_BuildValue("s",_ptemp);
8343 } else {
8344 Py_INCREF(Py_None);
8345 _resultobj = Py_None;
8346 }
8347{
8348 delete [] _arg1;
8349}
8350{
8351 delete [] _arg2;
8352}
8353{
8354 delete [] _arg3;
8355}
8356 return _resultobj;
8357}
8358
8359#define delete_wxPalette(_swigobj) (delete _swigobj)
8360static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8361 PyObject * _resultobj;
8362 wxPalette * _arg0;
8363 PyObject * _argo0 = 0;
8364 char *_kwnames[] = { "self", NULL };
8365
8366 self = self;
8367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
8368 return NULL;
8369 if (_argo0) {
8370 if (_argo0 == Py_None) { _arg0 = NULL; }
8371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8373 return NULL;
8374 }
8375 }
8376{
0e2ff151 8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8378 delete_wxPalette(_arg0);
e6056257 8379
0e2ff151 8380 wxPyEndAllowThreads(__tstate);
e6056257
RD
8381 if (PyErr_Occurred()) return NULL;
8382} Py_INCREF(Py_None);
8383 _resultobj = Py_None;
8384 return _resultobj;
8385}
8386
8387#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8388static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8389 PyObject * _resultobj;
8390 int _result;
8391 wxPalette * _arg0;
8392 byte _arg1;
8393 byte _arg2;
8394 byte _arg3;
8395 PyObject * _argo0 = 0;
8396 char *_kwnames[] = { "self","red","green","blue", NULL };
8397
8398 self = self;
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8400 return NULL;
8401 if (_argo0) {
8402 if (_argo0 == Py_None) { _arg0 = NULL; }
8403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8405 return NULL;
8406 }
8407 }
8408{
0e2ff151 8409 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8410 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
e6056257 8411
0e2ff151 8412 wxPyEndAllowThreads(__tstate);
e6056257
RD
8413 if (PyErr_Occurred()) return NULL;
8414} _resultobj = Py_BuildValue("i",_result);
8415 return _resultobj;
8416}
8417
8418#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8419static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject * _resultobj;
8421 bool _result;
8422 wxPalette * _arg0;
8423 int _arg1;
8424 byte * _arg2;
a341e32e 8425 int temp;
e6056257 8426 byte * _arg3;
a341e32e 8427 int temp0;
e6056257 8428 byte * _arg4;
a341e32e 8429 int temp1;
e6056257 8430 PyObject * _argo0 = 0;
a341e32e 8431 char *_kwnames[] = { "self","pixel", NULL };
e6056257
RD
8432
8433 self = self;
a341e32e
RD
8434{
8435 _arg2 = (byte*)&temp;
8436}
8437{
8438 _arg3 = (byte*)&temp0;
8439}
8440{
8441 _arg4 = (byte*)&temp1;
8442}
8443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1))
e6056257
RD
8444 return NULL;
8445 if (_argo0) {
8446 if (_argo0 == Py_None) { _arg0 = NULL; }
8447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8449 return NULL;
8450 }
8451 }
e6056257 8452{
0e2ff151 8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8454 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 8455
0e2ff151 8456 wxPyEndAllowThreads(__tstate);
e6056257
RD
8457 if (PyErr_Occurred()) return NULL;
8458} _resultobj = Py_BuildValue("i",_result);
a341e32e
RD
8459{
8460 PyObject *o;
8461 o = PyInt_FromLong((long) (*_arg2));
8462 _resultobj = t_output_helper(_resultobj, o);
8463}
8464{
8465 PyObject *o;
8466 o = PyInt_FromLong((long) (*_arg3));
8467 _resultobj = t_output_helper(_resultobj, o);
8468}
8469{
8470 PyObject *o;
8471 o = PyInt_FromLong((long) (*_arg4));
8472 _resultobj = t_output_helper(_resultobj, o);
8473}
e6056257
RD
8474 return _resultobj;
8475}
8476
8477#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8478static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8479 PyObject * _resultobj;
8480 bool _result;
8481 wxPalette * _arg0;
8482 PyObject * _argo0 = 0;
8483 char *_kwnames[] = { "self", NULL };
8484
8485 self = self;
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
8487 return NULL;
8488 if (_argo0) {
8489 if (_argo0 == Py_None) { _arg0 = NULL; }
8490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8492 return NULL;
8493 }
8494 }
8495{
0e2ff151 8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8497 _result = (bool )wxPalette_Ok(_arg0);
e6056257 8498
0e2ff151 8499 wxPyEndAllowThreads(__tstate);
e6056257
RD
8500 if (PyErr_Occurred()) return NULL;
8501} _resultobj = Py_BuildValue("i",_result);
8502 return _resultobj;
8503}
8504
8505static void *SwigwxImageListTowxObject(void *ptr) {
8506 wxImageList *src;
8507 wxObject *dest;
8508 src = (wxImageList *) ptr;
8509 dest = (wxObject *) src;
8510 return (void *) dest;
8511}
8512
8513#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8514static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8515 PyObject * _resultobj;
8516 wxImageList * _result;
8517 int _arg0;
8518 int _arg1;
8519 int _arg2 = (int ) TRUE;
8520 int _arg3 = (int ) 1;
8521 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
8522 char _ptemp[128];
8523
8524 self = self;
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
8526 return NULL;
8527{
0e2ff151 8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8529 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
e6056257 8530
0e2ff151 8531 wxPyEndAllowThreads(__tstate);
e6056257
RD
8532 if (PyErr_Occurred()) return NULL;
8533} if (_result) {
8534 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
8535 _resultobj = Py_BuildValue("s",_ptemp);
8536 } else {
8537 Py_INCREF(Py_None);
8538 _resultobj = Py_None;
8539 }
8540 return _resultobj;
8541}
8542
8543#define delete_wxImageList(_swigobj) (delete _swigobj)
8544static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8545 PyObject * _resultobj;
8546 wxImageList * _arg0;
8547 PyObject * _argo0 = 0;
8548 char *_kwnames[] = { "self", NULL };
8549
8550 self = self;
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
8552 return NULL;
8553 if (_argo0) {
8554 if (_argo0 == Py_None) { _arg0 = NULL; }
8555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8557 return NULL;
8558 }
8559 }
8560{
0e2ff151 8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8562 delete_wxImageList(_arg0);
e6056257 8563
0e2ff151 8564 wxPyEndAllowThreads(__tstate);
e6056257
RD
8565 if (PyErr_Occurred()) return NULL;
8566} Py_INCREF(Py_None);
8567 _resultobj = Py_None;
8568 return _resultobj;
8569}
8570
8571#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8572static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
8573 PyObject * _resultobj;
8574 int _result;
8575 wxImageList * _arg0;
8576 wxBitmap * _arg1;
8577 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
8578 PyObject * _argo0 = 0;
8579 PyObject * _argo1 = 0;
8580 PyObject * _argo2 = 0;
8581 char *_kwnames[] = { "self","bitmap","mask", NULL };
8582
8583 self = self;
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
8585 return NULL;
8586 if (_argo0) {
8587 if (_argo0 == Py_None) { _arg0 = NULL; }
8588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8590 return NULL;
8591 }
8592 }
8593 if (_argo1) {
8594 if (_argo1 == Py_None) { _arg1 = NULL; }
8595 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8596 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8597 return NULL;
8598 }
8599 }
8600 if (_argo2) {
8601 if (_argo2 == Py_None) { _arg2 = NULL; }
8602 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8603 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8604 return NULL;
8605 }
8606 }
8607{
0e2ff151 8608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8609 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
e6056257 8610
0e2ff151 8611 wxPyEndAllowThreads(__tstate);
e6056257
RD
8612 if (PyErr_Occurred()) return NULL;
8613} _resultobj = Py_BuildValue("i",_result);
8614 return _resultobj;
8615}
8616
8617#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8618static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
8619 PyObject * _resultobj;
8620 int _result;
8621 wxImageList * _arg0;
8622 wxBitmap * _arg1;
8623 wxColour * _arg2;
8624 PyObject * _argo0 = 0;
8625 PyObject * _argo1 = 0;
8626 wxColour temp;
8627 PyObject * _obj2 = 0;
8628 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
8629
8630 self = self;
8631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
8632 return NULL;
8633 if (_argo0) {
8634 if (_argo0 == Py_None) { _arg0 = NULL; }
8635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8637 return NULL;
8638 }
8639 }
8640 if (_argo1) {
8641 if (_argo1 == Py_None) { _arg1 = NULL; }
8642 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8643 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8644 return NULL;
8645 }
8646 }
8647{
8648 _arg2 = &temp;
8649 if (! wxColour_helper(_obj2, &_arg2))
8650 return NULL;
8651}
8652{
0e2ff151 8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8654 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
e6056257 8655
0e2ff151 8656 wxPyEndAllowThreads(__tstate);
e6056257
RD
8657 if (PyErr_Occurred()) return NULL;
8658} _resultobj = Py_BuildValue("i",_result);
8659 return _resultobj;
8660}
8661
8662#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8663static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8664 PyObject * _resultobj;
8665 int _result;
8666 wxImageList * _arg0;
8667 wxIcon * _arg1;
8668 PyObject * _argo0 = 0;
8669 PyObject * _argo1 = 0;
8670 char *_kwnames[] = { "self","icon", NULL };
8671
8672 self = self;
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
8674 return NULL;
8675 if (_argo0) {
8676 if (_argo0 == Py_None) { _arg0 = NULL; }
8677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8679 return NULL;
8680 }
8681 }
8682 if (_argo1) {
8683 if (_argo1 == Py_None) { _arg1 = NULL; }
8684 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8685 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8686 return NULL;
8687 }
8688 }
8689{
0e2ff151 8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8691 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
e6056257 8692
0e2ff151 8693 wxPyEndAllowThreads(__tstate);
e6056257
RD
8694 if (PyErr_Occurred()) return NULL;
8695} _resultobj = Py_BuildValue("i",_result);
8696 return _resultobj;
8697}
8698
8699#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8700static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8701 PyObject * _resultobj;
8702 bool _result;
8703 wxImageList * _arg0;
8704 int _arg1;
8705 wxBitmap * _arg2;
8706 PyObject * _argo0 = 0;
8707 PyObject * _argo2 = 0;
8708 char *_kwnames[] = { "self","index","bitmap", NULL };
8709
8710 self = self;
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
8712 return NULL;
8713 if (_argo0) {
8714 if (_argo0 == Py_None) { _arg0 = NULL; }
8715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8717 return NULL;
8718 }
8719 }
8720 if (_argo2) {
8721 if (_argo2 == Py_None) { _arg2 = NULL; }
8722 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8723 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8724 return NULL;
8725 }
8726 }
8727{
0e2ff151 8728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8729 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
e6056257 8730
0e2ff151 8731 wxPyEndAllowThreads(__tstate);
e6056257
RD
8732 if (PyErr_Occurred()) return NULL;
8733} _resultobj = Py_BuildValue("i",_result);
8734 return _resultobj;
8735}
8736
8737#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8738static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
8739 PyObject * _resultobj;
8740 bool _result;
8741 wxImageList * _arg0;
8742 int _arg1;
8743 wxDC * _arg2;
8744 int _arg3;
8745 int _arg4;
8746 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
8747 bool _arg6 = (bool ) FALSE;
8748 PyObject * _argo0 = 0;
8749 PyObject * _argo2 = 0;
8750 int tempbool6 = (int) FALSE;
8751 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
8752
8753 self = self;
8754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
8755 return NULL;
8756 if (_argo0) {
8757 if (_argo0 == Py_None) { _arg0 = NULL; }
8758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8760 return NULL;
8761 }
8762 }
8763 if (_argo2) {
8764 if (_argo2 == Py_None) { _arg2 = NULL; }
8765 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
8766 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8767 return NULL;
8768 }
8769 }
8770 _arg6 = (bool ) tempbool6;
8771{
0e2ff151 8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8773 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
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_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8782static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject * _resultobj;
8784 int _result;
8785 wxImageList * _arg0;
8786 PyObject * _argo0 = 0;
8787 char *_kwnames[] = { "self", NULL };
8788
8789 self = self;
8790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
8791 return NULL;
8792 if (_argo0) {
8793 if (_argo0 == Py_None) { _arg0 = NULL; }
8794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8796 return NULL;
8797 }
8798 }
8799{
0e2ff151 8800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8801 _result = (int )wxImageList_GetImageCount(_arg0);
e6056257 8802
0e2ff151 8803 wxPyEndAllowThreads(__tstate);
e6056257
RD
8804 if (PyErr_Occurred()) return NULL;
8805} _resultobj = Py_BuildValue("i",_result);
8806 return _resultobj;
8807}
8808
8809#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8810static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8811 PyObject * _resultobj;
8812 bool _result;
8813 wxImageList * _arg0;
8814 int _arg1;
8815 PyObject * _argo0 = 0;
8816 char *_kwnames[] = { "self","index", NULL };
8817
8818 self = self;
8819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
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_Remove. Expected _wxImageList_p.");
8825 return NULL;
8826 }
8827 }
8828{
0e2ff151 8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8830 _result = (bool )wxImageList_Remove(_arg0,_arg1);
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_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8839static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject * _resultobj;
8841 bool _result;
8842 wxImageList * _arg0;
8843 PyObject * _argo0 = 0;
8844 char *_kwnames[] = { "self", NULL };
8845
8846 self = self;
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
8848 return NULL;
8849 if (_argo0) {
8850 if (_argo0 == Py_None) { _arg0 = NULL; }
8851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8853 return NULL;
8854 }
8855 }
8856{
0e2ff151 8857 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8858 _result = (bool )wxImageList_RemoveAll(_arg0);
e6056257 8859
0e2ff151 8860 wxPyEndAllowThreads(__tstate);
e6056257
RD
8861 if (PyErr_Occurred()) return NULL;
8862} _resultobj = Py_BuildValue("i",_result);
8863 return _resultobj;
8864}
8865
8866#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8867static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8868 PyObject * _resultobj;
8869 wxImageList * _arg0;
8870 int _arg1;
8871 int * _arg2;
8872 int temp;
8873 int * _arg3;
8874 int temp0;
8875 PyObject * _argo0 = 0;
8876 char *_kwnames[] = { "self","index", NULL };
8877
8878 self = self;
8879{
8880 _arg2 = &temp;
8881}
8882{
8883 _arg3 = &temp0;
8884}
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
8886 return NULL;
8887 if (_argo0) {
8888 if (_argo0 == Py_None) { _arg0 = NULL; }
8889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8891 return NULL;
8892 }
8893 }
8894{
0e2ff151 8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8896 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
e6056257 8897
0e2ff151 8898 wxPyEndAllowThreads(__tstate);
e6056257
RD
8899 if (PyErr_Occurred()) return NULL;
8900} Py_INCREF(Py_None);
8901 _resultobj = Py_None;
8902{
8903 PyObject *o;
8904 o = PyInt_FromLong((long) (*_arg2));
8905 _resultobj = t_output_helper(_resultobj, o);
8906}
8907{
8908 PyObject *o;
8909 o = PyInt_FromLong((long) (*_arg3));
8910 _resultobj = t_output_helper(_resultobj, o);
8911}
8912 return _resultobj;
8913}
8914
8915static void *SwigwxRegionTowxGDIObject(void *ptr) {
8916 wxRegion *src;
8917 wxGDIObject *dest;
8918 src = (wxRegion *) ptr;
8919 dest = (wxGDIObject *) src;
8920 return (void *) dest;
8921}
8922
8923static void *SwigwxRegionTowxObject(void *ptr) {
8924 wxRegion *src;
8925 wxObject *dest;
8926 src = (wxRegion *) ptr;
8927 dest = (wxObject *) src;
8928 return (void *) dest;
8929}
8930
8931#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8932static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject * _resultobj;
8934 wxRegion * _result;
8935 long _arg0 = (long ) 0;
8936 long _arg1 = (long ) 0;
8937 long _arg2 = (long ) 0;
8938 long _arg3 = (long ) 0;
8939 char *_kwnames[] = { "x","y","width","height", NULL };
8940 char _ptemp[128];
8941
8942 self = self;
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
8944 return NULL;
8945{
0e2ff151 8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8947 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
e6056257 8948
0e2ff151 8949 wxPyEndAllowThreads(__tstate);
e6056257
RD
8950 if (PyErr_Occurred()) return NULL;
8951} if (_result) {
8952 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
8953 _resultobj = Py_BuildValue("s",_ptemp);
8954 } else {
8955 Py_INCREF(Py_None);
8956 _resultobj = Py_None;
8957 }
8958 return _resultobj;
8959}
8960
8961#define delete_wxRegion(_swigobj) (delete _swigobj)
8962static PyObject *_wrap_delete_wxRegion(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:delete_wxRegion",_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 delete_wxRegion. Expected _wxRegion_p.");
8975 return NULL;
8976 }
8977 }
8978{
0e2ff151 8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 8980 delete_wxRegion(_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_Clear(_swigobj) (_swigobj->Clear())
8990static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject * _resultobj;
8992 wxRegion * _arg0;
8993 PyObject * _argo0 = 0;
8994 char *_kwnames[] = { "self", NULL };
8995
8996 self = self;
8997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
8998 return NULL;
8999 if (_argo0) {
9000 if (_argo0 == Py_None) { _arg0 = NULL; }
9001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9003 return NULL;
9004 }
9005 }
9006{
0e2ff151 9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9008 wxRegion_Clear(_arg0);
e6056257 9009
0e2ff151 9010 wxPyEndAllowThreads(__tstate);
e6056257
RD
9011 if (PyErr_Occurred()) return NULL;
9012} Py_INCREF(Py_None);
9013 _resultobj = Py_None;
9014 return _resultobj;
9015}
9016
9017#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9018static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
9019 PyObject * _resultobj;
9020 wxRegionContain _result;
9021 wxRegion * _arg0;
9022 long _arg1;
9023 long _arg2;
9024 PyObject * _argo0 = 0;
9025 char *_kwnames[] = { "self","x","y", NULL };
9026
9027 self = self;
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
9029 return NULL;
9030 if (_argo0) {
9031 if (_argo0 == Py_None) { _arg0 = NULL; }
9032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9034 return NULL;
9035 }
9036 }
9037{
0e2ff151 9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9039 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
e6056257 9040
0e2ff151 9041 wxPyEndAllowThreads(__tstate);
e6056257
RD
9042 if (PyErr_Occurred()) return NULL;
9043} _resultobj = Py_BuildValue("i",_result);
9044 return _resultobj;
9045}
9046
9047#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9048static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9049 PyObject * _resultobj;
9050 wxRegionContain _result;
9051 wxRegion * _arg0;
9052 wxPoint * _arg1;
9053 PyObject * _argo0 = 0;
9054 wxPoint temp;
9055 PyObject * _obj1 = 0;
9056 char *_kwnames[] = { "self","pt", NULL };
9057
9058 self = self;
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
9060 return NULL;
9061 if (_argo0) {
9062 if (_argo0 == Py_None) { _arg0 = NULL; }
9063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9065 return NULL;
9066 }
9067 }
9068{
9069 _arg1 = &temp;
9070 if (! wxPoint_helper(_obj1, &_arg1))
9071 return NULL;
9072}
9073{
0e2ff151 9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9075 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
e6056257 9076
0e2ff151 9077 wxPyEndAllowThreads(__tstate);
e6056257
RD
9078 if (PyErr_Occurred()) return NULL;
9079} _resultobj = Py_BuildValue("i",_result);
9080 return _resultobj;
9081}
9082
9083#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9084static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject * _resultobj;
9086 wxRegionContain _result;
9087 wxRegion * _arg0;
9088 wxRect * _arg1;
9089 PyObject * _argo0 = 0;
9090 wxRect temp;
9091 PyObject * _obj1 = 0;
9092 char *_kwnames[] = { "self","rect", NULL };
9093
9094 self = self;
9095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
9096 return NULL;
9097 if (_argo0) {
9098 if (_argo0 == Py_None) { _arg0 = NULL; }
9099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9101 return NULL;
9102 }
9103 }
9104{
9105 _arg1 = &temp;
9106 if (! wxRect_helper(_obj1, &_arg1))
9107 return NULL;
9108}
9109{
0e2ff151 9110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9111 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
e6056257 9112
0e2ff151 9113 wxPyEndAllowThreads(__tstate);
e6056257
RD
9114 if (PyErr_Occurred()) return NULL;
9115} _resultobj = Py_BuildValue("i",_result);
9116 return _resultobj;
9117}
9118
9119#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9120static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject * _resultobj;
9122 wxRegionContain _result;
9123 wxRegion * _arg0;
9124 long _arg1;
9125 long _arg2;
9126 long _arg3;
9127 long _arg4;
9128 PyObject * _argo0 = 0;
9129 char *_kwnames[] = { "self","x","y","w","h", NULL };
9130
9131 self = self;
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9133 return NULL;
9134 if (_argo0) {
9135 if (_argo0 == Py_None) { _arg0 = NULL; }
9136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9138 return NULL;
9139 }
9140 }
9141{
0e2ff151 9142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9143 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 9144
0e2ff151 9145 wxPyEndAllowThreads(__tstate);
e6056257
RD
9146 if (PyErr_Occurred()) return NULL;
9147} _resultobj = Py_BuildValue("i",_result);
9148 return _resultobj;
9149}
9150
9151#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9152static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject * _resultobj;
9154 wxRect * _result;
9155 wxRegion * _arg0;
9156 PyObject * _argo0 = 0;
9157 char *_kwnames[] = { "self", NULL };
9158 char _ptemp[128];
9159
9160 self = self;
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
9162 return NULL;
9163 if (_argo0) {
9164 if (_argo0 == Py_None) { _arg0 = NULL; }
9165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9167 return NULL;
9168 }
9169 }
9170{
0e2ff151 9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9172 _result = new wxRect (wxRegion_GetBox(_arg0));
e6056257 9173
0e2ff151 9174 wxPyEndAllowThreads(__tstate);
e6056257
RD
9175 if (PyErr_Occurred()) return NULL;
9176} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9177 _resultobj = Py_BuildValue("s",_ptemp);
9178 return _resultobj;
9179}
9180
9181#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9182static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject * _resultobj;
9184 bool _result;
9185 wxRegion * _arg0;
9186 long _arg1;
9187 long _arg2;
9188 long _arg3;
9189 long _arg4;
9190 PyObject * _argo0 = 0;
9191 char *_kwnames[] = { "self","x","y","width","height", NULL };
9192
9193 self = self;
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9195 return NULL;
9196 if (_argo0) {
9197 if (_argo0 == Py_None) { _arg0 = NULL; }
9198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9200 return NULL;
9201 }
9202 }
9203{
0e2ff151 9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9205 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 9206
0e2ff151 9207 wxPyEndAllowThreads(__tstate);
e6056257
RD
9208 if (PyErr_Occurred()) return NULL;
9209} _resultobj = Py_BuildValue("i",_result);
9210 return _resultobj;
9211}
9212
9213#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9214static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9215 PyObject * _resultobj;
9216 bool _result;
9217 wxRegion * _arg0;
9218 wxRect * _arg1;
9219 PyObject * _argo0 = 0;
9220 wxRect temp;
9221 PyObject * _obj1 = 0;
9222 char *_kwnames[] = { "self","rect", NULL };
9223
9224 self = self;
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
9226 return NULL;
9227 if (_argo0) {
9228 if (_argo0 == Py_None) { _arg0 = NULL; }
9229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9231 return NULL;
9232 }
9233 }
9234{
9235 _arg1 = &temp;
9236 if (! wxRect_helper(_obj1, &_arg1))
9237 return NULL;
9238}
9239{
0e2ff151 9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9241 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
e6056257 9242
0e2ff151 9243 wxPyEndAllowThreads(__tstate);
e6056257
RD
9244 if (PyErr_Occurred()) return NULL;
9245} _resultobj = Py_BuildValue("i",_result);
9246 return _resultobj;
9247}
9248
9249#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9250static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject * _resultobj;
9252 bool _result;
9253 wxRegion * _arg0;
9254 wxRegion * _arg1;
9255 PyObject * _argo0 = 0;
9256 PyObject * _argo1 = 0;
9257 char *_kwnames[] = { "self","region", NULL };
9258
9259 self = self;
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
9261 return NULL;
9262 if (_argo0) {
9263 if (_argo0 == Py_None) { _arg0 = NULL; }
9264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9266 return NULL;
9267 }
9268 }
9269 if (_argo1) {
9270 if (_argo1 == Py_None) { _arg1 = NULL; }
9271 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9272 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9273 return NULL;
9274 }
9275 }
9276{
0e2ff151 9277 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9278 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
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_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9287static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
9288 PyObject * _resultobj;
9289 bool _result;
9290 wxRegion * _arg0;
9291 PyObject * _argo0 = 0;
9292 char *_kwnames[] = { "self", NULL };
9293
9294 self = self;
9295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
9296 return NULL;
9297 if (_argo0) {
9298 if (_argo0 == Py_None) { _arg0 = NULL; }
9299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9301 return NULL;
9302 }
9303 }
9304{
0e2ff151 9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9306 _result = (bool )wxRegion_IsEmpty(_arg0);
e6056257 9307
0e2ff151 9308 wxPyEndAllowThreads(__tstate);
e6056257
RD
9309 if (PyErr_Occurred()) return NULL;
9310} _resultobj = Py_BuildValue("i",_result);
9311 return _resultobj;
9312}
9313
9314#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9315static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
9316 PyObject * _resultobj;
9317 bool _result;
9318 wxRegion * _arg0;
9319 long _arg1;
9320 long _arg2;
9321 long _arg3;
9322 long _arg4;
9323 PyObject * _argo0 = 0;
9324 char *_kwnames[] = { "self","x","y","width","height", NULL };
9325
9326 self = self;
9327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9328 return NULL;
9329 if (_argo0) {
9330 if (_argo0 == Py_None) { _arg0 = NULL; }
9331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9333 return NULL;
9334 }
9335 }
9336{
0e2ff151 9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9338 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 9339
0e2ff151 9340 wxPyEndAllowThreads(__tstate);
e6056257
RD
9341 if (PyErr_Occurred()) return NULL;
9342} _resultobj = Py_BuildValue("i",_result);
9343 return _resultobj;
9344}
9345
9346#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9347static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject * _resultobj;
9349 bool _result;
9350 wxRegion * _arg0;
9351 wxRect * _arg1;
9352 PyObject * _argo0 = 0;
9353 wxRect temp;
9354 PyObject * _obj1 = 0;
9355 char *_kwnames[] = { "self","rect", NULL };
9356
9357 self = self;
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
9359 return NULL;
9360 if (_argo0) {
9361 if (_argo0 == Py_None) { _arg0 = NULL; }
9362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9364 return NULL;
9365 }
9366 }
9367{
9368 _arg1 = &temp;
9369 if (! wxRect_helper(_obj1, &_arg1))
9370 return NULL;
9371}
9372{
0e2ff151 9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9374 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
e6056257 9375
0e2ff151 9376 wxPyEndAllowThreads(__tstate);
e6056257
RD
9377 if (PyErr_Occurred()) return NULL;
9378} _resultobj = Py_BuildValue("i",_result);
9379 return _resultobj;
9380}
9381
9382#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9383static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9384 PyObject * _resultobj;
9385 bool _result;
9386 wxRegion * _arg0;
9387 wxRegion * _arg1;
9388 PyObject * _argo0 = 0;
9389 PyObject * _argo1 = 0;
9390 char *_kwnames[] = { "self","region", NULL };
9391
9392 self = self;
9393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
9394 return NULL;
9395 if (_argo0) {
9396 if (_argo0 == Py_None) { _arg0 = NULL; }
9397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9399 return NULL;
9400 }
9401 }
9402 if (_argo1) {
9403 if (_argo1 == Py_None) { _arg1 = NULL; }
9404 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9405 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9406 return NULL;
9407 }
9408 }
9409{
0e2ff151 9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9411 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
e6056257 9412
0e2ff151 9413 wxPyEndAllowThreads(__tstate);
e6056257
RD
9414 if (PyErr_Occurred()) return NULL;
9415} _resultobj = Py_BuildValue("i",_result);
9416 return _resultobj;
9417}
9418
9419#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9420static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
9421 PyObject * _resultobj;
9422 bool _result;
9423 wxRegion * _arg0;
9424 long _arg1;
9425 long _arg2;
9426 long _arg3;
9427 long _arg4;
9428 PyObject * _argo0 = 0;
9429 char *_kwnames[] = { "self","x","y","width","height", NULL };
9430
9431 self = self;
9432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9433 return NULL;
9434 if (_argo0) {
9435 if (_argo0 == Py_None) { _arg0 = NULL; }
9436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9438 return NULL;
9439 }
9440 }
9441{
0e2ff151 9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9443 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 9444
0e2ff151 9445 wxPyEndAllowThreads(__tstate);
e6056257
RD
9446 if (PyErr_Occurred()) return NULL;
9447} _resultobj = Py_BuildValue("i",_result);
9448 return _resultobj;
9449}
9450
9451#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9452static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9453 PyObject * _resultobj;
9454 bool _result;
9455 wxRegion * _arg0;
9456 wxRect * _arg1;
9457 PyObject * _argo0 = 0;
9458 wxRect temp;
9459 PyObject * _obj1 = 0;
9460 char *_kwnames[] = { "self","rect", NULL };
9461
9462 self = self;
9463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
9464 return NULL;
9465 if (_argo0) {
9466 if (_argo0 == Py_None) { _arg0 = NULL; }
9467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9469 return NULL;
9470 }
9471 }
9472{
9473 _arg1 = &temp;
9474 if (! wxRect_helper(_obj1, &_arg1))
9475 return NULL;
9476}
9477{
0e2ff151 9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9479 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
e6056257 9480
0e2ff151 9481 wxPyEndAllowThreads(__tstate);
e6056257
RD
9482 if (PyErr_Occurred()) return NULL;
9483} _resultobj = Py_BuildValue("i",_result);
9484 return _resultobj;
9485}
9486
9487#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9488static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject * _resultobj;
9490 bool _result;
9491 wxRegion * _arg0;
9492 wxRegion * _arg1;
9493 PyObject * _argo0 = 0;
9494 PyObject * _argo1 = 0;
9495 char *_kwnames[] = { "self","region", NULL };
9496
9497 self = self;
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
9499 return NULL;
9500 if (_argo0) {
9501 if (_argo0 == Py_None) { _arg0 = NULL; }
9502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9504 return NULL;
9505 }
9506 }
9507 if (_argo1) {
9508 if (_argo1 == Py_None) { _arg1 = NULL; }
9509 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9510 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9511 return NULL;
9512 }
9513 }
9514{
0e2ff151 9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9516 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
e6056257 9517
0e2ff151 9518 wxPyEndAllowThreads(__tstate);
e6056257
RD
9519 if (PyErr_Occurred()) return NULL;
9520} _resultobj = Py_BuildValue("i",_result);
9521 return _resultobj;
9522}
9523
9524#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9525static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject * _resultobj;
9527 bool _result;
9528 wxRegion * _arg0;
9529 long _arg1;
9530 long _arg2;
9531 long _arg3;
9532 long _arg4;
9533 PyObject * _argo0 = 0;
9534 char *_kwnames[] = { "self","x","y","width","height", NULL };
9535
9536 self = self;
9537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9538 return NULL;
9539 if (_argo0) {
9540 if (_argo0 == Py_None) { _arg0 = NULL; }
9541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9543 return NULL;
9544 }
9545 }
9546{
0e2ff151 9547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9548 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
e6056257 9549
0e2ff151 9550 wxPyEndAllowThreads(__tstate);
e6056257
RD
9551 if (PyErr_Occurred()) return NULL;
9552} _resultobj = Py_BuildValue("i",_result);
9553 return _resultobj;
9554}
9555
9556#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9557static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9558 PyObject * _resultobj;
9559 bool _result;
9560 wxRegion * _arg0;
9561 wxRect * _arg1;
9562 PyObject * _argo0 = 0;
9563 wxRect temp;
9564 PyObject * _obj1 = 0;
9565 char *_kwnames[] = { "self","rect", NULL };
9566
9567 self = self;
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
9569 return NULL;
9570 if (_argo0) {
9571 if (_argo0 == Py_None) { _arg0 = NULL; }
9572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9574 return NULL;
9575 }
9576 }
9577{
9578 _arg1 = &temp;
9579 if (! wxRect_helper(_obj1, &_arg1))
9580 return NULL;
9581}
9582{
0e2ff151 9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9584 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
e6056257 9585
0e2ff151 9586 wxPyEndAllowThreads(__tstate);
e6056257
RD
9587 if (PyErr_Occurred()) return NULL;
9588} _resultobj = Py_BuildValue("i",_result);
9589 return _resultobj;
9590}
9591
9592#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9593static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9594 PyObject * _resultobj;
9595 bool _result;
9596 wxRegion * _arg0;
9597 wxRegion * _arg1;
9598 PyObject * _argo0 = 0;
9599 PyObject * _argo1 = 0;
9600 char *_kwnames[] = { "self","region", NULL };
9601
9602 self = self;
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
9604 return NULL;
9605 if (_argo0) {
9606 if (_argo0 == Py_None) { _arg0 = NULL; }
9607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9609 return NULL;
9610 }
9611 }
9612 if (_argo1) {
9613 if (_argo1 == Py_None) { _arg1 = NULL; }
9614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9616 return NULL;
9617 }
9618 }
9619{
0e2ff151 9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9621 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
e6056257 9622
0e2ff151 9623 wxPyEndAllowThreads(__tstate);
e6056257
RD
9624 if (PyErr_Occurred()) return NULL;
9625} _resultobj = Py_BuildValue("i",_result);
9626 return _resultobj;
9627}
9628
9629static void *SwigwxRegionIteratorTowxObject(void *ptr) {
9630 wxRegionIterator *src;
9631 wxObject *dest;
9632 src = (wxRegionIterator *) ptr;
9633 dest = (wxObject *) src;
9634 return (void *) dest;
9635}
9636
9637#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9638static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject * _resultobj;
9640 wxRegionIterator * _result;
9641 wxRegion * _arg0;
9642 PyObject * _argo0 = 0;
9643 char *_kwnames[] = { "region", NULL };
9644 char _ptemp[128];
9645
9646 self = self;
9647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
9648 return NULL;
9649 if (_argo0) {
9650 if (_argo0 == Py_None) { _arg0 = NULL; }
9651 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9652 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9653 return NULL;
9654 }
9655 }
9656{
0e2ff151 9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9658 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
e6056257 9659
0e2ff151 9660 wxPyEndAllowThreads(__tstate);
e6056257
RD
9661 if (PyErr_Occurred()) return NULL;
9662} if (_result) {
9663 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
9664 _resultobj = Py_BuildValue("s",_ptemp);
9665 } else {
9666 Py_INCREF(Py_None);
9667 _resultobj = Py_None;
9668 }
9669 return _resultobj;
9670}
9671
9672#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9673static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9674 PyObject * _resultobj;
9675 wxRegionIterator * _arg0;
9676 PyObject * _argo0 = 0;
9677 char *_kwnames[] = { "self", NULL };
9678
9679 self = self;
9680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
9681 return NULL;
9682 if (_argo0) {
9683 if (_argo0 == Py_None) { _arg0 = NULL; }
9684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9686 return NULL;
9687 }
9688 }
9689{
0e2ff151 9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9691 delete_wxRegionIterator(_arg0);
e6056257 9692
0e2ff151 9693 wxPyEndAllowThreads(__tstate);
e6056257
RD
9694 if (PyErr_Occurred()) return NULL;
9695} Py_INCREF(Py_None);
9696 _resultobj = Py_None;
9697 return _resultobj;
9698}
9699
9700#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9701static PyObject *_wrap_wxRegionIterator_GetX(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_GetX",_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_GetX. Expected _wxRegionIterator_p.");
9715 return NULL;
9716 }
9717 }
9718{
0e2ff151 9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9720 _result = (long )wxRegionIterator_GetX(_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_GetY(_swigobj) (_swigobj->GetY())
9729static PyObject *_wrap_wxRegionIterator_GetY(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_GetY",_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_GetY. Expected _wxRegionIterator_p.");
9743 return NULL;
9744 }
9745 }
9746{
0e2ff151 9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9748 _result = (long )wxRegionIterator_GetY(_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_GetW(_swigobj) (_swigobj->GetW())
9757static PyObject *_wrap_wxRegionIterator_GetW(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_GetW",_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_GetW. Expected _wxRegionIterator_p.");
9771 return NULL;
9772 }
9773 }
9774{
0e2ff151 9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9776 _result = (long )wxRegionIterator_GetW(_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_GetWidth(_swigobj) (_swigobj->GetWidth())
9785static PyObject *_wrap_wxRegionIterator_GetWidth(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_GetWidth",_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_GetWidth. Expected _wxRegionIterator_p.");
9799 return NULL;
9800 }
9801 }
9802{
0e2ff151 9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9804 _result = (long )wxRegionIterator_GetWidth(_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_GetH(_swigobj) (_swigobj->GetH())
9813static PyObject *_wrap_wxRegionIterator_GetH(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_GetH",_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_GetH. Expected _wxRegionIterator_p.");
9827 return NULL;
9828 }
9829 }
9830{
0e2ff151 9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9832 _result = (long )wxRegionIterator_GetH(_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_GetHeight(_swigobj) (_swigobj->GetHeight())
9841static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
9842 PyObject * _resultobj;
9843 long _result;
9844 wxRegionIterator * _arg0;
9845 PyObject * _argo0 = 0;
9846 char *_kwnames[] = { "self", NULL };
9847
9848 self = self;
9849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
9850 return NULL;
9851 if (_argo0) {
9852 if (_argo0 == Py_None) { _arg0 = NULL; }
9853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9855 return NULL;
9856 }
9857 }
9858{
0e2ff151 9859 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9860 _result = (long )wxRegionIterator_GetHeight(_arg0);
e6056257 9861
0e2ff151 9862 wxPyEndAllowThreads(__tstate);
e6056257
RD
9863 if (PyErr_Occurred()) return NULL;
9864} _resultobj = Py_BuildValue("l",_result);
9865 return _resultobj;
9866}
9867
9868#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9869static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9870 PyObject * _resultobj;
9871 wxRect * _result;
9872 wxRegionIterator * _arg0;
9873 PyObject * _argo0 = 0;
9874 char *_kwnames[] = { "self", NULL };
9875 char _ptemp[128];
9876
9877 self = self;
9878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
9879 return NULL;
9880 if (_argo0) {
9881 if (_argo0 == Py_None) { _arg0 = NULL; }
9882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9884 return NULL;
9885 }
9886 }
9887{
0e2ff151 9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9889 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
e6056257 9890
0e2ff151 9891 wxPyEndAllowThreads(__tstate);
e6056257
RD
9892 if (PyErr_Occurred()) return NULL;
9893} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9894 _resultobj = Py_BuildValue("s",_ptemp);
9895 return _resultobj;
9896}
9897
9898#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9899static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
9900 PyObject * _resultobj;
9901 bool _result;
9902 wxRegionIterator * _arg0;
9903 PyObject * _argo0 = 0;
9904 char *_kwnames[] = { "self", NULL };
9905
9906 self = self;
9907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
9908 return NULL;
9909 if (_argo0) {
9910 if (_argo0 == Py_None) { _arg0 = NULL; }
9911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9913 return NULL;
9914 }
9915 }
9916{
0e2ff151 9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9918 _result = (bool )wxRegionIterator_HaveRects(_arg0);
e6056257 9919
0e2ff151 9920 wxPyEndAllowThreads(__tstate);
e6056257
RD
9921 if (PyErr_Occurred()) return NULL;
9922} _resultobj = Py_BuildValue("i",_result);
9923 return _resultobj;
9924}
9925
9926#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9927static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
9928 PyObject * _resultobj;
9929 wxRegionIterator * _arg0;
9930 PyObject * _argo0 = 0;
9931 char *_kwnames[] = { "self", NULL };
9932
9933 self = self;
9934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
9935 return NULL;
9936 if (_argo0) {
9937 if (_argo0 == Py_None) { _arg0 = NULL; }
9938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9940 return NULL;
9941 }
9942 }
9943{
0e2ff151 9944 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9945 wxRegionIterator_Reset(_arg0);
e6056257 9946
0e2ff151 9947 wxPyEndAllowThreads(__tstate);
e6056257
RD
9948 if (PyErr_Occurred()) return NULL;
9949} Py_INCREF(Py_None);
9950 _resultobj = Py_None;
9951 return _resultobj;
9952}
9953
9954static void wxRegionIterator_Next(wxRegionIterator *self) {
9955 (*self) ++;
9956 }
9957static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
9958 PyObject * _resultobj;
9959 wxRegionIterator * _arg0;
9960 PyObject * _argo0 = 0;
9961 char *_kwnames[] = { "self", NULL };
9962
9963 self = self;
9964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
9965 return NULL;
9966 if (_argo0) {
9967 if (_argo0 == Py_None) { _arg0 = NULL; }
9968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
9970 return NULL;
9971 }
9972 }
9973{
0e2ff151 9974 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824d4f9 9975 wxRegionIterator_Next(_arg0);
e6056257 9976
0e2ff151 9977 wxPyEndAllowThreads(__tstate);
e6056257
RD
9978 if (PyErr_Occurred()) return NULL;
9979} Py_INCREF(Py_None);
9980 _resultobj = Py_None;
9981 return _resultobj;
9982}
9983
9984static PyMethodDef gdicMethods[] = {
9985 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
9986 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
9987 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
9988 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
9989 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
9990 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
9991 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
9992 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
9993 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
9994 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
9995 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
9996 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
9997 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
9998 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
9999 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
10000 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
10001 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
10002 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
10003 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
10004 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
10005 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
10006 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
10007 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
10008 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
10009 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
10010 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
10011 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
10012 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
10013 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
10014 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
10015 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
10016 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
10017 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
10018 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
10019 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
10020 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
10021 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
10022 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
10023 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
10024 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
10025 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
10026 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
10027 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
10028 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
10029 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
10030 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
10031 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
10032 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
10033 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10034 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
10035 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
10036 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
10037 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
10038 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
10039 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
10040 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
c3bfa1cb 10041 { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
59988cd0 10042 { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
c3bfa1cb
RD
10043 { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
10044 { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10045 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
10046 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
10047 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
10048 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
10049 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
10050 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
10051 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
10052 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
10053 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10054 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10055 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10056 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
10057 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
10058 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
10059 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
10060 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
10061 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
10062 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
10063 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
10064 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
10065 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
10066 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
10067 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
10068 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
10069 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
10070 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10071 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
10072 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
10073 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
10074 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
10075 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
10076 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
10077 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
10078 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10079 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
10080 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
10081 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
10082 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
10083 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
10084 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
10085 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
10086 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
10087 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
10088 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
10089 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
10090 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
10091 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10092 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
10093 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
10094 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
10095 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10096 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
10097 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
10098 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
10099 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
10100 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
10101 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10102 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
10103 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
10104 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10105 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10106 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
10107 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
10108 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
10109 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
10110 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
10111 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
10112 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
10113 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
10114 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
10115 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
10116 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
10117 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
10118 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
10119 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
10120 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
a341e32e
RD
10121 { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
10122 { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10123 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
10124 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
10125 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
10126 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
10127 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
10128 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
10129 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
10130 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
10131 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
10132 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
10133 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
10134 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
10135 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
10136 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
10137 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
00360d46 10138 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10139 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
10140 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
10141 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
10142 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
10143 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
10144 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
10145 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
10146 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
10147 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
10148 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
10149 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
10150 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
00360d46 10151 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10152 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
10153 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
10154 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
10155 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
10156 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
10157 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
10158 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
10159 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
10160 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
10161 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
10162 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
10163 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
10164 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
10165 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
10166 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
10167 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
10168 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
10169 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
10170 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
10171 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
10172 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
10173 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
10174 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
10175 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
10176 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
10177 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
10178 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
10179 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
10180 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
10181 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
10182 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10183 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
10184 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
40699168
RD
10185 { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
10186 { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
10187 { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
10188 { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
10189 { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
10190 { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
10191 { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10192 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
10193 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
10194 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
10195 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
10196 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
10197 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
10198 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
10199 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10200 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
10201 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
10202 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
10203 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
10204 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
10205 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
10206 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
10207 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
10208 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
10209 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
10210 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
10211 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
10212 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
10213 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
10214 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
10215 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
10216 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
10217 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
10218 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10219 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10220 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
10221 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
10222 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
10223 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10224 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10225 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
10226 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
10227 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
da0ddbd6 10228 { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10229 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
10230 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
10231 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
10232 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
10233 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
10234 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
10235 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
10236 { NULL, NULL }
10237};
10238#ifdef __cplusplus
10239}
10240#endif
10241/*
10242 * This table is used by the pointer type-checker
10243 */
10244static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10245 { "_signed_long","_long",0},
10246 { "_wxPrintQuality","_wxCoord",0},
10247 { "_wxPrintQuality","_int",0},
10248 { "_wxPrintQuality","_signed_int",0},
10249 { "_wxPrintQuality","_unsigned_int",0},
10250 { "_wxPrintQuality","_wxWindowID",0},
10251 { "_wxPrintQuality","_uint",0},
10252 { "_wxPrintQuality","_EBool",0},
10253 { "_wxPrintQuality","_size_t",0},
10254 { "_wxPrintQuality","_time_t",0},
10255 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
10256 { "_byte","_unsigned_char",0},
10257 { "_long","_unsigned_long",0},
10258 { "_long","_signed_long",0},
10259 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
10260 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
10261 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
10262 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
10263 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
e6056257
RD
10264 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
10265 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
10266 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
e6056257
RD
10267 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
10268 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
10269 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
10270 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
c3bfa1cb
RD
10271 { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC},
10272 { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC},
e6056257
RD
10273 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
10274 { "_size_t","_wxCoord",0},
10275 { "_size_t","_wxPrintQuality",0},
10276 { "_size_t","_time_t",0},
10277 { "_size_t","_unsigned_int",0},
10278 { "_size_t","_int",0},
10279 { "_size_t","_wxWindowID",0},
10280 { "_size_t","_uint",0},
10281 { "_uint","_wxCoord",0},
10282 { "_uint","_wxPrintQuality",0},
10283 { "_uint","_time_t",0},
10284 { "_uint","_size_t",0},
10285 { "_uint","_unsigned_int",0},
10286 { "_uint","_int",0},
10287 { "_uint","_wxWindowID",0},
10288 { "_wxChar","_char",0},
10289 { "_char","_wxChar",0},
c3bfa1cb 10290 { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC},
e6056257
RD
10291 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10292 { "_EBool","_wxCoord",0},
10293 { "_EBool","_wxPrintQuality",0},
10294 { "_EBool","_signed_int",0},
10295 { "_EBool","_int",0},
10296 { "_EBool","_wxWindowID",0},
10297 { "_unsigned_long","_long",0},
10298 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10299 { "_signed_int","_wxCoord",0},
10300 { "_signed_int","_wxPrintQuality",0},
10301 { "_signed_int","_EBool",0},
10302 { "_signed_int","_wxWindowID",0},
10303 { "_signed_int","_int",0},
10304 { "_WXTYPE","_short",0},
10305 { "_WXTYPE","_signed_short",0},
10306 { "_WXTYPE","_unsigned_short",0},
10307 { "_unsigned_short","_WXTYPE",0},
10308 { "_unsigned_short","_short",0},
10309 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10310 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
10311 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
10312 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
e6056257
RD
10313 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
10314 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
10315 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
10316 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
c3bfa1cb
RD
10317 { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject},
10318 { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject},
e6056257
RD
10319 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
10320 { "_wxObject","_wxDC",SwigwxDCTowxObject},
10321 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
10322 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
10323 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
10324 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
10325 { "_wxObject","_wxPen",SwigwxPenTowxObject},
10326 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10327 { "_wxObject","_wxColour",SwigwxColourTowxObject},
e6056257
RD
10328 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
10329 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
10330 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
10331 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
10332 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
10333 { "_signed_short","_WXTYPE",0},
10334 { "_signed_short","_short",0},
c3bfa1cb
RD
10335 { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC},
10336 { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC},
e6056257
RD
10337 { "_unsigned_char","_byte",0},
10338 { "_unsigned_int","_wxCoord",0},
10339 { "_unsigned_int","_wxPrintQuality",0},
10340 { "_unsigned_int","_time_t",0},
10341 { "_unsigned_int","_size_t",0},
10342 { "_unsigned_int","_uint",0},
10343 { "_unsigned_int","_wxWindowID",0},
10344 { "_unsigned_int","_int",0},
10345 { "_short","_WXTYPE",0},
10346 { "_short","_unsigned_short",0},
10347 { "_short","_signed_short",0},
10348 { "_wxWindowID","_wxCoord",0},
10349 { "_wxWindowID","_wxPrintQuality",0},
10350 { "_wxWindowID","_time_t",0},
10351 { "_wxWindowID","_size_t",0},
10352 { "_wxWindowID","_EBool",0},
10353 { "_wxWindowID","_uint",0},
10354 { "_wxWindowID","_int",0},
10355 { "_wxWindowID","_signed_int",0},
10356 { "_wxWindowID","_unsigned_int",0},
10357 { "_int","_wxCoord",0},
10358 { "_int","_wxPrintQuality",0},
10359 { "_int","_time_t",0},
10360 { "_int","_size_t",0},
10361 { "_int","_EBool",0},
10362 { "_int","_uint",0},
10363 { "_int","_wxWindowID",0},
10364 { "_int","_unsigned_int",0},
10365 { "_int","_signed_int",0},
10366 { "_time_t","_wxCoord",0},
10367 { "_time_t","_wxPrintQuality",0},
10368 { "_time_t","_unsigned_int",0},
10369 { "_time_t","_int",0},
10370 { "_time_t","_wxWindowID",0},
10371 { "_time_t","_uint",0},
10372 { "_time_t","_size_t",0},
10373 { "_wxCoord","_int",0},
10374 { "_wxCoord","_signed_int",0},
10375 { "_wxCoord","_unsigned_int",0},
10376 { "_wxCoord","_wxWindowID",0},
10377 { "_wxCoord","_uint",0},
10378 { "_wxCoord","_EBool",0},
10379 { "_wxCoord","_size_t",0},
10380 { "_wxCoord","_time_t",0},
10381 { "_wxCoord","_wxPrintQuality",0},
10382{0,0,0}};
10383
10384static PyObject *SWIG_globals;
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388SWIGEXPORT(void) initgdic() {
10389 PyObject *m, *d;
10390 SWIG_globals = SWIG_newvarlink();
10391 m = Py_InitModule("gdic", gdicMethods);
10392 d = PyModule_GetDict(m);
00360d46
RD
10393 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
10394 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
10395 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
10396 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
10397 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
10398 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
10399 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
10400 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
10401 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
10402 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
e6056257
RD
10403 PyDict_SetItemString(d,"cvar", SWIG_globals);
10404 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
10405 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
10406 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
10407 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
10408 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
10409 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
10410 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
10411 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
10412 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
10413 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
10414 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
10415 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
10416 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
10417 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
10418 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
10419 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
10420 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
10421 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
10422 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
10423 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
10424 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
10425 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
10426 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
10427 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
10428 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
10429 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
10430 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
10431 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
10432 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
10433 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
10434 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
10435 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
10436 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
10437 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
10438 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
10439 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
10440 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
10441 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
10442 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
10443 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
10444 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
10445 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
10446 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
10447 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
10448 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
10449 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
e6056257
RD
10450{
10451 int i;
10452 for (i = 0; _swig_mapping[i].n1; i++)
10453 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10454}
10455}