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